CN115843071A - OTA (over the air) downloading flow control method, device, server and storage medium - Google Patents

OTA (over the air) downloading flow control method, device, server and storage medium Download PDF

Info

Publication number
CN115843071A
CN115843071A CN202211299005.XA CN202211299005A CN115843071A CN 115843071 A CN115843071 A CN 115843071A CN 202211299005 A CN202211299005 A CN 202211299005A CN 115843071 A CN115843071 A CN 115843071A
Authority
CN
China
Prior art keywords
service
ota
flow
flow control
communication protocol
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
CN202211299005.XA
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.)
Shenzhen Haixing Zhijia Technology Co Ltd
Original Assignee
Shenzhen Haixing Zhijia 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 Shenzhen Haixing Zhijia Technology Co Ltd filed Critical Shenzhen Haixing Zhijia Technology Co Ltd
Priority to CN202211299005.XA priority Critical patent/CN115843071A/en
Publication of CN115843071A publication Critical patent/CN115843071A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to a flow control method, a device, a server and a storage medium for OTA downloading, wherein the method comprises the following steps: monitoring the flow of each service to obtain the service flow corresponding to each service; when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value; and completing the service flow control of the OTA service based on the flow control strategy. Therefore, more channel flow can be provided for OTA downloading, the cost is reduced, and the safety and the stability of the system are ensured.

Description

OTA (over the air) downloading flow control method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the field of network services, in particular to a method, a device, a server and a storage medium for controlling OTA (over the air) downloading flow.
Background
OTA (Over The Air) is a short message based mechanism, which is an Over-The-Air technology that is upgraded Over The wireless system via mobile communication technology. With the vigorous development of the internet of things, the safety, stability and functional diversity of the equipment and products of the internet of things are concerned widely. The wireless download technology can safely and conveniently upgrade the firmware or software of the equipment. Meanwhile, remote upgrading can greatly reduce cost and save resources, and the method becomes one of key technologies of equipment and product manufacturers of the Internet of things.
However, in the process of remote upgrade, the OTA technology has the problems of reduced transmission rate and large network delay due to large volume of an OTA packet, and when the OTA technology is used for downloading, bandwidth flow can be contended among services under the condition of a certain flow channel, channel blockage occurs, and user upgrade experience is influenced. The general solutions in the industry include: 1. making a differential packet for OTA, as shown in FIG. 1, (1) forming a dictionary for all substrings in the old file; (2) Comparing the old file with the new file to generate file difference data and file updating data; (3) The file difference data and the file update data and the corresponding control words are zip-compressed into a patch package. The scheme still has the problem of traffic channel blockage when differential packets are made for OTAs. 2. With CDN delivery networks, OTA packets are delivered to the network "edge" closest to the user as shown in fig. 2. The scheme has higher cost and potential safety hazard.
Disclosure of Invention
In view of the above, to solve the above technical problems or some technical problems, embodiments of the present invention provide a method, an apparatus, a server, and a storage medium for controlling OTA downloading.
In a first aspect, an embodiment of the present invention provides a method for controlling a flow rate of OTA downloading, including:
monitoring the flow of each service to obtain the service flow corresponding to each service;
when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value;
and completing the service flow control of the OTA service based on the flow control strategy.
In one possible embodiment, the method further comprises:
the service interface of each service is scored according to the importance weight value;
and sequencing the service interfaces of each service from large to small based on the importance weight value to obtain an importance weight value sequence.
In one possible embodiment, the method further comprises:
determining the target number of services to be subjected to communication protocol conversion based on the difference value between the available bandwidth occupied by the service flow of the OTA service and the preset threshold;
and based on the target quantity, selecting a service which has an importance weight value smaller than that of the OTA service and has service flow occupying available bandwidth larger than the target quantity of the service flow occupying available bandwidth of the OTA service from the importance weight value sequence for communication protocol conversion.
In one possible embodiment, the method further comprises:
and converting the HTTP communication protocol of the target number of services into an MQTT communication protocol.
In one possible embodiment, the method further comprises:
detecting service flow of the OTA service in real time;
and when the service flow of the OTA service returns to a preset target, the service of the MQTT communication protocol is converted into the HTTP communication protocol again.
In one possible embodiment, the method further comprises:
receiving a service request, wherein the service request carries target service identification information;
determining a target service based on the target service identification information, and inquiring a current communication protocol of the target service;
transmitting service data based on the current communication protocol.
In one possible embodiment, the method further comprises:
and compressing the service data, and transmitting the compressed service data through the current communication protocol.
In a second aspect, an embodiment of the present invention provides a flow control device for OTA download, including:
the monitoring module is used for monitoring the flow of each service to obtain the service flow corresponding to each service;
the determining module is used for determining a flow control strategy based on a difference value between the service flow of the OTA service and the preset threshold when the service flow of the OTA service is monitored to occupy the available bandwidth amount larger than the preset threshold;
and the control module is used for finishing the service flow control of the OTA service based on the flow control strategy.
In a third aspect, an embodiment of the present invention provides a server, including: the processor is configured to execute the flow control program for OTA download stored in the memory, so as to implement the method for controlling flow of OTA download described in the above first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, including: the storage medium stores one or more programs that are executable by one or more processors to implement the OTA download flow control method described in the first aspect above.
According to the OTA downloading flow control scheme provided by the embodiment of the invention, the flow of each service is monitored to obtain the service flow corresponding to each service; when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value; and completing service flow control of the OTA service based on the flow control strategy. Compare in current OTA download technology still exist flow channel block, the cost is higher, have the problem of potential safety hazard, by this scheme, sequence the interface importance, do adaptive flow control to OTA download, utilize asynchronous MQTT communication to the interface that the importance weighted value is low, trade the space with the time, can realize providing more channel flow, reduce cost, assurance system security and stability for OTA download.
Drawings
FIG. 1 is a diagram illustrating a prior art differential package for OTA;
fig. 2 is a schematic diagram of a conventional CDN-based distribution network;
fig. 3 is a flowchart illustrating a flow control method for OTA download according to an embodiment of the present invention;
fig. 4 is an interaction diagram of a flow control method for OTA download according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another OTA download flow control method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a service access method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a flow control device for OTA download according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 3 is a schematic flowchart of a flow control method for OTA download according to an embodiment of the present invention, and as shown in fig. 3, the method specifically includes:
and S31, monitoring the flow of each service to obtain the service flow corresponding to each service.
In the embodiment of the invention, a service grid organization (service mesh entity) can be adopted to monitor the traffic of all services provided by the system, and obtain the service traffic corresponding to each service, wherein the service traffic can measure the bandwidth occupied by the service, and all services comprise OTA services.
And S32, when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than the preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value.
And S33, completing the service flow control of the OTA service based on the flow control strategy.
In the embodiment of the invention, the threshold value of the available bandwidth occupied by the service flow of the OTA service for flow control can be preset, and when the threshold value is reached or exceeded, the flow control program is triggered. The flow control can be the communication protocol conversion of other services, so that the bandwidth occupation is reduced, and further more bandwidths and service flows are provided for OTA services.
Optionally, a flow control policy may be determined according to a difference between an available bandwidth amount occupied by service traffic of the OTA service and a preset threshold, where the flow control policy may be to perform communication protocol conversion on one or more services. The target service for performing the communication protocol conversion may also be selected according to a preset rule, and a specific rule is described in detail in the embodiment corresponding to fig. 5.
Further, communication protocol conversion is carried out on the services with the target quantity according to the determined flow control strategy, and more bandwidths and service flows are provided for OTA services.
According to the OTA download flow control method provided by the embodiment of the invention, the flow of each service is monitored to obtain the service flow corresponding to each service; when monitoring that the service flow of the OTA service occupies an available bandwidth amount larger than a preset threshold value, determining a flow control strategy based on a difference value between the service flow of the OTA service and the available bandwidth amount and the preset threshold value; and completing the service flow control of the OTA service based on the flow control strategy. Compared with the existing OTA downloading technology, the method still has the problems of flow channel blockage, high cost and potential safety hazard, the method sequences the importance of the interfaces, performs adaptive flow control on OTA downloading, utilizes asynchronous MQTT communication for the interfaces with low weight values of the importance, and uses time to replace space, thereby realizing providing more channel flow for the OTA downloading, reducing the cost and ensuring the safety and the stability of the system.
Fig. 5 is a schematic flowchart of another OTA download flow control method according to an embodiment of the present invention, and as shown in fig. 5, the method specifically includes:
and S51, scoring the importance weight value of the service interface of each service.
S52, sequencing the service interfaces of each service from large to small based on the importance weight value to obtain an importance weight value sequence.
In the embodiment of the present invention, the interaction schematic diagram of the OTA download flow control method shown in fig. 4 is combined for description, and in the embodiment of the present invention, a PageRank algorithm may be used to score an importance weight value for a service interface of each service provided by the system. And sequencing the service interfaces of each service from small to large based on the scoring result of the importance weight value to obtain an importance weight value sequence.
For example, the PageRank interface ordering of fig. 4 represents a directed graph, nodes a, B, C, and D represent web pages, directed edges between the nodes represent hyperlinks between the web pages, and weights on the edges represent the probability of random jumps between the web pages. Suppose there is one viewer who randomly walks around the web. If the viewer is at web page A, then the next step is to move to web pages B, C and D with a probability of 1/3. If the viewer is at web page B, then the next step is to transition to web pages A and D with a probability of 1/2. If the viewer is at web page C, then the next step is to transition to web page A with probability 1. If the viewer is at web page D, then the next step is to transition to web pages B and C with a probability of 1/2. If a web page has more hyperlinks pointing to the web page, the probability of randomly jumping to the web page is higher, the PageRank value of the web page is higher, and the web page is more important. The PageRank calculation can be performed on a directed graph of the Internet, and is usually an iterative process. An initial distribution is assumed, and the PageRank values of all the web pages are continuously calculated through iteration until convergence.
And S53, monitoring the flow of each service to obtain the service flow corresponding to each service.
And S54, determining the target number of the services to be subjected to communication protocol conversion based on the difference value between the available bandwidth occupied by the service flow of the OTA service and the preset threshold value.
In the embodiment of the invention, a service grid organization (service mesh entity) can be adopted to monitor the traffic of all services provided by the system, and obtain the service traffic corresponding to each service, wherein the service traffic can measure the bandwidth occupied by the service, and all services comprise OTA services.
When the OTA service flow is monitored to increase, and the service flow of the OTA service occupies the available bandwidth more than a preset threshold (for example, 90%), determining that the flow control is required. Further, the target number of the services to be subjected to communication protocol conversion is determined based on a difference value between the available bandwidth amount occupied by the service traffic of the OTA service and a preset threshold.
For example, if the service traffic of the OTA service occupies 98% of the available bandwidth, the difference between the available bandwidth occupied by the service traffic of the OTA service and the preset threshold is 8%, and it is detected that the sum of the bandwidth occupied by the 5 services is 8% or more and close to the sum, it may be determined that the target number of the services to be subjected to the communication protocol conversion is 5. Or, if it is detected that the bandwidth amount of 1 service is 10%, it may also be determined that the target number of services to be subjected to communication protocol conversion is 1, and the service may also be determined as the target service to be subjected to communication protocol conversion.
And S55, based on the target quantity, selecting a service with an importance weight value smaller than that of the OTA service from the importance weight value sequence, wherein the service with the service flow occupying available bandwidth larger than the target quantity of the service flow occupying available bandwidth of the OTA service carries out communication protocol conversion.
And S56, converting the HTTP communication protocol of the target number of services into the MQTT communication protocol.
And selecting the target services with the traffic larger than the OTA service and the importance weight value smaller than the target number of the OTA service from the importance weight value sequence to perform communication protocol conversion based on the determined target number of the services to be subjected to communication protocol conversion. The importance weighted value is smaller than that of OTA service, the representation importance is lower than that of OTA service, the transmission time can be increased through the conversion protocol, and the occupation of bandwidth is reduced. And converting the HTTP communication protocol of the target number of target services into the MQTT communication protocol. Table 1 compares the HTTP with MQTT, which uses binary transmission and smaller size.
TABLE 1
Protocol REST/HTTP MQTT
Mode(s) Request/response Publish/subscribe
Characteristics of Standard HTTP Low bandwidth, low power consumption
Transport layer TCP TCP
Encoding Plain text Binary system
And S57, detecting the service flow of the OTA service in real time.
And S58, when the service flow of the OTA service returns to the preset target, the service of the MQTT communication protocol is converted into the HTTP communication protocol again.
After the communication protocol conversion is performed on the target number of target services, the service flow of the OTA service is detected in real time, and when the service flow of the OTA service is detected to return to a preset target (for example, 40% of occupied bandwidth), the service of the MQTT communication protocol can be converted into the HTTP communication protocol again.
Fig. 6 is a schematic flowchart of a service access method provided in an embodiment of the present invention, and as shown in fig. 6, the method specifically includes:
s61, receiving a service request, wherein the service request carries target service identification information.
In the embodiment of the invention, after the communication protocol conversion of the service is carried out, the system receives the service request sent by the service calling terminal, and the service request carries the identification information of the target service to be provided with the service.
S62, determining a target service based on the target service identification information, and inquiring the current communication protocol of the target service.
And identifying the target service of the service to be provided based on the identification information of the target service, and inquiring the current communication protocol of the target service, wherein the current communication protocol of the target service may be an MQTT communication protocol.
S63, compressing the service data, and transmitting the compressed service data through the current communication protocol.
Compressing the service data called by the request, and transmitting the service data through a current communication protocol (MQTT communication protocol), wherein the service data comprises but is not limited to files, videos, audios and other data.
According to the OTA download flow control method provided by the embodiment of the invention, the flow of each service is monitored to obtain the service flow corresponding to each service; when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value; and completing the service flow control of the OTA service based on the flow control strategy. According to the method, the importance of the interfaces is sequenced based on the PageRank algorithm, adaptive flow control is performed on OTA downloading, asynchronous MQTT communication is used for the interfaces with low weight values of the importance, space is exchanged by time, and the method can provide more channel flow for the OTA downloading, reduce the cost and ensure the safety and stability of the system.
Fig. 7 is a schematic structural diagram of a flow control device for OTA download according to an embodiment of the present invention, as shown in fig. 7, specifically including:
the monitoring module 701 is configured to perform traffic monitoring on each service to obtain a service traffic corresponding to each service. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
A determining module 702, configured to determine a flow control policy based on a difference between an available bandwidth amount occupied by service traffic of an OTA service and a preset threshold when it is monitored that the available bandwidth amount occupied by the service traffic of the OTA service is greater than the preset threshold. For detailed description, reference is made to the corresponding related description of the above method embodiments, and details are not repeated herein.
A control module 703, configured to complete service traffic control of the OTA service based on the traffic control policy. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The OTA download flow control device provided in this embodiment may be the OTA download flow control device shown in fig. 7, and may perform all the steps of the OTA download flow control method shown in fig. 3 to 6, so as to achieve the technical effects of the OTA download flow control method shown in fig. 3 to 6, which are described with reference to fig. 3 to 6 for brevity, and are not described herein again.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 800 shown in fig. 8 includes: at least one processor 801, memory 802, at least one network interface 804, and other user interfaces 803. The various components in server 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in FIG. 8.
The user interface 803 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 802 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 8021 and application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, the processor 801 is configured to execute the method steps provided by each method embodiment by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application 8022, and for example, includes:
monitoring the flow of each service to obtain the service flow corresponding to each service; when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value; and completing the service flow control of the OTA service based on the flow control strategy.
In one possible embodiment, the service interfaces of each service are scored for an importance weight value; and sequencing the service interfaces of each service from large to small based on the importance weight value to obtain an importance weight value sequence.
In one possible implementation manner, the target number of the services to be subjected to communication protocol conversion is determined based on a difference value between the available bandwidth amount occupied by the service traffic of the OTA service and the preset threshold; based on the target number, selecting a service from the importance weight value sequence, wherein the importance weight value is smaller than the importance weight value of the OTA service, and the service traffic occupies the available bandwidth which is larger than the target number of the service traffic of the OTA service occupying the available bandwidth, and performing communication protocol conversion.
In one possible implementation, the HTTP communication protocol of the target number of services is translated into MQTT communication protocol.
In one possible embodiment, the service flow of the OTA service is detected in real time; and when the service flow of the OTA service returns to a preset target, the service of the MQTT communication protocol is converted into the HTTP communication protocol again.
In one possible implementation, a service request is received, where the service request carries target service identification information; determining a target service based on the target service identification information, and inquiring a current communication protocol of the target service; transmitting service data based on the current communication protocol.
In one possible embodiment, the service data is compressed, and the compressed service data is transmitted via the current communication protocol.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The server provided in this embodiment may be the server shown in fig. 8, and may execute all the steps of the flow control method for OTA download shown in fig. 3-6, so as to achieve the technical effects of the flow control method for OTA download shown in fig. 3-6, which please refer to the related descriptions of fig. 3-6 for brevity, which is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of the above kinds of memories.
When one or more programs in the storage medium are executable by one or more processors to implement the above-described method for controlling traffic for OTA downloads performed on the server side.
The processor is used for executing the flow control program of the OTA download stored in the memory to realize the following steps of the flow control method of the OTA download executed on the server side:
monitoring the flow of each service to obtain the service flow corresponding to each service; when monitoring that the service flow of the OTA service occupies an available bandwidth amount larger than a preset threshold value, determining a flow control strategy based on a difference value between the service flow of the OTA service and the available bandwidth amount and the preset threshold value; and completing the service flow control of the OTA service based on the flow control strategy.
In one possible embodiment, the service interfaces of each service are scored for an importance weight value; and sequencing the service interfaces of each service from large to small based on the importance weight value to obtain an importance weight value sequence.
In one possible implementation manner, the target number of the services to be subjected to communication protocol conversion is determined based on a difference value between the available bandwidth amount occupied by the service traffic of the OTA service and the preset threshold; and based on the target quantity, selecting a service which has an importance weight value smaller than that of the OTA service and has service flow occupying available bandwidth larger than the target quantity of the service flow occupying available bandwidth of the OTA service from the importance weight value sequence for communication protocol conversion.
In one possible implementation, the HTTP communication protocol of the target number of services is translated into MQTT communication protocol.
In one possible embodiment, the service flow of the OTA service is detected in real time; and when the service flow of the OTA service returns to a preset target, the service of the MQTT communication protocol is converted into the HTTP communication protocol again.
In one possible implementation, a service request is received, where the service request carries target service identification information; determining a target service based on the target service identification information, and inquiring a current communication protocol of the target service; transmitting service data based on the current communication protocol.
In one possible embodiment, the service data is compressed, and the compressed service data is transmitted via the current communication protocol.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. 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.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A flow control method for OTA download is characterized by comprising the following steps:
monitoring the flow of each service to obtain the service flow corresponding to each service;
when the fact that the service flow of the OTA service occupies the available bandwidth amount which is larger than a preset threshold value is monitored, determining a flow control strategy based on the difference value between the service flow of the OTA service and the available bandwidth amount which is occupied by the service flow of the OTA service and the preset threshold value;
and completing the service flow control of the OTA service based on the flow control strategy.
2. The method of claim 1, further comprising:
scoring an importance weighted value of a service interface of each service;
and sequencing the service interfaces of each service from large to small based on the importance weight value to obtain an importance weight value sequence.
3. The method of claim 2, wherein when monitoring that the service traffic of the OTA service occupies an available bandwidth amount greater than a preset threshold, determining the traffic control policy based on a difference between the service traffic of the OTA service and the preset threshold comprises:
determining the target number of services to be subjected to communication protocol conversion based on the difference value between the available bandwidth occupied by the service flow of the OTA service and the preset threshold;
and based on the target quantity, selecting a service which has an importance weight value smaller than that of the OTA service and has service flow occupying available bandwidth larger than the target quantity of the service flow occupying available bandwidth of the OTA service from the importance weight value sequence for communication protocol conversion.
4. The method of claim 3, wherein the performing service traffic control for the OTA service based on the traffic control policy comprises:
and converting the HTTP communication protocol of the target number of services into the MQTT communication protocol.
5. The method of claim 4, further comprising:
detecting the service flow of the OTA service in real time;
and when the service flow of the OTA service returns to a preset target, the service of the MQTT communication protocol is converted into the HTTP communication protocol again.
6. The method of claim 4, further comprising:
receiving a service request, wherein the service request carries target service identification information;
determining a target service based on the target service identification information, and inquiring a current communication protocol of the target service;
transmitting service data based on the current communication protocol.
7. The method of claim 6, wherein said transmitting service data based on said current communication protocol comprises:
and compressing the service data, and transmitting the compressed service data through the current communication protocol.
8. An OTA download flow control apparatus, comprising:
the monitoring module is used for monitoring the flow of each service to obtain the service flow corresponding to each service;
the determining module is used for determining a flow control strategy based on a difference value between the service flow of the OTA service and the preset threshold when the service flow of the OTA service is monitored to occupy the available bandwidth amount larger than the preset threshold;
and the control module is used for finishing the service flow control of the OTA service based on the flow control strategy.
9. A server, comprising: a processor and a memory, the processor being configured to execute a flow control program for OTA download stored in the memory to implement the flow control method for OTA download of any of claims 1 to 7.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the OTA download flow control method of any one of claims 1 to 7.
CN202211299005.XA 2022-10-20 2022-10-20 OTA (over the air) downloading flow control method, device, server and storage medium Pending CN115843071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211299005.XA CN115843071A (en) 2022-10-20 2022-10-20 OTA (over the air) downloading flow control method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211299005.XA CN115843071A (en) 2022-10-20 2022-10-20 OTA (over the air) downloading flow control method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN115843071A true CN115843071A (en) 2023-03-24

Family

ID=85576470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211299005.XA Pending CN115843071A (en) 2022-10-20 2022-10-20 OTA (over the air) downloading flow control method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN115843071A (en)

Similar Documents

Publication Publication Date Title
CN110262827B (en) Incremental updating method and device, storage medium and electronic equipment
CN110737658B (en) Data fragment storage method, device, terminal and readable storage medium
US11616991B1 (en) Automatically serving different versions of content responsive to client device rendering errors
US7992207B2 (en) Method for curing a virus on a mobile communication network
CN108092956B (en) Method and device for acquiring compression dictionary
CN113505028B (en) Device switching method, device, electronic device and computer readable storage medium
US20200133581A1 (en) Adjusting data ingest based on compaction rate in a dispersed storage network
US11463494B2 (en) Balance of initial frame and limitation of traffic
CN113507516A (en) File service method, access server, computer device and storage medium
CN115086331A (en) Cloud equipment scheduling method, device and system, electronic equipment and storage medium
CN114500288B (en) Bandwidth adjustment method and device and storage medium
CN114422438B (en) Link adjustment method and device for power communication network
CN115843071A (en) OTA (over the air) downloading flow control method, device, server and storage medium
CN111132231B (en) Data transmission method, device, terminal and medium for polarization timeslot ALOHA
CN113434561A (en) Live broadcast data verification method and system, electronic device and storage medium
US11010096B2 (en) Probabilistically selecting storage units based on latency or throughput in a dispersed storage network
CN115987685B (en) Cloud service data sharing method and system
US10110251B2 (en) Method and system for data transmission
CN112541548B (en) Method, device, computer equipment and storage medium for generating relational network
CN112396100B (en) Optimization method, system and related device for fine-grained classification model
CN108306859B (en) Method, apparatus and computer-readable storage medium for limiting server access volume
CN111277435A (en) Method and device for upgrading network equipment, storage medium and electronic equipment
US20170372209A1 (en) Determination process control method and determination process control apparatus
KR102163214B1 (en) Machine Learning based proactive caching in CoMP-enabled small cell networks
CN115190034B (en) Service deployment method based on edge cloud computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication