Equipment online method and device and related equipment
By using a network management device with a management address pool and device startup files, devices can communicate through layer 2 raw sockets to obtain IP addresses and startup files directly, simplifying deployment and reducing costs for network device online operations.
Patent Information
- Application Number
- CN202411214768.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Current methods for automatically bringing network devices online require complex deployment of multiple service components, including network management software, DHCP servers, and TFTP servers, leading to high deployment costs and complexity.
A method and apparatus that utilize a network management device with a management address pool and device startup files, enabling devices to communicate through layer 2 raw sockets to obtain IP addresses and startup files directly from the network management software, eliminating the need for DHCP and TFTP servers.
Simplifies the deployment process by reducing component dependency, lowers costs, and achieves plug-and-play functionality for network device online operations.
Smart Images

Figure CN119109961A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network management technology, and in particular to a method and apparatus for bringing a device online, and related equipment. Background Art
[0002] The network management and operation management system generally includes network management software and various network devices that uniformly control various network devices. The scale of network devices managed by network management software is expanding all the time, and the number of managed network devices is increasing. In addition, with the trend of intelligent management and operation, the way of equipment online and management is also changing. One of the essential technical means to deploy network management systems is to complete the management of equipment by automatically going online.
[0003] In the current methods and technologies for automatic device online, after the device is started with an empty configuration, it first obtains an IP (Internet Protocol) address and a startup file name through DHCP (Dynamic Host Configuration Protocol). Then, the obtained IP address and startup file name are used to communicate with the 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 discovers the device online request and processes it to complete the device online. To complete the automatic online of one or more devices, it is necessary to deploy network management software, DHCP server, DHCP relay system, TFTP file server, etc. 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 a layer 2 network of the device to be online; the method comprises:
[0006] Receiving an original socket broadcast message sent by a device to be online, wherein the original 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] A raw socket response message is sent 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] Receiving 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 put online is ready, a preset protocol connection channel is established with the device to be put online based on the management IP address of the device to be put online;
[0013] The device configuration is sent 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 layer 2 network of a network management device, and the network management device is configured with a management address pool and device startup files configured for each type of device, the method comprising:
[0015] After determining that the power-on startup is completed, sending a raw socket broadcast message 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 acquiring 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 that carries 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 acquiring 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 the 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 for online operation, 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 a layer 2 network of the device to be online; the device comprises:
[0028] A receiving unit, configured to receive an original socket broadcast message sent by a device to be online, wherein the original 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 used to receive an online request message sent by the device to be online;
[0033] The judging unit is used 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 put online is ready, the establishing unit is used to establish a preset protocol connection channel with the device to be put online based on the management IP address of the device to be put 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, which is applied to a device to be online, wherein the device to be online is interconnected with a layer 2 network of a network management device, and the network management device is configured with a management address pool and device startup files configured for each type of device, and the device includes:
[0037] A sending unit, configured to send a raw socket broadcast message to the network management device after determining that the power-on startup is completed, 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 acquisition unit is used 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 that carries 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 the 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 going online, the device going online comprising:
[0050] A memory for storing program instructions;
[0051] 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 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 for going online, the device going online 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 second aspects above.
[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 is interconnected with the second layer network of the device to be online; 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 for 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 device online operation based on the device startup file.
[0058] By adopting the device online method provided in the embodiment of the present application, in the empty configuration state of the device, the device interacts with the network management software through the second-layer raw socket message to obtain the management IP, network management software IP, and device startup file name assigned to the device by the network management software, and no longer relies on the DHCP server component or DHCP service. By using the acquired device management IP, network management software IP, and device startup file name, the device and the network management software perform cyclical unicast communication to obtain the startup file required for the automatic online of the device, eliminating the TFTP server component or TFTP service. The deployment process is simplified, the component dependency is removed, and the simplified use effect of plug-and-play of the device to the network management software is achieved, which can be completed only through several interactions of the second-layer message and the third-layer message.
[0059] In a small network environment with network management software, it can simplify the complexity of deployment configuration, save deployment costs, and remove 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 that are started 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 drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. 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 flow chart 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 detailed schematic diagram of the process of a device going 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 the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used 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, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".
[0071] The current network management software completes the automatic launch 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, basic parameter configuration is performed. After the configuration is completed, the device starts to power on and go online. For example, see Figure 1 As shown in the figure, it is 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, and both are used as parameter option data for the subsequent response to the device DHCP request.
[0076] In actual applications, in a Layer 3 network environment, when a device needs to be interconnected with a DHCP server, TFTP server, and network management system at Layer 3, the DHCP gateway information needs to be configured as a DHCP Option to 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 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 monitors the TFTP server and detects that a device is reading the startup file, it determines that the device is going online, obtains the device IP from TFTP, and starts to initiate a netconf connection to the device.
[0082] 8. After the network management successfully initiates the netconf connection request, it attempts to obtain basic information of the device. 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, the current method of automatic device launch relies on multiple basic service components, and the launch process requires the cooperation of multiple service components to complete. In order to complete the automatic launch of devices, in addition to network management software and devices, DHCP server components and TFTP server components need to be deployed, and the network management software, DHCP server, TFTP server, and devices need to cooperate with each other to complete the automatic launch of devices. The deployment process is complicated and the deployment cost is high.
[0085] The present application proposes a simplified method for automatic device on-line in a Layer 2 network environment, which does not require reliance on a DHCP server, a TFTP server, etc., and can complete the automatic on-line management of network devices only through network management software and network devices.
[0086] For example, see Figure 2 As shown, it 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, 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 second layer network of the device to be online; the method comprises the following steps:
[0087] Step 200: receiving 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 second-layer network wiring, so that the device and the second-layer network of the network management software are interconnected. For example, the network device management port is connected to the network management software deployment to ensure that the device management network port is connected to the second layer of the network management software network card.
[0089] In the embodiment of the present application, the original socket monitoring is enabled on the network management software side. Optionally, it is enabled dynamically here and can be disabled dynamically again after the device completes the automatic online operation. The network management software network card is configured in promiscuous mode and the original socket monitoring on the layer 2 network is enabled. In this way, the network management software can receive the original socket message initiated by any device to be online.
[0090] It should be noted that the device itself has no management IP when it is started with an empty configuration, and cannot communicate at the IP layer; however, using raw sockets does not rely on IP, and data communication between the two parties can be completed 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 request for the device to go online.
[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] Next, the network management device sends the management IP address assigned to the device to be online and the IP address of the network management device itself in a raw socket response message to the device to be online. The destination MAC address of the raw socket response message is the source MAC address of the received raw socket broadcast message, that is, the MAC address of the device to be online.
[0096] In an embodiment of the present application, the device to be put 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.
[0097] That is, after the device to be put online receives the original socket response message sent by the network management device, it parses the original socket response message, obtains the management IP address assigned to it, and configures the IP address. Then, based on the management IP address and the IP address of the network management device, it establishes an IP communication connection with the network management device. Finally, based on the IP communication connection, it obtains the corresponding device startup file from the network management device, completes the device restart based on the device startup file, and performs the device online operation.
[0098] In actual applications, different types of devices to be put 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 (such as 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, a mapping relationship between each device type and its corresponding device startup file is maintained on the network management device. 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 above-mentioned device to be online is restarted based on the above-mentioned device startup file, the above-mentioned device online method further includes the following steps:
[0102] Receive the online request message sent by the device to be online, and determine 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, establish a preset protocol connection channel with the device to be online based on the management IP address of the device to be online. Send device configuration to the device to be online based on the preset protocol connection channel.
[0103] Specifically, after the device to be put online is restarted based on the device startup file, it sends an online request message (IP message) to the network management device again. The network management device determines that the device to be put online is ready (for example, the operating system is installed, etc.), establishes a netconf, SNMP (Simple Network Management Protocol) and other connections with the device to be put online, manages and adds the device, and sends other necessary configurations to the device through the established netconf / SNMP protocol channel. At this point, the device completes the automatic online.
[0104] For example, see Figure 3 As shown, it 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. The device to be online is interconnected with a layer 2 network of 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. 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, and 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 carrying the name of each device startup file fed back by the above-mentioned network management device; 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 the above-mentioned device startup files, 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 As shown, it is a detailed schematic diagram of a device online process provided by an embodiment of the present application. Specifically, the detailed process of the device automatically going online is as follows:
[0113] 1. The network management software enables raw socket monitoring.
[0114] 2. The device starts with an empty configuration.
[0115] Specifically, since the device does not have an IP address, the device cannot interact with the network management software directly through the IP address. Subsequent interactions between the network management software and the device are first communicated through raw sockets.
[0116] 3. After the device is powered on, 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 the broadcast message 1 initiated by the device through its network card, if the parsed message content is an online request, it will allocate a management IP address from the management address pool configured by the network management software and send it to the device through a raw socket response message (marked as message 2 here), and the destination MAC address is the source MAC address when receiving message 1. 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 has a management IP address and also knows the IP address of the network management software. At this point, communication can be performed at the IP layer. The device uses its management IP address to unicast with the network management software at the IP layer, and sends a message (here marked as message 3) to the network management software requesting the device startup file name, requesting the startup file names of each device configured on the network management software.
[0120] 7. The network management software receives message 3 and sends the configured device startup file name to the device in a response message (marked as message 4 here).
[0121] 8. After receiving message 4, the device determines the required target device startup file according to the device role (device type). After completion, the device sends a request message (here marked as message 5) to the network management software again to request 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) according to the size of the startup file of the target device.
[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 it has not been received, it sends message 5 in a loop.
[0124] 11. The network management software cyclically replies to message 6 until the reception of the startup file of the target device is finally completed.
[0125] 12. The device loads the target device startup file and starts.
[0126] 13. After the device restarts, it sends an online request message to the network management software again (marked as message 7 here).
[0127] 14. After receiving message 7, the network management software determines that the device is ready. Use the source IP address of message 7 to establish a NETCONF, SNMP, etc. connection to the device and add 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 a network management device, for example, refer to Figure 5 As shown, it is a structural schematic diagram of a device online device provided in an embodiment of the present application, the device is 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 is interconnected with the layer 2 network of the device to be online; the device includes:
[0131] The receiving unit 50 is used to receive the 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;
[0132] The allocating unit 51 is used 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 put online is ready, the establishment unit is used to establish a preset protocol connection channel with the device to be put online based on the management IP address of the device to be put 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 method embodiment applied to the device to be put online, for example, refer to Figure 6 As shown, it is a structural schematic diagram of a device online device provided in an embodiment of the present application, the device is applied to a device to be online, the device to be online is interconnected with a layer 2 network of 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, the device includes:
[0140] The sending unit 60 is used to send a raw socket broadcast message to the network management device after determining the power-on startup, wherein the raw socket broadcast message carries the 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;
[0141] The receiving unit 61 is used to receive the original socket response message sent by the network management device, wherein the original socket response message carries the management IP address and the IP address of the network management device;
[0142] An establishing unit 62 is used 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 acquisition unit 63 is used 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 used to:
[0145] Send a request to the above 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 of the target device startup file from the names of the above-mentioned device startup files, 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 used 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 put online, and the network management device determines the target device startup file required by the device to be put online based on the device type of the device to be put 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 (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit is implemented in the form of a processing element scheduling program code, 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 seen 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 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 seen 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 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 may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess 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 medium, 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 with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0163] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present 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 may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including 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 The steps for the functions specified 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 substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A device online method, It is 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 is interconnected with the second layer network of the device to be put online; the method includes: Receiving an original socket broadcast message sent by a device to be online, wherein the original 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; A raw socket response message is sent 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, It is characterized in that After the device to be online is restarted based on the device startup file, the method further includes: Receiving 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 put online is ready, a preset protocol connection channel is established with the device to be put online based on the management IP address of the device to be put online; The device configuration is sent to the device to be online based on the preset protocol connection channel.
3. A device online method, It is characterized in that Applied to a device to be put online, the device to be put online is interconnected with a layer 2 network of 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, the method includes: After determining that the power-on startup is completed, sending a raw socket broadcast message 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, It is characterized in that 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 that carries 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, It is characterized in that 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 the 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 for bringing an equipment online, It is 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 is interconnected with the second layer network of the device to be put online; the device includes: A receiving unit, configured to receive an original socket broadcast message sent by a device to be online, wherein the original 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, It is characterized in that After the device to be online is restarted based on the device startup file, the device further includes a judgment unit, an establishment unit and a sending unit: The receiving unit is further used to receive an online request message sent by the device to be online; The judging unit is used 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 put online is ready, the establishing unit is used to establish a preset protocol connection channel with the device to be put online based on the management IP address of the device to be put 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 for bringing an equipment online, It is characterized in that Applied to a device to be put online, the device to be put online is interconnected with a layer 2 network of 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, the device comprises: A sending unit, configured to send a raw socket broadcast message to the network management device after determining that the power-on startup is completed, 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 acquisition unit is used 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 as claimed in claim 8, It is characterized in that When acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically used 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 that carries 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, It is characterized in that When acquiring the device startup file based on the IP communication connection, the acquiring unit is specifically used 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 the 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 for bringing an equipment online, It is characterized in that The equipment online device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps of the method according to any one of claims 1-2 or claims 3-5 according to the obtained program instructions.
12. A computer-readable storage medium, It is 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-2, or claims 3-5.
Citation Information
Patent Citations
System and method for implementing automatic configuration of equipment
CN101860545A
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
Configuration file acquisition method and device
CN113194119A
Method, device and system for configuring and managing AP (Access Point) and medium
CN114158036A
