A device online method, device and related equipment

By establishing Layer 2 network communication between the network management device and the device to be put online, using raw socket broadcast messages and response messages to allocate management IP addresses and obtain device startup files, the problem of automatic device online relying on DHCP and TFTP servers in the existing technology is solved, and simplified deployment and automatic online of devices are achieved.

CN119109961BActive Publication Date: 2025-10-03NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411214768.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2025-10-03
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The existing method for automatically bringing devices online relies on DHCP servers and TFTP servers, which is complex and costly to deploy and cannot achieve automatic device management in a Layer 2 network environment.

Method used

By establishing Layer 2 network communication between the network management device and the device to be brought online, using raw socket broadcast messages and response messages to assign management IP addresses, and obtaining device startup files through IP communication connections, the device online process is simplified and the dependence on DHCP servers and TFTP servers is reduced.

Benefits of technology

Plug-and-play devices are implemented in a Layer 2 network environment, simplifying the deployment process, reducing deployment complexity and cost, reducing dependence on DHCP and TFTP servers, and enabling automatic device deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109961B_ABST
    Figure CN119109961B_ABST
Patent Text Reader

Abstract

The present application relates to the field of network management technology, and in particular to a device online method, apparatus, and related equipment. The method is applied to a network management device, the network management device being configured with a management address pool and device startup files configured for various types of devices, and the network management device being interconnected with the device to be online on a Layer 2 network; the method comprising: receiving a raw socket broadcast message carrying an online request sent by the device to be online; allocating a management IP address to the device to be online from the management address pool; and sending a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs a device online operation based on the device startup file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network management technology, and in particular to a device online method, device, and related equipment. Background Art

[0002] Network management and operations management systems typically include network management software and various network devices that provide unified control. The scale of network devices managed by network management software is constantly expanding, and the number of network devices under management is increasing. Furthermore, with the trend toward intelligent management and operations, the way devices are brought online and managed is also changing. Automatically bringing devices online and managing them is an essential technical approach to deploying network management systems.

[0003] In the current methods and technologies for automatically bringing devices online, after the device starts up with an empty configuration, it first obtains an IP (Internet Protocol) address and a startup file name through DHCP (Dynamic Host Configuration Protocol). It then uses the obtained IP address and startup file name to communicate with a TFTP (Trivial File Transfer Protocol) file server to obtain the startup file. After the device loads the startup file, it sends a device online request to the network management software. The network management software detects the device online request, processes it, and completes the device online. To complete the automatic online of one or more devices, it is necessary to deploy network management software, a DHCP server, a DHCP relay system, a TFTP file server, etc., and the installation and deployment of basic services for the entire environment are relatively complex. Summary of the Invention

[0004] The present application provides a device online method, apparatus and related equipment.

[0005] In a first aspect, the present application provides a device online method, which is applied to a network management device, wherein the network management device is configured with a management address pool and device startup files configured for each type of device, and the network management device is interconnected with the device to be online on a Layer 2 network; the method includes:

[0006] Receiving a raw socket broadcast message sent by a device to be online, wherein the raw socket broadcast message carries an online request of the device to be online;

[0007] When it is determined that the message content of the original socket broadcast message is a device online request, allocating a management IP address for the device to be online from the management address pool;

[0008] Sending a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs device online operations based on the device startup file.

[0009] Optionally, after the device to be online is restarted based on the device startup file, the method further includes:

[0010] Receive an online request message sent by the device to be online;

[0011] Determining whether the device to be online is ready based on the online request message;

[0012] If it is determined that the device to be online is ready, establishing a preset protocol connection channel with the device to be online based on the management IP address of the device to be online;

[0013] The device configuration is delivered to the device to be online based on the preset protocol connection channel.

[0014] In a second aspect, the present application provides a device online method, which is applied to a device to be online, wherein the device to be online is interconnected with a network management device on a Layer 2 network, and the network management device is configured with a management address pool and device startup files configured for each type of device. The method includes:

[0015] After determining that the device is powered on, a raw socket broadcast message is sent to the network management device, wherein the raw socket broadcast message carries an online request of the device to be online, and after receiving the raw socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool;

[0016] Receiving a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device;

[0017] Establishing an IP communication connection with the network management device based on the management IP address and the IP address of the network management device;

[0018] The device startup file is obtained based on the IP communication connection, and an online operation is performed based on the device startup file.

[0019] Optionally, the step of obtaining the device startup file based on the IP communication connection includes:

[0020] Sending a request to the network management device to obtain the name of the startup file of each device;

[0021] receiving a response from the network management device containing the name of the startup file of each device;

[0022] Determine the required target device startup file based on the device type, select the target device startup file name of the target device startup file from the names of the various device startup files, and feed back the target device startup file name to the network management device;

[0023] Receive the target device startup file sent by the network management device.

[0024] Optionally, the step of obtaining the device startup file based on the IP communication connection includes:

[0025] Sending a request for obtaining a device startup file to the network management device, wherein the request for obtaining a device startup file carries the device type of the device to be online, and the network management device determines a target device startup file required by the device to be online based on the device type of the device to be online;

[0026] Receive the target device startup file sent by the network management device.

[0027] In a third aspect, the present application provides a device online device, which is applied to a network management device, wherein the network management device is configured with a management address pool and device startup files configured for each type of device, and the network management device communicates with the device to be online on a Layer 2 network; the device includes:

[0028] A receiving unit, configured to receive a raw socket broadcast message sent by a device to be online, wherein the raw socket broadcast message carries an online request of the device to be online;

[0029] an allocating unit, configured to allocate a management IP address to the device to be online from the management address pool when determining that the message content of the original socket broadcast message is a device online request;

[0030] A sending unit is used to send a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs device online operations based on the device startup file.

[0031] Optionally, after the device to be online is restarted based on the device startup file, the apparatus further includes a judgment unit, an establishment unit, and a delivery unit:

[0032] The receiving unit is further configured to receive an online request message sent by the device to be online;

[0033] The judging unit is configured to judge whether the device to be online is ready based on the online request message;

[0034] If the judging unit determines that the device to be online is ready, the establishing unit is configured to establish a connection channel with the device to be online according to a preset protocol based on the management IP address of the device to be online;

[0035] The sending unit is used to send device configuration to the device to be online based on the preset protocol connection channel.

[0036] In a fourth aspect, the present application provides a device online device, which is applied to a device to be online, wherein the device to be online is interconnected with a network management device on a Layer 2 network, and the network management device is configured with a management address pool and device startup files configured for each type of device. The device includes:

[0037] a sending unit, configured to send a raw socket broadcast message to the network management device after determining that the device is powered on, wherein the raw socket broadcast message carries an online request of the device to be online, and after receiving the raw socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool;

[0038] A receiving unit, configured to receive a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device;

[0039] An establishing unit, configured to establish an IP communication connection with the network management device based on the management IP address and the IP address of the network management device;

[0040] An acquiring unit is configured to acquire the device startup file based on the IP communication connection, and perform an online operation based on the device startup file.

[0041] Optionally, when acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically configured to:

[0042] Sending a request to the network management device to obtain the name of the startup file of each device;

[0043] receiving a response from the network management device containing the name of the startup file of each device;

[0044] Determine the required target device startup file based on the device type, select the target device startup file name of the target device startup file from the names of the various device startup files, and feed back the target device startup file name to the network management device;

[0045] Receive the target device startup file sent by the network management device.

[0046] Optionally, when acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically configured to:

[0047] Sending a request for obtaining a device startup file to the network management device, wherein the request for obtaining a device startup file carries the device type of the device to be online, and the network management device determines a target device startup file required by the device to be online based on the device type of the device to be online;

[0048] Receive the target device startup file sent by the network management device.

[0049] In a fifth aspect, an embodiment of the present application provides a device for bringing a device online, the device including:

[0050] a memory for storing program instructions;

[0051] The processor is configured to call the program instructions stored in the memory and execute the steps of the method as described in any one of the first aspects above according to the obtained program instructions.

[0052] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the above-mentioned first aspects.

[0053] In a seventh aspect, an embodiment of the present application provides a device online, the device online device comprising:

[0054] a memory for storing program instructions;

[0055] The processor is used to call the program instructions stored in the memory and execute the steps of the method as described in any one of the second aspects according to the obtained program instructions.

[0056] In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the above-mentioned second aspects.

[0057] In summary, the device online method provided in the embodiment of the present application is applied to a network management device, wherein the network management device is configured with a management address pool and device startup files configured for each type of device respectively, and the network management device and the device to be online are interconnected in the second layer network; the method includes: receiving an original socket broadcast message sent by the device to be online, wherein the original socket broadcast message carries the online request of the device to be online; when it is determined that the message content of the original socket broadcast message is a device online request, allocating a management IP address to the device to be online from the management address pool; sending an original socket response message to the device to be online, wherein the original socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs the device online operation based on the device startup file.

[0058] Using the device online method provided in the embodiments of the present application, when the device is in an empty configuration state, the device interacts with the network management software via Layer 2 raw socket messages to obtain the management IP address, network management software IP address, and device startup file name assigned to the device by the network management software, eliminating the need for a DHCP server component or DHCP service. By using the obtained device management IP address, network management software IP address, and device startup file name, the device and the network management software engage in round-trip unicast communication to obtain the startup file required for the device's automated online operation, eliminating the need for a TFTP server component or TFTP service. This simplifies the deployment process, eliminates component dependencies, and achieves a simplified plug-and-play experience for the device to the network management software, requiring only a few Layer 2 and Layer 3 message interactions to complete.

[0059] In a small network environment with network management software, it can simplify deployment configuration complexity, save deployment costs, and eliminate the dependence on components such as DHCP servers and TFTP file servers. Only the network management software and network devices can complete the automatic online of network devices with empty configuration to the network management software. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments of the present application or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.

[0061] Figure 1 A schematic diagram of the process of equipment going online in the related technology;

[0062] Figure 2 A detailed flowchart of a device online method provided in an embodiment of the present application;

[0063] Figure 3 A detailed flowchart of another device online method provided in an embodiment of the present application;

[0064] Figure 4 A schematic diagram of a detailed process of putting a device online provided in an embodiment of the present application;

[0065] Figure 5 A schematic diagram of the structure of a device online device provided in an embodiment of the present application;

[0066] Figure 6 A schematic diagram of the structure of another device online device provided in an embodiment of the present application;

[0067] Figure 7 A schematic diagram of the hardware architecture of a device online device provided in an embodiment of the present application;

[0068] Figure 8 A schematic diagram of the hardware architecture of a device online device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0070] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type 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" used may also be interpreted as "at the time of" or "when" or "in response to determining".

[0071] The current network management software completes the automatic online of network devices. It is necessary to deploy the network management software, DHCP server, and TFTP server. After the installation and deployment of each component system is completed, the basic parameter configuration is performed. After the configuration is completed, the device starts to power on and go online. For example, see Figure 1 The figure shows a schematic diagram of the process of equipment going online in the related technology, which specifically includes the following processes:

[0072] 1. Configure the DHCP address pool.

[0073] Specifically, a management address pool and a VTEP address pool are configured on the DHCP server for subsequent allocation of address resources.

[0074] 2. Configure DHCP options.

[0075] Specifically, the device startup file name is configured as a DHCP Option to the DHCP server, and the TFTP server address is configured as a DHCP Option to the DHCP server. The two serve as parameter option data for the subsequent response to the device's DHCP request.

[0076] In actual applications, in a Layer 3 network environment, when a device needs to connect to a DHCP server, TFTP server, and network management system at Layer 3, the DHCP gateway information must be configured as a DHCP Option on the DHCP server when the address pool is delivered.

[0077] 3. Configure the TFTP server and upload the device startup file.

[0078] 4. The device starts with an empty configuration and initiates a DHCP request.

[0079] 5. The DHCP server responds to the device's DHCP request, assigns a management IP address to the device, and carries Option parameters (including TFTP server address, device startup file name, and gateway information) in the DHCP response message.

[0080] 6. The device requests the startup file from the TFTP server based on the startup file name obtained from the DHCP server and the TFTP server address obtained from the DHCP server.

[0081] 7. When the network management software detects a device reading the startup file from the TFTP server, it determines that the device is going online, obtains the device IP from TFTP, and starts initiating a NETCONF connection to the device.

[0082] 8. After the network management system successfully initiates the netconf connection request, it attempts to obtain basic device information. Successful acquisition indicates that the device has completed loading the startup file.

[0083] 9. The network management software automatically adds device information to the system management and completes the device online.

[0084] However, current automated device onboarding methods rely on multiple basic service components, and the onboarding process requires the coordination of multiple service components. Automatic device onboarding requires not only network management software and devices, but also the deployment of DHCP and TFTP server components. Furthermore, these four components, along with the network management software, DHCP server, TFTP server, and devices, must work together to complete the onboarding process. This results in a complex deployment process and high costs.

[0085] This application proposes a simplified method for automatic device onboarding in a Layer 2 network environment, which does not require reliance on a DHCP server, TFTP server, etc., and can complete the automatic onboarding and management of network devices only through network management software and network devices.

[0086] For example, see Figure 2 , which is a detailed flow chart of a device online method provided by an embodiment of the present application. The method is applied to a network management device, wherein the network management device is configured with a management address pool and device startup files configured for each type of device. The network management device and the device to be online communicate with each other on a Layer 2 network. The method includes the following steps:

[0087] Step 200: Receive an original socket broadcast message sent by the device to be online, wherein the original socket broadcast message carries an online request of the device to be online.

[0088] In the embodiment of the present application, the network management device (e.g., network management software) and the network device to be put online (device to be put online) complete the Layer 2 network cabling, so that the device and the network management software can communicate with each other at Layer 2. For example, the network device management port is connected to the network management software deployment to ensure Layer 2 connectivity between the device management network port and the network management software network card.

[0089] In this embodiment of the present application, raw socket monitoring is enabled on the network management software side. Optionally, this is enabled dynamically and can be disabled again after the device completes automated onboarding. The network management software configures the network card in promiscuous mode and enables raw socket monitoring on the Layer 2 network. This allows the network management software to receive raw socket messages initiated by any device to be brought online.

[0090] It should be noted that the device itself has no management IP when it starts with an empty configuration and cannot communicate at the IP layer. However, using raw sockets does not rely on IP and can complete data communication between the two parties at the data link layer.

[0091] In the embodiment of the present application, when the device to be online is started with an empty configuration, a raw socket broadcast message is initiated, and the raw socket broadcast message carries a device online request.

[0092] Step 210: When it is determined that the message content of the original socket broadcast message is a device online request, a management IP address is allocated to the device to be online from the management address pool.

[0093] In an embodiment of the present application, after receiving an original socket broadcast message sent by a device to be online, the network management device parses the original socket broadcast message and determines whether the message content of the original socket broadcast message is a device online request. If so, a management IP address is allocated to the device to be online from a pre-configured management address pool.

[0094] Step 220: Send a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device.

[0095] The network management device then sends the management IP address assigned to the device to be brought online, along with its own IP address, in a raw socket response message. The destination MAC address of the raw socket response message is the source MAC address of the received raw socket broadcast message, i.e., the MAC address of the device to be brought online.

[0096] In an embodiment of the present application, the above-mentioned device to be put online establishes an IP communication connection with the above-mentioned network management device based on the above-mentioned management IP address and the IP address of the above-mentioned network management device, obtains the above-mentioned device startup file based on the above-mentioned IP communication connection, and performs the device online operation based on the above-mentioned device startup file.

[0097] In other words, after receiving the raw socket response message from the network management device, the device to be brought online parses the message, obtains the assigned management IP address, configures the IP address, and then establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device. Finally, based on the IP communication connection, the device obtains the corresponding device startup file from the network management device, restarts the device based on the device startup file, and then goes online.

[0098] In actual applications, different types of devices to be brought online require different device startup files. Therefore, different device startup files can be configured on the network management device based on different device types. For example, the device startup file configured for device type 1 (Spine device) is startup file 1, and the device startup file configured for device type 2 (Leaf device) is startup file 2.

[0099] Then, if the network management device receives a request from the device to be online to obtain the name of the startup file of each device, it sends the device startup file names of startup file 1 and startup file 2 to the device to be online. The device to be online determines the required startup file (for example, startup file 1) from startup file 1 and startup file 2, and feeds back the required target device startup file name to the network management device. The network management device sends the target device startup file to the device to be online.

[0100] Alternatively, the network management device maintains a mapping relationship between each device type and its corresponding device startup file. When the network management device receives a startup file acquisition request carrying the device type sent by the device to be online, the network management device determines the target device startup file (such as startup file 1) required by the device to be online based on the device type carried in the request, and sends the target device startup file to the device to be online.

[0101] In the embodiment of the present application, after the device to be online is restarted based on the device startup file, the device online method further includes the following steps:

[0102] Receive an online request message from the device to be online and, based on the online request message, determine whether the device is ready. If the device is ready, establish a connection channel with the device using a pre-set protocol based on the device's management IP address. Distribute device configuration to the device using the pre-set protocol.

[0103] Specifically, after the device to be brought online completes its reboot based on the device startup file, it sends another online request message (IP message) to the network management device. The network management device determines that the device to be brought online is ready (for example, the operating system is installed), establishes a NETCONF or SNMP (Simple Network Management Protocol) connection with the device to be brought online, adds the device to management, and distributes other necessary configurations to the device through the established NETCONF / SNMP protocol channel. At this point, the device is automatically brought online.

[0104] For example, see Figure 3 , which is a detailed flow chart of a device online method provided by an embodiment of the present application. The method is applied to a device to be online, wherein the device to be online is interconnected with a network management device on a Layer 2 network. The network management device is configured with a management address pool and device startup files configured for each type of device. The method includes the following steps:

[0105] Step 300: After power-on startup is confirmed, a raw socket broadcast message is sent to the network management device.

[0106] The original socket broadcast message carries the online request of the device to be online. After receiving the original socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool.

[0107] Step 310: Receive a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device.

[0108] Step 320: Establish an IP communication connection with the network management device based on the management IP address and the IP address of the network management device.

[0109] Step 330: Obtain the device startup file based on the IP communication connection, and perform an online operation based on the device startup file.

[0110] In an embodiment of the present application, when obtaining the above-mentioned device startup file based on the above-mentioned IP communication connection, a preferred implementation method is: sending a request to the above-mentioned network management device to obtain the name of each device startup file; receiving a response from the above-mentioned network management device containing the name of each device startup file; determining the required target device startup file based on the device type, and selecting the target device startup file name of the above-mentioned target device startup file from the names of each device startup file, and feeding back the above-mentioned target device startup file name to the above-mentioned network management device; receiving the target device startup file sent by the above-mentioned network management device.

[0111] In an embodiment of the present application, when obtaining the above-mentioned device startup file based on the above-mentioned IP communication connection, another preferred implementation method is: sending a request for obtaining the device startup file to the above-mentioned network management device, wherein the above-mentioned request for obtaining the device startup file carries the device type of the above-mentioned device to be online, and the above-mentioned network management device determines the target device startup file required for the above-mentioned device to be online based on the device type of the above-mentioned device to be online; and receiving the target device startup file sent by the above-mentioned network management device.

[0112] The following describes in detail the device online method provided by the embodiment of the present application in combination with specific application scenarios. Figure 4 , which is a schematic diagram of a detailed process of a device going online provided by an embodiment of the present application. Specifically, the detailed process of the device automatically going online is as follows:

[0113] 1. Enable raw socket monitoring in the network management software.

[0114] 2. The device starts with an empty configuration.

[0115] Specifically, since the device does not have an IP address, the device cannot directly interact with the network management software through the IP address. Subsequent interactions between the network management software and the device first communicate through raw sockets.

[0116] 3. After the device is powered on and started, it first initiates a raw socket broadcast message (marked as message 1 here), and the message content is marked as an online request.

[0117] 4. After the network management software receives broadcast message 1 initiated by the device through its network card, if it interprets the message as a go-online request, it allocates a management IP address from the management address pool configured by the network management software and sends it to the device via a raw socket response message (here marked as message 2). The destination MAC address is the source MAC address when message 1 was received. Message 2 carries the management IP address assigned to the device and the network management software IP address.

[0118] 5. After the device receives the network management software response message (message 2), it parses the message content to obtain the management IP address and network management software IP assigned to the device, and configures the management IP address to the device management port.

[0119] 6. The device now has a management IP address and knows the IP address of the network management software. Communication at the IP layer is now possible. The device uses its management IP address to unicast with the network management software at the IP layer, sending a message (here marked as message 3) to the network management software requesting the names of the device startup files configured on the network management software.

[0120] 7. The network management software receives message 3 and sends the configured device startup file name in a response message (here marked as message 4) to the device.

[0121] 8. After receiving message 4, the device determines the target device startup file based on its device role (device type). After completing the process, the device sends another request message (here marked as message 5) to the network management software, requesting the target device startup file.

[0122] 9. After receiving message 5, the network management software responds to the device in batches (marked as message 6 here) based on the size of the target device startup file.

[0123] 10. After receiving message 6, the device parses the message to obtain the target device startup file and determines whether the file has been received. If not, it sends message 5 in a loop.

[0124] 11. The network management software cyclically replies to message 6 until it finally completes receiving the startup file of the target device.

[0125] 12. The device loads the target device startup file and starts.

[0126] 13. After the device restarts, it sends another online request message to the network management software (marked as message 7 here).

[0127] 14. After receiving message 7, the network management software determines that the device is ready. It uses the source IP address of message 7 to establish a NETCONF or SNMP connection to the device and adds the device.

[0128] 15. Send other necessary configurations (here marked as message 8) to the device through the connection.

[0129] At this point, the equipment has been automatically put online.

[0130] Based on the same inventive concept as the above-mentioned method embodiment applied to the network management device, for example, refer to Figure 5 , which is a schematic diagram of the structure of a device online device provided in an embodiment of the present application, wherein the device is applied to a network management device, wherein the network management device is configured with a management address pool and device startup files configured for each type of device, and the network management device communicates with the device to be online on a Layer 2 network; the device includes:

[0131] The receiving unit 50 is configured to receive a raw socket broadcast message sent by a device to be online, wherein the raw socket broadcast message carries an online request of the device to be online;

[0132] The allocating unit 51 is configured to allocate a management IP address to the device to be online from the management address pool when determining that the message content of the original socket broadcast message is a device online request;

[0133] The sending unit 52 is used to send a raw socket response message to the above-mentioned device to be online, wherein the above-mentioned raw socket response message carries the above-mentioned management IP address and the IP address of the above-mentioned network management device, so that the above-mentioned device to be online establishes an IP communication connection with the above-mentioned network management device based on the above-mentioned management IP address and the IP address of the above-mentioned network management device, obtains the above-mentioned device startup file based on the above-mentioned IP communication connection, and performs the device online operation based on the above-mentioned device startup file.

[0134] Optionally, after the device to be online is restarted based on the device startup file, the apparatus further includes a judgment unit, an establishment unit, and a delivery unit:

[0135] The receiving unit 50 is further configured to receive an online request message sent by the device to be online;

[0136] The judgment unit is used to judge whether the device to be online is ready based on the online request message;

[0137] If the judgment unit determines that the device to be online is ready, the establishment unit is configured to establish a connection channel with the device to be online according to a preset protocol based on the management IP address of the device to be online;

[0138] The sending unit is used to send device configuration to the device to be online based on the preset protocol connection channel.

[0139] Based on the same inventive concept as the above-mentioned method embodiment applied to the device to be put online, for example, refer to Figure 6 FIG. 1 is a schematic diagram of a device online apparatus according to an embodiment of the present application. The device is applied to a device to be online. The device to be online communicates with a network management device on a Layer 2 network. The network management device is configured with a management address pool and device startup files configured for each type of device. The device includes:

[0140] The sending unit 60 is configured to send a raw socket broadcast message to the network management device after determining that the device is powered on, wherein the raw socket broadcast message carries an online request of the device to be online. After receiving the raw socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool.

[0141] The receiving unit 61 is configured to receive a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device;

[0142] An establishing unit 62 is configured to establish an IP communication connection with the network management device based on the management IP address and the IP address of the network management device;

[0143] The acquiring unit 63 is configured to acquire the device startup file based on the IP communication connection, and perform an online operation based on the device startup file.

[0144] Optionally, when acquiring the device startup file based on the IP communication connection, the acquiring unit 63 is specifically configured to:

[0145] Send a request to the network management device to obtain the name of the startup file of each device;

[0146] receiving a response from the network management device containing the name of the startup file of each device;

[0147] Determine the required target device startup file based on the device type, select the target device startup file name from the above-mentioned device startup file names, and feed back the target device startup file name to the above-mentioned network management device;

[0148] Receive the target device startup file sent by the above network management device.

[0149] Optionally, when acquiring the device startup file based on the IP communication connection, the acquiring unit 63 is specifically configured to:

[0150] Sending a request for obtaining a device startup file to the network management device, wherein the request for obtaining a device startup file carries the device type of the device to be brought online, and the network management device determines the target device startup file required by the device to be brought online based on the device type of the device to be brought online;

[0151] Receive the target device startup file sent by the above network management device.

[0152] The above units may be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a unit is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0153] Furthermore, the device online device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the device online device can be found in Figure 7 As shown, the device online device may include: a memory 70 and a processor 71,

[0154] The memory 70 is used to store program instructions. The processor 71 calls the program instructions stored in the memory 70 and executes the above method embodiment applied to the network management device according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.

[0155] Optionally, the present application also provides a network management device, comprising at least one processing element (or chip) for executing the above-mentioned method embodiment applied to the network management device.

[0156] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above-mentioned method embodiment applied to the network management device.

[0157] Furthermore, the device online device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the device online device can be found in Figure 8 As shown, the device online device may include: a memory 80 and a processor 81,

[0158] The memory 80 is used to store program instructions. The processor 81 calls the program instructions stored in the memory 80 and executes the above method embodiment applied to the device to be put online according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.

[0159] Optionally, the present application also provides a network device, comprising at least one processing element (or chip) for executing the above-mentioned method embodiment applied to the device to be put online.

[0160] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above-mentioned method embodiment applied to the device to be put online.

[0161] Here, the machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage media, or a combination thereof.

[0162] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.

[0163] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0164] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0166] Furthermore, these computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0168] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, 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 device online method, characterized in that: Applied to a network management device, the network management device is configured with a management address pool and device startup files configured for each type of device, and the network management device communicates with the device to be put online on a Layer 2 network; the method includes: Receiving a raw socket broadcast message sent by a device to be online, wherein the raw socket broadcast message carries an online request of the device to be online; When it is determined that the message content of the original socket broadcast message is a device online request, allocating a management IP address for the device to be online from the management address pool; Sending a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs device online operations based on the device startup file.

2. The method according to claim 1, wherein After the device to be online is restarted based on the device startup file, the method further includes: Receive an online request message sent by the device to be online; Determining whether the device to be online is ready based on the online request message; If it is determined that the device to be online is ready, establishing a preset protocol connection channel with the device to be online based on the management IP address of the device to be online; The device configuration is delivered to the device to be online based on the preset protocol connection channel.

3. A device online method, characterized in that: Applied to a device to be put online, the device to be put online is interconnected with a network management device on a Layer 2 network, the network management device is configured with a management address pool and device startup files configured for each type of device, the method includes: After determining that the device is powered on, a raw socket broadcast message is sent to the network management device, wherein the raw socket broadcast message carries an online request of the device to be online, and after receiving the raw socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool; Receiving a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device; Establishing an IP communication connection with the network management device based on the management IP address and the IP address of the network management device; The device startup file is obtained based on the IP communication connection, and an online operation is performed based on the device startup file.

4. The method according to claim 3, wherein The step of obtaining the device startup file based on the IP communication connection includes: Sending a request to the network management device to obtain the name of the startup file of each device; receiving a response from the network management device containing the name of the startup file of each device; Determine the required target device startup file based on the device type, select the target device startup file name of the target device startup file from the names of the various device startup files, and feed back the target device startup file name to the network management device; Receive the target device startup file sent by the network management device.

5. The method according to claim 3, wherein The step of obtaining the device startup file based on the IP communication connection includes: Sending a request for obtaining a device startup file to the network management device, wherein the request for obtaining a device startup file carries the device type of the device to be online, and the network management device determines a target device startup file required by the device to be online based on the device type of the device to be online; Receive the target device startup file sent by the network management device.

6. A device online device, characterized in that: Applied to a network management device, the network management device is configured with a management address pool and device startup files configured for various types of devices, and the network management device communicates with the device to be put online on a Layer 2 network; the device includes: A receiving unit, configured to receive a raw socket broadcast message sent by a device to be online, wherein the raw socket broadcast message carries an online request of the device to be online; an allocating unit, configured to allocate a management IP address to the device to be online from the management address pool when determining that the message content of the original socket broadcast message is a device online request; A sending unit is used to send a raw socket response message to the device to be online, wherein the raw socket response message carries the management IP address and the IP address of the network management device, so that the device to be online establishes an IP communication connection with the network management device based on the management IP address and the IP address of the network management device, obtains the device startup file based on the IP communication connection, and performs device online operations based on the device startup file.

7. The device according to claim 6, characterized in that After the device to be put online is restarted based on the device startup file, the apparatus further includes a judgment unit, an establishment unit and a delivery unit: The receiving unit is further configured to receive an online request message sent by the device to be online; The judging unit is configured to judge whether the device to be online is ready based on the online request message; If the judging unit determines that the device to be online is ready, the establishing unit is configured to establish a connection channel with the device to be online according to a preset protocol based on the management IP address of the device to be online; The sending unit is used to send device configuration to the device to be online based on the preset protocol connection channel.

8. A device online device, characterized in that: Applied to a device to be put online, the device to be put online is interconnected with a network management device on a Layer 2 network, the network management device is configured with a management address pool and device startup files configured for each type of device, the device includes: a sending unit, configured to send a raw socket broadcast message to the network management device after determining that the device is powered on, wherein the raw socket broadcast message carries an online request of the device to be online, and after receiving the raw socket broadcast message, the network management device allocates a management IP address to the device to be online from the management address pool; A receiving unit, configured to receive a raw socket response message sent by the network management device, wherein the raw socket response message carries the management IP address and the IP address of the network management device; An establishing unit, configured to establish an IP communication connection with the network management device based on the management IP address and the IP address of the network management device; An acquiring unit is configured to acquire the device startup file based on the IP communication connection, and perform an online operation based on the device startup file.

9. The device according to claim 8, wherein When acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically configured to: Sending a request to the network management device to obtain the name of the startup file of each device; receiving a response from the network management device containing the name of the startup file of each device; Determine the required target device startup file based on the device type, select the target device startup file name of the target device startup file from the names of the various device startup files, and feed back the target device startup file name to the network management device; Receive the target device startup file sent by the network management device.

10. The device according to claim 8, wherein When acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically configured to: Sending a request for obtaining a device startup file to the network management device, wherein the request for obtaining a device startup file carries the device type of the device to be online, and the network management device determines a target device startup file required by the device to be online based on the device type of the device to be online; Receive the target device startup file sent by the network management device.

11. A device online, characterized in that: The equipment online device includes: a memory for storing program instructions; The processor is configured to call the program instructions stored in the memory and execute the steps of the method according to any one of claims 1 to 2 or claims 3 to 5 according to the obtained program instructions.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method according to any one of claims 1 to 2 or claims 3 to 5.

Citation Information

Patent Citations

  • Plug-and-play network element equipment, system and method for implementing online of plug-and-play network element equipment

    CN102882962A

  • Equipment online method and device

    CN112671829A