Equipment upgrading method and related equipment
By receiving and processing merged upgrade packages in the FTTR scenario, the master device and slave device are asynchronously upgraded, and the problem of low efficiency of upgrading slave gateway devices in the existing technology is solved, and the upgrade efficiency of the overall network device is improved.
Patent Information
- Application Number
- CN202311343254.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2025-04-18
AI Technical Summary
In fiber-to-room (FTTR) and other fiber-to-door networking scenarios, it is difficult for existing automatic configuration servers (ACS) to efficiently upgrade multiple gateway devices, resulting in reduced efficiency of the entire upgrade process.
The master device receives the merged upgrade packet sent by the first device, and the master device extracts and upgrades its own upgrade packet and the slave device's upgrade packet, and sends the slave device's upgrade packet to the slave device for upgrade as appropriate.
Asynchronous upgrade of master and slave devices is realized, the load on ACS server is reduced, and the upgrading efficiency of network devices is significantly improved.
Smart Images

Figure CN119854116A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and specifically to a device upgrading method and related devices. Background Art
[0002] In the digital age of the Internet of Everything, the Internet has become an indispensable part of life, and the demand for fiber to the room (FTTR) is also growing.
[0003] In order to achieve FTTR, a home network environment requires not only traditional master gateway devices, but also multiple slave gateway devices, such as multiple access points (AP) devices deployed in different rooms, to provide users with high-bandwidth, low-latency network access services. When the number of master gateways and APs in a home network environment increases, these network devices need to be upgraded and maintained. Currently, an auto configuration server (ACS) is commonly used to upgrade each master gateway device and slave gateway device.
[0004] However, it is difficult for the ACS server to directly access the slave gateway device, which requires the cooperation of the master gateway device. Moreover, as the number of slave gateway devices increases, the ACS server upgrades the slave gateway devices one by one, which will also reduce the efficiency of the entire upgrade process. Summary of the invention
[0005] The embodiment of the present application provides a device upgrade method and related devices for improving the upgrade efficiency of network devices. The embodiment of the present application also provides corresponding network devices, computing devices, storage media, etc.
[0006] A first aspect of the present application provides a device upgrade method, the method comprising: a master device receives a first upgrade package sent by a first device, the first upgrade package comprising a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; the master device is upgraded based on the second upgrade package, and / or the master device sends the third upgrade package to the slave device, so that the slave device is upgraded based on the third upgrade package.
[0007] In the present application, the device upgrade method can be applied to fiber-to-the-home networking scenarios such as fiber-to-the-room. In this scenario, there is a master device (also referred to as a master gateway, gateway, or optical network terminal device), one or more slave devices (also referred to as slave gateways, access points, or edge optical network terminal devices), and a first device for upgrading the master device and the slave device (for example, an automatic configuration server).
[0008] In this application, the first device can directly use the data nodes defined in TR-181 in the current standard TR-069 protocol family to obtain the number of slave devices (the default master device is one) in the network of the current scenario, that is, to obtain the information of the slave devices connected to the master device in the network according to the current standard protocol. After the first device obtains this information, it can merge the upgrade packages of the master and slave devices based on this information.
[0009] In this application, after receiving the first upgrade package, the master device needs to extract the second upgrade package and the third upgrade package from the first upgrade package. The master device can upgrade itself based on the second upgrade package only, or send the third upgrade package to the slave device only, so that the slave device can upgrade based on the third upgrade package, or can upgrade based on the second upgrade package at the same time and send the third upgrade package to the slave device.
[0010] In the present application, after receiving the first upgrade package, the master device can determine the upgrade time by itself or according to the information in the first upgrade package. For example, after receiving the first upgrade package, the master device can immediately upgrade based on the second upgrade package, and send the third upgrade package to the slave device after waiting for a preset time, or enable the slave device to start upgrading after a preset time after the slave device receives the third upgrade package. The upgrade timing of the master device or the slave device can be determined based on user needs.
[0011] In the present application, the first device completes the upgrade process after sending the first upgrade package to the master device, and the subsequent upgrade process does not require the participation of the first device, thereby reducing the load on the first device. After receiving the first upgrade package, the master device can also send multiple third upgrade packages to the corresponding different multiple slave devices while upgrading itself. The master device may not participate in the upgrade process of the slave device, and the slave device is automatically upgraded after receiving the third upgrade package by default. In addition, if the master device only supports processing one task at a time, the master device can also send the third upgrade package to multiple slave devices in the default order. When the third upgrade package is sent to the second slave device, the first slave device has received the third upgrade package and upgraded, thereby realizing an asynchronous parallel upgrade process, which can significantly improve the upgrade efficiency when the number of slave devices is large.
[0012] In the first aspect, the master device receives a first upgrade package sent by the first device, wherein the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; the master device is upgraded based on the second upgrade package, and / or the master device sends the third upgrade package to the slave device, so that the slave device is upgraded based on the third upgrade package. That is, after the first device merges the upgrade packages of the master device and the slave device and sends them to the master device, it does not need to participate in the subsequent upgrade process, and the first device does not need to access the slave device, but completes the upgrade of the master device and the slave device through the master device, that is, the first device and the master device asynchronously complete the upgrade operation, thereby improving the upgrade efficiency of the network device.
[0013] In a possible implementation manner of the first aspect, the first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
[0014] In this possible implementation, the first upgrade package merges the second upgrade package and the third upgrade package by differential merging, and only one copy of the data needs to be retained for the same parts of the two, thereby reducing the space occupied by the first upgrade package, reducing the storage pressure of the main device and the time for data transmission.
[0015] In a possible implementation of the first aspect, in the above step: before the master device is upgraded based on the second upgrade package, the method further includes: the master device extracts the second upgrade package from the common upgrade package and the difference upgrade package; in the above step: before the master device sends the third upgrade package to the slave device, the method further includes: the master device extracts the third upgrade package from the common upgrade package and the difference upgrade package.
[0016] In this possible implementation, when the first upgrade package is merged by differential merging, the main device needs to extract the contents of the second upgrade package and the third upgrade package from the first upgrade package respectively and then combine them to restore the second upgrade package and the third upgrade package, thereby improving the feasibility of the solution.
[0017] In a possible implementation manner of the first aspect, the first upgrade package also includes file header information, where the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
[0018] In this possible implementation, the second upgrade package and the third upgrade package may be directly merged and distinguished by file header information, which improves the feasibility of the solution.
[0019] In a possible implementation manner of the first aspect, the master device communicates with the slave device based on a Universal Plug and Play (UPNP) extended protocol.
[0020] In this possible implementation, the master device communicates with the slave device based on the extended UPNP protocol, so that the master device controls the upgrade operation of the slave device, thereby improving the feasibility of the solution.
[0021] In a possible implementation manner of the first aspect, the first device is an automatic configuration server or a computer device.
[0022] In this possible implementation, the operator can remotely control the upgrade through the automatic configuration server, or the operator's maintenance personnel can locally control the upgrade using computer equipment, which improves the feasibility of the solution.
[0023] A second aspect of the present application provides a device upgrade method, the method comprising: a first device obtains a first upgrade package, the first upgrade package comprising a second upgrade package for upgrading a master device and a third upgrade package for upgrading a slave device; the first device sends the first upgrade package to the master device, so that the master device is upgraded based on the second upgrade package, and / or the slave device is upgraded based on the third upgrade package.
[0024] In a possible implementation of the second aspect, the first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
[0025] In a possible implementation manner of the second aspect, the common upgrade package and the difference upgrade package are determined by the first device based on a hash algorithm.
[0026] In this possible implementation, when the first upgrade package is merged through the differential merging scheme, the first device can quickly compare the differences between the second upgrade package and the third upgrade package based on the hash algorithm, thereby extracting the common upgrade package and the difference upgrade package, thereby improving the feasibility of the scheme.
[0027] In a possible implementation manner of the second aspect, the first upgrade package also includes file header information, where the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
[0028] In a possible implementation manner of the second aspect, the master device communicates with the slave device based on a Universal Plug and Play (UPNP) extended protocol.
[0029] In a possible implementation manner of the second aspect, the first device is an automatic configuration server or a computer device.
[0030] A third aspect of the present application provides a device upgrade method, the method comprising: receiving a third upgrade package sent by a master device from a slave device, the third upgrade package being extracted by the master device from a first upgrade package, and the first upgrade package being sent by the first device to the master device; and upgrading the slave device based on the third upgrade package.
[0031] In a possible implementation manner of the third aspect, the slave device communicates with the master device based on a Universal Plug and Play (UPNP) extended protocol.
[0032] In a fourth aspect, the present application provides a computing device for executing the method in the first aspect or any possible implementation of the first aspect. Specifically, the computing device includes a module or unit for executing the method in the first aspect or any possible implementation of the first aspect, such as a receiving unit, an upgrading unit, and an extracting unit.
[0033] In a fifth aspect of the present application, a computing device is provided for executing the method in the second aspect or any possible implementation of the second aspect. Specifically, the computing device includes a module or unit for executing the method in the second aspect or any possible implementation of the second aspect, such as an acquisition unit and a sending unit.
[0034] In a sixth aspect of the present application, a computing device is provided for executing the method in the third aspect or any possible implementation of the third aspect. Specifically, the computing device includes a module or unit for executing the method in the third aspect or any possible implementation of the third aspect, such as a receiving unit and an upgrading unit.
[0035] In a seventh aspect, the present application provides a computing device, the computing device comprising a processor, a memory, and a computer-readable storage medium storing a computer program; the processor is coupled to the computer-readable storage medium, and a computer-executable instruction running on the processor, when the computer-executable instruction is executed by the processor, the processor executes the method as described in the first aspect or any possible implementation of the first aspect. Optionally, the computing device may also include an input / output (I / O) interface, and the computer-readable storage medium storing the computer program may be a memory.
[0036] In an eighth aspect of the present application, a computing device is provided, the computing device comprising a processor, a memory, and a computer-readable storage medium storing a computer program; the processor is coupled to the computer-readable storage medium, and a computer-executable instruction running on the processor, when the computer-executable instruction is executed by the processor, the processor executes the method as described in the second aspect or any possible implementation of the second aspect. Optionally, the computing device may also include an input / output (I / O) interface, and the computer-readable storage medium storing the computer program may be a memory.
[0037] In a ninth aspect of the present application, a computing device is provided, the computing device comprising a processor, a memory, and a computer-readable storage medium storing a computer program; the processor is coupled to the computer-readable storage medium, and a computer-executable instruction running on the processor, when the computer-executable instruction is executed by the processor, the processor executes the method as described in the third aspect or any possible implementation of the third aspect. Optionally, the computing device may also include an input / output (I / O) interface, and the computer-readable storage medium storing the computer program may be a memory.
[0038] The tenth aspect of the present application provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as described in the first aspect or any possible implementation of the first aspect.
[0039] In the eleventh aspect of the present application, a computer-readable storage medium is provided that stores one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as in the second aspect or any possible implementation of the second aspect.
[0040] The twelfth aspect of the present application provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as described in the third aspect or any possible implementation of the third aspect.
[0041] The thirteenth aspect of the present application provides a computer program product storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as described in the first aspect or any possible implementation of the first aspect.
[0042] In a fourteenth aspect, the present application provides a computer program product storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as described in the second aspect or any possible implementation of the second aspect.
[0043] The fifteenth aspect of the present application provides a computer program product storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as described in the third aspect or any possible implementation of the third aspect.
[0044] In the sixteenth aspect of the present application, a chip system is provided, which includes at least one processor and an interface, the interface is used to receive data and / or signals, and at least one processor is used to support a computer device to implement the functions involved in the above-mentioned first aspect or any possible implementation of the first aspect. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for the computer device. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0045] In the seventeenth aspect of the present application, a chip system is provided, which includes at least one processor and an interface, the interface is used to receive data and / or signals, and at least one processor is used to support a computer device to implement the functions involved in the above-mentioned second aspect or any possible implementation of the second aspect. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for the computer device. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0046] In aspect 18 of the present application, a chip system is provided, which includes at least one processor and an interface, the interface is used to receive data and / or signals, and at least one processor is used to support a computer device to implement the functions involved in the third aspect or any possible implementation of the third aspect. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for the computer device. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0047] In the embodiment of the present application, the master device receives the first upgrade package sent by the first device, wherein the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; the master device is upgraded based on the second upgrade package, and / or the master device sends the third upgrade package to the slave device, so that the slave device is upgraded based on the third upgrade package. That is, after the first device merges the upgrade packages of the master device and the slave device and sends them to the master device, it does not need to participate in the subsequent upgrade process, and the first device does not need to access the slave device, but completes the upgrade of the master device and the slave device through the master device, that is, the first device and the master device asynchronously complete the upgrade operation, which improves the upgrade efficiency of the network device. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1This is a schematic diagram of the fiber-to-room networking scenario in a home network;
[0049] Figure 2 Provide maintenance diagram for fiber-to-the-room upgrades in home networks;
[0050] Figure 3 A schematic diagram of an embodiment of a device upgrade method provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of a first upgrade package provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the merger of the first upgrade package provided in the embodiment of the present application;
[0053] Figure 6 A schematic diagram of another embodiment of the device upgrade method provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of another embodiment of the device upgrade method provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of a second upgrade package and a third upgrade package provided in an embodiment of the present application;
[0056] Fig. 9 and Fig.10 A schematic diagram of the merging process of the first upgrade package provided in an embodiment of the present application;
[0057] Fig.11 Another schematic diagram of the first upgrade package provided in an embodiment of the present application;
[0058] Fig.12 A schematic diagram of data relationships of a first upgrade package provided in an embodiment of the present application;
[0059] Figure 13-Figure 15 A schematic diagram of an embodiment of a network device provided in an embodiment of the present application;
[0060] Fig.16 A schematic diagram of an embodiment of a computing device provided for an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0062] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0063] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0064] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0065] The following is an explanation of the terminology concepts involved in the embodiments of the present application.
[0066] (1) Fiber to the room (FTTR) / Fiber to the home (FTTH)
[0067] FTTR and FTTH are the main ways for households and small and medium-sized enterprises to access the Internet.
[0068] (2) Main Gateway
[0069] The main gateway is also called the main device. It refers to the device in the home network that is used to aggregate all network devices in the home network to connect to the Internet. It is usually placed in the home network weak current box.
[0070] (3) From the gateway
[0071] The slave gateway is also called a slave device. It is a part of the home network equipment, used to aggregate some network devices to connect to the main gateway. It is usually placed in the family room or other places away from the weak power box to expand the connection range of the home network.
[0072] (4) Optical network terminal (ONT) / optical network unit (ONU)
[0073] By default, ONT and ONU are the main devices in the home network.
[0074] (5) Access point (AP)
[0075] AP is a device that connects network devices to the (internet) network (aggregation point). It is a kind of slave device in home network devices.
[0076] (6) Edge ONT
[0077] Edge ONT refers to an edge device in a home network that is connected to the main gateway ONT and is used to expand the home network connection range. It is similar to the role of AP, but has stronger functions and performance than AP. It is also a kind of slave device.
[0078] (7) Optical line terminal (OLT)
[0079] OLT is a device in a fiber-to-the-home (FTTH) network that converts optical fiber signals into electrical signals and sends them to the user's terminal device.
[0080] (8) Auto configuration server (ACS)
[0081] ACS is a server in a home network that is managed by an operator and is used to maintain and configure home network devices.
[0082] (9)TR-069(Technical Report 069)
[0083] TR-069 is a remote management protocol developed by the International Telecommunication Union (ITU-T) for remote management and configuration of Internet service provider (ISP) equipment.
[0084] (10) Universal Plug and Play (UPNP)
[0085] UPNP is a device-to-device communication protocol based on the Internet Protocol (IP) network, which allows devices to automatically discover and connect to other devices in the network, thereby achieving interconnection and communication between devices.
[0086] The following is an example of the application scenario involved in the embodiments of the present application in combination with the above-mentioned term probability.
[0087] In the digital age of the Internet of Everything, the Internet has become an indispensable part of life. With the widespread application of gigabit fiber networks, the demand for fiber to the room (FTTR) is also growing.
[0088] In order to achieve FTTR, in addition to the traditional master gateway device, a home network environment also requires multiple slave gateway devices. For example, multiple AP devices or edge ONTs and other slave devices are deployed in different rooms to provide users with high-bandwidth, low-latency network access services.
[0089] like Figure 1 As shown, the current home network environment is equipped with a master device (gateway ONT, 192.168.100.1), a slave device (edge ONT1, 192.168.100.3) and a slave device (edge ONT2, 192.168.100.2). The master device is connected to the World Wide Web (WWW) and ACS and other networks through the OLT, and the two slave devices are connected to the master device. The network devices in the home include mobile phones, personal computers, smart TVs, fixed phones and Internet of Things (IoT) devices. Among them, the mobile phone can access the Internet through any master device or slave device through the wireless mesh network (Mesh), the personal computer accesses the edge ONT2 through the fixed Ethernet, the smart TV accesses the edge ONT1 through the fixed Ethernet, the fixed phone accesses the edge ONT1 through the fixed analog telephone service (plain old telephone service, POTS), and the IoT device wirelessly accesses the edge ONT1.
[0090] When the number of master devices and slave devices in a home network environment increases, these network devices need to be upgraded and maintained. Currently, an automatic configuration server (ACS) is often used to upgrade each master gateway device and slave gateway device.
[0091] like Figure 2As shown in the figure, in the upgrade and maintenance scenario of home network devices, the main device (gateway ONT) is generally configured with an Internet wide area network (WAN) and a TR-069WAN to isolate user services and management services (upgrade services). User services can only access the WWW through the Internet WAN, while upgrade services can only access the ACS through the TR-069WAN.
[0092] Operators can use a remote server (ACS) to remotely maintain and upgrade the equipment through the standard TR-069 protocol, or the operator's staff can maintain and upgrade the network equipment locally through the network equipment's web page or computer equipment on the local area network (LAN) side. That is, the gateway ONT device upgrade package and edge ONT device upgrade package in the home network device upgrade package can be upgraded on the local WEB page or command line, or deployed on the ACS for remote upgrade.
[0093] However, no matter which of the above methods is used, because there are multiple network devices in the entire home network, they need to be maintained and upgraded one by one, which means that different software version files need to be used to independently maintain and upgrade each network device. When there are many sub-network devices in the FTTR scenario, the maintenance and upgrade efficiency of the entire home network is greatly reduced.
[0094] In addition, when using ACS for upgrading, due to network configuration isolation, ACS cannot directly manage sub-devices within the home network, that is, the edge ONT cannot be directly accessed. The master and slave devices of the same manufacturer, through the factory default configuration, allow ACS to independently manage the edge ONT (at this time, the master device is only used for the traversal function), but there are also some restrictions.
[0095] Specifically, some ACS have capacity limitations. Because the number of edge ONT devices in FTTR home networks has increased significantly, the existing ACS cannot afford it. The operator needs to expand the current network capacity before the problem can be solved. Furthermore, ACS is deployed in a proprietary network, and the network's broadband traffic is limited. Because edge ONTs need to transmit a large amount of data when upgrading, the ACS network bandwidth is limited, and the time for upgrading services becomes longer. Because of server capacity limitations and network bandwidth limitations, it is impossible to directly upgrade and maintain network devices within the home network. In addition, because Edge ONT is inside the home network, it cannot directly access the ACS server, that is, ACS cannot directly upgrade and maintain network devices within the home network. It needs the cooperation of the gateway ONT to set the network routing information, and there are problems in the coordination of devices between different versions and different manufacturers.
[0096] Based on this, the embodiment of the present application provides a device upgrade method and related devices for improving the upgrade efficiency of network devices. The embodiment of the present application also provides corresponding network devices, computing devices, storage media, etc. The following are detailed descriptions.
[0097] The device upgrade method provided in the embodiment of the present application is described below in combination with the above-mentioned terminology concepts and application scenarios.
[0098] like Figure 3 As shown, an embodiment of the present application provides a device upgrade method, an embodiment of the method includes:
[0099] 301. A first device obtains a first upgrade package.
[0100] In the FTTP scenario, when multiple network devices need to be upgraded, for example Figure 2 In the scenario shown, multiple network devices may have different models, versions, manufacturers, etc., and their software upgrade packages are also different, that is, the upgrade packages of the master device and the slave device are independent of each other, so the upgrade packages of the master and slave devices need to be merged. That is, the first device first needs to obtain the first upgrade package, which includes the second upgrade package for upgrading the master device and the third upgrade package for upgrading the slave device.
[0101] Specifically, the first device can directly use the data node defined in TR-181 of the current standard TR-069 protocol family to obtain how many slave devices exist in the network of the current scene (the default master device is one), that is, to obtain the information of the slave devices connected to the master device in the network according to the current standard protocol. After the first device obtains this information, it can merge the upgrade packages of the master and slave devices according to this information. There are many specific merging methods, which are described below.
[0102] 1. Direct merger
[0103] like Figure 4 As shown, in this solution, simply add file header information to the second upgrade package and the third upgrade package and then merge them, that is, add the file description and offset information in front of multiple files to merge them. At this time, the first upgrade package obtained by merging includes not only the second upgrade package and the third upgrade package, but also the file header information, which is used to describe the offset information and upgrade package size of the second upgrade package, as well as the offset information and upgrade package size of the third upgrade package. This merging solution can merge upgrade packages of any network device, including upgrade packages of devices from different manufacturers.
[0104] Exemplarily, as shown in Table 1, in the merged first upgrade package, the second upgrade package and the third upgrade package can be distinguished by the file header information. In addition, there may be multiple third upgrade packages. When the processing capability of the device supports the identification of multiple third upgrade packages, the multiple third upgrade packages can also be directly merged with the second upgrade package.
[0105] Table 1
[0106]
[0107] It should be understood that the specific content and form of the file header information may also be other content and forms, and the embodiments of the present application do not limit the specific content and form of the file header information.
[0108] 2. Difference Merging
[0109] In this solution, the same parts of the second upgrade package and the third upgrade package are combined into a common upgrade package, which can also be understood as a shared sub-package (Item). After the other different parts are marked with description information (such as identification information) of different network devices, they are combined into a first upgrade package. That is, the first upgrade package includes the common upgrade package and the difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, and the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, as well as the description information of the difference parts.
[0110] For the differential merging solution, a third upgrade package is added. Since there are many common parts, the space occupied by the first upgrade package is actually increased by only 5%-10%.
[0111] Exemplarily, the kernel part (i.e., the operating system part of the network device) of the second upgrade package and the third upgrade package are the same. When merging, only one kernel needs to be retained in the public upgrade package, and the other identical parts are processed in the same way. The different difference parts are all retained in the difference upgrade package and distinguished by descriptive information.
[0112] like Figure 5As shown, the kernel parts are all < <entity>>kernel, only one is retained. Similarly, the business part < <entity>>HG SignInfo is the same, and only one is retained. The signature of the business part needs to be discarded and re-signed. The business part exists in the second upgrade package< <entity>>HG Rootfs, business part exists in the third upgrade package< <entity>>AP Rootfs, if the two are different, extract the same files in the two as < <entity>>BasicExRootfs, save as identical parts, extract different files as < <entity>>HG ExRootfs and < <entity>>AP ExRootfs, saved as a difference.
[0113] It should be understood that each common part and difference part has information for identifying a network device. For example, if there are network devices A, B, and C, and if common part A is only applicable to network devices A and B, then the network devices to which it applies will also be identified in common part A, but information about network device C will not be identified. Similarly, each difference part will only identify the network devices to which it applies, thereby facilitating the use of the master device.
[0114] The common upgrade package and the difference upgrade package are determined by the first device based on a hash algorithm, that is, the first device compares the difference between the second upgrade package and the third upgrade package through a hash algorithm, thereby screening out the same parts and the difference parts. The hash algorithm can specifically be Md5, sha1, sha256, etc., which is not limited in the embodiment of the present application.
[0115] It should be noted that since the difference part has a certain correlation with the network equipment, and the integrity of the software package must also be considered to ensure that the manufacturer's digital signature verification information is correct, this differential merging solution is particularly suitable for network equipment from the same manufacturer.
[0116] It should be understood that the method of merging the upgrade packages of the master and slave devices includes but is not limited to the above two methods, for example, by incrementally merging the files of the different parts in the form of incremental patches. The embodiment of the present application does not limit the specific method of merging the upgrade packages of the master and slave devices.
[0117] In the embodiment of the present application, a differential scheme based on file comparison is adopted to distinguish files with differences, which will cause the original complete upgrade program package to be split into multiple parts. The overlayfs technology already supported by Linux can be used to logically merge the split program parts into complete parts, and then start execution. In fact, as long as the content of the program package is complete, other splitting and merging techniques can also be used, such as temporary merging (i.e. copying two or more parts to the same temporary directory for use), or other methods to achieve the purpose of merging.
[0118] 302. The first device sends a first upgrade package to the master device.
[0119] After the upgrade packages of the master and slave devices are merged into a large first upgrade package, all required upgrade packages are transmitted to the master device as upgrade packages of the master device. At this time, the master device needs to process its own upgrade package and the upgrade package of the slave device at the same time.
[0120] After receiving the first upgrade package sent by the first device, the master device first needs to extract the second upgrade package and the third upgrade package from the common upgrade package and the difference upgrade package, or extract the second upgrade package and the third upgrade package from the first upgrade package based on the file header information.
[0121] 303. The master device is upgraded based on the second upgrade package.
[0122] 304. The master device sends a third upgrade package to the slave device.
[0123] 305. The slave device is upgraded based on the third upgrade package.
[0124] The first device may be in various forms, and the upgrade procedures of different first devices are also different, which are described below respectively.
[0125] 1. The first device is the automatic configuration server ACS
[0126] For example, Figure 6 As shown, in step 302, the ACS sends an upgrade request to the master device (ONT) based on the standard TR-069 protocol. The upgrade request can be identified as an upgrade request for a merged first upgrade package (i.e., a unified package), rather than an upgrade request only for the master device. The master device requests the first upgrade package from the ACS based on the upgrade request. After the ACS sends the first upgrade package to the master device, the master device performs a signature verification and writes all the contents in the first upgrade package (such as the second upgrade package and the third upgrade package, etc.) into its flash memory (Flash).
[0127] The current TR-069 protocol already has a complete process for upgrading the master device, so after the master device extracts the second upgrade package, it can complete the upgrade based on conventional protocols and methods.
[0128] Furthermore, the master device communicates with the slave device based on the Universal Plug and Play (UPNP) extension protocol. Within the home network, the UPNP protocol can be used to achieve communication between the master device and the slave device. However, the standard UPNP protocol does not have a method for the master device to upgrade the slave device. Therefore, the standard UPNP protocol needs to be extended on this basis.
[0129] Exemplarily, the UPNP extension protocol is shown in Table 2. It should be understood that the UPNP extension protocol only needs to support the upgrade communication of the master device to the slave device. The embodiment of the present application does not limit the specific content of the UPNP extension protocol.
[0130] Table 2
[0131]
[0132] After the master device extracts the third upgrade package from the first upgrade package, it initiates an internal upgrade request and version number verification to the slave device (EdgeONT 1) based on the UPNP extended protocol. The slave device requests the third upgrade package from the master device based on the internal upgrade request (the master device may also extract the third upgrade package after receiving the request from the slave device, and combine it according to the upgrade package format requirements of the slave device). After receiving the third upgrade package, the slave device completes the verification and upgrade operations of the third upgrade package and returns the upgrade result.
[0133] It should be understood that the master device can send the third upgrade package to multiple slave devices at the same time, and the first device completes its upgrade process after sending the first upgrade package to the master device, thereby realizing asynchronous upgrade, reducing the pressure on the ACS server, and improving upgrade efficiency.
[0134] 2. The first device is a computer device
[0135] In addition to remote upgrades on the ACS, operators' maintenance personnel can also perform local upgrades using computer equipment.
[0136] For example, Figure 7 As shown, the maintenance personnel log in to the management page of the main device through the local area network in the home network, and use the merged first upgrade package (upgrade file) to upgrade all network devices in the home network at one time.
[0137] When the first device is a computer device, unlike the first solution which only triggers the configuration plane of the upgrade, the subsequent upgrade process of the master device (ONT) and the slave device (AP 1) can refer to the above related description, and the embodiments of the present application will not be repeated here.
[0138] It should be understood that at this time, the maintenance personnel may actively initiate an upgrade request locally through the slave device, upload the first upgrade package to the master gateway through the slave gateway, and then complete the upgrade operation of the entire home network.
[0139] Optionally, time information may be added to the first upgrade package, and the time information is used to indicate the upgrade time of the slave device, so the master device can upgrade the slave device in any time period according to user requirements.
[0140] The device upgrading method provided in the embodiment of the present application is described in detail below with reference to an example.
[0141] like Figure 8 As shown, the second upgrade package of the master device (also known as the master gateway or gateway) and the third upgrade package of the slave device (also known as the slave gateway or AP) both include upgrade package description information, digital signature identification, Uboot boot program, Linux Kernel part, rootfs business program part and other configuration data. Although the software upgrade packages of the two network devices are basically the same in structure, there are certain differences in the rootfs business program part and other configuration data. Here, the two upgrade packages are merged using differential merging.
[0142] like Fig. 9 and Fig.10 As shown in the figure, in the specific upgrade process, the upgrade packages of the two network devices are first decompressed and completely split into different sub-items. For the same sub-items, such as the Uboot boot part and the Linux Kernel part, no processing is required. The upgrade package description part and the digital signature part (used for integrity verification of the upgrade package) need to be re-modified and digital signatures added, which are not processed here first, and then the rootfs business program part with differences is further compared and processed.
[0143] Specifically, first decompress the rootfs of two different network devices to different temporary directories, assuming they are A_Tmp (temporary directory of the master gateway) and B_Tmp (temporary directory of the slave gateway), and then create three output directories, namely the output directories of the master gateway and the slave gateway, and a public directory Basic. The output directory of the master gateway is used to save files used in the master gateway, the output directory of the slave gateway is used to save files used in the slave gateway, and Basic is used to save files shared by the two network devices.
[0144] Then traverse each file in the temporary directory A_Tmp, and find the corresponding file in the temporary directory B_Tmp of the slave gateway with the same file name (including relative path). If the same file is found, calculate the HASH value of the two files (using the SHA1 algorithm) and compare them. If the HASH values of the two files are the same, discard the file of the slave gateway, and put the file of the master gateway in the directory of the public part. If the HASH values of the two files are different, one is put in the output directory of the master gateway and the other is put in the output directory of the slave gateway. If the corresponding file is not found in the slave gateway, put the file directly in the output directory of the master gateway until all files in the temporary directory of the master gateway are processed. Then copy all remaining files in the temporary directory of the slave gateway to the output directory of the slave gateway. Finally, analyze and package the three output directories into three parts, and merge the three parts and other indifferent parts into an upgrade package file to obtain the following Fig.11 The first upgrade package is shown.
[0145] It should be noted that the above process is basically the same as the current standard TR-069 protocol for gateway upgrades. The only difference is that for the main gateway, there are some application files that do not belong to its own device in the upgrade package. These extra files have no other impact except taking up a little Flash space, so there is basically no big change. In addition, in the upgrade verification of the software package, whether the software can be loaded on the specified product and whether the digital signature of the software package is correct need to be simply adjusted, which are basically available in the current product, so they will not be described in detail.
[0146] After the first upgrade package (SWM Package) is generated, the data relationship between the first upgrade package and the master device (gateway) and the slave device (AP) is as follows: Fig.12 As shown, the merged first upgrade package is a large and comprehensive content, which includes all the upgrade data of the master device and the slave device. When upgrading the master device, all data is written into the Flash of the master device, including the upgrade data of the slave device, to ensure that the master device can upgrade the slave device later. When the slave device requests an upgrade from the master device, the master device only sends the data required by the slave device to the slave device, and only the data required by the slave device is written into the Flash of the slave device.
[0147] In an embodiment of the present application, the upgrade packages of the master and slave devices are merged, and the master and slave devices can still be upgraded. The upgrade packages of the master and slave devices are merged into one upgrade package by direct merging or differential merging, and the merged upgrade package does not affect the previous upgrade function, that is, the master device can be upgraded separately, and the slave device can also be upgraded separately. In the upgrade process of the home network, when the master device receives the unified first upgrade package, after completing the upgrade of the master device, it will also identify the upgrade data of the slave device part in the first upgrade package, and actively complete the upgrade of the slave device within the local area network. The master device of the home network can perform maintenance and upgrades on the internal slave devices, so when the external network is disconnected, the upgrade and maintenance processing of the slave devices in the internal network can still be completed.
[0148] The above introduces the device upgrade method provided in the embodiment of the present application. The following introduces the related devices provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0149] like Fig.13 As shown, an embodiment of the present application provides a network device, and an embodiment of the network device 1300 includes:
[0150] The receiving unit 1301 is used to receive a first upgrade package sent by a first device, where the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device. The receiving unit 1301 can execute step 302 in the above method embodiment.
[0151] The upgrading unit 1302 is used to upgrade based on the second upgrading package, and / or send a third upgrading package to the slave device so that the slave device is upgraded based on the third upgrading package. The upgrading unit 1302 can execute step 303 and step 304 in the above method embodiment.
[0152] Optionally, the first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, and the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
[0153] Optionally, the network device 1300 further includes an extracting unit 1303, which is used to extract a second upgrade package from the common upgrade package and the difference upgrade package; the extracting unit 1303 is also used to extract a third upgrade package from the common upgrade package and the difference upgrade package.
[0154] Optionally, the first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
[0155] Optionally, the master device communicates with the slave device based on a Universal Plug and Play (UPNP) extended protocol.
[0156] Optionally, the first device is an automatic configuration server or a computer device.
[0157] The network device 1300 provided in the embodiment of the present application can be understood by referring to the corresponding content about the main device in the aforementioned device upgrade method embodiment part, and will not be repeated here.
[0158] like Fig.14 As shown, the embodiment of the present application further provides a network device, and an embodiment of the network device 1400 includes:
[0159] The acquisition unit 1401 is used to acquire a first upgrade package, which includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device. The acquisition unit 1401 can execute step 301 in the above method embodiment.
[0160] The sending unit 1402 is configured to send the first upgrade package to the master device, so that the master device is upgraded based on the second upgrade package, and / or the slave device is upgraded based on the third upgrade package. The sending unit 1402 may execute step 302 in the above method embodiment.
[0161] Optionally, the first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, and the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
[0162] Optionally, the common upgrade package and the difference upgrade package are determined by the acquisition unit based on a hash algorithm.
[0163] Optionally, the first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
[0164] Optionally, the master device communicates with the slave device based on a Universal Plug and Play (UPNP) extended protocol.
[0165] Optionally, the first device is an automatic configuration server or a computer device.
[0166] The network device 1400 provided in the embodiment of the present application can be understood by referring to the corresponding content about the first device in the aforementioned device upgrade method embodiment part, and will not be repeated here.
[0167] like Fig.15 As shown, the embodiment of the present application further provides a network device, and an embodiment of the network device 1500 includes:
[0168] The receiving unit 1501 is used to receive a third upgrade package sent by the main device, where the third upgrade package is extracted by the main device from the first upgrade package, and the first upgrade package is sent by the first device to the main device; the receiving unit 1501 can execute step 304 in the above method embodiment.
[0169] The upgrading unit 1502 is configured to perform upgrading based on the third upgrading package. The upgrading unit 1502 may execute step 305 in the above method embodiment.
[0170] Optionally, the receiving unit 1501 communicates with the main device based on the Universal Plug and Play (UPNP) extended protocol.
[0171] The network device 1500 provided in the embodiment of the present application can be understood by referring to the corresponding content about the slave device in the aforementioned device upgrade method embodiment part, which will not be repeated here.
[0172] like Fig.16 As shown, the embodiment of the present application also provides a computing device, Fig.16 16 is a possible logical structure diagram of a computing device 1600. The computing device 1600 includes: a processor 1601, a communication interface 1602, a memory 1603, and a bus 1604. The processor 1601 may include a CPU, or a CPU and at least one of a GPU, an NPU, and other types of processors. The processor 1601, the communication interface 1602, and the memory 1603 are interconnected via the bus 1604. In an embodiment of the present application, the processor 1601 is used to control and manage the actions of the computing device 1600. For example, the processor 1601 is used to execute Figure 3 In the steps 301 to 305 of the embodiment of the present invention, and / or other processes for the technology described herein, the computing device 1600 may specifically be the first device, the master device, or the slave device in the aforementioned embodiment. The communication interface 1602 is used to support the computing device 1600 to communicate. The memory 1603 is used to store the program code and data of the computing device 1600.
[0173] Among them, processor 1601 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. Bus 1604 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, and so on. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0174] In another embodiment of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When at least one processor of a device executes the computer-executable instructions, the device executes the device upgrade method described in the above embodiment.
[0175] In another embodiment of the present application, a computer program product is also provided, which includes computer execution instructions, which are stored in a computer-readable storage medium; at least one processor of the device can read the computer execution instructions from the computer-readable storage medium, and at least one processor executes the computer execution instructions so that the device executes the device upgrade method described in the above embodiment.
[0176] In another embodiment of the present application, a chip system is also provided, the chip system includes at least one processor and an interface, the interface is used to receive data and / or signals, and at least one processor is used to support the device upgrade method described in the above embodiment. In one possible design, the chip system may also include a memory, the memory is used to store program instructions and data necessary for the computer device. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0177] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0178] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0179] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0180] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0182] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.< / entity> < / entity> < / entity> < / entity> < / entity> < / entity> < / entity>
Claims
1. A device upgrading method, characterized in that: include: The master device receives a first upgrade package sent by the first device, where the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; The master device is upgraded based on the second upgrade package, and / or The master device sends the third upgrade package to the slave device, so that the slave device is upgraded based on the third upgrade package.
2. The method according to claim 1, characterized in that The first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
3. The method according to claim 2, characterized in that Before the master device is upgraded based on the second upgrade package, the method further includes: The master device extracts the second upgrade package from the common upgrade package and the difference upgrade package; Before the master device sends the third upgrade package to the slave device, the method further includes: The master device extracts the third upgrade package from the common upgrade package and the difference upgrade package.
4. The method according to claim 1, characterized in that: The first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
5. The method according to any one of claims 1 to 4, characterized in that The master device communicates with the slave device based on a universal plug and play (UPNP) extended protocol.
6. The method according to any one of claims 1 to 5, characterized in that The first device is an automatic configuration server or a computer device.
7. A device upgrade method, characterized in that: include: The first device obtains a first upgrade package, where the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; The first device sends the first upgrade package to the master device, so that the master device is upgraded based on the second upgrade package, and / or the slave device is upgraded based on the third upgrade package.
8. The method according to claim 7, characterized in that The first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
9. The method according to claim 8, characterized in that The common upgrade package and the difference upgrade package are determined by the first device based on a hash algorithm.
10. The method according to claim 7, characterized in that The first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
11. The method according to any one of claims 7 to 10, characterized in that: The master device communicates with the slave device based on a universal plug and play (UPNP) extended protocol.
12. The method according to any one of claims 7 to 11, characterized in that: The first device is an automatic configuration server or a computer device.
13. A device upgrade method, characterized in that: include: The slave device receives a third upgrade package sent by the master device, where the third upgrade package is extracted by the master device from a first upgrade package, where the first upgrade package is sent by the first device to the master device; The slave device is upgraded based on the third upgrade package.
14. The method according to claim 13, characterized in that The slave device communicates with the master device based on a universal plug and play (UPNP) extension protocol.
15. A network device, characterized in that: include: A receiving unit, configured to receive a first upgrade package sent by a first device, wherein the first upgrade package includes a second upgrade package for upgrading a master device and a third upgrade package for upgrading a slave device; An upgrading unit is used to perform an upgrade based on the second upgrade package, and / or send the third upgrade package to the slave device, so that the slave device is upgraded based on the third upgrade package.
16. The device according to claim 15, characterized in that The first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
17. The device according to claim 16, characterized in that The device also includes: An extraction unit, configured to extract the second upgrade package from the common upgrade package and the difference upgrade package; The extracting unit is further configured to extract the third upgrade package from the common upgrade package and the difference upgrade package.
18. The device according to claim 15, characterized in that The first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
19. The device according to any one of claims 15 to 18, characterized in that The master device communicates with the slave device based on a universal plug and play (UPNP) extended protocol.
20. The device according to any one of claims 15 to 19, characterized in that The first device is an automatic configuration server or a computer device.
21. A network device, characterized in that: include: An acquisition unit, configured to acquire a first upgrade package, wherein the first upgrade package includes a second upgrade package for upgrading the master device and a third upgrade package for upgrading the slave device; A sending unit is used to send the first upgrade package to the master device, so that the master device is upgraded based on the second upgrade package, and / or the slave device is upgraded based on the third upgrade package.
22. The device according to claim 21, characterized in that The first upgrade package includes a common upgrade package and a difference upgrade package, the common upgrade package includes the same parts of the second upgrade package and the third upgrade package, the difference upgrade package includes the difference parts of the second upgrade package and the third upgrade package, and description information of the difference parts.
23. The device according to claim 22, characterized in that The common upgrade package and the difference upgrade package are determined by the acquisition unit based on a hash algorithm.
24. The device according to claim 21, characterized in that The first upgrade package also includes file header information, and the file header information is used to describe the offset information and upgrade package size of the second upgrade package, and the offset information and upgrade package size of the third upgrade package.
25. The device according to any one of claims 21 to 24, characterized in that The master device communicates with the slave device based on a universal plug and play (UPNP) extended protocol.
26. The device according to any one of claims 21 to 25, characterized in that The first device is an automatic configuration server or a computer device.
27. A network device, characterized in that: include: A receiving unit, configured to receive a third upgrade package sent by a master device, wherein the third upgrade package is extracted by the master device from a first upgrade package, and the first upgrade package is sent by the first device to the master device; An upgrading unit, configured to perform upgrading based on the third upgrading package.
28. The device according to claim 27, characterized in that The receiving unit communicates with the main device based on a Universal Plug and Play (UPNP) extension protocol.
29. A computing device, characterized in that The method comprises a processor on which computer-executable instructions are run. When the computer-executable instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 14.
30. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Cited By
Multi-device upgrading method and device
CN121486190A
A multi-device upgrade method and device
CN121486190B
Device upgrade method and related device
EP4783530A1
Device upgrade method and related device
WO2025081783A1