Equipment zero-configuration online method, device and system, server and medium

By analyzing and aggregating the identification information of the device and finding the corresponding management network configuration information, the problem of low efficiency of zero configuration and online equipment in multiple business scenarios is solved, adaptive network configuration is realized, and the efficiency of online equipment is improved.

CN120075040APending Publication Date: 2025-05-30RUIJIE NETWORKS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311641645.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In multiple business scenarios, the existing technology cannot realize adaptive selection of network configuration, resulting in low efficiency of zero configuration on-line equipment.

Method used

By analyzing the target message sent by the aggregation device in the area where the access device is located, finding the management network configuration information corresponding to the aggregation device identification information, and sending it to the access device to realize adaptive network configuration.

Benefits of technology

It improves the efficiency of zero configuration of equipment online, so that access devices can be quickly launched in multiple business scenarios and adapt to different network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075040A_ABST
    Figure CN120075040A_ABST
Patent Text Reader

Abstract

The invention provides an equipment zero-configuration online method, device and system, a server and a medium, and relates to the technical field of communication. The method is applied to a configuration server, and comprises the following steps: in response to a target message sent by a convergence device in an area where an access device is located, analyzing identification information of the convergence device carried in the target message, and searching management network configuration information corresponding to the identification information of the convergence device from a preset association relationship table; wherein different convergence devices are located in different areas; and sending the management network configuration information to the access device, so that the access device is online according to the management network configuration information. According to the mode, the adaptability and efficiency of zero-configuration online of the equipment are improved in a multi-service scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a method, apparatus, system, server, and medium for a device to go online without configuration. Background Art

[0002] The Dynamic Host Configuration Protocol (DHCP) is a network configuration protocol that is optimized and extended based on the Bootstrap Protocol (BOOTP). With the continuous expansion of the network scale and the increase in the number of devices, the method of manually configuring devices has become increasingly infeasible. Therefore, the method for a device to go online without configuration has emerged, aiming to simplify the device deployment and management processes and improve the scalability and usability of the network. Summary of the Invention

[0003] Each exemplary embodiment of this application provides a method, apparatus, system, server, and medium for a device to go online without configuration, to solve the problem of low efficiency of device zero-configuration online due to the inability to adaptively select network configurations in multi-service scenarios.

[0004] According to the first aspect of this application, a method for a device to go online without configuration is provided, which is applied to a configuration server and includes:

[0005] In response to a target message sent by an aggregation device within the area where the access device is located, parse the identification information of the aggregation device carried in the target message, and look up the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; where different aggregation devices are located in different areas;

[0006] Send the management network configuration information to the access device for the access device to go online according to the management network configuration information.

[0007] In this application, different aggregation devices are located in different areas. Based on this, for any service scenario, the access device can achieve adaptive selection of management network configuration information based on the communication between the aggregation device corresponding to the service scenario and the configuration server, thereby improving the efficiency of device zero-configuration online.

[0008] Optionally, the target message is a DHCP Discover message relayed by the aggregation device, and the aggregation device relays the DHCP Discover message to the configuration server. The configuration server, as an automatic configuration device, enables the DHCP service and receives the DHCP Discover message relayed by the aggregation device.

[0009] Optionally, before responding to the target message sent by the aggregation device in the area where the access device is located, the method further includes:

[0010] For each service scenario, construct the management network configuration information of the service scenario, and match the identification information of the aggregation device corresponding to the service scenario.

[0011] Associate the management network configuration information of each service scenario and the identification information of the aggregation device respectively to obtain a preset association relationship table.

[0012] In this application, a preset association relationship table is established in advance. Under multiple service scenarios, the management network configuration information corresponding to the identification information of the aggregation device can be found based on the preset association relationship table, and then the management network configuration information can be adaptively sent to the access device, thereby improving the zero-configuration online efficiency of the device.

[0013] Optionally, the sending the management network configuration information to the access device includes:

[0014] Encapsulate the management network configuration information in the first field of the response message, and send the response message to the access device through the core device and the aggregation device; or,

[0015] Encapsulate the service address of the configuration server in the management network configuration information in the second field of the response message, encapsulate the other information in the management network configuration information in the first field of the response message, and send the response message to the access device through the core device and the aggregation device.

[0016] In this application, by encapsulating the management network configuration information in the first field of the response message, the security of the management network configuration information can be improved. By encapsulating the service address of the configuration server in the second field of the response message, technical support can be provided for subsequent update of the management network configuration information.

[0017] Optionally, the response message is a DHCP Offer message. The second field is the Option43 field.

[0018] Optionally, after sending the response message to the access device, the method further includes:

[0019] When the access device establishes a keep-alive connection with the configuration server according to the service address of the configuration server, in response to the update operation of the management network configuration information by the configuration server, send management network configuration update information to the access device through a preset protocol.

[0020] Based on the ability of this application to establish a keep-alive connection with the configuration server using the service address of the configuration server, it can achieve rapid updates of the management network configuration.

[0021] Optionally, the preset protocol is the CWMP protocol.

[0022] Optionally, other information in the management network configuration information includes at least one of the following: gateway IP address, subnet mask, client IP address of the access device, and service configuration information.

[0023] In the embodiments of this application, the management network configuration information for all service scenarios is managed by the configuration server. This management network configuration information is comprehensive in content, so it can provide rich and available data for the zero-configuration online of access devices.

[0024] Optionally, the target message is obtained by the aggregation device adding the identification information of the aggregation device to the specified field of the original message, and the original message is a Dynamic Host Configuration Protocol (DHCP) message initiated after the access device accesses the network with no configuration.

[0025] Optionally, the specified field of the original message is the Giaddr field, and the identification information of the aggregation device is the IP address of the aggregation device. The target message is obtained by the aggregation device adding the IP address of the aggregation device to the Giaddr field of the DHCP Discover message.

[0026] In this application, the access device accesses the network with no configuration and sends the original message, providing technical support for the subsequent aggregation device to add the identification information of the aggregation device to the original message, thereby improving the adaptability of zero-configuration online of devices in multiple service scenarios.

[0027] According to the second aspect of this application, there is provided a device zero-configuration online device, which is applied to a configuration server and includes:

[0028] A parsing and searching module, configured to, in response to a target message sent by an aggregation device in the area where the access device is located, parse out the identification information of the aggregation device carried in the target message, and search for the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; where different aggregation devices are in different areas;

[0029] A sending module, configured to send the management network configuration information to the access device for the access device to go online according to the management network configuration information.

[0030] In the device zero-configuration online device of the present application, different aggregation devices are located in different regions. Based on this, for any service scenario, the access device can realize the adaptive selection of the management network configuration information based on the communication between the aggregation device corresponding to the service scenario and the configuration server, thereby improving the efficiency of device zero-configuration online.

[0031] According to the third aspect of the present application, a device zero-configuration online system is provided, including: a plurality of aggregation devices, a core device, and a configuration server; each of the aggregation devices is connected to the configuration server through the core device; different aggregation devices are located in different regions;

[0032] The aggregation device within the area where the access device is located is used to generate a target message and send the target message to the configuration server through the core device;

[0033] The configuration server is used to parse the identification information of the aggregation device within the area where the access device is located carried in the target message, and search for the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table;

[0034] The configuration server is further used to send the management network configuration information to the access device for the access device to go online according to the management network configuration information.

[0035] In the device zero-configuration online system of the present application, different aggregation devices are located in different regions. Based on this, for any service scenario, the access device can realize the adaptive selection of the management network configuration information based on the communication between the aggregation device corresponding to the service scenario and the configuration server, thereby improving the efficiency of device zero-configuration online.

[0036] According to the fourth aspect of the present application, a configuration server is provided, including: at least one processor and a memory;

[0037] The memory stores computer execution instructions;

[0038] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the device zero-configuration online method described in the first aspect above.

[0039] According to the fifth aspect of the present application, a computer-readable storage medium is provided, in which computer execution instructions are stored, and when the computer execution instructions are executed by a processor, they are used to implement the device zero-configuration online method described in the first aspect above.

[0040] According to a sixth aspect of the present application, there is provided a computer program product including a computer program which, when executed by a processor, implements the method for a device to go online with zero configuration described in the first aspect.

[0041] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application and, together with the specification, are used to explain the principles of the present application.

[0043] Figure 1 FIG. is an overall network topology diagram of a device zero-configuration online system provided by an embodiment of the present application;

[0044] Figure 2 FIG. is a flowchart of a method for a device to go online with zero configuration provided by an embodiment of the present application;

[0045] Figure 3 FIG. is a flowchart of another method for a device to go online with zero configuration provided by an embodiment of the present application;

[0046] Figure 4 FIG. is a flowchart of network configuration update provided by an embodiment of the present application;

[0047] Figure 5 FIG. is a structural diagram of a device zero-configuration online device provided by an embodiment of the present application;

[0048] Figure 6 FIG. is a structural diagram of a configuration server provided by an embodiment of the present application.

[0049] Through the above accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] Here, the exemplary embodiments will be described in detail, and the examples 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.

[0051] In a traditional network environment, the online process of devices usually requires cumbersome configuration steps, including manually setting network parameters such as IP addresses, subnet masks, gateways, etc. For scenarios of large-scale deployment and management of devices, this requires a large amount of time and human resources. In addition, since the manual configuration process is prone to errors, it may lead to network failures and security risks.

[0052] With the continuous expansion of the network scale and the increase in the number of devices, the method of manually configuring devices has become increasingly infeasible. Therefore, zero-configuration device online came into being, aiming to simplify the device deployment and management processes and improve the scalability and usability of the network.

[0053] Facing the continuous expansion of the network scale and the increase in the number of devices, the zero-configuration device online method shows important value. Currently, the main solutions are as follows:

[0054] 1. DHCP startup method combined with manufacturer information

[0055] Receive the DHCP discovery message sent by the connected access device. The DHCP discovery message carries a manufacturer information field through Option; according to the manufacturer information field carried in the DHCP discovery message, match the associated scope policy, and allocate an IP address to the access device according to the scope policy; according to the manufacturer information field carried in the DHCP discovery message, match the associated configuration file, and send the matched configuration file to the access device; among them, the configuration file includes a template file name, and the scope policy and template file name are received from the SDN configuration server and are generated by the SDN configuration server according to the manufacturer information; the access device is used to complete the configuration according to the configuration file.

[0056] 2. DHCP startup method combined with mobile terminals

[0057] Set up an address pool in the configuration server, create a device configuration template, and generate a configuration file according to the configuration template. At the same time, establish the correspondence between the IP addresses in the address pool and the configuration files. Send the correspondence to the mobile terminal through the configuration server. The mobile terminal inputs the MAC address (Media Access Control Address) of the device and adds the MAC address to the above correspondence, so that the MAC address corresponds to the IP address and the configuration file. The mobile terminal sends the relationship to the configuration server, and the configuration server then sends the relationship to the DHCP server. After the device is powered on, the DHCP server allocates the IP address corresponding to the device MAC relationship and sends the IP address of the configuration server to the device. The device sends a configuration file acquisition request according to the IP address of the configuration server, and the configuration server searches for the corresponding device configuration file according to the above relationship and sends the configuration file to the device.

[0058] When the above-mentioned Method 1 is in the initial stage, it can only allocate the manufacturer's default configuration for the device according to the manufacturer, and it is impossible to ensure that the device can obtain different configurations when accessing different regional locations. That is, in a multi-service scenario, this method has the drawback that the initial configuration cannot be adapted, ultimately resulting in low efficiency of the device going online with zero configuration.

[0059] When the above-mentioned Method 2 is in the initial stage, it can achieve different configurations for different devices, but it needs to rely on a mobile terminal to bind the device and the configuration, increasing a large amount of human resource costs.

[0060] Therefore, both the above-mentioned Method 1 and Method 2 have compatibility problems with the existing network transformation scenario. When using the method of the access device having an empty configuration (i.e., zero configuration) to access the existing network for initial setup, due to being directly connected to the aggregation device and being affected by the network customized by the aggregation device, there may be a scenario where the DHCP Discover message cannot reach the configuration server, resulting in the problem of failed initial setup. In response to this, the analysis is as follows: By default, the DHCP Discover message is restricted by the Virtual Local Area Network (VLAN). VLAN is a technology for logically dividing a network, used to divide a physical network into multiple virtual networks. Each VLAN exists independently, and the DHCP Discover message usually only propagates within the same VLAN. When the access device sends a DHCP Discover message, this message usually only propagates within the VLAN where it is located. This means that if the configuration server and the access device are in different VLANs, the DHCP Discover message cannot cross the VLAN to reach the configuration server, resulting in the failure of sending the DHCP Discover message and ultimately the failure of the initial setup.

[0061] The overall inventive concept of the embodiments of the present application is how to provide a method applied to the communication field, which is used to realize the adaptive selection of network configuration in a multi-service scenario, and thus improve the efficiency of the device going online with zero configuration.

[0062] The following uses specific embodiments to elaborate in detail on the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following will describe the embodiments of the present application in conjunction with the drawings.

[0063] Figure 1 It is the overall network topology schematic diagram of a device zero-configuration online system provided by the embodiments of the present application. As Figure 1As shown in the figure, the zero-configuration online system of the device includes the following network devices or apparatuses: a plurality of aggregation devices 100, a core device 200, and a configuration server 300; each aggregation device 100 is respectively connected to the configuration server 300 through the core device 200; different aggregation devices 100 are located in different regions.

[0064] The aggregation device 100 within the region where the access device 400 is located is used to generate a target message and send the target message to the configuration server 300 through the core device 200.

[0065] The configuration server 300 is used to parse the identification information of the aggregation device 100 within the region where the access device 400 is located carried in the target message, and search for the management network configuration information corresponding to the identification information of the aggregation device 100 from a preset association relation table. It should be understood that the management network configuration information may also be referred to as management network configuration, network configuration, etc.

[0066] The configuration server 300 is further used to send the management network configuration information to the access device 400 through the core device and the aggregation device, so that the access device 400 can go online according to the management network configuration information.

[0067] Combined Figure 1 It can be known that the zero-configuration online system of the device is divided into an access layer, an aggregation layer, and a core layer from bottom to top. Among them, the configuration server 300 is hung beside the core device 200. Analyze the following for each network device or apparatus in a zero-configuration online system of a device in terms of quantity: There is one device in the core layer, there are multiple aggregation devices 100 below the core layer, and there are multiple access devices 400 below each aggregation device 100. The configuration server 300 is connected to the core device 200 through a connecting line, and the core device 200 is provided with multiple interfaces and can be connected to multiple aggregation devices 100 simultaneously.

[0068] In addition to including a plurality of aggregation devices 100, a core device 200, and a configuration server 300, the zero-configuration online system of the device may further include an access device 400. Among them, the access device 400 may also be referred to as an access layer device, the aggregation device 100 may also be referred to as an aggregation layer device, the core device 200 may also be referred to as a core layer device, and the configuration server 300 may specifically refer to a server running any type of controller.

[0069] The following analysis is carried out on each network device or apparatus in this embodiment:

[0070] The access device 400, as the device to be put online, is in an empty configuration by default and the DHCP client service is enabled by default.

[0071] The aggregation device 100 acts as a DHCP relay device, enables the DHCP relay service, and relays (Relay) the DHCP Discover message to the configuration server 300.

[0072] The configuration server 300 acts as an automatic configuration device, enables the DHCP service, receives the message (i.e., the above-mentioned target message) relayed by the aggregation device 100 through Relay, and then allocates the network configuration of the service scenario corresponding to the area where the access device 400 is located based on the preset association relationship table.

[0073] The core device 200 acts as a bridge connecting the aggregation device 100 and the configuration server 300, providing a network transmission channel.

[0074] In this embodiment, by adding the DHCP relay service, through this service, after the DHCP Discover message of the access device reaches the aggregation device, the IP address of the aggregation device can be written into the Giaddr field of the DHCP Discover message. After this message reaches the configuration server, the configuration server can use it to determine which aggregation device the access device connects through. For multiple service scenarios, this embodiment can use the IP address of the aggregation device to identify the service scenario where the access device is located, and then adaptively send the management network configuration information of the service scenario where the access device is located to each access device. All access devices can achieve rapid online, so this embodiment improves the online efficiency.

[0075] Based on the above embodiment, the technical solution of the present application will be described in more detail below in combination with several specific embodiments.

[0076] The purpose of this embodiment is to solve the problems of slow manual online and easy configuration errors caused by the expansion of the network scale and the increase in the number of devices, and at the same time solve the problems that the access device cannot adaptively start up according to the network service in multiple service scenarios and that the device cannot start up due to network factors in the existing network transformation scenario.

[0077] Figure 2 It is a flowchart of a method for zero-configuration online of devices provided by an embodiment of the present application. As Figure 2 shown, the method of this embodiment is applied to the configuration server and includes:

[0078] S10. In response to the target message sent by the aggregation device in the area where the access device is located, parse the identification information of the aggregation device carried in the target message, and find the management network configuration information corresponding to the identification information of the aggregation device from the preset association relationship table; where different aggregation devices are in different areas.

[0079] It should be understood that the identification information of the above aggregation device may refer to the IP address of the aggregation device, or other identification information such as the device number of the aggregation device. The IP address of the aggregation device can be understood as the address of the relay service.

[0080] S20. Send the management network configuration information to the access device for the access device to go online according to the management network configuration information. The management network configuration information reaches the access device through the core device and the aggregation device.

[0081] This embodiment can automatically allocate different management networks according to the aggregation devices at different locations where the access devices are connected at the start of the network setup. Even if the access devices are frequently connected to different service environments, this embodiment can still configure different management networks for the access devices for different network environments, meeting the flexible and changeable service requirements. For example, when the access device is in the first area, the aggregation device in the first area relays the Dynamic Host Configuration Protocol (DHCP) packets initiated by the access device; after the access device moves to the second area, the aggregation device in the second area relays the DHCP packets initiated by the access device. For these two different DHCP packets, since different aggregation devices perform the relay operation, the IP addresses of the aggregation devices carried in the packets are different. Therefore, the configuration server can adaptively send different service configurations to the access devices in different areas according to the IP addresses of the aggregation devices.

[0082] The device zero-configuration online method provided in this embodiment is a zero-configuration online method based on a DHCP relay device. In the embodiments of the present application, different aggregation devices are located in different areas. Based on this, for any service scenario, the access device can realize the adaptive selection of the management network configuration information based on the communication between the aggregation device corresponding to the service scenario and the configuration server, thereby improving the efficiency of device zero-configuration online.

[0083] In a possible implementation manner, the management network configuration information includes but is not limited to: gateway IP address, subnet mask, client IP address of the access device, service configuration information, service address of the configuration server, etc.

[0084] It should be understood that the client IP address of the access device is also referred to as the access device client IP. Since the configuration server can specifically refer to the controller, the service address of the configuration server is also referred to as the controller service address.

[0085] In a possible implementation manner, the target packet is obtained by the aggregation device adding the identification information of the aggregation device to the specified field of the original packet, and the original packet is a DHCP packet initiated after the access device goes online with zero configuration. The embodiments of the present application do not make specific limitations on the type and format of the packet.

[0086] It should be understood that the specified field can be understood as the Giaddr field, or the Giaddr parameter. The original message is also called the DHCP discovery message, DHCP Discover message, etc.

[0087] In a possible implementation, before responding to the target message sent by the aggregation device in the area where the access device is located, the method further includes:

[0088] S30. For each service scenario, construct the management network configuration information of the service scenario and match the identification information of the aggregation device corresponding to the service scenario.

[0089] Among them, the number of service scenarios can be the same as the number of aggregation devices. For example, there are 3 service scenarios: Service Scenario A, Service Scenario B, and Service Scenario C. In this embodiment, the corresponding aggregation devices are provided for the above three service scenarios respectively: the first aggregation device, the second aggregation device, and the third aggregation device.

[0090] S40. Associate the management network configuration information of each service scenario and the identification information of the aggregation device respectively to obtain a preset association relationship table.

[0091] In this embodiment, the preset association relationship table is established in advance, and in multiple service scenarios, the management network configuration information corresponding to the identification information of the aggregation device can be found based on the preset association relationship table, and then the management network configuration information is adaptively sent to the access device, thereby improving the zero-configuration online efficiency of the device.

[0092] In a possible implementation, in step S20, sending the management network configuration information to the access device includes step S201 or step S202:

[0093] S201. Encode the management network configuration information in the first field of the response message, and send the response message to the access device through the core device and the aggregation device. The above response message is also called the DHCP Offer message.

[0094] In this embodiment, by encoding the management network configuration information in the first field of the response message, the security of the management network configuration information can be improved.

[0095] S202. Encode the service address of the configuration server in the management network configuration information in the second field of the response message, encode the other information in the management network configuration information in the first field of the response message, and send the response message to the access device through the core device and the aggregation device. It should be understood that the second field can refer to the Option43 field. The other information includes at least one of the following: the gateway IP address, the subnet mask, the client IP address of the access device, and the service configuration information.

[0096] In this embodiment, by encapsulating the service address of the configuration server in the second field of the response message, it is possible to provide technical support for subsequent updates of the management network configuration information.

[0097] In a possible implementation, after the response message is sent to the access device through step S202, the method further includes:

[0098] S203. When the access device establishes a keep-alive connection with the configuration server according to the service address of the configuration server, in response to the update operation of the management network configuration information by the configuration server, send management network configuration update information to the access device through a preset protocol. It should be understood that the preset protocol may refer to the CPE WAN Management Protocol (CWMP).

[0099] In this embodiment, through the operation of establishing a keep-alive connection and the adopted preset protocol, it provides convenience for realizing the secure update of the management network configuration information obtained by the access device.

[0100] The existing technical solutions cannot achieve zero-configuration startup in multi-service scenarios. Only after the device goes online with zero configuration, can multi-service configuration be issued to the device, or only through the mobile terminal method, can the configuration relationship be bound to specific devices in advance, which requires a large amount of human resources, and the scenario solution for large-scale deployment is not feasible. At the same time, for the scenario of in-network transformation, in the existing zero-configuration startup solution, there may be a problem that the DHCP Discover message cannot reach the configuration server or the DHCP Server due to the limitation of existing network factors, resulting in startup failure.

[0101] This embodiment has the following advantages compared with the existing technical solutions:

[0102] (1) This embodiment can achieve zero-configuration startup in multi-service scenarios. Specifically, the DHCP Discover message after being relayed by the aggregation device Realy carries the Giaddr parameter, which is the IP address of the aggregation device. The configuration server makes a network configuration plan in advance according to the IP address of the aggregation device. When receiving the DHCP Discover message, it allocates the specified network configuration to the access device according to the IP address of the aggregation device, solving the problem that the startup configuration cannot be adapted in multi-service scenarios.

[0103] (2) After the access device receives the aggregation device that enables the DHCP relay service, the aggregation device relays the DHCP Discover message to the configuration server, which can solve the problem that the device startup fails due to network connection failure when the access device goes online in the in-network transformation scenario.

[0104] The above steps S10 to S20 are a brief description of the zero-configuration online method for devices from the configuration server side. Further, as Figure 3 shown, this application analyzes the zero-configuration online method for devices from the perspective of the zero-configuration online system for devices. Another zero-configuration online method for devices includes the following steps:

[0105] S31. The configuration server plans and manages the network configuration and enables the DHCP service.

[0106] In this embodiment, the configuration server is directly connected to the core device. The configuration server enables the DHCP service and plans multiple different network configurations according to existing multiple service scenarios. Usually, each aggregation device independently bears a service scenario. When the configuration server plans the management network configuration, the management network segment and the IP address of the aggregation device match each other.

[0107] S32. The aggregation device enables the DHCP relay service.

[0108] In this step, the aggregation device enables the DHCP relay service and points the IP address of the configuration server to the configuration server. The IP address of the configuration server can be understood as the address to which the Discover message is to be relayed after the aggregation device adds its own IP address to the DHCP Discover message sent by the access device.

[0109] S33. The access device accesses the network with empty configuration and sends a DHCP Discover message.

[0110] It should be understood that the access device accesses the network with empty configuration (including but not limited to a local area network). Since the access device obtains its own IP address by default through the DHCP method when it has an empty configuration, this embodiment can send a DHCP Discover message and then search for an available IP address through broadcasting.

[0111] S34. The aggregation device adds its own IP address to the Giaddr field of the DHCP Discover message.

[0112] Specifically, when the aggregation device receives the DHCP Discover message sent by the access device, it writes its own IP address into the Giaddr field of the DHCP Discover message.

[0113] S35. The aggregation device relays the DHCP Discover message with its own IP address added to the configuration server through the core device.

[0114] Figure 3 The dotted line corresponding to S35 in

[0115] S36. The configuration server parses the Giaddr field of the DHCP Discover message and matches the management network configuration information corresponding to the IP address of the aggregation device.

[0116] Specifically, after receiving the DHCP Discover message, the configuration server parses the Giaddr field, obtains the IP address of the aggregation device, and uses this IP address to match the management network configuration information in the plan. If the network segment in the management network configuration information contains the IP address of the aggregation device, the management network configuration information is used to start the access device.

[0117] S37. The configuration server responds to the access device with the matched management network configuration information through the DHCP Offer message.

[0118] Specifically, the DHCP Discover message uploaded by the access device also carries the MAC address of the access device. Therefore, the DHCP Offer message generated by the configuration server also carries the MAC address of the access device. Figure 3 The dotted line corresponding to S37 indicates that the matched management network configuration information needs to be distributed through the core device and the aggregation device.

[0119] When the configuration server distributes the DHCP Offer message through the core device and the aggregation device, it can distribute the DHCP Offer message to the corresponding access device according to the MAC.

[0120] S38. The access device completes the startup according to the obtained management network configuration information.

[0121] Specifically, after the access device in this embodiment obtains the DHCP Offer message, it is assigned a specified management network IP address and obtains the specified service configuration, completing zero-configuration startup.

[0122] This embodiment gives a specific example to analyze the above method:

[0123] For example, this embodiment can provide three areas for a school: the office building, the teaching building, and the dormitory building. This embodiment provides respective corresponding service scenarios in each area: service scenario A, service scenario B, and service scenario C. This embodiment provides corresponding aggregation devices for the three service scenarios: the first aggregation device, the second aggregation device, and the third aggregation device. Among them, the first aggregation device is in the office building, the second aggregation device is in the teaching building, and the third aggregation device is in the dormitory building.

[0124] Since the message initiated by the access device is empty-configured, when the user brings the access device into the office building area, the first aggregation device in the office building area can relay the message, and then the configuration server can perform the initial setup of the services involved in the first service scenario A for the access device through the IP address of the first aggregation device.

[0125] Similarly, when the user brings the access device into the teaching building area, the second aggregation device in the teaching building area can relay the message, and then the configuration server can perform the initial setup of the services involved in the second service scenario B for the access device through the IP address of the second aggregation device.

[0126] Similarly, when the user brings the access device into the dormitory building area, the third aggregation device in the dormitory building area can relay the message, and then the configuration server can perform the initial setup of the services involved in the third service scenario C for the access device through the IP address of the third aggregation device.

[0127] It should be understood that the number of services involved in each service scenario can be one or multiple, and the embodiments of the present application do not make specific limitations in this regard. For example: there is one service in the service scenario A in the office building area: online office service; there are two services in the service scenario B in the teaching building area: monitoring service and teaching service for remote training.

[0128] Optionally, when there are multiple access devices in the teaching building area, the content of the DHCP Discover messages initiated by the multiple access devices is the same, but the various addresses in the management network configuration information returned by the configuration server to different access devices are different, and the service configuration information is the same.

[0129] This embodiment has the following advantages:

[0130] (1) In this embodiment, a DHCP relay service is added at the aggregation device level. Through this service, after the DHCP Discover message of the access device reaches the aggregation device, the IP address of the aggregation device can be written into the Giaddr field of the DHCP Discover message. After this message reaches the configuration server, the configuration server can use it to determine which aggregation device the access device is connected through. For multi-service scenarios, this embodiment can use this technical point to identify the service scenario where the access device is located, and then adaptively send the management network configuration information of the service scenario where the access device is located to each access device. All access devices can be adaptively connected to the network, so this embodiment improves the connection efficiency.

[0131] (2) In this embodiment, a DHCP relay service is added at the aggregation device level, and a DHCP relay agent is configured on the aggregation device that supports the DHCP relay service. In this way, when a DHCP Discover message arrives at the relay agent, the relay agent forwards it to the configuration server, ensuring that the DHCP Discover message across VLANs can reach the configuration server, solving the problem that in the scenario of transforming the existing network with the traditional zero-configuration online method, after the access device accesses the existing network with an empty configuration, due to being directly connected to the aggregation device and being affected by the custom network of the aggregation device, there may be network factors that cause the DHCP Discover message to fail to reach the specified configuration server, ultimately resulting in a failed online process, and improving the success rate of online.

[0132] (3) In this embodiment, the DHCP service is enabled on the configuration server, and a network configuration plan for multiple service scenarios is made. According to the Giaddr field parsed in the DHCP Discover message relayed by the aggregation device, the IP address of the aggregation device is obtained, and then the corresponding network configuration is matched according to the IP address of the aggregation device, realizing zero-configuration online of the device in multiple service scenarios and improving the adaptability of online.

[0133] The above steps S202 to S203 are a brief description of the network configuration update method from the perspective of the configuration server. Further, as Figure 4 shown, through the interaction between the configuration server and the access device, the present application analyzes the network configuration update method as follows:

[0134] S41. The configuration server responds to the DHCP Offer message through the core device and the aggregation device. The Option43 field in this message carries the service address of the configuration server.

[0135] S42. The access device parses the Option43 field and writes the service address of the configuration server into its own CWMP configuration. After the writing is completed, step S43 is executed.

[0136] S43. The access device establishes a keep-alive connection with the configuration server through the CWMP protocol. It should be understood that the keep-alive connection is achieved by relaying messages through the aggregation device and the core device.

[0137] S44. The configuration server performs operations such as network configuration change and version upgrade on the access device through the CWMP protocol.

[0138] As can be seen from steps S41 to S44, when the configuration server responds to the DHCP Offer message, it encapsulates the service address of the configuration server in the Option43 field and responds to the access device. The access device parses the Option43 field and writes the service address into the CWMP configuration. Subsequently, the configuration server performs network device management through the CWMP protocol and conducts operations such as network configuration changes and version upgrades for the device through CWMP.

[0139] In addition, this embodiment has the following extended features:

[0140] (1) In terms of network scenarios, this embodiment is applicable not only in multi-service scenarios but also in data center networks.

[0141] (2) In terms of service scenarios, in addition to enabling zero-configuration onboarding for access devices, this embodiment can also be applied to the security field, such as terminal access control. By identifying the device location where the terminal accesses, specific network access rules are assigned to specific devices, terminals, etc.

[0142] Figure 5 This is a schematic structural diagram of a device zero-configuration onboarding device provided by an embodiment of the present application. The device in this embodiment can be in the form of software and / or hardware. As Figure 5 shown, the device zero-configuration onboarding device provided by this embodiment includes: a parsing and searching module 51 and a sending module 52. Among them:

[0143] The parsing and searching module 51 is configured to, in response to a target message sent by an aggregation device within the area where the access device is located, parse out the identification information of the aggregation device carried in the target message, and search for the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; wherein, different aggregation devices are located in different areas.

[0144] The sending module 52 is configured to send the management network configuration information to the access device through the core device and the aggregation device, so that the access device can go online according to the management network configuration information.

[0145] In a possible implementation manner, before responding to the target message sent by the aggregation device within the area where the access device is located, the device zero-configuration onboarding device is further configured to:

[0146] For each service scenario, construct the management network configuration information of the service scenario and match the identification information of the aggregation device corresponding to the service scenario.

[0147] Associate the management network configuration information of each service scenario and the identification information of the aggregation device respectively to obtain a preset association relationship table.

[0148] In a possible implementation manner, the sending module 52 is further configured to:

[0149] Encapsulate the management network configuration information in the first field of the response message, and send the response message to the access device.

[0150] Encapsulate the service address of the configuration server in the management network configuration information in the second field of the response message, encapsulate other information in the management network configuration information in the first field of the response message, and send the response message to the access device.

[0151] In a possible implementation manner, after sending the response message to the access device, the zero-configuration online device of the device is further configured to:

[0152] When the access device establishes a keep-alive connection with the configuration server according to the service address of the configuration server, in response to the update operation of the management network configuration information by the configuration server, send the management network configuration update information to the access device through a preset protocol.

[0153] In a possible implementation manner, other information in the management network configuration information includes at least one of the following: gateway IP address, subnet mask, client IP address of the access device, and service configuration information.

[0154] In a possible implementation manner, the target message is obtained by the aggregation device adding the identification information of the aggregation device to the specified field of the original message, and the original message is a Dynamic Host Configuration Protocol message initiated after the access device accesses the network with zero configuration.

[0155] The zero-configuration online device of the device provided in this embodiment can be used to execute the zero-configuration online method of the device provided in any of the above method embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0156] It should be noted that the user information and data involved in this application (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0157] That is to say, in the technical solution of this application, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0158] According to the embodiments of the present application, the present application also provides a configuration server and a readable storage medium.

[0159] Figure 6A schematic structural diagram of a configuration server provided by an embodiment of the present application. The configuration server includes a receiver 60, a transmitter 61, at least one processor 62, and a memory 63. The configuration server composed of the above components can be used to implement several specific embodiments of the present application, which will not be elaborated here.

[0160] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, each step in the method in the above embodiment is implemented.

[0161] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by the processor, each step in the method in the above embodiment is implemented.

[0162] The various embodiments of the systems and technologies described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor. The programmable processor can be a dedicated or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a dedicated computer, or other programmable data processing devices, so that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, executed partially on the machine as an independent software package and partially on a remote machine, or executed entirely on a remote machine or electronic device.

[0164] In the context of this application, a computer-readable storage medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0165] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).

[0166] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or in a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of a communication network include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0167] It should be understood that the various forms of the processes shown above can be used, steps can be reordered, added, or removed. For example, the steps recited in the disclosure of this application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution disclosed in this application can be achieved, and this is not limited herein.

[0168] The above specific embodiments do not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the principles of the present application shall be included within the protection scope of the present application.

Claims

1. A method for a device to go online with zero configuration, characterized in that, applied to a configuration server, including: Responding to a target message sent by an aggregation device within the area where the access device is located, parsing the identification information of the aggregation device carried in the target message, and looking up the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; wherein, different aggregation devices are located in different areas; Sending the management network configuration information to the access device for the access device to go online according to the management network configuration information.

2. The method according to claim 1, characterized in that, Before responding to the target message sent by the aggregation device within the area where the access device is located, the method further includes: For each service scenario, constructing the management network configuration information of the service scenario and matching the identification information of the aggregation device corresponding to the service scenario; Associating the management network configuration information and the identification information of the aggregation device of each service scenario respectively to obtain a preset association relationship table.

3. The method according to claim 1, characterized in that, The sending the management network configuration information to the access device includes: Encapsulating the management network configuration information in the first field of a response message, and sending the response message to the access device through a core device and an aggregation device; or, Encapsulating the service address of the configuration server in the management network configuration information in the second field of the response message, encapsulating other information in the management network configuration information in the first field of the response message, and sending the response message to the access device through a core device and an aggregation device.

4. The method according to claim 3, characterized in that, After sending the response message to the access device, the method further includes: When the access device establishes a keep-alive connection with the configuration server according to the service address of the configuration server, in response to an update operation of the management network configuration information by the configuration server, sending management network configuration update information to the access device through a preset protocol.

5. The method according to claim 3, characterized in that, The other information in the management network configuration information includes at least one of the following: gateway IP address, subnet mask, client IP address of the access device, and service configuration information.

6. The method according to claim 1, characterized in that, The target message is obtained by the aggregation device adding the identification information of the aggregation device to a specified field of an original message, and the original message is a Dynamic Host Configuration Protocol message initiated after the access device goes online with an empty configuration.

7. A device zero-configuration online device, characterized in that, applied to a configuration server, including: A parsing and lookup module, configured to respond to a target message sent by an aggregation device within the area where the access device is located, parse the identification information of the aggregation device carried in the target message, and look up the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; wherein, different aggregation devices are located in different areas; A sending module, configured to send the management network configuration information to the access device, so that the access device can go online according to the management network configuration information.

8. A zero-configuration online system for devices Characterized in that It includes: Multiple aggregation devices, a core device and a configuration server; each of the aggregation devices is respectively connected to the configuration server through the core device; different aggregation devices are located in different regions; The aggregation device within the area where the access device is located is configured to generate a target message and send the target message to the configuration server through the core device; The configuration server is configured to parse the identification information of the aggregation device within the area where the access device is located carried in the target message, and search for the management network configuration information corresponding to the identification information of the aggregation device from a preset association relationship table; The configuration server is further configured to send the management network configuration information to the access device, so that the access device can go online according to the management network configuration information.

9. A configuration server Characterized in that It includes: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the zero-configuration online method for devices according to any one of claims 1 to 6.

10. A computer-readable storage medium Characterized in that The computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the zero-configuration online method for devices according to any one of claims 1 to 6.

Citation Information

Cited By

  • Centralized initialization method and system, electronic equipment, readable medium and program product

    CN120547601A