CN116033483A - Anti-congestion remote upgrading method and device, computer equipment and storage medium - Google Patents

Anti-congestion remote upgrading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116033483A
CN116033483A CN202211699528.3A CN202211699528A CN116033483A CN 116033483 A CN116033483 A CN 116033483A CN 202211699528 A CN202211699528 A CN 202211699528A CN 116033483 A CN116033483 A CN 116033483A
Authority
CN
China
Prior art keywords
upgraded
cell
queue
equipment
congestion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211699528.3A
Other languages
Chinese (zh)
Inventor
刘健
朱明�
丁霞
王世杰
张峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202211699528.3A priority Critical patent/CN116033483A/en
Publication of CN116033483A publication Critical patent/CN116033483A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a congestion-preventing remote upgrading method, a congestion-preventing remote upgrading device, computer equipment and a storage medium. The method comprises the following steps: acquiring a cell ID to be upgraded; judging whether the cell ID to be upgraded is the first queue number set in the day; if the cell ID to be upgraded is the first queue number set in the day, the queue number is adaptively adjusted according to the congestion condition; when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline; if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded; judging whether the queue state is an idle state or not; and if the queue state is the idle state, assigning upgrading tasks to the queue, and remotely upgrading the equipment of the cell to be upgraded through the queue. By implementing the method of the embodiment of the invention, the problem of network congestion and even avalanche caused by that a large number of devices in the same cell issue upgrading tasks simultaneously and exceed the air interface paging capability can be solved.

Description

Anti-congestion remote upgrading method and device, computer equipment and storage medium
Technical Field
The invention relates to the Internet of things, in particular to a congestion prevention remote upgrading method, a congestion prevention remote upgrading device, computer equipment and a storage medium.
Background
When a user performs remote upgrade on NB (narrowband network of Internet of things, narrow Band Internet of Things) equipment, if upgrade tasks are issued simultaneously on a plurality of equipment accessing the same cell of an NB base station, the capacity of air interface paging can be exceeded, network congestion and packet loss are caused, and the success rate of remote upgrade is reduced. In order to avoid congestion, users need to manually discrete the operation of creating the upgrading task, the workload is large, the control is inaccurate, and the experience is poor. Meanwhile, when the equipment is in an offline state, the issuing of the upgrade task fails; and when the equipment is on line, the upgrade task is manually created again, and the upgrade operation is performed, so that the user experience is extremely poor, the upgrade is invalid, and the resource is wasted.
Therefore, it is necessary to design a new method to prevent a large number of devices in the same cell from simultaneously issuing upgrade tasks, exceeding the air interface paging capability, resulting in network congestion and even avalanche.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a congestion-preventing remote upgrading method, a congestion-preventing remote upgrading device, computer equipment and a storage medium.
In order to achieve the above purpose, the present invention adopts the following technical scheme: the anti-congestion remote upgrading method comprises the following steps:
acquiring a cell ID to be upgraded;
judging whether the cell ID to be upgraded is the first queue number set in the same day;
if the cell ID to be upgraded is the first queue number set in the day, the queue number is adaptively adjusted according to congestion conditions;
when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline;
if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded;
judging whether the queue state is an idle state or not;
and if the queue state is an idle state, assigning upgrading tasks to the queue, and remotely upgrading the equipment of the cell to be upgraded through the queue.
The further technical scheme is as follows: after judging whether the cell ID to be upgraded is the first set queue number in the same day, the method further includes:
if the cell ID to be upgraded is not the first set queue number in the day, performing queue management by using the set queue number, and judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded.
The further technical scheme is as follows: the congestion condition refers to the failure rate of the cap instruction within the 244s window period.
The further technical scheme is as follows: the self-adaptive queue number adjustment according to the congestion condition comprises the following steps:
and setting the queue number according to the congestion condition.
The further technical scheme is as follows: the setting the queue number according to the congestion condition includes:
and setting the number of queues by adopting the number of queues=int ((1-shape instruction failure rate)) ×5+1 according to the congestion condition, wherein the shape instruction failure rate refers to the shape instruction failure rate in a 244s window period.
The further technical scheme is as follows: the setting the queue number according to the congestion condition includes:
setting the number of queues to 5 when the failure rate of the cap instruction is less than 20% in the 244s window period; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
The further technical scheme is as follows: after the judging whether the equipment of the cell to be upgraded is offline, the method further comprises the following steps:
and if the equipment of the cell to be upgraded is offline, performing offline processing to be upgraded, and executing the judgment on whether the equipment of the cell to be upgraded is offline.
The invention also provides an anti-congestion remote upgrading device, which comprises:
an ID obtaining unit, configured to obtain a cell ID to be upgraded;
a first judging unit, configured to judge whether the cell ID to be upgraded is a first queue number set on the same day;
the adjusting unit is used for adaptively adjusting the number of queues according to the congestion condition if the cell ID to be upgraded is the number of queues set for the first time in the day;
the second judging unit is used for judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded;
a state obtaining unit, configured to obtain a queue state corresponding to the cell to be upgraded if the device of the cell to be upgraded is not offline;
a third judging unit configured to judge whether the queue state is an idle state;
and the upgrading unit is used for assigning upgrading tasks to the queue if the queue state is an idle state, and remotely upgrading the equipment of the cell to be upgraded through the queue.
The invention also provides a computer device which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method when executing the computer program.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, implements the above method.
Compared with the prior art, the invention has the beneficial effects that: the invention judges whether the cell ID to be upgraded is the first queue number set in the day by taking the cell as a unit, adaptively adjusts the queue number according to the congestion condition, determines whether the equipment to be upgraded is in an on-line state, determines whether to execute upgrading operation according to the state of whether the queue is idle, and can set off-line operation to be upgraded when the equipment is not on-line, so as to orderly perform remote upgrading, thereby realizing the aim of preventing a large number of equipment in the same cell from simultaneously issuing upgrading tasks and exceeding the air interface paging capability, and causing the problems of network congestion and even avalanche.
The invention is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of an anti-congestion remote upgrade method according to an embodiment of the present invention;
fig. 2 is a flow chart of an anti-congestion remote upgrade method according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of an anti-congestion remote upgrade apparatus provided by an embodiment of the present invention;
fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic diagram of an application scenario of an anti-congestion remote upgrade method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of an anti-congestion remote upgrade method according to an embodiment of the present invention. The anti-congestion remote upgrading method is applied to the server. The server performs data interaction with the NB equipment, and particularly as shown in fig. 1, intelligent discrete realization of self-adaptive queues is performed on batch remote upgrading tasks; meanwhile, for offline equipment, the online automatic triggering of the upgrading task of the equipment is realized, and finally, the success rate of the upgrading task and the utilization rate of platform resources are improved.
Fig. 2 is a flow chart of an anti-congestion remote upgrade method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S200.
S110, obtaining the cell ID to be upgraded.
In this embodiment, the cell ID to be upgraded refers to an identification number corresponding to a unit formed by dividing a cell into one dimension.
Aiming at equipment accessed by the NB cellular network, the cell is used as a dimension to control the upgrading task, so that the problem of low success rate of the upgrading task under the NB narrowband condition can be solved.
And S120, judging whether the cell ID to be upgraded is the first queue number set in the same day.
In this embodiment, operations such as whether the number of queues is set for each cell are recorded in the queue setting management table, and it may be determined from the management table whether the number of queues has been set or not for the cell on the same day.
And S130, if the cell ID to be upgraded is the first queue number set in the same day, the queue number is adaptively adjusted according to the congestion condition.
In this embodiment, the congestion determination basis is the failure rate of the cap instruction within the 244s window period. The choice 244s is a time window 122s for the platform to determine if the copa command of the device has timed out
The active number of the queue can be adaptively set in each cell; rather than being set at a static value; this allows for better utilization of bandwidth and control of the success rate of the upgrade task.
In this embodiment, the queue number is set according to the congestion condition.
Specifically, the queue number is set according to the congestion condition by adopting the queue number=int ((1-shape instruction failure rate)) +5+1, where the shape instruction failure rate refers to the shape instruction failure rate within a 244s window period.
Preferably, the number of queues is set to 5 when the failure rate of the cap instruction is less than 20% within the 244s window period; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
Defaulting to 5 for the number of queues remotely upgraded; the adaptive setting may be performed between 5-1 integers, where the queue number=int ((1-shape instruction failure rate)) ×5+1, and in this embodiment, the queue activity number is set to 5 for a shape instruction failure rate of 0-20%. After the equipment upgrading task is started, acquiring a cell ID corresponding to the equipment, inquiring a queue number setting management table according to the cell ID, and judging whether the queue number is set for the first time in the day; if the cellid is updated for the first time, no record is in the queue setting management table, and the number of queues is a default value of 5 at this time. If the cell ID is updated by the operation of the existing equipment, judging whether the number of queues is set for the first time in the same day, and if so, adaptively adjusting the number of queues according to the congestion condition; otherwise, the number of queues is not adjusted. The number of queues is adaptively adjusted, currently in units of one day, in order to control performance and resources.
And S140, when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline or not.
In this embodiment, when a certain area issues a remote upgrade operation, a queue status determination is performed. If the queue is idle, directly issuing upgrading operation; otherwise, queuing operation is carried out; and after the upgrading of the upgrading task in execution is completed, dequeuing operation is performed, and the next task in the queue is automatically pulled up.
And S150, if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded.
In this embodiment, the queue state corresponding to the cell to be upgraded may be obtained from a queue setting management table, where the queue setting management table records the state of a queue, and when one element in the queue is switched from a busy state to an idle state, the current state of the element is registered in the table, and after the upgrading of the upgrading task in execution is completed, the next task in the queue is automatically pulled up.
S160, judging whether the queue state is an idle state or not;
s170, if the queue state is an idle state, an upgrading task is assigned to the queue, and the equipment of the cell to be upgraded is remotely upgraded through the queue.
In this embodiment, when remote upgrade is performed, equipment information is checked first, when the equipment information is complete, the equipment can normally operate, and the like, an upgrade task can be allocated to the queue, remote upgrade is performed on equipment in a cell to be upgraded by using the queue, a version of the equipment is obtained after the upgrade is completed, related resources in the queue are released, and when the remote upgrade fails, or the information of the equipment is checked to be inconsistent with the requirement, or the allocation task fails, retry can be performed, in this embodiment, the information of the equipment is checked to be inconsistent with the requirement, or automatic retry can be set when the allocation task fails.
And S180, if the cell ID to be upgraded is not the first set queue number in the same day, performing queue management by using the set queue number, and executing the step S140.
In this embodiment, the set number of queues is adaptively adjusted according to the congestion condition.
And S190, if the queue state is not the idle state, executing a waiting operation, and executing the step S150.
S200, if the equipment of the cell to be upgraded is offline, performing offline to-be-upgraded processing, and executing the step S140;
when the remote upgrading is started, judging whether the equipment is offline, if so, performing offline to-be-upgraded processing, and when the equipment is online, triggering the offline to-be-upgraded task to be started. The offline to-be-upgraded processing means that when the device satisfies the condition of being on line, the step S15 is executed.
For the upgrading task of the offline equipment, the upgrading task can be automatically triggered when the offline equipment is online, and the waste of platform resources can be reduced.
According to the anti-congestion remote upgrading method, whether the cell ID to be upgraded is the number of queues is set for the first time in the day is judged by taking the cell as a unit, the number of queues is adaptively adjusted according to congestion conditions, whether the equipment to be upgraded is in an on-line state is determined, whether upgrading operation is executed is determined according to whether the queues are in an idle state, off-line operation to be upgraded can be set when the equipment is not on-line, remote upgrading is orderly carried out, and the problem that a large number of equipment in the same cell issue upgrading tasks simultaneously and exceed air interface paging capacity, so that network congestion and even avalanche are caused is solved.
Fig. 3 is a schematic block diagram of an anti-congestion remote upgrade apparatus 300 provided in an embodiment of the present invention. As shown in fig. 3, the present invention further provides an anti-congestion remote upgrade apparatus 300 corresponding to the above anti-congestion remote upgrade method. The anti-congestion remote upgrade apparatus 300 includes a unit for performing the above-described anti-congestion remote upgrade method, and may be configured in a server. Specifically, referring to fig. 3, the anti-congestion remote upgrade apparatus 300 includes an ID acquisition unit 301, a first judgment unit 302, an adjustment unit 303, a second judgment unit 304, a status acquisition unit 305, a third judgment unit 306, and an upgrade unit 307.
An ID acquisition unit 301, configured to acquire a cell ID to be upgraded; a first determining unit 302, configured to determine whether the cell ID to be upgraded is a first queue number set in the day; an adjusting unit 303, configured to adaptively adjust the number of queues according to the congestion condition if the cell ID to be upgraded is the number of queues set for the first time in the day; a second judging unit 304, configured to judge whether equipment in a cell to be upgraded is offline when the equipment in the cell to be upgraded needs to be remotely upgraded; a state obtaining unit 305, configured to obtain a queue state corresponding to the cell to be upgraded if the device of the cell to be upgraded is not offline; a third judging unit 306, configured to judge whether the queue status is an idle status; and if the queue state is not the idle state, executing waiting operation, and executing the queue state corresponding to the cell to be upgraded. And the upgrading unit 307 is configured to assign an upgrading task to the queue if the queue status is in an idle status, and remotely upgrade the device of the cell to be upgraded through the queue.
In an embodiment, the congestion preventing remote upgrade method further includes:
and the management unit 308 is configured to, if the cell ID to be upgraded is not the first set queue number in the same day, perform queue management using the set queue number, and perform the remote upgrade on the equipment in the cell to be upgraded, and determine whether the equipment in the cell to be upgraded is offline.
And the offline setting unit 309 is configured to perform offline to-be-upgraded processing if the device of the to-be-upgraded cell is offline, and perform the determining whether the device of the to-be-upgraded cell is offline.
In an embodiment, the adjusting unit 303 is configured to set a queue number according to the congestion condition.
In an embodiment, the adjusting unit 303 is configured to set the queue number by adopting the queue number=int ((1-shape instruction failure rate)) +5+1 according to the congestion condition, where the shape instruction failure rate is a shape instruction failure rate within a 244s window period.
In one embodiment, the adjusting unit 303 is configured to set the number of queues to 5 when the failure rate of the cap instruction in the 244s window period is less than 20%; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the above anti-congestion remote upgrade apparatus 300 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The above-described anti-congestion remote upgrade apparatus 300 may be implemented in the form of a computer program that may be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, where the server may be a stand-alone server or may be a server cluster formed by a plurality of servers.
With reference to FIG. 4, the computer device 500 includes a processor 502, memory, and a network interface 505, connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a congestion prevention remote upgrade method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a congestion prevention remote upgrade method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
acquiring a cell ID to be upgraded; judging whether the cell ID to be upgraded is the first queue number set in the same day; if the cell ID to be upgraded is the first queue number set in the day, the queue number is adaptively adjusted according to congestion conditions; when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline; if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded; judging whether the queue state is an idle state or not; and if the queue state is an idle state, assigning upgrading tasks to the queue, and remotely upgrading the equipment of the cell to be upgraded through the queue.
The congestion condition refers to the failure rate of the shape instruction in the 244s window period.
In an embodiment, after implementing the step of determining whether the cell ID to be upgraded is the first queue number setting in the same day, the processor 502 further implements the following steps:
if the cell ID to be upgraded is not the first set queue number in the day, performing queue management by using the set queue number, and judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded.
In an embodiment, when the step of adaptively adjusting the number of queues according to the congestion situation is implemented by the processor 502, the following steps are specifically implemented:
and setting the queue number according to the congestion condition.
In an embodiment, when implementing the step of setting the queue number according to the congestion condition, the processor 502 specifically implements the following steps:
and setting the number of queues by adopting the number of queues=int ((1-shape instruction failure rate)) ×5+1 according to the congestion condition, wherein the shape instruction failure rate refers to the shape instruction failure rate in a 244s window period.
In an embodiment, when implementing the step of setting the queue number according to the congestion condition, the processor 502 specifically implements the following steps:
setting the number of queues to 5 when the failure rate of the cap instruction is less than 20% in the 244s window period; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
In an embodiment, after implementing the step of determining whether the device of the cell to be upgraded is offline, the processor 502 further implements the following steps:
and if the equipment of the cell to be upgraded is offline, performing offline processing to be upgraded, and executing the judgment on whether the equipment of the cell to be upgraded is offline.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a cell ID to be upgraded; judging whether the cell ID to be upgraded is the first queue number set in the same day; if the cell ID to be upgraded is the first queue number set in the day, the queue number is adaptively adjusted according to congestion conditions; when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline; if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded; judging whether the queue state is an idle state or not; and if the queue state is an idle state, assigning upgrading tasks to the queue, and remotely upgrading the equipment of the cell to be upgraded through the queue.
The congestion condition refers to the failure rate of the shape instruction in the 244s window period.
In an embodiment, after executing the computer program to implement the step of determining whether the cell ID to be upgraded is the first set queue number in the day, the processor further implements the following steps:
if the cell ID to be upgraded is not the first set queue number in the day, performing queue management by using the set queue number, and judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded.
In one embodiment, when the processor executes the computer program to implement the step of adaptively adjusting the number of queues according to congestion conditions, the method specifically includes the following steps:
and setting the queue number according to the congestion condition.
In one embodiment, when the processor executes the computer program to implement the step of setting the number of queues according to the congestion condition, the method specifically includes the following steps:
and setting the number of queues by adopting the number of queues=int ((1-shape instruction failure rate)) ×5+1 according to the congestion condition, wherein the shape instruction failure rate refers to the shape instruction failure rate in a 244s window period.
In one embodiment, when the processor executes the computer program to implement the step of setting the number of queues according to the congestion condition, the method specifically includes the following steps:
setting the number of queues to 5 when the failure rate of the cap instruction is less than 20% in the 244s window period; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
In an embodiment, after executing the computer program to implement the step of determining whether the device of the cell to be upgraded is offline, the processor further implements the steps of:
and if the equipment of the cell to be upgraded is offline, performing offline processing to be upgraded, and executing the judgment on whether the equipment of the cell to be upgraded is offline.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The anti-congestion remote upgrading method is characterized by comprising the following steps of:
acquiring a cell ID to be upgraded;
judging whether the cell ID to be upgraded is the first queue number set in the same day;
if the cell ID to be upgraded is the first queue number set in the day, the queue number is adaptively adjusted according to congestion conditions;
when the equipment in the cell to be upgraded is required to be remotely upgraded, judging whether the equipment in the cell to be upgraded is offline;
if the equipment of the cell to be upgraded is not offline, acquiring a queue state corresponding to the cell to be upgraded;
judging whether the queue state is an idle state or not;
and if the queue state is an idle state, assigning upgrading tasks to the queue, and remotely upgrading the equipment of the cell to be upgraded through the queue.
2. The congestion prevention remote upgrade method according to claim 1, wherein said determining whether the cell ID to be upgraded is after the first setting of the number of queues on the same day, further comprises:
if the cell ID to be upgraded is not the first set queue number in the day, performing queue management by using the set queue number, and judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded.
3. The method of claim 1, wherein the congestion condition is a failure rate of a shape instruction within a 244s window period.
4. The method for remote upgrade of congestion prevention according to claim 3, wherein the adaptively adjusting the number of queues according to the congestion condition comprises:
and setting the queue number according to the congestion condition.
5. The method for remote upgrade of congestion prevention according to claim 4, wherein the setting the number of queues according to the congestion condition comprises:
and setting the number of queues by adopting the number of queues=int ((1-shape instruction failure rate)) ×5+1 according to the congestion condition, wherein the shape instruction failure rate refers to the shape instruction failure rate in a 244s window period.
6. The method for remote upgrade of congestion prevention according to claim 5, wherein the setting the number of queues according to the congestion condition comprises:
setting the number of queues to 5 when the failure rate of the cap instruction is less than 20% in the 244s window period; setting the number of queues to 4 when the failure rate of the cap instruction is not less than 20% but less than 40% within the 244s window period; setting the number of queues to 3 when the failure rate of the cap instruction is not less than 40% but less than 60% within the 244s window period; setting the number of queues to 2 when the failure rate of the cap instruction is not less than 60% but less than 80% within the 244s window period; when the failure rate of the cap instruction is not less than 80% in the 244s window period, the number of queues is set to 1.
7. The method for remotely upgrading congestion according to claim 1, wherein after determining whether the device of the cell to be upgraded is offline, further comprising:
and if the equipment of the cell to be upgraded is offline, performing offline processing to be upgraded, and executing the judgment on whether the equipment of the cell to be upgraded is offline.
8. Anti-congestion remote upgrading device, which is characterized by comprising:
an ID obtaining unit, configured to obtain a cell ID to be upgraded;
a first judging unit, configured to judge whether the cell ID to be upgraded is a first queue number set on the same day;
the adjusting unit is used for adaptively adjusting the number of queues according to the congestion condition if the cell ID to be upgraded is the number of queues set for the first time in the day;
the second judging unit is used for judging whether the equipment in the cell to be upgraded is offline or not when the equipment in the cell to be upgraded is required to be remotely upgraded;
a state obtaining unit, configured to obtain a queue state corresponding to the cell to be upgraded if the device of the cell to be upgraded is not offline;
a third judging unit configured to judge whether the queue state is an idle state;
and the upgrading unit is used for assigning upgrading tasks to the queue if the queue state is an idle state, and remotely upgrading the equipment of the cell to be upgraded through the queue.
9. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-7.
10. A storage medium storing a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202211699528.3A 2022-12-28 2022-12-28 Anti-congestion remote upgrading method and device, computer equipment and storage medium Pending CN116033483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211699528.3A CN116033483A (en) 2022-12-28 2022-12-28 Anti-congestion remote upgrading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211699528.3A CN116033483A (en) 2022-12-28 2022-12-28 Anti-congestion remote upgrading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116033483A true CN116033483A (en) 2023-04-28

Family

ID=86080635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211699528.3A Pending CN116033483A (en) 2022-12-28 2022-12-28 Anti-congestion remote upgrading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116033483A (en)

Similar Documents

Publication Publication Date Title
US10628216B2 (en) I/O request scheduling method and apparatus by adjusting queue depth associated with storage device based on hige or low priority status
US9104476B2 (en) Opportunistic multitasking of VOIP applications
US20060212873A1 (en) Method and system for managing load balancing in data processing system
JPH04215158A (en) Data transfer control method and interface system
CN105721941A (en) Over-the-air upgrading control method and device of cloud television
US9135064B2 (en) Fine grained adaptive throttling of background processes
US11204883B1 (en) Data storage system with access completion uniformity
CN116033483A (en) Anti-congestion remote upgrading method and device, computer equipment and storage medium
CN111224811A (en) SNMP request monitoring system, method, device and computer readable storage medium
WO2022252986A1 (en) Interrupt scheduling method, electronic device, and storage medium
JP2008186211A (en) Computer system
US11481341B2 (en) System and method for dynamically adjusting priority-based allocation of storage system resources
US20100251251A1 (en) Apparatus and method for cpu load control in multitasking environment
CN109062706B (en) Electronic device, method for limiting inter-process communication thereof and storage medium
CN109062707B (en) Electronic device, method for limiting inter-process communication thereof and storage medium
CN110401708A (en) Session processing system and method based on server load state
US11520638B1 (en) Combined active and preinitialized resource management for rapid autoscaling
JP3962224B2 (en) Call loss avoidance method, multiprocessor electronic switch, call loss avoidance program, and storage medium storing call loss avoidance program
CN114153561A (en) Resource configuration method, device, equipment and readable storage medium
CN109144745B (en) Method for monitoring interprocess communication, electronic device and readable storage medium
CN109086129B (en) Service execution control method and device
CN114416344A (en) Computing resource scheduling method, device, equipment and machine readable storage medium
CN115174689A (en) Access processing method and device for edge node
CN114465958A (en) Input/output control method, device and medium
CN115776469A (en) Message scheduling method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination