WO2014026613A1 - 网络带宽分配方法及终端 - Google Patents

网络带宽分配方法及终端 Download PDF

Info

Publication number
WO2014026613A1
WO2014026613A1 PCT/CN2013/081483 CN2013081483W WO2014026613A1 WO 2014026613 A1 WO2014026613 A1 WO 2014026613A1 CN 2013081483 W CN2013081483 W CN 2013081483W WO 2014026613 A1 WO2014026613 A1 WO 2014026613A1
Authority
WO
WIPO (PCT)
Prior art keywords
network bandwidth
priority
application
terminal
bandwidth allocation
Prior art date
Application number
PCT/CN2013/081483
Other languages
English (en)
French (fr)
Inventor
赵吉昌
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP13829266.9A priority Critical patent/EP2822236B1/en
Publication of WO2014026613A1 publication Critical patent/WO2014026613A1/zh
Priority to US14/490,963 priority patent/US20150019740A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5022Ensuring fulfilment of SLA by giving priorities, e.g. assigning classes of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/803Application aware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA

Definitions

  • the present invention relates to a resource allocation technology, and in particular, to a network bandwidth allocation method and a terminal, and belongs to the field of communication technologies. Background technique
  • each application that consumes network resources running on the smartphone randomly preempts the network bandwidth.
  • the terminal sends a service request to an application server corresponding to the application, so that the application server provides a service in response to the service request, when the terminal sends a different application corresponding to multiple applications.
  • the available network bandwidth is preferentially assigned to the application that has received the response message returned by the application server.
  • the network bandwidth occupied by each application depends on the response speed of the application server corresponding to the application, for example, when the smart phone runs QQ and In the case of Thunder, because the response speed of Tencent server is better, and the response speed of the file server where Thunder is downloading is poor, QQ occupies more network bandwidth, and Thunder takes up less network bandwidth.
  • the present invention provides a network bandwidth allocation method for the defects existing in the prior art. And the terminal realizes reasonable allocation of network bandwidth for the application running on the terminal according to the user's needs.
  • the first aspect provides a network bandwidth allocation method, including:
  • the obtaining, by the application, the priority of the application that is running by the terminal and occupying the network resource specifically:
  • the priority of the application is determined according to the mapping relationship between the application category and the priority stored in the preset priority list.
  • the priority of the application includes: a priority that is not corresponding to the sequence, and the priority is increased for the application that is running in the terminal and whose priority is lower than the priority that is not corresponding, according to the application.
  • the elevated priority of the program allocating network bandwidth.
  • the network bandwidth allocation policy is specifically: assigning different proportions to different priority applications Network bandwidth; accordingly,
  • network bandwidth allocation value network bandwidth is allocated for an application having a corresponding priority.
  • the network bandwidth allocation policy is specifically:
  • the application allocates the remaining network bandwidth.
  • the second aspect provides a terminal, including a priority acquisition module, a network bandwidth acquisition module, and a network bandwidth allocation module, where: a priority of the program is provided to the network bandwidth allocation module;
  • the network bandwidth acquisition module is configured to acquire a network bandwidth currently available to the terminal, and provide the network bandwidth allocation module to the network bandwidth allocation module;
  • the network bandwidth allocation module is configured to allocate the currently available network bandwidth to the application according to a network bandwidth allocation policy of the terminal and a priority of the application.
  • the priority acquiring module is specifically configured to: perform classification by using a program; and determine, according to a mapping relationship between an application category and a priority stored in a preset priority list, The priority of the application.
  • the priority obtaining module is further configured to: if the terminal exists in the priority list, and the network is occupied If the application of the resource does not have a corresponding priority, the application that is running in the terminal and has a lower priority than the unprioritized priority is sequentially upgraded according to the upgraded version of the application. Priority, allocate network bandwidth.
  • the network bandwidth allocation policy is specifically: assigning different proportions to applications of different priorities
  • the network bandwidth allocation module is specifically configured to: determine, according to the network bandwidth allocation policy, a network bandwidth allocation ratio corresponding to a priority of each application; according to the network bandwidth allocation ratio, And dividing the currently available network bandwidth to determine a network bandwidth allocation value corresponding to the priority of the application; and, according to the network bandwidth allocation value, allocating network bandwidth to an application having a corresponding priority.
  • the network bandwidth allocation policy is specifically: assigning network bandwidth to an application according to a priority from high to low, and only when the network bandwidth is allocated for an application with a higher priority. When the corresponding preset desired bandwidth is met, the remaining network bandwidth is allocated for applications with lower priority.
  • the network bandwidth is allocated for the application due to the priority of each application that needs to allocate the network bandwidth, the network bandwidth currently available to the terminal, and the preset network bandwidth allocation policy. It realizes the reasonable allocation of network bandwidth for the application running on the terminal according to the user's needs, so that in the case of poor network environment, the application with higher priority can be guaranteed to operate normally according to the needs of the user, avoiding the application due to each application. Applications that are free to preempt bandwidth can't function properly, or they can't run the appropriate application based on user needs.
  • FIG. 1 is a schematic flowchart of a network bandwidth allocation method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a network bandwidth allocation method according to another embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a network bandwidth allocation method according to another embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a terminal according to another embodiment of the present invention. detailed description
  • the network bandwidth allocation method of this embodiment may be performed by a terminal, which may be, for example, a smart phone, a personal computer, or the like.
  • FIG. 1 is a schematic flowchart of a network bandwidth allocation method according to an embodiment of the present invention. As shown in FIG. 1, the network bandwidth allocation method includes the following processes:
  • the priority of the application that is running and occupied by the network is obtained in the terminal.
  • the terminal is configured with a priority list, for example, and the terminal learns, according to the priority list, the currently running application connected to the network. priority.
  • the determining, by the terminal, the priority of the application according to the priority list may be in any manner, for example, the priority list stores the mapping relationship between the identifier and the priority of each application established according to the user requirement, and the terminal operates according to the current priority.
  • the priority list may also store the mapping relationship between the type and the priority of the application established according to the user requirement, and the terminal according to the The application's business characteristics or running status, etc., classify the currently running and network-connected applications, and assign the priority corresponding to the category in the query priority list to determine the application priority.
  • the specific manner of obtaining the priority of the network-connected application running by the terminal there is no limitation on the specific manner of obtaining the priority of the network-connected application running by the terminal.
  • the terminal can obtain the currently available network bandwidth by using any network bandwidth acquisition method in the prior art, which is not limited in this embodiment. More specifically, the terminal may be configured to continuously monitor the available network bandwidth according to actual needs; and the terminal may be configured to perform the network bandwidth allocation method of the embodiment according to the need, for example, to save power, and obtain the network available to the terminal. Bandwidth; The terminal device can also obtain the network bandwidth available to the terminal when the network status changes.
  • the terminal is further configured with one or more network bandwidth allocation policies.
  • the terminal may select a more optimized network bandwidth allocation policy according to the current network bandwidth, or may be configured by the user. Select the network bandwidth allocation policy of the current application according to the requirements.
  • the terminal After obtaining the priority of the currently running network-connected application and the currently available network bandwidth of the terminal, the terminal combines the current application network bandwidth allocation policy with the network chain. The connected application allocates network bandwidth to prioritize the allocation of sufficient bandwidth for higher priority applications to ensure that higher priority applications are functioning properly.
  • the network bandwidth is allocated for the application according to the priority of each application that needs to allocate the network bandwidth, the network bandwidth currently available to the terminal, and the preset network bandwidth allocation policy.
  • the user needs to allocate network bandwidth reasonably for the application running on the terminal, so that in the case of a poor network environment, the application with higher priority can be guaranteed to operate normally according to the needs of the user, thereby avoiding the free preemption of bandwidth by each application.
  • the resulting application is not working properly, or the application cannot be run according to the user's needs.
  • the first level specifically includes:
  • the priority of the application is determined according to the mapping relationship between the application category and the priority stored in the preset priority list.
  • the running state of the application includes, for example, foreground running, background running, hidden running, etc.
  • the types of applications divided according to the operating state include, for example, a foreground program, a background service, and a hidden program.
  • Tencent Weibo is displayed at the front end, and its corresponding classification is the foreground program; the weather clock updates the weather information in the background, and its corresponding classification is the background service; the "music player" is hidden in the background and played online. Its corresponding classification is a hidden program.
  • the terminal determines the priority of each application according to the priority list in which the mapping relationship between the above categories and priorities is stored.
  • the priority list can, for example, use a priority list set in an existing Android (Android) system for managing memory.
  • Table 1 shows an example of a priority list for managing memory set in the Android system.
  • the lower the "oom_ adj" value the higher the priority of the application.
  • only the front-end program, the user-visible program, the background service, and the hidden program are related to the network connection. For example, the network bandwidth needs to be allocated.
  • the foreground program has the highest priority, and the priority of the program visible to the user. Only lower than the priority of the foreground program, background service Below the program visible to the user and higher than the hidden program, the hidden program has the lowest priority.
  • the priority of the application is dynamically determined according to the running state of the application, the application running in the foreground can be ensured to run smoothly and meet the user requirements in the normal state.
  • the priority list for managing memory set in the Android system when the terminal performing the embodiment of the present invention is an intelligent terminal using the Android system, there is no need to additionally set a priority list for allocating network bandwidth. , effectively saving the system resources of the terminal.
  • the mapping of the application category and the priority stored in the preset priority list determines the priority of the application, and then includes: If the priority is not the same, the application that is running in the terminal and whose priority is lower than the unprioritized priority is sequentially upgraded to be assigned according to the upgraded priority of the application.
  • the terminal does not currently run the foreground program, and only the program visible to the user, the background service, and the hidden program are run, and the mapping relationship between the application type and the priority according to Table 1 is determined, and the user is determined to be visible.
  • the priority of the program, the background service, and the hidden program is prioritized
  • the priority of the program visible to the user is raised to the priority corresponding to the foreground program
  • the priority of the background service is prioritized.
  • the level is promoted to the priority corresponding to the hidden program.
  • the priority according to the promotion is Use the program to allocate network bandwidth.
  • the network bandwidth allocation method of the foregoing embodiment by performing the foregoing priority promotion, when the terminal does not run the application with higher priority, the network bandwidth can be fully allocated to the lower priority application run by the terminal. Take full advantage of network bandwidth to avoid wasting network bandwidth because higher priority applications retain network bandwidth.
  • FIG. 2 is a schematic flowchart of a network bandwidth allocation method according to another embodiment of the present invention. As shown in FIG. 2, the method includes the following processes:
  • the network bandwidth allocation policy is, for example: assigning different proportions of network bandwidth to applications having different priorities (the network bandwidth allocation policy is called, for example, the first network bandwidth allocation policy). More specifically, for example: assigning 80% of the currently available network bandwidth to the foreground program, 10% of the currently available network bandwidth for the user-visible program, 7% of the currently available network bandwidth for the background service, and hiding The program allocates 3% of the currently available network bandwidth.
  • the current available network bandwidth is divided according to the network bandwidth allocation ratio, and a network bandwidth allocation value corresponding to the priority of the application is determined.
  • the network bandwidth allocation value corresponding to the foreground program is 160 KB/s
  • the network bandwidth allocation value of the program visible to the user is 20KB/S
  • the network bandwidth allocation value corresponding to the background service is 14KB/S
  • the network bandwidth allocation value corresponding to the hidden program is 6KB/S.
  • the network bandwidth allocation values corresponding to the priority are all allocated to the application; if the terminal runs the corresponding application corresponding to each priority There are multiple, for example, the terminal runs QQ and MSN simultaneously in the background. Then, the terminal can equally allocate the network bandwidth of the 14KB/S corresponding to the background service to the QQ and the MSN, and also allow the QQ and the MSN to share the network bandwidth of 14 KB/S, and the shared network bandwidth is preempted by both the QQ and the MSN.
  • the network bandwidth is allocated to each application according to the upgraded priority in the foregoing embodiment 2.
  • the terminal is not currently running the foreground program, only the programs visible to the user, the background service, and the hidden program are run.
  • the network bandwidth allocation is performed according to the first network bandwidth allocation policy, the program is visible to the user currently running by the terminal.
  • the network bandwidth of 160 KB/S allocates 20 KB/s of network bandwidth for background services and allocates 14 KB/s of network bandwidth for hidden programs.
  • the priority is sequentially upgraded, and the network bandwidth is allocated to each application according to the upgraded priority, thereby avoiding waste of a large amount of network bandwidth and making the user with lower priority visible.
  • the program can get a lot of network bandwidth resources to run normally.
  • FIG. 3 is a schematic flowchart of a network bandwidth allocation method according to still another embodiment of the present invention. As shown in FIG. 3, the method includes the following processes:
  • Allocate network bandwidth to the application according to a network bandwidth allocation policy for example, a second network bandwidth allocation policy
  • a network bandwidth allocation policy for example, a second network bandwidth allocation policy
  • the network bandwidth when the corresponding preset desired bandwidth is met, allocates the remaining network bandwidth for applications with lower priority.
  • the second network bandwidth allocation policy includes, for example, a desired bandwidth value corresponding to each priority.
  • the expected bandwidth value corresponding to the foreground program is 100 KB/S
  • the expected bandwidth value corresponding to the program visible to the user is 150 KB/S
  • the expected bandwidth value corresponding to the background service and the hidden program is 120 KB/S
  • the terminal detects The currently available network bandwidth is 200K B/S. Then, the terminal allocates 100 KB/S network bandwidth to the foreground program, and allocates 100 KB/S network bandwidth for the program visible to the user, and does not allocate network bandwidth to the background service and the hidden program.
  • the network bandwidth allocation method of the present embodiment when the currently available network bandwidth of the terminal meets the expected bandwidth value corresponding to the higher priority application, the network bandwidth is allocated according to the expected bandwidth value corresponding to the higher priority application. , fully guarantee the smooth running of higher priority applications and improve user experience.
  • the network bandwidth is allocated to each application according to the upgraded priority in the second embodiment.
  • the terminal is not currently running a foreground program, only the program visible to the user, the background service, and the hidden program are run.
  • the network bandwidth allocation is performed according to the second network bandwidth allocation policy, the program is visible to the user currently running by the terminal.
  • the priority is sequentially upgraded, and the network bandwidth is allocated to each application according to the upgraded priority, thereby avoiding waste of a large amount of network bandwidth and making the user with lower priority visible.
  • the program runs smoothly.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes a priority acquisition module 41, a network bandwidth acquisition module 42 and a network bandwidth allocation module 43, wherein: the priority of the sequence is provided to the network bandwidth allocation module 43;
  • the network bandwidth acquisition module 42 is configured to obtain the network bandwidth currently available to the terminal, and provide the network bandwidth allocation module 43;
  • the network bandwidth allocation module 43 is configured to allocate the currently available network bandwidth to the application according to the network bandwidth allocation policy of the terminal and the priority of the application.
  • the application is allocated due to the priority of each application that needs to allocate the network bandwidth, the network bandwidth currently available to the terminal, and the preset network bandwidth allocation policy.
  • Network bandwidth which realizes the reasonable allocation of network bandwidth for applications running on the terminal according to user requirements, so that in the case of poor network environment, the application with higher priority can be guaranteed to operate normally according to the needs of users, avoiding The application is free to preempt the bandwidth and the application is not working properly, or the application cannot be run according to the user's needs.
  • the priority acquiring module is specifically configured to: perform a classification by using a root program; and determine the application according to a mapping relationship between an application category and a priority stored in a preset priority list. The priority of the program.
  • the priority of the application is dynamically determined according to the running state of the application, the application running in the foreground can be ensured to run smoothly, and the user needs in a normal state can be met.
  • the priority list for managing memory set in the Android system when the terminal performing the embodiment of the present invention is an intelligent terminal using the Android system, there is no need to additionally set a priority list for allocating network bandwidth. , effectively saving the system resources of the terminal.
  • the priority obtaining module is further configured to: if the priority is used, an application that is running on the terminal and has a lower priority than the unprioritized priority The priorities are sequentially increased to allocate network bandwidth according to the elevated priority of the application.
  • the terminal according to the embodiment performs the foregoing priority promotion, so that when the terminal does not run the application with higher priority, the network bandwidth can be fully allocated to the lower priority application running by the terminal, and the network is fully utilized. Bandwidth, avoiding wasted network bandwidth because higher priority applications retain network bandwidth.
  • the network bandwidth allocation policy is specifically: assigning different proportions of network bandwidth to different priority applications; correspondingly, the network bandwidth allocation module is specifically configured to: according to the network a bandwidth allocation policy, determining a network bandwidth allocation ratio corresponding to the priority of each application; dividing the currently available network bandwidth according to the network bandwidth allocation ratio, and determining a priority corresponding to the application priority a network bandwidth allocation value; and allocating network bandwidth to an application having a corresponding priority according to the network bandwidth allocation value.
  • the network bandwidth allocation policy is specifically: Assign network bandwidth to applications in order of priority from high to low, and have lower priority only when the network bandwidth allocated for applications with higher priority meets the corresponding preset expected bandwidth The application allocates the remaining network bandwidth.
  • the network bandwidth is allocated according to the expected bandwidth value corresponding to the higher priority application, and the network bandwidth is fully guaranteed.
  • the smooth running of higher priority applications improves the user experience.
  • FIG. 5 is a schematic structural diagram of a terminal according to another embodiment of the present invention. As shown in FIG. 5, the terminal includes a processor 51 and a memory 52, wherein:
  • the memory 52 is configured to store a mapping relationship between the application of the terminal and the priority
  • the processor 51 uses, for example, any central processing unit (Central Processing Unit,
  • the CPU 52 is implemented by hardware; the memory 52 is implemented by hardware, for example, using any read-only memory (ROM) or random access memory (RAM).
  • ROM read-only memory
  • RAM random access memory
  • the network bandwidth is allocated for the application according to the priority of each application that needs to allocate the network bandwidth, the network bandwidth currently available to the terminal, and the preset network bandwidth allocation policy, and the user bandwidth is implemented according to the user demand.
  • the application running on the terminal allocates the network bandwidth reasonably, so that in the case of a poor network environment, the application with higher priority can be guaranteed to operate normally according to the needs of the user, and the application caused by freely preempting the bandwidth of each application is avoided.
  • the program is not working properly, or the application cannot be run according to the user's needs.
  • Computer readable media includes computer storage media and Communication medium, wherein the communication medium includes any medium that facilitates the transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the computer may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种网络带宽分配方法及终端。该方法包括:获取所述终端正在运行的且占用网络资源的应用程序的优先级;获取所述终端当前可用的网络带宽;根据所述终端的网络带宽分配策略和所述应用程序的优先级,将所述当前可用的网络带宽分配给所述应用程序。根据本发明实施例提供的网络带宽分配方法及终端,实现了根据用户需求为终端运行的应用程序合理分配网络带宽。

Description

网絡带宽分配方法及终端
本申请要求于 2012年 08月 14日提交中国专利局、 申请号为
201210288295.8、 发明名称为 "网络带宽分配方法及终端" 的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及资源分配技术, 尤其涉及一种网络带宽分配方法及终端, 属 于通信技术领域。 背景技术
随着智能手机智能化的不断提升, 现在的智能手机的功能已经类似于一 个小型掌上电脑, 能够同时支持多种占用网络资源的应用程序的运行。 但是 由于无线网络的发展落后于智能手机的普及速度, 导致智能手机可用的网络 带宽受限, 因此当智能手机同时运行多个需占用网络资源的应用程序时, 无 法满足各应用的网络上行速度和下行速度均能得到保证。
对于有限的可用网络带宽, 智能手机运行的各个占用网络资源的应用程序对 网络带宽进行随机抢占。 通常地, 当智能手机运行占用网络资源的应用程序 时, 终端向该应用程序对应的应用服务器发送服务请求, 以使应用服务器响 应该服务请求提供服务, 当终端向多个应用程序对应的不同应用服务器发送 服务请求后, 将可用网络带宽优先分配给已接收到应用服务器返回的响应消 息的应用程序。 因此, 在现有技术中, 智能手机运行多个需占用网络资源的 应用程序时, 各应用程序所占用的网络带宽取决于应用程序对应的应用服务 器的响应速度, 例如当智能手机同时运行 QQ和迅雷时, 由于腾讯服务器响 应速度较好, 而迅雷正在下载的文件所在文件服务器的响应速度较差,则 QQ 占用较多的网络带宽, 迅雷占用较少的网络带宽。 发明内容
针对现有技术中存在的缺陷, 本发明实施例提供一种网络带宽分配方法 及终端, 实现了根据用户需求为终端运行的应用程序合理分配网络带宽。 第一方面, 提供一种网络带宽分配方法, 包括:
获取终端正在运行的且占用网络资源的应用程序的优先级;
获取所述终端当前可用的网络带宽;
根据所述终端的网络带宽分配策略和所述应用程序的优先级, 将所述当 前可用的网络带宽, 分配给所述应用程序。
在第一方面的第一种可能的实现方式中, 所述获取终端正在运行的且占 用网络资源的应用程序的优先级, 具体包括: 述应用程序进行分类;
根据预设的优先级列表中存储的应用程序类别与优先级的映射关系, 确 定所述应用程序的优先级。
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述根据预设的优先级列表中存储的应用程序类别与优先级的映射关系, 确 定所述应用程序的优先级, 之后还包括: 序未对应的优先级, 则对所述终端正在运行的、 优先级低于所述未对应的优 先级的应用程序, 顺次提升优先级, 以根据所述应用程序的提升后的优先级, 分配网络带宽。
结合第一方面或第一方面的第一或第二种可能的实现方式, 在第三种可 能的实现方式中, 所述网络带宽分配策略具体为: 为不同优先级的应用程序, 分配不同比例的网络带宽; 相应地,
所述根据所述终端的网络带宽分配策略和所述应用程序的优先级, 将所 述当前可用的网络带宽分配给所述应用程序, 具体包括:
根据所述网络带宽分配策略, 确定所述各应用程序的优先级对应的网络 带宽分配比例;
根据所述网络带宽分配比例, 对所述当前可用的网络带宽进行划分, 确 定与所述应用程序的优先级对应的网络带宽分配值; 以及
根据所述网络带宽分配值, 为具有对应的优先级的应用程序分配网络带 宽。 结合第一方面或第一方面的第一或第二种可能的实现方式, 在第四种可 能的实现方式中, 所述网络带宽分配策略具体为:
按照优先级由高至低的顺序, 为应用程序分配网络带宽, 并仅当为具有 较高优先级的应用程序所分配的网络带宽, 满足对应的预设期望带宽时, 为 具有较低优先级的应用程序分配剩余的网络带宽。
第二方面, 提供一种终端, 包括优先级获取模块、 网络带宽获取模块和 网络带宽分配模块, 其中: 程序的优先级, 并提供给所述网络带宽分配模块;
所述网络带宽获取模块, 用于获取所述终端当前可用的网络带宽, 并提 供给所述网络带宽分配模块;
所述网络带宽分配模块, 用于根据所述终端的网络带宽分配策略和所述 应用程序的优先级, 将所述当前可用的网络带宽分配给所述应用程序。
在第二方面的第一种可能的实现方式中,所述优先级获取模块具体用于: 用程序进行分类; 根据预设的优先级列表中存储的应用程序类别与优先级的 映射关系, 确定所述应用程序的优先级。
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述优先级获取模块还用于: 若所述优先级列表中存在所述终端正在运行的 且占用网络资源的应用程序未对应的优先级, 则对所述终端正在运行的、 优 先级低于所述未对应的优先级的应用程序, 顺次提升优先级, 以根据所述应 用程序的提升后的优先级, 分配网络带宽。
结合第二方面或第二方面的第一或第二种可能的实现方式, 在第三种可 能的实现方式中, 所述网络带宽分配策略具体为: 为不同优先级的应用程序, 分配不同比例的网络带宽; 相应地, 所述网络带宽分配模块具体用于: 根据 所述网络带宽分配策略, 确定所述各应用程序的优先级对应的网络带宽分配 比例; 根据所述网络带宽分配比例, 对所述当前可用的网络带宽进行划分, 确定与所述应用程序的优先级对应的网络带宽分配值; 以及根据所述网络带 宽分配值, 为具有对应的优先级的应用程序分配网络带宽。
结合第二方面或第二方面的第一或第二种可能的实现方式, 在第四种可 能的实现方式中, 所述网络带宽分配策略具体为: 按照优先级由高至低的顺 序, 为应用程序分配网络带宽, 并仅当为具有较高优先级的应用程序所分配 的网络带宽, 满足对应的预设期望带宽时, 为具有较低优先级的应用程序分 配剩余的网络带宽。
根据本发明实施例提供的网络带宽分配方法和终端, 由于根据需分配网 络带宽的各应用程序的优先级, 终端当前可用的网络带宽, 以及预设的网络 带宽分配策略, 为应用程序分配网络带宽, 实现了根据用户需求为终端运行 的应用程序合理分配网络带宽, 使得在网络环境较差的情况, 也可以根据用 户的需求, 保障优先级较高的应用程序正常运行, 避免了由于各应用程序自 由抢占带宽而导致的应用程序均无法正常运行, 或无法根据用户需求运行相 应的应用程序的问题。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一个实施例的网络带宽分配方法的流程示意图;
图 2为本发明另一个实施例的网络带宽分配方法的流程示意图; 图 3为本发明又一个实施例的网络带宽分配方法的流程示意图; 图 4为本发明一个实施例的终端的结构示意图;
图 5为本发明另一个实施例的终端的结构示意图。 具体实施方式
目前的智能手机中, 没有对于应用程序所占用网络带宽进行协调分配处 理的机制, 各种与网络连接的应用程序基于抢占式的方法来各取所需。 因此, 当智能手机中同时运行多个与网络连接的应用程序时, 各应用程序的用户网 络体验具有不确定性, 例如用户在刷新微博的过程中, 后台有程序在访问服 务器更新天气信息, google 账户在同步账户信息, 同时后台在线音乐又处于 音乐緩冲过程中等。 这些应用程序进行网络带宽抢占, 可能导致各应用均获 取到较少的网络带宽, 未达到支持应用程序所需的最低带宽, 导致歌曲緩冲 失败, 微博刷不出来等, 无法满足用户需求。
本实施例的网络带宽分配方法可以由终端来执行, 该终端可以例如为智 能手机、 个人电脑等。
图 1为本发明一个实施例的网络带宽分配方法的流程示意图, 如图 1所 示, 该网络带宽分配方法包括以下流程:
101 , 获取终端正在运行的且占用网络资源的应用程序的优先级; 具体地, 终端中例如预先配置有优先级列表, 终端根据该优先级列表获 知当前运行的、 且与网络连接的应用程序的优先级。 其中, 终端根据优先级 列表确定应用程序的优先级可以釆用任意方式, 例如: 优先级列表中存储有 根据用户需求所建立的各应用程序的标识与优先级的映射关系, 终端根据当 前运行的、 且与网络连接的应用程序的标识查询优先级列表, 即可确定应用 程序的优先级; 优先级列表中还可以存储根据用户需求所建立的应用程序的 类型与优先级的映射关系, 终端根据应用程序的业务特性或运行状态等, 对 当前运行的、 且与网络连接的应用程序进行分类, 交查询优先级列表中与该 分类对应的优先级, 即可确定应用程序的优先级。 本实施例中, 对于获取终 端运行的与网络连接的应用程序的优先级的具体方式不做限制。
102, 获取所述终端当前可用的网络带宽;
具体地, 终端获取当前可用的网络带宽可以釆用现有技术中的任意网络 带宽获取方式来实现, 本实施例中不做限制。 更为具体地, 可根据实际需要, 将终端设置为持续监测可用的网络带宽; 也可根据例如节省电量等需要, 将 终端设置为执行本实施例的网络带宽分配方法时,获取终端可用的网络带宽; 还可以将终端设备为当网络状态发生变化时, 获取终端可用的网络带宽。
103 , 根据所述终端的网络带宽分配策略和所述应用程序的优先级, 将所 述当前可用的网络带宽分配给所述应用程序。
具体地, 终端还预先配置有一种或多种网络带宽分配策略, 当配置有多 种网络带宽分配策略时, 可以由终端根据当前网络带宽自行选择较为优化的 网络带宽分配策略, 也可以由用户可根据需求选择当前应用的网络带宽分配 策略。 终端在获取到当前运行的、 与网络连接的应用程序的优先级, 以及终 端当前可用的网络带宽后, 结合当前应用的网络带宽分配策略, 为与网络链 接的应用程序分配网络带宽, 以优先为优先级较高的应用程序分配充足的带 宽, 以保障优先级高的应用程序能够正常运行。
根据本实施例的网络带宽分配方法, 由于根据需分配网络带宽的各应用 程序的优先级, 终端当前可用的网络带宽, 以及预设的网络带宽分配策略, 为应用程序分配网络带宽, 实现了根据用户需求为终端运行的应用程序合理 分配网络带宽, 使得在网络环境较差的情况, 也可以根据用户的需求, 保障 优先级较高的应用程序正常运行, 避免了由于各应用程序自由抢占带宽而导 致的应用程序均无法正常运行, 或无法根据用户需求运行相应的应用程序的 问题。
在上述实施例的基础上, 本实施例的网络带宽分配方法中, 对获取终端 正在运行的且占用网络资源的应用程序的优先级的过程进行说明。 先级, 具体包括:
根据所述终端正在运行的与网络连接的应用程序的运行状态, 对所述应 用程序进行分类;
根据预设的优先级列表中存储的应用程序类别与优先级的映射关系, 确 定所述应用程序的优先级。
更为具体地, 应用程序的运行状态例如包括前台运行、 后台运行和隐藏 运行等, 相应地, 按照运行状态所划分的应用程序的类型例如包括前台程序、 后台服务和被隐藏的程序等。 例如, 在终端中, 腾讯微博在最前端显示, 其 对应的分类为前台程序; 天气时钟在后台更新天气信息, 其对应的分类为后 台服务; "音乐播放器"被隐藏在后台在线播放, 其对应的分类为被隐藏的程 序。
相应地,终端根据存储有上述各类别与优先级的映射关系的优先级列表, 来确定各应用程序的优先级。该优先级列表例如可以釆用现有安卓( Android ) 系统中设置的用于管理内存的优先级列表。 表 1为安卓系统中设置的用于管 理内存的优先级列表的示例, 在表 1 中, "oom— adj" 值越低, 代表该应用程 序的优先级越高。 以表 1 中, 仅前台程序、 用户可见的程序、 后台服务和被 隐藏的程序四种类型涉及网络连接, 需分配网络带宽为例, 前台程序具有最 高的优先级, 用户可见的程序的优先级仅低于前台程序、 后台服务的优先级 低于用户可见的程序且高于被隐藏的程序, 被隐藏的程序的优先级最低。
表 1
Figure imgf000008_0001
根据本实施例的网络带宽分配方法, 由于根据应用程序的运行状态, 动 态确定应用程序的优先级, 能够保障前台运行的应用程序运行流畅, 符合常 规状态下的用户需求。 而且, 通过釆用安卓系统中设置的用于管理内存的优 先级列表, 使得当执行本发明实施例的终端为釆用安卓系统的智能终端时, 无需额外设置用于分配网络带宽的优先级列表,有效节约了终端的系统资源。
进一步地, 在上述实施例的网络带宽分配方法中, 所述根据预设的优先 级列表中存储的应用程序类别与优先级的映射关系, 确定所述应用程序的优 先级, 之后还包括: 序未对应的优先级, 则对所述终端正在运行的、 优先级低于所述未对应的优 先级的应用程序, 顺次提升优先级, 以根据所述应用程序的提升后的优先级, 分配网络带宽
具体地, 例如: 终端当前未运行有前台程序, 仅运行有用户可见的程序、 后台服务和被隐藏的程序, 则在根据表 1所示的应用类型与优先级的映射关 系、 确定用户可见的程序、 后台服务和被隐藏的程序对应的优先级后, 对其 顺次进行优先级提升, 即: 将用户可见的程序对应的优先级提升为前台程序 对应的优先级,将后台服务对应的优先级提升为被隐藏的程序对应的优先级。 并且, 在后续根据优先级进行网络带宽分配时, 根据提升后的优先级为各应 用程序分配网络带宽。
根据上述实施例的网络带宽分配方法, 通过执行上述优先级提升, 使得 当终端未运行优先级较高的应用程序时, 能够将网络带宽充分分配给终端所 运行的较低优先级的应用程序, 充分利用网络带宽, 避免因为优先级较高的 应用程序保留网络带宽而造成网络带宽浪费。
在上述实施例的基础上, 本实施例的网络带宽分配方法中, 对根据网络 带宽分配策略和当前可用的网络带宽, 按照所述应用程序的优先级, 分配网 络带宽的过程进行扩展说明。
图 2为本发明另一个实施例的网络带宽分配方法的流程示意图, 如图 2 所示, 该方法包括以下流程:
201 , 获取终端正在运行的且占用网络资源的应用程序的优先级;
202, 获取所述终端当前可用的网络带宽;
203 , 根据网络带宽分配策略, 确定所述各应用程序的优先级对应的网络 带宽分配比例;
具体地, 网络带宽分配策略例如是: 为具有不同优先级的应用程序分配 不同比例的网络带宽 (该网络带宽分配策略例如称为第一网络带宽分配策 略)。 更为具体地, 例如: 为前台程序分配 80%的当前可用的网络带宽、 为用 户可见的程序分配 10%的当前可用的网络带宽、为后台服务分配 7%的当前可 用的网络带宽、 为隐藏的程序分配 3%的当前可用的网络带宽。
204,根据所述网络带宽分配比例,对所述当前可用的网络带宽进行划分, 确定与所述应用程序的优先级对应的网络带宽分配值;
例如: 终端当前可用的网络带宽为 200KB/S, 则按照上述第一网络带宽 分配策略, 确定出: 对应前台程序的网络带宽分配值为 160KB/S, 对应用户 可见的程序的网络带宽分配值为 20KB/S ,对应后台服务的网络带宽分配值为 14KB/S, 对应隐藏的程序的网络带宽分配值为 6KB/S。
205 , 根据所述网络带宽分配值, 为具有对应的优先级的应用程序分配网 络带宽。
具体地, 若终端所运行的对应各优先级的应用程序的数量为一个, 则将 该优先级对应的网络带宽分配值全部分配给该应用程序; 若终端所运行的对 应各优先级的应用程序的数量为多个,例如终端在后台同时运行 QQ和 MSN, 则终端可以将对应后台服务的 14KB/S的网络带宽,平均分配给 QQ和 MSN, 也可以令 QQ和 MSN共享 14KB/S的网络带宽, 并由 QQ和 MSN两者抢占 该共享的网络带宽。
进一步地, 结合本实施例中的第一网络带宽分配策略, 对上述实施例二 中的根据提升后的优先级为各应用程序分配网络带宽, 进行举例说明。
例如: 终端当前未运行有前台程序, 仅运行有用户可见的程序、 后台服 务和被隐藏的程序, 则根据第一网络带宽分配策略执行网络带宽分配时, 为 终端当前运行的用户可见的程序分配 160KB/S的网络带宽, 为后台服务分配 20KB/S的网络带宽, 并为隐藏的程序分配 14KB/S的网络带宽。
可以看出, 在该示例中, 通过对优先级进行顺次提升, 并根据提升后的 优先级为各应用程序分配网络带宽, 避免了大量网络带宽的浪费, 并使得优 先级较低的用户可见的程序能够获得大量网络带宽资源, 从而正常运行。
在上述实施例的基础上, 本实施例的网络带宽分配方法中, 提供基于另 一种网络带宽分配策略, 进行网络带宽分配的扩展说明。
图 3为本发明又一个实施例的网络带宽分配方法的流程示意图, 如图 3 所示, 该方法包括以下流程:
301 , 获取终端正在运行的且占用网络资源的应用程序的优先级;
302, 获取所述终端当前可用的网络带宽;
303 , 根据网络带宽分配策略(例如称为第二网络带宽分配策略), 按照 优先级由高至低的顺序, 为应用程序分配网络带宽, 并仅当为具有较高优先 级的应用程序所分配的网络带宽, 满足对应的预设期望带宽时, 为具有较低 优先级的应用程序分配剩余的网络带宽。
具体地, 第二网络带宽分配策略例如包括各优先级对应的期望带宽值。 终端首先将当前可用的网络带宽与最高优先级对应的期望带宽值进行比较, 若当前可用的网络带宽小于等于最高优先级对应的期望带宽值, 则将当前可 用的网络带宽全部分配给优先级最高的应用程序; 若当前可用的网络带宽大 于最高优先级对应的期望带宽值, 则根据最高优先级对应的期望带宽值为优 先级最高的应用程序分配网络带宽; 按照类似的方式, 将剩余的可用网络带 宽分配给其余优先级的应用程序, 其中: 剩余的可用网络带宽 =当前可用的网 络带宽-已分配的可用网络带宽 (即最高优先级对应的期望带宽值)。 例如: 前台程序对应的期望带宽值为 100KB/S, 用户可见的程序对应的 期望带宽值为 150KB/S,后台服务和被隐藏的程序对应的期望带宽值均为 120 KB/S, 终端检测到的当前可用的网络带宽为 200K B/S。 则终端为前台程序分 配 100KB/S的网络带宽, 并为用户可见的程序分配 100KB/S的网络带宽, 未 向后台服务和被隐藏的程序分配网络带宽。
根据本实施例的网络带宽分配方法, 由于在终端的当前可用的网络带宽 符合优先级较高的应用程序对应的期望带宽值时, 根据优先级较高的应用程 序对应的期望带宽值分配网络带宽, 充分保障优先级较高的应用程序的运行 流畅度, 提高用户体验。
进一步地, 结合本实施例中的第二网络带宽分配策略, 对上述实施例二 中的根据提升后的优先级为各应用程序分配网络带宽, 进行举例说明。
例如: 终端当前未运行有前台程序, 仅运行有用户可见的程序、 后台服 务和被隐藏的程序, 则根据第二网络带宽分配策略执行网络带宽分配时, 为 终端当前运行的用户可见的程序分配 150KB/S的网络带宽, 并为后台服务分 配 50KB/S的网络带宽。
可以看出, 在该示例中, 通过对优先级进行顺次提升, 并根据提升后的 优先级为各应用程序分配网络带宽, 避免了大量网络带宽的浪费, 并使得优 先级较低的用户可见的程序能够流畅运行。
图 4为本发明一个实施例的终端的结构示意图。 如图 4所示, 该终端包 括优先级获取模块 41、 网络带宽获取模块 42和网络带宽分配模块 43 , 其中: 序的优先级, 并提供给所述网络带宽分配模块 43;
网络带宽获取模块 42 , 用于获取所述终端当前可用的网络带宽, 并提供 给所述网络带宽分配模块 43 ;
网络带宽分配模块 43 , 用于根据所述终端的网络带宽分配策略和所述应 用程序的优先级, 将所述当前可用的网络带宽分配给所述应用程序。
本实施例的终端执行网络带宽分配的具体流程与上述任一实施例的网络 带宽分配方法相同, 故此处不再赘述。
根据本实施例的终端,由于根据需分配网络带宽的各应用程序的优先级, 终端当前可用的网络带宽, 以及预设的网络带宽分配策略, 为应用程序分配 网络带宽, 实现了根据用户需求为终端运行的应用程序合理分配网络带宽, 使得在网络环境较差的情况, 也可以根据用户的需求, 保障优先级较高的应 用程序正常运行, 避免了由于各应用程序自由抢占带宽而导致的应用程序均 无法正常运行, 或无法根据用户需求运行相应的应用程序的问题。
进一步地, 在上述实施例的终端中, 所述优先级获取模块具体用于: 根 程序进行分类; 根据预设的优先级列表中存储的应用程序类别与优先级的映 射关系, 确定所述应用程序的优先级。
根据本实施例的终端, 由于根据应用程序的运行状态, 动态确定应用程 序的优先级, 能够保障前台运行的应用程序运行流畅, 符合常规状态下的用 户需求。 而且, 通过釆用安卓系统中设置的用于管理内存的优先级列表, 使 得当执行本发明实施例的终端为釆用安卓系统的智能终端时, 无需额外设置 用于分配网络带宽的优先级列表, 有效节约了终端的系统资源。
进一步地, 在上述实施例的终端中, 所述优先级获取模块还用于: 若所 的优先级, 则对所述终端正在运行的、 优先级低于所述未对应的优先级的应 用程序, 顺次提升优先级, 以根据所述应用程序的提升后的优先级, 分配网 络带宽。
根据本实施例的终端, 通过执行上述优先级提升, 使得当终端未运行优 先级较高的应用程序时, 能够将网络带宽充分分配给终端所运行的较低优先 级的应用程序, 充分利用网络带宽, 避免因为优先级较高的应用程序保留网 络带宽而造成网络带宽浪费。
进一步地, 在上述实施例的终端中, 所述网络带宽分配策略具体为: 为 不同优先级的应用程序, 分配不同比例的网络带宽; 相应地, 所述网络带宽 分配模块具体用于: 根据网络带宽分配策略, 确定所述各应用程序的优先级 对应的网络带宽分配比例; 根据所述网络带宽分配比例, 对所述当前可用的 网络带宽进行划分, 确定与所述应用程序的优先级对应的网络带宽分配值; 以及根据所述网络带宽分配值, 为具有对应的优先级的应用程序分配网络带 宽。
进一步地, 在上述实施例的终端中, 所述网络带宽分配策略具体为: 按 照优先级由高至低的顺序, 为应用程序分配网络带宽, 并仅当为具有较高优 先级的应用程序所分配的网络带宽, 满足对应的预设期望带宽时, 为具有较 低优先级的应用程序分配剩余的网络带宽。
根据本实施例的终端, 由于在终端的当前可用的网络带宽符合优先级较 高的应用程序对应的期望带宽值时, 根据优先级较高的应用程序对应的期望 带宽值分配网络带宽, 充分保障优先级较高的应用程序的运行流畅度, 提高 用户体验。
图 5为本发明另一个实施例的终端的结构示意图。 如图 5所示, 该终端 包括处理器 51和存储器 52 , 其中:
存储器 52用于存储终端的应用程序与优先级的映射关系;
取所述终端当前可用的网络带宽; 并根据所述终端的网络带宽分配策略和所 述应用程序的优先级, 将所述当前可用的网络带宽分配给所述应用程序。
其中, 处理器 51例如釆用任意的中央处理器( Central Processing Unit,
CPU ) 来硬件实现; 存储器 52 例如釆用任意的只读存储器 (Read-Only Memory, ROM )或随机存取存 4诸器( Random Access Memory, RAM )等 来硬件实现。
本实施例的终端执行网络带宽分配的具体流程与上述任一实施例的网络 带宽分配方法相同, 故此处不再赘述。
根据本实施例的终端,由于根据需分配网络带宽的各应用程序的优先级, 终端当前可用的网络带宽, 以及预设的网络带宽分配策略, 为应用程序分配 网络带宽, 实现了根据用户需求为终端运行的应用程序合理分配网络带宽, 使得在网络环境较差的情况, 也可以根据用户的需求, 保障优先级较高的应 用程序正常运行, 避免了由于各应用程序自由抢占带宽而导致的应用程序均 无法正常运行, 或无法根据用户需求运行相应的应用程序的问题。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件 实现时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上 的一个或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和 通信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序 的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但 不限于: 计算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其 他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储 具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他 介质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是 使用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL )或者诸如红外线、 无线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么 同轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、 无线和微波之类的无 线技术包括在所属介质的定影中。 如本发明所使用的, 盘( Disk )和碟( disc ) 包括压缩光碟(CD )、 激光碟、 光碟、 数字通用光碟(DVD )、 软盘和蓝光光 碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面的 组合也应当包括在计算机可读介质的保护范围之内。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权 利 要 求 书
1、 一种网络带宽分配方法, 其特征在于, 包括:
获取终端正在运行的且占用网络资源的应用程序的优先级;
获取所述终端当前可用的网络带宽;
根据所述终端的网络带宽分配策略和所述应用程序的优先级, 将所述当 前可用的网络带宽分配给所述应用程序。
2、 根据权利要求 1所述的网络带宽分配方法, 其特征在于, 所述获取终 端正在运行的且占用网络资源的应用程序的优先级, 具体包括: 述应用程序进行分类;
根据预设的优先级列表中存储的应用程序类别与优先级的映射关系, 确 定所述应用程序的优先级。
3、 根据权利要求 2所述的网络带宽分配方法, 其特征在于, 所述根据预 设的优先级列表中存储的应用程序类别与优先级的映射关系, 确定所述应用 程序的优先级, 之后还包括: 序未对应的优先级, 则对所述终端正在运行的、 优先级低于所述未对应的优 先级的应用程序, 顺次提升优先级, 以根据所述应用程序的提升后的优先级, 分配网络带宽。
4、 根据权利要求 1-3任一所述的网络带宽分配方法, 其特征在于, 所述 网络带宽分配策略具体为: 为不同优先级的应用程序, 分配不同比例的网络 带宽; 相应地,
所述根据所述终端的网络带宽分配策略和所述应用程序的优先级, 将所 述当前可用的网络带宽分配给所述应用程序, 具体包括:
根据所述网络带宽分配策略, 确定所述各应用程序的优先级对应的网络 带宽分配比例;
根据所述网络带宽分配比例, 对所述当前可用的网络带宽进行划分, 确 定与所述应用程序的优先级对应的网络带宽分配值; 以及
根据所述网络带宽分配值, 为具有对应的优先级的应用程序分配网络带 宽。
5、 根据权利要求 1-3任一所述的网络带宽分配方法, 其特征在于, 所述 网络带宽分配策略具体为:
按照优先级由高至低的顺序, 为应用程序分配网络带宽, 并仅当为具有 较高优先级的应用程序所分配的网络带宽, 满足对应的预设期望带宽时, 为 具有较低优先级的应用程序分配剩余的网络带宽。
6、 一种终端, 其特征在于, 包括优先级获取模块、 网络带宽获取模块和 网络带宽分配模块, 其中: 程序的优先级, 并提供给所述网络带宽分配模块;
所述网络带宽获取模块, 用于获取所述终端当前可用的网络带宽, 并提 供给所述网络带宽分配模块;
所述网络带宽分配模块, 用于根据所述终端的网络带宽分配策略和所述 应用程序的优先级, 将所述当前可用的网络带宽分配给所述应用程序。
7、 根据权利要求 6所述的终端, 其特征在于, 所述优先级获取模块具体 所述应用程序进行分类; 根据预设的优先级列表中存储的应用程序类别与优 先级的映射关系, 确定所述应用程序的优先级。
8、 根据权利要求 7所述的终端, 其特征在于, 所述优先级获取模块还用 序未对应的优先级, 则对所述终端正在运行的、 优先级低于所述未对应的优 先级的应用程序, 顺次提升优先级, 以根据所述应用程序的提升后的优先级, 分配网络带宽。
9、 根据权利要求 6-8任一所述的终端, 其特征在于, 所述网络带宽分配 策略具体为: 为不同优先级的应用程序, 分配不同比例的网络带宽; 相应地, 所述网络带宽分配模块具体用于: 根据所述网络带宽分配策略, 确定所述各 应用程序的优先级对应的网络带宽分配比例; 根据所述网络带宽分配比例, 对所述当前可用的网络带宽进行划分, 确定与所述应用程序的优先级对应的 网络带宽分配值; 以及根据所述网络带宽分配值, 为具有对应的优先级的应 用程序分配网络带宽。
10、 根据权利要求 6-8任一所述的终端, 其特征在于, 所述网络带宽分 配策略具体为: 按照优先级由高至低的顺序, 为应用程序分配网络带宽, 并 仅当为具有较高优先级的应用程序所分配的网络带宽, 满足对应的预设期望 带宽时, 为具有较低优先级的应用程序分配剩余的网络带宽。
PCT/CN2013/081483 2012-08-14 2013-08-14 网络带宽分配方法及终端 WO2014026613A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13829266.9A EP2822236B1 (en) 2012-08-14 2013-08-14 Network bandwidth distribution method and terminal
US14/490,963 US20150019740A1 (en) 2012-08-14 2014-09-19 Network Bandwidth Allocation Method and Terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210288295.8A CN102791032B (zh) 2012-08-14 2012-08-14 网络带宽分配方法及终端
CN201210288295.8 2012-08-14

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/490,963 Continuation US20150019740A1 (en) 2012-08-14 2014-09-19 Network Bandwidth Allocation Method and Terminal

Publications (1)

Publication Number Publication Date
WO2014026613A1 true WO2014026613A1 (zh) 2014-02-20

Family

ID=47156309

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081483 WO2014026613A1 (zh) 2012-08-14 2013-08-14 网络带宽分配方法及终端

Country Status (4)

Country Link
US (1) US20150019740A1 (zh)
EP (1) EP2822236B1 (zh)
CN (1) CN102791032B (zh)
WO (1) WO2014026613A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059954A (zh) * 2016-05-27 2016-10-26 青岛海信电器股份有限公司 一种网络带宽调节的方法及装置
CN116302572A (zh) * 2023-05-19 2023-06-23 长通智能(深圳)有限公司 基于ai智能推荐的算力资源调度分配系统及方法

Families Citing this family (66)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102791032B (zh) * 2012-08-14 2016-08-03 华为终端有限公司 网络带宽分配方法及终端
CN103841052B (zh) * 2012-11-27 2017-03-08 中国科学院声学研究所 一种带宽资源分配系统与方法
CN103929375B (zh) * 2013-01-10 2018-04-20 腾讯科技(深圳)有限公司 带宽调配装置及方法
CN103096385B (zh) * 2013-01-25 2016-03-23 小米科技有限责任公司 一种流量控制的方法、装置及终端
US20150098390A1 (en) * 2013-10-04 2015-04-09 Vonage Network Llc Prioritization of data traffic between a mobile device and a network access point
US9350624B2 (en) * 2013-10-15 2016-05-24 Rawllin International Inc. Dynamic assignment of connection priorities for applications operating on a client device
CN103686874B (zh) * 2013-12-10 2017-02-15 清华大学 一种带宽分配方法
DE102014200226A1 (de) * 2014-01-09 2015-07-09 Bayerische Motoren Werke Aktiengesellschaft Zentrale Kommunikationseinheit eines Kraftfahrzeuges
CN103986715B (zh) * 2014-05-21 2017-10-03 海信集团有限公司 一种网络流量控制的方法及装置
US9736732B2 (en) * 2014-07-01 2017-08-15 Samsung Electronics Co., Ltd. System and method to dynamically manage application traffic by bandwidth apportioning on a communication device
CN104158751B (zh) * 2014-07-21 2019-03-05 惠州Tcl移动通信有限公司 一种流量控制方法及终端
CN104185305B (zh) * 2014-08-19 2018-03-16 惠州Tcl移动通信有限公司 一种带有优先级的应用连网方法及移动终端
CN104683985B (zh) * 2014-12-26 2018-01-30 苏州佳世达电通有限公司 资料传输方法
CN104734996B (zh) * 2015-04-07 2018-11-27 广东维沃软件技术有限公司 一种网络带宽分配方法及终端
EP3286966B1 (en) * 2015-04-23 2019-07-03 Telefonaktiebolaget LM Ericsson (publ) Resource reallocation
US9923965B2 (en) * 2015-06-05 2018-03-20 International Business Machines Corporation Storage mirroring over wide area network circuits with dynamic on-demand capacity
CN105208607B (zh) * 2015-08-25 2019-03-12 Oppo广东移动通信有限公司 终端网络数据传输的调度方法、装置及移动终端
US10756997B2 (en) 2015-09-28 2020-08-25 Cybrook Inc. Bandwidth adjustment for real-time video transmission
US10516892B2 (en) 2015-09-28 2019-12-24 Cybrook Inc. Initial bandwidth estimation for real-time video transmission
US10506257B2 (en) * 2015-09-28 2019-12-10 Cybrook Inc. Method and system of video processing with back channel message management
CN105357761A (zh) * 2015-10-23 2016-02-24 上海斐讯数据通信技术有限公司 一种基于无线密码的带宽分配方法及系统
US10177993B2 (en) 2015-11-25 2019-01-08 International Business Machines Corporation Event-based data transfer scheduling using elastic network optimization criteria
US9923784B2 (en) 2015-11-25 2018-03-20 International Business Machines Corporation Data transfer using flexible dynamic elastic network service provider relationships
US10581680B2 (en) 2015-11-25 2020-03-03 International Business Machines Corporation Dynamic configuration of network features
US9923839B2 (en) 2015-11-25 2018-03-20 International Business Machines Corporation Configuring resources to exploit elastic network capability
US10057327B2 (en) 2015-11-25 2018-08-21 International Business Machines Corporation Controlled transfer of data over an elastic network
US10216441B2 (en) 2015-11-25 2019-02-26 International Business Machines Corporation Dynamic quality of service for storage I/O port allocation
CN105893142A (zh) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 一种资源分配方法及装置
US10021547B2 (en) * 2016-01-25 2018-07-10 Htc Corporation Management for data transmission of applications
CN105721350B (zh) * 2016-03-04 2019-11-26 深圳市共进电子股份有限公司 一种智能分配带宽的方法及装置
EP3217628A1 (de) * 2016-03-08 2017-09-13 Siemens Aktiengesellschaft Betriebsverfahren für eine client-server-architektur, vorrichtung mit einer client-server-architektur und computerprogrammprodukt für ein betriebsverfahren für eine client-server-architektur
CN106059952A (zh) * 2016-04-29 2016-10-26 宇龙计算机通信科技(深圳)有限公司 一种应用带宽管理方法及装置
US11165715B2 (en) * 2016-06-14 2021-11-02 Maxell, Ltd. Communication control method
US10321291B2 (en) * 2016-06-28 2019-06-11 Veniam, Inc. Systems and methods for the flexible access and management of monitoring applications in a network of moving things including, for example, autonomous vehicles
CN106331084B (zh) * 2016-08-22 2019-06-25 深圳Tcl新技术有限公司 软件后台自适应升级方法及装置
CN106557291B (zh) * 2016-10-28 2019-10-15 努比亚技术有限公司 分屏处理方法及装置
CN106453147A (zh) * 2016-11-28 2017-02-22 北京小米移动软件有限公司 带宽分配方法、带宽分配装置和电子设备
CN106528298A (zh) * 2016-12-29 2017-03-22 努比亚技术有限公司 一种资源分配方法及装置
CN108306830B (zh) * 2017-01-11 2021-05-25 腾讯科技(深圳)有限公司 一种过载阈值的动态调整方法及装置
US10334659B2 (en) 2017-05-09 2019-06-25 Verizon Patent And Licensing Inc. System and method for group device access to wireless networks
CN107172489A (zh) * 2017-05-12 2017-09-15 深圳Tcl数字技术有限公司 电视应用软件刷新方法、电视及计算机可读存储介质
CN108934079B (zh) * 2017-05-27 2022-02-08 华为技术有限公司 资源调度方法、终端设备和网络侧设备
CN107580374B (zh) * 2017-08-14 2019-11-19 拉卡拉支付股份有限公司 一种蓝牙通信资源的调度方法、设备及存储介质
CN107656811A (zh) * 2017-09-12 2018-02-02 惠州Tcl移动通信有限公司 移动终端及存储器分配控制方法、及存储介质
CN107528796A (zh) * 2017-09-28 2017-12-29 上海盈联电信科技有限公司 基于智能条件判断的网路信息处理方法
CN107634962B (zh) * 2017-10-11 2019-06-18 Oppo广东移动通信有限公司 网络带宽的管理方法及相关产品
CN107612846A (zh) * 2017-11-01 2018-01-19 北京天创凯睿科技有限公司 一种业务数据自适应传输方法及装置
CN107948093A (zh) * 2017-11-01 2018-04-20 北京小米移动软件有限公司 调节终端设备中应用网速的方法及装置
CN108123837A (zh) * 2017-12-21 2018-06-05 努比亚技术有限公司 网络带宽分配方法、移动终端及计算机可读存储介质
CN108156093A (zh) * 2018-01-25 2018-06-12 中科边缘智慧信息科技(苏州)有限公司 适于低带宽弱连接环境的多应用数据传输方法和系统
CN108391288B (zh) * 2018-02-09 2021-09-07 维沃移动通信有限公司 一种优化通信业务质量的方法及移动终端
CN108270696A (zh) * 2018-03-23 2018-07-10 努比亚技术有限公司 网络带宽分配方法、移动终端及计算机存储介质
CN108834157A (zh) * 2018-04-27 2018-11-16 努比亚技术有限公司 网络带宽分配方法、移动终端及计算机可读存储介质
CN108762925A (zh) * 2018-05-24 2018-11-06 四川斐讯信息技术有限公司 一种存储设备应用程序的管理方法及系统
CN109039722B (zh) * 2018-07-20 2021-05-28 中电科新型智慧城市研究院有限公司 基于共同邻节点资源分配和朴素贝叶斯的链路预测方法
CN109684090A (zh) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 一种资源分配方法和装置
CN110011937A (zh) * 2019-02-26 2019-07-12 贵阳忆联网络有限公司 一种宽带资源动态分配方法及系统
CN110932893A (zh) * 2019-11-21 2020-03-27 深圳传音控股股份有限公司 一种带宽分配方法、装置、终端及计算机可读存储介质
CN112911709B (zh) * 2019-12-03 2023-04-07 深圳市万普拉斯科技有限公司 上行资源分配方法、装置、终端设备及可读存储介质
CN111711688B (zh) * 2020-06-16 2023-02-28 阿波罗智能技术(北京)有限公司 基于传输机的数据传输方法、装置、设备和存储介质
CN112039713B (zh) * 2020-09-09 2023-04-18 北京时信互联网络科技有限公司 一种满足用户需求的用于云计算的数据传输方法及系统
CN112134813A (zh) * 2020-09-22 2020-12-25 上海商米科技集团股份有限公司 一种基于应用进程优先级的带宽分配方法及电子设备
CN113676905B (zh) * 2021-08-13 2022-11-11 展讯通信(上海)有限公司 一种应用标识符确定方法、应用数据传输方法及相关产品
CN114679416A (zh) * 2022-02-10 2022-06-28 达闼机器人股份有限公司 一种机器人通信方法、系统、设备及存储介质
CN116709557B (zh) * 2022-11-18 2024-03-15 荣耀终端有限公司 业务处理方法、设备及存储介质
CN117472698B (zh) * 2023-12-27 2024-03-19 中诚华隆计算机技术有限公司 一种处理器带宽配置监控方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209107A (zh) * 2011-05-11 2011-10-05 奇智软件(北京)有限公司 一种智能限速方法和装置、一种下载系统
CN102239668A (zh) * 2008-10-03 2011-11-09 马来西亚微电子系统有限公司 在终端用户设备处为应用程序分配业务优先级或带宽的方法
CN102547417A (zh) * 2010-12-27 2012-07-04 康佳集团股份有限公司 一种网络电视根据软件模块进行带宽速度限制的方法
CN102577264A (zh) * 2009-06-29 2012-07-11 高通创锐讯有限公司 用于设置网络通信参数的技术
CN102791032A (zh) * 2012-08-14 2012-11-21 华为终端有限公司 网络带宽分配方法及终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084144A1 (en) * 2001-10-30 2003-05-01 Lipinski Greg J. Network bandwidth optimization method and system
US7039715B2 (en) * 2002-05-21 2006-05-02 Microsoft Corporation Methods and systems for a receiver to allocate bandwidth among incoming communications flows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102239668A (zh) * 2008-10-03 2011-11-09 马来西亚微电子系统有限公司 在终端用户设备处为应用程序分配业务优先级或带宽的方法
CN102577264A (zh) * 2009-06-29 2012-07-11 高通创锐讯有限公司 用于设置网络通信参数的技术
CN102547417A (zh) * 2010-12-27 2012-07-04 康佳集团股份有限公司 一种网络电视根据软件模块进行带宽速度限制的方法
CN102209107A (zh) * 2011-05-11 2011-10-05 奇智软件(北京)有限公司 一种智能限速方法和装置、一种下载系统
CN102791032A (zh) * 2012-08-14 2012-11-21 华为终端有限公司 网络带宽分配方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2822236A4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059954A (zh) * 2016-05-27 2016-10-26 青岛海信电器股份有限公司 一种网络带宽调节的方法及装置
CN106059954B (zh) * 2016-05-27 2019-08-02 青岛海信电器股份有限公司 一种网络带宽调节的方法及装置
CN116302572A (zh) * 2023-05-19 2023-06-23 长通智能(深圳)有限公司 基于ai智能推荐的算力资源调度分配系统及方法
CN116302572B (zh) * 2023-05-19 2023-08-01 长通智能(深圳)有限公司 基于ai智能推荐的算力资源调度分配系统及方法

Also Published As

Publication number Publication date
EP2822236A4 (en) 2015-02-18
CN102791032A (zh) 2012-11-21
EP2822236B1 (en) 2018-05-16
CN102791032B (zh) 2016-08-03
US20150019740A1 (en) 2015-01-15
EP2822236A1 (en) 2015-01-07

Similar Documents

Publication Publication Date Title
WO2014026613A1 (zh) 网络带宽分配方法及终端
CN107113290B (zh) 用于带宽管理的方法和系统
JP6001023B2 (ja) モバイル・デバイスのためのバッテリ電力管理
JP6290462B2 (ja) ネットワーク・アクセス可能なブロック・ストレージのための協調アドミッション制御
US10771533B2 (en) Adaptive communication control device
US9276864B1 (en) Dynamic network traffic throttling
US20170126583A1 (en) Method and electronic device for bandwidth allocation based on online media services
US9998531B2 (en) Computer-based, balanced provisioning and optimization of data transfer resources for products and services
EP2466824A1 (en) Service scheduling method and device
Liu et al. An economical and SLO-guaranteed cloud storage service across multiple cloud service providers
CN110166507B (zh) 多资源调度方法和装置
WO2014089976A1 (zh) 虚拟机分配方法及装置
CN112600761B (zh) 一种资源分配的方法、装置及存储介质
KR20150130384A (ko) 적응 데이터 동기화
US9817698B2 (en) Scheduling execution requests to allow partial results
CN112383600A (zh) 信息的处理方法、装置、计算机可读介质及电子设备
CN111857992A (zh) 一种Radosgw模块中线程资源分配方法和装置
US12068975B2 (en) Resource scheduling method and system, electronic device, computer readable storage medium
US11283723B2 (en) Technologies for managing single-producer and single consumer rings
US11354164B1 (en) Robotic process automation system with quality of service based automation
CN117608760A (zh) 应用于Kubernetes的云上应用混合部署方法
CN109862069B (zh) 消息处理方法和装置
CN113014408A (zh) 分布式系统及其管理方法
CN114675972B (zh) 基于积分算法的云网络资源弹性调度方法及系统
CN117056064A (zh) 资源分配方法、装置、服务器、存储介质和程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13829266

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013829266

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE