WO2021109726A1 - 一种带宽限制方法、装置及系统 - Google Patents

一种带宽限制方法、装置及系统 Download PDF

Info

Publication number
WO2021109726A1
WO2021109726A1 PCT/CN2020/121762 CN2020121762W WO2021109726A1 WO 2021109726 A1 WO2021109726 A1 WO 2021109726A1 CN 2020121762 W CN2020121762 W CN 2020121762W WO 2021109726 A1 WO2021109726 A1 WO 2021109726A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
service
bandwidth
management
established
Prior art date
Application number
PCT/CN2020/121762
Other languages
English (en)
French (fr)
Inventor
张景顺
Original Assignee
北京金山云网络技术有限公司
北京金山云科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山云网络技术有限公司, 北京金山云科技有限公司 filed Critical 北京金山云网络技术有限公司
Publication of WO2021109726A1 publication Critical patent/WO2021109726A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Definitions

  • the present disclosure relates to the field of network technology, and in particular to a method, device and system for bandwidth limitation.
  • bandwidth limitation is usually based on a single link.
  • the server in the network is used to implement specific services.
  • each client needs to request a service from the server, each client establishes a single link with the server.
  • the server For each single link, when the occupied bandwidth of the single link exceeds the preset bandwidth threshold, the occupied bandwidth of the single link is limited.
  • bandwidth limitation can be achieved by applying the above method.
  • the number of clients that establish a single link with each server is variable and the number is uncontrollable. Therefore, applying the above method for bandwidth limitation can only achieve bandwidth limitation for each single link. When the number is too large, the bandwidth of the entire network will still be high.
  • the purpose of the embodiments of the present disclosure is to provide a bandwidth limitation method, device, and system to prevent bandwidth in the network from being excessively occupied.
  • the specific technical solutions are as follows:
  • the embodiments of the present disclosure provide a bandwidth limitation method, which is applied to a management node in a bandwidth limitation system, wherein the bandwidth limitation system further includes a service node, and the service node includes a management sub-node and a service sub-node.
  • the method includes: determining a target domain name, and sending the target domain name to each management sub-node; obtaining the number of established links and node bandwidth sent by each management sub-node, wherein the established link is: the management sub-node
  • the established link between the target service child node and the client in the service node where the target service child node is: a service child node that provides access to the target domain name service, and the node bandwidth indicates the corresponding service node where the management child node is located The bandwidth occupied by the established links; if the total occupied bandwidth exceeds the preset bandwidth threshold, the available bandwidth corresponding to each service node is determined according to the number of established links obtained and the node bandwidth, and the determined bandwidth is sent to each management sub-node
  • embodiments of the present disclosure provide a bandwidth limitation method, which is applied to a management sub-node included in a service node in a bandwidth limitation system, the bandwidth limitation system further includes a management node, and the service node further includes a service sub-node ,
  • the method includes: receiving the target domain name sent by the management node; obtaining the number of established links and the node bandwidth, wherein the established links are: the target service sub-node and the client in the service node where the management sub-node is located
  • the target service child node is a service child node that provides access to the target domain name service, and the node bandwidth represents the bandwidth occupied by the established link; and sends the obtained link to the management node.
  • the number of established links and the bandwidth of the node so that the management node determines the available bandwidth corresponding to each service node according to the received number of established links and the node bandwidth; receiving the management node sent by the management node
  • the available bandwidth corresponding to the service node where the child node is located is restricted based on the received available bandwidth to limit the occupied bandwidth of the established link.
  • an embodiment of the present disclosure provides a bandwidth limitation device, which is applied to a management node in a bandwidth limitation system, wherein the bandwidth limitation system further includes a service node, and the service node includes a management sub-node and a service sub-node.
  • the device includes: a target domain name determining module configured to determine the target domain name and sending the target domain name to each management sub-node; a quantity and bandwidth receiving module configured to obtain the number of established links sent by each management sub-node and Node bandwidth, wherein the established link is: the established link between the target service sub-node and the client in the service node where the management sub-node is located, and the target service sub-node is: providing a service to access the target domain name service A child node, the node bandwidth represents the bandwidth occupied by the established link corresponding to the service node where the management child node is located; if the total occupied bandwidth exceeds the preset bandwidth threshold, the available bandwidth sending module is triggered.
  • the established link is: the established link between the target service sub-node and the client in the service node where the management sub-node is located
  • the target service sub-node is: providing a service to access the target domain name service
  • the node bandwidth represents the bandwidth occupied by the
  • the available bandwidth sending module is set to Obtain the number of established links and node bandwidth, determine the available bandwidth corresponding to each service node, and send the determined available bandwidth to each management sub-node, so that each management sub-node compares the service node where it is based on the received available bandwidth.
  • the corresponding occupied bandwidth of the established link is limited, where the total occupied bandwidth is: the sum of the obtained node bandwidth.
  • an embodiment of the present disclosure provides a bandwidth limitation device, which is applied to a management sub-node included in a service node in a bandwidth limitation system, the bandwidth limitation system further includes: a management node, and the service node further includes a service sub-node
  • the device includes: a target domain name receiving module configured to receive the target domain name sent by the management node; a quantity and bandwidth obtaining module configured to obtain the number of established links and the node bandwidth, wherein the established links are: The established link between the target service child node and the client in the service node where the management child node is located, the target service child node is: a service child node that provides access to the target domain name service, and the node bandwidth represents the The bandwidth occupied by established links; the quantity and bandwidth sending module is configured to send the obtained number of established links and the node bandwidth to the management node, so that the management node according to the received number of established links and node Bandwidth, determine the available bandwidth corresponding to each service node, the bandwidth
  • an embodiment of the present disclosure provides a bandwidth limitation system
  • the bandwidth limitation system includes a management node and a service node
  • the service node includes a management sub-node and a service sub-node for providing a service
  • the management node is set to determine the target domain name and send the target domain name to each management sub-node
  • each management sub-node is set to obtain the number of established links and the node bandwidth, and send the obtained established links to the management node
  • the service child node of the service, the node bandwidth represents the bandwidth occupied by the established link corresponding to the service node where the management child node is located; the management node is also set to receive the number of established links and the node bandwidth sent by each
  • the embodiments of the present disclosure provide an electronic device.
  • the electronic device serves as a management node and includes a processor, a communication interface, a memory, and a communication bus.
  • the processor, the communication interface, and the memory communicate with each other through the communication bus.
  • the memory is configured to store computer programs; the processor is configured to execute the programs stored in the memory to implement the method steps described in the first aspect.
  • the embodiments of the present disclosure provide an electronic device.
  • the electronic device includes a processor, a communication interface, a memory, and a communication bus.
  • the processor, the communication interface, and the memory complete each other through the communication bus.
  • the memory is configured to store computer programs; the processor is configured to execute the programs stored in the memory to implement the method steps described in the second aspect above.
  • embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method steps described in the first aspect are implemented. .
  • embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method steps described in the second aspect are implemented. .
  • embodiments of the present disclosure provide a computer program product containing instructions.
  • the computer program product containing instructions runs on a computer
  • the computer program implements the method steps described in the first aspect when executed by the computer.
  • embodiments of the present disclosure provide a computer program product containing instructions.
  • the computer program product containing instructions runs on a computer
  • the computer program implements the method steps described in the second aspect when executed by the computer.
  • the embodiments of the present disclosure provide a computer program that, when run on a computer, enables the computer to implement the method steps described in the first aspect when executed by the computer.
  • the embodiments of the present disclosure provide a computer program that, when run on a computer, enables the computer to implement the method steps described in the second aspect when executed by the computer.
  • the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links and the node bandwidth.
  • Bandwidth determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes.
  • the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • FIG. 1 is a schematic diagram of a bandwidth limitation system provided by an embodiment of the disclosure.
  • FIG. 2 is a schematic flowchart of a first bandwidth limitation method provided by an embodiment of the disclosure.
  • FIG. 3 is a schematic flowchart of a second bandwidth limitation method provided by an embodiment of the disclosure.
  • FIG. 4 is a schematic flowchart of a third bandwidth limitation method provided by an embodiment of the disclosure.
  • FIG. 5 is a schematic structural diagram of a first bandwidth limiting device provided by an embodiment of the disclosure.
  • FIG. 6 is a schematic structural diagram of a second bandwidth limiting device provided by an embodiment of the disclosure.
  • FIG. 7 is a schematic structural diagram of a third bandwidth limiting device provided by an embodiment of the disclosure.
  • FIG. 8 is a schematic diagram of another bandwidth limiting system provided by an embodiment of the disclosure.
  • FIG. 9 is a schematic structural diagram of a first electronic device provided by an embodiment of the disclosure.
  • FIG. 10 is a schematic structural diagram of a second type of electronic device provided by an embodiment of the disclosure.
  • Figure 1 is a schematic diagram of a bandwidth limitation system provided by an embodiment of the present disclosure, which includes a bandwidth limitation user interface, a configuration node, a management node, a service node 1, and a service node 2.
  • the service node 1 includes a management sub-node 1, Service child node 11, service child node 12,..., service child node 1n, service node 2 includes management child node 2, service child node 21, service child node 22,..., service child node 2n.
  • the service sub-node 11, the service sub-node 12,..., The service sub-node 1 n are used to provide services to users and perform data interaction with the management sub-node 1.
  • the service sub-node 21, the service sub-node 22,..., The service sub-node 2n are also used to provide services to users and perform data interaction with the management sub-node 2.
  • Each service sub-node can be one electronic device or multiple electronic devices.
  • the management sub-node 1 and the management sub-node 2 conduct data interaction with each service sub-node on the one hand, and conduct data interaction with the management node on the other hand.
  • the above two aspects of the process can be carried out simultaneously through two threads.
  • the management sub-node 1 and the management sub-node 2 can be electronic devices independent of the service sub-nodes in the service nodes they belong to, or electronic devices that serve as the service sub-nodes in the service nodes they belong to, that is, an electronic device can be used as Management sub-nodes can also be used as service sub-nodes.
  • a hash algorithm can be used to calculate the hash value of the identification of each electronic device as the service child node, and then according to the calculated hash value, one of the electronic devices as the service child node is selected The electronic device serves as the management sub-node.
  • the bandwidth limit user interface is an interface that is displayed on the client used by users or staff and used to enter bandwidth limit information such as domain names and bandwidth thresholds.
  • the configuration node is used to receive the bandwidth limit information sent by the client used by the user or staff, and save the bandwidth limit information.
  • the management node is used for data interaction with each management sub-node, and obtains the bandwidth limit information set by the user or the staff from the configuration node.
  • FIG. 2 is a schematic flowchart of a first bandwidth limitation method provided by an embodiment of the present disclosure, which is applied to a management node in a bandwidth limitation system, and the above method includes S201-S203.
  • S201 Determine the target domain name, and send the target domain name to each management sub-node.
  • the above-mentioned target domain name can be a single domain name, such as www.xxx.com or www.xxx.cn.
  • the aforementioned target domain name may also be multiple domain names belonging to a domain name group, for example: multiple domain names with a suffix of .com.
  • the above-mentioned target domain name can be the domain name entered by the user or staff on the bandwidth limit user interface, the domain name selected by the user or staff on the bandwidth limit user interface, or the domain name selected by the user or staff on the bandwidth limit user interface.
  • the bandwidth limit user interface sends the information configured by the user or staff to the configuration node, and the configuration node saves the above configuration Information, the management node obtains the target domain name contained in the information configured by the user or staff stored in the configuration node at a fixed time or at a preset interval.
  • the management node may send the target domain name obtained within the preset time interval to each management sub-node.
  • the aforementioned established link is: the established link between the target service subnode and the client in the service node where the management subnode is located, and the aforementioned target service subnode is: a service subnode that provides access to the target domain name service.
  • the target service child node since the target service child node is used to provide access to the target domain name service, when the user accesses the target domain name on the client used by the user, the client will establish a link with the target service child node. For example: when the user visits the target domain name www.xxx.com on the client used by the user, the target service child node providing access to the target domain name www.xxx.com is the service child node A, then the above client will interact with the service child node A establishes the link.
  • the aforementioned node bandwidth represents the bandwidth occupied by the established link corresponding to the service node where the management child node is located.
  • the aforementioned node bandwidth may be the occupied bandwidth of each established link, or may also be the total occupied bandwidth of the established link corresponding to the service node where the management child node is located.
  • the established link corresponding to the above service node is: the established link between the target service child node in the service node and the client.
  • each management sub-node After each management sub-node receives the target domain name sent by the management node, each management sub-node determines the service sub-node used to provide access to the target domain name service, that is, the target service sub-node, and collects statistics between the target service sub-node and the client. The number of links established and the node bandwidth obtained. Each management sub-node can send the counted number of established links and node bandwidth to the management node according to a preset interval.
  • S203 If the total occupied bandwidth exceeds the preset bandwidth threshold, determine the available bandwidth corresponding to each service node according to the obtained number of established links and the node bandwidth, and send the determined available bandwidth to each management sub-node, so that Each management sub-node restricts the occupied bandwidth of the established link corresponding to the serving node according to the received available bandwidth.
  • the above-mentioned total occupied bandwidth is: the sum of the obtained node bandwidth.
  • the bandwidth limitation system includes service node 1 and service node 2.
  • the total occupied bandwidth is the sum of the bandwidth occupied by the established links corresponding to a single domain name; when the target domain name is multiple domain names belonging to a domain name group, the total occupied bandwidth is the established bandwidth corresponding to multiple domain names The sum of the bandwidth occupied by the link.
  • the established link corresponding to the domain name can be understood as: the link between the service child node and the client that provides access to the domain name service.
  • the preset bandwidth threshold may be set by the user or staff on the bandwidth limitation user interface, and the management node obtains the preset bandwidth threshold set by the user or staff on the bandwidth limitation user interface.
  • the foregoing preset bandwidth threshold may be 1000 Mbps.
  • each target service sub-node in the service node and the client When the number of links established between each target service sub-node in the service node and the client is large, it means that there are more clients accessing the target domain name. In this way, more available bandwidth can be determined for the above service node to ensure service
  • the child nodes can provide normal services for accessing the target domain name; similarly, when the link established between each target service child node in the service node and the client occupies a high bandwidth, it means that the transmission between each target service child node and the client
  • the amount of data is relatively large, so that more available bandwidth can be determined for the above-mentioned service node, and the normal data transmission between each target service sub-node and the client has been determined.
  • the available bandwidth corresponding to each service node is determined from two aspects, and the network status in each service node is fully considered. In this way, while limiting the bandwidth, it can also ensure the normal data transmission of each established link in the service node. And each service sub-node can still provide normal services.
  • the available bandwidth Quota corresponding to each service node can be calculated according to the following formula:
  • a is the number of established links sent by the management sub-nodes included in the service node
  • A is the sum of the number of established links sent by the management sub-nodes obtained by the management node
  • b is sent by the management sub-nodes included in the service node B is the total occupied bandwidth
  • C is the preset bandwidth threshold
  • X is the first weight corresponding to the serving node
  • Y is the second weight corresponding to the serving node.
  • the available bandwidth corresponding to each service node can be determined more accurately.
  • the management node may send a message containing the determined available bandwidth to each management child node, and the above message may also include an identifier that the total occupied bandwidth exceeds a preset bandwidth threshold.
  • the management sub-node can perform bandwidth restriction on the established link according to the available bandwidth according to the identifier that the total occupied bandwidth carried in the message exceeds the preset bandwidth threshold.
  • the above-mentioned message may be a message generated according to a preset message format.
  • the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links and the node bandwidth.
  • Bandwidth determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes.
  • the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • the method may further include:
  • each management sub-node Determine the service response strategy information based on the new link corresponding to the target domain name, and send the obtained information to each management sub-node, so that each management sub-node informs the target service sub-node of the service node where the total occupied bandwidth exceeds the preset Respond to the service based on the new link according to the service response policy at the bandwidth threshold.
  • the above-mentioned new link can be understood as: providing a newly established link between the target service child node of the target domain name and the client.
  • the information of the service response strategy based on the new link corresponding to the target domain name may be the identification information of the service response strategy based on the new link corresponding to the target domain name, or the specific content of the service response strategy based on the new link corresponding to the target domain name.
  • the information about the service response strategy based on the new link corresponding to the target domain name may be information entered by the user or staff on the bandwidth limit user interface, or it can be provided by the user or staff on the bandwidth limit user interface.
  • Each service responds to the selected information in the policy information.
  • the bandwidth limit user interface sends the information configured by the user or staff to the configuration node.
  • the configuration node saves the above-mentioned configuration information.
  • the management node obtains the service response configured by the user or the staff saved in the configuration node at a fixed time or at a preset interval. Strategy information.
  • the above-mentioned service response strategy may include one of the following strategies:
  • the first type Send a response to the client for the service request sent by the client based on the new link.
  • the above-mentioned first strategy can be understood as: when the client sends a service request to the target service child node based on the new link, the target service child node refuses to provide a service to the client.
  • the above response contains a status code and information used to indicate refusal to provide services.
  • the above status code is used to indicate the reason for the refusal to provide the service.
  • the above status code can be 403, 403 indicates that the service child node understands the content of the service request, but refuses to execute the service request sent by the client based on the new link;
  • the above status code can also be 404, 404 indicates that the client sends based on the new link
  • the desired content of the service request is not stored on the service child node.
  • the above-mentioned status code may be stored in the header of the above-mentioned service refusal response message.
  • the second type Send a service response based on the service request of the new link to the client according to the preset bandwidth.
  • the above-mentioned second strategy can be understood as: when the client sends a service request to the target service subnode based on the new link, the target service subnode can send the provided service response to the client according to a preset bandwidth.
  • the target service child node When the target service child node sends a service response based on the service request of the new link to the client, it may be sent according to the preset bandwidth, or may be sent according to the preset bandwidth not exceeding.
  • the third type for the service request sent by the client based on the new link, the service request is forwarded to the preset service subnode, so that the preset service subnode responds to the service request.
  • the third strategy mentioned above can be understood as: when the client sends a service request to the target service child node based on the new link, the target service child node forwards the service request to the preset service child node, so that the preset service child node forwards the service request to the preset service child node.
  • the client sends the service response strategy provided.
  • the target service child node may change the destination IP address or target domain name carried in the service request to the preset IP address or domain name of the service child node, so that the service request can be forwarded to the preset service child node. In this way, forwarding the service request to the preset service sub-node can normally respond to the service request sent by the client based on the new link, ensuring the quality of the service provided to the user.
  • the service response strategy can be a variety of service response strategies
  • the service sub-node in the service node where the management sub-node is located can flexibly respond to the service request based on the new link.
  • FIG. 3 is a schematic flowchart of a second bandwidth limitation method provided by an embodiment of the present disclosure, which is applied to a management sub-node included in a service node in a bandwidth limitation system.
  • the foregoing method includes S301-S302.
  • S301 Receive the target domain name sent by the management node.
  • the management sub-node After the management node executes sending the target domain name to each management sub-node, correspondingly, the management sub-node will be able to receive the target domain name sent by the management node.
  • the management sub-node can monitor each target service sub-node included in the service node where it is located. After monitoring the target service sub-node that establishes a link with the client, it records the relationship between the target service sub-node and the client. The occupied bandwidth of the links established between the target service sub-nodes and the client, thereby determining the number of established links and the node bandwidth.
  • S303 Send the obtained number of established links and node bandwidth to the management node, so that the management node determines the available bandwidth corresponding to each service node according to the received number of established links and node bandwidth.
  • S304 Receive the available bandwidth corresponding to the service node where the management child node is located from the management node, and limit the occupied bandwidth of the established link according to the received available bandwidth.
  • the management child node can limit the occupied bandwidth of each established link according to the available bandwidth.
  • the management sub-node when the available bandwidth received by the management sub-node is the total available bandwidth corresponding to the serving node, the management sub-node can determine the number of established links according to the received available bandwidth and the number of established links. An available bandwidth of an established link; according to the determined available bandwidth of each established link, the occupied bandwidth of each established link is restricted.
  • the management sub-node determines the available bandwidth of each established link according to the received available bandwidth and the number of established links, and the following two determination methods can be used.
  • the first method According to the received available bandwidth and the number of established links, the available bandwidth of each established link is evenly distributed. For example: when the available bandwidth received by the management child node is 1000 Mbps and the number of established links is 10, then the available bandwidth of each established link is 100 Mbps.
  • the second method According to the received available bandwidth and the number of established links, the available bandwidth of each established link is calculated separately. For example: when the available bandwidth received by the management child node is 1000 Mbps, the number of established links is 2, and the weight of the established link 1 is 0.4, then the available bandwidth of the established link 1 is 400 Mbps, and the weight of the established link 2 is 0.6, then the available bandwidth of the established link 2 is 600Mbps. In this way, the management sub-node can flexibly determine the available bandwidth of each established link, thereby restricting the occupied bandwidth of each established link.
  • the occupied bandwidth parameter information of each established link can be modified to the received available bandwidth.
  • the management sub-node in the service node sends the number of established links and the node bandwidth to the management node, and receives the information sent by the management node according to the received established link.
  • Available bandwidth determined by the number and node bandwidth. Therefore, the management node receives data and sends available bandwidth in units of service nodes.
  • the number of service nodes is controllable and less variable. In this way, when the available bandwidth is determined by the service node as a unit, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • FIG. 4 is a schematic flowchart of a third bandwidth limitation method provided by an embodiment of the present disclosure. After the above S304, S305-S306 may be included.
  • S305 Obtain the information of the service response strategy based on the new link sent by the management node.
  • S306 Notify the target service child node in the service node to respond to the service based on the new link according to the service response policy when the total occupied bandwidth exceeds the preset bandwidth threshold.
  • the management sub-node can send a request to execute the service response strategy to each target service sub-node, and each target service sub-node responds to the service based on the new link according to the service response strategy.
  • the service response strategy can be a variety of service response strategies
  • the service sub-nodes in the service node where the management sub-node is located can flexibly respond to the service based on the new link. Request a response.
  • the above-mentioned service response strategy includes one of the following strategies:
  • a response is sent to the client, where the response includes a status code and information indicating a refusal to provide service, and the status code is used to indicate the reason for refusal to provide service; , It can ensure that the entire network occupies bandwidth, and based on the status code returned to the client, the reason for refusing to respond to the client's request can be determined.
  • the service response based on the service request of the new link is sent to the client; in this way, data transmission according to the preset bandwidth can limit the overall bandwidth occupied by the network.
  • the service request is forwarded to the preset service subnode, so that the preset service subnode responds to the service request.
  • forwarding the service request to the preset service sub-node can normally respond to the service request sent by the client based on the new link, ensuring the quality of the service provided to the user.
  • the figure is a schematic structural diagram of the first bandwidth limiting device provided by an embodiment of the present disclosure, which is applied to a management node in a bandwidth limiting system, where the bandwidth limiting system further includes: a service node, and the service node includes The management sub-node and the service sub-node, the device includes:
  • the target domain name determining module 501 is configured to determine the target domain name, and send the target domain name to each management sub-node;
  • the quantity and bandwidth receiving module 502 is configured to obtain the number of established links and the node bandwidth sent by each management child node, where the established links are: between the target service child node and the client in the service node where the management child node is located
  • the target service child node is: a service child node that provides access to the target domain name service, and the node bandwidth represents the bandwidth occupied by the established link corresponding to the service node where the management child node is located;
  • the available bandwidth sending module 503 is triggered.
  • the available bandwidth sending module 503 is set to determine the available bandwidth corresponding to each service node according to the obtained number of established links and the node bandwidth, And send the determined available bandwidth to each management sub-node, so that each management sub-node limits the occupied bandwidth of the established link corresponding to the serving node according to the received available bandwidth, where the total occupied bandwidth is: Get the sum of node bandwidth.
  • the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links and the node bandwidth.
  • Bandwidth determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes.
  • the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • the foregoing available bandwidth sending module 503 includes:
  • the available bandwidth calculation sub-module is set to calculate the available bandwidth Quota corresponding to each service node according to the obtained number of established links and node bandwidth according to the following formula:
  • a is the number of established links sent by the management sub-nodes included in the service node
  • A is the sum of the number of established links sent by the management sub-nodes obtained by the management node
  • b is sent by the management sub-nodes included in the service node B is the total occupied bandwidth
  • C is the preset bandwidth threshold
  • X is the first weight corresponding to the serving node
  • Y is the second weight corresponding to the serving node
  • the available bandwidth sending sub-module is set to send the determined available bandwidth to each management sub-node, so that each management sub-node limits the occupied bandwidth of the established link corresponding to the service node according to the received available bandwidth.
  • the total occupied bandwidth is: the sum of the obtained node bandwidth.
  • the available bandwidth corresponding to each service node can be determined more accurately.
  • the method further includes:
  • the information sending module is configured to determine the information of the new link-based service response strategy corresponding to the target domain name, and send the obtained information to each management sub-node, so that each management sub-node informs the target service sub-node in the service node where it is located When the total occupied bandwidth exceeds the preset bandwidth threshold, respond to the service based on the new link according to the service response policy.
  • the service response strategy can be a variety of service response strategies
  • the service sub-node in the service node where the management sub-node is located can flexibly respond to the service request based on the new link.
  • the above-mentioned service response strategy includes one of the following strategies:
  • a response is sent to the client, where the response includes a status code and information indicating the refusal to provide the service, and the status code is used to indicate the reason for the refusal to provide the service; , It can ensure that the entire network occupies bandwidth, and based on the status code returned to the client, the reason for refusing to respond to the client's request can be determined.
  • the service response based on the service request of the new link is sent to the client; in this way, data transmission according to the preset bandwidth can limit the overall bandwidth occupied by the network.
  • the service request is forwarded to the preset service subnode, so that the preset service subnode responds to the service request.
  • forwarding the service request to the preset service sub-node can normally respond to the service request sent by the client based on the new link, ensuring the quality of the service provided to the user.
  • FIG. 6 is a schematic structural diagram of a second bandwidth limiting device provided by an embodiment of the present disclosure, which is applied to a management sub-node included in a service node in a bandwidth limiting system.
  • the bandwidth limiting system further includes: a management node, the service The node also includes a service child node, and the device includes:
  • the target domain name receiving module 601 is configured to receive the target domain name sent by the management node;
  • the quantity and bandwidth obtaining module 602 is configured to obtain the number of established links and the node bandwidth, wherein the established link is: the established link between the target service sub-node and the client in the service node where the management sub-node is located ,
  • the target service child node is: a service child node that provides access to the target domain name service, and the node bandwidth represents the bandwidth occupied by the established link;
  • the quantity and bandwidth sending module 603 is configured to send the obtained number of established links and the node bandwidth to the management node, so that the management node determines each service according to the received number of established links and the node bandwidth.
  • the bandwidth limitation module 604 is configured to receive the available bandwidth corresponding to the service node where the management child node is located and sent by the management node, and limit the occupied bandwidth of the established link according to the received available bandwidth.
  • the management sub-node in the service node sends the number of established links and the node bandwidth to the management node, and receives the information sent by the management node based on the received established connection.
  • Available bandwidth determined by the number and node bandwidth. Therefore, the management node receives data and sends available bandwidth in units of service nodes.
  • the number of service nodes is controllable and less variable. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • the aforementioned bandwidth limiting module 604 includes:
  • a bandwidth receiving submodule configured to receive the available bandwidth corresponding to the service node where the management subnode is located, sent by the management node;
  • the available bandwidth determining sub-module is set to determine the available bandwidth of each established link according to the received available bandwidth and the number of established links;
  • the bandwidth restriction sub-module is set to limit the occupied bandwidth of each established link according to the determined available bandwidth of each established link.
  • the management sub-node can flexibly determine the available bandwidth of each established link, thereby restricting the occupied bandwidth of each established link.
  • FIG. 7 is a schematic structural diagram of a third bandwidth limiting device provided by an embodiment of the present disclosure. After the bandwidth limiting module 604, it further includes 605-606.
  • the information obtaining module 605 is configured to obtain the information of the service response strategy based on the new link sent by the management node;
  • the service sub-node notification module 606 is configured to notify the target service sub-node in the service node to respond to the service based on the new link according to the service response policy when the total occupied bandwidth exceeds a preset bandwidth threshold, where all The total occupied bandwidth is the sum of the node bandwidths received by the management node.
  • the service response strategy can be a variety of service response strategies
  • the service sub-nodes in the service node where the management sub-node is located can flexibly respond to the service based on the new link. Request a response.
  • the above-mentioned service response strategy includes one of the following strategies:
  • a response is sent to the client, where the response includes a status code and information indicating a refusal to provide service, and the status code is used to indicate the reason for refusal to provide service; , It can ensure that the entire network occupies bandwidth, and based on the status code returned to the client, the reason for refusing to respond to the client's request can be determined.
  • the service response based on the service request of the new link is sent to the client; in this way, data transmission according to the preset bandwidth can limit the overall bandwidth occupied by the network.
  • the service request is forwarded to the preset service subnode, so that the preset service subnode responds to the service request.
  • forwarding the service request to the preset service sub-node can normally respond to the service request sent by the client based on the new link, ensuring the quality of the service provided to the user.
  • FIG. 8 is a schematic diagram of a bandwidth limitation system provided by an embodiment of the present disclosure.
  • the above bandwidth limitation system includes a management node and a service node, and the service node includes a management sub-node and a service sub-node,
  • the management node is set to determine the target domain name, and send the target domain name to each management sub-node;
  • Each management child node is set to obtain the number of established links and node bandwidth, and send the obtained number of established links and node bandwidth to the management node, where the established links are: the service where the management child node is located
  • the management node is also set to receive the number of established links and node bandwidth sent by each management sub-node, and if the total occupied bandwidth exceeds the preset bandwidth threshold, the number of established links and the node bandwidth obtained are used to determine each The available bandwidth corresponding to the serving node, and sending the determined available bandwidth to each management sub-node, where the total occupied bandwidth is: the sum of the obtained node bandwidth;
  • Each management sub-node is also used to receive the available bandwidth sent by the management node, and according to the received available bandwidth, limit the occupied bandwidth of the established link corresponding to the service node where it is located.
  • the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links And the node bandwidth, determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes. Compared with the clients involved in related technologies, the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • the above-mentioned management node determines the available bandwidth corresponding to each service node according to the obtained number of established links and the node bandwidth, including:
  • a is the number of established links sent by the management sub-nodes included in the service node
  • A is the sum of the number of established links sent by the management sub-nodes obtained by the management node
  • b is the number of established links sent by the management sub-nodes included in the service node Node bandwidth
  • B is the total occupied bandwidth
  • C is the preset bandwidth threshold
  • X is the first weight corresponding to the serving node
  • Y is the second weight corresponding to the serving node.
  • the available bandwidth corresponding to each service node can be determined more accurately.
  • the management node is further configured to determine the new link-based service response strategy information corresponding to the target domain name after determining the target domain name, and send the obtained information to each management sub-node ;
  • Each management sub-node is further configured to notify the target service sub-node in the service node where it is located to respond to the service based on the new link according to the service response policy when the total occupied bandwidth exceeds a preset bandwidth threshold.
  • the service response strategy can be a variety of service response strategies
  • the service sub-node in the service node where the management sub-node is located can flexibly respond to the service request based on the new link.
  • the service response strategy includes one of the following strategies:
  • a response is sent to the client, where the response contains a status code and information indicating that the service is refused, and the status code is used to indicate the reason for the refusal to provide the service; , It can ensure that the overall bandwidth in the network is occupied, and based on the status code returned to the client, the reason for refusing to respond to the client's request can be determined.
  • the service response based on the service request of the new link is sent to the client; in this way, data transmission according to the preset bandwidth can limit the overall bandwidth occupied by the network.
  • the service request is forwarded to the preset service subnode, so that the preset service subnode responds to the service request.
  • forwarding the service request to the preset service sub-node can normally respond to the service request sent by the client based on the new link, ensuring the quality of the service provided to the user.
  • the limitation of the occupied bandwidth of the established link corresponding to the service node based on the received available bandwidth includes:
  • the occupied bandwidth of each established link is restricted.
  • the management sub-node can flexibly determine the available bandwidth of each established link, thereby restricting the occupied bandwidth of each established link.
  • FIG. 9 is a schematic structural diagram of a first electronic device provided by an embodiment of the present disclosure.
  • the electronic device includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904.
  • the processor 901, the communication interface 902, the memory 903 completes mutual communication through the communication bus 904,
  • the memory 903 is set to store computer programs
  • the processor 901 is configured to execute the program stored in the memory 903 to implement the bandwidth limitation method applied to the management node provided in the embodiment of the present disclosure.
  • the communication bus 904 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 904 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 902 is configured to communicate between the above-mentioned electronic device and other devices.
  • the memory 903 may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. In an implementation manner, the memory 903 may also be at least one storage device located far away from the foregoing processor.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the aforementioned processor 901 may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), a dedicated Integrated Circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • FIG. 10 is a schematic structural diagram of a second type of electronic device provided by an embodiment of the present disclosure.
  • the electronic device includes a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004.
  • the device 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004,
  • the memory 1003 is set to store computer programs
  • the processor 1001 When the processor 1001 is configured to execute the program stored in the memory 1003, it implements the bandwidth limitation method applied to the management of sub-nodes provided in the embodiments of the present disclosure.
  • the communication bus 1004 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 1002 is used for communication between the above-mentioned electronic device and other devices.
  • the memory 1003 may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. In an embodiment, the memory 1003 may also be at least one storage device located far away from the foregoing processor.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the above-mentioned processor 1001 may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), a dedicated Integrated Circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium stores a computer program.
  • the computer program is executed by a processor, the The bandwidth limitation method applied to the management node.
  • a computer-readable storage medium stores a computer program.
  • the computer program is executed by a processor, the The bandwidth limitation method applied to manage child nodes.
  • a computer program product containing instructions, which when run on a computer, enables the computer to implement the bandwidth limitation method applied to management nodes provided by the embodiments of the present disclosure when executed by the computer .
  • a computer program product containing instructions is also provided, which, when run on a computer, enables the computer to implement the bandwidth limit applied to the management of sub-nodes provided by the embodiments of the present disclosure when the computer is executed. method.
  • a computer program is also provided, which, when executed on a computer, enables the computer to implement the bandwidth limitation method applied to the management node provided by the embodiments of the present disclosure when the computer is executed.
  • a computer program is also provided, which, when the computer program is run on a computer, enables the computer to implement the bandwidth limitation method for managing sub-nodes provided by the embodiments of the present disclosure when the computer is executed.
  • the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links And the node bandwidth, determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes. Compared with the clients involved in related technologies, the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the management node since the management node receives the number of established links and the node bandwidth sent by the management sub-nodes in each service node, according to the obtained number of established links and the node bandwidth , Determine the available bandwidth corresponding to each service node, and send the available bandwidth to the management sub-nodes in each service node. Therefore, the management node receives data and sends available bandwidth in units of service nodes. Compared with the clients involved in related technologies, the number of service nodes is controllable and changes less. In this way, when the available bandwidth is determined based on the service node, it is not easy to cause the bandwidth in the network to be excessively occupied because the number of service nodes is uncontrollable.

Abstract

本公开实施例提供了一种带宽限制方法、装置及系统,应用于带宽限制系统中的管理节点,包括:确定目标域名;获得各个管理子节点发送的已建立链接的数量以及节点带宽,已建立链接为:目标服务子节点与客户端之间已建立的链接,目标服务子节点为:提供访问目标域名服务的服务子节点;若所获得节点带宽之和超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制。应用本实施例提供的方案进行带宽限制时,能够防止网络中带宽被过多地占用。

Description

一种带宽限制方法、装置及系统
本公开要求于2019年12月06日提交中国专利局、申请号为201911244277.8发明名称为“一种带宽限制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及网络技术领域,特别是涉及一种带宽限制方法、装置及系统。
背景技术
当网络中被占用的带宽较高时,数据传输效率也会随之降低,从而影响网络质量。为了保证网络质量,相关技术中,通常基于单链接进行带宽限制。
具体的,网络中服务器用于实现具体的服务,当各个客户端需要向服务器请求服务时,各个客户端分别与服务器之间建立单链接。对于每一条单链接而言,当该单链接的占用带宽超过预设带宽阈值时,对该单链接的占用带宽进行限制。
对于每一条单链接而言,应用上述方式可以实现带宽限制。然而,对于整个网络而言,与各个服务器建立单链接的客户端数量是变化的、且数量不可控,所以,应用上述方式进行带宽限制,仅仅能够针对每一条单链接实现带宽限制,当单链接数量过多时,依然会导致整个网络的带宽占用较高。
发明内容
本公开实施例的目的在于提供一种带宽限制方法、装置及系统,以防止网络中带宽被过多地占用。具体技术方案如下:
第一方面,本公开实施例提供了一种带宽限制方法,应用于带宽限制系统中的管理节点,其中,所述带宽限制系统还包括:服务节点,所述服务节点包括管理子节点和服务子节点,所述方法包括:确定目标域名,向各个管理子节点发送所述目标域名;获得各个管理子节点发送的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
第二方面,本公开实施例提供了一种带宽限制方法,应用于带宽限制系统中服务节点包括的管理子节点,所述带宽限制系统还包括:管理节点,所述服务节点还包括服务子节点,所述方法包括:接收所述管理节点发送的目标域名;获得已建立链接的数量以及节点带宽,其中,所述已建立链接为:所述管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示所述已建立链接占用的带宽;向所述管理节点发送所获得的已建立链接的数量以及节点带宽,以使得所述管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽;接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制。
第三方面,本公开实施例提供了一种带宽限制装置,应用于带宽限制系统中的管理节点,其中,所述带宽限制系统还包括:服务节点,所述服务节点包括管理子节点和服务子节点,所述装置包括:目标 域名确定模块,设置为确定目标域名,向各个管理子节点发送所述目标域名;数量和带宽接收模块,设置为获得各个管理子节点发送的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;若总占用带宽超过预设带宽阈值,触发可用带宽发送模块,所述可用带宽发送模块,设置为根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
第四方面,本公开实施例提供了一种带宽限制装置,应用于带宽限制系统中服务节点包括的管理子节点,所述带宽限制系统还包括:管理节点,所述服务节点还包括服务子节点,所述装置包括:目标域名接收模块,设置为接收所述管理节点发送的目标域名;数量和带宽获得模块,设置为获得已建立链接的数量以及节点带宽,其中,所述已建立链接为:所述管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示所述已建立链接占用的带宽;数量和带宽发送模块,设置为向所述管理节点发送所获得的已建立链接的数量以及节点带宽,以使得所述管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,带宽限制模块,设置为接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制。
第五方面,本公开实施例提供了一种带宽限制系统,所述带宽限制系统包括管理节点和服务节点,所述服务节点包括管理子节点和用于提供服务的服务子节点,其中,所述管理节点,设置为确定目标域名,向各个管理子节点发送所述目标域名;各个管理子节点,设置为获得已建立链接的数量以及节点带宽,并向所述管理节点发送所获得的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;所述管理节点,还设置为接收各个管理子节点发送的已建立链接的数量以及节点带宽,若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,其中,所述总占用带宽为:所获得节点带宽之和;各个管理子节点,还设置为接收所述管理节点发送的可用带宽,根据接收到的可用带宽,对所在服务节点对应的已建立链接的占用带宽进行限制。
第六方面,本公开实施例提供了一种电子设备,所述电子设备作为管理节点,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,设置为存放计算机程序;处理器,设置为执行存储器上所存放的程序时,实现上述第一方面所述的方法步骤。
第七方面,本公开实施例提供了一种电子设备,所述电子设备作为管理子节点,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,设置为存放计算机程序;处理器,设置为执行存储器上所存放的程序时,实现上述第二方面所述的方法步骤。
第八方面,本公开实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算 机程序,所述计算机程序被处理器执行时实现上述第一方面所述的方法步骤。
第九方面,本公开实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面所述的方法步骤。
第十方面,本公开实施例提供了一种包含指令的计算机程序产品,所述包含指令的计算机程序产品在计算机上运行时,使得计算机执行时实现上述第一方面所述的方法步骤。
第十一方面,本公开实施例提供了一种包含指令的计算机程序产品,所述包含指令的计算机程序产品在计算机上运行时,使得计算机执行时实现上述第二方面所述的方法步骤。
第十二方面,本公开实施例提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现上述第一方面所述的方法步骤。
第十三方面,本公开实施例提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现上述第二方面所述的方法步骤。
由以上可见,应用本公开实施例提供的方案进行带宽限制时,管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
附图说明
为了更清楚地说明本公开实施例和相关技术的技术方案,下面对实施例和相关技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种带宽限制系统的示意图。
图2为本公开实施例提供的第一种带宽限制方法的流程示意图。
图3为本公开实施例提供的第二种带宽限制方法的流程示意图。
图4为本公开实施例提供的第三种带宽限制方法的流程示意图。
图5为本公开实施例提供的第一种带宽限制装置的结构示意图。
图6为本公开实施例提供的第二种带宽限制装置的结构示意图。
图7为本公开实施例提供的第三种带宽限制装置的结构示意图。
图8为本公开实施例提供的另一种带宽限制系统的示意图。
图9为本公开实施例提供的第一种电子设备的结构示意图。
图10为本公开实施例提供的第二种电子设备的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本公开实施例进一步详细说明。
首先,对本公开实施例应用的带宽限制系统进行说明。参见图1,图1为本公开实施例提供的一种带宽限制系统的示意图,包括带宽限制用户界面、配置节点、管理节点、服务节点1、服务节点2,服务节点1包括管理子节点1、服务子节点11、服务子节点12、……、服务子节点1n,服务节点2包括 管理子节点2、服务子节点21、服务子节点22、……、服务子节点2n。
其中,服务子节点11、服务子节点12、……、服务子节点1n用于向用户提供服务,并且与管理子节点1进行数据交互。同样的,服务子节点21、服务子节点22、……、服务子节点2n也用于向用户提供服务,并且与管理子节点2进行数据交互。各个服务子节点可以是一台电子设备,也可以是多台电子设备。
管理子节点1、管理子节点2一方面与各个服务子节点进行数据交互,另一方面与管理节点进行数据交互。上述两个方面的过程可以通过两个线程同时进行。管理子节点1、管理子节点2可以是独立于各自所属服务节点中服务子节点的电子设备,还可以是作为各自所属服务节点中服务子节点的电子设备,也就是,一个电子设备既可以作为管理子节点,也可以作为服务子节点。在一实施方式中,可以通过哈希算法,计算作为服务子节点的各台电子设备标识的哈希算值,然后根据计算得到的哈希值,从作为服务子节点的电子设备中选择一台电子设备作为管理子节点。
带宽限制用户界面为:在用户或者工作人员所使用的客户端上显示的、且用于输入域名、带宽阈值等带宽限制信息的界面。
配置节点用于接收用户或者工作人员所使用的客户端发送的带宽限制信息,并保存带宽限制信息。
管理节点用于与各个管理子节点进行数据交互,并且从配置节点中获取用户或者工作人员设置的带宽限制信息。
以下对本公开实施例提供的一种带宽限制方法进行具体说明。
参见图2,图2为本公开实施例提供的第一种带宽限制方法的流程示意图,应用于带宽限制系统中的管理节点,上述方法包括S201-S203。
S201:确定目标域名,向各个管理子节点发送目标域名。
上述目标域名可以为单个域名,例如:www.xxx.com或者www.xxx.cn。上述目标域名还可以为属于一个域名组内的多个域名,例如:后缀为.com的多个域名。
上述目标域名可以是用户或者工作人员在带宽限制用户界面上输入的域名,还可以是用户或者工作人员在带宽限制用户界面上提供的各个域名中选择的域名,也可以是用户或者工作人员在带宽限制用户界面上提供的各个服务响应策略的信息中选择的信息中包含的域名,在一实施方式中,带宽限制用户界面将用户或者工作人员配置的信息向配置节点发送,配置节点保存上述配置的信息,管理节点在固定时刻或者按照预设间隔时间获取配置节点中保存的用户或者工作人员配置的信息中包含的目标域名。
管理节点可以将预设时间间隔内所获得的目标域名向各个管理子节点发送。
S202:获得各个管理子节点发送的已建立链接的数量以及节点带宽。
上述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,上述目标服务子节点为:提供访问目标域名服务的服务子节点。
在一实施方式中,由于目标服务子节点用于提供访问目标域名服务,当用户在其所使用的客户端上访问目标域名时,客户端会与目标服务子节点建立链接。例如:用户在其所使用的客户端上访问目标域名www.xxx.com时,提供访问目标域名www.xxx.com的目标服务子节点为服务子节点甲,那么上述客户端会与服务子节点甲建立链接。
上述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽。在一实施方式中,上述节点带宽可以是每一已建立链接的占用带宽,还可以是管理子节点所在服务节点对应的已建立链接总的 占用带宽。
上述服务节点对应的已建立链接为:服务节点中目标服务子节点与客户端之间已建立的链接。
各个管理子节点在接收到管理节点发送的目标域名后,各个管理子节点确定用于提供访问目标域名服务的服务子节点,也就是目标服务子节点,统计目标服务子节点与客户端之间已建立的链接的数量,并获得节点带宽。各个管理子节点可以按照预设间隔时间,将统计的已建立链接的数量和节点带宽向管理节点发送。
S203:若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制。
上述总占用带宽为:所获得节点带宽之和。例如:带宽限制系统中包括服务节点1、服务节点2,服务节点1对应的节点带宽为100Mbps(Million Bits Per Second,兆比特每秒),服务节点2对应的节点带宽为200Mbps,那么总占用带宽为100Mbps+200Mbps=300Mbps。
当目标域名为单个域名时,总占用带宽为单个域名对应的已建立链接占用的带宽之和;当目标域名为属于域名组内的多个域名时,总占用带宽为多个域名对应的已建立链接的占用的带宽之和。域名对应的已建立链接可以理解为:提供访问域名服务的服务子节点与客户端之间的链接。
上述预设带宽阈值可以是用户或者工作人员在带宽限制用户界面上设置的,管理节点获得用户或者工作人员在上述带宽限制用户界面上设置的预设带宽阈值。例如:上述预设带宽阈值可以为1000Mbps。
当总占用带宽超过预设带宽阈值时,表示总占用带宽较高。
当服务节点内的各个目标服务子节点与客户端之间建立的链接数量较多时,说明访问目标域名的客户端数量较多,这样,可以针对上述服务节点确定较多的可用带宽,以确保服务子节点能够提供访问目标域名的正常服务;同样的,当服务节点内的各个目标服务子节点与客户端之间建立的链接占用带宽较高时,说明各个目标服务子节点与客户端之间传输的数据量较大,这样,可以针对上述服务节点确定较多的可用带宽,已确定各个目标服务子节点与客户端之间的正常数据传输。因此,从两方面确定每一服务节点对应的可用带宽,充分考虑了各个服务节点内的网络状态,这样,在对带宽进行限制的同时,还能够保证服务节点内各个已建立链接的正常数据传输以及各个服务子节点仍能提供正常的服务。
本公开的一个实施例中,根据所获得的已建立链接的数量以及节点带宽,可以按照以下公式计算每一服务节点对应的可用带宽Quota:
Quota=[(a/A)*X+(b/B)*Y]*C
其中,a为服务节点包括的管理子节点发送的已建立链接的数量,A为管理节点所获得的各个管理子节点发送的已建立链接的数量之和,b为服务节点包括的管理子节点发送的节点带宽,B为所述总占用带宽,C为预设带宽阈值,X为服务节点对应的第一权重,Y为服务节点对应的第二权重。
这样,按照上述计算公式计算每一服务节点对应的可用带宽,可以较为准确确定每一服务节点对应的可用带宽。
在一实施方式中,管理节点可以向各个管理子节点发送包含所确定的可用带宽的消息,上述消息还可以包括,总占用带宽超过预设带宽阈值的标识。这样,管理子节点可以根据消息中携带的总占用带宽超过预设带宽阈值的标识,根据可用带宽对已建立链接进行带宽限制。
另外,上述消息可以是按照预设的消息格式生成的消息。
由以上可见,应用本公开实施例提供的方案进行带宽限制时,管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
本公开的一个实施例中,在上述S201确定目标域名之后,还可以包括:
确定目标域名对应的基于新链接的服务响应策略的信息,并向各个管理子节点发送所获得的信息,以使得各个管理子节点通知所在服务节点中的目标服务子节点在总占用带宽超过预设带宽阈值时根据服务响应策略对基于新链接的服务进行响应。
上述新链接可以理解为:提供访问目标域名的目标服务子节点与客户端新建立的链接。
上述目标域名对应的基于新链接的服务响应策略的信息可以是目标域名对应的基于新链接的服务响应策略的标识信息,还可以是目标域名对应的基于新链接的服务响应策略的具体内容。
在一实施方式中,上述目标域名对应的基于新链接的服务响应策略的信息可以是用户或者工作人员在带宽限制用户界面上输入的信息,还可以是用户或者工作人员在带宽限制用户界面上提供的各个服务响应策略的信息中选择的信息。带宽限制用户界面将用户或者工作人员配置的信息向配置节点发送,配置节点保存上述配置的信息,管理节点在固定时刻或者按照预设间隔时间获取配置节点中保存的用户或者工作人员配置的服务响应策略的信息。
本公开的一个实施例中,上述服务响应策略可以包括以下策略中的一种:
第一种:针对客户端基于新链接发送的服务请求,向客户端发送响应。
上述第一种策略可以理解为:当客户端基于新链接向目标服务子节点发送服务请求时,目标服务子节点拒绝向客户端提供服务的策略。
上述响应中包含状态码和用于表示拒绝提供服务的信息。
上述状态码用于表示拒绝提供服务的原因。例如:上述状态码可以为403,403表示服务子节点理解服务请求的内容、但拒绝执行客户端基于新链接发送的服务请求;上述状态码还可以为404,404表示客户端基于新链接发送的服务请求所希望能到的内容未保存在服务子节点上。上述状态码可以保存在上述拒绝提供服务的响应报文的头部中。
这样,由于拒绝向客户端提供服务,不增加额外的网络占用带宽,能够保证网络现有的整体占用带宽不变,且根据向客户端返回的状态码,能够确定拒绝响应客户端发送请求的原因。
第二种:按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应。
上述第二种策略可以理解为:当客户端基于新链接向目标服务子节点发送服务请求时,目标服务子节点可以按照预设的带宽向客户端发送提供的服务响应的策略。
目标服务子节点向客户端发送基于新链接的服务请求的服务响应时,可以按照预设的带宽进行发送,还可以按照不超过预设的带宽进行发送。
这样,按照预设的带宽进行数据传输,能够对网络整体占用带宽进行限制。
第三种:针对客户端基于新链接发送的服务请求,向预设的服务子节点转发服务请求,以使得预设的服务子节点响应服务请求。
上述第三种策略可以理解为:当客户端基于新链接向目标服务子节点发送服务请求时,目标服务子节点将服务请求向预设的服务子节点转发,以使得预设的服务子节点向客户端发送提供的服务响应的策略。
在一实施方式中,目标服务子节点可以将服务请求中携带的目的IP地址或者目标域名更改为预设的服务子节点的IP地址或者域名,这样可以向预设的服务子节点转发服务请求。这样,将服务请求转发至预设的服务子节点,能够正常响应客户端基于新链接发送的服务请求,保证了向用户提供的服务的质量。
这样,由于服务响应策略可以为多种服务响应策略,这样管理子节点所在的服务节点中的服务子节点能够灵活地对基于新链接的服务请求进行响应。
参见图3,图3为本公开实施例提供的第二种带宽限制方法的流程示意图,应用于带宽限制系统中服务节点包括的管理子节点,上述方法包括S301-S302。
S301:接收管理节点发送的目标域名。
可以理解的,在管理节点执行向各个管理子节点发送目标域名后,相应的,管理子节点将能够接收到管理节点发送的目标域名。
S302:获得已建立链接的数量以及节点带宽。
在一实施方式中,管理子节点可以对其所在服务节点包括的各个目标服务子节点进行监测,监测到与客户端之间建立链接的目标服务子节点后,记录目标服务子节点与客户端之间建立的链接以及目标服务子节点与客户端之间建立的链接的占用带宽,从而确定已建立链接的数量以及节点带宽。
S303:向管理节点发送所获得的已建立链接的数量以及节点带宽,以使得管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽。
S304:接收管理节点发送的、管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对已建立链接的占用带宽进行限制。
当管理子节点接收的可用带宽为其所在服务节点对应的每一已建立链接的可用带宽时,管理子节点可以根据可用带宽,对每一已建立链接的占用带宽进行限制。
本公开的一个实施例中,当管理子节点接收的可用带宽为所在服务节点对应的总的可用带宽时,管理子节点可以根据接收到的可用带宽以及所获得的已建立链接的数量,确定每一已建立链接的可用带宽;根据所确定的每一已建立链接的可用带宽,对每一已建立链接的占用带宽进行限制。
在一实施方式中,管理子节点根据接收到的可用带宽以及已建立链接的数量,确定每一已建立链接的可用带宽,可以有以下两种确定方式。
第一种方式:根据接收到的可用带宽以及已建立链接的数量,平均分配每一已建立链接的可用带宽。例如:当管理子节点接收到的可用带宽为1000Mbps,已建立链接的数量为10条,那么每一已建立链接的可用带宽为100Mbps。
第二种方式:根据接收到的可用带宽以及已建立链接的数量,分别计算每一已建立链接的可用带宽。例如:当管理子节点接收到的可用带宽为1000Mbps,已建立链接的数量为2条,已建立链接1的权重为0.4,那么已建立链接1的可用带宽为400Mbps,已建立链接2的权重为0.6,那么已建立链接2的可用带宽为600Mbps。这样,管理子节点可以灵活地确定每一已建立链接的可用带宽,从而对每一已建立链接的占用带宽进行限制。
在对所在服务节点对应的已建立链接的占用带宽进行限制时,可以将每一已建立链接的占用带宽参数信息修改为接收到的可用带宽。
由以上可见,应用本实施例提供的方案进行带宽限制时,服务节点内的管理子节点向管理节点发送已建立链接的数量以及节点带宽,并接收管理节点发送的根据接收到的已建立链接的数量以及节点带宽确定的可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的,相较于相关技术涉及的客户端,由于服务节点的数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
本公开的一个实施例中,参见图4,图4为本公开实施例提供的第三种带宽限制方法的流程示意图,在上述S304之后,还可以包括S305-S306。
S305:获得管理节点发送的基于新链接的服务响应策略的信息。
S306:通知服务节点中的目标服务子节点在总占用带宽超过预设带宽阈值时根据服务响应策略对基于新链接的服务进行响应。
当总占用带宽超过预设带宽阈值时,管理子节点可以向各个目标服务子节点发送执行服务响应策略的请求,各个目标服务子节点按照服务响应策略对基于新链接的服务进行响应。
由以上可见,应用本实施例提供的方案进行带宽限制时,由于服务响应策略可以为多种服务响应策略,这样管理子节点所在的服务节点中的服务子节点能够灵活地对基于新链接的服务请求进行响应。
本公开的一个实施例中,上述服务响应策略包括以下策略中的一种:
针对客户端基于新链接发送的服务请求,向客户端发送包含响应,其中,所述响应包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;这样,能够保证网络中整体占用带宽,且根据向客户端返回的状态码,能够确定拒绝响应客户端发送请求的原因。
按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;这样,按照预设的带宽进行数据传输,能够对网络整体占用带宽进行限制。
针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。这样,将服务请求转发至预设的服务子节点,能够正常响应客户端基于新链接发送的服务请求,保证了向用户提供的服务的质量。
参见图5,图为本公开实施例提供的第一种带宽限制装置的结构示意图,应用于带宽限制系统中的管理节点,其中,所述带宽限制系统还包括:服务节点,所述服务节点包括管理子节点和服务子节点,所述装置包括:
目标域名确定模块501,设置为确定目标域名,向各个管理子节点发送所述目标域名;
数量和带宽接收模块502,设置为获得各个管理子节点发送的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;
若总占用带宽超过预设带宽阈值,触发可用带宽发送模块503,所述可用带宽发送模块503,设置为根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
由以上可见,应用本公开实施例提供的方案进行带宽限制时,管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
本公开的一个实施例中,上述可用带宽发送模块503,包括:
可用带宽计算子模块,设置为根据所获得的已建立链接的数量以及节点带宽,按照以下公式计算每一服务节点对应的可用带宽Quota:
Quota=[(a/A)*X+(b/B)*Y]*C
其中,a为服务节点包括的管理子节点发送的已建立链接的数量,A为管理节点所获得的各个管理子节点发送的已建立链接的数量之和,b为服务节点包括的管理子节点发送的节点带宽,B为所述总占用带宽,C为预设带宽阈值,X为服务节点对应的第一权重,Y为服务节点对应的第二权重;
可用带宽发送子模块,设置为向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
这样,按照上述计算公式计算每一服务节点对应的可用带宽,可以较为准确确定每一服务节点对应的可用带宽。
本公开的一个实施例中,在上述目标域名确定模块501之后,还包括:
信息发送模块,设置为确定目标域名对应的基于新链接的服务响应策略的信息,并向各个管理子节点发送所获得的信息,以使得各个管理子节点通知所在服务节点中的目标服务子节点在所述总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应。
这样,由于服务响应策略可以为多种服务响应策略,这样管理子节点所在的服务节点中的服务子节点能够灵活地对基于新链接的服务请求进行响应。
本公开的一个实施例中,上述服务响应策略包括以下策略中的一种:
针对客户端基于新链接发送的服务请求,向客户端发送响应,其中,所述响应中包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;这样,能够保证网络中整体占用带宽,且根据向客户端返回的状态码,能够确定拒绝响应客户端发送请求的原因。
按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;这样,按照预设的带宽进行数据传输,能够对网络整体占用带宽进行限制。
针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。这样,将服务请求转发至预设的服务子节点,能够正常响应客户端基于新链接发送的服务请求,保证了向用户提供的服务的质量。
参见图6,图为本公开实施例提供的第二种带宽限制装置的结构示意图,应用于带宽限制系统中服务节点包括的管理子节点,所述带宽限制系统还包括:管理节点,所述服务节点还包括服务子节点,所述装置包括:
目标域名接收模块601,设置为接收所述管理节点发送的目标域名;
数量和带宽获得模块602,设置为获得已建立链接的数量以及节点带宽,其中,所述已建立链接为:所述管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示所述已建立链接占用的带宽;
数量和带宽发送模块603,设置为向所述管理节点发送所获得的已建立链接的数量以及节点带宽,以使得所述管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,
带宽限制模块604,设置为接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制。
由以上可见,应用本实施例提供的方案进行带宽限制时,服务节点内的管理子节点向管理节点发送已建立链接的数量以及节点带宽,并接收管理节点发送的根据接收到的已建立连接的数量以及节点带宽确定的可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的,相较于相关技术涉及的客户端,由于服务节点的数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
本公开的一个实施例中,上述带宽限制模块604,包括:
带宽接收子模块,设置为接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽;
可用带宽确定子模块,设置为根据接收到的可用带宽以及已建立链接的数量,确定每一所述已建立链接的可用带宽;
带宽限制子模块,设置为根据所确定的每一所述已建立链接的可用带宽,对每一所述已建立链接的占用带宽进行限制。
这样,管理子节点可以灵活地确定每一已建立链接的可用带宽,从而对每一已建立链接的占用带宽进行限制。
参见图7,图7为本公开实施例提供的第三种带宽限制装置的结构示意图,在上述带宽限制模块604之后,还包括605-606。
信息获得模块605,设置为获得所述管理节点发送的基于新链接的服务响应策略的信息;
服务子节点通知模块606,设置为通知所述服务节点中的目标服务子节点在所述总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应,其中,所述总占用带宽为所述管理节点接收到的节点带宽之和。
由以上可见,应用本实施例提供的方案进行带宽限制时,由于服务响应策略可以为多种服务响应策略,这样管理子节点所在的服务节点中的服务子节点能够灵活地对基于新链接的服务请求进行响应。
本公开的一个实施例中,上述服务响应策略包括以下策略中的一种:
针对客户端基于新链接发送的服务请求,向客户端发送包含响应,其中,所述响应包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;这样,能够保证网络中整体占用带宽,且根据向客户端返回的状态码,能够确定拒绝响应客户端发送请求的原因。
按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;这样,按照预设的带宽进行数据传输,能够对网络整体占用带宽进行限制。
针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。这样,将服务请求转发至预设的服务子节点,能够正常响应客户端基于新链接发送的服务请求,保证了向用户提供的服务的质量。
参见图8,图8为本公开实施例提供的一种带宽限制系统的示意图,上述带宽限制系统包括管理节点和服务节点,所述服务节点包括管理子节点和服务子节点,
所述管理节点,设置为确定目标域名,向各个管理子节点发送所述目标域名;
各个管理子节点,设置为获得已建立链接的数量以及节点带宽,并向所述管理节点发送所获得的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;
所述管理节点,还设置为接收各个管理子节点发送的已建立链接的数量以及节点带宽,若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,其中,所述总占用带宽为:所获得节点带宽之和;
各个管理子节点,还用于接收所述管理节点发送的可用带宽,根据接收到的可用带宽,对所在服务节点对应的已建立链接的占用带宽进行限制。
由以上可见,应用本公开实施例提供的带宽限制系统进行带宽限制时,管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
本公开的一个实施例中,上述管理节点根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,包括:
根据所获得的已建立链接的数量以及节点带宽,按照以下公式计算每一服务节点对应的可用带宽Quota:
Quota=[(a/A)*X+(b/B)*Y]*C
其中a为服务节点包括的管理子节点发送的已建立链接的数量,A为管理节点所获得的各个管理子节点发送的已建立链接的数量之和,b为服务节点包括的管理子节点发送的节点带宽,B为所述总占用带宽,C为预设带宽阈值,X为服务节点对应的第一权重,Y为服务节点对应的第二权重。
这样,按照上述计算公式计算每一服务节点对应的可用带宽,可以较为准确确定每一服务节点对应的可用带宽。
本公开的一个实施例中,所述管理节点,还设置为在确定所述目标域名之后,确定目标域名对应的基于新链接的服务响应策略的信息,并向各个管理子节点发送所获得的信息;
各个管理子节点,还设置为通知所在服务节点中的目标服务子节点在所述总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应。
这样,由于服务响应策略可以为多种服务响应策略,这样管理子节点所在的服务节点中的服务子节点能够灵活地对基于新链接的服务请求进行响应。
本公开的一个实施例中,所述服务响应策略包括以下策略中的一种:
针对客户端基于新链接发送的服务请求,向客户端发送响应,其中,所述响应中包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;这样,能够保证网络中整体占用 带宽,且根据向客户端返回的状态码,能够确定拒绝响应客户端发送请求的原因。
按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;这样,按照预设的带宽进行数据传输,能够对网络整体占用带宽进行限制。
针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。这样,将服务请求转发至预设的服务子节点,能够正常响应客户端基于新链接发送的服务请求,保证了向用户提供的服务的质量。
本公开的一个实施例中,所述根据接收到的可用带宽,对所在服务节点对应的已建立链接的占用带宽进行限制,包括:
根据接收到的可用带宽以及已建立链接的数量,确定每一已建立链接的可用带宽;
根据所确定的每一已建立链接的可用带宽,对每一已建立链接的占用带宽进行限制。
这样,管理子节点可以灵活地确定每一已建立链接的可用带宽,从而对每一已建立链接的占用带宽进行限制。
参见图9,图9为本公开实施例提供的第一种电子设备的结构示意图,所述电子设备作为管理节点,包括处理器901、通信接口902、存储器903和通信总线904,其中,处理器901,通信接口902,存储器903通过通信总线904完成相互间的通信,
存储器903,设置为存放计算机程序;
处理器901,设置为执行存储器903上所存放的程序时,实现与本公开实施例提供的应用于管理节点的带宽限制方法。
上述电子设备提到的通信总线904可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线904可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口902设置为上述电子设备与其他设备之间的通信。
存储器903可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。在一实施方式中,存储器903还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器901可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
参见图10,图10为本公开实施例提供的第二种电子设备的结构示意图,所述电子设备作为管理子节点,包括处理器1001、通信接口1002、存储器1003和通信总线1004,其中,处理器1001,通信接口1002,存储器1003通过通信总线1004完成相互间的通信,
存储器1003,设置为存放计算机程序;
处理器1001,设置为执行存储器1003上所存放的程序时,实现与本公开实施例提供的应用于管理子节点的带宽限制方法。
上述电子设备提到的通信总线1004可以是外设部件互连标准(Peripheral Component Interconnect, PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口1002用于上述电子设备与其他设备之间的通信。
存储器1003可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。在一实施方式中,存储器1003还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器1001可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
在本公开提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本公开实施例提供的应用于管理节点的带宽限制方法。
在本公开提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本公开实施例提供的应用于管理子节点的带宽限制方法。
在本公开提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行时实现本公开实施例提供的应用于管理节点的带宽限制方法。
在本公开提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行时实现本公开实施例提供的应用于管理子节点的带宽限制方法。
在本公开提供的又一实施例中,还提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现本公开实施例提供的应用于管理节点的带宽限制方法。
在本公开提供的又一实施例中,还提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现本公开实施例提供的应用于管理子节点的带宽限制方法。
由以上可见,应用本公开实施例提供的带宽限制系统进行带宽限制时,管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、 光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、系统、电子设备、计算机可读存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本公开实施例的较佳实施例,并不用以限制本公开实施例,凡在本公开实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开实施例保护的范围之内。
工业实用性
本公开实施例所提供的带宽限制方法、装置及系统,由于管理节点接收各个服务节点内的管理子节点发送的已建立链接的数量以及节点带宽,根据所获得的已建立链接的数量以及节点带宽,确定各个服务节点对应的可用带宽,并向各个服务节点内的管理子节点发送可用带宽。因此,管理节点是以服务节点为单位进行接收数据和发送可用带宽的。相较于相关技术中涉及的客户端,服务节点数量是可控的、变化较少的。这样,以服务节点为单位确定可用带宽时,不易因为服务节点的数量不可控而导致网络中带宽被过多地被占用。

Claims (23)

  1. 一种带宽限制方法,应用于带宽限制系统中的管理节点,其中,所述带宽限制系统还包括:服务节点,所述服务节点包括管理子节点和服务子节点,所述方法包括:
    确定目标域名,向各个管理子节点发送所述目标域名;
    获得各个管理子节点发送的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;
    若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
  2. 根据权利要求1所述的方法,其中,所述根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,包括:
    根据所获得的已建立链接的数量以及节点带宽,按照以下公式计算每一服务节点对应的可用带宽Quota:
    Quota=[(a/A)*X+(b/B)*Y]*C
    其中,a为服务节点包括的管理子节点发送的已建立链接的数量,A为管理节点所获得的各个管理子节点发送的已建立链接的数量之和,b为服务节点包括的管理子节点发送的节点带宽,B为所述总占用带宽,C为预设带宽阈值,X为服务节点对应的第一权重,Y为服务节点对应的第二权重。
  3. 根据权利要求1或2所述的方法,其中,在所述确定目标域名之后,还包括:
    确定目标域名对应的基于新链接的服务响应策略的信息,并向各个管理子节点发送所获得的信息,以使得各个管理子节点通知所在服务节点中的目标服务子节点在所述总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应。
  4. 根据权利要求3所述的方法,其中,所述服务响应策略包括以下策略中的一种:
    针对客户端基于新链接发送的服务请求,向客户端发送响应,其中,所述响应中包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;
    按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;
    针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。
  5. 一种带宽限制方法,应用于带宽限制系统中服务节点包括的管理子节点,所述带宽限制系统还包括:管理节点,所述服务节点还包括服务子节点,所述方法包括:
    接收所述管理节点发送的目标域名;
    获得已建立链接的数量以及节点带宽,其中,所述已建立链接为:所述管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示所述已建立链接占用的带宽;
    向所述管理节点发送所获得的已建立链接的数量以及节点带宽,以使得所述管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽;
    接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制。
  6. 根据权利要求5所述的方法,其中,所述根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制,包括:
    根据接收到的可用带宽以及已建立链接的数量,确定每一所述已建立链接的可用带宽;
    根据所确定的每一所述已建立链接的可用带宽,对每一所述已建立链接的占用带宽进行限制。
  7. 根据权利要求5或6所述的方法,其中,所述方法还包括:
    获得所述管理节点发送的基于新链接的服务响应策略的信息;
    通知所述目标服务子节点在总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应,其中,所述总占用带宽为所述管理节点接收到的节点带宽之和。
  8. 根据权利要求7所述的方法,其中,所述服务响应策略包括以下策略中的一种:
    针对客户端基于新链接发送的服务请求,向客户端发送响应,其中,所述响应包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;
    按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;
    针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。
  9. 一种带宽限制装置,应用于带宽限制系统中的管理节点,其中,所述带宽限制系统还包括:服务节点,所述服务节点包括管理子节点和服务子节点,所述装置包括:
    目标域名确定模块,设置为确定目标域名,向各个管理子节点发送所述目标域名;
    数量和带宽接收模块,设置为获得各个管理子节点发送的已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;
    若总占用带宽超过预设带宽阈值,触发可用带宽发送模块,所述可用带宽发送模块,设置为根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,以使得各个管理子节点根据接收到的可用带宽对所在服务节点对应的已建立链接的占用带宽进行限制,其中,所述总占用带宽为:所获得节点带宽之和。
  10. 一种带宽限制装置,应用于带宽限制系统中服务节点包括的管理子节点,所述带宽限制系统还包括:管理节点,所述服务节点还包括服务子节点,所述装置包括:
    目标域名接收模块,设置为接收所述管理节点发送的目标域名;
    数量和带宽获得模块,设置为获得已建立链接的数量以及节点带宽,其中,所述已建立链接为:所述管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示所述已建立链接占用的带宽;
    数量和带宽发送模块,设置为向所述管理节点发送所获得的已建立链接的数量以及节点带宽,以使得所述管理节点根据接收到的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽;
    带宽限制模块,设置为接收所述管理节点发送的、所述管理子节点所在服务节点对应的可用带宽,根据接收到的可用带宽,对所述已建立链接的占用带宽进行限制。
  11. 一种带宽限制系统,所述带宽限制系统包括管理节点和服务节点,所述服务节点包括管理子节点和用于提供服务的服务子节点,其中,
    所述管理节点,设置为确定目标域名,向各个管理子节点发送所述目标域名;
    各个管理子节点,设置为获得已建立链接的数量以及节点带宽,并向所述管理节点发送已建立链接的数量以及节点带宽,其中,所述已建立链接为:管理子节点所在服务节点中目标服务子节点与客户端之间已建立的链接,所述目标服务子节点为:提供访问所述目标域名服务的服务子节点,所述节点带宽表示管理子节点所在服务节点对应的已建立链接占用的带宽;
    所述管理节点,还设置为接收各个管理子节点发送的已建立链接的数量以及节点带宽,若总占用带宽超过预设带宽阈值,根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,并向各个管理子节点发送所确定的可用带宽,其中,所述总占用带宽为:所获得节点带宽之和;
    各个管理子节点,还设置为接收所述管理节点发送的可用带宽,根据接收到的可用带宽,对所在服务节点对应的已建立链接的占用带宽进行限制。
  12. 根据权利要求11所述的系统,其中,所述根据所获得的已建立链接的数量以及节点带宽,确定每一服务节点对应的可用带宽,包括:
    根据所获得的已建立链接的数量以及节点带宽,按照以下公式计算每一服务节点对应的可用带宽Quota:
    Quota=[(a/A)*X+(b/B)*Y]*C
    其中,a为服务节点包括的管理子节点发送的已建立链接的数量,A为管理节点所获得的各个管理子节点发送的已建立链接的数量之和,b为服务节点包括的管理子节点发送的节点带宽,B为所述总占用带宽,C为预设带宽阈值,X为服务节点对应的第一权重,Y为服务节点对应的第二权重。
  13. 根据权利要求11或12所述的系统,其中,所述管理节点,还设置为在确定所述目标域名之后,确定目标域名对应的基于新链接的服务响应策略的信息,并向各个管理子节点发送所获得的信息;
    各个管理子节点,还设置为通知所在服务节点中的目标服务子节点在所述总占用带宽超过预设带宽阈值时根据所述服务响应策略对基于新链接的服务进行响应。
  14. 根据权利要求13所述的系统,其中,所述服务响应策略包括以下策略中的一种:
    针对客户端基于新链接发送的服务请求,向客户端发送响应,其中,所述响应中包含状态码和用于表示拒绝提供服务的信息,所述状态码用于表示拒绝提供服务的原因;
    按照预设的带宽,向客户端发送基于新链接的服务请求的服务响应;
    针对客户端基于新链接发送的服务请求,向预设的服务子节点转发所述服务请求,以使得所述预设的服务子节点响应所述服务请求。
  15. 根据权利要求11-14任一项所述的系统,其中,所述根据接收到的可用带宽,对所在服务节点对应的已建立链接的占用带宽进行限制,包括:
    根据接收到的可用带宽以及已建立链接的数量,确定每一已建立链接的可用带宽;
    根据所确定的每一已建立链接的可用带宽,对每一已建立链接的占用带宽进行限制。
  16. 一种电子设备,所述电子设备作为管理节点,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,设置为存放计算机程序;
    处理器,设置为执行存储器上所存放的程序时,实现权利要求1-4任一所述的方法步骤。
  17. 一种电子设备,所述电子设备作为管理子节点,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,设置为存放计算机程序;
    处理器,设置为执行存储器上所存放的程序时,实现权利要求5-8任一所述的方法步骤。
  18. 一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-4任一所述的方法步骤。
  19. 一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求5-8任一所述的方法步骤。
  20. 一种包含指令的计算机程序产品,所述包含指令的计算机程序产品在计算机上运行时,使得计算机执行时实现权利要求1-4任一所述的方法步骤。
  21. 一种包含指令的计算机程序产品,所述包含指令的计算机程序产品在计算机上运行时,使得计算机执行时实现权利要求5-8任一所述的方法步骤。
  22. 一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现权利要求1-4任一所述的方法步骤。
  23. 一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行时实现权利要求5-8任一所述的方法步骤。
PCT/CN2020/121762 2019-12-06 2020-10-19 一种带宽限制方法、装置及系统 WO2021109726A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911244277.8A CN110880991B (zh) 2019-12-06 2019-12-06 一种带宽限制方法、装置及系统
CN201911244277.8 2019-12-06

Publications (1)

Publication Number Publication Date
WO2021109726A1 true WO2021109726A1 (zh) 2021-06-10

Family

ID=69730688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121762 WO2021109726A1 (zh) 2019-12-06 2020-10-19 一种带宽限制方法、装置及系统

Country Status (2)

Country Link
CN (1) CN110880991B (zh)
WO (1) WO2021109726A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110880991B (zh) * 2019-12-06 2021-09-03 北京金山云网络技术有限公司 一种带宽限制方法、装置及系统
CN111654561B (zh) * 2020-06-04 2022-09-02 北京金山云网络技术有限公司 一种ip地址数量确定方法、装置、电子设备及存储介质
CN114826922A (zh) * 2021-01-27 2022-07-29 北京金山云网络技术有限公司 带宽调整方法、装置、服务器及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547478A (zh) * 2009-05-12 2009-09-30 华为技术有限公司 节点带宽管理方法、装置及系统
CN101977159A (zh) * 2010-11-26 2011-02-16 重庆金美通信有限责任公司 窄带网络带宽资源的管理方法
WO2015007100A1 (zh) * 2013-07-15 2015-01-22 苏州阔地网络科技有限公司 一种通信流量控制方法及系统
CN109412977A (zh) * 2018-10-18 2019-03-01 网宿科技股份有限公司 一种域名带宽调节方法及相关设备
CN110880991A (zh) * 2019-12-06 2020-03-13 北京金山云网络技术有限公司 一种带宽限制方法、装置及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9800483B2 (en) * 2012-04-13 2017-10-24 CirrusWorks, Inc. Method and apparatus for dynamic bandwidth allocation for optimizing network utilization
CN103746933A (zh) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 一种节点分配方法和控制中心
CN104994037A (zh) * 2015-07-07 2015-10-21 上海斐讯数据通信技术有限公司 一种带宽自动分配系统及分配方法
CN109889451B (zh) * 2017-12-06 2020-07-17 贵州白山云科技股份有限公司 网络限速的系统及其方法和服务器
CN109462879B (zh) * 2018-12-17 2020-07-31 中国科学院计算技术研究所 一种接纳控制方法及系统
CN110519183B (zh) * 2019-09-29 2022-12-02 北京金山云网络技术有限公司 一种节点限速的方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547478A (zh) * 2009-05-12 2009-09-30 华为技术有限公司 节点带宽管理方法、装置及系统
CN101977159A (zh) * 2010-11-26 2011-02-16 重庆金美通信有限责任公司 窄带网络带宽资源的管理方法
WO2015007100A1 (zh) * 2013-07-15 2015-01-22 苏州阔地网络科技有限公司 一种通信流量控制方法及系统
CN109412977A (zh) * 2018-10-18 2019-03-01 网宿科技股份有限公司 一种域名带宽调节方法及相关设备
CN110880991A (zh) * 2019-12-06 2020-03-13 北京金山云网络技术有限公司 一种带宽限制方法、装置及系统

Also Published As

Publication number Publication date
CN110880991A (zh) 2020-03-13
CN110880991B (zh) 2021-09-03

Similar Documents

Publication Publication Date Title
WO2021109726A1 (zh) 一种带宽限制方法、装置及系统
US8953479B2 (en) System and method for license enforcement for data center monitoring applications
EP2241058B1 (en) Method for configuring acls on network device based on flow information
US8189468B2 (en) System and method for regulating messages between networks
US8081640B2 (en) Network system, network management server, and access filter reconfiguration method
JP7383113B2 (ja) ノードの速度制限方法、装置、電子デバイス及び記憶媒体
RU2660635C2 (ru) Способ и устройство для управления цепочкой услуги потока услуги
KR20090121327A (ko) 네트워크 내에서 파라미터화된 qos
WO2021254331A1 (zh) 资源管理方法、系统、代理服务器及存储介质
US11212260B2 (en) Dynamic firewall configuration and control for accessing services hosted in virtual networks
US20080104196A1 (en) Network access device capability alert mechanism
JP2014147094A (ja) ネットワーク・ロケーション・サービス
US8266303B2 (en) Managing network connections
US20220286409A1 (en) Method and apparatus for configuring quality of service policy for service, and computing device
US8817664B2 (en) Network edge switch configuration based on connection profile
US20070036165A1 (en) Method and Network Element Configured for Limiting the Number of Virtual Local Area Networks Creatable by GVRP
CN109981462B (zh) 一种报文处理方法及装置
US7957325B2 (en) Method and network element configured for limiting the number virtual local area networks creatable by GVRP
WO2023173993A1 (zh) 一种基于动态网关的通讯系统及方法
CN109600265B (zh) 一种接入电路ac配置信息下发方法、装置及服务器
US11812378B2 (en) User management device, BNG, and BNG user internet access method and system
WO2009065343A1 (fr) Procédé, système et équipement pour la confirmation de dispositifs edge
CN102843255B (zh) 基于点对点的网络管理方法及代理选择服务器
KR20170006950A (ko) Sdn 기반의 네트워크 플랫트닝 시스템 및 그 방법
WO2021115447A1 (zh) 会话管理网元发现的方法、设备及系统

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20895592

Country of ref document: EP

Kind code of ref document: A1