[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108235804B - Network speed limiting method and device and server - Google Patents

Network speed limiting method and device and server Download PDF

Info

Publication number
CN108235804B
CN108235804B CN201780003310.0A CN201780003310A CN108235804B CN 108235804 B CN108235804 B CN 108235804B CN 201780003310 A CN201780003310 A CN 201780003310A CN 108235804 B CN108235804 B CN 108235804B
Authority
CN
China
Prior art keywords
server
speed limit
limit threshold
speed
request message
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.)
Active
Application number
CN201780003310.0A
Other languages
Chinese (zh)
Other versions
CN108235804A (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.)
Cloudminds Shanghai Robotics Co Ltd
Original Assignee
Cloudminds Robotics 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 Cloudminds Robotics Co Ltd filed Critical Cloudminds Robotics Co Ltd
Publication of CN108235804A publication Critical patent/CN108235804A/en
Application granted granted Critical
Publication of CN108235804B publication Critical patent/CN108235804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 embodiment of the invention relates to the technical field of network communication, for example to a network speed limiting method, a device and a server, wherein the method comprises the following steps: receiving a request message sent by a client; acquiring communication path information of the request message, and a first speed limit threshold and a second speed limit threshold; establishing connection with a next hop server according to the communication path information, and setting a speed limit threshold value for the portal server according to the first speed limit threshold value so that the data uploading speed passing through the portal server is smaller than the first speed limit threshold value; and adding the second speed limit threshold into the request message, and sending the request message to a next hop server. According to the embodiment of the invention, the speed limit threshold is set for the entrance server according to the first speed limit threshold so as to limit the uplink flow bandwidth. And setting a speed limit threshold for the exit server according to the second speed limit threshold so as to limit the bandwidth of the downlink flow. Therefore, each application access can occupy the bandwidth in a balanced manner, and the access quality is improved.

Description

Network speed limiting method and device and server
Technical Field
The embodiment of the invention relates to the technical field of network communication, in particular to a network speed limiting method, a network speed limiting device and a server.
Background
When a user uses a network application, a data access request message is generally sent to a source station server through an application client installed on a user terminal to obtain corresponding content, for example, a video application may send the data access request message to the source station server through a computer to obtain corresponding video content and play the video content. In an Application Delivery Network (ADN), there are various Application accelerations such as video acceleration, large file transfer acceleration, web page acceleration, and the like.
In the course of studying the prior art, the inventors found that there are at least the following problems in the related art: the bandwidth of the video application can easily fill the entire bandwidth, resulting in slow access (e.g., page loading) by other applications, affecting the acceleration effect, while in fact video viewing does not require very high bandwidth. It would be advantageous to provide a solution that would allow applications to use bandwidth evenly.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, and a server for limiting a network speed, which enable each application access to occupy bandwidth in a balanced manner, and optimize access quality.
In a first aspect, an embodiment of the present invention provides a network speed limiting method, where the method is applied to a server, the server is in communication connection with at least one other server, and the server is used as a portal server, and the method includes:
receiving a request message sent by a client;
acquiring communication path information of the request message, and a first speed limit threshold and a second speed limit threshold;
establishing connection with a next hop server according to the communication path information, and setting a speed limit threshold value for the portal server according to the first speed limit threshold value so that the data uploading speed passing through the portal server is smaller than the first speed limit threshold value;
and adding the second speed limit threshold into the request message, and sending the request message to a next hop server.
In a second aspect, an embodiment of the present invention further provides a network speed limiting method, where the speed limiting method is applied to a server, the server is in communication connection with at least one other server, and the server serves as an egress server, and the method includes:
receiving request messages sent by other servers;
analyzing the request message to obtain a second speed limit threshold;
and setting a speed limit threshold value for the exit server according to the second speed limit threshold value, so that the data downloading speed passing through the exit server is smaller than the second speed limit threshold value.
In a third aspect, an embodiment of the present invention further provides a network speed limiting device, where the device is applied to a server, the server is in communication connection with at least one other server, and the server is used as an entry server, where the device includes:
the first receiving module is used for receiving a request message sent by a client;
the acquisition module is used for acquiring the communication path information of the request message, and the first speed limit threshold value and the second speed limit threshold value;
the first setting module is used for establishing connection with a next hop server according to the communication path information and setting a speed limit threshold value for the entrance server according to the first speed limit threshold value so that the data uploading speed passing through the entrance server is smaller than the first speed limit threshold value;
and the sending module is used for adding the second speed limit threshold value into the request message and sending the request message to a next hop server.
In a fourth aspect, an embodiment of the present invention further provides a network speed limiting device, where the speed limiting device is applied to a server, the server is in communication connection with at least one other server, and the server is used as an egress server, where the device includes:
the second receiving module is used for receiving request messages sent by other servers;
the analysis module is used for analyzing the request message to obtain a second speed limit threshold value;
and the second setting module is used for setting a speed limit threshold value for the exit server according to the second speed limit threshold value so as to enable the data downloading speed passing through the exit server to be smaller than the second speed limit threshold value.
In a fifth aspect, an embodiment of the present invention further provides a server, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
According to the speed limiting method, the speed limiting device and the server provided by the embodiment of the invention, the speed limiting threshold is set for the entrance server according to the first speed limiting threshold by obtaining the first speed limiting threshold and the second speed limiting threshold so as to limit the uplink flow bandwidth. And sending the second speed limit threshold adding request message to the next hop server so that the exit server can obtain the second speed limit threshold by analyzing the request message, and setting the speed limit threshold for the exit server according to the second speed limit threshold to limit the downlink flow bandwidth. Therefore, each application access can occupy the bandwidth in a balanced manner, and the access quality is improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of an application scenario of the network speed limiting method and apparatus of the present invention;
FIG. 2 is a flow diagram for one embodiment of a portal server side speed limiting method of the present invention;
FIG. 3 is a diagram illustrating an inter-server communication architecture in accordance with an embodiment of the present invention;
FIG. 4 is a diagram of a GRP format in an embodiment of the present invention;
FIG. 5 is a diagram illustrating GRP format data portion in an embodiment of the present invention;
FIG. 6 is a diagram illustrating the format of each option unit in the GRP format data part according to the embodiment of the present invention;
FIG. 7 is a flow diagram for one embodiment of an egress server-side speed limit method of the present invention;
FIG. 8 is a schematic diagram illustrating the structure of one embodiment of the portal server-side governor of the present invention;
FIG. 9 is a schematic diagram illustrating the structure of one embodiment of the portal server-side governor of the present invention;
FIG. 10 is a schematic diagram illustrating the construction of one embodiment of the egress server-side governor of the present invention;
FIG. 11 is a schematic diagram illustrating the construction of one embodiment of the egress server-side governor of the present invention;
fig. 12 is a schematic hardware structure diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network speed limiting method and device provided by the invention are suitable for the application scenario shown in fig. 1, and comprise at least two servers 20, wherein the at least two servers 20 are in communication connection with each other, and any one server 20 in the at least two servers 20 is in communication connection with the controller 10. Of the at least two servers 20, the one communicatively coupled to the client is referred to as the ingress server and the one communicatively coupled to the origin server is referred to as the egress server. If there are more than three servers 20, the other servers 20 act as intermediate servers responsible for forwarding data packets between the ingress server and the egress server. Wherein each server 20 may serve any one of an ingress server, an intermediate server, and an egress server for different data transfer tasks.
The controller 10 is configured to manage transmission paths of data packets between the servers 20, and the controller 10 may obtain a communication path in advance and transmit the communication path to a corresponding portal server. And the entrance server sends the data request message to the source station server through the intermediate server and the exit server according to the communication path. The controller 10 is further configured to send a first speed limit threshold and a second speed limit threshold to the ingress server, and the ingress server sets a speed limit threshold for the ingress server according to the first speed limit threshold, so as to limit a data uploading rate (i.e., an uplink traffic bandwidth). And the entrance server also encapsulates the second speed limit threshold into the request message and sends the request message to the oral server through the intermediate server. The exit server analyzes the request message to obtain a second speed limit threshold, and sets a speed limit threshold for the exit server according to the second speed limit threshold to limit the data download rate (namely, the downlink traffic bandwidth). Therefore, each application access can occupy the bandwidth in a balanced manner, and the access quality is improved.
The network speed limiting method provided in the embodiment of the present invention may be executed by any server 20 shown in fig. 1, as shown in fig. 2, which is a flowchart of an embodiment of the speed limiting method, and when the server 20 is used as a portal server, the speed limiting method includes:
101: and receiving a request message sent by a client.
102: and acquiring the communication path information of the request message, and a first speed limit threshold and a second speed limit threshold.
In practical applications, the communication path information, the first speed limit threshold and the second speed limit threshold may be sent to the ingress server by the controller 10, and the controller 10 may obtain a preferred path from the ingress server to the source station server in advance through, for example, a routing algorithm, and then send the communication path information of the preferred path to the corresponding ingress server. From the communication path information, address information and port information of, for example, the next hop server, and address information and port information of the remaining hop servers, and the like can be obtained. Among them, address information such as an IP (Internet Protocol) address, and port information such as a port number.
103: and establishing connection with a next hop server according to the communication path information, and setting a speed limit threshold value for the portal server according to the first speed limit threshold value so as to enable the data uploading speed passing through the portal server to be smaller than the first speed limit threshold value.
In practical applications, a communication architecture shown in fig. 3 may be adopted between two servers (in the figure, an intermediate server is omitted between an ingress server and an egress server), where fe-sk represents a front-end socket and be-sk represents a back-end socket in fig. 3, where the front-end socket of the ingress server is responsible for communicating with a client, the back-end socket is responsible for communicating with a next-hop server, the front-end socket of the egress server is responsible for communicating with a previous-hop server, and the back-end socket is responsible for communicating with a source station server.
The connection between the entry server and the next hop server may be established, a backend socket may be created according to the address information and the port information of the next hop server, and the backend socket may be connected to the next hop server. Setting a speed limit threshold for the portal server may be achieved by setting a speed limit threshold for a backend socket, or a front-end socket and a backend socket of the portal server. Taking Linux system as an example, fair queues are opened for an entrance server, each intermediate server and an exit server, and after receiving a first speed limit threshold, the entrance server sets a speed limit threshold for a backend socket according to the first speed limit threshold. In practical application, a setsockopt () function may be called to set a speed limit threshold for a backend socket.
When the data uploading rate (uplink flow bandwidth) of the client reaches the set first speed limit threshold, the back-end socket of the entry server (i.e. the socket communicating with the next-hop server) performs sending rate shaping according to the set speed limit threshold, i.e. limits the data sending rate, thereby limiting the uploading rate of the network connection of the client.
104: and adding the second speed limit threshold into the request message, and sending the request message to a next hop server.
Before adding the second speed limit threshold to the request message, the second speed limit threshold may be encapsulated based on a Global Routing Protocol (GRP), and the GRP encapsulates the communication path information based on a binary stream, so that the length of the data segment can be effectively shortened, and the utilization rate of the network bandwidth can be improved.
Fig. 4 shows one form of a GRP format, which includes a header + Data portion, the header portion including an 8-byte Version number (Version), a 2-byte information type (MsgType), a 2-byte Data Stream length (Datalen), and the Data portion including a byte-variable Data Stream (Data Stream). Referring to fig. 5, the data portion includes an option unit and a plurality of address units, each address unit may be used to place address information of one server 20, and the second speed limit threshold may be placed in the option unit. Referring to fig. 6, a specific format of the option unit includes a 4-byte path ID, a 4-byte timestamp, a 4-byte session ID, and a 4-byte threshold. Wherein the value of the second speed limit threshold is placed in the 4-byte threshold segment.
According to the embodiment of the invention, the first speed limit threshold and the second speed limit threshold are obtained, and the speed limit threshold is set for the entrance server according to the first speed limit threshold so as to limit the uplink flow bandwidth. And sending the second speed limit threshold adding request message to the next hop server so that the exit server can obtain the second speed limit threshold by analyzing the request message, and setting the speed limit threshold for the exit server according to the second speed limit threshold to limit the downlink flow bandwidth. Therefore, each application access can occupy the bandwidth in a balanced manner, and the access quality is improved.
It should be noted that, the sequence numbers in the embodiments of the present invention are only for easy understanding, and do not limit the sequence of the steps.
An embodiment of the present invention further provides a network speed limiting method, which may be executed by any server 20 shown in fig. 1, as shown in fig. 7, which is a flowchart of an embodiment of the speed limiting method, where when the server is used as an egress server, the method includes:
201: and receiving the request message sent by other servers.
202: and analyzing the request message to obtain a second speed limit threshold value.
The intermediate server does not process the second speed limit threshold in the request message, and when the outlet server receives the request message sent by the inlet server or the intermediate server, the outlet server analyzes the request message to obtain the second speed limit threshold.
203: and setting a speed limit threshold value for the exit server according to the second speed limit threshold value, so that the data downloading speed passing through the exit server is smaller than the second speed limit threshold value.
Referring to fig. 3, the setting of the speed limit threshold for the egress server may be implemented by setting the speed limit threshold for a front-end socket of the egress server, or for a front-end socket and a back-end socket of the egress server. Taking the Linux system as an example, after receiving the second speed limit threshold, the egress server sets a speed limit threshold for the front-end socket according to the second speed limit threshold. In practical application, setsockopt () function may be called to set a speed limit threshold for the front-end socket.
When the data download rate (i.e. the downlink traffic bandwidth) of the client reaches the set second speed-limiting threshold, the front-end socket of the egress server (i.e. the socket communicating with the previous-hop server) performs sending rate shaping according to the set threshold, i.e. limits the rate of data sending, thereby limiting the download rate of the network connection of the client.
The embodiment of the invention receives the request messages sent by other servers, acquires the second speed limit threshold value from the request messages, and sets the speed limit threshold value for the exit server according to the second speed limit threshold value so as to limit the bandwidth of the downlink flow. After the upstream traffic bandwidth and the downstream traffic bandwidth are respectively limited by the inlet server and the outlet server, the multi-segment network connection bandwidth between the inlet server and the outlet server is limited in speed, and traffic burst is not caused, so that jitter and acceleration instability are avoided. It should be noted that the setting of the speed limit threshold may be performed once when creating the socket.
It should be noted that, the sequence numbers in the embodiments of the present invention are only for easy understanding, and do not limit the sequence of the steps.
Correspondingly, an embodiment of the present invention further provides a network speed limiting device, where the speed limiting device is used in any server 20 shown in fig. 1, and the server is used as a portal server, as shown in fig. 8, where the device 300 includes:
the first receiving module 301 is configured to receive a request packet sent by a client.
An obtaining module 302, configured to obtain the communication path information of the request packet, and the first speed limit threshold and the second speed limit threshold.
A first setting module 303, configured to establish a connection with a next hop server according to the communication path information, and set a speed limit threshold for the portal server according to the first speed limit threshold, so that the data upload rate passing through the portal server is smaller than the first speed limit threshold.
A sending module 304, configured to add the second speed limit threshold to the request packet, and send the request packet to a next hop server.
According to the embodiment of the invention, the first speed limit threshold and the second speed limit threshold are obtained, and the speed limit threshold is set for the entrance server according to the first speed limit threshold so as to limit the uplink flow bandwidth. And sending the second speed limit threshold adding request message to the next hop server so that the exit server can obtain the second speed limit threshold by analyzing the request message, and setting the speed limit threshold for the exit server according to the second speed limit threshold to limit the downlink flow bandwidth. Therefore, each application access can occupy the bandwidth in a balanced manner, and the access quality is improved.
Optionally, in another embodiment of the apparatus, referring to fig. 9, the apparatus 300 further includes:
a first opening module 305 for opening the fair queue.
The first setting module 303 is specifically configured to:
and establishing a back-end socket according to the address information and the port information of the next-hop server, establishing connection between the back-end socket and the next-hop server, and setting a speed-limiting threshold for the back-end socket according to the first speed-limiting threshold.
Optionally, in another embodiment of the apparatus, the second speed limit threshold is placed in the request message in a GRP format, the GRP format is based on a binary stream, the GRP format includes a header and a data portion, the data portion includes an option unit and an address unit, and the second speed limit threshold is placed in the option unit.
It should be noted that the speed limiting device can execute the speed limiting method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiments of the speed limiting device, reference may be made to the speed limiting method provided by the embodiments of the present invention.
Correspondingly, an embodiment of the present invention 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 in an egress server, as shown in fig. 10, the device 400 includes:
a second receiving module 401, configured to receive a request message sent by another server;
an analyzing module 402, configured to analyze the request packet to obtain a second speed limit threshold;
a second setting module 403, configured to set a speed limit threshold for the egress server according to the second speed limit threshold, so that the data download rate through the egress server is smaller than the second speed limit threshold.
The embodiment of the invention receives the request messages sent by other servers, acquires the second speed limit threshold value from the request messages, and sets the speed limit threshold value for the exit server according to the second speed limit threshold value so as to limit the bandwidth of the downlink flow. After the upstream traffic bandwidth and the downstream traffic bandwidth are respectively limited by the inlet server and the outlet server, the multi-segment network connection bandwidth between the inlet server and the outlet server is limited in speed, and traffic burst is not caused, so that jitter and acceleration instability are avoided.
Optionally, in another embodiment of the apparatus, referring to fig. 11, the apparatus 400 further includes:
a second starting module 404, configured to start a fair queue;
the second setting module 403 is specifically configured to:
and setting a speed limit threshold value for the front-end socket of the outlet server according to the second speed limit threshold value.
It should be noted that the speed limiting device can execute the speed limiting method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiments of the speed limiting device, reference may be made to the speed limiting method provided by the embodiments of the present invention.
Fig. 12 is a schematic diagram of a hardware structure of a server 20 according to an embodiment of the present invention, and as shown in fig. 12, the server 20 includes:
one or more processors 21 and a memory 22, with one processor 21 being an example in fig. 12.
The processor 21 and the memory 22 may be connected by a bus or other means, and fig. 12 illustrates the connection by a bus as an example.
The memory 22, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the speed limiting method in the embodiment of the present invention (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 of the server and data processing by running the nonvolatile software programs, instructions and modules stored in the memory 22, that is, implements the speed limiting method of the above-described method embodiment.
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 program required for at least one function; the stored data area may store data created according to the use of the speed limit device, and the like. Further, the memory 22 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 22 may optionally include memory located remotely from the processor 21, and these remote memories may be connected to the speed limiter 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.
The one or more modules are stored in the memory 22, and when executed by the one or more processors 21, perform the speed limiting method in any of the above-described method embodiments, for example, the method steps 101 and 104 in fig. 2, and the method steps 201 to 203 in fig. 7, which are described above; the functions of the module 301 and 304 in fig. 8, the module 301 and 305 in fig. 9, the module 401 and 403 in fig. 10, and the module 401 and 404 in fig. 11 are realized.
The product can execute the method provided by the embodiment of the invention, and has 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 embodiment of the present invention.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer-executable instructions, which are executed by one or more processors, such as the processor 21 in fig. 12, to enable the one or more processors to execute the speed limiting method in any of the above-mentioned method embodiments, such as the method steps 101 and 104 in fig. 2 and the method steps 201 to 203 in fig. 7; the functions of the module 301 and 304 in fig. 8, the module 301 and 305 in fig. 9, the module 401 and 403 in fig. 10, and the module 401 and 404 in fig. 11 are realized.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for limiting network speed, the method being applied to a server, the server being a portal server, the server being communicatively connected to at least one other server, the method comprising:
receiving a request message sent by a client;
acquiring communication path information of the request message, and a first speed limit threshold and a second speed limit threshold;
establishing connection with a next hop server according to the communication path information, and setting a speed limit threshold value for the portal server according to the first speed limit threshold value so that the data uploading speed passing through the portal server is smaller than the first speed limit threshold value;
adding the second speed limit threshold into the request message, sending the request message to a next hop server, so that an exit server obtains the request message, then analyzing the request message to obtain the second speed limit threshold, and setting a speed limit threshold for the exit server according to the second speed limit threshold;
the method further comprises the following steps:
opening a fair queue;
the establishing connection with a next hop server according to the communication path information, and setting a speed limit threshold for the portal server according to the first speed limit threshold so that the data uploading speed passing through the portal server is smaller than the first speed limit threshold, includes:
and establishing a back-end socket according to the address information and the port information of the next-hop server, establishing connection between the back-end socket and the next-hop server, and setting a speed-limiting threshold for the back-end socket according to the first speed-limiting threshold.
2. The method of claim 1, wherein the second speed limit threshold is placed in the request message in a GRP format, wherein the GRP format is based on a binary stream, wherein the GRP format comprises a header portion and a data portion, wherein the data portion comprises an option unit and an address unit, and wherein the second speed limit threshold is placed in the option unit.
3. A network speed limiting method is applied to a server, and is characterized in that the server is used as an exit server and is in communication connection with at least one other server, and the method comprises the following steps:
receiving request messages sent by other servers, wherein the request messages comprise second speed limit thresholds added by the entrance server;
analyzing the request message to obtain a second speed limit threshold;
setting a speed limit threshold value for the exit server according to the second speed limit threshold value, so that the data downloading speed passing through the exit server is smaller than the second speed limit threshold value;
the method further comprises the following steps:
opening a fair queue;
the setting of the speed limit threshold for the exit server according to the second speed limit threshold so that the data download rate passing through the exit server is smaller than the second speed limit threshold includes:
and setting a speed limit threshold value for the front-end socket of the outlet server according to the second speed limit threshold value.
4. A network speed limiting device, said device being applied to a server, said server being a portal server, said server being communicatively connected to at least one other server, said device comprising:
the first receiving module is used for receiving a request message sent by a client;
the acquisition module is used for acquiring the communication path information of the request message, and the first speed limit threshold value and the second speed limit threshold value;
the first setting module is used for establishing connection with a next hop server according to the communication path information and setting a speed limit threshold value for the entrance server according to the first speed limit threshold value so that the data uploading speed passing through the entrance server is smaller than the first speed limit threshold value;
the sending module is used for adding the second speed limit threshold into the request message and sending the request message to a next hop server so that an exit server can analyze the request message to obtain the second speed limit threshold after obtaining the request message, and the speed limit threshold is set for the exit server according to the second speed limit threshold;
the device further comprises:
the first opening module is used for opening the fair queue;
the first setting module is specifically configured to:
and establishing a back-end socket according to the address information and the port information of the next-hop server, establishing connection between the back-end socket and the next-hop server, and setting a speed-limiting threshold for the back-end socket according to the first speed-limiting threshold.
5. The apparatus of claim 4, wherein the second speed limit threshold is placed in the request message in a GRP format, the GRP format based on a binary stream, the GRP format comprising a header and a data portion, the data portion comprising an option unit and an address unit, the second speed limit threshold being placed in the option unit.
6. A network speed limiting device is applied to a server, and is characterized in that the server is used as an exit server and is in communication connection with at least one other server, and the device comprises:
the second receiving module is used for receiving the request message sent by the other server, wherein the request message comprises a second speed limit threshold value added by the entrance server;
the analysis module is used for analyzing the request message to obtain a second speed limit threshold value;
the second setting module is used for setting a speed limit threshold value for the exit server according to the second speed limit threshold value so that the data downloading speed passing through the exit server is smaller than the second speed limit threshold value;
the device further comprises:
the second opening module is used for opening the fair queue;
the second setting module is specifically configured to:
and setting a speed limit threshold value for the front-end socket of the outlet server according to the second speed limit threshold value.
7. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a server, cause the server to perform the method of any of claims 1-3.
9. A computer program product, characterized in that the computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a server, cause the server to perform the method of any of claims 1-3.
CN201780003310.0A 2017-12-27 2017-12-27 Network speed limiting method and device and server Active CN108235804B (en)

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 (2)

Publication Number Publication Date
CN108235804A CN108235804A (en) 2018-06-29
CN108235804B true CN108235804B (en) 2021-12-31

Family

ID=62645514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780003310.0A Active CN108235804B (en) 2017-12-27 2017-12-27 Network speed limiting method and device and server

Country Status (2)

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

Families Citing this family (2)

* 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
CN114338543B (en) * 2022-03-14 2022-06-21 北京指掌易科技有限公司 Network access speed limiting method, device, equipment and storage medium

Citations (8)

* 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
CN102938906A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method for improving performances of concurrent business
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
CN105791152A (en) * 2014-12-19 2016-07-20 杭州华三通信技术有限公司 Traffic control method, SDN (Soft Define Network) controller and SDN device
CN106341335A (en) * 2016-08-23 2017-01-18 上海斐讯数据通信技术有限公司 Traffic control method and traffic control system based on SDN
CN106789703A (en) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 A kind of traffic policing algorithm based on SDN frameworks
CN106921584A (en) * 2017-03-31 2017-07-04 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method

Family Cites Families (3)

* 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
CN105471933B (en) * 2014-08-07 2019-04-26 腾讯科技(深圳)有限公司 Server overload guard method, server overload protection system and server
CN106060122B (en) * 2016-05-20 2019-03-05 北京奇虎科技有限公司 Docker container uploads/downloads the control method and device of characteristic

Patent Citations (8)

* 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
CN102938906A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method for improving performances of concurrent business
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
CN105791152A (en) * 2014-12-19 2016-07-20 杭州华三通信技术有限公司 Traffic control method, SDN (Soft Define Network) controller and SDN device
CN106341335A (en) * 2016-08-23 2017-01-18 上海斐讯数据通信技术有限公司 Traffic control method and traffic control system based on SDN
CN106789703A (en) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 A kind of traffic policing algorithm based on SDN frameworks
CN106921584A (en) * 2017-03-31 2017-07-04 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method

Also Published As

Publication number Publication date
CN108235804A (en) 2018-06-29
WO2019127083A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN108064443B (en) Proxy forwarding method and device, proxy server and multi-level proxy network
US10757013B2 (en) System and method for virtual multipath data transport
US10425339B2 (en) Multi-homed load-balanced rate-based tunnels
US20150249845A1 (en) Live video broadcasting from a mobile device
CN109889521B (en) Memory, communication channel multiplexing implementation method, device and equipment
CN107454276B (en) User terminal equipment, data forwarding method thereof and communication system
US10225204B2 (en) Content based overload protection
CN110875799A (en) Transmission control method and device
WO2021083284A1 (en) Load balancing method and apparatus, medium and device
CN108235804B (en) Network speed limiting method and device and server
CN114221909B (en) Data transmission method, device, terminal and storage medium
WO2018153309A1 (en) File transmission method and apparatus capable of implementing demanded acceleration, medium, and device
CN113301000A (en) Data transmission method, device, medium and equipment
JP6968990B2 (en) Methods and equipment for determining quality of service, as well as programs
CN108064441B (en) Method and system for accelerating network transmission optimization
CN105743788A (en) Data packet forwarding method and device
WO2016206043A1 (en) Method and device for data transmission
CN114979793B (en) Live broadcast data transmission method, device, system, equipment and medium
CN102801603A (en) Split control method and device for accelerating network address translation
CN108353035B (en) Method and apparatus for multiplexing data
CN114726797B (en) Acceleration transmission method, device, equipment, system and storage medium
CN109495570B (en) Method and device for forwarding sampling message and data center
US11870699B1 (en) Techniques for multi-channel network congestion control
CN112423020B (en) Motion capture data distribution and acquisition method and system
CN112995101B (en) Service message transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210318

Address after: 200000 second floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Shenzhen Qianhaida Yunyun Intelligent Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 201111 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Patentee after: Dayu robot Co.,Ltd.

Address before: 200000 second floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Patentee before: Dalu Robot Co.,Ltd.

CP03 Change of name, title or address