WO2019127083A1 - Network speed limiting method and apparatus, and server - Google Patents

Network speed limiting method and apparatus, and server Download PDF

Info

Publication number
WO2019127083A1
WO2019127083A1 PCT/CN2017/118932 CN2017118932W WO2019127083A1 WO 2019127083 A1 WO2019127083 A1 WO 2019127083A1 CN 2017118932 W CN2017118932 W CN 2017118932W WO 2019127083 A1 WO2019127083 A1 WO 2019127083A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
limit threshold
rate limit
rate
request message
Prior art date
Application number
PCT/CN2017/118932
Other languages
French (fr)
Chinese (zh)
Inventor
李侠
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2017/118932 priority Critical patent/WO2019127083A1/en
Priority to CN201780003310.0A priority patent/CN108235804B/en
Publication of WO2019127083A1 publication Critical patent/WO2019127083A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the present application relate to the technical field of network communications, for example, a network speed limiting method and apparatus, and a server. Said method comprises: receiving a request packet sent by a client; acquiring communication path information of the request packet, a first speed limiting threshold and a second speed limiting threshold; establishing a connection with a next-hop server according to the communication path information, and setting a speed limiting threshold for the ingress server according to the first speed limiting threshold, so that the upload rate of data passing through the ingress server is less than the first speed limiting threshold; and adding the second speed limiting threshold into the request packet, and sending the request packet to the next-hop server. In the embodiments of the present application, the speed limiting threshold is set for the ingress server according to the first speed limiting threshold, so as to limit an upstream traffic bandwidth, and the speed limiting threshold is set for an egress server according to the second speed limiting threshold, so as to limit a downstream traffic bandwidth. Thus, the bandwidths occupied by the applications' access are balanced, improving the access quality.

Description

一种网络限速方法、装置和服务器Network speed limiting method, device and server 技术领域Technical field
本申请实施例涉及网络通信技术领域,例如涉及一种网络限速方法、装置和服务器。The embodiments of the present application relate to the field of network communication technologies, for example, to a network rate limiting method, apparatus, and server.
背景技术Background technique
用户在使用网络应用时,一般是通过安装在用户终端上的应用客户端向源站服务器发送数据访问请求报文以获取相应的内容,比如视频应用可以通过电脑向源站服务器发送数据访问请求报文以获取相应的视频内容并播放。在应用加速网络(Application Delivery Network, ADN)中,有各种各样的应用加速,如视频加速、大文件传输加速、网页加速等。When the user uses the network application, the application client that is installed on the user terminal sends a data access request message to the source server to obtain the corresponding content. For example, the video application can send a data access request report to the source server through the computer. To get the corresponding video content and play it. In the Application Delivery Network (ADN), there are various application accelerations, such as video acceleration, large file transfer acceleration, and web page acceleration.
在研究现有技术的过程中,发明人发现相关技术中至少存在如下问题:视频应用的带宽很容易占满整个带宽,导致其它应用访问(如页面加载)变慢,影响加速效果,而事实上视频观看并不需要很高的带宽。如果能提供一种使各应用均衡使用带宽的方案,将能很好的解决上述问题。In the process of studying the prior art, the inventor found that at least the following problems exist in the related art: the bandwidth of the video application easily fills the entire bandwidth, causing other application accesses (such as page loading) to slow down, affecting the acceleration effect, and in fact Video viewing does not require high bandwidth. If you can provide a solution that allows each application to use bandwidth equally, it will be a good solution to the above problem.
发明内容Summary of the invention
本申请实施例的一个目的是提供一种网络限速方法、装置和服务器,能使各应用访问均衡占用带宽,优化访问质量。An object of the embodiments of the present application is to provide a network rate limiting method, apparatus, and server, which enable each application to access a balanced bandwidth and optimize access quality.
第一方面,本申请实施例提供了一种网络限速方法,所述方法应用于服务器,所述服务器与其他至少一个服务器通信连接,所述服务器作为入口服务器,所述方法包括:In a first aspect, the embodiment of the present application provides a network rate limiting method, where the method is applied to a server, and the server is in communication with another at least one server, and the server is used as an ingress server, and the method includes:
接收客户端发送的请求报文;Receiving a request message sent by the client;
获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值;Obtaining communication path information of the request message, and a first rate limit threshold and a second rate limit threshold;
根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值;Establishing a connection with the next hop server according to the communication path information, and setting a rate limit threshold according to the first rate limit threshold, so that the data upload rate of the portal server is smaller than the first rate limit threshold. ;
将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。Adding the second rate limit threshold to the request message, and sending the request message to the next hop server.
第二方面,本申请实施例还提供了一种网络限速方法,所述限速方法应用于服务器,所述服务器与其他至少一个服务器通信连接,所述服务器作为出口服务器,所述方法包括:In a second aspect, the embodiment of the present application further provides a network speed limit method, where the speed limit method is applied to a server, and the server is in communication with another at least one server, and the server is used as an egress server, and the method includes:
接收其他服务器发送的请求报文;Receiving request messages sent by other servers;
解析所述请求报文,获得第二限速阈值;Parsing the request packet to obtain a second rate limit threshold;
根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。Setting a rate limit threshold according to the second rate limit threshold to the egress server, so that a data download rate passing the egress server is smaller than the second rate limit threshold.
第三方面,本申请实施例还提供了一种网络限速装置,所述装置应用于服务器,所述服务器与其他至少一个服务器通信连接,所述服务器作为入口服务器,所述装置包括:In a third aspect, the embodiment of the present application further provides a network speed limit device, where the device is applied to a server, and the server is in communication with another at least one server, the server serves as an ingress server, and the device includes:
第一接收模块,用于接收客户端发送的请求报文;a first receiving module, configured to receive a request message sent by the client;
获取模块,用于获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值;An acquiring module, configured to acquire communication path information of the request packet, and a first rate limit threshold and a second rate limit threshold;
第一设置模块,用于根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值;a first setting module, configured to establish a connection with the next hop server according to the communication path information, and set a rate limit threshold according to the first rate limit threshold, so that a data upload rate of the portal server is less than The first speed limit threshold;
发送模块,用于将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。And a sending module, configured to add the second rate limit threshold to the request message, and send the request message to a next hop server.
第四方面,本申请实施例还提供了一种网络限速装置,所述限速装置应用于服务器,所述服务器与其他至少一个服务器通信连接,所述服务器作为出口服务器,所述装置包括:In a fourth aspect, the embodiment of the present application further provides a network speed limit device, where the speed limit device is applied to a server, and the server is in communication with another at least one server, and the server serves as an egress server, and the device includes:
第二接收模块,用于接收其他服务器发送的请求报文;a second receiving module, configured to receive a request message sent by another server;
解析模块,用于解析所述请求报文,获得第二限速阈值;a parsing module, configured to parse the request packet to obtain a second rate limit threshold;
第二设置模块,用于根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。And a second setting module, configured to set a rate limit threshold according to the second rate limit threshold, so that a data download rate of the egress server is smaller than the second rate limit threshold.
第五方面,本申请实施例还提供了一种服务器,包括:In a fifth aspect, the embodiment of the present application further provides a server, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method described above.
本申请实施例提供的限速方法、装置和服务器,通过获取第一限速阈值和第二限速阈值,并根据第一限速阈值为入口服务器设置限速阈值,以限制上行流量带宽。以及将第二限速阈值加入请求报文发送给下一跳服务器,以使出口服务器能通过解析请求报文获得第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制下行流量带宽。从而使各应用访问能均衡占用带宽,提高了访问质量。The rate limiting method, the device, and the server provided by the embodiment of the present application obtain the first rate limit threshold and the second rate limit threshold, and set a rate limit threshold according to the first rate limit threshold to limit the uplink traffic bandwidth. And sending the second rate limit threshold request message to the next hop server, so that the egress server can obtain the second rate limit threshold by parsing the request message, and setting a rate limit threshold according to the second rate limit threshold. To limit the downstream traffic bandwidth. Therefore, each application access can balance the occupied bandwidth and improve the access quality.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是本申请网络限速方法和装置的应用场景示意图;1 is a schematic diagram of an application scenario of a network rate limiting method and apparatus of the present application;
图2是本申请入口服务器侧限速方法的一个实施例的流程图;2 is a flow chart of an embodiment of an ingress server side rate limiting method of the present application;
图3是本申请实施例中服务器间通信架构示意图;3 is a schematic diagram of a communication structure between servers in the embodiment of the present application;
图4是本申请实施例中GRP格式示意图;4 is a schematic diagram of a GRP format in an embodiment of the present application;
图5是本申请实施例中GRP格式数据部分示意图;5 is a schematic diagram of a data portion of a GRP format in an embodiment of the present application;
图6是本申请实施例中GRP格式数据部分每个选项单元的格式示意图;6 is a schematic diagram of a format of each option unit of a GRP format data part in the embodiment of the present application;
图7是本申请出口服务器侧限速方法的一个实施例的流程图;7 is a flowchart of an embodiment of an egress server side rate limiting method of the present application;
图8是本申请入口服务器侧限速装置的一个实施例的结构示意图;8 is a schematic structural diagram of an embodiment of an entrance server side speed limiting device of the present application;
图9是本申请入口服务器侧限速装置的一个实施例的结构示意图;9 is a schematic structural diagram of an embodiment of an entrance server side speed limiting device of the present application;
图10是本申请出口服务器侧限速装置的一个实施例的结构示意图;10 is a schematic structural diagram of an embodiment of an egress server side speed limiting device of the present application;
图11是本申请出口服务器侧限速装置的一个实施例的结构示意图;11 is a schematic structural diagram of an embodiment of an egress server side speed limiting device of the present application;
图12是本申请实施例提供的服务器的硬件结构示意图。FIG. 12 is a schematic structural diagram of a hardware of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请提供的网络限速方法和装置适用于图1所示的应用场景,包括至少两个服务器20,至少两个服务器20彼此通信连接,至少两个服务器20中的任意一个服务器20与控制器10通信连接。至少两个服务器20中,与客户端通信连接的称为入口服务器,与源站服务器通信连接的称为出口服务器。如果存在三个以上的服务器20,则其他服务器20作为中间服务器,负责在入口服务器和出口服务器之间转发数据报文。其中,针对不同的数据传输任务,每个服务器20都可能作为入口服务器、中间服务器和出口服务器中的任何一个角色。The network rate limiting method and apparatus provided in this application are applicable to the application scenario shown in FIG. 1, and include at least two servers 20, at least two servers 20 are communicatively connected to each other, and any one of the at least two servers 20 and the controller 20 10 communication connections. Among the at least two servers 20, an access server that is in communication with the client is called an ingress server, and a communication connection with the source station server is called an egress server. If there are more than three servers 20, the other servers 20 act as intermediate servers responsible for forwarding data messages between the ingress server and the egress server. Among them, for different data transmission tasks, each server 20 may function as any one of an ingress server, an intermediate server, and an egress server.
控制器10用于对数据包在各服务器20间的传输路径进行管理,控制器10可以预先获得通信路径,并将所述通信路径发送给对应的入口服务器。入口服务器根据所述通信路径将数据请求报文通过中间服务器和出口服务器发送到源站服务器。控制器10还用于发送第一限速阈值和第二限速阈值给入口服务器,入口服务器根据第一限速阈值为入口服务器设置限速阈值,以限制数据上传速率(即上行流量带宽)。入口服务器还将第二限速阈值封装到请求报文中,并将请求报文通过中间服务器发送给出口服务器。出口服务器解析请求报文获得第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制数据下载速率(即下行流量带宽)。从而使各应用访问能均衡占用带宽,提高了访问质量。The controller 10 is configured to manage the transmission path of the data packets between the servers 20, and the controller 10 can obtain the communication path in advance and transmit the communication path to the corresponding portal server. The ingress server sends the data request message to the source station server through the intermediate server and the egress server according to the communication path. The controller 10 is further configured to send the first rate limit threshold and the second rate limit threshold to the ingress server, and the ingress server sets a rate limit threshold according to the first rate limit threshold to limit the data upload rate (ie, the uplink traffic bandwidth). The ingress server also encapsulates the second rate limit threshold into the request message, and sends the request message to the egress server through the intermediate server. The egress server parses the request packet to obtain a second rate limit threshold, and sets a rate limit threshold according to the second rate limit threshold to limit the data download rate (ie, the downlink traffic bandwidth). Therefore, each application access can balance the occupied bandwidth and improve the access quality.
本申请实施例提供的网络限速方法,可由图1中所示的任一服务器20执行,如图2所示,为所述限速方法的一个实施例的流程图,在所述服务器20作为入口服务器时,所述限速方法包括:The network rate limiting method provided by the embodiment of the present application may be performed by any of the servers 20 shown in FIG. 1, as shown in FIG. 2, which is a flowchart of an embodiment of the rate limiting method, where the server 20 acts as When the server is imported, the speed limit method includes:
101:接收客户端发送的请求报文。101: Receive a request message sent by the client.
102:获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值。102: Acquire communication path information of the request message, and a first rate limit threshold and a second rate limit threshold.
在实际应用中,可以由控制器10将通信路径信息、第一限速阈值和第二限速阈值发送给入口服务器,控制器10可以预先通过例如选路算法获得通过该入口服务器到源站服务器的优选路径,然后将该优选路径的通信路径信息发送给对应的入口服务器。根据该通信路径信息,可以获得例如下一跳服务器的地址信息和端口信息,以及剩余跳服务器的地址信息和端口信息等。其中,地址信息例如IP(网络之间互连的协议,Internet Protocol)地址,端口信息例如端口号。In an actual application, the communication path information, the first speed limit threshold, and the second speed limit threshold may be sent by the controller 10 to the portal server, and the controller 10 may obtain the source server through the portal server in advance through, for example, a routing algorithm. The preferred path is then sent to the corresponding ingress server for the communication path information of the preferred path. According to the communication path information, for example, address information and port information of the next hop server, address information of the remaining hop server, port information, and the like can be obtained. The address information is, for example, an IP (Internet Protocol) protocol, and port information such as a port number.
103:根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值。103: Establish a connection with the next hop server according to the communication path information, and set a rate limit threshold according to the first rate limit threshold, so that a data upload rate of the portal server is smaller than the first limit. Speed threshold.
在实际应用中,两个服务器间可采用图3所示的通信架构(该图中入口服务器和出口服务器间省略了中间服务器),图3中fe-sk代表前端套接字,be-sk代表后端套接字,其中入口服务器的前端套接字负责与客户端通信,后端套接字负责与下一跳服务器通信,出口服务器的前端套接字负责与上一跳服务器通信,后端套接字负责与源站服务器通信。In practical applications, the communication architecture shown in Figure 3 can be used between the two servers (the intermediate server is omitted between the entry server and the egress server in the figure). In Figure 3, fe-sk represents the front-end socket, and be-sk represents A back-end socket in which the front-end socket of the ingress server is responsible for communicating with the client, the back-end socket is responsible for communicating with the next-hop server, and the front-end socket of the egress server is responsible for communicating with the last-hop server, the back end The socket is responsible for communicating with the source server.
其中,将入口服务器与下一跳服务器建立连接,可以根据下一跳服务器的地址信息和端口信息创建后端套接字,并将后端套接字与下一跳服务器建立连接。为所述入口服务器设置限速阈值可以通过为入口服务器的后端套接字、或者前端套接字和后端套接字设置限速阀值来实现。以Linux系统为例,将入口服务器、各中间服务器和出口服务器均开启公平队列,入口服务器接收到第一限速阈值后,根据第一限速阈值为后端套接字设置限速阈值。实际应用中,可以调用setsockopt()函数对后端套接字设置限速阈值。The portal server is connected to the next hop server, and the backend socket is created according to the address information and the port information of the next hop server, and the backend socket is connected with the next hop server. Setting a rate limit threshold for the ingress server can be accomplished by setting a rate limit threshold for the backend socket of the ingress server, or for the front end socket and the back end socket. The Linux system is used as an example. The ingress server, each intermediate server, and the egress server are all enabled with a fair queue. After receiving the first rate limit threshold, the ingress server sets a rate limit threshold based on the first rate limit threshold. In practice, you can call the setsockopt() function to set the rate limit threshold for the backend socket.
当客户端的数据上传速率(上行流量带宽)达到已设置的第一限速阈值时,入口服务器的后端套接字(即与下一跳服务器通信的套接字)会根据已设置的限速阈值进行发送速率整形,即对数据发送速率限速,从而限制客户端该网络连接的上传速率。When the data upload rate (upstream traffic bandwidth) of the client reaches the set first rate limit threshold, the backend socket of the ingress server (that is, the socket that communicates with the next hop server) will be based on the set rate limit. The threshold is used for rate shaping, that is, rate limiting the data transmission rate, thereby limiting the upload rate of the network connection of the client.
104:将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。104: Add the second rate limit threshold to the request message, and send the request message to the next hop server.
将第二限速阈值加入所述请求报文之前,可以先将第二限速阈值基于全局路径协议(Global Routing Protocol,GRP)进行封装,GRP基于二进制流,对通信路径信息进行GRP封装,能有效缩短数据段长度,提高网络带宽的使用率。Before adding the second rate limit threshold to the request packet, the second rate limit threshold may be first based on the global path protocol (Global Routing). Protocol, GRP) Encapsulation, GRP based on binary stream, GRP encapsulation of communication path information, can effectively shorten the length of the data segment and increase the utilization rate of the network bandwidth.
图4示出了GRP格式的一种形式, GRP格式包括头部+数据部分,头部部分包括8字节版本号(Version)、2字节信息类型(MsgType)、2字节数据流长度(Datalen),数据部分包括字节可变的数据流(Data Stream)。数据部分的具体格式请参照图5,包括选项单元和多个地址单元,每个地址单元可以用于放置一个服务器20的地址信息,第二限速阈值可以放置在选项单元中。选项单元的具体格式请参照图6,包括4字节路径ID、4字节时间戳、4字节会话ID、4字节阈值。其中,第二限速阈值的值放置在4字节阈值段中。Figure 4 shows a form of the GRP format, the GRP format including the header + data portion, the header portion including the 8-byte version number (Version), the 2-byte information type (MsgType), and the 2-byte data stream length ( Datalen), the data part includes a byte-varying data stream (Data Stream). For the specific format of the data part, please refer to FIG. 5, which includes an option unit and a plurality of address units. Each address unit can be used to place address information of a server 20, and the second rate limit threshold can be placed in the option unit. The specific format of the option unit is shown in Figure 6, including a 4-byte path ID, a 4-byte timestamp, a 4-byte session ID, and a 4-byte threshold. The value of the second rate limit threshold is placed in a 4-byte threshold segment.
本申请实施例通过获取第一限速阈值和第二限速阈值,并根据第一限速阈值为入口服务器设置限速阈值,以限制上行流量带宽。以及将第二限速阈值加入请求报文发送给下一跳服务器,以使出口服务器能通过解析请求报文获得第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制下行流量带宽。从而使各应用访问能均衡占用带宽,提高了访问质量。The embodiment of the present application obtains the first rate limit threshold and the second rate limit threshold, and sets a rate limit threshold according to the first rate limit threshold to limit the uplink traffic bandwidth. And sending the second rate limit threshold request message to the next hop server, so that the egress server can obtain the second rate limit threshold by parsing the request message, and setting a rate limit threshold according to the second rate limit threshold. To limit the downstream traffic bandwidth. Therefore, each application access can balance the occupied bandwidth and improve the access quality.
需要说明的是,本申请实施例中的序号只是为了便于理解,并不限定各步骤的先后顺序。It should be noted that the serial numbers in the embodiments of the present application are only for ease of understanding, and do not limit the order of the steps.
本申请实施例还提供了一种网络限速方法,可由图1中所示的任一服务器20执行,如图7所示,为所述限速方法的一个实施例的流程图,在所述服务器作为出口服务器时,所述方法包括:The embodiment of the present application further provides a network rate limiting method, which can be performed by any of the servers 20 shown in FIG. 1, as shown in FIG. 7, is a flowchart of an embodiment of the rate limiting method, When the server is an export server, the method includes:
201:接收其他服务器发送的所述请求报文。201: Receive the request message sent by another server.
202:解析所述请求报文,获得第二限速阈值。202: Parse the request packet to obtain a second rate limit threshold.
其中,中间服务器不对请求报文中的第二限速阈值进行处理,当出口服务器接收到入口服务器或者中间服务器发送的请求报文时,解析该请求报文获得第二限速阈值。The intermediate server does not process the second rate limit threshold in the request packet. When the egress server receives the request packet sent by the ingress server or the intermediate server, the egress server parses the request packet to obtain a second rate limit threshold.
203:根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。203. Set a rate limit threshold according to the second rate limit threshold, so that a data download rate that passes through the egress server is smaller than the second rate limit threshold.
两个服务器间的通信架构请参照图3,为所述出口服务器设置限速阈值可以通过为出口服务器的前端套接字、或者前端套接字和后端套接字设置限速阀值来实现。以Linux系统为例,出口服务器接收到第二限速阈值后,根据第二限速阈值为前端套接字设置限速阈值。实际应用中,可以调用setsockopt()函数对前端套接字设置限速阈值。For the communication architecture between the two servers, refer to FIG. 3. Setting the rate limit threshold for the egress server can be implemented by setting a speed limit threshold for the front end socket of the egress server or the front end socket and the back end socket. . Take the Linux system as an example. After receiving the second rate limit threshold, the egress server sets a rate limit threshold based on the second rate limit threshold. In practice, you can call the setsockopt() function to set the rate limit threshold for the front-end socket.
当客户端的数据下载速率(即下行流量带宽)达到已设置的第二限速阈值时,出口服务器的前端套接字(即与上一跳服务器通信的套接字)会根据已设置的阈值进行发送速率整形,即对数据发送的速率限速,从而限制客户端该网络连接的下载速率。When the data download rate of the client (that is, the downlink traffic bandwidth) reaches the set second rate limit threshold, the front-end socket of the egress server (that is, the socket that communicates with the last hop server) is based on the threshold that has been set. Transmit rate shaping, which is the rate limit for data transmission, limits the download rate of the client's network connection.
本申请实施例通过接收其他服务器发送的所述请求报文并从请求报文中获取第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制下行流量带宽。当入口服务器与出口服务器分别限制了上行流量带宽与下行流量带宽后,入口服务器和出口服务器之间的的多段网络连接带宽都得到了限速,不会导致流量突发,从而避免造成抖动及加速的不稳定性。需要说明的是,上述对限速阀值的设置在创建套接字时操作一次即可。The embodiment of the present application receives the request packet sent by another server, and obtains a second rate limit threshold from the request packet, and sets a rate limit threshold according to the second rate limit threshold to limit the downlink traffic bandwidth. When the ingress server and the egress server respectively limit the upstream traffic bandwidth and the downstream traffic bandwidth, the multi-segment network connection bandwidth between the ingress server and the egress server is limited, and the traffic burst is not caused, thereby avoiding jitter and acceleration. Instability. It should be noted that the above setting of the speed limit threshold value may be performed once when the socket is created.
需要说明的是,本申请实施例中的序号只是为了便于理解,并不限定各步骤的先后顺序。It should be noted that the serial numbers in the embodiments of the present application are only for ease of understanding, and do not limit the order of the steps.
相应的,本申请实施例还提供了一种网络限速装置,所述限速装置用于图1所示的任一服务器20,所述服务器作为入口服务器,如图8所示,所述装置300包括:Correspondingly, the embodiment of the present application further provides a network speed limiting device, which is used in any server 20 shown in FIG. 1 , and the server serves as an ingress server, as shown in FIG. 8 . 300 includes:
第一接收模块301,用于接收客户端发送的请求报文。The first receiving module 301 is configured to receive a request message sent by the client.
获取模块302,用于获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值。The obtaining module 302 is configured to obtain communication path information of the request message, and a first rate limit threshold and a second rate limit threshold.
第一设置模块303,用于根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值。The first setting module 303 is configured to establish a connection with the next hop server according to the communication path information, and set a rate limit threshold according to the first rate limit threshold to enable a data upload rate of the portal server. Less than the first speed limit threshold.
发送模块304,用于将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。The sending module 304 is configured to add the second rate limit threshold to the request message, and send the request message to the next hop server.
本申请实施例通过获取第一限速阈值和第二限速阈值,并根据第一限速阈值为入口服务器设置限速阈值,以限制上行流量带宽。以及将第二限速阈值加入请求报文发送给下一跳服务器,以使出口服务器能通过解析请求报文获得第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制下行流量带宽。从而使各应用访问能均衡占用带宽,提高了访问质量。The embodiment of the present application obtains the first rate limit threshold and the second rate limit threshold, and sets a rate limit threshold according to the first rate limit threshold to limit the uplink traffic bandwidth. And sending the second rate limit threshold request message to the next hop server, so that the egress server can obtain the second rate limit threshold by parsing the request message, and setting a rate limit threshold according to the second rate limit threshold. To limit the downstream traffic bandwidth. Therefore, each application access can balance the occupied bandwidth and improve the access quality.
可选的,在所述装置的其他实施例中,请参照图9,装置300还包括:Optionally, in other embodiments of the device, referring to FIG. 9, the device 300 further includes:
第一开启模块305,用于开启公平队列.The first opening module 305 is configured to open a fair queue.
第一设置模块303,具体用于:The first setting module 303 is specifically configured to:
根据下一跳服务器的地址信息和端口信息创建后端套接字,并将所述后端套接字与下一跳服务器建立连接,根据所述第一限速阈值为所述后端套接字设置限速阈值。Establishing a backend socket according to the address information and the port information of the next hop server, and establishing a connection between the backend socket and the next hop server, and the backend socket according to the first rate limit threshold The word sets the speed limit threshold.
可选的,在所述装置的其他实施例中,所述第二限速阈值以GRP格式放置于所述请求报文中,所述GRP格式基于二进制流,所述GRP格式包括头部和数据部分,所述数据部分包括选项单元和地址单元,所述第二限速阀值放置于所述选项单元中。Optionally, in other embodiments of the apparatus, the second rate limit threshold is placed in the request message in a GRP format, the GRP format is based on a binary stream, and the GRP format includes a header and data. In part, the data portion includes an option unit and an address unit, and the second rate limiting threshold is placed in the option unit.
需要说明的是,上述限速装置可执行本申请实施例所提供的限速方法,具备执行方法相应的功能模块和有益效果。未在限速装置实施例中详尽描述的技术细节,可参见本申请实施例所提供的限速方法。It should be noted that the speed limit device may perform the speed limit method provided by the embodiment of the present application, and has a function module and a beneficial effect corresponding to the execution method. For the technical details that are not described in detail in the embodiment of the present invention, reference may be made to the speed limiting method provided by the embodiment of the present application.
相应的,本申请实施例还提供了一种网络限速装置,所述限速装置用于图1所示的任一服务器20,所述服务器用于出口服务器时,如图10所示,所述装置400包括:Correspondingly, the embodiment of the present application further provides a network speed limiting device, where the speed limiting device is used in any server 20 shown in FIG. 1 , and when the server is used to export a server, as shown in FIG. 10 , The device 400 includes:
第二接收模块401,用于接收其他服务器发送的请求报文;The second receiving module 401 is configured to receive a request message sent by another server;
解析模块402,用于解析所述请求报文,获得第二限速阈值;The parsing module 402 is configured to parse the request packet to obtain a second rate limit threshold.
第二设置模块403,用于根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。The second setting module 403 is configured to set a rate limit threshold according to the second rate limit threshold, so that the data download rate through the egress server is smaller than the second rate limit threshold.
本申请实施例通过接收其他服务器发送的所述请求报文并从请求报文中获取第二限速阈值,并根据第二限速阈值为出口服务器设置限速阈值,以限制下行流量带宽。当入口服务器与出口服务器分别限制了上行流量带宽与下行流量带宽后,入口服务器和出口服务器之间的的多段网络连接带宽都得到了限速,不会导致流量突发,从而避免造成抖动及加速的不稳定性。The embodiment of the present application receives the request packet sent by another server, and obtains a second rate limit threshold from the request packet, and sets a rate limit threshold according to the second rate limit threshold to limit the downlink traffic bandwidth. When the ingress server and the egress server respectively limit the upstream traffic bandwidth and the downstream traffic bandwidth, the multi-segment network connection bandwidth between the ingress server and the egress server is limited, and the traffic burst is not caused, thereby avoiding jitter and acceleration. Instability.
可选的,在所述装置的其他实施例中,请参照图11,装置400还包括:Optionally, in other embodiments of the device, referring to FIG. 11, the device 400 further includes:
第二开启模块404,用于开启公平队列;a second opening module 404, configured to enable a fair queue;
第二设置模块403具体用于:The second setting module 403 is specifically configured to:
根据所述第二限速阈值为所述出口服务器的前端套接字设置限速阈值。And setting a rate limit threshold according to the second rate limit threshold of the front end socket of the egress server.
需要说明的是,上述限速装置可执行本申请实施例所提供的限速方法,具备执行方法相应的功能模块和有益效果。未在限速装置实施例中详尽描述的技术细节,可参见本申请实施例所提供的限速方法。It should be noted that the speed limit device may perform the speed limit method provided by the embodiment of the present application, and has a function module and a beneficial effect corresponding to the execution method. For the technical details that are not described in detail in the embodiment of the present invention, reference may be made to the speed limiting method provided by the embodiment of the present application.
图12是本申请实施例提供的服务器20的硬件结构示意图,如图12所示,该服务器20包括:FIG. 12 is a schematic diagram showing the hardware structure of the server 20 according to the embodiment of the present application. As shown in FIG. 12, the server 20 includes:
一个或多个处理器21以及存储器22,图12中以一个处理器21为例。One or more processors 21 and a memory 22 are exemplified by a processor 21 in FIG.
处理器21和存储器22可以通过总线或者其他方式连接,图12中以通过总线连接为例。The processor 21 and the memory 22 can be connected by a bus or other means, and the connection by a bus is taken as an example in FIG.
存储器22作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的限速方法对应的程序指令/模块(例如,附图10所示的第二接收模块401、解析模块402和第二设置模块403)。处理器21通过运行存储在存储器22中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的限速方法。The memory 22 is used as a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions corresponding to the rate limiting method in the embodiment of the present application. / Module (for example, the second receiving module 401, the parsing module 402, and the second setting module 403 shown in FIG. 10). The processor 21 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 22, that is, implementing the speed limiting method of the above method embodiments.
存储器22可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据限速装置的使用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器22可选包括相对于处理器21远程设置的存储器,这些远程存储器可以通过网络连接至限速装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the speed limiting device, and the like. Further, the memory 22 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, memory 22 may optionally include memory remotely located relative to processor 21, which may be connected to the rate limiting device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器22中,当被所述一个或者多个处理器21执行时,执行上述任意方法实施例中的限速方法,例如,执行以上描述的图2中的方法步骤101-104,图7中的方法步骤201至步骤203;实现图8中的模块301-304、图9中的模块301-305、图10中模块401-403、图11中的模块401-404的功能。The one or more modules are stored in the memory 22, and when executed by the one or more processors 21, perform a rate limiting method in any of the above method embodiments, for example, performing the above described FIG. Method steps 101-104, method steps 201 to 203 in FIG. 7; implementing modules 301-304 in FIG. 8, modules 301-305 in FIG. 9, modules 401-403 in FIG. 10, modules in FIG. The function of 401-404.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本申请实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图12中的一个处理器21,可使得上述一个或多个处理器可执行上述任意方法实施例中的限速方法,例如,执行以上描述的图2中的方法步骤101-104,图7中的方法步骤201至步骤203;实现图8中的模块301-304、图9中的模块301-305、图10中模块401-403、图11中的模块401-404的功能。Embodiments of the present application provide a non-transitory computer readable storage medium storing computer-executable instructions that are executed by one or more processors, such as in FIG. a processor 21, which may cause the one or more processors to perform the rate limiting method in any of the above method embodiments, for example, to perform the method steps 101-104 of FIG. 2 described above, the method steps in FIG. 201 to 203; functions of the modules 301-304 in FIG. 8, the modules 301-305 in FIG. 9, the modules 401-403 in FIG. 10, and the modules 401-404 in FIG. 11 are implemented.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存储记忆体(Random Access Memory, RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (Random Access). Memory, RAM), etc.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (13)

  1. 一种网络限速方法,所述方法应用于服务器,所述服务器与其他至少一个服务器通信连接,其特征在于,所述服务器作为入口服务器,所述方法包括:A network rate limiting method, the method is applied to a server, and the server is in communication with another at least one server, wherein the server is used as an ingress server, and the method includes:
    接收客户端发送的请求报文;Receiving a request message sent by the client;
    获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值;Obtaining communication path information of the request message, and a first rate limit threshold and a second rate limit threshold;
    根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值;Establishing a connection with the next hop server according to the communication path information, and setting a rate limit threshold according to the first rate limit threshold, so that the data upload rate of the portal server is smaller than the first rate limit threshold. ;
    将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。Adding the second rate limit threshold to the request message, and sending the request message to the next hop server.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    开启公平队列;Open the fair queue;
    所述根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值,包括:The establishing a connection with the next hop server according to the communication path information, and setting a rate limit threshold according to the first rate limit threshold, so that the data upload rate of the portal server is smaller than the first limit. Speed threshold, including:
    根据下一跳服务器的地址信息和端口信息创建后端套接字,并将所述后端套接字与下一跳服务器建立连接,根据所述第一限速阈值为所述后端套接字设置限速阈值。Establishing a backend socket according to the address information and the port information of the next hop server, and establishing a connection between the backend socket and the next hop server, and the backend socket according to the first rate limit threshold The word sets the speed limit threshold.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二限速阈值以GRP格式放置于所述请求报文中,所述GRP格式基于二进制流,所述GRP格式包括头部和数据部分,所述数据部分包括选项单元和地址单元,所述第二限速阀值放置于所述选项单元中。The method according to claim 1 or 2, wherein the second rate limit threshold is placed in the request message in a GRP format, the GRP format is based on a binary stream, and the GRP format includes a header and And a data portion, the data portion including an option unit and an address unit, the second rate limiting threshold being placed in the option unit.
  4. 一种网络限速方法,所述限速方法应用于服务器,其特征在于,所述服务器与其他至少一个服务器通信连接,所述服务器作为出口服务器,所述方法包括:A network rate limiting method, where the rate limiting method is applied to a server, wherein the server is in communication with another at least one server, and the server is an egress server, and the method includes:
    接收其他服务器发送的请求报文;Receiving request messages sent by other servers;
    解析所述请求报文,获得第二限速阈值;Parsing the request packet to obtain a second rate limit threshold;
    根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。Setting a rate limit threshold according to the second rate limit threshold to the egress server, so that a data download rate passing the egress server is smaller than the second rate limit threshold.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    开启公平队列;Open the fair queue;
    所述根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值,包括:And setting a rate limit threshold according to the second rate limit threshold, so that the data download rate of the egress server is smaller than the second rate limit threshold, including:
    根据所述第二限速阈值为所述出口服务器的前端套接字设置限速阈值。And setting a rate limit threshold according to the second rate limit threshold of the front end socket of the egress server.
  6. 一种网络限速装置,所述装置应用于服务器,所述服务器与其他至少一个服务器通信连接,其特征在于,所述服务器作为入口服务器,所述装置包括:A network rate limiting device, the device is applied to a server, and the server is in communication with another at least one server, wherein the server is used as an ingress server, and the device includes:
    第一接收模块,用于接收客户端发送的请求报文;a first receiving module, configured to receive a request message sent by the client;
    获取模块,用于获取所述请求报文的通信路径信息,以及第一限速阈值和第二限速阈值;An acquiring module, configured to acquire communication path information of the request packet, and a first rate limit threshold and a second rate limit threshold;
    第一设置模块,用于根据所述通信路径信息与下一跳服务器建立连接,根据所述第一限速阈值为所述入口服务器设置限速阈值,以使经过该入口服务器的数据上传速率小于所述第一限速阈值;a first setting module, configured to establish a connection with the next hop server according to the communication path information, and set a rate limit threshold according to the first rate limit threshold, so that a data upload rate of the portal server is less than The first speed limit threshold;
    发送模块,用于将所述第二限速阈值加入所述请求报文,并将所述请求报文发送给下一跳服务器。And a sending module, configured to add the second rate limit threshold to the request message, and send the request message to a next hop server.
  7. 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第一开启模块,用于开启公平队列;a first opening module, configured to enable a fair queue;
    所述第一设置模块,具体用于:The first setting module is specifically configured to:
    根据下一跳服务器的地址信息和端口信息创建后端套接字,并将所述后端套接字与下一跳服务器建立连接,根据所述第一限速阈值为所述后端套接字设置限速阈值。Establishing a backend socket according to the address information and the port information of the next hop server, and establishing a connection between the backend socket and the next hop server, and the backend socket according to the first rate limit threshold The word sets the speed limit threshold.
  8. 根据权利要求6或7所述的装置,其特征在于,所述第二限速阈值以GRP格式放置于所述请求报文中,所述GRP格式基于二进制流,所述GRP格式包括头部和数据部分,所述数据部分包括选项单元和地址单元,所述第二限速阀值放置于所述选项单元中。The apparatus according to claim 6 or 7, wherein the second rate limit threshold is placed in the request message in a GRP format, the GRP format is based on a binary stream, and the GRP format includes a header and And a data portion, the data portion including an option unit and an address unit, the second rate limiting threshold being placed in the option unit.
  9. 一种网络限速装置,所述限速装置应用于服务器,其特征在于,所述服务器与其他至少一个服务器通信连接,所述服务器作为出口服务器,所述装置包括:A network speed limiting device, the speed limiting device is applied to a server, wherein the server is in communication connection with another at least one server, and the server serves as an egress server, and the device includes:
    第二接收模块,用于接收其他服务器发送的请求报文;a second receiving module, configured to receive a request message sent by another server;
    解析模块,用于解析所述请求报文,获得第二限速阈值;a parsing module, configured to parse the request packet to obtain a second rate limit threshold;
    第二设置模块,用于根据所述第二限速阈值为所述出口服务器设置限速阈值,以使经过该出口服务器的数据下载速率小于所述第二限速阈值。And a second setting module, configured to set a rate limit threshold according to the second rate limit threshold, so that a data download rate of the egress server is smaller than the second rate limit threshold.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    第二开启模块,用于开启公平队列;a second opening module, configured to enable a fair queue;
    所述第二设置模块具体用于:The second setting module is specifically configured to:
    根据所述第二限速阈值为所述出口服务器的前端套接字设置限速阈值。And setting a rate limit threshold according to the second rate limit threshold of the front end socket of the egress server.
  11. 一种服务器,其特征在于,包括:A server, comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of claims 1-5 method.
  12. 一种非易失性计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,当所述计算机可执行指令被服务器执行时,使所述服务器执行执行权利要求1-5任一项所述的方法。A non-transitory computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions that, when executed by a server, cause the server to execute an enforcement claim The method of any of 1-5.
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被服务器执行时,使所述服务器执行权利要求1-5任一项所述的方法。A computer program product, comprising: a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a server, Having the server perform the method of any of claims 1-5.
PCT/CN2017/118932 2017-12-27 2017-12-27 Network speed limiting method and apparatus, and server WO2019127083A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/118932 WO2019127083A1 (en) 2017-12-27 2017-12-27 Network speed limiting method and apparatus, and server
CN201780003310.0A CN108235804B (en) 2017-12-27 2017-12-27 Network speed limiting method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/118932 WO2019127083A1 (en) 2017-12-27 2017-12-27 Network speed limiting method and apparatus, and server

Publications (1)

Publication Number Publication Date
WO2019127083A1 true WO2019127083A1 (en) 2019-07-04

Family

ID=62645514

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118932 WO2019127083A1 (en) 2017-12-27 2017-12-27 Network speed limiting method and apparatus, and server

Country Status (2)

Country Link
CN (1) CN108235804B (en)
WO (1) WO2019127083A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765813A (en) * 2020-09-24 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for dynamically adjusting message receiving rate

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338543B (en) * 2022-03-14 2022-06-21 北京指掌易科技有限公司 Network access speed limiting method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161913A1 (en) * 2001-04-30 2002-10-31 Manuel Gonzalez System and method for performing a download
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
CN105471933A (en) * 2014-08-07 2016-04-06 腾讯科技(深圳)有限公司 Server overload protecting method, server overload protecting system and server
CN106060122A (en) * 2016-05-20 2016-10-26 北京奇虎科技有限公司 Docker container uploading/downloading feature control method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110753A (en) * 2006-07-20 2008-01-23 华为技术有限公司 End-to-end quality assurance method and system based on congestion alarm
CN101217456A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 A bandwidth scheduling method and system in network application
CN102938906B (en) * 2011-08-16 2016-12-21 中兴通讯股份有限公司 The performance of voice and packet data concurrent service improves method and mobile communication system
CN105791152B (en) * 2014-12-19 2019-02-19 新华三技术有限公司 A kind of flow control methods, SDN controller and SDN equipment
CN106341335A (en) * 2016-08-23 2017-01-18 上海斐讯数据通信技术有限公司 Traffic control method and traffic control system based on SDN
CN106789703B (en) * 2017-01-12 2020-10-13 上海斐讯数据通信技术有限公司 SDN architecture-based traffic supervision method
CN106921584A (en) * 2017-03-31 2017-07-04 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161913A1 (en) * 2001-04-30 2002-10-31 Manuel Gonzalez System and method for performing a download
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
CN105471933A (en) * 2014-08-07 2016-04-06 腾讯科技(深圳)有限公司 Server overload protecting method, server overload protecting system and server
CN106060122A (en) * 2016-05-20 2016-10-26 北京奇虎科技有限公司 Docker container uploading/downloading feature control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765813A (en) * 2020-09-24 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for dynamically adjusting message receiving rate

Also Published As

Publication number Publication date
CN108235804B (en) 2021-12-31
CN108235804A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108064443B (en) Proxy forwarding method and device, proxy server and multi-level proxy network
US9231820B2 (en) Methods and apparatus for controlling wireless access points
US20200358886A1 (en) Data Transmission Method, Apparatus, And System
US10085253B2 (en) Methods and apparatus for controlling wireless access points
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
US11477130B2 (en) Transmission control method and apparatus
KR20190033075A (en) System and method for virtual multipath data transmission
JP5867942B2 (en) Method for generating an entry, method for receiving a packet, and corresponding apparatus and system
US10911413B2 (en) Encapsulating and tunneling WebRTC traffic
JPWO2005099188A1 (en) Communication quality control method and apparatus
CN109196842B (en) Session keeping method, device and storage medium
WO2021083284A1 (en) Load balancing method and apparatus, medium and device
WO2015172668A1 (en) Method and device for determining congestion window in network
US11405489B2 (en) Method and apparatus for determining quality of service, and storage medium
WO2016172958A1 (en) Dynamic traffic control method, device and home gateway, and hybrid access aggregation point
WO2019127083A1 (en) Network speed limiting method and apparatus, and server
EP3420691B1 (en) Data streaming with layer 2 and layer 3 reservations
CN108064441B (en) Method and system for accelerating network transmission optimization
CN112398754B (en) Data transmission method, device, medium, electronic equipment and network access equipment
WO2015131739A1 (en) Data exchange method, baseband processing unit, radio frequency remote unit and relay unit
WO2016206043A1 (en) Method and device for data transmission
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
US10374944B2 (en) Quality of service for data transmission
WO2023284231A1 (en) Message processing method and message processing system
CN114726797A (en) Accelerated transmission method, device, equipment, system and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17935883

Country of ref document: EP

Kind code of ref document: A1