CN111970320A - Control method and device for OTA data packet issuing flow - Google Patents

Control method and device for OTA data packet issuing flow Download PDF

Info

Publication number
CN111970320A
CN111970320A CN202010610323.8A CN202010610323A CN111970320A CN 111970320 A CN111970320 A CN 111970320A CN 202010610323 A CN202010610323 A CN 202010610323A CN 111970320 A CN111970320 A CN 111970320A
Authority
CN
China
Prior art keywords
bandwidth
pcdn
ore
charging period
target
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.)
Granted
Application number
CN202010610323.8A
Other languages
Chinese (zh)
Other versions
CN111970320B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010610323.8A priority Critical patent/CN111970320B/en
Publication of CN111970320A publication Critical patent/CN111970320A/en
Application granted granted Critical
Publication of CN111970320B publication Critical patent/CN111970320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/10Interfaces between hierarchically different network devices between terminal device and access point, i.e. wireless air interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method and a device for controlling OTA data packet issuing flow, and relates to the technical field of over-the-air downloading and the technical field of computer communication. The specific implementation scheme is as follows: acquiring the estimated bandwidth of an OTA data packet to be issued by a target download task in the current charging period and the bearing bandwidth to determine the number of initial ore machines, and deploying the ore machines according to the number of the initial ore machines through a point-to-point content distribution network PCDN; if the current charging period is not the first charging period of the target downloading task, starting to send and obtain the sending parameters and the bandwidth peak value of the last charging period after the mining machine is deployed; when the issued parameters meet the starting condition of the PCDN, adjusting the number of the initial ore machines according to the bandwidth peak value to generate the number of target ore machines; and the ore machines controlling the number of the target ore machines send the OTA data packet through the PCDN. Therefore, when the OTA data packets are issued, the number of the ore machine resources is adjusted by adapting the number of the OTA data packets, the ore machine resources are effectively utilized while the issuing efficiency is ensured, and the issuing cost is reduced.

Description

Control method and device for OTA data packet issuing flow
Technical Field
Embodiments of the present application relate generally to the field of over-the-air download technology and the field of computer communication technology, and more particularly, to a method and an apparatus for controlling OTA packet delivery traffic.
Background
OTA (Over-the-Air Technology) is a Technology for remotely managing a system, data, or an application through an Air interface of mobile communication.
Currently, OTA upgrades have a large bandwidth cost pressure and rise dramatically as the number of devices increases. The P2P technology is perfectly suitable for OTA (over the air) pure downloading scene, and is connected with a peer-to-peer content distribution network (P2P CDN, PCDN), so that the OTA cost can be thoroughly controlled within a certain range, and the distribution speed of OTA data packets is improved. The cost of this solution comes from the bandwidth cost incurred by downloading from the PCDN engine and the traffic charges incurred by the engine to download files from a Content Delivery Network (CDN) for seeding. Therefore, how to effectively utilize the ore machine resources has important significance on issuing cost.
Disclosure of Invention
The application provides a method and a device for controlling the flow of OTA data packet issuing.
According to a first aspect, a method for controlling an OTA packet delivery flow is provided, which includes: acquiring the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in the current charging period; determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN; if the current charging period is not the first charging period of the target downloading task, starting to send and obtain sending parameters and bandwidth peak values of the last charging period after the mining machine is deployed; judging whether the issued parameters meet a PCDN starting condition, if so, adjusting the initial ore machine number according to the bandwidth peak value to generate a target ore machine number; and the ore machines controlling the number of the target ore machines send the OTA data packet through the PCDN.
According to a second aspect, there is provided a device for controlling an OTA packet delivery flow, comprising: the first acquisition module is used for acquiring the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in the current charging period; the deployment module is used for determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN; the starting module is used for starting issuing and acquiring issuing parameters and bandwidth peak values of the last charging period after the mining machine is deployed when the current charging period is not the first charging period of the target downloading task; the judging module is used for judging whether the issuing parameters meet the starting condition of the PCDN; the adjusting module is used for adjusting the initial ore machine number according to the bandwidth peak value to generate a target ore machine number; and the issuing module is used for controlling the ore machines with the target ore machine number to issue the OTA data packet through the PCDN.
According to a third aspect, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of controlling OTA packet delivery traffic according to the first aspect.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the method for controlling the delivery of OTA data packets according to the first aspect.
The method and the device for controlling the OTA data packet issuing flow have the following beneficial effects:
acquiring the estimated bandwidth of an OTA data packet to be issued by a target downloading task and the bearing bandwidth of each mining machine in the current charging period, determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN, starting issuing and acquiring issuing parameters and bandwidth peak values of the last charging period after the mining machines are deployed if the current charging period is not the first charging period of the target downloading task, judging whether the issuing parameters meet the starting condition of the PCDN, adjusting the number of the initial mining machines according to the bandwidth peak values to generate the number of the target mining machines if the issuing parameters meet the starting condition of the PCDN, and controlling the mining machines of the number of the target mining machines to issue the OTA data packet through the. Therefore, when the OTA data packets are issued, the number of the ore machine resources is adjusted by adapting the number of the OTA data packets, and the ore machine resources are effectively utilized while the issuing efficiency is ensured.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
the drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart illustrating a method for controlling the delivery flow of OTA packets according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a method for controlling the delivery flow of OTA packets according to a second embodiment of the present application;
fig. 3 is a flowchart illustrating a method for controlling the delivery flow of OTA packets according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a control device for sending an OTA data packet down flow according to a fourth embodiment of the present application; and
fig. 5 is a block diagram of an electronic device for implementing the method for controlling the OTA packet delivery flow according to the embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
In this embodiment, the cost when the packet is sent by accessing the PCDN comes from the bandwidth cost brought by downloading from the PCDN and the traffic cost generated by downloading the file from the CDN by the mining machine.
Because the space of the mining machine is limited and too many files cannot be cached, the scale of the mining machine for planting needs to be dynamically and effectively controlled, the situation that all files are cached in each mining machine is avoided, the PCDN can be closed timely when the upgrading task is completed to a certain degree, the downloading bandwidth of the task is already attenuated to a certain degree at the moment, and the mining machine resources do not need to be occupied. Therefore, the cost of issuing the data packet is ensured by dynamically increasing the occupied ore machine resources.
Specifically, fig. 1 is a flowchart of a method for controlling an OTA packet delivery flow according to an embodiment of the present application, and the method for controlling an OTA packet delivery flow according to an embodiment of the present application may be executed by a device for controlling an OTA packet delivery flow according to an embodiment of the present application. The control device for the OTA data packet delivery flow in the embodiment of the present application may be configured in any server to execute the control method for the OTA data packet delivery flow in the embodiment of the present application.
As shown in fig. 1, the method comprises the steps of:
step 101, acquiring the estimated bandwidth of the OTA data packet to be issued by the target download task and the bearing bandwidth of each mining machine in the current charging period.
The current charging period may be a current charging period of CDN service charges in an OTA data packet delivery project. The time length corresponding to the current charging period may be 5 minutes, and the like. For example, when the charging mode is 95-month peak charging, the traffic in a settlement time (usually one month) is counted every 5 minutes to obtain the bandwidth point in the 5 minutes, for example, when the total download traffic is C, the bandwidth point can be obtained according to a formula
Figure BDA0002561863720000041
And obtaining the bandwidth value of the bandwidth point. Such a month will get many bandwidth points.The collected bandwidth points are arranged in a reverse order from large to small, then the bandwidth points in the first 5% in the graph are removed, and the first bandwidth point is obtained as the 95-month-peak charging point of the current month. Wherein, the statistical period of 5 minutes can be understood as the current charging period in the present application.
The OTA data packet refers to an upgrade data packet corresponding to the current target task. For example, an upgrade data packet of an upgrade task for a certain mobile phone system may be used, which is not limited in this embodiment of the present application. It can be understood that, in the current charging period, the OTA data packets to be delivered by the target download task may be understood as all the OTA data packets which are not delivered by the target download task and are left after the delivery of the historical charging period.
The estimated bandwidth of the OTA data packet can be understood as the bandwidth (in bps) required by delivery, as a possible implementation manner, when a task is just created, a planned upgrade target of the task is generated, that is, the number of downloading devices for initiating a target downloading task to upgrade is generated, the total amount X of requested OTA data packets corresponding to the target downloading task in the past 5min (the duration of a charging period) corresponding to the target downloading task is obtained from the delivered Elasticsearch, the estimated total QPS is X/300, the QPS represents the total amount of the OTA data packets requested per second, the latest daily activity statistics alive (the number of downloading devices corresponding to the target downloading task on a daily basis) of a product line of the target downloading task is obtained from mysql, and the estimated initial of the current target downloading task is estimated
Figure BDA0002561863720000051
Wherein,
Figure BDA0002561863720000052
when the number is less than 1, a number less than 1 is taken, and when the number is greater than or equal to 1, 1 is taken.
Wherein, QPS0It can be understood that the number of requested OTA packets per second, corresponding to a packet size S (unit: byte), is then determined according to QPS0S8, determining candidate estimated bandwidth, further obtaining an upper threshold value of an OTA data packet issued by the CDN used by the CDN product line under the current charging period, B0 being an upper issuing threshold value S8/300, and B0 and QPS0The minimum value of S8 is used as the estimated bandwidth. In addition, the bearing bandwidth of each mining machine can be calibrated according to big data.
And step 102, determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN.
In this embodiment, the initial number of mining machines may be determined according to the ratio of the estimated bandwidth to the bearing bandwidth of each mining machine, and then the mining machines may be deployed according to the initial number of mining machines through the point-to-point content distribution network PCDN. In the process of deploying the mining machines, referring to fig. 2, since the mining machines need to be deployed completely as soon as possible, and too many mining machines are downloaded concurrently, which may cause bandwidth cost pressure on the CDN, a hierarchical structure for mining machine seeding is also provided in the present application, a limited number of mining machines can be used to download files from the CDN and seed the files, and other mining machines are downloaded from the mining machines and continue to seed the files in a manner of P2P, and finally, the amount of mining machines having the files is spread out and reaches the initial amount of mining machines we need. By the method, the cost of the mining machine for acquiring the file can be controlled within a range, and the deployment time can be prolonged.
In an embodiment of the present application, a current-limited bandwidth in a current charging period may be obtained, where the current-limited bandwidth may be understood as a bandwidth corresponding to a highest issued traffic set by a corresponding CDN according to charging needs, and a reference bandwidth of an OTA packet requested by a target download task per second may be obtained, and may be understood as the above-mentioned QPS0And determining the minimum value of the current limiting bandwidth and the reference bandwidth as the estimated bandwidth by the product value of S and 8, and further calculating the ratio of the estimated bandwidth to the bearing bandwidth to obtain the initial number of the mining machines.
Of course, in an embodiment of the present application, if the number of mining machines deployed by the initial number of mining machines is smaller than a certain magnitude, for example, smaller than 1000, the mining machines will not be deployed according to the number of initial mining machines through the peer-to-peer content distribution network PCDN, and only when the number of mining machines deployed by the initial number of mining machines is greater than or equal to the certain magnitude, the mining machines will be deployed according to the number of initial mining machines through the peer-to-peer content distribution network PCDN, otherwise, the data packet is directly issued through the. And 103, if the current charging period is not the first charging period of the target downloading task, starting to send and acquire the sending parameters and the bandwidth peak value of the last charging period after the mining machine is deployed.
In this embodiment, if the current charging period is not the first charging period of the target download task, after the mining machine deployment is completed, it is considered that the PCDN completes the preheating. In some possible examples, the number of mining machines provided by the PCDN may be periodically polled to obtain the interface, and when the current number reaches the estimated initial number of mining machines, the PCDN may be started to issue, because the target downloading task is issued, the mining machines need to be deployed as soon as possible to provide the target bandwidth capability, so that in the task performing process, the time for starting the PCDN needs to be controlled, and the problem that the existing number of mining machines cannot bear pressure due to sudden increase of the task issuing bandwidth because the mining machines are not completely deployed is avoided.
Therefore, the issuing task is started, the issuing parameter and the bandwidth peak value of the last charging period are obtained, and the number adjusting stage of the number of the ore machines is started.
The issuing parameter may include at least one of a bandwidth attenuation ratio in the historical charging period and a total starting time of the PCDN of the target download task. The bandwidth peak value can be understood as the bandwidth corresponding to the peak point of the maximum download amount of the last charging period.
And step 104, judging whether the issued parameters meet the starting condition of the PCDN, and if the issued parameters meet the starting condition of the PCDN, adjusting the number of the initial ore machines according to the bandwidth peak value to generate the number of the target ore machines.
It should be understood that since the space of the mining machine is limited and too many files cannot be cached, it is necessary to dynamically and effectively control the size of the mining machine that is seeded to avoid caching all the files for each mining machine. And when the upgrading task is completed to a certain degree, the PCDN can be closed in time, and the downloading bandwidth of the task is attenuated to a certain degree at the moment, so that the mining machine resources are not occupied.
In order to judge whether the number of the ore machines is adjusted or the PCDN is closed, in the application, whether the issuing parameters meet the starting condition of the PCDN is judged, and when the starting condition of the PCDN is met, the number of the initial ore machines is adjusted according to the bandwidth peak value to generate the number of the target ore machines.
In an embodiment of the present application, when the issue parameter includes a bandwidth attenuation ratio and a total time length for starting the PCDN of the target download task, as shown in fig. 3, the determining in step 104 whether the issue parameter satisfies the PCDN on condition includes:
step 201, judging whether the bandwidth attenuation ratio is greater than a preset threshold or not, or the total starting time of the PCDN is less than a preset time.
Wherein, the bandwidth attenuation ratio can be obtained according to the following formula (1), where in formula (1), α is the bandwidth attenuation ratio, D is the maximum number of downloading devices in the last charging period, and D ismaxIn order to acquire the number of the downloading devices according to the sampling of the preset sampling period in the process of waiting for the target downloading task to be issued, wherein the sampling period can be 5 minutes or more than 5 minutes, and the like, the number of the downloading devices obtained by sampling in the process of waiting for the target downloading task to be issued is taken as a large value Dmax
Figure BDA0002561863720000071
Step 202, if the bandwidth attenuation ratio is greater than the preset threshold, or the total starting time of the PCDN is less than the preset time, the PCDN starting condition is met.
In some possible examples, the preset threshold may be 0.2, the preset time may be 1 hour, and the like, where the preset threshold may be calibrated according to the needs of the scene, but cannot be set too low, so as to prevent the task from being turned off immediately after the PCDN is started for a long time and the task is not yet in time.
In an embodiment of the application, if the PCDN start condition is not satisfied, that is, for example, the bandwidth attenuation ratio is greater than 0 and less than the preset threshold, and the total starting time of the PCDN is greater than or equal to the preset time, the OTA data packet is issued through the CDN without using the mining machine resource.
Further, in an embodiment of the present application, the target number of mining machines is generated by adjusting the initial number of mining machines according to a bandwidth peak value, wherein in the embodiment, the bandwidth peak value may be obtained according to the following formula (2), wherein in the formula (2), BxThe bandwidth peak value is, D is the maximum number of downloading devices in the last charging period, S is the packet size corresponding to the OTA data packet, and 300 is the current charging period duration (unit is second).
Figure BDA0002561863720000072
And further calculating the ratio of the bandwidth peak value to the bearing bandwidth to obtain the number of the target mining machines.
And step 105, controlling the ore machines with the target ore machine number to send the OTA data packet through the PCDN.
In the embodiment, the ore machines controlling the target number of ore machines send the OTA data through the PCDN, so that the occupation of ore machine resources is reduced.
In another embodiment of the application, if the current charging period is the first charging period of the target download task, after the mining machine is deployed, starting to send the mining machine for controlling the number of the initial mining machines to send the OTA data packet through the PCDN.
Therefore, the OTA data packet issuing flow control method provided by the embodiment of the application assumes that the charging period is 5min, the PCDN miner can support the bandwidth B, obtains the task of starting and starting the PCDN in the current system operation, obtains the reported quantity D of the corresponding tasks from the download start in the last period (the period of 12:00-12:05 is obtained when eg:12:07 is obtained from the reported Elasticissearch after the corresponding OTA data packet size S is executed every 5min, records the reported quantity D as 0 when the reported quantity D does not exist, and records the reported quantity D into the database table T, and obtains each corresponding task from the table T in the operation processRespective maximum download DmaxCalculating the respective bandwidth attenuation ratio of each corresponding task
Figure BDA0002561863720000081
When 0 is present<α<A threshold U is set, and when the running time after the task starts the PCDN is longer than H, the PCDN corresponding to the task is closed, and the task is delivered by using the CDN, in this embodiment, default U is 0.2, and H is 1 hour, otherwise, the bandwidth peak value of each corresponding task in the last period is estimated
Figure BDA0002561863720000082
The number of target mining machines for estimating the corresponding target downloading task is
Figure BDA0002561863720000083
And pushing the target ore machines to a PCDN side to inform and adjust the number of target ore machines corresponding to the existing links, and storing the related information into a database.
To sum up, the OTA data packet issuing flow control method according to the embodiment of the present application obtains the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in a current charging period, determines the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, deploys the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN, and further, if the current charging period is not the first charging period of the target download task, starts issuing and obtains the issuing parameter and the bandwidth peak value of the previous charging period after the mining machines are deployed, determines whether the issuing parameter meets the PCDN starting condition, adjusts the number of the initial mining machines according to the bandwidth peak value to generate the number of the target mining machines if the issuing parameter meets the PCDN starting condition, and controls the mining machines of the number of the target mining machines to issue the OTA. Therefore, when the OTA data packets are issued, the number of the ore machine resources is adjusted by adapting the number of the OTA data packets, and the ore machine resources are effectively utilized while the issuing efficiency is ensured.
According to the embodiment of the application, the application also provides a device for controlling the flow of the OTA data packet.
Fig. 4 is a schematic structural diagram of a control device for sending an OTA data packet down flow according to a fifth embodiment of the present application. As shown in fig. 4, the apparatus includes: a first obtaining module 10, a deployment module 20, a starting module 30, a judging module 40, an adjusting module 50 and a sending module 60, wherein,
the first obtaining module 10 is configured to obtain an estimated bandwidth of an OTA data packet to be issued by a target download task and a bearer bandwidth of each mining machine in a current charging period;
the deployment module 20 is used for determining the number of the initial mining machines according to the estimated bandwidth and the bearing bandwidth, and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN;
the starting module 30 is configured to start issuing and obtain an issuing parameter and a bandwidth peak value of a previous charging period after the mining machine is deployed and completed when the current charging period is not the first charging period of the target download task;
the judging module 40 is used for judging whether the issued parameters meet the starting condition of the PCDN;
the adjusting module 50 is used for adjusting the initial ore machine number according to the bandwidth peak value to generate a target ore machine number;
and the issuing module 60 is used for controlling the ore machines with the target ore machine number to issue the OTA data packet through the PCDN.
In a possible implementation manner of the embodiment of the present application, the starting module is further configured to:
and when the current charging period is the first charging period of the target downloading task, starting to send the ore machines for controlling the number of the initial ore machines to send the OTA data packet through the PCDN after the ore machines are deployed.
In a possible implementation manner of the embodiment of the present application, the deployment module is specifically configured to:
acquiring a current limiting bandwidth in a current charging period;
acquiring the reference bandwidth of an OTA data packet requested by a target downloading task every second;
determining the minimum value of the current-limiting bandwidth and the reference bandwidth as the predicted bandwidth;
and calculating the ratio of the estimated bandwidth to the bearing bandwidth to obtain the number of the initial mining machines.
In a possible implementation manner of the embodiment of the present application, the issuing module 60 is further configured to:
and when the PCDN starting condition is not met, issuing the OTA data packet through the CDN.
It should be noted that the foregoing explanation of the embodiment of the method for controlling the OTA data packet transmission flow is also applicable to the apparatus for controlling the OTA data packet transmission flow of the embodiment, and the implementation principle is similar, and is not described herein again.
To sum up, the OTA data packet issuing flow control device according to the embodiment of the present application obtains the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in a current charging period, determines the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, deploys the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN, and further, if the current charging period is not the first charging period of the target download task, starts issuing and obtains the issuing parameter and the bandwidth peak value of the previous charging period after the mining machines are deployed, determines whether the issuing parameter meets the PCDN starting condition, adjusts the number of the initial mining machines according to the bandwidth peak value to generate the number of the target mining machines if the issuing parameter meets the PCDN starting condition, and controls the mining machines of the number of the target mining machines to issue the OTA. Therefore, when the OTA data packets are issued, the number of the ore machine resources is adjusted by adapting the number of the OTA data packets, and the ore machine resources are effectively utilized while the issuing efficiency is ensured.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 5 is a block diagram of an electronic device for implementing the method for controlling the delivery flow of the OTA data packet according to the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.
Memory 502 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor, so that the at least one processor executes the method for controlling the OTA data packet issuing flow provided by the application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the method for controlling OTA packet delivery traffic provided by the present application.
The memory 502 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the OTA packet delivery flow control method in the embodiment of the present application (for example, the first obtaining module 10, the deploying module 20, the starting module 30, the determining module 40, the adjusting module 50, and the delivering module 60 shown in fig. 4). The processor 501 executes various functional applications and data processing of the server by running non-transitory software programs, instructions and modules stored in the memory 502, that is, the method for controlling the sending flow of the OTA data packet in the above method embodiment is implemented.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device that performs the control method of the OTA packet delivery traffic, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, and these remote memories may be networked to an electronic device that performs the method of controlling OTA packet delivery traffic. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device executing the method for controlling the OTA packet delivery flow may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device performing the method of controlling the OTA packet delivery, such as a touch screen, keypad, mouse, track pad, touch pad, pointer, one or more mouse buttons, track ball, joystick, etc. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A control method for transmitting flow of OTA data packet includes:
acquiring the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in the current charging period;
determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth, and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN;
if the current charging period is not the first charging period of the target downloading task, starting to send and obtain sending parameters and bandwidth peak values of the last charging period after the mining machine is deployed;
judging whether the issued parameters meet a PCDN starting condition, if so, adjusting the initial ore machine number according to the bandwidth peak value to generate a target ore machine number;
and the ore machines controlling the number of the target ore machines send the OTA data packet through the PCDN.
2. The method of claim 1, after said deploying a miner from said initial number of miners through a PCDN, further comprising:
and if the current charging period is the first charging period of the target downloading task, starting to send the ore machines for controlling the number of the initial ore machines to send OTA data packets through the PCDN after the ore machines are deployed.
3. The method of claim 1, wherein said determining an initial number of mines from the forecast bandwidth and the load-bearing bandwidth comprises:
acquiring the current limiting bandwidth in the current charging period;
acquiring the reference bandwidth of the OTA data packet requested by the target downloading task every second;
determining the minimum value of the current limiting bandwidth and the reference bandwidth as the estimated bandwidth;
and calculating the ratio of the pre-estimated bandwidth to the bearing bandwidth to obtain the number of the initial mining machines.
4. The method of claim 1, wherein when the delivery parameter includes a bandwidth attenuation ratio and a PCDN start total duration of the target download task, the determining whether the delivery parameter satisfies a PCDN on condition comprises:
judging whether the bandwidth attenuation ratio is greater than a preset threshold value or not, or judging whether the total starting time of the PCDN is less than a preset time;
and if the bandwidth attenuation ratio is greater than the preset threshold value or the total starting time of the PCDN is less than the preset time, the starting condition of the PCDN is met.
5. The method of claim 1, wherein said adjusting the initial ore number generation target ore number according to the bandwidth peak comprises:
and calculating the ratio of the bandwidth peak value to the bearing bandwidth to obtain the number of the target mining machines.
6. The method of claim 1, wherein after the determining whether the delivered parameter meets a PCDN on condition, further comprising:
and if the PCDN starting condition is not met, issuing the OTA data packet through the CDN.
7. A control device for transmitting flow of OTA data packet comprises:
the first acquisition module is used for acquiring the estimated bandwidth of an OTA data packet to be issued by a target download task and the bearing bandwidth of each mining machine in the current charging period;
the deployment module is used for determining the number of initial mining machines according to the estimated bandwidth and the bearing bandwidth and deploying the mining machines according to the number of the initial mining machines through a point-to-point content distribution network PCDN;
the starting module is used for starting issuing and acquiring issuing parameters and bandwidth peak values of the last charging period after the mining machine is deployed when the current charging period is not the first charging period of the target downloading task;
the judging module is used for judging whether the issuing parameters meet the starting condition of the PCDN;
the adjusting module is used for adjusting the initial ore machine number according to the bandwidth peak value to generate a target ore machine number;
and the issuing module is used for controlling the ore machines with the target ore machine number to issue the OTA data packet through the PCDN.
8. The apparatus of claim 7, the initiation module further to:
and when the current charging period is the first charging period of the target downloading task, starting to send the ore machines for controlling the number of the initial ore machines to send OTA data packets through the PCDN after the ore machines are deployed.
9. The apparatus of claim 7, wherein the deployment module is specifically configured to:
acquiring the current limiting bandwidth in the current charging period;
acquiring the reference bandwidth of the OTA data packet requested by the target downloading task every second;
determining the minimum value of the current limiting bandwidth and the reference bandwidth as the estimated bandwidth;
and calculating the ratio of the pre-estimated bandwidth to the bearing bandwidth to obtain the number of the initial mining machines.
10. The apparatus of claim 7, the issuing module further configured to:
and when the PCDN starting condition is not met, issuing the OTA data packet through the CDN.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of controlling delivery of OTA data packets as claimed in any of claims 1 to 6.
12. A non-transitory computer readable storage medium storing computer instructions for causing a computer to execute a method of controlling delivery of OTA packet delivery traffic as claimed in any one of claims 1 to 6.
CN202010610323.8A 2020-06-30 2020-06-30 Control method and device for OTA data packet issuing flow Active CN111970320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010610323.8A CN111970320B (en) 2020-06-30 2020-06-30 Control method and device for OTA data packet issuing flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010610323.8A CN111970320B (en) 2020-06-30 2020-06-30 Control method and device for OTA data packet issuing flow

Publications (2)

Publication Number Publication Date
CN111970320A true CN111970320A (en) 2020-11-20
CN111970320B CN111970320B (en) 2022-10-14

Family

ID=73362414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010610323.8A Active CN111970320B (en) 2020-06-30 2020-06-30 Control method and device for OTA data packet issuing flow

Country Status (1)

Country Link
CN (1) CN111970320B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866985A (en) * 2021-02-20 2021-05-28 百度在线网络技术(北京)有限公司 Flow control method, resource downloading method, device, equipment and storage medium
CN114915559A (en) * 2021-02-08 2022-08-16 北京金山云网络技术有限公司 CDN node bandwidth planning method, device and storage medium
CN117675574A (en) * 2022-12-07 2024-03-08 国电南瑞科技股份有限公司 Remote batch upgrading method and system for equipment and distributed task scheduling method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610289A (en) * 2009-07-21 2009-12-23 腾讯科技(深圳)有限公司 The methods, devices and systems of data download and node
CN103747364A (en) * 2013-12-11 2014-04-23 北京瑞汛世纪科技有限公司 A method and apparatus for downloading network contents
CN103888512A (en) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 Method and device for downloading resources
US20140310701A1 (en) * 2013-04-15 2014-10-16 Cellco Partnership D/B/A Verizon Wireless Cancelling device over the air software update
CN105049452A (en) * 2015-08-25 2015-11-11 广东欧珀移动通信有限公司 Resource download mode switching method and device, and intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610289A (en) * 2009-07-21 2009-12-23 腾讯科技(深圳)有限公司 The methods, devices and systems of data download and node
US20140310701A1 (en) * 2013-04-15 2014-10-16 Cellco Partnership D/B/A Verizon Wireless Cancelling device over the air software update
CN103747364A (en) * 2013-12-11 2014-04-23 北京瑞汛世纪科技有限公司 A method and apparatus for downloading network contents
CN103888512A (en) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 Method and device for downloading resources
CN105049452A (en) * 2015-08-25 2015-11-11 广东欧珀移动通信有限公司 Resource download mode switching method and device, and intelligent terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘志军等: "基于OTA的车辆ECU软件远程刷写系统", 《汽车与驾驶维修(维修版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915559A (en) * 2021-02-08 2022-08-16 北京金山云网络技术有限公司 CDN node bandwidth planning method, device and storage medium
CN114915559B (en) * 2021-02-08 2024-01-23 北京金山云网络技术有限公司 CDN node bandwidth planning method, CDN node bandwidth planning device and storage medium
CN112866985A (en) * 2021-02-20 2021-05-28 百度在线网络技术(北京)有限公司 Flow control method, resource downloading method, device, equipment and storage medium
CN112866985B (en) * 2021-02-20 2023-06-23 百度在线网络技术(北京)有限公司 Flow control method, resource downloading method, device, equipment and storage medium
CN117675574A (en) * 2022-12-07 2024-03-08 国电南瑞科技股份有限公司 Remote batch upgrading method and system for equipment and distributed task scheduling method
CN117675574B (en) * 2022-12-07 2024-09-27 国电南瑞科技股份有限公司 Remote batch upgrading method and system for equipment and distributed task scheduling method

Also Published As

Publication number Publication date
CN111970320B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN112165691B (en) Content delivery network scheduling method, device, server and medium
CN111970320B (en) Control method and device for OTA data packet issuing flow
US20200034725A1 (en) Methods and system for managing predictive models
CN111083058B (en) Content distribution network service flow limiting method and electronic equipment
US8275787B2 (en) System for managing data collection processes
CN111970132B (en) Control method, device and server for OTA data packet issuing flow
CN111694646B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
CN111290768B (en) Updating method, device, equipment and medium of containerized application system
CN112073994A (en) Method and device for over-the-air upgrading, electronic equipment and readable storage medium
CN114095443B (en) Method, device, electronic equipment and readable storage medium for controlling flow
CN111459645B (en) Task scheduling method and device and electronic equipment
CN111988817B (en) Method and device for controlling OTA data packet issuing flow
KR102546577B1 (en) Method and device for mini program data processing
CN112311597B (en) Message pushing method and device
US11206673B2 (en) Priority control method and data processing system
CN112565356B (en) Data storage method and device and electronic equipment
CN111782229B (en) Method and device for starting small program and electronic equipment
CN113452535B (en) Upgrading method, information processing method and device and electronic equipment
CN113285886A (en) Bandwidth allocation method and device, electronic equipment and readable storage medium
CN112202567A (en) Certificate sending method, cloud terminal and terminal equipment
CN112866985B (en) Flow control method, resource downloading method, device, equipment and storage medium
CN113596920B (en) Flow control method, device, electronic equipment and storage medium
CN105681073A (en) Application program updating method and device
CN113556402A (en) Data downloading scheduling method and device and electronic equipment
CN105591980B (en) A kind of bandwidth consumption management method and device

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
GR01 Patent grant
GR01 Patent grant