CN-121984854-A - Firmware upgrading method, device, equipment and readable storage medium
Abstract
The application provides a firmware upgrading method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: after receiving the firmware upgrading information, the relay device copies the firmware upgrading information and then sends the firmware upgrading information to the plurality of network access devices in parallel so as to upgrade the firmware of the plurality of network access devices. The network access equipment is not required to be controlled to be upgraded among the network control equipment, the problems of bandwidth consumption, long upgrading time and the like caused by the fact that the network control equipment sends a firmware upgrading message to each network access equipment are avoided, and the firmware upgrading efficiency is improved. In addition, the firmware upgrade information is uploaded to the local CPU to perform retransmission using the firmware upgrade information in the CPU when the upgrade fails. Therefore, the network control equipment is not required to repeatedly send the firmware upgrading information, and the firmware upgrading efficiency is further improved.
Inventors
- WU XINGJIE
- YANG KE
Assignees
- 新华三信息技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260130
Claims (10)
- 1. A firmware upgrade method applied to a relay device connected between a network access device and a network control device, the method comprising: Receiving firmware upgrading information issued by the network control equipment; If the firmware upgrading information is identified to be used for carrying out firmware upgrading on N network access devices, wherein N is greater than 1, copying the firmware upgrading information to obtain N-1 copies of copied firmware upgrading information, transmitting N copies of firmware upgrading information to the N network access devices in parallel, and uploading one copy of firmware upgrading information to a local CPU (central processing unit), wherein the N copies of firmware upgrading information comprise the N-1 copies of firmware upgrading information and the received firmware upgrading information; If the response returned by any one of the N network access devices for the firmware upgrading information is not received within the set time, executing retransmission operation based on the firmware upgrading information uploaded to the local CPU; and if responses returned by the N network access devices for the firmware upgrading information are received within the set time, feeding back a firmware upgrading result to the network control device.
- 2. The method of claim 1, wherein the firmware required by all network access devices accessed by the relay device is the same, wherein the N network access devices are all network access devices accessed by the relay device, or wherein the N network access devices are all network access devices accessed by the relay device The network access equipment comprises network access equipment in an equipment group accessed by the relay equipment, and the firmware required by each network access equipment in the equipment group is the same.
- 3. The method of claim 1, the concurrently transmitting N parts of firmware upgrade information to the N network access devices comprising: generating N parts of firmware upgrading messages based on the N parts of firmware upgrading information, wherein the source IP address of any part of firmware upgrading message is the IP address of the relay equipment, so that any network access equipment returns a response based on the source IP address after receiving the firmware upgrading message; and respectively transmitting the N firmware upgrading messages to the N network access devices.
- 4. The method according to claim 1, wherein the method further comprises: if the response returned by the network access equipment is not received after the firmware upgrading information is continuously sent to the network access equipment for K times, the network control equipment is fed back that the firmware upgrading of the network access equipment fails.
- 5. The method of claim 1, wherein the firmware upgrade information carries N port identifications, the N port identifications being identifications of ports of the relay device locally connected to a network access device; the N network access devices comprise network access devices connected with ports corresponding to the N port identifiers.
- 6. The method of claim 1, wherein prior to receiving firmware upgrade information issued by the network control device, the method further comprises: if firmware upgrade instructions for a plurality of target access devices in the network access devices are detected, interacting with the plurality of target access devices through a link layer discovery protocol to acquire parameter information of each target access device; And sending the parameter information of each target access device to the network access device so that the network access device can determine the firmware upgrading information for each target access device according to the parameter information.
- 7. The method of claim 3, wherein the concurrently transmitting the N parts of firmware upgrade information to the N network access devices comprises: Dividing the N network access devices into a plurality of device groups according to the firmware versions of the N network access devices, wherein the plurality of network access devices included in each device group have the same firmware version; For each firmware upgrading message, determining a device group matched with the firmware upgrading message and sending the firmware upgrading message to each network access device in the device group in parallel so as to carry out firmware upgrading on the network access devices in the device group in parallel.
- 8. A firmware upgrade apparatus for a relay device connected between a network access device and a network control device, the apparatus comprising: the receiving module is configured to receive firmware upgrading information issued by the network control equipment; The copying module is configured to copy the firmware upgrading information to obtain N-1 copies of copied firmware upgrading information if the firmware upgrading information is identified to be used for carrying out firmware upgrading on N network access devices, wherein N is greater than 1, and the N copies of firmware upgrading information are sent to the N network access devices in parallel and one copy of firmware upgrading information is sent to a local CPU; A retransmission module configured to perform a retransmission operation based on the firmware upgrade information uploaded to the local CPU if a response returned by any one of the N network access devices to the firmware upgrade information is not received within a set time; And the feedback module is configured to feed back a firmware upgrading result to the network control equipment if responses returned by the N network access equipment for the firmware upgrading information are received within a set time.
- 9. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is configured to execute machine executable instructions to implement the method of any of claims 1-7.
- 10. A machine-readable storage medium having stored thereon machine-executable instructions executable by a processor, wherein the processor is configured to execute the machine-executable instructions to implement the method of any of claims 1-7.
Description
Firmware upgrading method, device, equipment and readable storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a firmware upgrade method, apparatus, device, and readable storage medium. Background Network access devices are used in such scenarios as wireless networks, fiber-to-room (Fiber to The Room, FTTR) networks, etc. to provide network access services to users. Currently, network access device firmware upgrades are often performed under control of a network control device in the scenario described above. In the above scenario, thousands or tens of thousands of network access devices are typically included. Once the firmware of the network access devices needs to be upgraded, the network control device needs to sequentially control the network access devices to upgrade the firmware, and a great deal of time is consumed. Disclosure of Invention The application provides a firmware upgrading method, a device, equipment and a program product, which are used for avoiding the problem that the time required for upgrading firmware for a large number of network access equipment is long. The application provides a firmware upgrading method, which is applied to a relay device connected between a network access device and a network control device, and comprises the following steps: receiving firmware upgrading information issued by network control equipment; If the firmware upgrading information is identified to be used for carrying out firmware upgrading on N network access devices, wherein N is greater than 1, the firmware upgrading information is duplicated to obtain N-1 parts of duplicated firmware upgrading information, N parts of firmware upgrading information is sent to the N network access devices in parallel, and one part of firmware upgrading information is sent to a local CPU (central processing unit); If the response returned by any one of the N network access devices to the firmware upgrading information is not received within the set time, executing retransmission operation based on the firmware upgrading information uploaded to the local CPU; and if responses returned by the N network access devices for the firmware upgrading information are received within the set time, feeding back a firmware upgrading result to the network control device. Optionally, the firmware required by all network access devices accessed by the relay device is the same, N network access devices are all network access devices accessed by the relay device, or The network access equipment comprises at least two network access equipment which are accessed by the relay equipment, wherein the firmware required by the at least two network access equipment which are accessed by the relay equipment is different, the N network access equipment comprises network access equipment in an equipment group which is accessed by the relay equipment, and the firmware required by each network access equipment in the equipment group is the same. Optionally, sending the N firmware upgrade information to the N network access devices in parallel includes: Generating N parts of firmware upgrading messages based on the N parts of firmware upgrading information, wherein the source IP address of any part of firmware upgrading message is the IP address of the relay equipment, so that any network access equipment returns a response based on the source IP address after receiving the firmware upgrading message; And respectively transmitting the N firmware upgrading messages to N network access devices. Optionally, the method further comprises: If the response returned by the network access equipment is not received after the firmware upgrading information is continuously sent to the network access equipment for K times, the network control equipment is fed back that the firmware upgrading of the network access equipment fails. Optionally, the firmware upgrade information carries N port identifiers, wherein the N port identifiers are identifiers of ports of the relay equipment locally connected with the network access equipment; the N network access devices comprise network access devices connected with ports corresponding to the N port identifiers. Optionally, before receiving the firmware upgrade information issued by the network control device, the method further includes: If firmware upgrade instructions for a plurality of target access devices in the network access devices are detected, interacting with the plurality of target access devices through a link layer discovery protocol to acquire parameter information of each target access device; And sending the parameter information of each target access device to the network access device so that the network access device can determine the firmware upgrading information aiming at each target access device according to the parameter information. Optionally, sending the N firmware upgrade information to the N network access devices