WO2014029234A1 - Traffic control method and terminal - Google Patents

Traffic control method and terminal Download PDF

Info

Publication number
WO2014029234A1
WO2014029234A1 PCT/CN2013/077717 CN2013077717W WO2014029234A1 WO 2014029234 A1 WO2014029234 A1 WO 2014029234A1 CN 2013077717 W CN2013077717 W CN 2013077717W WO 2014029234 A1 WO2014029234 A1 WO 2014029234A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
sub
terminal
data packet
downlink
Prior art date
Application number
PCT/CN2013/077717
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2014029234A1 publication Critical patent/WO2014029234A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/25Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface

Abstract

Disclosed is a traffic control method, configured to improve control efficiency. The method comprises: when traffic control is needed, adjusting an uplink rate of a terminal from a first uplink rate to a second uplink rate, the first uplink rate being different from the second uplink rate; and/or, adjusting a downlink rate of the terminal from a first downlink rate to a second downlink rate, the first downlink rate being different from the second downlink rate; and sending, on the basis of the second uplink rate, a data packet to be sent and/or receiving, on the basis of the second downlink rate, a data packet to be received. Also disclosed are another traffic control method and a terminal.

Description

一种流量控制方法及终端 技术领域  Flow control method and terminal
本发明涉及通信领域, 特别涉及一种流量控制方法及终端。 背景技术  The present invention relates to the field of communications, and in particular, to a flow control method and a terminal. Background technique
随着第三代移动通信技术(3G )牌照的发放, 国内 3G网络建设逐步 展开, 移动、 电信、 联通三大通讯运营商都已正式步入了 3G时代。 智能手 机、 平板电脑、 电子阅读器等移动智能终端的快速发展, 极大推动了移动 互联网业务的迅猛增长, 也给移动网络带来了巨大的数据流量压力。 对此, 国内运营商采用" 3G+WLAN"的解决方案, 在建设移动网络的同时, 开始大 规模部署无线局域网络(WLAN ), 以此来分担移动网络的数据承载压力。  With the issuance of third-generation mobile communication technology (3G) licenses, the construction of domestic 3G networks has gradually started. The three major operators of mobile, telecommunications and China Unicom have officially entered the 3G era. The rapid development of mobile intelligent terminals such as smart phones, tablets, and e-readers has greatly promoted the rapid growth of mobile Internet services and brought tremendous data traffic pressure to mobile networks. In this regard, domestic operators adopt the "3G+WLAN" solution, and at the same time as building a mobile network, they begin to deploy a large-scale wireless local area network (WLAN) to share the data carrying pressure of the mobile network.
近几年, 随着互联网络的广泛普及, 催生了一批又一批第三方应用的 专业开发人员, 丰富了智能终端的深度与广度, 促发了各种新型应用在智 能终端上的引入和发展。 除了常规的对互联网的浏览、 查询、 电子邮件等 应用类型以外, 在线视频、 在线游戏、 多线程文件传输协议(FTP ) 下载、 点对点(P2P )应用等多种新型的网络业务已不再是个人计算机(PC )的专 属功能。 各类第三方应用不断涌现, 凭借其酷炫的界面、 纷繁的业务类型 以及日益完善的平台兼容性, 深受广大中高端玩家的喜爱。  In recent years, with the widespread popularity of the Internet, a number of professional developers of third-party applications have been spawned, enriching the depth and breadth of smart terminals, and promoting the introduction of various new applications on smart terminals. development of. In addition to the usual types of Internet browsing, query, email, etc., online video, online games, multi-threaded file transfer protocol (FTP) downloads, peer-to-peer (P2P) applications, and many other new types of network services are no longer personal. The exclusive function of a computer (PC). A variety of third-party applications are emerging, with their cool interfaces, numerous business types, and increasingly sophisticated platform compatibility, which are popular among mid- to high-end players.
但任何事物均有其正反两面, 用户在享受高速数据下载的同时, 也会 因为某些应用的专有特性而导致智能终端整体性能下降。 以 P2P类型应用 来说, 由于其利用大量在线的客户端设备的种子资源而优化数据传输的能 力, 在高速下载的同时也同步进行种子资源数据上传, 这会导致终端设备 CPU资源的极大消耗。 在不加控制的情况下, 严重影响其他数据业务乃至 常规业务的正常的运行。 而现有技术中在进行 WLAN流量控制时, 都是由网络侧来进行控制, 无法根据不同终端的不同情况来进行流量控制, 从而对于终端来说控制效 率不高, 容易导致终端出现故障。 发明内容 But everything has its positive and negative sides. While users enjoy high-speed data downloads, the overall performance of smart terminals will also decline due to the proprietary features of certain applications. In the P2P type application, because it utilizes the seed resources of a large number of online client devices to optimize the data transmission capability, the seed resource data is simultaneously uploaded at the same time as the high-speed downloading, which causes the terminal device CPU resources to be greatly consumed. . Without control, it will seriously affect the normal operation of other data services and even regular services. In the prior art, when the WLAN flow control is performed, the network side controls the flow, and the flow control cannot be performed according to different situations of different terminals, so that the control efficiency is not high for the terminal, and the terminal is likely to be faulty. Summary of the invention
本发明实施例提供一种流量控制方法, 用于解决现有技术中无法从终 端侧控制流量, 导致对终端侧的控制效率低、 控制效果不佳的技术问题, 实现了提高终端侧控制效率的技术效果。  The embodiment of the invention provides a flow control method for solving the technical problem that the control flow cannot be controlled from the terminal side in the prior art, resulting in low control efficiency and poor control effect on the terminal side, and the control efficiency of the terminal side is improved. Technical effects.
一种流量控制方法, 应用于一处于无线局域网络中的终端, 所述方法 包括:  A flow control method is applied to a terminal in a wireless local area network, and the method includes:
在需要进行流量控制时, 将所述终端的上行速率由第一上行速率调整 为第二上行速率, 其中, 所述第一上行速率不同于所述第二上行速率; 和 / 或,  When the flow control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the second uplink rate; and/or,
将所述终端的下行速率由第一下行速率调整为第二下行速率, 其中, 所述第一下行速率不同于所述第二下行速率;  Adjusting the downlink rate of the terminal from the first downlink rate to the second downlink rate, where the first downlink rate is different from the second downlink rate;
基于所述第二上行速率发送待发送数据包和 /或基于所述第二下行速率 接收待接收数据包。  Transmitting a to-be-transmitted data packet based on the second uplink rate and/or receiving a to-be-received data packet based on the second downlink rate.
一种流量控制方法, 应用于一处于无线局域网络中的终端, 所述方法 包括:  A flow control method is applied to a terminal in a wireless local area network, and the method includes:
获得所述终端的 CPU占用率;  Obtaining a CPU usage of the terminal;
当所述终端的 CPU占用率不小于预设的 CPU占用率阈值时,判断是否 有数据传输业务正在占用所述终端的 CPU;  When the CPU usage of the terminal is not less than a preset CPU usage threshold, it is determined whether a data transmission service is occupying the CPU of the terminal;
当判断结果为是时, 对所述数据传输业务的传输速率进行调整。  When the judgment result is YES, the transmission rate of the data transmission service is adjusted.
一种终端, 所述终端处于无线局域网络中, 所述终端包括流量控制模 块, 所述流量控制模块包括:  A terminal, the terminal is in a wireless local area network, the terminal includes a flow control module, and the flow control module includes:
第一调整单元, 配置为在需要进行流量控制时, 将所述终端的上行速 率由第一上行速率调整为第二上行速率, 其中, 所述第一上行速率不同于 所述第二上行速率; a first adjusting unit, configured to: when the flow control is required, the uplink speed of the terminal The rate is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the second uplink rate;
第二调整单元, 配置为将所述终端的下行速率由第一下行速率调整为 第二下行速率, 其中, 所述第一下行速率不同于所述第二下行速率;  a second adjusting unit, configured to adjust a downlink rate of the terminal from a first downlink rate to a second downlink rate, where the first downlink rate is different from the second downlink rate;
控制单元, 配置为基于所述第二上行速率发送待发送数据包和 /或基于 所述第二下行速率接收待接收数据包。  And a control unit, configured to send the to-be-sent data packet based on the second uplink rate and/or receive the to-be-received data packet based on the second downlink rate.
一种终端, 所述终端处于无线局域网络中, 所述终端包括:  A terminal, the terminal is in a wireless local area network, and the terminal includes:
获耳 4莫块, 配置为获得所述终端的 CPU占用率;  Obtaining an ear block, configured to obtain a CPU usage of the terminal;
判断模块,配置为当所述终端的 CPU占用率不小于预设的 CPU占用率 阈值时, 判断是否有数据传输业务正在占用所述终端的 CPU;  The determining module is configured to determine whether a data transmission service is occupying the CPU of the terminal when the CPU usage of the terminal is not less than a preset CPU usage threshold;
流量控制模块, 配置为当判断结果为是时, 对所述数据传输业务的传 输速率进行调整。  The flow control module is configured to adjust a transmission rate of the data transmission service when the determination result is yes.
本发明实施例中的 WLAN流量控制方法包括:在需要进行流量控制时, 将所述终端的上行速率由第一上行速率调整为第二上行速率, 其中, 所述 第一上行速率不同于所述第二上行速率; 和 /或, 将所述终端的下行速率由 第一下行速率调整为第二下行速率, 其中, 所述第一下行速率不同于所述 第二下行速率; 基于所述第二上行速率发送待发送数据包和 /或基于所述第 二下行速率接收待接收数据包。 在需要进行流量控制时, 可以由用户自行 调整上行速率和下行速率, 或者也可以由系统自动调整上行速率和下行速 率, 从而使上下行速率更符合用户使用的实际情况, 提高了终端侧的控制 效率, 从而保证对终端侧的控制效果更好。 保证智能终端在 PS数据高速下 载同时, 不会因当前下载进程影响整机总体性能, 极大地改善了高端用户 对智能终端的用户体验。 附图说明  The WLAN traffic control method in the embodiment of the present invention includes: when the traffic control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the a second uplink rate; and/or, the downlink rate of the terminal is adjusted from a first downlink rate to a second downlink rate, where the first downlink rate is different from the second downlink rate; The second uplink rate transmits the to-be-sent data packet and/or receives the to-be-received data packet based on the second downlink rate. When the flow control is required, the user can adjust the uplink rate and the downlink rate by itself, or the system can automatically adjust the uplink rate and the downlink rate, so that the uplink and downlink rates are more in line with the actual situation of the user, and the terminal side control is improved. Efficiency, thus ensuring better control of the terminal side. It ensures that the intelligent terminal can download the PS data at high speed at the same time, and will not affect the overall performance of the whole machine due to the current download process, which greatly improves the user experience of the high-end user to the intelligent terminal. DRAWINGS
图 1为本发明实施例中一种流量控制方法的主要流程图; 图 2为本发明实施例中流量控制界面示意图; 1 is a main flowchart of a flow control method according to an embodiment of the present invention; 2 is a schematic diagram of a flow control interface according to an embodiment of the present invention;
图 3为本发明实施例中另一种流量控制方法的主要结构图;  3 is a main structural diagram of another flow control method according to an embodiment of the present invention;
图 4为本发明实施例中终端中流量控制模块的主要结构图;  4 is a main structural diagram of a flow control module in a terminal according to an embodiment of the present invention;
图 5为本发明实施例中终端的主要结构图。 具体实施方式  FIG. 5 is a main structural diagram of a terminal according to an embodiment of the present invention. detailed description
本发明实施例中的流量控制方法包括: 在需要进行流量控制时, 将所 述终端的上行速率由第一上行速率调整为第二上行速率, 其中, 所述第一 上行速率不同于所述第二上行速率; 和 /或, 将所述终端的下行速率由第一 下行速率调整为第二下行速率, 其中, 所述第一下行速率不同于所述第二 下行速率; 基于所述第二上行速率发送待发送数据包和 /或基于所述第二下 行速率接收待接收数据包。 在需要进行流量控制时, 可以由用户自行调整 上行速率和下行速率, 或者也可以由系统自动调整上行速率和下行速率, 从而使上下行速率更符合用户使用的实际情况, 提高了终端侧的控制效率, 从而保证对终端侧的控制效果更好。保证智能终端在 PS数据高速下载同时, 不会因当前下载进程影响整机总体性能, 极大地改善了高端用户对智能终 端的用户体验。  The flow control method in the embodiment of the present invention includes: when the flow control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the first And the second downlink rate is adjusted from the first downlink rate to the second downlink rate, where the first downlink rate is different from the second downlink rate; Sending a to-be-sent data packet and/or receiving a to-be-received data packet based on the second downlink rate. When the flow control is required, the user can adjust the uplink rate and the downlink rate by itself, or the system can automatically adjust the uplink rate and the downlink rate, so that the uplink and downlink rates are more in line with the actual situation of the user, and the terminal side control is improved. Efficiency, thus ensuring better control of the terminal side. Ensure that the intelligent terminal downloads the PS data at the same time, and does not affect the overall performance of the whole machine due to the current download process, which greatly improves the user experience of the high-end user to the intelligent terminal.
参见图 1 , 为本发明实施例中的一种流量控制方法的主要流程, 所述方 法可以应用于一处于无线局域网络中的终端中。 较佳的, 本发明实施例中 所述的终端可以是指智能终端。 所述方法的主要流程如下步驟:  Referring to FIG. 1, which is a main flow of a flow control method according to an embodiment of the present invention, the method can be applied to a terminal in a wireless local area network. Preferably, the terminal in the embodiment of the present invention may refer to an intelligent terminal. The main process of the method is as follows:
步驟 101 : 在需要进行流量控制时, 将所述终端的上行速率由第一上行 速率调整为第二上行速率, 其中, 所述第一上行速率不同于所述第二上行 速率。  Step 101: When the flow control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the second uplink rate.
其中, 需要进行流量控制的时机可以由用户决定, 例如可以是开机时, 或者可以是在有数据需要传输时, 或者也可以是其他时机。  The timing of the need for flow control may be determined by the user, for example, when the device is powered on, or may be when data needs to be transmitted, or may be other timings.
在需要进行流量控制时, 用户可以进入所述终端的流量控制界面, 在 所述流量控制界面中, 可以为用户提供多个选项, 例如, 可供用户选择的 上行速率的选项有 128kbps、 256kbps, 384kbps 54Mbps, 等等, 可供 用户选择的下行速率的选项有 384kbps、 512kbps, 1Mbps 54Mbps,When flow control is required, the user can enter the flow control interface of the terminal, In the flow control interface, multiple options can be provided for the user. For example, the options for the uplink rate selectable by the user are 128 kbps, 256 kbps, 384 kbps, 54 Mbps, etc., and the options for the downlink rate selectable by the user are 384 kbps, 512 kbps. , 1Mbps 54Mbps,
108Mbps, 等等, 具体提供的速率可以由终端自行根据具体情况进行设定, 或可以在所述终端出厂时即设定好。例如,一种可能的流量设置界面如图 2 所示, 在图 2中, 用户选择了上行速率为 128kbps, 下行速率为 384kpbs, 在选择完毕后可以点击其中的 "确定" 按键, 则选择可以生效。 108Mbps, etc., the specific rate can be set by the terminal according to the specific situation, or can be set when the terminal is shipped from the factory. For example, a possible traffic setting interface is shown in Figure 2. In Figure 2, the user selects an uplink rate of 128 kbps and a downlink rate of 384 kpbs. After selecting the button, you can click the "OK" button to select it. .
其中, 在用户进行流量设定之前, 所述终端可以有预设有默认的上行 速率和下行速率, 即所述第一上行速率和所述第二下行速率, 设置后的上 行速率为所述第二上行速率, 设置后的下行速率为所述第二下行速率。  The terminal may have a default uplink rate and a downlink rate, that is, the first uplink rate and the second downlink rate, and the set uplink rate is the first The second uplink rate, the set downlink rate is the second downlink rate.
步驟 102: 将所述终端的下行速率由第一下行速率调整为第二下行速 率, 其中, 所述第一下行速率不同于所述第二下行速率。  Step 102: Adjust a downlink rate of the terminal from a first downlink rate to a second downlink rate, where the first downlink rate is different from the second downlink rate.
本发明实施例中, 用户可以同时设定上行速率和下行速率, 或者也可 以只设定上行速率, 或者也可以只设定下行速率, 具体可以由用户自行决 定。  In the embodiment of the present invention, the user may set the uplink rate and the downlink rate at the same time, or may set only the uplink rate, or may only set the downlink rate, which may be determined by the user.
其中, 如果用户认为可以增加数据上传的速度, 则设置的所述第二上 行速率可以大于所述第一上行速率, 如果用户认为可以降低数据上传的速 度, 则设置的所述第二上行速率可以小于所述第一上行速率;  If the user thinks that the speed of data uploading can be increased, the second uplink rate that is set may be greater than the first uplink rate. If the user thinks that the speed of data uploading can be reduced, the second uplink rate that is set may be Less than the first uplink rate;
如果用户认为可以增加数据下载的速度, 则设置的所述第二下行速率 可以大于所述第一下行速率, 如果用户认为可以降低数据下载的速度, 则 设置的所述第二下行速率可以小于所述第一下行速率。  If the user thinks that the speed of data downloading can be increased, the second downlink rate that is set may be greater than the first downlink rate. If the user thinks that the speed of data downloading can be reduced, the second downlink rate that is set may be smaller than The first downlink rate.
步驟 103: 基于所述第二上行速率发送待发送数据包和 /或基于所述第 二下行速率接收待接收数据包。  Step 103: Send a to-be-sent data packet based on the second uplink rate and/or receive a to-be-receive data packet based on the second downlink rate.
在用户将上行速率和下行速率设置完毕且生效后, 则所述终端在上传 数据时需要根据设置后的所述第二上行速率进行上传, 在下载数据时需要 根据设置后的所述第二下载速率进行下载。 After the user sets the uplink rate and the downlink rate and takes effect, the terminal needs to upload according to the set second uplink rate when uploading data, and needs to download data. The download is performed according to the second download rate after the setting.
其中, 基于所述第二下行速率接收待接收数据包, 具体可以包括: 当所述无线局域网络侧的网络下行速率大于所述第二下行速率时, 由 一框架模块接收所述待接收数据包, 并将所述待接收数据包发送至所述终 端中的流量控制模块, 通过所述流量控制模块将所述待接收数据包进行拆 分, 获得与所述第二下行速率匹配的至少两个子数据包;  The receiving, by the frame module, the to-be-received data packet, when the network downlink rate of the WLAN is greater than the second downlink rate, Transmitting the to-be-received data packet to the traffic control module in the terminal, and the traffic control module splits the to-be-received data packet to obtain at least two sub-matches with the second downlink rate. data pack;
通过所述流量控制模块将所述至少两个子数据包依次发送至所述终端 中的界面提供模块; 其中, 在发送所述子数据包的过程中, 在接收到所述 界面提供模块反馈的关于接收到上一个子数据包的子响应信息后再发送下 一个子数据包;  And sending, by the flow control module, the at least two sub-data packets to the interface providing module in the terminal; wherein, in the process of sending the sub-data packet, receiving the feedback from the interface providing module Receiving the sub-response information of the previous sub-packet and then transmitting the next sub-packet;
通过所述流量控制模块将接收到的所述界面提供模块反馈的与所述至 少两个子数据包对应的至少两个子响应信息进行存储;  And storing, by the flow control module, at least two sub-response information corresponding to the at least two sub-data packets that are fed back by the interface providing module;
基于所述至两个子响应信息, 通过所述流量控制模块获得一条第一响 应信息;  And obtaining, by the flow control module, a first response information based on the two sub-response information;
通过所述流量控制模块将所述第一响应信息发送至所述无线局域网 络。 即通过所述流量控制模块将所述第一响应信息发送至所述框架模块, 由所述框架模块将所述第一响应信息发送至所述无线局域网络。  The first response information is sent to the wireless local area network by the flow control module. That is, the first response information is sent to the framework module by the flow control module, and the first response information is sent by the framework module to the wireless local area network.
本发明实施例中, 所述框架模块具体可以是框架层( Framework )。 例如, 如果终端需要下载数据, 可以由所述框架模块从网络侧获得数 据, 再将获得的数据发送至所述流量控制模块。 首先确定网络侧的下行速 率, 例如网络侧的网络下行速率为第五下行速率, 而设定的所述终端的下 行速率为所述第二下行速率, 所述第二下行速率小于所述第五下行速率。 例如, 在单位时间内所述框架模块从网络侧获得了第一数据包, 并将所述 第一数据包发送至所述流量控制模块, 则所述流量控制模块可以将所述第 一数据包进行拆分, 可以将其拆分为至少两个子数据包, 其中每个子数据 包的容量可以均小于所述第二下行速率在单位时间内所对应的数据包的容 量。 In the embodiment of the present invention, the framework module may specifically be a framework layer. For example, if the terminal needs to download data, data can be obtained from the network side by the framework module, and the obtained data is sent to the flow control module. Determining the downlink rate of the network side, for example, the network downlink rate is the fifth downlink rate, and the set downlink rate of the terminal is the second downlink rate, and the second downlink rate is smaller than the fifth Downstream rate. For example, the unit module obtains the first data packet from the network side in a unit time, and sends the first data packet to the flow control module, where the flow control module may use the first data packet. Split, you can split it into at least two sub-packets, each of which is sub-data The capacity of the packet may be smaller than the capacity of the data packet corresponding to the second downlink rate in a unit time.
例如, 所述网络侧的所述第五下行速率为 4Mbps, 而为所述终端设定 的所述第二下行速率为 2Mbps, 确定所述第二下行速率小于所述第五下行 速率。在单位时间内接收到所述第一数据包,所述第一数据包的容量为 4M, 则可以将所述第一数据包进行拆分, 需要使拆分后的每个子数据包的容量 均小于与所述第二下行速率在单位时间内对应的数据包的容量, 本实施例 中即需要使拆分后的每个子数据包的容量均不大于 2M。  For example, the fifth downlink rate on the network side is 4 Mbps, and the second downlink rate set for the terminal is 2 Mbps, and the second downlink rate is determined to be smaller than the fifth downlink rate. Receiving the first data packet in a unit time, the capacity of the first data packet is 4M, the first data packet may be split, and the capacity of each sub-packet after splitting needs to be The capacity of the data packet corresponding to the second downlink rate is less than 2M. In this embodiment, the capacity of each sub-packet after the splitting is not greater than 2M.
较佳的, 在拆分时为了节约步驟, 可以尽量减少拆分次数, 即尽量减 少子数据包的数量, 则本实施例中可以将所述第一数据包拆分为两个子数 据包, 每个子数据包的容量均为 2M。  Preferably, in the splitting, in order to save the steps, the number of splits may be minimized, that is, the number of sub-packets is minimized. In this embodiment, the first data packet may be split into two sub-packets, each Each sub-packet has a capacity of 2M.
或者, 也可以按照其它方式对所述第一数据包进行拆分, 例如也可以 将所述第一数据包拆分为 4个子数据包, 每个子数据包的容量均为 1M, 或 者也可以将所述第一数据包拆分为 3 个子数据包, 其中两个子数据包的容 量为 1M, 第三个子数据包的容量为 2M。 总之, 只要拆分后每个子数据包 的容量不大于 2M即可。  Alternatively, the first data packet may be split according to other manners. For example, the first data packet may be split into four sub-data packets, each of which has a capacity of 1 M, or may be The first data packet is split into three sub-packets, wherein the capacity of two sub-packets is 1M, and the capacity of the third sub-packet is 2M. In short, as long as the capacity of each sub-packet after splitting is not more than 2M.
例如, 本实施例中将所述第一数据包拆分为了第一子数据包和第二子 数据包, 所述第一子数据包和所述第二子数据包的容量均为 2M。 拆分完毕 后, 可以先将所述第一子数据包发送给所述终端的界面提供模块, 例如可 以是应用处理器( AP ),在接收到所述界面提供模块反馈的第一子响应信息 后, 可以先将所述第一子响应信息进行存储, 并再将所述第二子数据包发 送给所述界面提供模块。 在接收到所述界面提供模块反馈的第二子响应信 息后, 可以将所述第二子响应消息也进行存储, 且所述终端可以将所述第 二子响应信息及所述第一子响应信息进行组合, 可以将其组合为一条第一 响应信息, 并可以将所述第一响应信息发送至所述网络侧。 具体可以是, 所述终端中的流量控制模块在将所述第二子响应信息和所述第一子响应信 息组合为所述第一响应信息后, 可以将所述第一响应信息发送至所述框架 模块, 由所述框架模块将所述第一响应信息发送至所述网络侧。 For example, in this embodiment, the first data packet is split into a first sub-data packet and a second sub-data packet, and the capacity of the first sub-data packet and the second sub-data packet are both 2M. After the splitting is completed, the first sub-data packet may be sent to the interface providing module of the terminal, for example, may be an application processor (AP), and receiving the first sub-response information fed back by the interface providing module. Afterwards, the first sub-response information may be first stored, and the second sub-data packet may be sent to the interface providing module. After receiving the second sub-response information fed back by the interface providing module, the second sub-response message may also be stored, and the terminal may use the second sub-response information and the first sub-response The information is combined and can be combined into a first response message, and the first response information can be sent to the network side. Specifically, After the second sub-response information and the first sub-response information are combined into the first response information, the flow control module in the terminal may send the first response information to the frame module. The first response information is sent by the framework module to the network side.
即, 对于所述网络侧来说, 接收到反馈的时间进行了延迟, 速率的公 式为路程 /时长, 在路程不变的情况下将时长进行了延长, 相当于降低了下 行速率。  That is, for the network side, the time for receiving the feedback is delayed, and the formula of the rate is the path/time length, and the duration is extended when the distance is unchanged, which is equivalent to lowering the downlink rate.
本发明实施例中, 基于所述第二上行速率发送待发送数据包的步驟可 以包括:  In the embodiment of the present invention, the step of sending a data packet to be sent based on the second uplink rate may include:
通过所述终端中的所述流量控制模块获得待发送的第二数据包。  Obtaining, by the flow control module in the terminal, a second data packet to be sent.
通过所述流量控制模块判断所述第二数据包的容量是否大于所述第二 上行速率在单位时间内所对应的数据包的容量。 所述流量控制模块可以将 所述第二数据包发送至所述终端中的所述界面提供模块, 通过所述界面提 供模块的反馈确定所述第二数据包的容量是否大于所述第二上行速率在单 位时间内所对应的数据包的容量。  And determining, by the flow control module, whether the capacity of the second data packet is greater than a capacity of the data packet corresponding to the second uplink rate in a unit time. The flow control module may send the second data packet to the interface providing module in the terminal, and determine, by the feedback of the interface providing module, whether the capacity of the second data packet is greater than the second uplink The capacity of the packet corresponding to the rate in unit time.
当判断结果为是时, 通过所述流量控制模块将所述第二数据包拆分为 至少两个与所述第二上行速率对应的子数据包。  When the determination result is yes, the second data packet is split by the flow control module into at least two sub-packets corresponding to the second uplink rate.
通过所述流量控制模块将拆分后的子数据包依次发送至所述网络侧。 即, 所述流量控制模块将拆分后的子数据包依次发送至所述框架模块, 再 由所述框架模块将拆分后的子数据包依次发送至所述网络侧。  The split sub-packets are sequentially sent to the network side by the flow control module. That is, the flow control module sequentially transmits the split sub-packets to the frame module, and the frame module sequentially transmits the split sub-packets to the network side.
例如, 如果终端需要上传数据, 可以先获得待上传的数据。 首先确定 为所述终端设定的上行速率, 例如为所述终端设定的上行速率为所述第二 上行速率。 例如, 在单位时间内通过所述流量控制模块获得了第二数据包, 可以先判断所述第二数据包的容量是否大于所述第二上行速率在单位时间 内所对应的数据包的容量。 如果判断确定所述第二数据包的容量大于所述 第二上行速率在单位时间内所对应的数据包的容量, 则可以将所述第二数 据包进行拆分, 可以将其拆分为至少两个子数据包, 其中每个子数据包的 容量可以均小于所述第二上行速率在单位时间内所对应的数据包的容量。 例如, 为所述终端设定的所述第二上行速率为 2Mbps。 获得第二数据包, 所述第二数据包的容量为 4M, 则可以将所述第二数据包进行拆分, 需要使 拆分后的每个子数据包的容量均小于与所述第二上行速率在单位时间内对 应的数据包的容量, 本实施例中即需要使拆分后的每个子数据包的容量均 不大于 2M。 For example, if the terminal needs to upload data, it can first obtain the data to be uploaded. The uplink rate set for the terminal is first determined, for example, the uplink rate set for the terminal is the second uplink rate. For example, the second data packet is obtained by the flow control module in a unit time, and the capacity of the second data packet may be determined to be greater than the capacity of the data packet corresponding to the second uplink rate in a unit time. If it is determined that the capacity of the second data packet is greater than the capacity of the data packet corresponding to the second uplink rate in a unit time, the second number may be According to the packet splitting, it can be split into at least two sub-packets, wherein the capacity of each sub-packet can be smaller than the capacity of the data packet corresponding to the second uplink rate in a unit time. For example, the second uplink rate set for the terminal is 2 Mbps. Obtaining a second data packet, where the capacity of the second data packet is 4M, the second data packet may be split, and the capacity of each sub-packet after splitting needs to be smaller than the second uplink. The capacity of the corresponding data packet in the unit time is required. In this embodiment, the capacity of each sub-packet after the splitting is required to be no more than 2M.
较佳的, 在拆分时为了节约步驟, 可以尽量减少拆分次数, 即尽量减 少子数据包的数量, 则本实施例中可以将所述第二数据包拆分为两个子数 据包, 每个子数据包的容量均为 2M。  Preferably, in the splitting, in order to save the steps, the number of splits may be minimized, that is, the number of sub-packets is minimized. In this embodiment, the second data packet may be split into two sub-packets, each Each sub-packet has a capacity of 2M.
或者, 也可以按照其它方式对所述第二数据包进行拆分, 例如也可以 将所述第二数据包拆分为 4个子数据包, 每个子数据包的容量均为 1M, 或 者也可以将所述第二数据包拆分为 3 个子数据包, 其中两个子数据包的容 量为 1M, 第三个子数据包的容量为 2M。 总之, 只要拆分后每个子数据包 的容量不大于 2M即可。  Alternatively, the second data packet may be split according to other manners. For example, the second data packet may be split into four sub-data packets, each of which has a capacity of 1 M, or may be The second data packet is split into three sub-packets, wherein the capacity of two sub-packets is 1M, and the capacity of the third sub-packet is 2M. In short, as long as the capacity of each sub-packet after splitting is not more than 2M.
例如, 本实施例中将所述第二数据包拆分为了第一子数据包和第二子 数据包, 所述第一子数据包和所述第二子数据包的容量均为 2M。 拆分完毕 后, 可以先将所述第一子数据包发送给所述框架模块, 由所述框架模块发 送至所述网络侧, 在接收到所述网络侧反馈的第三子响应信息后, 再将所 述第二子数据包发送给所述框架模块, 由所述框架模块发送至所述网络侧。 即可以将拆分后的子数据包依次发送给所述网络侧。  For example, in this embodiment, the second data packet is split into a first sub-packet and a second sub-packet, and the capacity of the first sub-packet and the second sub-packet are both 2M. After the splitting is completed, the first sub-data packet may be sent to the frame module, and sent by the frame module to the network side, after receiving the third sub-response information fed back by the network side, And sending the second sub-packet to the framework module, and sending, by the framework module, to the network side. That is, the split sub-packets can be sequentially sent to the network side.
参见图 3 , 本发明实施例还提供一种流量控制方法, 所述方法可以应用 于一处于无线局域网络中的终端。 较佳的, 本发明实施例中的所述终端可 以是指智能终端。 所述方法的主要流程如下步驟:  Referring to FIG. 3, an embodiment of the present invention further provides a flow control method, where the method can be applied to a terminal in a wireless local area network. Preferably, the terminal in the embodiment of the present invention may refer to an intelligent terminal. The main process of the method is as follows:
步驟 301 : 获得所述终端的 CPU占用率。 可以首先获得所述终端的中央处理器(CPU ) 占用率, 以判断所述终 端的 CPU占用率是否过大, 从而确定是否要进行流量控制。 Step 301: Obtain a CPU usage of the terminal. The central processor (CPU) occupancy rate of the terminal may be first obtained to determine whether the CPU usage of the terminal is too large, thereby determining whether flow control is to be performed.
步驟 302:当所述终端的 CPU占用率不小于预设的 CPU占用率阈值时, 判断是否有数据传输业务正在占用所述终端的 CPU。  Step 302: When the CPU usage of the terminal is not less than a preset CPU usage threshold, determine whether a data transmission service is occupying the CPU of the terminal.
本发明实施例中,可以预先设置有一 CPU占用率阈值,所述 CPU占用 率阈值可以是根据所述终端的具体情况预先设定, 用以保证所述终端能够 正常工作。 因如果所述终端的 CPU占用率过大, 可能会导致所述终端 CPU 资源的极大消耗。 在不加控制的情况下, 可能会严重影响其他数据业务乃 至常规业务的正常的运行。  In the embodiment of the present invention, a CPU usage threshold may be preset, and the CPU usage threshold may be preset according to the specific situation of the terminal, to ensure that the terminal can work normally. If the CPU usage of the terminal is too large, the CPU resources of the terminal may be greatly consumed. Without control, it may seriously affect the normal operation of other data services and even regular services.
如果所述终端当前的 CPU占用率不小于所述 CPU占用率阈值,则可以 继续判断在所述终端中是否有数据传输业务正在占用所述终端的 CPU。  If the current CPU usage of the terminal is not less than the CPU usage threshold, it may continue to determine whether a data transmission service is occupying the CPU of the terminal in the terminal.
其中, 判断在所述终端中是否有数据传输业务占用了所述终端的 CPU 的一种方法可以是: 可以判断所述数据传输业务的 CPU占用率, 如果所述 数据传输业务的 CPU占用率大于 0, 则说明所述终端中有数据传输业务。  The method for determining whether the data transmission service occupies the CPU of the terminal in the terminal may be: determining the CPU usage of the data transmission service, if the CPU usage of the data transmission service is greater than 0, indicating that there is a data transmission service in the terminal.
步驟 303: 当判断结果为是时,对所述数据传输业务的传输速率进行调 整。  Step 303: When the judgment result is yes, adjust the transmission rate of the data transmission service.
如果判断确定所述终端中有数据传输业务, 则可以对所述数据传输业 务的上行速率和 /或下行速率进行调整。  If it is determined that there is a data transmission service in the terminal, the uplink rate and/or the downlink rate of the data transmission service may be adjusted.
较佳的, 本发明实施例中可以优先调整所述终端中的上行速率, 因为 上传数据相较于下载数据更占用 CPU。  Preferably, in the embodiment of the present invention, the uplink rate in the terminal may be preferentially adjusted, because the uploaded data is more CPU-intensive than the downloaded data.
例如, 如果所述终端中既有上传数据的业务也有下载数据的业务, 则 可以首先调整上行速率。 例如, 如果所述终端当前的上行速率为所述第三 上行速率, 则可以将其调整为所述第四上行速率, 所述第三上行速率大于 所述第四上行速率。 在将所述第三上行速率调整为所述第四上行速率后, 可以再次获得所述终端当前的 CPU占用率,如果所述终端当前的 CPU占用 率小于所述 CPU占用率阈值, 则无需再对上行速率或下行速率进行调整, 如果所述终端当前的 CPU占用率仍然不小于所述 CPU占用率阈值,则可以 继续调整上行速率或下行速率。 For example, if the terminal has both a service for uploading data and a service for downloading data, the uplink rate may be adjusted first. For example, if the current uplink rate of the terminal is the third uplink rate, it may be adjusted to the fourth uplink rate, where the third uplink rate is greater than the fourth uplink rate. After the third uplink rate is adjusted to the fourth uplink rate, the current CPU usage of the terminal may be obtained again, if the current CPU usage of the terminal is used. If the rate is less than the CPU usage threshold, the uplink rate or the downlink rate is not required to be adjusted. If the current CPU usage of the terminal is still not less than the CPU usage threshold, the uplink rate or downlink rate can be continuously adjusted.
本发明实施例中, 如果所述终端的 CPU 占用率一直不小于所述 CPU 占用率阈值, 则可以一直调整上行速率, 直到将上行速率调整为 0之后, 如果所述终端的 CPU占用率还是不小于所述 CPU占用率阈值,则可以调整 下行速率;或者,如果所述终端的 CPU占用率一直不小于所述 CPU占用率 阈值, 则可以一直调整下行速率, 直到将下行速率调整为 0之后, 如果所 述终端的 CPU占用率还是不小于所述 CPU占用率阈值,则可以调整上行速 率; 或者, 如果所述终端的 CPU占用率一直不小于所述 CPU占用率阈值, 可以任意选择是调整上行速率或是下行速率, 例如可以调整一次上行速率 之后, 下次调整下行速率, 或者例如可以在一次调整中既调整上行速率又 调整下行速率。 总之, 调整方式可以多样, 具体可以任意选择, 或者可以 在出厂时进行设定。  In the embodiment of the present invention, if the CPU usage of the terminal is not less than the CPU usage threshold, the uplink rate may be adjusted until the uplink rate is adjusted to 0, if the CPU usage of the terminal is still not If the CPU usage of the terminal is not less than the CPU usage threshold, the downlink rate may be adjusted until the downlink rate is adjusted to 0. If the CPU usage of the terminal is not less than the CPU usage threshold, the uplink rate may be adjusted. Alternatively, if the CPU usage of the terminal is not less than the CPU usage threshold, the uplink may be adjusted arbitrarily. The rate or the downlink rate, for example, after adjusting the uplink rate, adjusting the downlink rate next time, or for example, adjusting the uplink rate and adjusting the downlink rate in one adjustment. In short, the adjustment method can be varied, and the specific adjustment can be arbitrarily selected, or can be set at the factory.
参见图 4, 本发明实施例提供一种终端, 所述终端可以处于无线局域网 络中, 所述终端可以包括一流量控制模块, 所述流量控制模块可以包括第 一调整单元 401、 第二调整单元 402和控制单元 403。 本发明实施例中, 所 述流量控制模块具体可以是数据流量控制层 (DFCL , Data Flux Control Layer )。  Referring to FIG. 4, an embodiment of the present invention provides a terminal, where the terminal may be in a wireless local area network, the terminal may include a flow control module, and the flow control module may include a first adjustment unit 401 and a second adjustment unit. 402 and control unit 403. In the embodiment of the present invention, the flow control module may be a data flow control layer (DFCL, Data Flux Control Layer).
第一调整单元 401 可以配置为在需要进行流量控制时, 将所述终端的 上行速率由第一上行速率调整为第二上行速率, 其中, 所述第一上行速率 不同于所述第二上行速率。  The first adjusting unit 401 may be configured to adjust an uplink rate of the terminal from a first uplink rate to a second uplink rate, where the first uplink rate is different from the second uplink rate. .
第二调整单元 402可以配置为将所述终端的下行速率由第一下行速率 调整为第二下行速率, 其中, 所述第一下行速率不同于所述第二下行速率。  The second adjusting unit 402 may be configured to adjust a downlink rate of the terminal from a first downlink rate to a second downlink rate, where the first downlink rate is different from the second downlink rate.
所述终端还可以包括一所述界面提供模块, 其可以配置为为用户提供 操作界面,以供用户通过所述操作界面进行上行速率和 /或下行速率的设置。 所述界面提供模块可以以人机接口 (MMI ) 的形式来实现。 例如, 所述界 面提供模块可以是 AP。 The terminal may further include an interface providing module, which may be configured to provide a user The operation interface is provided for the user to set the uplink rate and/or the downlink rate through the operation interface. The interface providing module can be implemented in the form of a human machine interface (MMI). For example, the interface providing module may be an AP.
控制单元 403可以配置为基于所述第二上行速率发送待发送数据包和 / 或基于所述第二下行速率接收待接收数据包。  Control unit 403 can be configured to transmit a to-be-sent packet based on the second uplink rate and/or to receive a to-be-received packet based on the second downlink rate.
控制单元 403 具体可以配置为: 当所述无线局域网络侧的网络下行速 率大于所述第二下行速率时, 将所述待接收数据包进行拆分, 获得与所述 第二下行速率匹配的至少两个子数据包; 将所述至少两个子数据包依次发 送至所述终端中的界面提供模块; 其中, 在发送所述子数据包的过程中, 在接收到所述界面提供模块反馈的关于接收到上一个子数据包的子响应信 息后再发送下一个子数据包; 将接收到的所述界面提供模块反馈的与所述 至少两个子数据包对应的至少两个子响应信息进行存储; 基于所述至两个 子响应信息, 获得一条第一响应信息; 将所述第一响应信息发送至所述无 线局域网络。  The control unit 403 may be configured to: when the network downlink rate of the WLAN is greater than the second downlink rate, split the to-be-received data packet to obtain at least the second downlink rate matching Two sub-packets; the at least two sub-packets are sequentially sent to the interface providing module in the terminal; wherein, in the process of sending the sub-packets, receiving the feedback provided by the interface providing module And sending the next sub-packet to the sub-response information of the previous sub-packet; storing the received at least two sub-response information corresponding to the at least two sub-packets fed back by the interface providing module; Referring to the two sub-response information, obtaining a first response message; and transmitting the first response information to the WLAN.
本发明实施例中, 拆分后的每个子数据包的容量均不大于所述第二下 行速率在单位时间内所对应的数据包的容量。  In the embodiment of the present invention, the capacity of each sub-packet after splitting is not greater than the capacity of the data packet corresponding to the second downlink rate in a unit time.
控制单元 403 具体可以配置为获得待发送的第二数据包; 判断所述第 二数据包的容量是否大于所述第二上行速率在单位时间内所对应的数据包 的容量; 当判断结果为是时, 将所述第二数据包拆分为至少两个与所述第 二上行速率对应的子数据包; 将拆分后的子数据包依次发送至所述网络侧。  The control unit 403 may be configured to obtain a second data packet to be sent, and determine whether the capacity of the second data packet is greater than a capacity of the data packet corresponding to the second uplink rate in a unit time; And dividing the second data packet into at least two sub-data packets corresponding to the second uplink rate; and sending the split sub-data packets to the network side in sequence.
本发明实施例中, 拆分后的每个子数据包的容量均不大于所述第二上 行速率在单位时间内所对应的数据包的容量。  In the embodiment of the present invention, the capacity of each sub-packet after splitting is not greater than the capacity of the data packet corresponding to the second uplink rate in a unit time.
本发明实施例中, 所述终端还可以包括一框架模块, 所述框架模块可 以配置为传输数据(包括上传数据和下载数据)。 所述框架模块具体可以是 Framework。 本发明实施例中, 所述终端还可以包括一接口模块, 所述接口模块具 体可以是 RIL (无线接口层)。 所述接口模块具体可以配置为将接收的由所 述流量控制模块下发的请求消息转换为对应的命令, 并可以下发至所述终 端中的处理模块进行处理。 本发明实施例中, 所述流量控制模块可以位于 所述框架模块与所述接口模块之间。 In the embodiment of the present invention, the terminal may further include a framework module, and the framework module may be configured to transmit data (including uploading data and downloading data). The framework module may specifically be a Framework. In the embodiment of the present invention, the terminal may further include an interface module, and the interface module may be specifically an RIL (Wireless Interface Layer). The interface module may be configured to convert the received request message sent by the flow control module into a corresponding command, and may send the request message to the processing module in the terminal for processing. In the embodiment of the present invention, the flow control module may be located between the frame module and the interface module.
本发明实施例中, 所述终端还可以包括所述处理模块, 所述处理模块 具体可以是无线处理器(CP )。 所述处理模块具体可以配置为与所述网络侧 进行交互, 例如可以从所述网络侧获取数据, 并将获取的数据传输至所述 框架模块, 或者可以将所述框架模块传输的数据发送至所述网络侧。  In the embodiment of the present invention, the terminal may further include the processing module, and the processing module may be specifically a wireless processor (CP). The processing module may be configured to interact with the network side, for example, may obtain data from the network side, and transmit the acquired data to the framework module, or may send the data transmitted by the framework module to The network side.
参见图 5, 本发明实施例还提供一种终端, 所述终端可以应用于无线局 域网络中, 所述终端可以包括获耳 4莫块 501、判断模块 502和流量控制模块 503。 其中, 图 5中所示的终端与图 4中所示的终端可以是同一终端, 即图 5中所示的流量控制模块 503与图 4实施例中的所述流量控制模块可以是同 一模块, 图 4中的第一调整单元 401、第二调整单元 402和控制单元 403可 以是图 5中所示的流量控制模块 503中包括的子单元。  Referring to FIG. 5, an embodiment of the present invention further provides a terminal, where the terminal may be applied to a wireless local area network, where the terminal may include an ear 501, a determining module 502, and a flow control module 503. The terminal shown in FIG. 5 and the terminal shown in FIG. 4 may be the same terminal, that is, the flow control module 503 shown in FIG. 5 and the flow control module in the embodiment of FIG. 4 may be the same module. The first adjustment unit 401, the second adjustment unit 402, and the control unit 403 in FIG. 4 may be subunits included in the flow control module 503 shown in FIG. 5.
获取模块 501可以配置为获得所述终端的 CPU占用率。  The obtaining module 501 can be configured to obtain the CPU usage of the terminal.
判断模块 502可以配置为当所述终端的 CPU占用率不小于预设的 CPU 占用率阈值时, 判断是否有数据传输业务正在占用所述终端的 CPU。  The determining module 502 can be configured to determine whether a data transmission service is occupying the CPU of the terminal when the CPU usage of the terminal is not less than a preset CPU usage threshold.
流量控制模块 503 可以配置为当判断结果为是时, 对所述数据传输业 务的传输速率进行调整。  The flow control module 503 can be configured to adjust the transmission rate of the data transmission service when the determination is yes.
本发明实施例中, 所述数据传输业务包括数据上传业务和 /或数据下载 业务。  In the embodiment of the present invention, the data transmission service includes a data upload service and/or a data download service.
当所述数据传输业务中包括数据上传业务时, 流量控制模块 503 具体 可以配置为将所述数据上传业务的传输速率从第三上行速率调整为第四上 行速率, 所述第三上行速率大于所述第四上行速率。 当所述数据传输业务中包括数据下载业务时, 流量控制模块 503 具体 可以配置为将所述数据下载业务的传输速率从第三下行速率调整为第四下 行速率, 所述第三下行速率大于所述第四下行速率。 When the data transmission service includes the data uploading service, the traffic control module 503 may be configured to adjust the transmission rate of the data uploading service from the third uplink rate to the fourth uplink rate, where the third uplink rate is greater than The fourth uplink rate is described. When the data transmission service includes the data download service, the traffic control module 503 may be configured to adjust the transmission rate of the data download service from the third downlink rate to the fourth downlink rate, where the third downlink rate is greater than The fourth downlink rate is described.
本发明实施例中的流量控制方法包括: 在需要进行流量控制时, 将所 述终端的上行速率由第一上行速率调整为第二上行速率, 其中, 所述第一 上行速率不同于所述第二上行速率; 和 /或, 将所述终端的下行速率由第一 下行速率调整为第二下行速率, 其中, 所述第一下行速率不同于所述第二 下行速率; 基于所述第二上行速率发送待发送数据包和 /或基于所述第二下 行速率接收待接收数据包。 在需要进行流量控制时, 可以由用户自行调整 上行速率和下行速率, 或者也可以由系统自动调整上行速率和下行速率, 从而使上下行速率更符合用户使用的实际情况, 提高控制效率。 保证智能 终端在 PS数据高速下载同时, 不会因当前下载进程影响整机总体性能, 极 大地改善了高端用户对智能终端的用户体验。  The flow control method in the embodiment of the present invention includes: when the flow control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the first And the second downlink rate is adjusted from the first downlink rate to the second downlink rate, where the first downlink rate is different from the second downlink rate; Sending a to-be-sent data packet and/or receiving a to-be-received data packet based on the second downlink rate. When the flow control is required, the user can adjust the uplink rate and the downlink rate by themselves, or the system can automatically adjust the uplink rate and the downlink rate, so that the uplink and downlink rates are more in line with the actual situation used by the user, and the control efficiency is improved. Ensure that the intelligent terminal downloads the PS data at the same time, and does not affect the overall performance of the whole machine due to the current download process, which greatly improves the user experience of the high-end user to the intelligent terminal.
本发明实施例中的另一种流量控制方法, 所述方法包括: 获得所述终 端的 CPU占用率; 当所述终端的 CPU占用率不小于预设的 CPU占用率阈 值时, 判断是否有数据传输业务正在占用所述终端的 CPU; 当判断结果为 是时, 对所述数据传输业务的传输速率进行调整。 通过所述终端进行自适 应调整, 无需用户进行设定, 所述终端自然会根据自身情况来调整上行速 率和 /或下行速率, 对于用户来说更加便利, 也提高了控制效率, 使所述终 端能够更好地进行数据上传或数据下载。  Another flow control method in the embodiment of the present invention, the method includes: obtaining a CPU usage rate of the terminal; and determining whether there is data when the CPU usage of the terminal is not less than a preset CPU usage threshold. The transmission service is occupying the CPU of the terminal; when the determination result is yes, the transmission rate of the data transmission service is adjusted. The terminal is adaptively adjusted by the terminal, and the terminal does not need to perform setting by the user. The terminal naturally adjusts the uplink rate and/or the downlink rate according to its own situation, which is more convenient for the user and improves the control efficiency. Better data upload or data download.
本发明实施例提供了两种流量控制方法, 具体在应用时可以任意选择。 例如, 如果用户比较专业, 则可以选择第一种流量控制方法, 由用户自行 确定上行速率和下行速率, 以满足自己的需求。 而如果用户对专业知识不 太了解, 则可以选择第二种流量控制方法, 由终端根据自身情况进行自适 应调整, 同样可以尽量满足用户需求, 提高数据传输速度和质量。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明实施例可采用完全硬件实施例、 完全软 件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明实施例 可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介 质 (包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品 的形式。 The embodiment of the invention provides two flow control methods, which can be arbitrarily selected in application. For example, if the user is more professional, the first flow control method can be selected, and the user determines the uplink rate and the downlink rate to meet their own needs. If the user does not know much about the professional knowledge, the second flow control method can be selected, and the terminal adaptively adjusts according to its own situation, and can also satisfy the user's demand as much as possible, and improve the data transmission speed and quality. Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Thus, embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步驟以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步驟。 不脱离本发明实施例的精神和范围。 这样, 倘若本发明实施例的这些修改 和变型属于本发明实施例权利要求及其等同技术的范围之内, 则本发明实 施例也意图包含这些改动和变型在内。 工业实用性 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. The spirit and scope of the embodiments of the invention are not departed. Thus, if these modifications are made to embodiments of the invention The modifications and variations of the embodiments of the invention are intended to be included within the scope of the appended claims. Industrial applicability
本发明实施例在需要进行流量控制时, 将终端的上行速率由第一上行 速率调整为第二上行速率, 其中, 所述第一上行速率不同于所述第二上行 速率; 和 /或, 将终端的下行速率由第一下行速率调整为第二下行速率, 其 中, 所述第一下行速率不同于所述第二下行速率; 基于所述第二上行速率 发送待发送数据包和 /或基于所述第二下行速率接收待接收数据包。 采用本 发明实施例, 由于在需要进行流量控制时, 可以由用户自行调整上行速率 和下行速率, 或者也可以由系统自动调整上行速率和下行速率, 从而使上 下行速率更符合用户使用的实际情况, 提高了终端侧的控制效率, 从而保 证对终端侧的控制效果更好。  When the flow rate control is required, the uplink rate of the terminal is adjusted from the first uplink rate to the second uplink rate, where the first uplink rate is different from the second uplink rate; and/or The downlink rate of the terminal is adjusted from the first downlink rate to the second downlink rate, where the first downlink rate is different from the second downlink rate; and the to-be-sent data packet is sent and/or based on the second uplink rate. Receiving a data packet to be received based on the second downlink rate. In the embodiment of the present invention, the uplink rate and the downlink rate may be adjusted by the user when the flow control is required, or the uplink rate and the downlink rate may be automatically adjusted by the system, so that the uplink and downlink rates are more in line with the actual situation of the user. , the control efficiency of the terminal side is improved, thereby ensuring better control effect on the terminal side.

Claims

权利要求书 claims
1、 一种流量控制方法, 应用于一处于无线局域网络中的终端, 所述方 法包括: 1. A flow control method, applied to a terminal in a wireless local area network, the method includes:
在需要进行流量控制时, 将所述终端的上行速率由第一上行速率调整 为第二上行速率, 其中, 所述第一上行速率不同于所述第二上行速率; 和 / 或, When flow control is required, the uplink rate of the terminal is adjusted from a first uplink rate to a second uplink rate, wherein the first uplink rate is different from the second uplink rate; and/or,
将所述终端的下行速率由第一下行速率调整为第二下行速率, 其中, 所述第一下行速率不同于所述第二下行速率; Adjust the downlink rate of the terminal from the first downlink rate to the second downlink rate, wherein the first downlink rate is different from the second downlink rate;
基于所述第二上行速率发送待发送数据包和 /或基于所述第二下行速率 接收待接收数据包。 Send data packets to be sent based on the second uplink rate and/or receive data packets to be received based on the second downlink rate.
2、 如权利要求 1所述的方法, 其中, 所述基于所述第二下行速率接收 待接收数据包, 包括: 2. The method of claim 1, wherein the receiving the data packet to be received based on the second downlink rate includes:
当所述无线局域网络侧的网络下行速率大于所述第二下行速率时, 将 所述待接收数据包进行拆分, 获得与所述第二下行速率匹配的至少两个子 数据包; When the network downlink rate on the wireless local area network side is greater than the second downlink rate, split the data packet to be received to obtain at least two sub-data packets that match the second downlink rate;
将所述至少两个子数据包依次发送至所述终端中的界面提供模块; 其 中, 在发送所述子数据包的过程中, 在接收到所述界面提供模块反馈的关 于接收到上一个子数据包的子响应信息后再发送下一个子数据包; Send the at least two sub-data packets to the interface providing module in the terminal in sequence; wherein, during the process of sending the sub-data packets, after receiving feedback from the interface providing module regarding the receipt of the previous sub-data The next sub-data packet is sent after the sub-response information of the packet;
将接收到的所述界面提供模块反馈的与所述至少两个子数据包对应的 至少两个子响应信息进行存储; Store at least two sub-response information corresponding to the at least two sub-data packets received from the interface providing module;
基于所述至两个子响应信息, 获得一条第一响应信息; Based on the two sub-response information, obtain a first response information;
将所述第一响应信息发送至所述无线局域网络。 Send the first response information to the wireless local area network.
3、 如权利要求 2所述的方法, 其中, 拆分后的每个子数据包的容量均 不大于第二下行速率在单位时间内所对应的数据包的容量。 3. The method of claim 2, wherein the capacity of each sub-data packet after splitting is no greater than the capacity of the data packet corresponding to the second downlink rate in unit time.
4、 如权利要求 1所述的方法, 其中, 基于所述第二上行速率发送待发 送数据包, 包括: 4. The method of claim 1, wherein: sending the pending data based on the second uplink rate Send data package, including:
获得待发送的第二数据包; Obtain the second data packet to be sent;
判断所述第二数据包的容量是否大于所述第二上行速率在单位时间内 所对应的数据包的容量; Determine whether the capacity of the second data packet is greater than the capacity of the data packet corresponding to the second uplink rate within the unit time;
当判断结果为是时, 将所述第二数据包拆分为至少两个与所述第二上 行速率对应的子数据包; When the judgment result is yes, split the second data packet into at least two sub-data packets corresponding to the second uplink rate;
将拆分后的子数据包依次发送至所述网络侧。 The split sub-data packets are sent to the network side in sequence.
5、 如权利要求 4所述的方法, 其中, 拆分后的每个子数据包的容量均 不大于所述第二上行速率在单位时间内所对应的数据包的容量。 5. The method of claim 4, wherein the capacity of each sub-data packet after splitting is no greater than the capacity of the data packet corresponding to the second uplink rate in unit time.
6、 一种终端, 所述终端处于无线局域网络中, 所述终端包括流量控制 模块, 所述流量控制模块包括: 6. A terminal, the terminal is in a wireless local area network, the terminal includes a flow control module, the flow control module includes:
第一调整单元, 配置为在需要进行流量控制时, 将所述终端的上行速 率由第一上行速率调整为第二上行速率, 其中, 所述第一上行速率不同于 所述第二上行速率; The first adjustment unit is configured to adjust the uplink rate of the terminal from the first uplink rate to the second uplink rate when flow control is required, wherein the first uplink rate is different from the second uplink rate;
第二调整单元, 配置为将所述终端的下行速率由第一下行速率调整为 第二下行速率, 其中, 所述第一下行速率不同于所述第二下行速率; The second adjustment unit is configured to adjust the downlink rate of the terminal from a first downlink rate to a second downlink rate, wherein the first downlink rate is different from the second downlink rate;
控制单元, 配置为基于所述第二上行速率发送待发送数据包和 /或基于 所述第二下行速率接收待接收数据包。 A control unit configured to send data packets to be sent based on the second uplink rate and/or receive data packets to be received based on the second downlink rate.
7、 如权利要求 6所述的终端, 其中, 所述控制单元具体配置为: 当所述无线局域网络侧的网络下行速率大于所述第二下行速率时, 将 所述待接收数据包进行拆分, 获得与所述第二下行速率匹配的至少两个子 数据包; 7. The terminal according to claim 6, wherein the control unit is specifically configured to: when the network downlink rate on the wireless local area network side is greater than the second downlink rate, decompose the data packet to be received. to obtain at least two sub-data packets matching the second downlink rate;
将所述至少两个子数据包依次发送至所述终端中的界面提供模块; 其 中, 在发送所述子数据包的过程中, 在接收到所述界面提供模块反馈的关 于接收到上一个子数据包的子响应信息后再发送下一个子数据包; 将接收到的所述界面提供模块反馈的与所述至少两个子数据包对应的 至少两个子响应信息进行存储; Send the at least two sub-data packets to the interface providing module in the terminal in sequence; wherein, during the process of sending the sub-data packets, after receiving feedback from the interface providing module regarding the receipt of the previous sub-data The next sub-data packet is sent after the sub-response information of the packet; Store at least two sub-response information corresponding to the at least two sub-data packets received from the interface providing module;
基于所述至两个子响应信息, 获得一条第一响应信息; Based on the two sub-response information, obtain a first response information;
将所述第一响应信息发送至所述无线局域网络。 Send the first response information to the wireless local area network.
8、 如权利要求 7所述的终端, 其中, 拆分后的每个子数据包的容量均 不大于所述第二下行速率在单位时间内所对应的数据包的容量。 8. The terminal according to claim 7, wherein the capacity of each sub-data packet after splitting is no greater than the capacity of the data packet corresponding to the second downlink rate in unit time.
9、 如权利要求 6所述的终端, 其中, 所述控制单元具体配置为: 获得待发送的第二数据包; 9. The terminal according to claim 6, wherein the control unit is specifically configured to: obtain the second data packet to be sent;
判断所述第二数据包的容量是否大于所述第二上行速率在单位时间内 所对应的数据包的容量; Determine whether the capacity of the second data packet is greater than the capacity of the data packet corresponding to the second uplink rate within the unit time;
当判断结果为是时, 将所述第二数据包拆分为至少两个与所述第二上 行速率对应的子数据包; When the judgment result is yes, split the second data packet into at least two sub-data packets corresponding to the second uplink rate;
将拆分后的子数据包依次发送至所述网络侧。 The split sub-data packets are sent to the network side in sequence.
10、 如权利要求 9所述的终端, 其中, 拆分后的每个子数据包的容量 均不大于所述第二上行速率在单位时间内所对应的数据包的容量。 10. The terminal according to claim 9, wherein the capacity of each sub-data packet after splitting is not greater than the capacity of the data packet corresponding to the second uplink rate in unit time.
PCT/CN2013/077717 2012-08-21 2013-06-21 Traffic control method and terminal WO2014029234A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210299005XA CN102883372A (en) 2012-08-21 2012-08-21 Traffic controlling method and terminal
CN201210299005.X 2012-08-21

Publications (1)

Publication Number Publication Date
WO2014029234A1 true WO2014029234A1 (en) 2014-02-27

Family

ID=47484470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077717 WO2014029234A1 (en) 2012-08-21 2013-06-21 Traffic control method and terminal

Country Status (2)

Country Link
CN (1) CN102883372A (en)
WO (1) WO2014029234A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11595855B2 (en) 2016-05-13 2023-02-28 Telefonaktiebolaget Lm Ericsson (Publ) Systems and methods of recommending a data rate in a wireless communications system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883372A (en) * 2012-08-21 2013-01-16 中兴通讯股份有限公司 Traffic controlling method and terminal
KR102278392B1 (en) * 2014-10-15 2021-07-16 애플 인크. Uplink traffic control method in tightly integrated wifi/lte
CN105791985B (en) * 2014-12-22 2019-08-16 深圳Tcl数字技术有限公司 Media stream data method for down loading and device
CN105049167B (en) * 2015-08-26 2018-02-13 宇龙计算机通信科技(深圳)有限公司 A kind of method for controlling carrier aggregation CA downloading rates and base station
CN105163352A (en) * 2015-10-15 2015-12-16 厦门雅迅网络股份有限公司 Network traffic control method and device, and network device
CN110198203A (en) * 2019-06-14 2019-09-03 中国人民解放军陆军工程大学 A method of control message transmission rate
CN112672377B (en) * 2020-12-28 2022-08-09 华力智芯(成都)集成电路有限公司 Method and device for constructing and testing downlink segmentation scene of RLC layer of gateway station

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499782A (en) * 2002-11-07 2004-05-26 �ձ�������ʽ���� Mobile radio appts. and method of controlling transfer speed of mobile radio appts.
CN101030926A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for controlling network data flow of global microwave access inter-operation
CN101959245A (en) * 2009-07-13 2011-01-26 中兴通讯股份有限公司 Method, device and system for controlling flow in WiMAX (Worldwide Interoperability for Microwave Access) system
WO2011049495A1 (en) * 2009-10-23 2011-04-28 Telefonaktiebolaget L M Ericsson (Publ) Methods and arrangements in a communication network system
CN102461252A (en) * 2009-06-08 2012-05-16 高通股份有限公司 Systems and methods to provide flow control for mobile devices
CN102883372A (en) * 2012-08-21 2013-01-16 中兴通讯股份有限公司 Traffic controlling method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800621B (en) * 2010-01-12 2013-07-10 腾讯科技(深圳)有限公司 Method and device for limiting uploading speed
CN102164157B (en) * 2010-02-24 2014-07-16 腾讯科技(深圳)有限公司 Downloading speed limiting method and system
CN101938819B (en) * 2010-09-09 2014-08-13 中兴通讯股份有限公司 System and method for controlling power consumption of mobile terminal
CN102209107B (en) * 2011-05-11 2013-06-19 奇智软件(北京)有限公司 Intelligent speed-limiting method and device and downloading system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499782A (en) * 2002-11-07 2004-05-26 �ձ�������ʽ���� Mobile radio appts. and method of controlling transfer speed of mobile radio appts.
CN101030926A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for controlling network data flow of global microwave access inter-operation
CN102461252A (en) * 2009-06-08 2012-05-16 高通股份有限公司 Systems and methods to provide flow control for mobile devices
CN101959245A (en) * 2009-07-13 2011-01-26 中兴通讯股份有限公司 Method, device and system for controlling flow in WiMAX (Worldwide Interoperability for Microwave Access) system
WO2011049495A1 (en) * 2009-10-23 2011-04-28 Telefonaktiebolaget L M Ericsson (Publ) Methods and arrangements in a communication network system
CN102883372A (en) * 2012-08-21 2013-01-16 中兴通讯股份有限公司 Traffic controlling method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11595855B2 (en) 2016-05-13 2023-02-28 Telefonaktiebolaget Lm Ericsson (Publ) Systems and methods of recommending a data rate in a wireless communications system

Also Published As

Publication number Publication date
CN102883372A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
WO2014029234A1 (en) Traffic control method and terminal
CN105230029B (en) Establish and control Wi-Fi shows the audio connected and voice backward channel
CN103650418B (en) Method and apparatus for multicast service
RU2533291C2 (en) Method, apparatus and system for executing multimedia service in wireless local area network
WO2014161485A1 (en) Method, network device, and system for transmit power control during device-to-device communication
WO2017028666A1 (en) System and method for online multimedia streaming services
TW200901707A (en) Method and apparatus for dynamic adjustment of uplink transmission time
CN102858018B (en) Scheduling method ensuring user quality of experience (QoE) performance in HSPDA system
EP3092815B1 (en) Method for improving the power consumption of a mobile device during video streaming
JP2004193854A (en) Communication system, wireless communication terminal, and wireless base station
TW200908768A (en) Method and apparatus for improving continuous packet connectivity in a wireless communications system
CN104836672B (en) The method, apparatus of data transmission, system and terminal device in multi-screen interactive
JP2016527579A (en) Data communication system and method
TWI378676B (en) Method for scheduling transmission time in a communications system, link layer coordinating device and multiple access communications system
Kim et al. Adaptive video streaming for device-to-device mobile platforms
US10136443B2 (en) Mechanism and apparatus to perform cooperative resource management in wireless networks
WO2012055341A1 (en) Method and device for data retransmission adjustment, and base station
KR101434339B1 (en) A method and system for optimizing power consumption and reducing mips requirements for wireless communication
JP2008206149A (en) Method and apparatus for stopping mimo procedures in wireless communication system
WO2014172892A1 (en) Service offloading method, apparatus and system
EP2786619B1 (en) Facilitating power conservation for local area transmissions
CN107734550A (en) A kind of information transferring method, device, system and relevant device
CN101924793B (en) P2P streaming media-based secondary coding play method and system
WO2015096092A1 (en) Resource scheduling method, information interaction method and device
TWI239740B (en) Method and apparatus for priority management of system algorithms in real time

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: 13831393

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13831393

Country of ref document: EP

Kind code of ref document: A1