CN104125269A - Method and device for rate limitation - Google Patents

Method and device for rate limitation Download PDF

Info

Publication number
CN104125269A
CN104125269A CN201410310802.2A CN201410310802A CN104125269A CN 104125269 A CN104125269 A CN 104125269A CN 201410310802 A CN201410310802 A CN 201410310802A CN 104125269 A CN104125269 A CN 104125269A
Authority
CN
China
Prior art keywords
application process
speed
information
bandwidth
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410310802.2A
Other languages
Chinese (zh)
Other versions
CN104125269B (en
Inventor
赵松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201410310802.2A priority Critical patent/CN104125269B/en
Publication of CN104125269A publication Critical patent/CN104125269A/en
Application granted granted Critical
Publication of CN104125269B publication Critical patent/CN104125269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种速度限制方法及装置,属于终端技术领域。所述方法包括:获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;根据应用进程信息和网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断各个应用进程中是否包括第一应用进程,第一应用进程为指定类型的应用进程;当各个应用进程中包括第一应用进程时,如果第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。本发明避免了应用驱动程序所产生的不稳定问题,而且提高了速度限制的效率,可以对网络带宽进行有效分配。

The invention discloses a speed limiting method and device, belonging to the technical field of terminals. The method includes: obtaining application process information currently in a network connection state and currently transmitted network data information; determining data transmission statistics information of each application process according to the application process information and network data information; Correspondence between processes, judging whether each application process includes the first application process, the first application process is an application process of a specified type; when each application process includes the first application process, if the data transmission of the first application process If the statistical information is less than the preset threshold, the speed of the second application process is limited. The invention avoids the instability problem caused by the application driver, improves the efficiency of speed limitation, and can effectively allocate the network bandwidth.

Description

速度限制方法及装置Speed limiting method and device

技术领域technical field

本发明涉及终端技术领域,特别涉及一种速度限制方法及装置。The present invention relates to the technical field of terminals, in particular to a speed limiting method and device.

背景技术Background technique

互联网是一个庞大的资源共享平台,尤其在P2P(Peer to Peer,点对点)模式的网络中,每台终端的地位都是对等的,终端能够同时作为服务器和客户端,在下载其他终端的网络数据的同时,也可以采用上传的方式为其他终端提供网络数据,以实现资源共享。而在终端上,各种应用进程共用同一网络带宽,若某一应用进程运行时占据了大量网络带宽,则将会影响其他应用进程的正常运行。基于这种情况,可以通过对各应用进程的网络数据交互过程进行速度限制,以动态调整各应用进程占用的网络带宽,避免应用之间的互相影响。The Internet is a huge resource sharing platform, especially in the P2P (Peer to Peer, point-to-point) network, the status of each terminal is equal, and the terminal can serve as a server and a client at the same time, downloading other terminal network At the same time as uploading data, it can also provide network data for other terminals to realize resource sharing. On the terminal, various application processes share the same network bandwidth. If a certain application process occupies a large amount of network bandwidth while running, it will affect the normal operation of other application processes. Based on this situation, the network bandwidth occupied by each application process can be dynamically adjusted by limiting the speed of the network data interaction process of each application process to avoid mutual influence between applications.

目前,现有技术提供了的解决方案包括:基于操作系统的驱动过滤层,通过驱动程序获取正在进行网络数据交互的应用进程信息,根据该应用进程信息的变化,对各应用进程进行限速,从而动态调整各应用进程占用的信道带宽。At present, the solutions provided by the prior art include: an operating system-based driver filtering layer, which obtains application process information that is interacting with network data through the driver program, and limits the speed of each application process according to changes in the application process information. Thus, the channel bandwidth occupied by each application process is dynamically adjusted.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

由于对应用进程信息的获取过程涉及驱动程序,而驱动程序是通过相关数据传输协议处理网络中的数据传输的模块,因此根据不同数据传输协议将需要运行不同的驱动程序进行获取,其实现难度较大,并且驱动程序存在不稳定因素,使得限速过程的稳定性较差。Since the acquisition process of application process information involves the driver program, and the driver program is a module that handles data transmission in the network through relevant data transmission protocols, it is necessary to run different drivers for acquisition according to different data transmission protocols, and its implementation is more difficult. Large, and there are unstable factors in the driver, which makes the stability of the speed limit process poor.

发明内容Contents of the invention

为了解决现有技术的问题,本发明实施例提供了一种速度限制方法及装置。所述技术方案如下:In order to solve the problems in the prior art, embodiments of the present invention provide a speed limiting method and device. Described technical scheme is as follows:

一方面,提供了一种速度限制方法,所述方法包括:In one aspect, a speed limiting method is provided, the method comprising:

获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;根据该应用进程信息和该网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括第一应用进程,该第一应用进程为指定类型的应用进程;当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。Obtain the application process information currently in the network connection state and the currently transmitted network data information; determine the data transmission statistics of each application process according to the application process information and the network data information; Corresponding relationship of each application process to determine whether the first application process is included in each application process, and the first application process is an application process of a specified type; when the first application process is included in each application process, if the data of the first application process The transmission statistics information is less than the preset threshold, and the speed limit is imposed on the second application process.

另一方面,提供了一种速度限制装置,所述装置包括:In another aspect, there is provided a speed limiting device comprising:

信息获取模块,用于获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;信息确定模块,用于根据该网络数据信息和该应用进程信息,确定各个应用进程的数据传输统计信息;应用进程判断模块,用于根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括第一应用进程,该第一应用进程为指定类型的应用进程;速度限制模块,当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,用于对第二应用进程进行速度限制。The information obtaining module is used to obtain the application process information currently in the network connection state and the currently transmitted network data information; the information determination module is used to determine the data transmission statistics information of each application process according to the network data information and the application process information The application process judging module is used to judge whether each application process includes a first application process according to the stored application process type and the corresponding relationship between the application processes, and the first application process is an application process of a specified type; speed limit A module, when the various application processes include the first application process, if the data transmission statistics information of the first application process is less than a preset threshold, for limiting the speed of the second application process.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

通过获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括指定类型的应用进程;当该各个应用进程中包括指定类型的应用进程时,若该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。本发明实施例提供的技术方案,通过监听各个应用进程的数据传输,确定是否有第一应用进程的数据传输统计信息小于预设阈值,由于预设阈值用于保证第一应用进程的正常运行状态,因此,可以确定是否有指定类型的应用进程处于非正常运行状态,从而对第二应用进程进行速度限制,不仅避免了应用驱动程序所产生的不稳定问题,而且提高了速度限制的效率,可以对网络带宽进行有效分配,提升了用户的网络体验。By obtaining the application process information currently in the network connection state and the currently transmitted network data information, determine the data transmission statistics of each application process; according to the stored application process type and the corresponding relationship between the application process, determine the application process. Whether to include application processes of a specified type; when each application process includes an application process of a specified type, if the data transmission statistics of the first application process is less than a preset threshold, limit the speed of the second application process. In the technical solution provided by the embodiment of the present invention, by monitoring the data transmission of each application process, it is determined whether the data transmission statistics information of the first application process is less than the preset threshold value, because the preset threshold value is used to ensure the normal operation state of the first application process , therefore, it can be determined whether an application process of a specified type is in an abnormal running state, so as to limit the speed of the second application process, which not only avoids the instability problem caused by the application driver, but also improves the efficiency of the speed limit, which can Effective allocation of network bandwidth improves the user's network experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的速度限制方法流程图;Fig. 1 is a flow chart of the speed limit method provided by the embodiment of the present invention;

图2是本发明实施例提供的速度限制方法流程图;Fig. 2 is a flow chart of the speed limit method provided by the embodiment of the present invention;

图3是本发明实施例提供的速度限制装置结构示意图。Fig. 3 is a schematic structural diagram of a speed limiting device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1是本发明实施例提供的速度限制方法流程图。参见图1,所述方法流程包括:Fig. 1 is a flowchart of a speed limit method provided by an embodiment of the present invention. Referring to Fig. 1, the method flow includes:

101、获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息。101. Obtain application process information currently in a network connection state and currently transmitted network data information.

102、根据该应用进程信息和该网络数据信息,确定各个应用进程的数据传输统计信息。102. Determine data transmission statistical information of each application process according to the application process information and the network data information.

103、根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括第一应用进程,该第一应用进程为指定类型的应用进程。103. According to the stored correspondence between application process types and application processes, determine whether each application process includes a first application process, where the first application process is an application process of a specified type.

104、当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。104. When the various application processes include the first application process, if the data transmission statistics information of the first application process is less than a preset threshold, limit the speed of the second application process.

在本发明提供的另一实施例中,获取当前处于网络连接状态的应用进程信息包括:调用指定系统API,枚举当前处于网络连接状态的应用进程信息,该应用进程信息包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项。In another embodiment provided by the present invention, obtaining the application process information currently in the network connection state includes: calling a specified system API to enumerate the application process information currently in the network connection state, the application process information includes process ID, process name , source port number, source IP address, destination port number, and destination IP address.

在本发明提供的另一实施例中,获取当前传输的网络数据信息包括:对当前传输的网络数据包的包头进行分析,获取该网络数据包所承载数据的大小以及该网络数据包的传输对象信息。In another embodiment provided by the present invention, obtaining the currently transmitted network data information includes: analyzing the packet header of the currently transmitted network data packet, obtaining the size of the data carried by the network data packet and the transmission object of the network data packet information.

在本发明提供的另一实施例中,根据该应用进程信息和该网络数据信息,确定各个应用进程的数据传输统计信息包括:根据该应用进程信息中进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项和该网络数据包的传输对象信息,确定各个应用进程信息对应的网络数据包的数据大小;根据各个应用进程信息对应的网络数据包的数据大小,获取所述各个应用进程的传输速度。In another embodiment provided by the present invention, according to the application process information and the network data information, determining the data transmission statistics information of each application process includes: according to the application process information in the process ID, process name, source port number, source Any one of the IP address, the target port number and the target IP address and the transmission object information of the network data packet determine the data size of the network data packet corresponding to each application process information; according to the data of the network data packet corresponding to each application process information Size, to obtain the transmission speed of each application process.

在本发明提供的另一实施例中,当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制包括:当该第一应用进程为浏览器类进程时,如果该浏览器类进程的数据传输统计信息小于第一预设阈值时,对该第二应用进程进行速度限制;或,当该第一应用进程为在线游戏类进程时,如果该游戏类进程的数据传输统计信息小于第二预设阈值时,对该第二应用进程进行速度限制;或,当该第一应用进程为在线影音类进程时,如果该在线影音类进程的数据传输统计信息小于第三预设阈值时,对该第二应用进程进行速度限制;其中,第一预设阈值小于第二预设阈值和第三预设阈值。In another embodiment provided by the present invention, when the various application processes include the first application process, if the data transmission statistics information of the first application process is less than a preset threshold, limiting the speed of the second application process includes: When the first application process is a browser-type process, if the data transmission statistics of the browser-type process is less than the first preset threshold, limit the speed of the second application process; or, when the first application process When it is an online game process, if the data transmission statistics of the game process is less than the second preset threshold, limit the speed of the second application process; or, when the first application process is an online audio-visual process, If the data transmission statistic information of the online audio-visual process is less than a third preset threshold, a speed limit is imposed on the second application process; wherein, the first preset threshold is smaller than the second preset threshold and the third preset threshold.

在本发明提供的另一实施例中,当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制之前,所述方法还包括:对当前网络带宽进行测试,得到当前下载带宽和当前上传带宽;在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽调整该第二应用进程的传输速度。In another embodiment provided by the present invention, when the various application processes include the first application process, if the data transmission statistics information of the first application process is less than the preset threshold, before the speed limit is imposed on the second application process, The method further includes: testing the current network bandwidth to obtain the current download bandwidth and the current upload bandwidth; in the process of limiting the speed of the second application process, adjusting the speed of the second application process according to the current download bandwidth and the current upload bandwidth transfer speed.

在本发明提供的另一实施例中,在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽,调整该第二应用进程的传输速度包括:当该第一应用进程为浏览器类进程时,将该第二应用进程的上传速度降低至该当前上传带宽的第一比例,将该第二应用进程的下载速度降低至该当前下载带宽的第二比例;或,当该第一应用进程为在线游戏类进程时,将该第二应用进程的上传速度降低至该当前上传带宽的第三比例,将该第二应用进程的下载速度降低至该当前下载带宽的第四比例;或,当该第一应用进程为在线影音类进程时,将该第二应用进程的上传速度降低至该当前上传带宽的第五比例,将该第二应用进程的下载速度降低至该当前下载带宽的第六比例。In another embodiment provided by the present invention, in the process of limiting the speed of the second application process, adjusting the transmission speed of the second application process according to the current download bandwidth and the current upload bandwidth includes: when the first application process When it is a browser-type process, reduce the upload speed of the second application process to the first ratio of the current upload bandwidth, and reduce the download speed of the second application process to the second ratio of the current download bandwidth; or, when When the first application process is an online game process, reduce the upload speed of the second application process to the third ratio of the current upload bandwidth, and reduce the download speed of the second application process to the fourth ratio of the current download bandwidth. or, when the first application process is an online audio-visual process, reduce the upload speed of the second application process to the fifth ratio of the current upload bandwidth, and reduce the download speed of the second application process to the current The sixth proportion of download bandwidth.

通过获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括指定类型的应用进程;当该各个应用进程中包括指定类型的应用进程时,若该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。本发明实施例提供的技术方案,通过监听各个应用进程的数据传输,确定是否有第一应用进程的数据传输统计信息小于预设阈值,由于预设阈值用于保证第一应用进程的正常运行状态,因此,可以确定是否有指定类型的应用进程处于非正常运行状态,从而对第二应用进程进行速度限制,不仅避免了应用驱动程序所产生的不稳定问题,而且提高了速度限制的效率,可以对网络带宽进行有效分配,提升了用户的网络体验。By obtaining the application process information currently in the network connection state and the currently transmitted network data information, determine the data transmission statistics of each application process; according to the stored application process type and the corresponding relationship between the application process, determine the application process. Whether to include application processes of a specified type; when each application process includes an application process of a specified type, if the data transmission statistics of the first application process is less than a preset threshold, limit the speed of the second application process. In the technical solution provided by the embodiment of the present invention, by monitoring the data transmission of each application process, it is determined whether the data transmission statistics information of the first application process is less than the preset threshold value, because the preset threshold value is used to ensure the normal operation state of the first application process , therefore, it can be determined whether an application process of a specified type is in an abnormal running state, so as to limit the speed of the second application process, which not only avoids the instability problem caused by the application driver, but also improves the efficiency of the speed limit, which can Effective allocation of network bandwidth improves the user's network experience.

上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.

图2是本发明实施例提供的速度限制方法流程图。参见图2,所述方法流程包括:Fig. 2 is a flowchart of a speed limit method provided by an embodiment of the present invention. Referring to Figure 2, the method flow includes:

201、调用指定系统API(Application Program Interface,应用程序接口),获取当前处于网络连接状态的应用进程信息,该应用进程信息包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中至少一项。201. Call the specified system API (Application Program Interface, application program interface) to obtain the application process information currently in the network connection state. The application process information includes process ID, process name, source port number, source IP address, target port number and At least one of the target IP addresses.

其中,指定系统API是指由终端操作系统提供的具有扫描应用进程功能的API。终端通过调用该指定系统API,可以枚举当前系统下处于网络连接的所有应用进程信息,包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址等。Wherein, the specified system API refers to an API provided by a terminal operating system with a function of scanning application processes. By calling the specified system API, the terminal can enumerate all application process information connected to the network under the current system, including process ID, process name, source port number, source IP address, destination port number, and destination IP address.

通过这个步骤201,可以获知当前正进行网络数据传输的各个应用进程,并获知各个应用进程的具体信息,如进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址,当然,该应用进程信息还可以包括一些其他用于表示该应用进程的运行状态的信息,在此不做赘述。Through this step 201, each application process currently carrying out network data transmission can be known, and specific information of each application process can be obtained, such as process ID, process name, source port number, source IP address, target port number and target IP address, Of course, the application process information may also include some other information indicating the running status of the application process, which will not be described here.

202、对当前传输的网络数据包的包头进行分析,获取该网络数据包所承载数据的大小以及该网络数据包的传输对象信息。202. Analyze the packet header of the currently transmitted network data packet, and obtain the size of the data carried by the network data packet and the transmission object information of the network data packet.

其中,该网络数据包的包头可以是指终端所接收到的网络数据包的IP头或TCP头等,还可以是指终端所发送的网络数据包的IP头或TCP头等,该包头中包含有网络数据包的类型信息、包内所承载数据的数据大小、传输对象及发送端的地址信息等,当然,对于使用其他网络协议进行传输的网络数据包来说,其包头类型有可能不同,如UDP头等等,在此不做赘述。Wherein, the packet header of the network data packet may refer to the IP header or TCP header of the network data packet received by the terminal, and may also refer to the IP header or TCP header of the network data packet sent by the terminal. The type information of the data packet, the data size of the data carried in the packet, the transmission object and the address information of the sender, etc. Of course, for network data packets transmitted using other network protocols, the header types may be different, such as UDP headers, etc. Wait, don't repeat them here.

为了实现对网络数据包的分析,可以通过原始套接字(row socket)将网卡设置成混杂模式,以进行基于源套接字的网络监听。在创建了原始套接字后,需要通过setsockopt()函数(用于任意类型、任意状态套接口的设置选项值)来设置包头(如IP头)操作选项,然后再通过bind()函数(用于将套接字与指定端口相连)将原始套接字绑定到终端的本地网卡。为了让原始套接字能接收所有类型的数据包,还需要通过ioctlsocket()函数(用于对套接口进行设置)来进行设置,而且还可以指定是否亲自处理包头。至此,就可以开始对网络数据包进行监听,从而对监听到的网络数据包进行分析。对数据包的获取可以如流式套接字或数据报套接字那样通过recv()函数来完成。但是与其他两种套接字不同的是,原始套接字此时捕获到的网络数据包并不仅仅是单纯的数据信息,而是包含有IP头、TCP头等包头的最原始的数据信息,由于在网络上传输的网络数据包均经过了网络层和传输层的打包,因此需要根据其附加的帧头对网络数据包进行分析,这些数据信息保留了网络数据包在网络传输时的原貌。In order to analyze the network data packets, the network card can be set to promiscuous mode through the original socket (row socket), so as to perform network monitoring based on the source socket. After creating the original socket, you need to set the packet header (such as IP header) operation options through the setsockopt() function (used to set the option value of any type and any state socket), and then use the bind() function (use to connect the socket to the specified port) to bind the raw socket to the local network card of the terminal. In order for the raw socket to receive all types of data packets, it needs to be set through the ioctlsocket() function (used to set the socket), and it can also be specified whether to process the packet header by itself. At this point, the monitoring of network data packets can be started, so as to analyze the monitored network data packets. The acquisition of data packets can be done through the recv() function like a stream socket or a datagram socket. However, unlike the other two sockets, the network data packets captured by the original socket at this time are not just pure data information, but the most original data information including IP headers, TCP headers and other headers. Since the network data packets transmitted on the network are packaged by the network layer and the transport layer, it is necessary to analyze the network data packets according to the additional frame headers. These data information retain the original appearance of the network data packets during network transmission.

203、根据该应用进程信息中进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项和该网络数据包的传输对象信息,确定各个应用进程信息对应的网络数据包的数据大小。203. According to any one of the process ID, process name, source port number, source IP address, target port number, and target IP address in the application process information and the transmission object information of the network data packet, determine the information corresponding to each application process information. The data size of the network packet.

该网络数据包的包头中所携带的传输对象信息可以是指进程ID、进程名称以及目标端口号等上述任一种应用进程信息,则以目标端口号为例进行说明,该步骤203的过程可以包括:当确定所传输的网络数据包的传输对象信息为第一目标端口号时,判断已获取到的应用进程信息中的是否包括第一目标端口号,如果是,则确定该第一目标端口号对应的第一应用进程,根据该第一目标端口号对应的网络数据包的数据大小,获取该第一应用进程所传输的所有数据包的数据大小。The transmission object information carried in the packet header of the network data packet can refer to any of the above-mentioned application process information such as process ID, process name and target port number, and then the target port number is used as an example for illustration. Including: when determining that the transmission object information of the transmitted network data packet is the first target port number, judging whether the obtained application process information includes the first target port number, and if so, determining the first target port number The first application process corresponding to the first application process obtains the data size of all data packets transmitted by the first application process according to the data size of the network data packet corresponding to the first target port number.

需要说明的是,对于一个应用进程来说,其所上传或下载的网络数据包可以有多个,此时,为了计算该应用进程所传输的数据大小,可以分别将上传的数据大小相加,并将下载的数据大小相加,以获知该应用进程真正占用的带宽。It should be noted that, for an application process, there may be multiple network data packets uploaded or downloaded. At this time, in order to calculate the size of the data transmitted by the application process, the uploaded data sizes can be added together, And add up the downloaded data size to know the actual bandwidth occupied by the application process.

204、根据各个应用进程信息对应的网络数据包的数据大小,获取所述各个应用进程的传输速度。204. Acquire the transmission speed of each application process according to the data size of the network data packet corresponding to the information of each application process.

具体地,应用进程的传输速度可以是指该应用进程在某一时刻的速度峰值,也可以是指该应用进程在一指定时段内的速度均值。相应地,该步骤204可以包括以下两种不同的过程:(1)每隔第一预设时长,统计该应用进程信息对应的网络数据包的数据大小,将在该第一预设时长内该应用进程的最大传输速度(即某一时刻所传输的数据大小)作为该应用进程的传输速度。(2)每隔第二预设时长,统计该应用进程信息对应的网络数据包的数据大小,将该第二预设时长内该应用进程所发送或接收的数据大小总和作为该应用进程的传输速度。当然,该传输速度计算方法仅为基础的举例,其具体算法还可以是根据分析包头所进行的其他算法,在此不做具体限定。而进一步地,对于不同的应用进程,可以有不同的传输速度计算方法,在此不做具体限定。Specifically, the transmission speed of the application process may refer to the peak speed of the application process at a certain moment, or may refer to the average speed of the application process within a specified period of time. Correspondingly, this step 204 may include the following two different processes: (1) Every first preset time length, the data size of the network data packet corresponding to the application process information is counted, and the The maximum transmission speed of the application process (that is, the data size transmitted at a certain moment) is used as the transmission speed of the application process. (2) Every second preset time length, the data size of the network data packet corresponding to the application process information is counted, and the sum of the data size sent or received by the application process within the second preset time length is taken as the transmission of the application process speed. Of course, the transmission speed calculation method is only a basic example, and its specific algorithm can also be other algorithms based on analyzing the packet header, which is not specifically limited here. Furthermore, for different application processes, there may be different methods for calculating the transmission speed, which are not specifically limited here.

205、根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括第一应用进程,该第一应用进程为指定类型的应用进程;205. According to the stored application process type and the corresponding relationship between the application processes, determine whether each application process includes a first application process, and the first application process is an application process of a specified type;

如果是,执行步骤206;If yes, execute step 206;

如果否,结束。If not, end.

其中,服务器预先存储的应用进程类型和应用进程之间的对应关系,该对应关系可以用于确定各个应用进程的类型,应用进程类型可以包括指定类型和非指定类型,如,非指定类型可以包括杀毒软件类、文档类等,指定类型可以包括在线游戏类、在线影音类、浏览器类等等。在本发明实施例中,该指定类型为运行状态可能会受到第二应用进程的网络数据传输影响的类别,因此,需要判断当前处于网络数据交互的应用进程中是否具有指定类型的应用进程,才能够确定是否需要对第二应用进程进行限速等处理。进一步地,该指定类型也可以是指受到第二应用进程的网络数据传输影响较大的类别,对于一些本身数据传输较少的应用来说,其也会受到第二应用进程的网络数据传输影响,但是,对其运行的影响可能较小,因此,对这类应用进程,可以不做考虑。当然,具体哪些应用进程属于指定类型,可以由服务器默认设置,或由用户根据自身需求进行设置。如,在设置过程中,为了保证杀毒软件等的正常更新,也可以将杀毒软件类设置为指定类型的一种。Wherein, the corresponding relationship between the application process type and the application process stored in the server in advance can be used to determine the type of each application process. The application process type can include specified type and non-specified type. For example, the non-specified type can include Antivirus software, documents, etc. The specified types may include online games, online audio and video, browsers, etc. In the embodiment of the present invention, the specified type is a category whose running status may be affected by the network data transmission of the second application process. Therefore, it is necessary to determine whether there is an application process of the specified type among the application processes currently interacting with network data. It can be determined whether processing such as speed limit needs to be performed on the second application process. Further, the specified type may also refer to a category that is greatly affected by the network data transmission of the second application process. For some applications that have less data transmission, they will also be affected by the network data transmission of the second application process. , however, the impact on its operation may be small, so this type of application process can be ignored. Of course, which specific application processes belong to the specified type can be set by default by the server, or set by the user according to their own needs. For example, in the setting process, in order to ensure the normal update of antivirus software, etc., the antivirus software category can also be set as one of the specified types.

在本发明实施例中,应用进程类型和应用进程之间的对应关系可以采用白名单的形式,具体地,为应用进程类型和应用进程名称(或应用进程ID)等的对应关系。也即是,当确定有一应用进程处于网络连接状态,则根据该应用进程名称(或应用进程ID),从应用进程类型和应用进程之间的对应关系中,获取该应用进程对应的应用进程类型,判断该应用进程类型是否为指定类型,如果应用进程类型是指定类型,则确定该应用进程为第一应用进程,如果应用进程类型不是指定类型,则确定该应用进程不是第一应用进程,如果当前处于网络连接状态的应用进程中不包含第一应用进程,则确定无需对第二应用进程进行限速,结束。In this embodiment of the present invention, the correspondence between application process types and application processes may be in the form of a whitelist, specifically, the correspondence between application process types and application process names (or application process IDs). That is, when it is determined that an application process is in a network connection state, the application process type corresponding to the application process is obtained from the correspondence between the application process type and the application process according to the application process name (or application process ID) , judging whether the application process type is a specified type, if the application process type is the specified type, then determine that the application process is the first application process, if the application process type is not the specified type, then determine that the application process is not the first application process, if The application process currently in the network connection state does not include the first application process, then it is determined that there is no need to limit the speed of the second application process, and the process ends.

206、对当前网络带宽进行测试,得到当前下载带宽和当前上传带宽。206. Test the current network bandwidth to obtain the current download bandwidth and the current upload bandwidth.

其中,对当前网络带宽进行测试的过程中,需要分别测试当前下载带宽和当前上传带宽,对应的测试方法包括以下(1)-(2)的步骤:Among them, in the process of testing the current network bandwidth, the current download bandwidth and the current upload bandwidth need to be tested respectively, and the corresponding test method includes the following steps (1)-(2):

(1)对于当前下载带宽的测试,通过终端进行下载目标测试文件操作,并重复该下载操作若干次,以最终确定当前下载带宽。(1) For the test of the current download bandwidth, the operation of downloading the target test file is performed through the terminal, and the download operation is repeated several times to finally determine the current download bandwidth.

(2)对于当前上传带宽的测试,通过在终端内实现ping指令协议测试相应目标网络上传地址回环时间,即可得到当前上传带宽。(2) For the test of the current upload bandwidth, the current upload bandwidth can be obtained by implementing the ping command protocol in the terminal to test the loopback time of the upload address of the corresponding target network.

需要说明的是,步骤206可以在确定具有第一应用进程时进行,还可以在启动了对应用进程信息和网络数据信息的获取时进行,当然,该具体进行时机还可以是其他时机,在此不做赘述。通过测试带宽,使得终端获知当前所处网络环境中终端的实际带宽能力。It should be noted that step 206 may be performed when it is determined that there is a first application process, and may also be performed when the acquisition of application process information and network data information is started. Of course, this specific timing may also be other timings, here I won't go into details. By testing the bandwidth, the terminal is made to know the actual bandwidth capability of the terminal in the current network environment.

207、当该各个应用进程中包括第一应用进程时,如果该第一应用进程的传输速度小于预设阈值,对第二应用进程进行速度限制。207. When the various application processes include the first application process, if the transmission speed of the first application process is less than a preset threshold, limit the speed of the second application process.

其中,在步骤207中所提及的传输速度即是数据传输统计信息,在网络数据传输过程中,该数据传输统计信息决定了该应用进程占用的网络带宽。该预设阈值是指针对各个指定类型的应用进程设定的,该预设阈值是指能够保证正常运行的速度数值。如,对于某个在线影音类的应用进程,其对应的预设阈值可以为500k/s,也即是,当该应用进程的数据传输统计信息达到500k/s时,才能够正常运行,不影响用户的观看体验,则当该应用进程的数据统计信息小于500k/s时,需要对第二应用进程进行速度限制,从而为该在线影音类应用进程让行。Wherein, the transmission speed mentioned in step 207 is data transmission statistical information, and during network data transmission, the data transmission statistical information determines the network bandwidth occupied by the application process. The preset threshold is set for each specified type of application process, and the preset threshold refers to a speed value that can guarantee normal operation. For example, for an online audio-visual application process, the corresponding preset threshold can be 500k/s, that is, when the data transmission statistics of the application process reach 500k/s, it can run normally without affecting For the viewing experience of the user, when the statistical information of the application process is less than 500k/s, it is necessary to limit the speed of the second application process, so as to give way to the online audio-visual application process.

在本发明实施例中,第二应用进程是指可以进行速度限制的对象,该速度限制装置具有对第二应用进程的传输速度进行限制的权限。该速度限制装置可以调用第二应用进程的端口,并对端口进行速度限制等设置,以实现对第二应用进程的速度限制。当然,该速度限制可以包括对上传速度的限制以及下载速度的分别限制,也可以是对上传速度和下载速度之和,也即是该第二应用进程的传输速度进行限制,在此不做具体限定。In the embodiment of the present invention, the second application process refers to an object capable of limiting the speed, and the speed limiting device has the authority to limit the transmission speed of the second application process. The speed limiting device can call the port of the second application process, and set the speed limit on the port, so as to realize the speed limit of the second application process. Of course, the speed limit may include a limit on the upload speed and a limit on the download speed respectively, or it may be a limit on the sum of the upload speed and the download speed, that is, the transmission speed of the second application process, which will not be described in detail here. limited.

在本实施例中提供的速度限制方法中,不同类型的第一应用进程对网络带宽的需求也不同,因此,可以根据该第一应用程序对网络带宽的不同需求,对该第二应用进程进行限制,可以使速度限制更有针对性,对于网络带宽的分配也更有效。为了进一步说明,仅以本实施例中的指定类型为浏览器类、在线游戏类及在线影音类分别进行说明。In the speed limit method provided in this embodiment, different types of first application processes have different requirements for network bandwidth, therefore, the second application process can be controlled according to the different requirements of the first application program for network bandwidth. Limits can make the speed limit more targeted and more effective for the allocation of network bandwidth. For further explanation, only the designated types in this embodiment are browsers, online games, and online video and audio.

步骤207“当该各个应用进程中包括第一应用进程时,如果该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制”,可以包括下述步骤207a、207b和207c中的一项或多项:Step 207 "When the various application processes include the first application process, if the data transmission statistics of the first application process is less than the preset threshold, limit the speed of the second application process", may include the following steps 207a, 207b and one or more of 207c:

207a、当该第一应用进程为浏览器类进程时,如果该浏览器类进程的数据传输统计信息小于第一预设阈值时,对该第二应用进程进行速度限制。207a. When the first application process is a browser-type process, if the data transmission statistics information of the browser-type process is less than a first preset threshold, limit the speed of the second application process.

其中,该第一预设阈值可以针对该浏览器类进程设定,当浏览器类进程的数据传输统计信息达到该第一预设阈值时,该浏览器类进程能够保证正常运行。Wherein, the first preset threshold can be set for the browser-type process, and when the data transmission statistics information of the browser-type process reaches the first preset threshold, the browser-type process can guarantee normal operation.

需要说明的是,若该浏览器类进程的数据传输统计信息小于第一预设阈值时,可以根据当前网络的实际带宽能力,分别对该第二应用进程的上传带宽和下载带宽的占用进行速度限制。该步骤207a具体包括:根据当前网络上传带宽,将该第二应用进程的上传速度降低至该当前上传带宽的第一比例。根据当前网络下载带宽,将该第二应用进程的下载速度降低至该当前下载带宽的第二比例。It should be noted that if the data transmission statistics information of the browser-type process is less than the first preset threshold, the upload bandwidth and download bandwidth occupancy of the second application process can be speeded up according to the actual bandwidth capacity of the current network. limit. This step 207a specifically includes: according to the current network upload bandwidth, reducing the upload speed of the second application process to a first ratio of the current upload bandwidth. According to the current network download bandwidth, the download speed of the second application process is reduced to a second ratio of the current download bandwidth.

其中,该第一比例和第二比例可以取相等数值也可以取不相等的数值,可以根据上传和下载的优先程度确定,优选地,可以将第一比例设置的大于第二比例,以确保当前终端上第二应用进程的下载。为了实现有效的让行,需要以当前实际带宽能力为基准,对速度进行限制,提高了速度限制的效率。Wherein, the first ratio and the second ratio can take equal values or unequal values, which can be determined according to the priority of uploading and downloading. Preferably, the first ratio can be set larger than the second ratio to ensure that the current Downloading of the second application process on the terminal. In order to realize effective yielding, it is necessary to limit the speed based on the current actual bandwidth capability, which improves the efficiency of the speed limit.

207b、当该第一应用进程为在线游戏类进程时,如果该游戏类进程的数据传输统计信息小于第二预设阈值时,对该第二应用进程进行速度限制。207b. When the first application process is an online game process, if the data transmission statistics of the game process is less than a second preset threshold, limit the speed of the second application process.

其中,该第二预设阈值可以针对该在线游戏类进程设定,当在线游戏类进程的数据传输统计信息达到该第二预设阈值时,该在线游戏类进程能够保证正常运行。Wherein, the second preset threshold can be set for the online game process, and when the data transmission statistics of the online game process reaches the second preset threshold, the online game process can guarantee normal operation.

该步骤207b具体包括:当该第一应用进程为在线游戏类进程时,根据当前网络上传带宽,将该第二应用进程的上传速度降低至该当前上传带宽的第三比例。当该第一应用进程为在线游戏类进程时,根据当前网络下载带宽,将该第二应用进程的下载速度降低至该当前下载带宽的第四比例。The step 207b specifically includes: when the first application process is an online game process, reducing the upload speed of the second application process to a third ratio of the current upload bandwidth according to the current network upload bandwidth. When the first application process is an online game process, according to the current network download bandwidth, the download speed of the second application process is reduced to a fourth ratio of the current download bandwidth.

其中,该第三比例和第四比例可以取相等数值也可以取不相等的数值,可以根据上传和下载的优先程度确定,优选地,可以将第三比例设置的大于第四比例,以确保当前终端上第二应用进程的下载。为了实现有效的让行,需要以当前实际带宽能力为基准,对速度进行限制,提高了速度限制的效率。Wherein, the third ratio and the fourth ratio can take equal values or unequal values, which can be determined according to the priority of uploading and downloading. Preferably, the third ratio can be set larger than the fourth ratio to ensure that the current Downloading of the second application process on the terminal. In order to realize effective yielding, it is necessary to limit the speed based on the current actual bandwidth capability, which improves the efficiency of the speed limit.

207c、当该第一应用进程为在线影音类进程时,如果该在线影音类进程的数据传输统计信息小于第三预设阈值时,对该第二应用进程进行速度限制。207c. When the first application process is an online audio-visual process, if the data transmission statistics of the online audio-visual process is less than a third preset threshold, limit the speed of the second application process.

其中,该第三预设阈值可以针对该在线影音类进程设定,当在线影音类进程的数据传输统计信息达到该第三预设阈值时,该在线影音类进程能够保证正常运行。具体地,该步骤207c包括:当该第一应用进程为在线影音类进程时,根据当前网络上传带宽,将该第二应用进程的上传速度降低至该当前上传带宽的第五比例。当该第一应用进程为在线影音类进程时,根据当前网络下载带宽,将该第二应用进程的下载速度降低至该当前下载带宽的第六比例。Wherein, the third preset threshold can be set for the online audiovisual process, and when the data transmission statistics of the online audiovisual process reaches the third preset threshold, the online audiovisual process can guarantee normal operation. Specifically, the step 207c includes: when the first application process is an online audio-visual process, according to the current upload bandwidth of the network, the upload speed of the second application process is reduced to a fifth ratio of the current upload bandwidth. When the first application process is an online audio-visual process, according to the current network download bandwidth, the download speed of the second application process is reduced to a sixth ratio of the current download bandwidth.

其中,该第五比例和第六比例可以取相等数值也可以取不相等的数值,可以根据上传和下载的优先程度确定,优选地,可以将第五比例设置的大于第六比例,以确保当前终端上第二应用进程的下载。为了实现有效的让行,需要以当前实际带宽能力为基准,对速度进行限制,提高了速度限制的效率。Wherein, the fifth ratio and the sixth ratio can take equal values or unequal values, which can be determined according to the priority of uploading and downloading. Preferably, the fifth ratio can be set larger than the sixth ratio to ensure that the current Downloading of the second application process on the terminal. In order to realize effective yielding, it is necessary to limit the speed based on the current actual bandwidth capability, which improves the efficiency of the speed limit.

需要说明的是,对于上述步骤207a-207c中的第一预设阈值、第二预设阈值和第三预设阈值来说,由于浏览器类进程在正常运行状态下所需的带宽较小,因此,第一预设阈值可以小于第二预设阈值和第三预设阈值,而第二预设阈值和第三预设阈值之间的大小关系可以为任意关系,在此对各个阈值之间的大小关系不作具体限定。It should be noted that, for the first preset threshold, the second preset threshold and the third preset threshold in the above-mentioned steps 207a-207c, since the bandwidth required by the browser-type process in a normal running state is relatively small, Therefore, the first preset threshold can be smaller than the second preset threshold and the third preset threshold, and the size relationship between the second preset threshold and the third preset threshold can be any relationship, here between the various thresholds The size relationship of is not specifically limited.

在本实施例中提供的速度限制方法中,根据不同应用进程类型,分别设置速度限制比例,可以使对该第二应用进程的速度限制更灵活,对于网络带宽的分配也更准确。In the speed limit method provided in this embodiment, setting speed limit ratios respectively according to different application process types can make the speed limit for the second application process more flexible and allocate network bandwidth more accurately.

需要说明的是,进一步地,步骤201-207是对于只有一个第一应用进程处于运行状态的场景进行说明。事实上,还可以有多种指定类型的第一应用进程同时处于运行状态的场景,对于这种场景,可以根据该多个第一应用进程的数据传输统计信息,以及当前网络的实际带宽能力,对该第二应用进程进行速度限制。可选地,还可以为该多个第一应用进程预留出一定的网络带宽,使得多个第一应用进程之间可以竞争该预留的网络带宽。具体地,对于该竞争可以是根据为该多种第一应用进程的优先级的方式进行,为优先级较高的第一应用进程分配较多的网络带宽,而为优先级较低的第一应用进程分配较少的网络带宽。一般地,用户可以根据自身需求设置第一应用进程的优先级,服务器再根据每个第一应用进程的优先级为其分配相应的网络带宽,如,在线游戏类进程的优先级可以大于在线影音类进程,而在线影音类进程的优先级可以大于浏览器类进程。It should be noted that, further, steps 201-207 are described for a scenario where only one first application process is running. In fact, there may be a scenario where multiple specified types of first application processes are running at the same time. For this scenario, the data transmission statistics of the multiple first application processes and the actual bandwidth capacity of the current network may be used to determine A speed limit is imposed on the second application process. Optionally, a certain network bandwidth may also be reserved for the multiple first application processes, so that the multiple first application processes may compete for the reserved network bandwidth. Specifically, the competition may be carried out according to the priorities of the various first application processes, assigning more network bandwidth to the first application processes with higher priority, and allocating more network bandwidth to the first application processes with lower priority. Application processes allocate less network bandwidth. Generally, users can set the priority of the first application process according to their own needs, and the server then allocates corresponding network bandwidth to each first application process according to the priority. For example, the priority of online game processes can be higher than that of online video and audio. class process, and the priority of the online audio-visual class process can be higher than that of the browser class process.

本实施例提供的方法,通过获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括指定类型的应用进程;当该各个应用进程中包括指定类型的应用进程时,若该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。本发明实施例提供的技术方案,通过监听各个应用进程的数据传输,确定是否有第一应用进程的数据传输统计信息小于预设阈值,由于预设阈值用于保证第一应用进程的正常运行状态,因此,可以确定是否有指定类型的应用进程处于非正常运行状态,从而对第二应用进程进行速度限制,不仅避免了应用驱动程序所产生的不稳定问题,而且提高了速度限制的效率,可以对网络带宽进行有效分配,提升了用户的网络体验。The method provided in this embodiment determines the data transmission statistical information of each application process by acquiring the application process information currently in the network connection state and the currently transmitted network data information; according to the corresponding relationship between the stored application process type and the application process , judging whether each application process includes an application process of a specified type; when each application process includes an application process of a specified type, if the data transmission statistics information of the first application process is less than a preset threshold, the second application process Apply a speed limit. In the technical solution provided by the embodiment of the present invention, by monitoring the data transmission of each application process, it is determined whether the data transmission statistics information of the first application process is less than the preset threshold value, because the preset threshold value is used to ensure the normal operation state of the first application process , therefore, it can be determined whether an application process of a specified type is in an abnormal running state, so as to limit the speed of the second application process, which not only avoids the instability problem caused by the application driver, but also improves the efficiency of the speed limit, which can Effective allocation of network bandwidth improves the user's network experience.

图3是本发明实施例提供的速度限制装置结构示意图。参见图3,该装置包括信息获取模块301、信息确定模块302、应用进程判断模块303和速度限制模块304。Fig. 3 is a schematic structural diagram of a speed limiting device provided by an embodiment of the present invention. Referring to FIG. 3 , the device includes an information acquisition module 301 , an information determination module 302 , an application process judgment module 303 and a speed limit module 304 .

信息获取模块301,用于获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;An information acquisition module 301, configured to acquire application process information currently in a network connection state and currently transmitted network data information;

信息确定模块302,用于根据所述应用进程信息和所述网络数据信息,确定各个应用进程的数据传输统计信息;An information determining module 302, configured to determine data transmission statistics information of each application process according to the application process information and the network data information;

应用进程判断模块303,用于根据存储的应用进程类型和应用进程之间的对应关系,判断所述各个应用进程中是否包括第一应用进程,所述第一应用进程为指定类型的应用进程;An application process judging module 303, configured to judge whether each application process includes a first application process according to the stored application process type and the corresponding relationship between the application processes, and the first application process is an application process of a specified type;

速度限制模块304,用于当所述各个应用进程中包括第一应用进程时,如果所述第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。The speed limiting module 304 is configured to limit the speed of the second application process if the data transmission statistics of the first application process is less than a preset threshold when the first application process is included in the various application processes.

可选地,所述信息获取模块包括:Optionally, the information acquisition module includes:

API调用单元,用于调用指定系统API,枚举当前处于网络连接状态的应用进程信息,所述应用进程信息包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项。The API calling unit is used to call the specified system API, enumerate the application process information currently in the network connection state, and the application process information includes process ID, process name, source port number, source IP address, target port number and target IP address any of the items.

可选地,所述信息获取模块包括:Optionally, the information acquisition module includes:

信息获取单元,用于对当前传输的网络数据包的包头进行分析,获取所述网络数据包所承载数据的大小以及所述网络数据包的传输对象信息。The information acquisition unit is configured to analyze the packet header of the currently transmitted network data packet, and obtain the size of the data carried by the network data packet and the transmission object information of the network data packet.

可选地,所述信息确定模块用于根据所述应用进程信息中进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项和所述网络数据包的传输对象信息,确定各个应用进程信息对应的网络数据包的数据大小;根据各个应用进程信息对应的网络数据包的数据大小,获取所述各个应用进程的传输速度。Optionally, the information determination module is configured to use any one of the process ID, process name, source port number, source IP address, destination port number and destination IP address in the application process information and the network data packet The transmission object information determines the data size of the network data packet corresponding to each application process information; and obtains the transmission speed of each application process according to the data size of the network data packet corresponding to each application process information.

可选地,所述速度限制模块用于当所述第一应用进程为浏览器类进程时,如果所述浏览器类进程的数据传输统计信息小于第一预设阈值时,对所述第二应用进程进行速度限制;或,Optionally, the speed limit module is configured to, when the first application process is a browser-type process, if the data transmission statistics of the browser-type process is less than a first preset threshold, application process rate limiting; or,

所述速度限制模块用于当所述第一应用进程为在线游戏类进程时,如果所述游戏类进程的数据传输统计信息小于第二预设阈值时,对所述第二应用进程进行速度限制;或,The speed limit module is configured to limit the speed of the second application process when the first application process is an online game process and if the data transmission statistics of the game process is less than a second preset threshold ;or,

所述速度限制模块用于当所述第一应用进程为在线影音类进程时,如果所述在线影音类进程的数据传输统计信息小于第三预设阈值时,对所述第二应用进程进行速度限制;The speed limit module is configured to, when the first application process is an online audio-visual process, if the data transmission statistics information of the online audio-visual process is less than a third preset threshold, rate the second application process. limit;

其中,第一预设阈值小于第二预设阈值和第三预设阈值。Wherein, the first preset threshold is smaller than the second preset threshold and the third preset threshold.

可选地,所述装置还包括:Optionally, the device also includes:

带宽测试模块,用于对当前网络带宽进行测试,得到当前下载带宽和当前上传带宽;The bandwidth test module is used to test the current network bandwidth to obtain the current download bandwidth and the current upload bandwidth;

所述速度限制模块还用于在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽,调整所述第二应用进程的传输速度。The speed limiting module is further configured to adjust the transmission speed of the second application process according to the current download bandwidth and the current upload bandwidth during the process of limiting the speed of the second application process.

可选地,所述速度限制模块用于当所述第一应用进程为浏览器类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第一比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第二比例;或,Optionally, the speed limit module is configured to reduce the upload speed of the second application process to a first ratio of the current upload bandwidth when the first application process is a browser-type process, and set the The download speed of the second application process is reduced to a second ratio of the current download bandwidth; or,

所述速度限制模块用于当所述第一应用进程为在线游戏类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第三比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第四比例;或,The speed limiting module is configured to reduce the upload speed of the second application process to a third ratio of the current upload bandwidth when the first application process is an online game process, and reduce the upload speed of the second application process to a third ratio of the current upload bandwidth. The download speed of is reduced to a fourth proportion of said current download bandwidth; or,

所述速度限制模块用于当所述第一应用进程为在线影音类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第五比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第六比例。The speed limiting module is configured to reduce the upload speed of the second application process to the fifth ratio of the current upload bandwidth when the first application process is an online audio-visual process, and reduce the upload speed of the second application process to the fifth ratio of the current upload bandwidth. The download speed is reduced to the sixth proportion of the current download bandwidth.

通过获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息,确定各个应用进程的数据传输统计信息;根据存储的应用进程类型和应用进程之间的对应关系,判断该各个应用进程中是否包括指定类型的应用进程;当该各个应用进程中包括指定类型的应用进程时,若该第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。本发明实施例提供的技术方案,通过监听各个应用进程的数据传输,确定是否有第一应用进程的数据传输统计信息小于预设阈值,由于预设阈值用于保证第一应用进程的正常运行状态,因此,可以确定是否有指定类型的应用进程处于非正常运行状态,从而对第二应用进程进行速度限制,不仅避免了应用驱动程序所产生的不稳定问题,而且提高了速度限制的效率,可以对网络带宽进行有效分配,提升了用户的网络体验。By obtaining the application process information currently in the network connection state and the currently transmitted network data information, determine the data transmission statistics of each application process; according to the stored application process type and the corresponding relationship between the application process, determine the application process. Whether to include application processes of a specified type; when each application process includes an application process of a specified type, if the data transmission statistics of the first application process is less than a preset threshold, limit the speed of the second application process. In the technical solution provided by the embodiment of the present invention, by monitoring the data transmission of each application process, it is determined whether the data transmission statistics information of the first application process is less than the preset threshold value, because the preset threshold value is used to ensure the normal operation state of the first application process , therefore, it can be determined whether an application process of a specified type is in an abnormal running state, so as to limit the speed of the second application process, which not only avoids the instability problem caused by the application driver, but also improves the efficiency of the speed limit, which can Effective allocation of network bandwidth improves the user's network experience.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.

以上该仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention within.

Claims (14)

1.一种速度限制方法,其特征在于,所述方法包括:1. A speed limit method, characterized in that the method comprises: 获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;Obtain the application process information currently in the network connection state and the currently transmitted network data information; 根据所述应用进程信息和所述网络数据信息,确定各个应用进程的数据传输统计信息;Determine data transmission statistics information of each application process according to the application process information and the network data information; 根据存储的应用进程类型和应用进程之间的对应关系,判断所述各个应用进程中是否包括第一应用进程,所述第一应用进程为指定类型的应用进程;According to the corresponding relationship between the stored application process type and the application process, it is judged whether each application process includes a first application process, and the first application process is an application process of a specified type; 当所述各个应用进程中包括第一应用进程时,如果所述第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。When the various application processes include the first application process, if the data transmission statistics information of the first application process is less than a preset threshold, the speed limit is imposed on the second application process. 2.根据权利要求1所述的方法,其特征在于,获取当前处于网络连接状态的应用进程信息包括:2. The method according to claim 1, wherein obtaining the application process information currently in the network connection state comprises: 调用指定系统API,获取当前处于网络连接状态的应用进程信息,所述应用进程信息包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项。Call the specified system API to obtain the application process information currently in the network connection state, and the application process information includes any one of the process ID, process name, source port number, source IP address, target port number and target IP address. 3.根据权利要求1所述的方法,其特征在于,获取当前传输的网络数据信息包括:3. The method according to claim 1, wherein obtaining the currently transmitted network data information comprises: 对当前传输的网络数据包的包头进行分析,获取所述网络数据包所承载数据的大小以及所述网络数据包的传输对象信息。The packet header of the currently transmitted network data packet is analyzed to obtain the size of the data carried by the network data packet and the transmission object information of the network data packet. 4.根据权利要求3所述的方法,其特征在于,根据所述应用进程信息和所述网络数据信息,确定各个应用进程的数据传输统计信息包括:4. The method according to claim 3, wherein, according to the application process information and the network data information, determining the data transmission statistics information of each application process comprises: 根据所述应用进程信息中进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项和所述网络数据包的传输对象信息,确定各个应用进程信息对应的网络数据包的数据大小;According to any one of the process ID, process name, source port number, source IP address, target port number and target IP address in the application process information and the transmission object information of the network data packet, determine the corresponding information of each application process The data size of the network packet; 根据各个应用进程信息对应的网络数据包的数据大小,获取所述各个应用进程的传输速度。According to the data size of the network data packet corresponding to the information of each application process, the transmission speed of each application process is acquired. 5.根据权利要求1所述的方法,其特征在于,当所述各个应用进程中包括第一应用进程时,如果所述第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制包括:5. The method according to claim 1, wherein when the first application process is included in the various application processes, if the data transmission statistics information of the first application process is less than a preset threshold value, the second application process Process progress rate limits include: 当所述第一应用进程为浏览器类进程时,如果所述浏览器类进程的数据传输统计信息小于第一预设阈值时,对所述第二应用进程进行速度限制;或,When the first application process is a browser-type process, if the data transmission statistics of the browser-type process is less than a first preset threshold, limit the speed of the second application process; or, 当所述第一应用进程为在线游戏类进程时,如果所述游戏类进程的数据传输统计信息小于第二预设阈值时,对所述第二应用进程进行速度限制;或,When the first application process is an online game process, if the data transmission statistics of the game process is less than a second preset threshold, limit the speed of the second application process; or, 当所述第一应用进程为在线影音类进程时,如果所述在线影音类进程的数据传输统计信息小于第三预设阈值时,对所述第二应用进程进行速度限制;When the first application process is an online audio-visual process, if the data transmission statistics of the online audio-visual process is less than a third preset threshold, limit the speed of the second application process; 其中,第一预设阈值小于第二预设阈值和第三预设阈值。Wherein, the first preset threshold is smaller than the second preset threshold and the third preset threshold. 6.根据权利要求1所述的方法,其特征在于,当所述各个应用进程中包括第一应用进程时,如果所述第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制之前,所述方法还包括:6. The method according to claim 1, wherein when the first application process is included in the various application processes, if the data transmission statistics information of the first application process is less than a preset threshold value, the second application process Before the process is rate limited, the method further includes: 对当前网络带宽进行测试,得到当前下载带宽和当前上传带宽;Test the current network bandwidth to get the current download bandwidth and current upload bandwidth; 在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽调整所述第二应用进程的传输速度。In the process of limiting the speed of the second application process, the transmission speed of the second application process is adjusted according to the current download bandwidth and the current upload bandwidth. 7.根据权利要求1所述的方法,其特征在于,在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽,调整所述第二应用进程的传输速度包括:7. The method according to claim 1, wherein, in the process of limiting the speed of the second application process, adjusting the transmission speed of the second application process according to the current download bandwidth and the current upload bandwidth comprises: 当所述第一应用进程为浏览器类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第一比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第二比例;或,When the first application process is a browser-type process, reduce the upload speed of the second application process to a first ratio of the current upload bandwidth, and reduce the download speed of the second application process to the first ratio of the current upload bandwidth. A second fraction of the current download bandwidth; or, 当所述第一应用进程为在线游戏类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第三比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第四比例;或,When the first application process is an online game process, reduce the upload speed of the second application process to a third ratio of the current upload bandwidth, and reduce the download speed of the second application process to the third ratio of the current upload bandwidth. A fourth fraction of the current download bandwidth; or, 当所述第一应用进程为在线影音类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第五比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第六比例。When the first application process is an online audio-visual process, reduce the upload speed of the second application process to a fifth ratio of the current upload bandwidth, and reduce the download speed of the second application process to the fifth ratio of the current upload bandwidth. Sixth percentile of current download bandwidth. 8.一种速度限制装置,其特征在于,所述装置包括:8. A speed limiting device, characterized in that said device comprises: 信息获取模块,用于获取当前处于网络连接状态的应用进程信息和当前传输的网络数据信息;An information acquisition module, configured to acquire application process information currently in a network connection state and currently transmitted network data information; 信息确定模块,用于根据所述应用进程信息和所述网络数据信息,确定各个应用进程的数据传输统计信息;An information determination module, configured to determine data transmission statistics of each application process according to the application process information and the network data information; 应用进程判断模块,用于根据存储的应用进程类型和应用进程之间的对应关系,判断所述各个应用进程中是否包括第一应用进程,所述第一应用进程为指定类型的应用进程;An application process judging module, configured to judge whether each application process includes a first application process according to the stored application process type and the corresponding relationship between the application processes, and the first application process is an application process of a specified type; 速度限制模块,用于当所述各个应用进程中包括第一应用进程时,如果所述第一应用进程的数据传输统计信息小于预设阈值,对第二应用进程进行速度限制。A speed limiting module, configured to limit the speed of the second application process if the data transmission statistics of the first application process are less than a preset threshold when the first application process is included in the various application processes. 9.根据权利要求8所述的装置,其特征在于,所述信息获取模块包括:9. The device according to claim 8, wherein the information acquisition module comprises: API调用单元,用于调用指定系统API,枚举当前处于网络连接状态的应用进程信息,所述应用进程信息包括进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项。The API calling unit is used to call the specified system API, enumerate the application process information currently in the network connection state, and the application process information includes process ID, process name, source port number, source IP address, target port number and target IP address any of the items. 10.根据权利要求8所述的装置,其特征在于,所述信息获取模块包括:10. The device according to claim 8, wherein the information acquisition module comprises: 信息获取单元,用于对当前传输的网络数据包的包头进行分析,获取所述网络数据包所承载数据的大小以及所述网络数据包的传输对象信息。The information acquisition unit is configured to analyze the packet header of the currently transmitted network data packet, and obtain the size of the data carried by the network data packet and the transmission object information of the network data packet. 11.根据权利要求10所述的装置,其特征在于,所述信息确定模块用于根据所述应用进程信息中进程ID、进程名称、源端口号、源IP地址、目标端口号和目标IP地址中任一项和所述网络数据包的传输对象信息,确定各个应用进程信息对应的网络数据包的数据大小;根据各个应用进程信息对应的网络数据包的数据大小,获取所述各个应用进程的传输速度。11. The device according to claim 10, wherein the information determination module is configured to process ID, process name, source port number, source IP address, target port number and target IP address in the application process information According to any item and the transmission object information of the network data packet, the data size of the network data packet corresponding to each application process information is determined; according to the data size of the network data packet corresponding to each application process information, the data size of each application process is obtained. transfer speed. 12.根据权利要求8所述的装置,其特征在于,所述速度限制模块用于当所述第一应用进程为浏览器类进程时,如果所述浏览器类进程的数据传输统计信息小于第一预设阈值时,对所述第二应用进程进行速度限制;或,12. The device according to claim 8, wherein the speed limit module is configured to, when the first application process is a browser-type process, if the data transmission statistics information of the browser-type process is less than the first When a preset threshold is reached, limit the speed of the second application process; or, 所述速度限制模块用于当所述第一应用进程为在线游戏类进程时,如果所述游戏类进程的数据传输统计信息小于第二预设阈值时,对所述第二应用进程进行速度限制;或,The speed limit module is configured to limit the speed of the second application process when the first application process is an online game process and if the data transmission statistics of the game process is less than a second preset threshold ;or, 所述速度限制模块用于当所述第一应用进程为在线影音类进程时,如果所述在线影音类进程的数据传输统计信息小于第三预设阈值时,对所述第二应用进程进行速度限制;The speed limit module is configured to, when the first application process is an online audio-visual process, if the data transmission statistics information of the online audio-visual process is less than a third preset threshold, rate the second application process. limit; 其中,第一预设阈值小于第二预设阈值和第三预设阈值。Wherein, the first preset threshold is smaller than the second preset threshold and the third preset threshold. 13.根据权利要求8所述的装置,其特征在于,所述装置还包括:13. The device according to claim 8, further comprising: 带宽测试模块,用于对当前网络带宽进行测试,得到当前下载带宽和当前上传带宽;The bandwidth test module is used to test the current network bandwidth to obtain the current download bandwidth and the current upload bandwidth; 所述速度限制模块还用于在对第二应用进程进行速度限制的过程中,根据当前下载带宽和当前上传带宽,调整所述第二应用进程的传输速度。The speed limiting module is further configured to adjust the transmission speed of the second application process according to the current download bandwidth and the current upload bandwidth during the process of limiting the speed of the second application process. 14.根据权利要求8所述的装置,其特征在于,所述速度限制模块用于当所述第一应用进程为浏览器类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第一比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第二比例;或,14. The device according to claim 8, wherein the speed limit module is configured to reduce the upload speed of the second application process to the A first proportion of the current upload bandwidth, reducing the download speed of the second application process to a second proportion of the current download bandwidth; or, 所述速度限制模块用于当所述第一应用进程为在线游戏类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第三比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第四比例;或,The speed limiting module is configured to reduce the upload speed of the second application process to a third ratio of the current upload bandwidth when the first application process is an online game process, and reduce the upload speed of the second application process to a third ratio of the current upload bandwidth. The download speed of is reduced to a fourth proportion of said current download bandwidth; or, 所述速度限制模块用于当所述第一应用进程为在线影音类进程时,将所述第二应用进程的上传速度降低至所述当前上传带宽的第五比例,将所述第二应用进程的下载速度降低至所述当前下载带宽的第六比例。The speed limiting module is configured to reduce the upload speed of the second application process to the fifth ratio of the current upload bandwidth when the first application process is an online audio-visual process, and reduce the upload speed of the second application process to the fifth ratio of the current upload bandwidth. The download speed is reduced to the sixth proportion of the current download bandwidth.
CN201410310802.2A 2014-06-30 2014-06-30 Method for limiting speed and device Active CN104125269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410310802.2A CN104125269B (en) 2014-06-30 2014-06-30 Method for limiting speed and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410310802.2A CN104125269B (en) 2014-06-30 2014-06-30 Method for limiting speed and device

Publications (2)

Publication Number Publication Date
CN104125269A true CN104125269A (en) 2014-10-29
CN104125269B CN104125269B (en) 2018-08-14

Family

ID=51770533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410310802.2A Active CN104125269B (en) 2014-06-30 2014-06-30 Method for limiting speed and device

Country Status (1)

Country Link
CN (1) CN104125269B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954286A (en) * 2015-05-29 2015-09-30 小米科技有限责任公司 Bandwidth allocation method and device
CN105471862A (en) * 2015-11-20 2016-04-06 上海斐讯数据通信技术有限公司 Method and system for stabilizing game operation
CN106230741A (en) * 2016-09-18 2016-12-14 杭州迪普科技有限公司 A kind of method and apparatus that message is carried out speed limit
CN107205084A (en) * 2017-05-11 2017-09-26 北京小米移动软件有限公司 Network speed processing method, device and the terminal of application program
CN107634962A (en) * 2017-10-11 2018-01-26 广东欧珀移动通信有限公司 Network Bandwidth Management Method and Related Products
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
CN108668163A (en) * 2018-05-03 2018-10-16 广州虎牙信息科技有限公司 Live play method, apparatus, computer readable storage medium and computer equipment
CN108762665A (en) * 2018-04-08 2018-11-06 中兴通讯股份有限公司 A kind of method and device of control storage device read-write
CN108965358A (en) * 2017-05-19 2018-12-07 腾讯科技(深圳)有限公司 The method and apparatus for applying the downloading application program in first terminal and server
CN110830478A (en) * 2019-11-12 2020-02-21 福州汇思博信息技术有限公司 Method, system, equipment and medium for multi-process network distribution
CN110932930A (en) * 2019-11-13 2020-03-27 苏州浪潮智能科技有限公司 Detection method, device and medium for server PCIE link stability
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management
CN113726691A (en) * 2021-08-20 2021-11-30 北京字节跳动网络技术有限公司 Bandwidth reservation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431473A (en) * 2008-12-31 2009-05-13 深圳市迅雷网络技术有限公司 Method and apparatus for implementing network speed limit
CN102209107A (en) * 2011-05-11 2011-10-05 奇智软件(北京)有限公司 Intelligent speed-limiting method and device and downloading system
CN102629909A (en) * 2012-03-30 2012-08-08 奇智软件(北京)有限公司 Traffic counting method and system based on processes
CN102932273A (en) * 2012-10-17 2013-02-13 北京奇虎科技有限公司 Method and device for adjusting occupation of process bandwidth
CN103838630A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 Information processing method, system and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431473A (en) * 2008-12-31 2009-05-13 深圳市迅雷网络技术有限公司 Method and apparatus for implementing network speed limit
CN102209107A (en) * 2011-05-11 2011-10-05 奇智软件(北京)有限公司 Intelligent speed-limiting method and device and downloading system
CN102629909A (en) * 2012-03-30 2012-08-08 奇智软件(北京)有限公司 Traffic counting method and system based on processes
CN102932273A (en) * 2012-10-17 2013-02-13 北京奇虎科技有限公司 Method and device for adjusting occupation of process bandwidth
CN103838630A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 Information processing method, system and electronic equipment

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954286B (en) * 2015-05-29 2019-03-15 小米科技有限责任公司 The method and device of bandwidth allocation
CN104954286A (en) * 2015-05-29 2015-09-30 小米科技有限责任公司 Bandwidth allocation method and device
CN105471862A (en) * 2015-11-20 2016-04-06 上海斐讯数据通信技术有限公司 Method and system for stabilizing game operation
CN106230741A (en) * 2016-09-18 2016-12-14 杭州迪普科技有限公司 A kind of method and apparatus that message is carried out speed limit
CN107205084A (en) * 2017-05-11 2017-09-26 北京小米移动软件有限公司 Network speed processing method, device and the terminal of application program
CN108965358B (en) * 2017-05-19 2020-11-10 腾讯科技(深圳)有限公司 Method and device for downloading application program applied to first terminal and server
CN108965358A (en) * 2017-05-19 2018-12-07 腾讯科技(深圳)有限公司 The method and apparatus for applying the downloading application program in first terminal and server
CN107634962A (en) * 2017-10-11 2018-01-26 广东欧珀移动通信有限公司 Network Bandwidth Management Method and Related Products
CN107634962B (en) * 2017-10-11 2019-06-18 Oppo广东移动通信有限公司 Network bandwidth management method and related products
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management
CN112039799B (en) * 2017-12-06 2023-06-06 贵州白山云科技股份有限公司 Network bandwidth management method, server, system, equipment and medium
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
CN108762665A (en) * 2018-04-08 2018-11-06 中兴通讯股份有限公司 A kind of method and device of control storage device read-write
CN108762665B (en) * 2018-04-08 2023-06-09 中兴通讯股份有限公司 Method and device for controlling reading and writing of storage device
CN108668163B (en) * 2018-05-03 2020-03-20 广州虎牙信息科技有限公司 Live broadcast method and device, computer readable storage medium and computer equipment
CN108668163A (en) * 2018-05-03 2018-10-16 广州虎牙信息科技有限公司 Live play method, apparatus, computer readable storage medium and computer equipment
CN110830478A (en) * 2019-11-12 2020-02-21 福州汇思博信息技术有限公司 Method, system, equipment and medium for multi-process network distribution
CN110932930A (en) * 2019-11-13 2020-03-27 苏州浪潮智能科技有限公司 Detection method, device and medium for server PCIE link stability
CN110932930B (en) * 2019-11-13 2021-08-10 苏州浪潮智能科技有限公司 Detection method, device and medium for server PCIE link stability
CN113726691A (en) * 2021-08-20 2021-11-30 北京字节跳动网络技术有限公司 Bandwidth reservation method, device, equipment and storage medium
CN113726691B (en) * 2021-08-20 2024-04-30 北京字节跳动网络技术有限公司 Bandwidth reservation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104125269B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN104125269B (en) Method for limiting speed and device
US20220329535A1 (en) Data flow control method and apparatus
KR101576585B1 (en) Reducing buffer usage for tcp proxy session based on delayed acknowledgment
US8194657B2 (en) Systems and methods for dynamic quality of service
US8782221B2 (en) Method to allocate buffer for TCP proxy session based on dynamic network conditions
US20080291916A1 (en) Systems and methods for dynamic quality of service
CN107534981B (en) Resource reallocation
CN113452686A (en) Data processing method, data processing device, proxy server and storage medium
KR102246465B1 (en) Method and apparatus of allocating resource of terminal in wireless communication system
CN111262792B (en) Message forwarding method, device, network equipment and storage medium
CN106464567B (en) A method, device and gateway for dynamic flow control, and converged access point
JP6968990B2 (en) Methods and equipment for determining quality of service, as well as programs
CN106716974B (en) Access distribution method, device and system
CN117880604A (en) Data transmission method, device and system based on interactive streaming media
CN111193756A (en) A VXLAN tunnel load balancing method and related equipment
CN105379189A (en) Method and system for sending and receiving information data
WO2024103783A1 (en) Dynamic host configuration protocol testing method, electronic device and computer storage medium
US20180183719A1 (en) Method and device for data transmission
CN106603426A (en) Message discarding method and device
CN112995049B (en) Application acceleration method, user side network equipment and system
CN108574615A (en) A content transmission method, device and system based on multipath MPTCP
CN109274704B (en) TCP acceleration method and device, acceleration effect judgment controller and gateway
CN104253760B (en) Method for controlling network congestion and device
CN116055414B (en) Data transmission method, device and router
CN112804716B (en) Configuration method and device of data limit value and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220406

Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu kugou business incubator management Co.,Ltd.

Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241203

Address after: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee before: Chengdu kugou business incubator management Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right