A method, system, device and storage medium for coexistence of multiple DHCP services
Through the DHCP service of the VOI controller, we can determine whether the user has a DHCP service, and reasonably allocate the IP address according to the response path and data packet content, solving the problem that multiple DHCP services coexist, resulting in the inability to access the VOI cloud desktop, and achieving the effect of users to smoothly access and reinstalling the cloud desktop.
Patent Information
- Application Number
- CN202211571064.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-12-08
AI Technical Summary
In a local area network where multiple DHCP services coexist, the prior art is difficult to ensure that users can successfully access the VOI cloud desktop, resulting in the possibility of starting the VOI cloud desktop.
Through the DHCP service of the VOI controller, the user's access response is received, and the user determines whether the user has a DHCP service. If it does not exist, the IP address is assigned; if it exists, the response path is determined from the PXE network, and whether the data packet contains a specific field, such as the BOOTROM field, and the IP address is assigned if the conditions are met.
It realizes that DHCP services are allocated reasonably in a local area network where multiple DHCP services coexist, ensuring that users can smoothly access the VOI cloud desktop and avoid affecting users' normal Internet experience.
Smart Images

Figure CN116016443B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a method, system, device and storage medium for coexistence of multiple DHCP services. Background Art
[0002] LANs typically have a DHCP service, which helps clients (hosts / terminals) obtain IP addresses and achieve network connectivity. However, lack of standardized DHCP configuration within a LAN can lead to DHCP overuse, impacting the user experience. For example, if a user already has a DHCP service before accessing the VOI Cloud Desktop, the user's network service will not be replaced by the cloud desktop's DHCP service when accessing the existing VOI Cloud Desktop. However, upon accessing the VOI Cloud Desktop, the user must reinstall the VOI Desktop. Reinstalling the PXE network requires the cloud desktop's DHCP to distribute a filename, which the VOI Cloud Desktop downloads during the reinstallation process, allowing for a successful boot and reinstallation. If the user's DHCP service is not replaced, the VOI Cloud Desktop may fail to start. Therefore, the question of how to properly distribute DHCP applications within a LAN with multiple DHCP servers, ensuring smooth user experience for the VOI Cloud Desktop, remains a pressing issue. Summary of the Invention
[0003] In view of the above-mentioned drawbacks, the object of the present invention is to provide a method, system, device and storage medium for coexistence of multiple DHCP services, so as to solve the problem that multiple DHCP servers are difficult to coexist.
[0004] To achieve this purpose, the present invention adopts the following technical solution: a method for coexistence of multiple DHCP services, comprising the following steps:
[0005] Step S1: Receive an access response from the user and determine whether the current user has a DHCP service. If not, the DHCP service of the VOI controller allocates an IP address to the user. If so, execute step S2.
[0006] Step S2: Obtain the source of the response path accessed by the user and determine whether the response path comes from the PXE network. If not, the DHCP service of the VOI controller does not assign an IP address to the user. If so, execute step S3.
[0007] Step S3: Analyze the data packet transmitted when the user accesses and determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
[0008] Preferably, the specific field is a BOOTROM field.
[0009] Preferably, the specific process of the DHCP service of the VOI controller allocating an IP address to a user is as follows:
[0010] The DHCP server allocates IP addresses to users from the address pool according to the configured IP segments and through a dynamic allocation mechanism.
[0011] A system for coexistence of multiple DHCP services uses a method for coexistence of multiple DHCP services, including a response module, a first judgment module, and a second judgment module;
[0012] The response module is used to receive an access response from the user, determine whether the current user has a DHCP service, if not, the DHCP service of the VOI controller allocates an IP address to the user, if yes, call the first judgment module;
[0013] The first judgment module is used to obtain a response path for user access and determine whether the response path is from a PXE network. If not, the DHCP service of the VOI controller does not allocate an IP address to the user. If so, the second judgment module is called;
[0014] The second judgment module is used to analyze the data packet transmitted when the user accesses and determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
[0015] Preferably, the second judgment module further includes a specific field retrieval module, and the specific field retrieval module is used to retrieve whether there is a BOOTROM field in the data packet, and respond with the BOOTROM field as the specific field of the second judgment module.
[0016] Preferably, it also includes an IP allocation module, which is used to allocate IP addresses to users from the address pool according to the configured IP segments through a dynamic allocation mechanism.
[0017] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, a method for coexistence of multiple DHCP services is implemented.
[0018] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for coexistence of multiple DHCP services.
[0019] One of the above technical solutions has the following advantages or beneficial effects: it can enable multiple DHCP servers in the local area network to reasonably allocate IP addresses without affecting the user's normal Internet experience, and can ensure that users can reinstall smoothly after entering the cloud desktop, ultimately achieving the coexistence of multiple DHCP servers without affecting the DHCP service of the customer's existing network. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of an embodiment of the method of the present invention.
[0021] Figure 2 It is a structural diagram of an embodiment of the system of the present invention. DETAILED DESCRIPTION
[0022] The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention.
[0023] In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "plurality" means two or more, unless otherwise specifically specified.
[0024] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, "plurality" means two or more. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0025] like Figures 1-2 As shown, a method for coexistence of multiple DHCP services includes the following steps:
[0026] Step S1: Receive an access response from the user and determine whether the current user has a DHCP service. If not, the DHCP service of the VOI controller allocates an IP address to the user. If so, execute step S2.
[0027] Step S2: Obtain the source of the response path accessed by the user and determine whether the response path comes from the PXE network. If not, the DHCP service of the VOI controller does not assign an IP address to the user. If so, execute step S3.
[0028] Step S3: Analyze the data packet transmitted when the user accesses and determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
[0029] To ensure the proper operation of multiple DHCP servers within a cloud desktop and enable smooth user access to the cloud desktop, the present invention first determines whether the user accessing the cloud desktop currently has their own DHCP server. If not, the VOI controller provides the user with a corresponding DHCP server and assigns them an IP address. When the user needs to use the cloud desktop, the DHCP server assigns a filename field to the user. When the cloud desktop is reinstalled, the reinstallation file can be downloaded to the filename field, enabling a smooth reinstallation. However, some users access the cloud desktop with DHCP already installed, requiring further evaluation. First, the present invention evaluates the user's access response path. If the access response path originates from a PXE network, this indicates that the user may need to reinstall. In this case, the cloud desktop's DHCP server will assign an IP address to the user, thereby obtaining a filename and enabling smooth access and use of the cloud desktop. If the user's access response path originates from a PXE network, this indicates that the user does not need to reinstall the cloud desktop, and therefore, no IP address needs to be assigned. Therefore, there is no need to call the VOI controller to control the DHCP server.
[0030] However, if the user's corresponding path originates from the PXE network, it is not necessary to reinstall the cloud desktop. Directly replacing the current user's DHCP would affect the current user's normal Internet access. Therefore, in the present invention, after determining that the user's corresponding path originates from the PXE network, data packet analysis is required. Because the user will bring a data packet when accessing, if the user needs to reinstall, the data packet will store a specific field for responding to the reinstall function. Therefore, after filtering out the specific field in the data packet, the VOI controller's DHCP service will allocate an IP address to the user, ensuring that the user's cloud desktop can be successfully reinstalled.
[0031] In the present invention, multiple DHCP servers in the local area network can reasonably allocate IP addresses without affecting the user's normal Internet experience. It can ensure that users can reinstall smoothly after entering the cloud desktop, and ultimately achieve the coexistence of multiple DHCP servers without affecting the DHCP service of the customer's existing network.
[0032] Preferably, the specific field is a BOOTROM field.
[0033] A cloud desktop can be generally understood as an enhanced diskless system. Instead of using the local hard drive to boot the system, it obtains a boot image from a designated server on the network, downloads it to the local machine, and then boots the machine. When booting a cloud desktop on a local area network, the user sends a boot request signal to the server. Upon receiving the signal, the server, based on various mechanisms, sends the boot data to the workstation. After the workstation downloads the boot data, system control is transferred from the BootROM to the filename in memory, and the operating system is reinstalled. Therefore, this data contains a BOOTROM field. Filtering for the BOOTROM field indicates that the user is reinstalling or booting the cloud desktop system. The VOI controller's DHCP service then assigns an IP address to the user, allowing the reinstall data to be correctly transferred to the filename, allowing the cloud desktop to be reinstalled and booted.
[0034] Preferably, the specific process of the DHCP service of the VOI controller allocating an IP address to a user is as follows:
[0035] The DHCP server allocates IP addresses to users from the address pool according to the configured IP segments and through a dynamic allocation mechanism.
[0036] Cloud desktop applications are typically used only when a user has specific needs or their computer hardware is unable to support a particular application. Therefore, most users do not use them for extended periods of time. Dynamic allocation, on the other hand, is suitable for scenarios where a host requires temporary network access or where the number of free addresses is less than the total number of hosts on the network and the host does not require a permanent connection. This aligns with cloud desktop usage scenarios and facilitates IP address management.
[0037] A system for coexistence of multiple DHCP services uses a method for coexistence of multiple DHCP services, including a response module, a first judgment module, and a second judgment module;
[0038] The response module is used to receive an access response from the user, determine whether the current user has a DHCP service, if not, the DHCP service of the VOI controller allocates an IP address to the user, if yes, call the first judgment module;
[0039] The first judgment module is used to obtain a response path for user access and determine whether the response path is from a PXE network. If not, the DHCP service of the VOI controller does not allocate an IP address to the user. If so, the second judgment module is called;
[0040] The second judgment module is used to analyze the data packet transmitted when the user accesses and determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
[0041] Preferably, the second judgment module further includes a specific field retrieval module, and the specific field retrieval module is used to retrieve whether there is a BOOTROM field in the data packet, and respond with the BOOTROM field as the specific field of the second judgment module.
[0042] Preferably, it also includes an IP allocation module, which is used to allocate IP addresses to users from the address pool according to the configured IP segments through a dynamic allocation mechanism.
[0043] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, a method for coexistence of multiple DHCP services is implemented.
[0044] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for coexistence of multiple DHCP services.
[0045] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0046] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A method for coexistence of multiple DHCP services, characterized in that: The following steps are involved: Step S1: receiving an access response from the user, determining whether the current user has a DHCP service, if not, the DHCP service of the VOI controller allocates an IP address to the user, if yes, executing step S2; Step S2: Obtain the source of the response path accessed by the user, and determine whether the response path comes from the PXE network. If not, the DHCP service of the VOI controller does not allocate an IP address to the user. If so, execute step S3; Step S3: Analyze the data packet transmitted when the user accesses to determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
2. A method for coexistence of multiple DHCP services according to claim 1, characterized in that: The specific field is a BOOTROM field.
3. The method for coexistence of multiple DHCP services according to claim 1, characterized in that: The specific process of the DHCP service of the VOI controller assigning an IP address to a user is as follows: The DHCP server allocates IP addresses to users from the address pool according to the configured IP segment and through a dynamic allocation mechanism.
4. A system for coexistence of multiple DHCP services, using the method according to any one of claims 1 to 3, characterized in that: It includes a response module, a first judgment module and a second judgment module; The response module is used to receive an access response from the user, determine whether the current user has a DHCP service, if not, the DHCP service of the VOI controller allocates an IP address to the user, if yes, call the first determination module; The first judgment module is used to obtain the response path of the user access, and judge whether the response path comes from the PXE network. If not, the DHCP service of the VOI controller does not allocate an IP address to the user. If so, the second judgment module is called; The second judgment module is used to analyze the data packet transmitted when the user accesses, and determine whether there is a specific field in the data packet. If so, the DHCP service of the VOI controller allocates an IP address to the user. If not, the DHCP service of the VOI controller does not allocate an IP address to the user.
5. A system for coexistence of multiple DHCP services according to claim 4, characterized in that: The second judgment module further includes a specific field retrieval module, and the specific field retrieval module is used to retrieve whether there is a BOOTROM field in the data packet, and respond with the BOOTROM field as the specific field of the second judgment module.
6. A system for coexistence of multiple DHCP services according to claim 4, characterized in that: It also includes an IP allocation module, which is used to allocate IP addresses to users from the address pool according to the configured IP segments through a dynamic allocation mechanism.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Intelligent access system and intelligent access method for IDV cloud desktop
CN108306969A
Virtual desktop system and virtual desktop control method
CN108694065A