A management method and device for self-organizing network

By generating and synchronizing the URL of the management platform in the ad hoc network and sending the URL when the user terminal accesses, the management domain name resolution failure and DNS hijacking problems caused by the terminal device to directly request the Internet DNS server, and the ad hoc network is realized Normal management and access.

CN115801566BActive Publication Date: 2024-12-06NEW H3C SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211468223.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2024-12-06
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In ad hoc network, terminal devices may directly request an Internet DNS server rather than an AP device, resulting in failed management domain name resolution, and DNS hijacking and security mechanisms may prevent management platform from accessing, resulting in problems such as management platform being unable to access normally.

Method used

By generating the URL of the management platform at the gateway and synchronizing it to other devices when connecting to the Internet, the URL is sent to the terminal when the user terminal accesses to ensure that the terminal can access the management platform for network management. This method can perform URL synchronization through the Link Layer Discovery Protocol (LLDP) and elect a private network address as the management platform URL without an Internet connection.

Benefits of technology

It realizes normal access to management domain names and management of ad hoc networks, ensures that users can use the management platform normally under different network connection environments, simplifies deployment and improves the accessibility of the management platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801566B_ABST
    Figure CN115801566B_ABST
Patent Text Reader

Abstract

The present application provides a management method and device for an ad hoc network, which can be applied to a gateway in an ad hoc network. The method is: when the gateway is connected to the Internet, a uniform resource locator URL of a management platform in the ad hoc network is generated; the URL is synchronized to other devices in the ad hoc network; when a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal accesses the management platform of the ad hoc network based on the URL and performs network management. In this way, normal access to the management domain name is achieved, and access to the ad hoc network is achieved to manage the ad hoc network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer communication technology, and in particular to a management method and device for a self-organizing network. Background Art

[0002] At present, a self-organizing network solution has been launched. In the existing self-organizing network, when the device is connected, the wireless AP device can automatically release the wireless network for management purposes. After the user terminal accesses this wireless network, it will automatically push a network address of a network management platform, such as a URL address. In this way, the user terminal can use a browser to access this network address, and then open the management interface of the network to achieve management of the entire network. When mobile phones, PCs and other terminals request the management domain name in this network address, the device will hijack the user's DNS request and force the response to the IP address of the management platform of this network.

[0003] However, the above processing mechanism has the following problems: when the terminal itself has an Internet connection, the DNS request may not pass through the AP in the above network, but directly request the DNS server of the Internet, then the above management domain name will fail to resolve, resulting in the inaccessibility of the management platform URL. In addition, DNS security is currently receiving increasing attention, and DNS hijacking is also a problem that DNS security needs to solve. If the terminal's DNS adopts a security mechanism, DNS hijacking is likely to be impossible to achieve, and the management domain name will also be inaccessible. Furthermore, when the user has no Internet connection and is not allowed to connect to the Internet, when accessing the above management domain name, they may think that there is a security risk, resulting in unnecessary interpretation costs.

[0004] Therefore, in an ad hoc network, how to achieve normal access to the management domain name and access it to the ad hoc network for network management is one of the technical issues worth considering. Summary of the invention

[0005] In view of this, the present application provides a management method and device for an ad hoc network, which are used to achieve normal access to the management domain name and access to the ad hoc network for network management.

[0006] Specifically, the present application is implemented through the following technical solutions:

[0007] According to a first aspect of the present application, a management method for an ad hoc network is provided, which is applied to a gateway in the ad hoc network; the method comprises:

[0008] When the gateway is connected to the Internet, a uniform resource locator URL of a management platform in the ad hoc network is generated;

[0009] Synchronize the URL to other devices in the ad hoc network;

[0010] When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management.

[0011] According to a second aspect of the present application, there is provided a management device for an ad hoc network, which is arranged in a gateway in the ad hoc network, and the device comprises:

[0012] A generating module, used for generating a uniform resource locator URL of a management platform in the ad hoc network when the gateway is connected to the Internet;

[0013] A synchronization module, used to synchronize the URL to other devices in the ad hoc network;

[0014] The sending module is used to send the URL to the user terminal when the user terminal accesses the self-organizing network, so that the user terminal can access the management platform of the self-organizing network based on the URL and perform network management.

[0015] According to the third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing a computer program that can be executed by the processor, and the processor is prompted by the computer program to execute the method provided in the first aspect of the embodiment of the present application.

[0016] According to the fourth aspect of the present application, a machine-readable storage medium is provided, which stores a computer program. When called and executed by a processor, the computer program prompts the processor to execute the method provided in the first aspect of the embodiment of the present application.

[0017] Beneficial effects of the embodiments of the present application:

[0018] In the management method and device of the ad hoc network provided by the embodiment of the present application, when the ad hoc network where the gateway is located provides a network connection, the gateway will automatically generate the URL of the management platform of the ad hoc network, and then synchronize it to other devices in the ad hoc network. When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management. In this way, the normal use of the management domain name of the management platform and the normal access based on the management domain name are realized, and the management of the ad hoc network based on the management domain name is also realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a method for managing a self-organizing network provided in an embodiment of the present application;

[0020] Figure 2 It is a structural diagram of a management device for an ad hoc network provided in an embodiment of the present application;

[0021] Figure 3 It is a hardware structure diagram of an electronic device for implementing a management method for a self-organizing network provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.

[0023] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.

[0024] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0025] The management method of the self-organizing network provided by this application is described in detail below.

[0026] See also Figure 1 , Figure 1 This is a flow chart of a message processing method provided by the present application. The method can be applied to a gateway in an ad hoc network. When the gateway implements the method, the following steps may be included:

[0027] S101. When the gateway is connected to the Internet, a uniform resource locator URL of a management platform in the ad hoc network is generated.

[0028] In this step, when the gateway in the self-organizing network is connected to the Internet, that is, after the self-organizing network provides network connection, when the gateway is connected to the network, the gateway will automatically generate the URL of the management platform in the self-organizing network according to the set URL generation rules. It should be noted that when generating the URL of the management platform, the generated URL needs to include the management domain name of the management platform, or the URL that can be mapped to the management platform based on the URL. Specifically, the management domain name of the management platform can be obtained first, and then the management domain name can be processed based on the set URL generation rules, so as to obtain a URL that includes the management domain name or can be mapped to the management domain name.

[0029] S102: Synchronize the URL to other devices in the ad hoc network.

[0030] In this step, after the gateway synchronizes the URL to other devices in the ad hoc network, other devices can record the URL of the management platform in their ad hoc network in their own devices, so that operation and maintenance personnel can manage the ad hoc network through the URL recorded in the other devices.

[0031] S103: When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management.

[0032] Specifically, after detecting that the user terminal is connected to the self-organizing network, the gateway can send the URL it generates to the user terminal. In this way, the user terminal can click on this URL. Since the URL includes the management domain name of the management platform, the user terminal can log in to the management platform based on the URL. The management platform will display the management platform interface to the user terminal. In this way, the user can manage the self-organizing network based on the management platform interface.

[0033] It should be noted that the user terminal can be connected to the ad hoc network in a wired or wireless manner, which can be specifically determined according to the network connection environment provided by the ad hoc network.

[0034] In addition, the user terminal may also access the self-organizing network by accessing other devices. At this time, when other devices detect that the user terminal is connected to the network of the self-organizing network, the other devices can send the URL of the management platform to the user terminal so that the user can use the URL to log in to the management platform, thereby managing the self-organizing network by controlling the management platform.

[0035] By implementing the management method of the ad hoc network provided by the present application, when the ad hoc network where the gateway is located provides a network connection, the gateway will automatically generate the URL of the management platform of the ad hoc network, and then synchronize it to other devices in the ad hoc network. When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management. In this way, the normal use of the management domain name of the management platform and the normal access based on the management domain name are realized, and the management of the ad hoc network based on the management domain name is also realized.

[0036] Optionally, based on the above embodiment, in this embodiment, step S102 may be performed according to the following method: encapsulating the URL into a link layer discovery protocol LLDP message; and synchronizing the LLDP message encapsulating the URL to other devices.

[0037] Specifically, the present application proposes to use the Link Layer Discovery Protocol (LLDP) to synchronize the URL of the management platform. Specifically, the URL is carried in the DATA in the LLDP format message, and the URL is encapsulated in the LLDPDU. The content of the basic TLV of the LLDPDU is shown in Table 1:

[0038] Table 1

[0039]

[0040] The management address Management Address in Table 1 can be a management address for a single device. On this basis, a management platform TLV can be added to the TLV of LLDPDU, that is, the TLV shown in Table 2 is added on the basis of Table 1:

[0041] Table 2

[0042] TLV Name illustrate Is it necessary to publish Smart Selfnet Management URL URL of the management platform of the ad hoc network no

[0043] In this way, after the gateway generates the URL of the management platform of the self-organizing network, it can write it into the Smart Selfnet Management URL field in the LLDPDU, thereby obtaining an LLDP message containing the URL. In this way, the gateway can transmit the URL in the self-organizing network through the LLDP message, so that each device in the self-organizing network can obtain the URL of the management platform, that is, the management address for managing the self-organizing network. As a result, each device in the self-organizing network has the ability to push the URL of the management platform to users accessing the self-organizing network, which greatly simplifies the deployment of the self-organizing network and better realizes the management of the self-organizing network.

[0044] Optionally, the user terminal may be, but is not limited to, a smart phone, a PC, an IPAD, etc.

[0045] Optionally, based on any of the above embodiments, in this embodiment, before executing step S102, the following process may be performed: confirming that the URL is legal.

[0046] Specifically, after the gateway generates the URL, it can determine the management domain name based on the URL, and then use the management domain name to register with the DDNS service. After the registration is successful, the management domain name can be confirmed to be legal, that is, the URL is confirmed to be legal. After confirming that the URL is legal, the URL is sent to other devices in the ad hoc network.

[0047] Specifically, the legitimacy of the URL can be determined in the following way: the gateway, as a DDNS client, submits a domain name request to the DDNS server, and the domain name request carries the management domain name determined based on the URL. After receiving the domain name request, the DDNS server can first check the legitimacy of the requester, that is, check whether the requester's account is legal. If it is legal, the management domain name is parsed from the domain name request, and the management domain name is checked for legality, such as whether the management domain name complies with the domain name naming rules, whether it is a management domain name pre-registered by other requesters, etc. When the management domain name is confirmed to be legal, it is then determined whether the requester's IP is legal. If the IP is legal, the corresponding relationship between the management domain name and the IP is added to the corresponding relationship maintained by the DDNS server itself.

[0048] On this basis, when a user terminal, such as a client using the HTTP protocol, uses the URL provided by the gateway to access the service, the gateway will perform domain name resolution processing to obtain the management domain name, and then send it to the DDNS server. In this way, the DDNS server can return the IP address corresponding to the management domain name to the gateway. In this way, the gateway can feedback the IP address to the user terminal. In this way, the user terminal can log in to the management platform in the self-organizing network based on the IP address, and then realize the management of the self-organizing network through the management platform.

[0049] It is worth noting that when determining the management domain name based on the URL, if the management domain name is carried in the URL, the management domain name can be directly parsed from the URL. If there is a mapping relationship between the URL and the management domain name, the management domain name can be determined based on the mapping rule.

[0050] Optionally, based on any of the above embodiments, when the ad hoc network does not have a gateway and the ad hoc network does not provide Internet services, or the gateway in the ad hoc network is not connected to the Internet, the private network address of the target device elected by the devices in the ad hoc network is used as the URL of the management platform in the ad hoc network and synchronized to other devices.

[0051] Specifically, when the ad hoc network cannot provide Internet connection, the gateway cannot connect to the Internet at this time, or when there is no gateway in the ad hoc network and the ad hoc network does not provide Internet services, the devices in the ad hoc network can automatically elect a device as a management device to assume the management platform of the ad hoc network function, which is recorded as the above-mentioned target device. After the target device is elected, the local private network address of the target device can be pushed in the ad hoc network as the domain name of the management platform. In this way, when the user terminal accesses the ad hoc network, since the devices in the ad hoc network have obtained the private network address of the target device, any device can send the private network address of the target device as the URL of the management platform to the user terminal. Then, after the user terminal receives the private network address, it can confirm that the ad hoc network it has accessed has no Internet connection, and can randomly use the private network address to access, and then log in to the management platform of the ad hoc network based on the private network address, thereby realizing the management of the ad hoc network based on the management platform.

[0052] Furthermore, in this embodiment, the target device selected is a device with a private network address in the self-organizing network; when there are at least two devices with private network addresses in the self-organizing network, the target device is actively selected by the device whose bridge MAC address is smaller than the bridge MAC address in the broadcast message.

[0053] Specifically, take the example of TM, TC1~TC3 in the self-organizing network (VLAN). After the four devices are initially powered on, they can use the second layer message to broadcast their bridge MAC addresses and the IP address of the self-organizing network every 15 seconds; if other devices do not have IP addresses, the device with IP address will become the target device. If other devices also have IP addresses, any device finds that its bridge MAC address is smaller than the bridge MAC address in the broadcast message during the election, then the device can send a broadcast message to announce its bridge MAC address until the broadcast message is confirmed by other devices, that is, there is no MAC address smaller than the bridge MAC in the broadcast message in the self-organizing network. At this time, the smallest MAC address can be confirmed as the target device. In this way, the election of the target device supporting the management platform is realized when there is no Internet service in the self-organizing network or there is no gateway in the self-organizing network, so as to better realize the management of the self-organizing network.

[0054] Based on the same inventive concept, the present application also provides a management device for an ad hoc network corresponding to the management method for the ad hoc network. The implementation of the management device for the ad hoc network can be specifically referred to the description of the management method for the ad hoc network, which will not be discussed here one by one.

[0055] See also Figure 2 , Figure 2A management device for an ad hoc network provided by an exemplary embodiment of the present application, a giant device can be arranged in a gateway in the ad hoc network, and the device includes:

[0056] A generating module 201, configured to generate a uniform resource locator URL of a management platform in the ad hoc network when the gateway is connected to the Internet;

[0057] A synchronization module 202, used to synchronize the URL to other devices in the ad hoc network;

[0058] The sending module 203 is used to send the URL to the user terminal when the user terminal accesses the ad hoc network, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management.

[0059] By providing the management device of the ad hoc network of this embodiment, when the ad hoc network where the gateway is located provides a network connection, the gateway will automatically generate the URL of the management platform of the ad hoc network, and then synchronize it to other devices in the ad hoc network. When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management. In this way, the normal use of the management domain name of the management platform and the normal access based on the management domain name are realized, and the management of the ad hoc network based on the management domain name is also realized.

[0060] Optionally, based on the above embodiment, the synchronization module 202 in this embodiment is specifically used to encapsulate the URL into a link layer discovery protocol LLDP message; and synchronize the LLDP message encapsulating the URL to other devices.

[0061] Optionally, based on the above embodiments, in this embodiment, when the self-organizing network does not have a gateway and the self-organizing network does not provide Internet services, or the gateway in the self-organizing network is not connected to the Internet, the private network address of the target device elected by the devices in the self-organizing network is used as the URL of the management platform in the self-organizing network and synchronized to other devices.

[0062] Furthermore, the selected target device is a device with a private network address in the self-organizing network; when there are at least two devices with private network addresses in the self-organizing network, the target device is actively selected by the device whose bridge MAC address is smaller than the bridge MAC address in the broadcast message.

[0063] Based on any of the above embodiments, the management device for an ad hoc network provided in this embodiment may further include:

[0064] The determination module (not shown in the figure) is used to confirm that the URL is legal before the synchronization module synchronizes the URL to other devices in the ad hoc network.

[0065] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can be a gateway in the above-mentioned ad hoc network. Figure 3 As shown, the electronic device may include a processor 301 and a machine-readable storage medium 302, the machine-readable storage medium 302 stores a computer program that can be executed by the processor 301, and the processor 301 is prompted by the computer program to execute the management method of the self-organizing network provided in any embodiment of the present application. In addition, the electronic device also includes a communication interface 303 and a communication bus 304, wherein the processor 301, the communication interface 303, and the machine-readable storage medium 302 communicate with each other through the communication bus 304.

[0066] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0067] The communication interface is used for communication between the above electronic device and other devices.

[0068] The machine-readable storage medium 302 may be a memory, which may include a random access memory (RAM), a DDR SRAM (Double Data Rate Synchronous Dynamic Random Access Memory), or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0069] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0070] As for the electronic device and machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0071] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0072] The implementation process of the functions and effects of each unit / module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0073] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units / modules described as separate components may or may not be physically separated, and the components displayed as units / modules may or may not be physical units / modules, that is, they may be located in one place, or they may be distributed on multiple network units / modules. Some or all of the units / modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.

[0074] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for managing an ad hoc network, characterized in that: Applied to a gateway in a self-organizing network; the method comprises: When the gateway is connected to the Internet, a uniform resource locator URL of a management platform in the ad hoc network is generated; Synchronize the URL to other devices in the ad hoc network; When the gateway in the ad hoc network is not connected to the Internet, the private network address of the target device selected by the devices in the ad hoc network is used as the URL of the management platform in the ad hoc network and synchronized to other devices; When a user terminal accesses the ad hoc network, the URL is sent to the user terminal, so that the user terminal can access the management platform of the ad hoc network based on the URL and perform network management.

2. The method according to claim 1, characterized in that: Synchronizing the URL to other devices in the ad hoc network includes: Encapsulating the URL into a Link Layer Discovery Protocol (LLDP) message; The LLDP message encapsulating the URL is synchronized to other devices.

3. The method according to claim 1, characterized in that The selected target device is a device with a private network address in the ad hoc network; when there are at least two devices with private network addresses in the ad hoc network, the target device is actively selected by a device whose bridge MAC address is smaller than the bridge MAC address in the broadcast message.

4. The method according to claim 1, characterized in that: Before synchronizing the URL to other devices in the ad hoc network, the method further includes: Confirm that the URL is legitimate.

5. A management device for an ad hoc network, characterized in that: The device is arranged in a gateway in a self-organizing network, and comprises: A generating module, used for generating a uniform resource locator URL of a management platform in the ad hoc network when the gateway is connected to the Internet; A synchronization module, used to synchronize the URL to other devices in the ad hoc network; when the gateway in the ad hoc network is not connected to the Internet, the private network address of the target device selected by the devices in the ad hoc network is used as the URL of the management platform in the ad hoc network, and synchronized to other devices; The sending module is used to send the URL to the user terminal when the user terminal accesses the self-organizing network, so that the user terminal can access the management platform of the self-organizing network based on the URL and perform network management.

6. The device according to claim 5, characterized in that The synchronization module is specifically used to encapsulate the URL into a link layer discovery protocol LLDP message; and synchronize the LLDP message encapsulating the URL to other devices.

7. The device according to claim 5, characterized in that The selected target device is a device with a private network address in the ad hoc network; when there are at least two devices with private network addresses in the ad hoc network, the target device is actively selected by a device whose bridge MAC address is smaller than the bridge MAC address in the broadcast message.

8. The device according to claim 5, characterized in that Also includes: The determination module is used to confirm that the URL is legal before the synchronization module synchronizes the URL to other devices in the ad hoc network.