WO2016197458A1 - 一种流量控制的方法及装置 - Google Patents
一种流量控制的方法及装置 Download PDFInfo
- Publication number
- WO2016197458A1 WO2016197458A1 PCT/CN2015/087687 CN2015087687W WO2016197458A1 WO 2016197458 A1 WO2016197458 A1 WO 2016197458A1 CN 2015087687 W CN2015087687 W CN 2015087687W WO 2016197458 A1 WO2016197458 A1 WO 2016197458A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- rate
- users
- user
- threshold
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/02—Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
- H04W8/04—Registration at HLR or HSS [Home Subscriber Server]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/20—Traffic policing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/22—Traffic shaping
- H04L47/225—Determination of shaping rate, e.g. using a moving window
Definitions
- This document relates to, but is not limited to, the field of network communication, and in particular to a method and apparatus for flow control.
- wireless network WiFi Wireless Fidelity
- the flow control method for wireless networks is that a single user is not limited to speed or each user is allocated a fixed bandwidth.
- P2P Point to Point
- users who perform P2P (Point to Point) applications are likely to take up most of the bandwidth, so that other users' basic network operations such as opening a mailbox and browsing the web will be performed. It is very difficult; and the method of allocating a fixed bandwidth for each user makes the total bandwidth not fully utilized effectively when the number of users is small, which wastes network resources.
- the embodiments of the present invention provide a method and an apparatus for controlling traffic, which solve the technical problem that the total bandwidth of the network cannot be fully utilized in the related art.
- the embodiment of the invention provides a method for flow control, including:
- the rate limit user with the highest real-time traffic rate among the online users is limited.
- the speed limit for the unconstrained user with the highest real-time traffic rate among the online users is:
- the product of the preset percentage and the first threshold is equal to 100%.
- the method for controlling the flow further includes:
- the rate limit is set for all online users, and the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- the method for controlling the flow further includes:
- the speed limit value is the same for the user with the highest real-time traffic rate among the unconstrained users and the user with the lowest real-time traffic rate among the rate-limited users.
- the speed limit value set by the user with the lowest real-time traffic rate among the rate-limited users.
- the method for controlling the flow further includes:
- the speed limit user at the current speed limit is separately limited by the current speed limit user.
- the method for controlling the flow further includes:
- the rate limit is set for all online users.
- the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- the embodiment of the invention further provides a device for controlling flow, comprising:
- the statistics module is configured to count the number of rate-limited users of the online users of the access device and the real-time traffic rate of each online user;
- a first determining module configured to determine whether the number of the rate-limiting users is greater than a first threshold
- the second judging module is configured to determine whether the total real-time traffic rate of all online users is greater than a second threshold if the number of the rate-limiting users is not greater than the first threshold;
- the first rate limiting module is configured to limit the rate of the unconstrained users whose real-time traffic rate is the highest among the online users when the total real-time traffic rate is greater than the second threshold.
- the speed limit module includes:
- a setting module configured to set a rate limit value of the unconstrained user whose maximum real-time traffic rate is the maximum as a preset percentage of the total bandwidth of the access device;
- the product of the preset percentage and the first threshold is equal to 100%.
- the device for controlling the flow further includes:
- the third determining module is configured to determine, if the number of the rate-limiting users is greater than the first threshold, whether the number of the rate-limiting users is greater than a third threshold;
- a fourth determining module configured to be in a case where the number of the rate-limiting users is not greater than a third threshold And determining whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device;
- the second rate limiting module is configured to limit the rate of all the online users when the total real-time traffic rate is greater than the total bandwidth of the access device, and the rate limit is the total bandwidth of the access device divided by the traffic obtained by all the online users. rate.
- the device for controlling the flow further includes:
- the fifth determining module is configured to determine, when the number of the rate-limiting users is greater than the third threshold, whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device;
- the third rate limiting module is configured to: when the total real-time traffic rate is greater than the total bandwidth of the access device, the user with the highest real-time traffic rate among the unconstrained users and the user with the lowest real-time traffic rate among the rate-limited users are common.
- the speed limit value is the speed limit value set by the user with the lowest real-time traffic rate among the speed limit users.
- the device for controlling the flow further includes:
- the sixth judging module is configured to determine whether the offline user is a speed limit user
- the seventh judging module is configured to determine, when the offline user is a rate-limiting user, whether the current number of rate-limiting users is greater than a third threshold;
- the eighth judging module is configured to determine whether the offline user shares a speed limit with another rate-limited user if the number of the current rate-limiting users is greater than a third threshold;
- the fourth speed limit module is configured to perform a speed limit on a speed limit user at a common speed limit among the current speed limit users when the downlink user does not speed limit with another speed limit user.
- the device for controlling the flow further includes:
- the ninth judging module is configured to determine, if the current number of rate-limiting users is not greater than the third threshold, whether the number of the current rate-limiting users is greater than the first threshold;
- the fifth rate limiting module is configured to limit the rate of all online users when the number of current rate limiting users is greater than the first threshold.
- the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
- the method and device for the flow control of the embodiment of the present invention can count the number of rate-limited users in the online users of the access device, and the real-time traffic rate of the online users is the largest according to the total real-time traffic rate of all online users.
- the speed limit is not limited for users, and the bandwidth is not fully utilized when the number of users is small, so that all online users can fully utilize the total bandwidth of the access device and improve users. Experience.
- FIG. 1 is a flow chart showing a method of flow control in an embodiment of the present invention.
- FIG. 2 is a flow chart showing another method of flow control in accordance with an embodiment of the present invention.
- FIG. 3 is a flow chart showing still another method of flow control according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an apparatus for flow control according to an embodiment of the present invention.
- FIG. 5 is a schematic view showing another structure of the flow control device of the embodiment of the present invention.
- an embodiment of the present invention provides a method for controlling traffic, which is applied to an access device, including:
- Step S101 Count the number of rate-limited users in the online users of the access device and the real-time traffic rate of each online user;
- Step S102 determining whether the number of the rate-limited users is greater than a first threshold
- Step S103 If the number of the rate-limiting users is not greater than the first threshold, determine whether the total real-time traffic rate of all online users is greater than a second threshold;
- Step S104 If the total real-time traffic rate is greater than the second threshold, limit the rate of the unconstrained users with the highest real-time traffic rate among the online users.
- the traffic control method of the embodiment of the present invention can count the number of rate-limited users in the online users of the access device, and according to the total real-time traffic rate of all online users, the real-time traffic rate of the online users is the largest.
- a rate limit is used to limit the rate of users. This prevents multiple users from occupying a large bandwidth. This allows all online users to fully utilize the total bandwidth of the access device to improve the user experience.
- the first threshold is preset according to the actual situation, for example, the preset is 10; similarly, the second threshold is preset according to the actual situation, and the preset is a certain percentage of the total bandwidth of the access device. For example, 80% of the total bandwidth of the access device can be selected according to different needs.
- the total bandwidth of the access device is set according to actual conditions, such as the actual traffic, the total available bandwidth, and the like, and is set, for example, by using a medium, and the total bandwidth of the access device. Shared by all online users.
- the speed limit of the unconstrained user with the highest real-time traffic rate among the online users is:
- the product of the preset percentage and the first threshold is equal to 100%.
- the first threshold is a critical point for determining that different flow control methods are adopted.
- the method for flow control further includes:
- Step S201 If the number of the rate-limiting users is greater than the first threshold, determine whether the number of the rate-limited users is greater than a third threshold;
- Step S202 If the number of the rate-limiting users is not greater than the third threshold, determine whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device.
- Step S203 If the total real-time traffic rate is greater than the total bandwidth of the access device, The line user performs rate limiting.
- the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- the third threshold is usually the maximum number of the total bandwidth of the access device that can be divided, and is also a critical point for determining that different flow control methods are adopted.
- the method for controlling the flow further includes:
- Step S204 If the number of the rate-limiting users is greater than the third threshold, determine whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device.
- Step S205 If the total real-time traffic rate is greater than the total bandwidth of the access device, the user with the highest real-time traffic rate among the unconstrained users and the user with the lowest real-time traffic rate among the rate-limiting users are subjected to a common speed limit, and the speed limit value is It is the speed limit value set by the user with the lowest real-time traffic rate among the speed limit users.
- the method for controlling the flow further includes:
- Step S301 determining whether the offline user is a speed limit user
- Step S302 If the offline user is a rate-limited user, determine whether the current number of rate-limiting users is greater than a third threshold;
- Step S303 If the number of the current rate-limiting users is greater than the third threshold, determine whether the offline user shares speed limit with another rate-limited user;
- Step S304 If the offline user does not speed limit with another speed limit user, the speed limit user of the current speed limit user who is at the common speed limit is separately limited.
- the method for controlling the flow further includes:
- Step S305 If the number of current rate-limiting users is not greater than the third threshold, determine whether the number of current rate-limiting users is greater than a first threshold;
- Step S306 If the number of current rate-limiting users is greater than the first threshold, limit the rate of all online users, and the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- the real-time traffic rate of other online users can be adjusted in time, so that all current online users can fully utilize the total bandwidth of the access device to improve the user experience.
- An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method.
- the embodiment of the present invention further provides a flow control device, as shown in FIG. 4 , corresponding to the flow control method shown in FIG. 1 .
- the flow control device includes:
- the statistics module 41 is configured to count the number of rate-limited users of the online users of the access device and the real-time traffic rate of each online user;
- the first determining module 42 is configured to determine whether the number of the rate-limiting users is greater than a first threshold
- the second judging module 43 is configured to determine whether the total real-time traffic rate of all online users is greater than a second threshold if the number of the rate-limiting users is not greater than the first threshold;
- the first rate limiting module 44 is configured to limit the rate of the unconstrained users with the highest real-time traffic rate among the online users when the total real-time traffic rate is greater than the second threshold.
- the device for controlling the flow rate of the embodiment of the present invention can count the number of rate-limited users of the online users of the access device, and according to the total real-time traffic rate of all online users, the real-time traffic rate of the online users is the largest. If the rate limit is not used by a single user, and the bandwidth is not fully utilized, all online users can fully utilize the total bandwidth of the access device to improve the user experience. .
- the total bandwidth of the access device is set according to actual conditions, such as the actual traffic, the total available bandwidth, and the like, and is set, for example, by using a medium, and the total bandwidth of the access device. Shared by all online users.
- the first threshold is preset according to the actual situation, for example, the preset is 10; similarly, the second threshold is preset according to the actual situation, and the preset is a certain percentage of the total bandwidth of the access device. For example, 80% of the total bandwidth of the access device can be selected according to different needs.
- the first rate limiting module includes:
- a setting module configured to set a rate limit value of the unconstrained user whose maximum real-time traffic rate is the maximum to a preset percentage of the total bandwidth of the access device; wherein the product of the preset percentage and the first threshold is equal to 100 %.
- the device for controlling the flow further includes:
- the third determining module is configured to determine, if the number of the rate-limiting users is greater than the first threshold, whether the number of the rate-limiting users is greater than a third threshold;
- the fourth judging module is configured to determine whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device, if the number of the rate-limiting users is not greater than the third threshold;
- the second rate limiting module is configured to limit the rate of all the online users when the total real-time traffic rate is greater than the total bandwidth of the access device, and the rate limit is the total bandwidth of the access device divided by the traffic obtained by all the online users. rate.
- the device for controlling the flow further includes:
- the fifth determining module is configured to determine, when the number of the rate-limiting users is greater than the third threshold, whether the total real-time traffic rate of all online users is greater than the total bandwidth of the access device;
- the third rate limiting module is configured to: when the total real-time traffic rate is greater than the total bandwidth of the access device, the user with the highest real-time traffic rate among the unconstrained users and the user with the lowest real-time traffic rate among the rate-limited users are common.
- the speed limit value is the speed limit value set by the user with the lowest real-time traffic rate among the speed limit users.
- the flow control device further includes:
- the sixth judging module is configured to determine whether the offline user is a speed limit user
- the seventh judging module is configured to determine that when the offline user is a rate-limited user Whether the number of previously limited speed users is greater than a third threshold;
- the eighth judging module is configured to determine whether the offline user shares a speed limit with another rate-limited user if the number of the current rate-limiting users is greater than a third threshold;
- the fourth speed limit module is configured to perform a speed limit on a speed limit user at a common speed limit among the current speed limit users when the downlink user does not speed limit with another speed limit user.
- the device for controlling the flow further includes:
- the ninth judging module is configured to determine, if the current number of rate-limiting users is not greater than the third threshold, whether the number of the current rate-limiting users is greater than the first threshold;
- the fifth rate limiting module is configured to limit the rate of all online users when the number of current rate limiting users is greater than the first threshold.
- the rate limit is the total bandwidth of the access device divided by the traffic rate obtained by all online users.
- the real-time traffic rate of other online users can be adjusted in time, so that all current online users can fully utilize the total bandwidth of the access device to improve the user experience.
- all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the foregoing technical solution can count the number of rate-limited users in the online users of the access device, and limit the rate of the unconstrained users with the highest real-time traffic rate among the online users according to the total real-time traffic rate of all online users.
- the bandwidth is not fully utilized, so that all online users can fully utilize the total bandwidth of the access device and improve the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种流量控制的方法及装置,其中,所述流量控制的方法包括:统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;判断所述已限速用户的数量是否大于第一阈值;在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;如果所述总实时流量速率大于第二阈值,对在线用户中实时流量速率最大的未限速用户进行限速。上述技术方案能够使所有在线用户充分利用接入设备的总带宽,提高用户体验。
Description
本文涉及但不限于网络通信领域,特别是涉及一种流量控制的方法及装置。
随着计算机网络的迅速发展,大量的新业务新应用程序相继出现,使得现在的计算机网络已经发展成为承载多种业务,服务多个不同用户的信息传输平台。同时近年来,无线网络WiFi(Wireless Fidelity)技术已日趋成熟,酒店、咖啡馆、火车站等人群流动性较大的场所都提供了免费WiFi,供人们工作、娱乐等。
当前,对无线网络的流量控制方法是单个用户不限速或每个用户都分配固定的带宽。当采用单个用户不限速的方法时,进行例如P2P(Point to Point点对点)应用的用户极有可能会占去大部分的带宽,使得其他用户的例如打开邮箱、浏览网页等基本的网络操作都会非常困难;而针对每个用户都分配固定的带宽的方法,又会使得在用户较少时,总带宽得不到充分有效的利用,白白浪费了网络资源。
所以,如何既能充分的利用网络总带宽,又能使每个用户都有良好的上网体验,成为当前一个迫切需要解决的问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种流量控制的方法及装置,解决相关技术中不能充分利用网络总带宽的技术问题。
本发明实施例提供一种流量控制的方法,包括:
统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;
判断所述已限速用户的数量是否大于第一阈值;
在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;
如果所述总实时流量速率大于第二阈值,对在线用户中实时流量速率最大的未限速用户进行限速。
可选的,所述对在线用户中实时流量速率最大的未限速用户进行限速包括:
将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;
其中,所述预设百分比与第一阈值的乘积等于100%。
可选的,所述流量控制的方法还包括:
在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;
在所述已限速用户的数量不大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
如果所述总实时流量速率大于接入设备的总带宽,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
可选的,所述流量控制的方法还包括:
在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
如果所述总实时流量速率大于接入设备的总带宽,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
可选的,当一在线用户下线后,所述流量控制的方法还包括:
判断所述下线用户是否为已限速用户;
在所述下线用户为已限速用户的情况下,判断当前已限速用户的数量是否大于第三阈值;
在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;
如果所述下线用户不与另一已限速用户共同限速,对当前已限速用户中一处于共同限速的已限速用户进行单独限速。
可选的,所述流量控制的方法还包括:
在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;
如果当前已限速用户的数量大于第一阈值,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
本发明实施例还提供一种流量控制的装置,包括:
统计模块,设置为统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;
第一判断模块,设置为判断所述已限速用户的数量是否大于第一阈值;
第二判断模块,设置为在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;
第一限速模块,设置为当所述总实时流量速率大于第二阈值时,对在线用户中实时流量速率最大的未限速用户进行限速。
可选的,所述限速模块包括:
设置模块,设置为将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;
其中,所述预设百分比与第一阈值的乘积等于100%。
可选的,所述流量控制的装置还包括:
第三判断模块,设置为在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;
第四判断模块,设置为在所述已限速用户的数量不大于第三阈值的情况
下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
第二限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
可选的,所述流量控制的装置还包括:
第五判断模块,设置为在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
第三限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
可选的,所述流量控制的装置还包括:
第六判断模块,设置为判断下线用户是否为已限速用户;
第七判断模块,设置为在所述下线用户为已限速用户的情况下,判断当前已限速用户的数量是否大于第三阈值;
第八判断模块,设置为在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;
第四限速模块,设置为当所述下线用户不与另一已限速用户共同限速时,对当前已限速用户中一处于共同限速的已限速用户进行单独限速。
可选的,所述流量控制的装置还包括:
第九判断模块,设置为在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;
第五限速模块,设置为当当前已限速用户的数量大于第一阈值时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
通过本发明实施例的上述技术方案,本发明实施例的有益效果在于:
本发明实施例的流量控制的方法和装置,能够统计出接入设备的在线用户中已限速用户的数量,并根据所有在线用户的总实时流量速率的情况,对在线用户中实时流量速率最大的未限速用户进行限速,既避免单一用户占用较大的带宽,又避免用户较少时,带宽得不到充分的利用,使得所有在线用户能够充分利用接入设备的总带宽,提高用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1表示本发明实施例的流量控制的方法的流程图。
图2表示本发明实施例的另一流量控制的方法的流程图。
图3表示本发明实施例的又一流量控制的方法的流程图。
图4表示本发明实施例的流量控制的装置的结构示意图;
图5表示本发明实施例的流量控制的装置的另一结构示意图。
下面将结合附图对具体实施例进行详细描述。
参阅图1所示,本发明实施例提供一种流量控制的方法,应用于一接入设备,包括:
步骤S101:统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;
步骤S102:判断所述已限速用户的数量是否大于第一阈值;
步骤S103:在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;
步骤S104:如果所述总实时流量速率大于第二阈值,对在线用户中实时流量速率最大的未限速用户进行限速。
通过本发明实施例的流量控制的方法,能够统计出接入设备的在线用户中已限速用户的数量,并根据所有在线用户的总实时流量速率的情况,对在线用户中实时流量速率最大的未限速用户进行限速,避免单一用户占用较大的带宽,使得所有在线用户能够充分利用接入设备的总带宽,提高用户体验。
而所述第一阈值是根据实际情况进行预设的,例如预设为10;同样的,所述第二阈值也是根据实际情况进行预设的,预设为接入设备的总带宽的一定百分比,例如接入设备的总带宽的80%,可根据不同需求进行选择。
其中,在本发明实施例中,接入设备的总带宽是根据实际情况,例如客流量、可用总带宽等实际情况来进行设置的,例如通过媒介来设置,且所述接入设备的总带宽为所有在线用户所共享。
可选的,在本发明实施例中,所述对在线用户中实时流量速率最大的未限速用户进行限速包括:
将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;
其中,所述预设百分比与第一阈值的乘积等于100%。
例如,当第一阈值预设为10,在对在线用户中实时流量速率最大的未限速用户进行限速时,就需要将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的10%,这样,10×10%=100%,可表示接入设备的总带宽已经分配给所有在线用户。
需要说明的是,所述第一阈值是一个临界点,用于判定采取不同的流量控制方法。
参阅图2所示,所述流量控制的方法还包括:
步骤S201:在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;
步骤S202:在所述已限速用户的数量不大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
步骤S203:如果所述总实时流量速率大于接入设备的总带宽,对所有在
线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
其中,所述第三阈值通常为接入设备的总带宽可被平分的最大数量,也是一个临界点,用于判定采取不同的流量控制方法。
可选的,可参阅图2所示,所述流量控制的方法还包括:
步骤S204:在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
步骤S205:如果所述总实时流量速率大于接入设备的总带宽,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
这样,通过对已限速用户的数量的判断,可采用不同的限速方案,即流量控制的方法,使得所有在线用户能够充分利用接入设备的总带宽,以提高用户体验。
实际应用中,接入设备上的在线用户会不断的变化,即不停地有用户接入或下线,当有新用户接入所述接入设备时,就可根据接入设备中所有在线用户的实时流量速率的情况,进行上述的本发明实施例的流量控制的方法。而当一在线用户下线后,就需要对下线用户进行判断,并重新进行流量控制。
在本发明实施例中,参见图3所示,当一在线用户下线后,所述流量控制的方法还包括:
步骤S301:判断下线用户是否为已限速用户;
步骤S302:在所述下线用户为已限速用户的情况下,判断当前已限速用户的数量是否大于第三阈值;
步骤S303:在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;
步骤S304:如果所述下线用户不与另一已限速用户共同限速,对当前已限速用户中处于共同限速的已限速用户进行单独限速。
同时,所述流量控制的方法还包括:
步骤S305:在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;
步骤S306:如果当前已限速用户的数量大于第一阈值,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
这样,在出现下线用户时,可及时对其他在线用户的实时流量速率进行调整,使得当前的所有在线用户能够充分利用接入设备的总带宽,以提高用户体验。
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
此外,本发明实施例还提供一种流量控制的装置,参见图4所示,与图1所示的流量控制的方法相对应,可选的,所述流量控制的装置包括:
统计模块41,设置为统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;
第一判断模块42,设置为判断所述已限速用户的数量是否大于第一阈值;
第二判断模块43,设置为在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;
第一限速模块44,设置为当所述总实时流量速率大于第二阈值时,对在线用户中实时流量速率最大的未限速用户进行限速。
通过本发明实施例的流量控制的装置,能够统计出接入设备的在线用户中已限速用户的数量,并根据所有在线用户的总实时流量速率的情况,对在线用户中实时流量速率最大的未限速用户进行限速,既避免单一用户占用较大的带宽,又避免用户较少时,带宽得不到充分的利用,使得所有在线用户能够充分利用接入设备的总带宽,提高用户体验。
其中,在本发明实施例中,接入设备的总带宽是根据实际情况,例如客流量、可用总带宽等实际情况来进行设置的,例如通过媒介来设置,且所述接入设备的总带宽为所有在线用户所共享。
而所述第一阈值是根据实际情况进行预设的,例如预设为10;同样的,所述第二阈值也是根据实际情况进行预设的,预设为接入设备的总带宽的一定百分比,例如接入设备的总带宽的80%,可根据不同需求进行选择。
可选的,在本发明实施例中,所述第一限速模块包括:
设置模块,设置为将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;其中,所述预设百分比与第一阈值的乘积等于100%。
在本发明实施例中,所述流量控制的装置还包括:
第三判断模块,设置为在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;
第四判断模块,设置为在所述已限速用户的数量不大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
第二限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
其中,所述流量控制的装置还包括:
第五判断模块,设置为在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;
第三限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
这样,通过对已限速用户的数量的判断,可采用不同的限速方案,使得所有在线用户能够充分利用接入设备的总带宽,以提高用户体验。
在本发明实施例中,如图5所示,所述流量控制的装置还包括:
第六判断模块,设置为判断下线用户是否为已限速用户;
第七判断模块,设置为在所述下线用户为已限速用户的情况下,判断当
前已限速用户的数量是否大于第三阈值;
第八判断模块,设置为在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;
第四限速模块,设置为当所述下线用户不与另一已限速用户共同限速时,对当前已限速用户中一处于共同限速的已限速用户进行单独限速。
其中,所述流量控制的装置还包括:
第九判断模块,设置为在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;
第五限速模块,设置为当当前已限速用户的数量大于第一阈值时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
这样,在出现下线用户时,可及时对其他在线用户的实时流量速率进行调整,使得当前的所有在线用户能够充分利用接入设备的总带宽,以提高用户体验。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
上述技术方案能够统计出接入设备的在线用户中已限速用户的数量,并根据所有在线用户的总实时流量速率的情况,对在线用户中实时流量速率最大的未限速用户进行限速,既避免单一用户占用较大的带宽,又避免用户较少时,带宽得不到充分的利用,使得所有在线用户能够充分利用接入设备的总带宽,提高用户体验。
Claims (13)
- 一种流量控制的方法,包括:统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;判断所述已限速用户的数量是否大于第一阈值;在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;如果所述总实时流量速率大于第二阈值,对在线用户中实时流量速率最大的未限速用户进行限速。
- 根据权利要求1所述的流量控制的方法,其中,所述对在线用户中实时流量速率最大的未限速用户进行限速包括:将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;其中,所述预设百分比与第一阈值的乘积等于100%。
- 根据权利要求1所述的流量控制的方法,所述流量控制的方法还包括:在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;在所述已限速用户的数量不大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;如果所述总实时流量速率大于接入设备的总带宽,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
- 根据权利要求3所述的流量控制的方法,所述流量控制的方法还包括:在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;如果所述总实时流量速率大于接入设备的总带宽,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
- 根据权利要求1-4任一所述的流量控制的方法,所述流量控制的方法 还包括:当一在线用户下线后,判断所述下线用户是否为已限速用户;在所述下线用户为已限速用户的情况下,判断当前已限速用户的数量是否大于第三阈值;在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;如果所述下线用户不与另一已限速用户共同限速,对当前已限速用户中一处于共同限速的已限速用户进行单独限速。
- 根据权利要求5所述的流量控制的方法,所述流量控制的方法还包括:在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;如果当前已限速用户的数量大于第一阈值,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
- 一种流量控制的装置,包括:统计模块,设置为统计接入设备的在线用户中已限速用户的数量及每个在线用户的实时流量速率;第一判断模块,设置为判断所述已限速用户的数量是否大于第一阈值;第二判断模块,设置为在所述已限速用户的数量不大于第一阈值的情况下,判断所有在线用户的总实时流量速率是否大于第二阈值;第一限速模块,设置为当所述总实时流量速率大于第二阈值时,对在线用户中实时流量速率最大的未限速用户进行限速。
- 根据权利要求7所述的流量控制的装置,其中,所述第一限速模块包括:设置模块,设置为将所述实时流量速率最大的未限速用户的限速值设置为接入设备的总带宽的一预设百分比;其中,所述预设百分比与第一阈值的乘积等于100%。
- 根据权利要求7所述的流量控制的装置,所述流量控制的装置还包括:第三判断模块,设置为在所述已限速用户的数量大于第一阈值的情况下,判断所述已限速用户的数量是否大于第三阈值;第四判断模块,设置为在所述已限速用户的数量不大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;第二限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
- 根据权利要求9所述的流量控制的装置,所述流量控制的装置还包括:第五判断模块,设置为在所述已限速用户的数量大于第三阈值的情况下,判断所有在线用户的总实时流量速率是否大于接入设备的总带宽;第三限速模块,设置为当所述总实时流量速率大于接入设备的总带宽时,对未限速用户中实时流量速率最大的用户和已限速用户中实时流量速率最小的用户进行共同限速,限速值就是所述已限速用户中实时流量速率最小的用户所设置的限速值。
- 根据权利要求7-10任一所述的流量控制的装置,所述流量控制的装置还包括:第六判断模块,设置为判断下线用户是否为已限速用户;第七判断模块,设置为在所述下线用户为已限速用户的情况下,判断当前已限速用户的数量是否大于第三阈值;第八判断模块,设置为在当前已限速用户的数量大于第三阈值的情况下,判断所述下线用户是否与另一已限速用户共同限速;第四限速模块,设置为当所述下线用户不与另一已限速用户共同限速时,对当前已限速用户中一处于共同限速的已限速用户进行单独限速。
- 根据权利要求11所述的流量控制的装置,所述流量控制的装置还包括:第九判断模块,设置为在当前已限速用户的数量不大于第三阈值的情况下,判断当前已限速用户的数量是否大于第一阈值;第五限速模块,设置为当当前已限速用户的数量大于第一阈值时,对所有在线用户进行限速,限速值为接入设备的总带宽除以所有在线用户得到的流量速率。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~6中任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP15894726.7A EP3310093B1 (en) | 2015-06-09 | 2015-08-20 | Traffic control method and apparatus |
| DK15894726.7T DK3310093T3 (da) | 2015-06-09 | 2015-08-20 | Trafikstyringsfremgangsmåde og apparat |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510311763.2 | 2015-06-09 | ||
| CN201510311763.2A CN106254259B (zh) | 2015-06-09 | 2015-06-09 | 一种流量控制的方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016197458A1 true WO2016197458A1 (zh) | 2016-12-15 |
Family
ID=57502932
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/087687 Ceased WO2016197458A1 (zh) | 2015-06-09 | 2015-08-20 | 一种流量控制的方法及装置 |
Country Status (4)
| Country | Link |
|---|---|
| EP (1) | EP3310093B1 (zh) |
| CN (1) | CN106254259B (zh) |
| DK (1) | DK3310093T3 (zh) |
| WO (1) | WO2016197458A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106789723A (zh) * | 2016-12-20 | 2017-05-31 | 东软集团股份有限公司 | 多核网络转发限速的方法和装置 |
| CN111417145A (zh) * | 2019-01-04 | 2020-07-14 | 大唐移动通信设备有限公司 | 一种信息处理的方法及装置 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114070791B (zh) * | 2020-07-29 | 2023-09-05 | 中国移动通信集团安徽有限公司 | 数据流量的限速处理方法及装置 |
| CN113271257A (zh) * | 2020-08-03 | 2021-08-17 | 单中妹 | 采用中继设备的通信流量控制系统 |
| CN113347111B (zh) * | 2021-05-12 | 2023-04-07 | 金茂数字科技有限公司 | 基于用户体验的流量调整方法及管理系统 |
| CN113596050B (zh) * | 2021-08-04 | 2023-06-30 | 四川英得赛克科技有限公司 | 异常流量的分离过滤方法、系统、存储介质及电子设备 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080031212A1 (en) * | 2006-08-04 | 2008-02-07 | Nec Corporation | Wireless lan network system and load control method |
| CN101651967A (zh) * | 2009-09-21 | 2010-02-17 | 杭州华三通信技术有限公司 | 一种无线局域网中调整流量速度的方法和设备 |
| CN101730149A (zh) * | 2009-11-26 | 2010-06-09 | 福建星网锐捷网络有限公司 | 业务流处理方法和装置及接入点 |
| CN102802214A (zh) * | 2012-08-16 | 2012-11-28 | 中兴通讯股份有限公司 | 一种基于wlan网络的速率自适应的系统和方法 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080205358A1 (en) * | 2007-02-23 | 2008-08-28 | Nokia Corporation | Usage of network load information for rate adaptation purposes |
| CN100596237C (zh) * | 2007-07-05 | 2010-03-24 | 华为技术有限公司 | 扇区前向负载的度量方法及装置、控制方法及装置 |
| US8351331B2 (en) * | 2010-06-22 | 2013-01-08 | Microsoft Corporation | Resource allocation framework for wireless/wired networks |
| JP6104178B2 (ja) * | 2011-01-18 | 2017-03-29 | ノマディックス・インコーポレイテッドNomadix,Inc. | 通信システムネットワークにおけるグループ帯域幅管理のためのシステムおよび方法 |
| EP2785103A1 (en) * | 2013-03-28 | 2014-10-01 | British Telecommunications public limited company | Method and system for controlling traffic in a wireless lan |
-
2015
- 2015-06-09 CN CN201510311763.2A patent/CN106254259B/zh active Active
- 2015-08-20 EP EP15894726.7A patent/EP3310093B1/en active Active
- 2015-08-20 WO PCT/CN2015/087687 patent/WO2016197458A1/zh not_active Ceased
- 2015-08-20 DK DK15894726.7T patent/DK3310093T3/da active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080031212A1 (en) * | 2006-08-04 | 2008-02-07 | Nec Corporation | Wireless lan network system and load control method |
| CN101651967A (zh) * | 2009-09-21 | 2010-02-17 | 杭州华三通信技术有限公司 | 一种无线局域网中调整流量速度的方法和设备 |
| CN101730149A (zh) * | 2009-11-26 | 2010-06-09 | 福建星网锐捷网络有限公司 | 业务流处理方法和装置及接入点 |
| CN102802214A (zh) * | 2012-08-16 | 2012-11-28 | 中兴通讯股份有限公司 | 一种基于wlan网络的速率自适应的系统和方法 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106789723A (zh) * | 2016-12-20 | 2017-05-31 | 东软集团股份有限公司 | 多核网络转发限速的方法和装置 |
| CN106789723B (zh) * | 2016-12-20 | 2019-12-06 | 东软集团股份有限公司 | 多核网络转发限速的方法和装置 |
| CN111417145A (zh) * | 2019-01-04 | 2020-07-14 | 大唐移动通信设备有限公司 | 一种信息处理的方法及装置 |
| CN111417145B (zh) * | 2019-01-04 | 2021-11-30 | 大唐移动通信设备有限公司 | 一种信息处理的方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP3310093A4 (en) | 2018-06-20 |
| CN106254259A (zh) | 2016-12-21 |
| DK3310093T3 (da) | 2020-02-03 |
| EP3310093A1 (en) | 2018-04-18 |
| EP3310093B1 (en) | 2019-10-30 |
| CN106254259B (zh) | 2019-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016197458A1 (zh) | 一种流量控制的方法及装置 | |
| CN102088754B (zh) | 一种基于网络访问行为的无线局域网接入控制方法及系统 | |
| CN108647088A (zh) | 资源配置方法、装置、终端及存储介质 | |
| US20160366206A1 (en) | Platform for multiple device playout | |
| CN110831038B (zh) | 网络切片资源调度方法及装置 | |
| CN106412917A (zh) | 一种网络扩容方法及装置 | |
| CN105992233B (zh) | 网络业务的容量基线计算方法及装置 | |
| CN105828408A (zh) | 一种控制上网时间的方法和装置 | |
| CN105049298A (zh) | 一种云资源监控方法和系统 | |
| WO2023185818A1 (zh) | 设备确定方法、装置及通信设备 | |
| CN104427118B (zh) | 一种内容推荐的方法及移动终端 | |
| Zhu et al. | Optimal service rate in cognitive radio networks with different queue length information | |
| US20130346580A1 (en) | Apparatus and method for generating qos profile for supporting data distribution service in cyber-physical system | |
| CN105812437A (zh) | 一种业务分发方法、系统及相关装置 | |
| CN103856558A (zh) | 一种用于终端应用的数据处理方法和装置 | |
| Barakat et al. | Modelling IoT devices communication employing representative operation modes to reveal traffic generation characteristics | |
| CN105450480B (zh) | 一种信息处理方法和装置 | |
| US9871732B2 (en) | Dynamic flow control in multicast systems | |
| CN113938992A (zh) | 一种阈值确定方法及装置 | |
| CN108347579B (zh) | 带宽控制方法和装置 | |
| CN105610957A (zh) | 云系统及其数据同步方法 | |
| CN113840319B (zh) | 丢包率获取方法、网关覆盖范围获取方法、介质及设备 | |
| CN110868304B (zh) | 一种pcc策略下发方法及系统 | |
| CN110554916B (zh) | 基于分布式集群的风险指标计算方法及装置 | |
| WO2016206472A1 (zh) | 一种mac流量调度方法、装置、基站和计算机可读存储介质 |
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: 15894726 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2015894726 Country of ref document: EP |