A network address conflict processing method, apparatus, device, system and medium

CN117651034BActive Publication Date: 2026-09-22JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311369944.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-09-22
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

然而,当网络规模比较大时,例如私有云里的虚拟机可能达到上百台,逐台排查虚拟机将会造成巨大的运维压力

Benefits of technology

[0049]本发明提供一种网络地址冲突处理方法,应用于平台设备,所述方法包括:为虚拟机设备设置冲突处理服务,以使所述虚拟机设备基于所述冲突处理服务自动检测网络环境中是否存在与自身网络地址冲突的冲突设备,并在检测到所述冲突设备时通过宿主机向所述平台设备上报冲突信息;根据接收到的冲突信息确定存在网络地址冲突的冲突虚拟机设备,并为所述冲突虚拟机设备重新配置网络地址。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117651034B_ABST
    Figure CN117651034B_ABST
Patent Text Reader

Abstract

The application provides a network address conflict processing method, device, equipment, system and medium, and relates to the field of cloud computing. The method is applied to a platform device and comprises the following steps: a conflict processing service is set for a virtual machine device, so that the virtual machine device automatically detects whether a conflict device with a network address conflict exists in a network environment based on the conflict processing service, and reports conflict information to the platform device through a host computer when the conflict device is detected; a conflict virtual machine device with a network address conflict is determined according to the received conflict information, and a network address of the conflict virtual machine device is reconfigured. The virtual machine device can detect the network address conflict by itself, and actively reports to the platform device when the conflict is found. Then, the platform device only needs to determine the conflict virtual machine device with the network address conflict according to the received conflict information, and reconfigure the network address of the conflict virtual machine device, so that the efficiency and reliability of network address conflict processing can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing, and in particular to a method, apparatus, device, system, and medium for handling network address conflicts. Background Technology

[0002] In the field of cloud computing, virtual machine IP network addresses can be obtained in various ways, which can easily lead to multiple virtual machines using the same IP network address, affecting the normal communication of virtual machine services.

[0003] In related technologies, a common method for dealing with virtual machines with IP network address conflicts is for network administrators to manually locate the corresponding devices and manually reconfigure a new IP address. Of course, this new IP address may still cause conflicts, requiring reconfiguration of another new IP address until the IP conflict no longer occurs. However, when the network is large, such as a private cloud with hundreds of virtual machines, checking each virtual machine individually would create enormous operational pressure. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, device, system, and medium for handling network address conflicts. Virtual machine devices can detect and report network address conflicts themselves, and the platform device only needs to determine the conflicting virtual machine device based on the received conflict information and reconfigure the network address for the conflicting virtual machine device, which can effectively improve the efficiency and reliability of network address conflict handling.

[0005] To address the aforementioned technical problems, this invention provides a network address conflict resolution method applied to a platform device, the method comprising:

[0006] Configure a conflict handling service for the virtual machine device so that the virtual machine device can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict handling service, and report the conflict information to the platform device through the host machine when the conflicting device is detected;

[0007] Based on the received conflict information, identify the conflicting virtual machine devices with network address conflicts, and reconfigure the network addresses for the conflicting virtual machine devices.

[0008] Optionally, reconfiguring the network address for the conflicting virtual machine device includes:

[0009] Obtain the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located;

[0010] The network address of the conflicting virtual machine device is reconfigured using the backup network addresses in the target backup network address pool.

[0011] Optionally, reconfiguring the network address for the conflicting virtual machine device using the backup network addresses in the target backup network address pool includes:

[0012] When it is determined that the conflicting virtual machine device is configured with a network address based on Dynamic Host Configuration Protocol (DHCP), the conflicting virtual machine device is controlled to restart the network service, the backup network address is filled into the DHCP request message as the request network address, and the DHCP request message is sent to the DHCP server so that the DHCP server can reconfigure the network address for the conflicting virtual machine device based on the received backup network address.

[0013] When it is determined that the conflicting virtual machine device is configured with a network address in a static manner, the network address of the conflicting virtual machine device is reconfigured using the backup network address.

[0014] Optionally, the conflict information includes the conflicting network address, the virtual machine device physical address, and the conflicting device physical address;

[0015] The step of determining the conflicting virtual machine device with a network address conflict based on the received conflict information and reconfiguring the network address for the conflicting virtual machine device includes:

[0016] Mark the virtual machine device corresponding to the physical address of the virtual machine device as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address;

[0017] Determine whether the physical address of the conflicting device corresponds to a virtual machine device;

[0018] If so, mark the virtual machine device corresponding to the conflicting physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address;

[0019] If not, mark the non-virtual machine device corresponding to the conflicting device's physical address as an unmanaged device and add it to the conflict group corresponding to the conflicting network address.

[0020] Determine whether the conflict group contains uncontrolled devices;

[0021] If included, reconfigure the network address for all conflicting virtual machine devices in the conflict group;

[0022] If not included, determine the priority of each conflicting virtual machine device in the conflict group, and reconfigure the network address of the conflicting virtual machine device with a priority lower than the highest priority in the conflict group.

[0023] The present invention also provides a network address conflict handling method applied to a virtual machine device, the method comprising:

[0024] Set up conflict resolution services under the control of platform devices;

[0025] The conflict resolution service is used to detect whether there are conflicting devices in the network environment that conflict with its own network address;

[0026] When the conflicting device is detected, the host machine reports the conflict information to the platform device, so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device.

[0027] Optionally, the conflict resolution service is used to detect whether there are conflicting devices in the network environment that conflict with its own network address, including:

[0028] When the conflict resolution service is started for the first time, the conflict resolution service is used to generate an Address Resolution Protocol Request (ARP) message containing its own network address, and the ARP message is broadcast to the network environment.

[0029] The conflict handling service monitors Address Resolution Protocol (ARP) messages in the network environment and determines whether there are conflicting devices in the network environment that conflict with its own network address based on the network address in the ARP message.

[0030] Optionally, it also includes:

[0031] When it is determined that its own network address has changed, it uses the conflict handling service to generate an Address Resolution Protocol (ARP) request message containing its own network address and broadcasts the ARP request message to the network environment.

[0032] The present invention also provides a network address conflict handling device, applied to a platform device, the device comprising:

[0033] The configuration module is used to set up a conflict handling service for the virtual machine device, so that the virtual machine device can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict handling service, and report the conflict information to the platform device through the host machine when the conflicting device is detected.

[0034] The conflict handling module is used to identify conflicting virtual machine devices with network address conflicts based on the received conflict information, and to reconfigure the network address for the conflicting virtual machine devices.

[0035] The present invention also provides a network address conflict handling device, applied to a virtual machine device, the device comprising:

[0036] The configuration module is used to set up conflict handling services under the control of the platform device;

[0037] The conflict detection module is used to detect whether there are conflicting devices in the network environment that conflict with its own network address using the conflict handling service;

[0038] The reporting module is used to report conflict information to the platform device through the host machine when the conflicting device is detected, so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device.

[0039] The present invention also provides a platform device, comprising:

[0040] Memory, used to store computer programs;

[0041] A processor is configured to implement the network address conflict handling method described above when executing the computer program.

[0042] The present invention also provides a virtual machine device, comprising:

[0043] Memory, used to store computer programs;

[0044] A processor is configured to implement the network address conflict handling method described above when executing the computer program.

[0045] The present invention also provides a network address conflict handling system, comprising:

[0046] Platform device, used to execute the network address conflict handling method described above;

[0047] A virtual machine device for performing the network address conflict handling method described above.

[0048] The present invention also provides a computer-readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the network address conflict handling method described above.

[0049] This invention provides a network address conflict handling method applied to a platform device. The method includes: setting up a conflict handling service for a virtual machine device, so that the virtual machine device can automatically detect whether there is a conflicting device in the network environment that conflicts with its own network address based on the conflict handling service, and report the conflict information to the platform device through the host machine when the conflicting device is detected; determining the conflicting virtual machine device with network address conflict based on the received conflict information, and reconfiguring the network address for the conflicting virtual machine device.

[0050] As can be seen, in this invention, the platform device can first set up a conflict handling service for the virtual machine device, enabling the virtual machine device to automatically detect whether there are conflicting devices in the network environment that conflict with its own network address. When a conflicting device is detected, the host machine reports the conflict information to the platform device. Thus, the virtual machine device can detect network address conflicts independently and actively report them to the platform device when a conflict is found. Furthermore, the platform device in this invention only needs to determine the conflicting virtual machine device based on the received conflict information and reconfigure the network address for the conflicting virtual machine device, without manual operation, which can effectively improve the efficiency and reliability of virtual machine network address conflict handling. This invention also provides a network address conflict handling device, a platform device, a virtual machine device, a system, and a computer-readable storage medium, which have the above-mentioned beneficial effects. Attached Figure Description

[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0052] Figure 1 This is a structural block diagram of a network address conflict handling system provided in an embodiment of the present invention;

[0053] Figure 2 A flowchart of a network address conflict handling method provided in an embodiment of the present invention;

[0054] Figure 3 A flowchart of another network address conflict handling method provided in an embodiment of the present invention;

[0055] Figure 4 This is a schematic diagram of a network address conflict handling method provided in an embodiment of the present invention;

[0056] Figure 5 This is a structural block diagram of a network address conflict handling device provided in an embodiment of the present invention;

[0057] Figure 6 This is a structural block diagram of another network address conflict handling device provided in an embodiment of the present invention;

[0058] Figure 7 This is a structural block diagram of a platform device provided in an embodiment of the present invention;

[0059] Figure 8 This is a structural block diagram of a virtual machine device provided in an embodiment of the present invention. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0061] In related technologies, a common method for handling virtual machines with IP network address conflicts is for network administrators to manually locate the corresponding devices and manually reconfigure their IP addresses. However, this new IP address may still cause conflicts, requiring further reconfiguration of different IP addresses until the IP conflict disappears. However, when the network is large, such as a private cloud with hundreds of virtual machines, checking each virtual machine individually would create enormous operational pressure. Therefore, this invention provides a network address conflict handling method that allows virtual machine devices to automatically detect and report network address conflicts. The platform device then only needs to identify the conflicting virtual machine device based on the received conflict information and reconfigure its network address, effectively improving the efficiency and reliability of network address conflict handling.

[0062] For easier understanding, please refer to Figure 1 , Figure 1 This is a structural block diagram of a network address conflict handling system provided in an embodiment of the present invention. The system may include a platform device 10 and multiple virtual machine devices 20. It should be noted that the virtual machine devices 20 are specifically deployed in a host machine (not shown). Therefore, when describing the hardware structure of the virtual machine devices 20, the hardware structure specifically refers to the structure of the host machine where the virtual machine devices 20 are deployed. It should also be noted that a network environment is established between the platform device 10 and the virtual machine devices 20, and this network environment may also contain other network devices. To achieve automatic handling of network address conflicts, the platform device 10 in this embodiment of the present invention can set up a conflict handling service for each virtual machine device 20; each virtual machine device 20 can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict handling service, and report the conflict information to the platform device 10 through the host machine when a conflicting device is detected; then, the platform device 10 only needs to determine the conflicting virtual machine device with the network address conflict based on the received conflict information and reconfigure the network address for the conflicting virtual machine device, without manual investigation or manual reconfiguration of the network address, thereby improving the efficiency of network address conflict handling.

[0063] It should be noted that the platform device 10 in this embodiment of the invention can also appear as a virtual machine and be deployed in other physical devices. This embodiment of the invention does not limit the specific hardware device form corresponding to the platform device 10 and the virtual machine device 20; for example, it can be a personal computer, a server, etc., and can be set according to actual application needs. This embodiment of the invention also does not limit the number of virtual machine devices 20, and can be set according to actual application needs.

[0064] Based on the above description of the system structure, the network address conflict handling method for platform devices provided in this embodiment of the invention will be described in detail below. Please refer to... Figure 2 , Figure 2 This is a flowchart of a network address conflict handling method provided in an embodiment of the present invention. The method is applied to a platform device and may include:

[0065] S201. Configure a conflict handling service for the virtual machine device so that the virtual machine device can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict handling service, and report the conflict information to the platform device through the host machine when a conflicting device is detected.

[0066] In this embodiment of the invention, to achieve automatic detection and handling of network address conflicts, the platform device can set up a conflict handling service for the virtual machine device. This allows the virtual machine device to automatically detect whether there are conflicting devices in the network environment that conflict with its own network address, and to report the conflict information to the platform device when a conflicting device is detected. It should be noted that this embodiment of the invention does not limit how the conflict handling service is set up. For example, this service can be redeveloped, or it can be added to an existing virtual machine tool. For instance, a conflict handling service can be added to the existing vmtools tool, a common virtual machine tool that has a communication serial port between the virtual machine and the host machine, allowing the virtual machine to communicate with the host machine. This embodiment of the invention can add this conflict handling service to the tool, enabling the virtual machine device to automatically detect whether there are conflicting devices in the network environment that conflict with its own network address. When a conflicting device is detected, the virtual machine device's network communication is blocked, so it can use the aforementioned communication serial port in the tool to send conflict information to the host machine, allowing the host machine to forward the conflict information to the platform device, thereby achieving the effect of automatic detection and reporting of network address conflict events by the virtual machine device.

[0067] It should be noted that the embodiments of the present invention do not limit how the virtual machine device detects whether there are conflicting devices in the network environment that conflict with its own network address. For example, it can be detected based on the Address Resolution Protocol (ARP), or other methods can be used. The embodiments of the present invention also do not limit the specific content that the above-mentioned conflict information can include; for example, it can include the conflicting network address, the virtual machine device's physical address (MAC address), and the conflicting device's physical address. It should also be pointed out that the conflicting device here is not necessarily a virtual machine, because the network environment may not only contain virtual machine devices, but may also contain other network devices; and the same conflict information may contain multiple conflicting device physical addresses.

[0068] S202. Based on the received conflict information, identify the conflicting virtual machine device with a network address conflict, and reconfigure the network address for the conflicting virtual machine device.

[0069] In this step, the platform device automatically identifies the conflicting virtual machine device with network address conflict based on the received conflict information, and can automatically reconfigure the network address of the conflicting virtual machine device. This avoids the need for manual location of the virtual machine device with network address conflict and manual modification of the conflicting network address, thereby improving the efficiency and reliability of handling network address conflicts.

[0070] The following details the specific method for reconfiguring the network address of a single conflicting virtual machine device. Considering the differences in network environments among virtual machines, such as differences in network segments, to ensure that the reconfigured network address is suitable for the network environment of the conflicting virtual machine device, this embodiment of the invention can pre-set a corresponding, dedicated backup network address pool for each virtual machine device. This backup network address pool contains one or more backup network addresses, and these backup network addresses are suitable for the network segment where the virtual machine device is located. Furthermore, after a conflicting virtual machine device is detected, the platform device can obtain the target backup network address pool corresponding to the conflicting virtual machine device and use the backup network addresses in the target backup network address pool to reconfigure the network address for the conflicting virtual machine device.

[0071] Based on this, reconfiguring the network address for the conflicting virtual machine device can include:

[0072] Step 11: Obtain the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located;

[0073] Step 12: Reconfigure the network address for the conflicting virtual machine device using the alternative network addresses in the target alternative network address pool.

[0074] It's worth noting that the backup network addresses in the backup network address pool can also be marked with conflict flags to indicate that the address is conflicted and cannot be used. Therefore, when filtering backup network addresses, those not marked should be selected for network address reset. Of course, if there are no usable backup network addresses left in the backup network address pool, a corresponding alarm message can be output.

[0075] Furthermore, the method for resetting the network address depends on the specific configuration mode of the conflicting virtual machine device's network address. Commonly, virtual machine devices can be configured with network addresses dynamically or statically, with dynamic configuration typically based on Dynamic Host Configuration Protocol (DHCP). Therefore, for these two modes, the platform device needs to use the corresponding resetting method to reset the physical address. When it is determined that the conflicting virtual machine device is configured with a DHCP network address, the conflicting virtual machine device needs to restart its network service, fill the DHCP request message with the alternative network address as the requested IP (located in bit 50 of the DHCP option), and send the DHCP request message to the DHCP server. This allows the DHCP server to reconfigure the conflicting virtual machine device's network address based on the received alternative network address. Conversely, when it is determined that the conflicting virtual machine device is configured with a static network address, the alternative network address can be used to reconfigure the conflicting virtual machine device's network address.

[0076] Based on this, reconfiguring the network address of the conflicting virtual machine device using the backup network addresses in the target backup network address pool can include:

[0077] Step 21: When it is determined that the conflicting virtual machine device is configured with a network address based on Dynamic Host Configuration Protocol (DHCP), control the conflicting virtual machine device to restart the network service, fill the DHCP request message with the alternative network address as the request network address, and send the DHCP request message to the DHCP server so that the DHCP server can reconfigure the network address for the conflicting virtual machine device based on the received alternative network address.

[0078] Step 22: When it is determined that the conflicting virtual machine device is configured with a static network address, reconfigure the network address of the conflicting virtual machine device using the spare network address.

[0079] The following details the specific steps for reconfiguring network addresses for multiple conflicting virtual machine devices. First, the conflict information reported by the virtual machine devices can include the conflicting network address, the virtual machine device's physical address, and the conflicting physical address of the device. For the virtual machine device's physical address, the platform device can directly mark the virtual machine device corresponding to that physical address as a conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address. The conflict group is used to record device information with the same conflicting network address. However, for the conflicting physical address, since it may not necessarily correspond to a virtual machine but could correspond to other network devices that the platform device cannot manage, the platform device must first determine whether the conflicting physical address corresponds to a virtual machine device. If so, the virtual machine device corresponding to the conflicting physical address is marked as a conflicting virtual machine device and added to the conflict group corresponding to the conflicting network address; otherwise, if not, the non-virtual machine device corresponding to the conflicting physical address is marked as an unmanaged device and added to the conflict group corresponding to the conflicting network address. It should be noted that the platform device confirms the virtual machine device corresponding to the physical address of the virtual machine device and confirms the identity of the device corresponding to the physical address of the conflicting device by means of a lookup table. That is, the platform device can set the correspondence between the physical address of the virtual machine device and the virtual machine information (such as the virtual machine ID), and determine the conflicting virtual device and other devices by comparing the physical address of the virtual machine device, the physical address of the conflicting device and the physical address of the conflicting device with the correspondence.

[0080] Furthermore, regarding the devices recorded in the conflict group, there are two processing scenarios: 1. The conflict group contains both virtual machine devices and unmanaged devices. In this case, since the platform device cannot modify the network address of the unmanaged device, all virtual machine devices in the conflict group need to have their network addresses reset. 2. The conflict group contains only virtual machine devices. In this case, to gradually reduce the number of virtual machine devices with address conflicts, a specific virtual machine device in the group can be designated to hold its current network address, and the network addresses of the remaining conflicting virtual machine devices can be reset. This ensures that after the network address reset, the conflicting virtual machine devices in the conflict group will at least not have network address conflicts with other virtual machine devices, thereby reducing the number of virtual machine devices with address conflicts. It should be noted that the embodiments of the present invention do not limit how the above-mentioned specific virtual machine device is determined. For example, it can be arbitrarily designated, or it can be determined according to the priority of the virtual machine device. Specifically, each virtual machine device can be set with different priorities. Furthermore, when the platform device determines that only virtual machine devices exist in the conflict group, it can determine the priority of each virtual machine device in the conflict group, and only reconfigure the network address of the virtual machine device with a priority lower than the highest priority in the conflict group, while keeping the network address of the highest priority virtual machine device unchanged. This embodiment of the invention does not limit how the above priorities are set, and can be set according to actual application requirements.

[0081] Based on this, the conflict information includes the conflicting network address, the virtual machine device physical address, and the conflicting device physical address;

[0082] Based on the received conflict information, identify the conflicting virtual machine devices with network address conflicts, and reconfigure the network addresses for the conflicting virtual machine devices. This may include:

[0083] Step 31: Mark the virtual machine device corresponding to the virtual machine device physical address as a conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address;

[0084] Step 32: Determine whether the physical address of the conflicting device corresponds to the virtual machine device; if yes, proceed to step 33; if no, proceed to step 34.

[0085] Step 33: Mark the virtual machine device corresponding to the conflicting physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address;

[0086] Step 34: Mark the non-virtual machine device corresponding to the conflicting device's physical address as an unmanaged device and add it to the conflict group corresponding to the conflicting network address;

[0087] Step 35: Determine whether the conflict group contains uncontrolled devices; if it does, proceed to step 36; if it does not, proceed to step 37.

[0088] Step 36: Reconfigure the network addresses for all conflicting virtual machine devices in the conflict group;

[0089] Step 37: Determine the priority of each conflicting virtual machine device in the conflict group, and reconfigure the network address of the conflicting virtual machine device with a priority lower than the highest priority in the conflict group.

[0090] Based on the above embodiments, in this invention, the platform device can first set up a conflict handling service for the virtual machine device, so that the virtual machine device can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address. When a conflicting device is detected, the virtual machine device can report the conflict information to the platform device through the host machine. Thus, the virtual machine device can detect network address conflicts on its own and actively report them to the platform device when a conflict is found. Furthermore, the platform device in this invention only needs to determine the conflicting virtual machine device with network address conflict based on the received conflict information and reconfigure the network address of the conflicting virtual machine device. No manual operation is required, which can effectively improve the efficiency and reliability of virtual machine network address conflict handling.

[0091] Based on the above embodiments, the network address conflict handling method for virtual machine devices provided by the embodiments of the present invention will be described in detail below. Please refer to... Figure 3 , Figure 3 A flowchart illustrating another network address conflict resolution method provided in an embodiment of the present invention. This method, applied to a virtual machine device, may include:

[0092] S301. Set up conflict handling service under the control of platform equipment.

[0093] As described above, the conflict handling service in this embodiment of the invention can be developed independently or added to existing virtual machine tools. For example, a conflict handling service can be added to the existing vmtools tool. The virtual machine device can then use this tool to automatically detect whether there are conflicting devices in the network environment that conflict with its own network address. When a conflicting device is detected, the virtual machine device's network communication is blocked. Therefore, it can use the aforementioned communication serial port in the tool to send conflict information to the host machine, so that the host machine forwards the conflict information to the platform device, thereby achieving the effect of automatic detection and reporting of network address conflict events by the virtual machine device.

[0094] S302. Use the conflict resolution service to detect whether there are conflicting devices in the network environment that conflict with its own network address.

[0095] It should be noted that the embodiments of the present invention do not limit how the virtual machine device detects whether there are conflicting devices in the network environment that conflict with its own network address. For example, it can use the common Address Resolution Protocol (ARP) for detection. For instance, the virtual machine device periodically sends an ARP request message containing its own network address based on the conflict handling service, and listens for any device in the network environment that replies with an ARP response message containing the same network address. If such a device is found, it can be determined whether there is a conflicting device in the network environment; otherwise, no conflicting device exists. Of course, the virtual machine device can also listen for ARP request messages sent by other virtual machine devices and compare the network address in the ARP request messages sent by other virtual machine devices with its own network address to determine whether there is a conflicting device in the network environment. However, considering that periodically sending the aforementioned ARP request message may waste network resources, when the conflict handling service is first started, the conflict handling service generates an ARP request message containing its own network address and broadcasts the ARP request message to the network environment.

[0096] Based on this, using conflict resolution services to detect whether there are conflicting devices in the network environment that conflict with its own network address can include:

[0097] Step 41: When the conflict resolution service is started for the first time, the conflict resolution service is used to generate an Address Resolution Protocol (ARP) request message containing its own network address, and the ARP request message is broadcast to the network environment.

[0098] Step 42: Use the conflict resolution service to listen to Address Resolution Protocol (ARP) messages in the network environment, and determine whether there are conflicting devices in the network environment that conflict with its own network address based on the network address in the ARP message.

[0099] Additionally, it is understandable that when a virtual machine determines that its network address has changed, it can also use the conflict handling service to generate an Address Resolution Protocol (ARP) message containing its own network address and broadcast the ARP message to the network environment to determine whether there is a conflict with the modified network address.

[0100] Based on this, the method may also include:

[0101] Step 51: When it is determined that its own network address has changed, it uses the conflict resolution service to generate an Address Resolution Protocol (ARP) request message containing its own network address and broadcasts the ARP request message to the network environment.

[0102] S303. When a conflicting device is detected, the host machine reports the conflict information to the platform device so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device.

[0103] It should be noted that the embodiments of the present invention do not limit the specific content that the above-mentioned conflict information may include, such as conflicting network addresses, virtual machine device physical addresses (MAC addresses), and conflicting device physical addresses.

[0104] Based on the above embodiments, in this invention, the virtual machine device automatically detects network address conflicts and actively reports them to the platform device when a conflict is detected. Therefore, the platform device in this invention only needs to determine the conflicting virtual machine device with network address conflict based on the received conflict information and reconfigure the network address for the conflicting virtual machine device. No manual operation is required, which can effectively improve the efficiency and reliability of virtual machine network address conflict handling.

[0105] The network address conflict resolution method described above is fully illustrated below with a specific example. The specific implementation process of this method is as follows:

[0106] 1) Virtual machines managed by the cloud platform must have the VMTools service installed and configured to start automatically. These virtual machines need to have the "IP Conflict Handling" option enabled in the VMTools service. VMTools with this option enabled will continuously listen for ARP request and response packets, determining whether an IP conflict has occurred through ARP response or request packets. Upon its first startup, VMTools will send a gratuitous ARP packet using the virtual machine's IP address as the source IP. VMTools without the "IP Conflict Handling" option enabled will not perform packet capture or IP conflict-related actions.

[0107] 2) When an IP conflict occurs, meaning the virtual machine (vmtools) receives one or more gratuitous ARP response packets or receives gratuitous ARP packets from other devices, the Sender IP and Target IP fields of these ARP packets are the IP address of the virtual machine. The virtual machine reports its MAC address, conflicting IP address, and conflicting device MAC address to the cloud platform through vmtools. The conflicting IP address is the virtual machine's IP address, and the conflicting device MAC address is the source MAC address of the received ARP packet (if multiple ARP packets are received, there may be multiple conflicting device MAC addresses). For example, after virtual machine A sends a gratuitous ARP packet, virtual machine B receives the packet and finds that its Sender IP and Target IP are 192.168.1.22. Since virtual machine B also has the IP address 192.168.1.22, virtual machine B generates an IP conflict event. Virtual machine B reports the relevant conflict information to the cloud platform through vmtools. At the same time, virtual machine B also responds to the gratuitous ARP packet. Thus, virtual machine A receives the gratuitous ARP response packet sent by virtual machine B. Virtual machine A finds that its Sender IP and Target IP are 192.168.1.22. Since virtual machine A also has the IP address 192.168.1.22, virtual machine A also generates an IP conflict event. Virtual machine A, likewise, reports the relevant conflict information to the cloud platform through vmtools. (The specific details are as follows...) Figure 4 As shown.

[0108] 3) The cloud platform received two conflict messages in the previous step, generated by virtual machines A and B respectively. Based on the virtual machine MAC address in the conflict message, it queries the virtual machine database to obtain the virtual machine ID and priority ID. It also queries the virtual machine database based on the MAC address of the conflicting device (there may be multiple conflicting device MAC addresses in the conflict message, which need to be queried sequentially). If the conflicting device is a virtual machine, the corresponding virtual machine ID can be found; if the conflicting device is not a virtual machine, for example, a physical dedicated network device (where vmtools cannot be installed), the query result will be empty, meaning the corresponding virtual machine ID cannot be found. Here's a detailed explanation of the scenario where the conflicting device is not a virtual machine: For example, network device X and virtual machine C both use the IP address 172.16.12.77. When virtual machine C sends a gratuitous ARP packet, and network device X receives it, it cannot report the conflict because it cannot install vmtools. However, it can respond to virtual machine C with the same gratuitous ARP packet. When virtual machine C receives the response packet from network device X, it knows that an IP conflict exists and reports this conflict information to the cloud platform. Since only one of the two parties exchanging gratuitous ARP packets has vmtools installed, the cloud platform only receives one conflict message, namely the conflict message sent by virtual machine C.

[0109] 4) The cloud platform aggregates the conflict information reported by each virtual machine's VMtools and forms a [Conflict Information Table], which includes the virtual machine's MAC address, virtual machine ID, conflicting IP, and conflicting device MAC set. The conflicting device MAC set contains several MACs, which may be MACs of other virtual machines or MACs of uncontrolled network devices.

[0110] 5) The cloud platform analyzes the [Conflict Information Table] and automatically groups records with the same conflicting IP address based on the conflicting IP field. Records with the same conflicting IP are grouped together, called a [Conflict Group]. Within a conflict group, a higher priority ID number indicates higher priority, with uncontrolled devices having higher priority than virtual machines. If an uncontrolled network device's MAC address is found in the conflicting device MAC address set within a conflict group, this device has the highest priority, and the conflicting IP is marked as belonging to this uncontrolled device. Other virtual machines are marked as having an [IP pending processing] status. If no uncontrolled device is found, it means the IP conflict occurs between virtual machines. The cloud platform sorts the virtual machines in each conflict group by priority, selects the virtual machine with the highest priority, marks the conflicting IP as belonging to this virtual machine, and marks other virtual machines in the conflict group as having an IP pending processing status. For example... Figure 4In the first conflict group, virtual machine A has the highest priority, and IP address 192.168.1.22 belongs to virtual machine A. Virtual machine B is marked as having an IP address pending processing. In the other conflict group, the cloud platform cannot control network device X, which has a higher priority than virtual machines. IP address 172.16.12.77 belongs to network device X, and virtual machine C is marked as having an IP address pending processing.

[0111] 6) For virtual machines marked as "IP pending", the backup IP pool of the "IP conflict handling policy" preset for the virtual machine is checked first. If an available backup IP exists, the cloud platform calls vmtools to clear the conflicting IP address of the virtual machine's network card to prevent the virtual machine from affecting the network usage of other virtual machines. Then, the cloud platform calls vmtools for further processing according to the virtual machine's network card configuration file. If no available backup IP address exists, the cloud platform does not perform any processing.

[0112] 7) Further processing instructions for step 6: If the virtual machine's network card configuration file is in DHCP mode, then vmtools restarts the virtual machine's network service and, according to the preset [IP conflict handling policy], selects one available backup IP as the requested IP to fill the DHCP option (50) field and sends a DHCP request message; if the network card configuration file is in static mode, according to the preset [IP conflict handling policy], selects an available backup IP and directly configures the backup IP as the virtual machine's new IP through vmtools. If the configured backup IP also has an IP conflict, mark this backup IP as unavailable, and then repeat steps 2-7 until the backup IP has no conflict or there is no available backup IP.

[0113] 8) After the cloud platform completes the backup IP configuration in vmtools, it sends an alarm message to the administrator. The alarm message includes information such as virtual machine ID, virtual machine name, conflicting IP, backup IP, processing content and results.

[0114] The following describes the network address conflict handling apparatus, platform device, virtual machine device, network address conflict handling system, and computer-readable storage medium provided in the embodiments of the present invention. The network address conflict handling apparatus, platform device, virtual machine device, network address conflict handling system, and computer-readable storage medium described below can be referred to in correspondence with the network address conflict handling method described above.

[0115] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a network address conflict handling device provided in an embodiment of the present invention. The device is applied to a platform device and may include:

[0116] Configuration module 501 is used to set up conflict handling services for virtual machine devices, so that virtual machine devices can automatically detect whether there are conflicting devices in the network environment that conflict with their own network addresses based on the conflict handling services, and report conflict information to the platform device through the host machine when a conflicting device is detected.

[0117] The conflict handling module 502 is used to identify conflicting virtual machine devices with network address conflicts based on the received conflict information, and to reconfigure the network address for the conflicting virtual machine devices.

[0118] Optionally, the conflict resolution module 502 may include:

[0119] The backup network address pool acquisition submodule is used to acquire the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located;

[0120] The first configuration submodule is used to reconfigure the network address for the conflicting virtual machine device using the backup network addresses in the target backup network address pool.

[0121] Optionally, the configuration submodule may include:

[0122] The first configuration unit is used to control the conflicting virtual machine device to restart the network service when it is determined that the conflicting virtual machine device is configured with a network address based on the Dynamic Host Configuration Protocol (DHCP). The unit fills the DHCP request message with the backup network address as the request network address and sends the DHCP request message to the DHCP server so that the DHCP server can reconfigure the network address of the conflicting virtual machine device based on the received backup network address.

[0123] The second configuration unit is used to reconfigure the network address of the conflicting virtual machine device using the backup network address when it is determined that the conflicting virtual machine device is configured with a network address in a static manner.

[0124] Optionally, the conflict information includes the conflicting network address, the virtual machine device physical address, and the conflicting device physical address;

[0125] Conflict resolution module 502 may include:

[0126] The first addition submodule is used to mark the virtual machine device corresponding to the physical address of the virtual machine device as a conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address.

[0127] The second addition submodule is used to determine whether the physical address of the conflicting device corresponds to a virtual machine device; if so, the virtual machine device corresponding to the physical address of the conflicting device is marked as a conflicting virtual machine device and added to the conflict group corresponding to the conflicting network address; if not, the non-virtual machine device corresponding to the physical address of the conflicting device is marked as a non-managed device and added to the conflict group corresponding to the conflicting network address.

[0128] The second configuration submodule is used to determine whether the conflict group contains unmanaged devices. If it does, it reconfigures the network addresses of all conflicting virtual machine devices in the conflict group. If it does not, it determines the priority of each conflicting virtual machine device in the conflict group and reconfigures the network addresses of the conflicting virtual machine devices with a priority lower than the highest priority in the conflict group.

[0129] Please refer to Figure 6 , Figure 6 This is a structural block diagram of another network address conflict handling device provided in an embodiment of the present invention. The device is applied to a virtual machine device and may include:

[0130] Configuration module 601 is used to set up conflict handling services under the control of platform devices;

[0131] The conflict detection module 602 is used to detect whether there are conflicting devices in the network environment that conflict with its own network address using the conflict handling service;

[0132] The reporting module 603 is used to report conflict information to the platform device through the host machine when a conflicting device is detected, so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device.

[0133] Optionally, the collision detection module 602 may include:

[0134] The first broadcast submodule is used to generate an Address Resolution Protocol (ARP) request message containing its own network address when the conflict resolution service is started for the first time, and broadcast the ARP request message to the network environment.

[0135] The detection submodule is used to listen for Address Resolution Protocol (ARP) messages in the network environment using the conflict handling service, and determine whether there are conflicting devices in the network environment that conflict with its own network address based on the network address in the ARP message.

[0136] Optionally, the collision detection module 602 may include:

[0137] The second broadcast submodule is used to generate an Address Resolution Protocol (ARP) request message containing its own network address using the conflict handling service when it determines that its own network address has changed, and broadcast the ARP request message to the network environment.

[0138] Please refer to Figure 7 , Figure 7 This is a structural block diagram of a platform device provided in an embodiment of the present invention. The embodiment of the present invention provides a platform device 10, including a processor 11 and a memory 12; wherein, the memory 12 is used to store a computer program; the processor 11 is used to execute the network address conflict handling method provided in the foregoing embodiment when executing the computer program.

[0139] For details regarding the specific process of the above-mentioned network address conflict handling method, please refer to the corresponding content provided in the foregoing embodiments, which will not be repeated here.

[0140] Furthermore, the memory 12, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, and the storage method can be temporary storage or permanent storage.

[0141] In addition, the platform device 10 also includes a power supply 13, a communication interface 14, an input / output interface 15, and a communication bus 16; wherein, the power supply 13 is used to provide operating voltage for each hardware device on the platform device 10; the communication interface 14 can create a data transmission channel between the platform device 10 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this invention, and is not specifically limited here; the input / output interface 15 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0142] Please refer to Figure 8 , Figure 8 This is a structural block diagram of a virtual machine device provided in an embodiment of the present invention. The embodiment of the present invention provides a virtual machine device 20, including a processor 21 and a memory 22; wherein, the memory 22 is used to store computer programs; the processor 21 is used to execute the network address conflict handling method provided in the foregoing embodiment when executing the computer program.

[0143] It should be particularly noted that since the virtual machine device 20 is specifically deployed in the host machine, when describing the hardware structure of the virtual machine device 20, the hardware structure specifically refers to the structure of the host machine in which the virtual machine device 20 is deployed.

[0144] For details regarding the specific process of the above-mentioned network address conflict handling method, please refer to the corresponding content provided in the foregoing embodiments, which will not be repeated here.

[0145] Furthermore, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, and the storage method can be temporary storage or permanent storage.

[0146] In addition, the virtual machine device 20 also includes a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26; wherein, the power supply 23 is used to provide operating voltage for each hardware device on the virtual machine device 20; the communication interface 24 can create a data transmission channel between the virtual machine device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this invention, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0147] Please refer to Figure 1 , Figure 1 This is a structural block diagram of a network address conflict handling system provided in an embodiment of the present invention. The device may include:

[0148] Platform device 10 is used to execute the network address conflict handling method applied to the platform device as described above;

[0149] Virtual machine device 20 is used to execute the network address conflict handling method applied to the virtual machine device as described above.

[0150] Since the embodiments of the system part correspond to the embodiments of the network address conflict handling method part, please refer to the description of the embodiments of the network address conflict handling method part for the embodiments of the system part, and they will not be repeated here.

[0151] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the network address conflict handling method described in any of the above embodiments.

[0152] Since the embodiments of the computer-readable storage medium portion correspond to the embodiments of the network address conflict resolution method portion, the embodiments of the storage medium portion are described in the description of the embodiments of the network address conflict resolution method portion, and will not be repeated here.

[0153] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0154] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0155] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0156] The present invention has provided a detailed description of a network address conflict handling method, apparatus, device, system, and medium. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely illustrative of the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the claims.

Claims

1. A method for handling network address conflicts, characterized in that, Applied to platform devices, the method includes: A conflict resolution service is configured for the virtual machine device, enabling the virtual machine device to automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict resolution service, and to report the conflict information to the platform device through the host machine when the conflicting device is detected; the conflict information includes the conflicting network address, the virtual machine device physical address, and the conflicting device physical address; Mark the virtual machine device corresponding to the physical address of the virtual machine device as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address; Determine whether the physical address of the conflicting device corresponds to a virtual machine device; If so, mark the virtual machine device corresponding to the conflicting physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address; If not, mark the non-virtual machine device corresponding to the conflicting device's physical address as an unmanaged device and add it to the conflict group corresponding to the conflicting network address. Determine whether the conflict group contains uncontrolled devices; If included, reconfigure the network address for all conflicting virtual machine devices in the conflict group; If not included, determine the priority of each conflicting virtual machine device in the conflict group, and reconfigure the network address of the conflicting virtual machine device with a priority lower than the highest priority in the conflict group; reconfiguring the network address of the conflicting virtual machine device includes: Obtain the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located; Select a backup network address in the target backup network address pool that has not been marked with a conflict, and use the backup network address in the target backup network address pool to reconfigure the network address of the conflicting virtual machine device. When there are no available backup network addresses in the target backup network address pool, the corresponding alarm information is output.

2. The network address conflict handling method according to claim 1, characterized in that, The step of reconfiguring the network address of the conflicting virtual machine device using the backup network addresses in the target backup network address pool includes: When it is determined that the conflicting virtual machine device is configured with a network address based on Dynamic Host Configuration Protocol (DHCP), the conflicting virtual machine device is controlled to restart the network service, the backup network address is filled into the DHCP request message as the request network address, and the DHCP request message is sent to the DHCP server so that the DHCP server can reconfigure the network address for the conflicting virtual machine device based on the received backup network address. When it is determined that the conflicting virtual machine device is configured with a network address in a static manner, the network address of the conflicting virtual machine device is reconfigured using the backup network address.

3. A method for handling network address conflicts, characterized in that, Applied to virtual machine devices, the method includes: Set up conflict resolution services under the control of platform devices; The conflict resolution service is used to detect whether there are conflicting devices in the network environment that conflict with its own network address; When the conflicting device is detected, the host machine reports the conflict information to the platform device, so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device. The platform device determines the conflicting virtual machine device based on the conflict information and reconfigures the network address for the conflicting virtual machine device, including: The platform device marks the virtual machine device corresponding to the physical address of the virtual machine device as the conflicting virtual machine device and adds it to the conflict group corresponding to the conflicting network address. Determine whether the physical address of the conflicting device corresponds to a virtual machine device; If so, mark the virtual machine device corresponding to the conflicting physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address; If not, mark the non-virtual machine device corresponding to the conflicting device's physical address as an unmanaged device and add it to the conflict group corresponding to the conflicting network address. Determine whether the conflict group contains uncontrolled devices; If included, reconfigure the network address for all conflicting virtual machine devices in the conflict group; If not included, determine the priority of each conflicting virtual machine device in the conflict group, and reconfigure the network address of the conflicting virtual machine device with a priority lower than the highest priority in the conflict group. The platform device reconfigures the network address for the conflicting virtual machine device, including: Obtain the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located; Select a backup network address in the target backup network address pool that has not been marked with a conflict, and use the backup network address in the target backup network address pool to reconfigure the network address of the conflicting virtual machine device. When there are no available backup network addresses in the target backup network address pool, the corresponding alarm information is output.

4. The network address conflict handling method according to claim 3, characterized in that, The method of using the conflict handling service to detect whether there are conflicting devices in the network environment that conflict with its own network address includes: When the conflict resolution service is started for the first time, the conflict resolution service is used to generate an Address Resolution Protocol Request (ARP) message containing its own network address, and the ARP message is broadcast to the network environment. The conflict handling service monitors Address Resolution Protocol (ARP) messages in the network environment and determines whether there are conflicting devices in the network environment that conflict with its own network address based on the network address in the ARP message.

5. The network address conflict handling method according to claim 4, characterized in that, Also includes: When it is determined that its own network address has changed, it uses the conflict handling service to generate an Address Resolution Protocol (ARP) request message containing its own network address and broadcasts the ARP request message to the network environment.

6. A network address conflict handling device, characterized in that, Applied to platform equipment, the device includes: The configuration module is used to set up a conflict handling service for the virtual machine device, so that the virtual machine device can automatically detect whether there are conflicting devices in the network environment that conflict with its own network address based on the conflict handling service, and report the conflict information to the platform device through the host machine when the conflicting device is detected. The conflict handling module is used to identify conflicting virtual machine devices with network address conflicts based on the received conflict information, and to reconfigure the network address for the conflicting virtual machine devices. The conflict information includes the conflicting network address, the virtual machine device physical address, and the conflicting device physical address; The conflict handling module includes: The first addition submodule is used to mark the virtual machine device corresponding to the virtual machine device physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address. The second addition submodule is used to determine whether the conflicting device physical address corresponds to a virtual machine device; if so, the virtual machine device corresponding to the conflicting device physical address is marked as the conflicting virtual machine device and added to the conflict group corresponding to the conflicting network address; if not, the non-virtual machine device corresponding to the conflicting device physical address is marked as a non-managed device and added to the conflict group corresponding to the conflicting network address. The second configuration submodule is used to determine whether the conflict group contains unmanaged devices; if it does, it reconfigures the network addresses of all conflicting virtual machine devices in the conflict group; if it does not, it determines the priority of each conflicting virtual machine device in the conflict group and reconfigures the network addresses of the conflicting virtual machine devices in the conflict group whose priority is lower than the highest priority in the conflict group. The backup network address pool acquisition submodule is used to acquire the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located; The first configuration submodule is used to select a backup network address in the target backup network address pool that has not been marked with a conflict flag, and to reconfigure the network address of the conflicting virtual machine device using the backup network address in the target backup network address pool; when there is no available backup network address in the target backup network address pool, the corresponding alarm information is output.

7. A network address conflict handling device, characterized in that, Applied to a virtual machine device, the apparatus includes: The configuration module is used to set up conflict handling services under the control of the platform device; The conflict detection module is used to detect whether there are conflicting devices in the network environment that conflict with its own network address using the conflict handling service; The reporting module is used to report conflict information to the platform device through the host machine when the conflicting device is detected, so that the platform device can determine the conflicting virtual machine device based on the conflict information and reconfigure the network address for the conflicting virtual machine device. The platform device determines the conflicting virtual machine device based on the conflict information and reconfigures the network address for the conflicting virtual machine device, including: The platform device marks the virtual machine device corresponding to the physical address of the virtual machine device as the conflicting virtual machine device and adds it to the conflict group corresponding to the conflicting network address. Determine whether the physical address of the conflicting device corresponds to a virtual machine device; If so, mark the virtual machine device corresponding to the conflicting physical address as the conflicting virtual machine device and add it to the conflict group corresponding to the conflicting network address; If not, mark the non-virtual machine device corresponding to the conflicting device's physical address as an unmanaged device and add it to the conflict group corresponding to the conflicting network address. Determine whether the conflict group contains uncontrolled devices; If included, reconfigure the network address for all conflicting virtual machine devices in the conflict group; If not included, determine the priority of each conflicting virtual machine device in the conflict group, and reconfigure the network address of the conflicting virtual machine device with a priority lower than the highest priority in the conflict group. The platform device reconfigures the network address for the conflicting virtual machine device, including: Obtain the target backup network address pool corresponding to the conflicting virtual machine device; each virtual machine device is configured with a corresponding backup network address pool, and the backup network addresses in the backup network address pool are suitable for the network segment where the virtual machine device is located; Select a backup network address in the target backup network address pool that has not been marked with a conflict, and use the backup network address in the target backup network address pool to reconfigure the network address of the conflicting virtual machine device. When there are no available backup network addresses in the target backup network address pool, the corresponding alarm information is output.

8. A platform device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the network address conflict handling method as described in claim 1 or 2 when executing the computer program.

9. A virtual machine device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the network address conflict handling method as described in any one of claims 3 to 5 when executing the computer program.

10. A network address conflict handling system, characterized in that, include: Platform device for executing the network address conflict handling method as described in claim 1 or 2; A virtual machine device for performing the network address conflict handling method as described in any one of claims 3 to 5.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the network address conflict handling method as described in claim 1 or 2 and / or the network address conflict handling method as described in any one of claims 3 to 5.

Citation Information

Patent Citations

  • IP (Internet Protocol) address assignment method and device based on open network operating system

    CN106059888A

  • Resolving network address conflicts

    US20150095505A1