Upgrading method of CPE (Customer Premise Equipment), electronic equipment, medium and program product
By dynamically allocating download speeds for CPE devices through the SD-WAN central gateway, the problem of centralized upgrades for CPE devices is solved, achieving bandwidth-efficient upgrade traffic optimization while ensuring service traffic.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-03-27
AI Technical Summary
In SD-WAN deployments, customers are unable to procure a centralized management controller, which prevents CPE devices from undergoing centralized version upgrade management. Furthermore, the management channel cost of 4G/5G links is related to network traffic, and customers wish to reduce the consumption of non-business traffic.
The download speed of CPE devices is dynamically allocated through the SD-WAN central gateway. Based on device priority, upgrade traffic priority, and current service priority, combined with bandwidth utilization, the download speed is dynamically adjusted to optimize bandwidth utilization for upgrade traffic.
This enables CPE device upgrades to no longer rely on a separate management platform, ensuring business traffic while saving bandwidth and improving bandwidth utilization efficiency for upgrade traffic.
Smart Images

Figure CN121750469A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software-defined wide area network (SD-WAN) technology, and in particular to an upgrade method, electronic device, media, and program product for a CPE (Customer Premises Equipment, edge gateway) device. Background Technology
[0002] Traditional SD-WAN deployments include a centralized management controller and CPE devices. The centralized management controller provides unified management and maintenance of the CPE devices, including unified upgrade management. However, in actual SD-WAN deployment scenarios, customers may choose not to purchase a centralized management controller due to economic reasons, making it impossible to centrally manage version upgrades of the networked CPE devices. Alternatively, because the management channel between the CPE devices and the controller is a 4G / 5G link, costs are related to network traffic, and customers may not want non-core services to consume bandwidth, thus minimizing the bandwidth consumption associated with upgrades. Summary of the Invention
[0003] The purpose of this invention is to provide a method for upgrading CPE devices, electronic devices, media, and program products to at least partially solve the aforementioned problems of the prior art.
[0004] To achieve the above objectives, one aspect of the present invention provides a method for upgrading a CPE device, applied to a software-defined wide area network (SD-WAN), comprising: The SD-WAN central gateway sends an upgrade command to the CPE device; The SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization.
[0005] Preferably, the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the bandwidth utilization of the CPE device, including: The SD-WAN central gateway determines the maximum download speed for upgrade traffic based on the bandwidth utilization of the CPE device; The SD-WAN central gateway dynamically allocates download speeds to the CPE device based on one or more of the following: the device priority of the CPE device, the priority of upgrade traffic, and the priority of the current service of the CPE device. The download speed is less than the maximum download speed.
[0006] Preferably, before the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the bandwidth utilization of the CPE device, it further includes: The SD-WAN central gateway receives the bandwidth utilization rate sent by the CPE device, wherein the bandwidth utilization rate includes the ratio of the active duration of the CPE device's service traffic to the statistical period.
[0007] Preferably, the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on one or more of the following: device priority of the CPE device, priority of upgrade traffic, and priority of the current service of the CPE device. The higher the priority of the CPE device, the higher the priority of the upgrade traffic, or the lower the priority of the current service of the CPE device, the greater the download rate dynamically allocated to the upgrade traffic.
[0008] Preferably, the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the bandwidth utilization of the CPE device, including: The SD-WAN central gateway determines the download speed using the following formula: DL_rate = min (MAX_bw, K * ( 1 - U_bw ) * TOTAL_bw * Device_Priority_Weight ) * W; Wherein, DL_rate represents the download rate, MAX_bw represents the preset maximum download rate, K represents the security factor, U_bw represents the current bandwidth utilization, TOTAL_bw represents the total link bandwidth, Device_Priority_Weight represents the priority weight of the CPE device, and W represents the preset buffer factor.
[0009] Preferably, before the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the bandwidth utilization of the CPE device, it further includes: The SD-WAN central gateway receives the resource status reported by the CPE device, performs an upgrade feasibility assessment on the CPE device, and executes the upgrade if the assessment meets the upgrade conditions; otherwise, it does not execute the upgrade.
[0010] Preferably, the SD-WAN central gateway receives the resource status reported by the CPE device and performs an upgrade feasibility assessment on the CPE device, including: The resource status includes CPU utilization, memory utilization, and / or packet loss rate. When the CPU utilization exceeds a first threshold, the memory utilization exceeds a second threshold, or the packet loss rate is greater than a third threshold, the CPE device is assessed as not meeting the upgrade conditions.
[0011] Another aspect of the present invention provides an electronic device, the electronic device comprising: processor; Memory used to store processor-executable instructions; Wherein, when the processor invokes the executable instructions, it causes the electronic device to implement the CPE device upgrade method provided by the above aspects and any of them.
[0012] Another aspect of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the CPE device upgrade method provided in the above aspects and any of the above methods.
[0013] Another aspect of the present invention provides a computer program product comprising a computer program that, when executed by a processor, implements the CPE device upgrade method provided in the above aspects and any of the above methods.
[0014] Compared with the prior art, the present invention has at least the following advantages: Upgrading CPE devices no longer relies on a separate centralized management platform. This function can be handled by a central gateway. Furthermore, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, which can save bandwidth while ensuring business traffic and improve the bandwidth utilization efficiency of upgrade traffic. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating a method for upgrading a CPE device according to an embodiment of the present invention.
[0016] Figure 2 This is a flowchart illustrating a method for upgrading a CPE device according to another embodiment of the present invention.
[0017] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0018] Figure 4 This is a schematic diagram of the structure of the SD-WAN central gateway provided in an embodiment of the present invention. Detailed Implementation
[0019] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be used interchangeably where appropriate to understand the embodiments of the invention described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a product or device comprising a series of units is not necessarily limited to those explicitly listed, but may include other units not explicitly listed or inherent to such products or devices.
[0021] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0022] Example 1 Embodiment 1 of the present invention provides a method for upgrading CPE devices, which is applied to software-defined wide area networks (SD-WAN). Network upgrades no longer rely on an independent centralized management platform, but can be performed by a central gateway. Figure 1 A flowchart illustrating this method is shown, as follows: Figure 1 As shown, the method includes: Step 101: The SD-WAN central gateway sends an upgrade command to the CPE device; Step 102: The SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization.
[0023] In one implementation, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, including: The SD-WAN central gateway determines the maximum download speed for upgrade traffic based on the bandwidth utilization of the CPE device; The SD-WAN central gateway dynamically allocates download speeds to CPE devices based on one or more of the following: device priority, upgrade traffic priority, and current service priority of the CPE device. The download speed will be less than the maximum download speed.
[0024] The priorities of CPE devices, upgrade traffic, and current services on the CPE devices are all preset values. For example, device priorities can be preset for each CPE device based on their different importance within the entire SD-WAN. The priority of upgrade traffic is related to the importance and time requirements of the upgrade task. For example, upgrade tasks that need to be executed immediately have higher priority, and vice versa; or upgrade tasks that affect the normal operation of the CPE device have higher priority, and vice versa. The priority of current services on the CPE devices is a preset priority, such as instant messaging services having higher priority.
[0025] In one implementation, the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on one or more of the following: the CPE device's device priority, the priority of upgrade traffic, and the priority of the CPE device's current service. The higher the priority of the CPE device, the higher the priority of the upgrade traffic, or the lower the priority of the current service of the CPE device, the greater the download speed dynamically allocated for the upgrade traffic.
[0026] For example, the SD-WAN central gateway can dynamically allocate download speeds to CPE devices based solely on the device priority, upgrade traffic priority, or the current service priority of the CPE device. The higher the device priority, the higher the upgrade traffic priority, or the lower the current service priority, the greater the dynamically allocated download speed for upgrade traffic. However, the download speed will be less than the maximum download speed.
[0027] In other scenarios, the SD-WAN central gateway can comprehensively consider the device priority of the CPE device, the priority of upgrade traffic, and the priority of the current service of the CPE device. For example, it can set weights for each of the three, perform an average calculation, and dynamically allocate download speeds to the CPE device based on the comprehensive priority result, with the download speed being less than the maximum download speed.
[0028] In one implementation, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, including: The SD-WAN central gateway determines the download speed using the following formula: DL_rate = min (MAX_bw, K * ( 1 - U_bw ) * TOTAL_bw * Device_Priority_Weight ) * W; Wherein, DL_rate represents the download rate, MAX_bw represents the preset maximum download rate, K represents the security factor, U_bw represents the current bandwidth utilization, TOTAL_bw represents the total link bandwidth, Device_Priority_Weight represents the priority weight of the CPE device, and W represents the preset buffer factor.
[0029] MAX_bw is typically determined after the CPE device is configured and is related to the maximum bandwidth processing capacity of the CPE device. TOTAL_bw represents the total bandwidth of the link between the CPE device and the central gateway.
[0030] In one implementation, before the SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization, it further includes: The SD-WAN central gateway receives bandwidth utilization data from the CPE device, which includes the ratio of the active duration of the CPE device's service traffic to the statistical period.
[0031] In one implementation, before the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the CPE device's bandwidth utilization, the SD-WAN central gateway further includes: receiving the resource status reported by the CPE device, performing an upgrade feasibility assessment on the CPE device, and executing the upgrade if the assessment meets the upgrade conditions; otherwise, the upgrade is not executed.
[0032] In one implementation, the SD-WAN central gateway receives the resource status reported by the CPE device and performs an upgrade feasibility assessment on the CPE device, including: the resource status includes CPU utilization, memory utilization, and / or packet loss rate, and when the CPU utilization exceeds a first threshold, the memory utilization exceeds a second threshold, or the packet loss rate is greater than a third threshold, the CPE device is assessed as not meeting the upgrade conditions.
[0033] The first threshold, the second threshold, and the third threshold are all preset values that can be flexibly adjusted as needed.
[0034] In the method provided by this invention, a control feedback mechanism can also be set at the SD-WAN central gateway, such as rate limiting through a token bucket mechanism to support automatic speed reduction during congestion. When allocating download speeds to CPE devices, the SD-WAN central gateway considers the bandwidth utilization of the CPE devices, can set minimum bandwidth for service traffic to ensure normal transmission of service traffic, and then dynamically allocates bandwidth for upgrade traffic to improve bandwidth utilization efficiency.
[0035] By adopting the method provided in the embodiments of the present invention, the upgrade of CPE devices no longer depends on an independent centralized management platform. The function can be undertaken by a central gateway. Furthermore, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, which can save bandwidth while ensuring business traffic and improve the bandwidth utilization efficiency of upgrade traffic.
[0036] Example 2 Based on the same technical concept as Embodiment 1, this embodiment of the invention provides a method for upgrading a CPE device, which is applied to Software Defined Wide Area Network (SD-WAN). Figure 2 This diagram illustrates the upgrade method for the CPE device. (Reference) Figure 2 As shown, the method may include a preparation phase, an execution phase, and a verification phase.
[0037] The preparation phase includes steps 1-6: Step 1: The central gateway sends an upgrade command to the CPE device.
[0038] The SD-WAN central gateway replaces the centralized management platform in existing technologies to undertake the upgrade task of CPE devices and send upgrade commands to CPE devices.
[0039] Step 2: The CPE device reports resource status and bandwidth utilization.
[0040] The resource status reported by the CPE device includes the system's current CPU utilization, packet loss rate, and remaining memory. Bandwidth utilization is the ratio of the CPE device's active service traffic duration to the statistical period.
[0041] Step 3: The CPE device requests to download the upgrade package.
[0042] CPE devices can request to download upgrade packages, such as firmware upgrade packages, in chunks, with each chunk being 16MB in size.
[0043] Step 4: The central gateway returns encrypted data blocks to the CPE device.
[0044] The central gateway can assess whether the CPE device meets the upgrade conditions based on the resource status reported by the CPE device. When the upgrade conditions are met, it can dynamically allocate download speed to the CPE device and return encrypted data blocks.
[0045] In another approach, the central gateway does not need to perform an evaluation operation in this step, but instead directly dynamically allocates download speeds to the CPE device and returns encrypted data blocks.
[0046] The evaluation method may include: if CPU utilization exceeds a first threshold, memory utilization exceeds a second threshold, or packet loss rate exceeds a third threshold, the CPE device is deemed not to meet the upgrade requirements. The first, second, and third thresholds can all be flexibly adjusted according to actual needs.
[0047] In one example, the evaluation method includes evaluating according to the following formula: Health_Score = 0.5 * ( 1 - CPU_util ) + 0.3 * ( 1-Packet_loss) + 0.2* Mem_free ) Among them, CPU_util represents CPU utilization, Packet_loss represents packet loss rate, and Mem_free represents the proportion of remaining memory space.
[0048] By setting a threshold, for example, Health_Score > 0.85, the evaluation is considered passed and an upgrade can be performed when the Health_Score value is greater than 0.85; otherwise, the evaluation is considered failed and an upgrade is not performed. It's easy to understand that 0.85 is just an example value and can be adjusted flexibly as needed. Furthermore, the coefficients 0.5, 0.3, and 0.2 in the above formula are also example values and can be adjusted flexibly as needed.
[0049] If the evaluation result indicates that the CPE device does not meet the upgrade requirements, the operation of returning encrypted data blocks to the CPE device will not be performed. In one implementation, a response message indicating that the upgrade requirements are not met may be returned to the CPE device.
[0050] In one implementation, dynamically allocating download speeds for CPE devices includes: the central gateway determining the maximum download speed for upgrade traffic based on the bandwidth utilization of the CPE device; and the central gateway dynamically allocating download speeds to the CPE device based on one or more of the following: the device priority of the CPE device, the priority of the upgrade traffic, and the priority of the current service of the CPE device, with the download speed being less than the maximum download speed. The priorities of the CPE device, the upgrade traffic, and the current service of the CPE device are all preset values. For example, device priorities can be preset for each CPE device based on their different importance within the entire SD-WAN. The priority of upgrade traffic is related to the importance and time requirements of the upgrade task; for example, an upgrade task requiring immediate execution has a high priority, and vice versa; or an upgrade task affecting the normal operation of the CPE device has a high priority, otherwise a low priority. The priority of the current service of the CPE device is a preset priority; for example, instant messaging services have a high priority. In one implementation, the higher the device priority of the CPE device, the higher the priority of the upgrade traffic, or the lower the priority of the current service of the CPE device, the greater the download speed dynamically allocated for the upgrade traffic.
[0051] For example, an SD-WAN central gateway can dynamically allocate download speeds to CPE devices based solely on the device priority, upgrade traffic priority, or the current service priority of the CPE device. Higher device priority, higher upgrade traffic priority, or lower current service priority result in a higher dynamically allocated download speed for upgrade traffic. However, the download speed will be less than the maximum download speed. In other examples, the SD-WAN central gateway can comprehensively consider the device priority, upgrade traffic priority, and current service priority of the CPE device. For instance, it can assign weights to each of these factors, calculate an average, and dynamically allocate download speeds to the CPE device based on the overall priority result, resulting in a download speed less than the maximum download speed.
[0052] In one implementation, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, including: The SD-WAN central gateway determines the download speed using the following formula: DL_rate = min (MAX_bw, K * ( 1 - U_bw ) * TOTAL_bw * Device_Priority_Weight ) * W; Wherein, DL_rate represents the download rate, MAX_bw represents the preset maximum download rate, K represents the security factor, U_bw represents the current bandwidth utilization, TOTAL_bw represents the total link bandwidth, Device_Priority_Weight represents the priority weight of the CPE device, and W represents the preset buffer factor.
[0053] MAX_bw is typically determined after the CPE device is configured and is related to the maximum bandwidth processing capacity of the CPE device. TOTAL_bw represents the total bandwidth of the link between the CPE device and the central gateway.
[0054] Step 5: The CPE device receives data until completion and performs local data verification (e.g., SHA256).
[0055] Step 6: The CPE device performs full signature verification to ensure data security.
[0056] The execution phase includes steps 7-12: Step 7: The CPE device requests upgrade authorization from the central gateway.
[0057] After completing firmware download and verification, the CPE device sends an upgrade authorization request to the central gateway. The request includes the device's current resource status, and may also include current network bandwidth utilization. The device's current resource status includes CPU load, memory usage, packet loss rate, etc.
[0058] Network bandwidth utilization can include the ratio of the active duration of service traffic on the CPE device to the statistical period, which can be calculated, for example, using the following formula: U_bw = ( T_active / T_total ) × 100% Where T_active represents the duration of active business traffic, and T_total represents the statistical period.
[0059] Step 8: The central gateway confirms the execution window and returns to the CPE device.
[0060] The execution window refers to performing firmware upgrades during predefined periods of low traffic to minimize the impact on services. The central gateway confirms the specific time period of the execution window and then sends it to the CPE device.
[0061] Before confirming the execution window, the central gateway can first conduct an upgrade feasibility assessment based on the information in the CPE device upgrade authorization application. If the assessment is feasible, the upgrade will be executed; otherwise, the upgrade will not be executed this time.
[0062] The evaluation method can refer to the description in step 4 above, including: if the CPU utilization exceeds the first threshold, the memory utilization exceeds the second threshold, or the packet loss rate is greater than the third threshold, the CPE device is deemed not to meet the upgrade conditions. The first, second, and third thresholds can all be flexibly adjusted according to actual needs.
[0063] In one example, the evaluation method includes evaluating according to the following formula: Health_Score = 0.5 * ( 1 - CPU_util ) + 0.3 * ( 1-Packet_loss) + 0.2* Mem_free ) Among them, CPU_util represents CPU utilization, Packet_loss represents packet loss rate, and Mem_free represents the proportion of remaining memory space.
[0064] By setting a threshold, for example, Health_Score > 0.85, the evaluation is considered passed and an upgrade can be performed when the Health_Score value is greater than 0.85; otherwise, the evaluation is considered failed and an upgrade is not performed. It's easy to understand that 0.85 is just an example value and can be adjusted flexibly as needed. Furthermore, the coefficients 0.5, 0.3, and 0.2 in the above formula are also example values and can be adjusted flexibly as needed.
[0065] The evaluation cycle can be adjusted flexibly according to actual needs, such as conducting an evaluation before each upgrade or at regular intervals.
[0066] In another approach, if CPU utilization is >70% for 5 minutes, packet loss rate is >0.1%, or memory availability is <30%, the evaluation is considered a failure and no upgrade is performed; otherwise, the upgrade is deemed feasible.
[0067] Other methods can also take into account the following: if Health_Score > 0.85, CPU utilization > 70% for less than a minute, packet loss rate less than 0.1%, and available memory greater than 30%, the evaluation is considered passed and the upgrade can proceed; otherwise, the evaluation is considered failed and the upgrade will not proceed.
[0068] In one implementation, a first upgrade assessment is performed in step 4, and a second upgrade assessment is performed in step 8. This ensures that the CPE device still meets the upgrade conditions when the upgrade is performed, and avoids situations such as upgrade failure or impact on the current business of the CPE device due to changes in the resource status of the CPE device.
[0069] Step 9, CPE device backup configuration.
[0070] CPE devices can back up downloaded upgrade package data.
[0071] Step 10: Switch the execution partition of the CPE device.
[0072] Step 11: Write the new firmware version to the CPE device.
[0073] In this example, the CPE device performs a firmware upgrade by writing the new firmware version based on the downloaded upgrade package.
[0074] Step 12: Restart the CPE device.
[0075] The verification phase includes steps 13-16.
[0076] Step 13: After the CPE device successfully restarts, it performs a service self-test, including, for example, a network connectivity self-test.
[0077] Step 14: If the CPE device upgrade is successful, update the status and report the upgrade success to the central gateway.
[0078] Step 15: If the CPE device upgrade fails, a rollback will be triggered to revert to the previous version.
[0079] Step 16: If the CPE device upgrade fails, an upgrade failure error log will be reported to the central gateway.
[0080] By adopting the method provided in the embodiments of the present invention, the upgrade of CPE devices no longer depends on an independent centralized management platform. The function can be undertaken by a central gateway. Furthermore, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, which can save bandwidth while ensuring business traffic and improve the bandwidth utilization efficiency of upgrade traffic.
[0081] Example 3 Based on the same technical concept as Embodiments 1 and 2, this embodiment of the invention provides an electronic device, with reference to... Figure 3 As shown, the electronic device includes: a processor 31 and a memory 32 for storing processor-executable instructions; wherein, when the processor 31 invokes the executable instructions, the electronic device implements the CPE device upgrade method provided in Embodiment 1 or 2 and any of its embodiments.
[0082] The electronic device may also include input interfaces, output interfaces, buses, and other components. The input and output interfaces are used for communication between the electronic device and external devices. The bus is used for communication between internal components such as processors and memory.
[0083] Example 4 Based on the same technical concept as Embodiments 1 and 2, this embodiment of the invention provides an SD-WAN central gateway, so that network upgrades no longer depend on an independent centralized management platform, but can be performed by the central gateway. Figure 4 The diagram shows the structure of the SD-WAN central gateway, as follows: Figure 4 As shown, the SD-WAN central gateway includes: The sending module 41 is used to send upgrade instructions to the CPE device.
[0084] The allocation module 42 is used to dynamically allocate download speeds to the CPE device based on the bandwidth utilization of the CPE device.
[0085] In one implementation, the allocation module 42 is used for: Determine the maximum download speed for upgrade traffic based on the bandwidth utilization of the CPE device; Download speeds are dynamically allocated to CPE devices based on one or more of the following: device priority, upgrade traffic priority, and current service priority. The download speed is less than the maximum download speed.
[0086] The priorities of CPE devices, upgrade traffic, and current services on the CPE devices are all preset values. For example, device priorities can be preset for each CPE device based on their different importance within the entire SD-WAN. The priority of upgrade traffic is related to the importance and time requirements of the upgrade task. For example, upgrade tasks that need to be executed immediately have higher priority, and vice versa; or upgrade tasks that affect the normal operation of the CPE device have higher priority, and vice versa. The priority of current services on the CPE devices is a preset priority, such as instant messaging services having higher priority.
[0087] In one implementation, the allocation module 42 can be used to dynamically allocate a higher download rate for upgrade traffic when the CPE device's priority, upgrade traffic priority, or current service priority is lower. For example, the SD-WAN central gateway can dynamically allocate a download rate to the CPE device based solely on its device priority, upgrade traffic priority, or current service priority, with higher priorities for each category. However, the download rate will be less than the maximum download rate. In other cases, the SD-WAN central gateway can comprehensively consider the CPE device's priority, upgrade traffic priority, and current service priority, for example, by assigning weights to each and averaging them, and dynamically allocating a download rate to the CPE device based on the overall priority result, with the download rate being less than the maximum download rate.
[0088] In one implementation, the allocation module 42 can be used to determine the download rate using the following formula: DL_rate = min (MAX_bw, K * ( 1 - U_bw ) * TOTAL_bw * Device_Priority_Weight ) * W; Wherein, DL_rate represents the download rate, MAX_bw represents the preset maximum download rate, K represents the security factor, U_bw represents the current bandwidth utilization, TOTAL_bw represents the total link bandwidth, Device_Priority_Weight represents the priority weight of the CPE device, and W represents the preset buffer factor.
[0089] MAX_bw is typically determined after the CPE device is configured and is related to the maximum bandwidth processing capacity of the CPE device. TOTAL_bw represents the total bandwidth of the link between the CPE device and the central gateway.
[0090] In one implementation, the SD-WAN central gateway may further include: The receiving module 43 is used to receive the bandwidth utilization rate sent by the CPE device, wherein the bandwidth utilization rate includes the ratio of the active duration of the CPE device's service traffic to the statistical period.
[0091] In one implementation, the SD-WAN central gateway may further include: The evaluation module 44 is used to receive the resource status reported by the CPE device, evaluate the feasibility of upgrading the CPE device, and execute the upgrade if the evaluation meets the upgrade conditions; otherwise, the upgrade is not executed.
[0092] In one implementation, the resource status includes CPU utilization, memory utilization, and / or packet loss rate. The evaluation module 44 can be used to: assess whether the CPE device does not meet the upgrade conditions when the CPU utilization exceeds a first threshold, the memory utilization exceeds a second threshold, or the packet loss rate is greater than a third threshold. The first, second, and third thresholds are all preset values and can be flexibly adjusted as needed.
[0093] The CPE device provided in this embodiment of the invention can be a single CPE device or a cluster of CPE devices.
[0094] In one example, the SD-WAN central gateway and CPE device provided in this embodiment of the invention transmit upgrade packages via an overlay tunnel.
[0095] The SD-WAN central gateway may include: a policy engine for generating device grouping and upgrade policies; an encrypted image repository for storing ECDSA-signed firmware and supporting incremental updates; a task scheduler for dynamic bandwidth allocation and task priority management; and a security authentication center for two-way authentication based on X.509 certificates. The allocation module 42, receiving module 43, and evaluation module 44 provided in this embodiment of the invention can all be located within the task scheduler functional unit.
[0096] CPE devices may include: a proxy client for receiving instructions and reporting status; dual-partition storage for Active / Backup partitioning with hot switching support; a self-test module for automatically performing service connectivity tests after an upgrade; and a bandwidth controller for dynamically adjusting the upgrade traffic rate.
[0097] Example 5 Based on the same technical concept as Embodiments 1 and 2, this embodiment of the invention provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the CPE device upgrade method provided in Embodiments 1 or 2 and any of their embodiments.
[0098] Example 6 Based on the same technical concept as Embodiments 1 and 2, this embodiment of the invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the CPE device upgrade method provided in Embodiments 1 or 2 and any of their embodiments.
[0099] By adopting the solution provided in this embodiment of the invention, the upgrade of CPE devices no longer depends on an independent centralized management platform. The function can be undertaken by a central gateway. Furthermore, the SD-WAN central gateway dynamically allocates download speeds to CPE devices based on their bandwidth utilization, which can save bandwidth while ensuring service traffic and improve the bandwidth utilization efficiency of upgrade traffic.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Those skilled in the art should understand that modifications can be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for upgrading a CPE device, applied to Software-Defined Wide Area Network (SD-WAN), characterized in that, include: The SD-WAN central gateway sends an upgrade command to the CPE device; The SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization.
2. The upgrade method for CPE equipment according to claim 1, characterized in that, The SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization, including: The SD-WAN central gateway determines the maximum download speed for upgrade traffic based on the bandwidth utilization of the CPE device; The SD-WAN central gateway dynamically allocates download speeds to the CPE device based on one or more of the following: the device priority of the CPE device, the priority of upgrade traffic, and the priority of the current service of the CPE device. The download speed is less than the maximum download speed.
3. The method for upgrading CPE equipment according to claim 1 or 2, characterized in that, Before the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the CPE device's bandwidth utilization, it also includes: The SD-WAN central gateway receives the bandwidth utilization rate sent by the CPE device, wherein the bandwidth utilization rate includes the ratio of the active duration of the CPE device's service traffic to the statistical period.
4. The method for upgrading CPE equipment according to claim 2, characterized in that, The SD-WAN central gateway dynamically allocates download speeds to the CPE device based on one or more of the following: device priority of the CPE device, priority of upgrade traffic, and priority of the current service of the CPE device. The higher the priority of the CPE device, the higher the priority of the upgrade traffic, or the lower the priority of the current service of the CPE device, the greater the download rate dynamically allocated to the upgrade traffic.
5. The method for upgrading a CPE device according to claim 1 or 2, characterized in that, The SD-WAN central gateway dynamically allocates download speeds to the CPE devices based on their bandwidth utilization, including: The SD-WAN central gateway determines the download speed using the following formula: DL_rate = min (MAX_bw, K * ( 1 - U_bw ) * TOTAL_bw * Device_Priority_Weight ) * W; Wherein, DL_rate represents the download rate, MAX_bw represents the preset maximum download rate, K represents the security factor, U_bw represents the current bandwidth utilization, TOTAL_bw represents the total link bandwidth, Device_Priority_Weight represents the priority weight of the CPE device, and W represents the preset buffer factor.
6. The method for upgrading a CPE device according to claim 1 or 2, characterized in that, Before the SD-WAN central gateway dynamically allocates download speeds to the CPE device based on the CPE device's bandwidth utilization, it also includes: The SD-WAN central gateway receives the resource status reported by the CPE device, performs an upgrade feasibility assessment on the CPE device, and executes the upgrade if the assessment meets the upgrade conditions; otherwise, it does not execute the upgrade.
7. The method for upgrading a CPE device according to claim 6, characterized in that, The SD-WAN central gateway receives the resource status reported by the CPE device and performs an upgrade feasibility assessment on the CPE device, including: The resource status includes CPU utilization, memory utilization, and / or packet loss rate. When the CPU utilization exceeds a first threshold, the memory utilization exceeds a second threshold, or the packet loss rate is greater than a third threshold, the CPE device is assessed as not meeting the upgrade conditions.
8. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; When the processor invokes the executable instructions, it causes the electronic device to implement the upgrade method for the CPE device according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the upgrade method for the CPE device according to any one of claims 1-7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the upgrade method for the CPE device according to any one of claims 1-7.