WO2020143180A1 - Network congestion detection-based intelligent speed limiting method and apparatus, and storage medium - Google Patents

Network congestion detection-based intelligent speed limiting method and apparatus, and storage medium Download PDF

Info

Publication number
WO2020143180A1
WO2020143180A1 PCT/CN2019/092456 CN2019092456W WO2020143180A1 WO 2020143180 A1 WO2020143180 A1 WO 2020143180A1 CN 2019092456 W CN2019092456 W CN 2019092456W WO 2020143180 A1 WO2020143180 A1 WO 2020143180A1
Authority
WO
WIPO (PCT)
Prior art keywords
round
packet loss
loss rate
trip time
network
Prior art date
Application number
PCT/CN2019/092456
Other languages
French (fr)
Chinese (zh)
Inventor
陈逸群
Original Assignee
深圳市网心科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市网心科技有限公司 filed Critical 深圳市网心科技有限公司
Publication of WO2020143180A1 publication Critical patent/WO2020143180A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5025Ensuring fulfilment of SLA by proactively reacting to service quality change, e.g. by reconfiguration after service quality degradation or upgrade
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the present application relates to the field of network communication technology, and in particular to an intelligent rate limiting method, device and storage medium based on network congestion detection.
  • QoS Quality of Service
  • Speed limit is one of the most common QoS methods. By limiting the data transmission rate of a service, the service is prevented from exhausting the limited bandwidth in the system and affecting the communication quality of other services.
  • the traditional speed limit scheme needs to manually set a fixed speed limit value so that the rate of a certain service will not exceed this value.
  • the speed limit value for a certain service may be too large, without giving enough bandwidth to other services, the speed limit effect is not obvious, and the quality of other services cannot be guaranteed;
  • the speed limit value for a certain service may be too small, giving enough bandwidth to other services, the speed limit effect is obvious, and the quality of other services is guaranteed, but the actual bandwidth used by other services is very small. Speed is limited, and the idle bandwidth that is not used by other services is not utilized;
  • the traditional speed limit scheme requires users to have a certain sense of the maximum bandwidth value of the link, because the speed limit can only take effect when the set speed limit value is less than the maximum bandwidth value of the link.
  • the main purpose of this application is to provide an intelligent rate limiting method, device and storage medium based on network congestion detection, which can dynamically adjust the rate limit value of network services according to the network congestion status.
  • the intelligent rate limiting method based on network congestion detection includes:
  • Send predetermined data packets to the selected N addresses respectively receive the return data packets returned from the N addresses respectively, and calculate the first pre-correspondence corresponding to each address respectively according to the received return data packets Set type parameters and second preset type parameters;
  • the first preset type parameter is a round-trip time parameter
  • the second preset type parameter is a packet loss rate
  • the analysis is based on the first preset type parameter and the second preset type parameter
  • the current network congestion status includes:
  • the current network congestion state is analyzed.
  • the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second round-trip time threshold, a third round-trip time threshold, and a fourth round-trip Time threshold; and
  • the comparison between the calculated round-trip time parameter and the preset first network analysis standard to analyze the first network congestion status includes:
  • the network state is determined to be the first state ;
  • the network state is determined to be the second state ;
  • the network state is determined to be the third state ;
  • the network state is determined to be the fourth state.
  • the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold, a second packet loss rate threshold, and a third packet loss rate Threshold, fourth packet loss rate threshold; and
  • the comparison between the calculated packet loss rate and a preset second network analysis standard to analyze the congestion status of the second network includes:
  • the network status is determined to be A state
  • the network status is determined to be Two states
  • the network status is determined to be Three states
  • the network state is determined to be the fourth state.
  • the analyzing the current network congestion state according to the first network congestion state and the second network congestion state includes:
  • the first network congestion state is determined to be the current network congestion state
  • the second network congestion state is determined to be the current network congestion state.
  • the adjusting the network speed limit value of the preset service according to the current network congestion state includes:
  • the preset network speed limit value of the service is adjusted according to the fourth rule.
  • the method further includes:
  • the first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
  • the method further includes:
  • the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold are respectively set to one, two, three, and four times the average value of the packet loss rate Times.
  • the intelligent speed limit device based on network congestion detection includes a memory and a processor, and the memory stores an intelligent speed limit program based on network congestion detection that can run on the processor.
  • the intelligent speed limit program based on network congestion detection implements the above intelligent speed limit method based on network congestion detection when executed by the processor:
  • the present application further provides a computer-readable storage medium on which an intelligent speed limit program based on network congestion detection is stored.
  • the intelligent speed limit program based on network congestion detection is Or multiple processors execute to implement the above-mentioned intelligent rate limiting method based on network congestion detection.
  • the present application further provides a computer program product, including one or more computer instructions, when the computer program instructions are loaded and executed on the computer, the above-mentioned intelligent speed limit method based on network congestion detection is implemented .
  • the intelligent rate limiting method, device and storage medium based on network congestion detection described in this embodiment perform packet detection on multiple domain name addresses/IP addresses, and then evaluate the network congestion according to the round-trip time and packet loss rate, which has the following advantages:
  • the speed limit of the preset service is automatically increased to give enough bandwidth to other services to ensure the quality of other services, and when the network is not congested, the preset service is automatically reduced
  • the speed limit of the network has once again utilized idle bandwidth that is not used by other services, which has improved the bandwidth utilization of the system.
  • the real-time rate of the adaptive speed-limited service is decoupled from the maximum link bandwidth value while ensuring the sensitivity of the speed limit, and the user does not need to perceive the maximum link bandwidth value.
  • FIG. 1 is a schematic flowchart of an intelligent rate limiting method based on network congestion detection disclosed in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an internal structure of an intelligent speed limiting device based on network congestion detection disclosed in an embodiment of the present application;
  • FIG. 3 is a schematic diagram of program modules of the intelligent speed limit program based on network congestion detection in FIG. 2.
  • This application provides an intelligent rate limiting method based on network congestion detection.
  • FIG. 1 is a schematic flowchart of an intelligent rate limiting method based on network congestion detection according to an embodiment of the present application.
  • the method described in the schematic flowchart may be executed by a device, and the device may be implemented by software and/or hardware.
  • the intelligent rate limiting method based on network congestion detection includes:
  • the pre-selected address list stores multiple well-known IP addresses or domain name addresses.
  • the IP address is a logical address used to uniquely identify computers on the Internet so that computers can communicate with each other. Each networked computer depends on the IP address to distinguish and communicate with each other. Because the IP address is a digital ID, it is difficult to remember and write when it is used. Therefore, a symbolic address scheme has been developed based on the IP address to replace the digital IP address. Each symbolized address corresponds to a specific IP address, making it easier to access resources on the network. This character address corresponding to the digital IP address on the network is called the domain name address.
  • IP address or domain name address mentioned in this application refers to an IP address or domain name known and commonly used by the public, for example, a company's website, a search engine's website, etc.
  • S11 Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate each location according to the received return data packets corresponding to the respective addresses The first preset type parameter and the second preset type parameter corresponding to the address.
  • the preset type parameter is a round-trip time (RTT)
  • the second preset type parameter is a packet loss rate
  • the preferred embodiment of the present application may use the ping tool to send predetermined data packets to the selected N addresses.
  • the N is greater than or equal to 3.
  • the method of selecting 3 or more addresses can avoid always detecting the same address, and at the same time, in the case where the address is abnormal, other websites can still work normally and have high reliability. Further, in the preferred embodiment of the present application, addresses that are not reachable to data can be deleted from the pre-selected address list in time.
  • the RTT is an important performance indicator in the computer network, which means that the data is sent from the sending end to the confirmation from the receiving end (the receiving end sends the confirmation immediately after receiving the data, excluding the data transmission time). Elapsed time.
  • RTT is determined by three parts: the propagation time of the link, the processing time of the end system, and the queuing and processing time in the router's cache.
  • the values of the first two parts are relatively fixed as a TCP connection, and the queuing and processing time in the router's cache will change as the entire network congestion changes. Therefore, the change of RTT reflects the change of network congestion degree to a certain extent.
  • the packet loss rate also known as the network packet loss rate, is the ratio of the lost portion of a data packet to the total number of transmitted data packets.
  • Network packet loss is a phenomenon in which data packets are lost in the channel due to various reasons when we use ping (to detect whether a system is operating normally) to query the destination station. Ping uses ICMP echo request and echo reply messages.
  • the ICMP echo request message is a query sent by the host or router to a specific destination host. The machine receiving this message must send an ICMP echo reply message to the source host. This query message is used to test whether the destination station is reachable and to understand its status.
  • ping is an example of directly using the network layer ICMP, it does not pass through the transport layer UDP or TCP.
  • the main causes of network packet loss include physical line failure, equipment failure, virus attack, network congestion, and routing errors.
  • S12 Analyze the current network congestion status according to the first preset type parameter and the second preset type parameter.
  • the preferred embodiment of the present application compares the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status; and performs the calculated packet loss rate with the preset second network analysis standard Compare and analyze the second network congestion state; and according to the first network congestion state and the second network congestion state, analyze the current network congestion state.
  • the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second round-trip time threshold, a third round-trip time threshold, and a fourth round-trip Time threshold.
  • the network type it is a mobile data network or a WI-FI network.
  • the RTT threshold when the network type is a mobile data network, the RTT threshold can be set to a higher value, and when the network type is a WI-FI network, the RTT threshold can be set to a lower value.
  • the present application calculates the average round-trip time in the past predetermined time period
  • the first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
  • the present application can set different RTT thresholds as follows:
  • This application compares each round-trip time parameter received with the preset first network evaluation standard to analyze the first network congestion situation as follows:
  • the network state is determined to be the fourth state, namely: RTT>RTT_RED, Determine that the network status is RED, indicating that the network is extremely poor.
  • the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold, a second packet loss rate threshold, and a third packet loss rate threshold 3.
  • the fourth packet loss rate threshold includes a packet loss rate threshold.
  • the network types described in this application may include mobile data networks or WI-FI networks.
  • the value of the packet loss rate threshold when the network type is a mobile data network, the value of the packet loss rate threshold may be set higher, and when the network type is a WI-FI network, the value of the packet loss rate threshold may be set lower some.
  • the present application calculates the average packet loss rate in the past predetermined time period Value; set the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold to be set to one, two, and three times the average value of the packet loss rate, respectively And four times.
  • This application determines the packet loss rate threshold corresponding to the current network according to the data of the mapping relationship between the predetermined network type and the packet loss rate threshold, and the packet loss rate threshold includes the first packet loss rate threshold (LOSS_GREEN) and the second packet loss rate Threshold (LOSS_YELLOW), third packet loss rate threshold (LOSS_ORANGE), fourth packet loss rate threshold (LOSS_RED).
  • the packet loss rate threshold includes the first packet loss rate threshold (LOSS_GREEN) and the second packet loss rate Threshold (LOSS_YELLOW), third packet loss rate threshold (LOSS_ORANGE), fourth packet loss rate threshold (LOSS_RED).
  • the present application can set different packet loss rate thresholds as follows:
  • This application compares each received packet loss rate with the pre-set second network evaluation standard to evaluate the second network congestion situation as follows:
  • the network is determined
  • the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network is determined
  • the network state is determined to be the fourth state, that is, LOSS>LOSS_RED, Determine that the network status is RED, indicating that the network is extremely poor.
  • the first network congestion state is determined to be the current network congestion state; And if the second network congestion state is worse than the first network congestion state, the second network congestion state is determined to be the current network congestion state.
  • the current network congestion state is the second state (general network), adjust the network speed limit value of the preset service according to the second rule;
  • the current network congestion state is the third state (the network is poor), adjust the network speed limit value of the preset service according to the third rule.
  • the network speed limit value of the preset service is adjusted according to the fourth rule.
  • the first rule means that the speed-up limit value is 1.3 times the current speed limit value, but less than or equal to the maximum bandwidth value of the network;
  • the first rule refers to maintaining the current speed limit value unchanged
  • the third rule refers to lowering the speed limit value to 0.7 times the minimum value of the current speed limit value and the real-time rate.
  • the fourth rule refers to lowering the speed limit value by 0.5 times the minimum value of the current speed limit value and the real-time rate.
  • the real-time rate refers to the flow rate of the speed-limited service in a short time (such as within 1 second).
  • step S14 after delaying for a preset period of time, such as 1 minute, it automatically jumps to the above step S10, and executes the next intelligent loop speed limit.
  • the preferred embodiment of the present application further provides an intelligent rate limiting device based on network congestion detection for performing the above-mentioned intelligent rate limiting method based on network congestion detection.
  • the intelligent speed limiting device 10 based on network congestion detection may include a memory 11, a processor 12 and a bus 13.
  • the memory 11 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk Wait.
  • the memory 11 may be an internal storage unit of the intelligent speed limiting device 10 based on network congestion detection, such as the hard disk of the intelligent speed limiting device 10 based on network congestion detection.
  • the memory 11 may also be an external storage device of the intelligent speed limiting device 10 based on network congestion detection, for example, a plug-in hard disk equipped on the intelligent speed limiting device 10 based on network congestion detection, a smart memory card (Smart Media, Card, SMC), Secure Digital (SD) card, Flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the intelligent speed limiting device 10 based on network congestion detection and an external storage device. The memory 11 can be used not only to store application software and various types of data installed in the intelligent speed limit device 10 based on network congestion detection, such as the code of the intelligent speed limit program 01 based on network congestion detection, but also to temporarily store Export or will export the data.
  • a plug-in hard disk equipped on the intelligent speed limiting device 10 based on network congestion detection for example, a plug-in hard disk equipped on the intelligent speed limiting device 10 based on network congestion detection, a smart memory card (Smart Media, Card, SMC), Secure Digital (SD) card, Flash card (Flash Card),
  • the processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip for running the program code or processing stored in the memory 11 Data, for example, execute intelligent speed limit program 01 based on network congestion detection.
  • CPU central processing unit
  • controller microcontroller
  • microprocessor or other data processing chip for running the program code or processing stored in the memory 11 Data, for example, execute intelligent speed limit program 01 based on network congestion detection.
  • the bus 13 may be a peripheral component interconnection (peripheral component interconnection, PCI for short) bus or an extended industry standard architecture (extended industry standard (EISA) bus for short).
  • PCI peripheral component interconnection
  • EISA extended industry standard
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.
  • the intelligent rate limiting device 10 based on network congestion detection may further include a network interface 14, the network interface 14 is optional, and may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), usually used To establish a communication connection between the device 10 and other electronic equipment.
  • a network interface 14 the network interface 14 is optional, and may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), usually used To establish a communication connection between the device 10 and other electronic equipment.
  • the intelligent speed limiting device 10 based on network congestion detection may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface , Wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light emitting diode) touch device, or the like.
  • the display may also be appropriately referred to as a display screen or a display unit, for displaying information processed in the intelligent speed limiting device 10 based on network congestion detection and for displaying a visual user interface.
  • FIG. 2 only shows a network congestion detection-based intelligent speed limit device 10 having components 11-14 and an intelligent speed limit program 01 based on network congestion detection.
  • FIG. 2 does not constitute a limitation on the intelligent speed limit device 10 based on network congestion detection, and may include fewer or more components than shown, or combine some components, or arrange different components.
  • the intelligent speed limit program 01 based on network congestion detection stored in the memory 11 is called and executed by the processor 12 and can implement the following steps:
  • Send predetermined data packets to the selected N addresses respectively receive the return data packets returned from the N addresses respectively, and calculate the respective addresses according to the received return data packets corresponding to the respective addresses Corresponding first preset type parameters and second preset type parameters;
  • the intelligent rate limiting program 01 based on network congestion detection may also be divided into one or more modules, and the one or more modules are stored in the memory 11 and composed of one or more A processor (the processor 12 in this embodiment) is executed to complete the application.
  • the module referred to in the application refers to a series of computer program instruction segments capable of performing specific functions, and is used to describe the stock screening program in the stock screening device. Implementation process.
  • FIG. 3 is a schematic diagram of a program module of an intelligent speed limit program 01 based on network congestion detection in this application
  • the intelligent speed limit program 01 based on network congestion detection may be divided into network congestion analysis
  • the module 101 and the speed limit adjustment module 102 exemplarily:
  • the network congestion analysis module 101 is used to: select N addresses from a list of pre-selected addresses, where N is a positive integer, respectively send predetermined data packets to the selected N addresses, and receive the N addresses respectively Return the returned data packet, and calculate the first preset type parameter and the second preset type parameter corresponding to each address respectively according to the received return data packet corresponding to each address Set the type parameter and the second preset type parameter to analyze the current network congestion status.
  • the speed limit adjustment module 102 is used to adjust the network speed limit of the preset service according to the current network congestion state.
  • the above-mentioned network congestion analysis module 101 and the speed limit value adjustment module 102 and other program modules are implemented with functions or operation steps that are substantially the same as those in the foregoing embodiment, and will not be repeated here.
  • the above embodiments it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product is stored in a computer-readable storage medium.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present application are generated.
  • the computer may be a general-purpose computer, a dedicated 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 from a website site, computer, server or data center Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available medium integration.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Abstract

Disclosed in the present application is a network congestion detection-based intelligent speed limiting method, comprising: selecting N addresses from a pre-selected address list, wherein N is a positive integer; separately sending predetermined data packets to the selected N addresses, separately receiving return data packets returned from the N addresses, and according to each of the received return data packets, separately calculating a first preset type parameter and second preset type parameter corresponding to each of the addresses; analyzing a current network congestion state according to the first preset type parameter and the second preset type parameter; and adjusting a network speed limit value of a preset service according to the current network congestion state. Also disclosed in the present application are a network congestion detection-based intelligent speed limiting apparatus and a storage medium. The present application may dynamically adjust the speed limit value of a network service according to the network congestion state.

Description

基于网络拥塞探测的智能限速方法、装置及存储介质Intelligent speed limiting method, device and storage medium based on network congestion detection
本申请基于巴黎公约申明享有2019年1月11日递交的申请号为CN201910026062.2、名称为“基于网络拥塞探测的智能限速方法、装置及存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the Paris Convention and declares that it enjoys the priority of the Chinese patent application with the application number CN201910026062.2 and the name “Intelligent Speed Limiting Method, Device and Storage Media Based on Network Congestion Detection” filed on January 11, 2019. The entire content of the patent application is incorporated by reference in this application.
技术领域Technical field
本申请涉及网络通信技术领域,尤其涉及一种基于网络拥塞探测的智能限速方法、装置以及存储介质。The present application relates to the field of network communication technology, and in particular to an intelligent rate limiting method, device and storage medium based on network congestion detection.
背景技术Background technique
QoS(Quality of Service)是一种保证网络通信质量的控制机制,提供了对带宽资源的管理功能。限速是最常见的QoS方式之一,通过限制某一服务的数据传输速率,来避免该服务将系统中有限的带宽耗尽,影响其他服务的通信质量。传统的限速方案需要手动设置一个固定的限速值,使得某一服务的速率不会超过这个值。这种方案存在以下问题:QoS (Quality of Service) is a control mechanism that guarantees the quality of network communication and provides management functions for bandwidth resources. Speed limit is one of the most common QoS methods. By limiting the data transmission rate of a service, the service is prevented from exhausting the limited bandwidth in the system and affecting the communication quality of other services. The traditional speed limit scheme needs to manually set a fixed speed limit value so that the rate of a certain service will not exceed this value. This solution has the following problems:
1.对某一服务的限速值可能太大,没有给其他服务让出足够的带宽,限速效果不明显,无法保证其他服务的质量;1. The speed limit value for a certain service may be too large, without giving enough bandwidth to other services, the speed limit effect is not obvious, and the quality of other services cannot be guaranteed;
2.对某一服务的限速值可能太小,给其他服务让出了足够的带宽,限速效果明显,保证了其他服务的质量,但在其他服务实际使用的带宽很小时,本服务因被限速,没有把其他服务没用到的空闲带宽利用起来;2. The speed limit value for a certain service may be too small, giving enough bandwidth to other services, the speed limit effect is obvious, and the quality of other services is guaranteed, but the actual bandwidth used by other services is very small. Speed is limited, and the idle bandwidth that is not used by other services is not utilized;
3.系统中各服务对带宽的利用率通常是动态变化的,而限速值是静态的,不会动态调整,当限速效果不理想时,需要手动调整这个固定的限速值;3. The bandwidth utilization of each service in the system usually changes dynamically, and the speed limit value is static and will not be adjusted dynamically. When the speed limit effect is not ideal, you need to manually adjust this fixed speed limit value;
4.传统的限速方案需要用户对链路最大带宽值有一定感知,因为只有在设置的限速值比链路最大带宽值更小时,限速才能生效。4. The traditional speed limit scheme requires users to have a certain sense of the maximum bandwidth value of the link, because the speed limit can only take effect when the set speed limit value is less than the maximum bandwidth value of the link.
发明内容Summary of the invention
本申请的主要目的在于提供一种基于网络拥塞探测的智能限速方法、装 置及存储介质,可以根据网络的拥塞状态,对网络服务的限速值进行动态调整。The main purpose of this application is to provide an intelligent rate limiting method, device and storage medium based on network congestion detection, which can dynamically adjust the rate limit value of network services according to the network congestion status.
为实现上述目的,本申请提供的基于网络拥塞探测的智能限速方法,包括:To achieve the above purpose, the intelligent rate limiting method based on network congestion detection provided by this application includes:
从一个预选地址列表中选取N个地址,所述N为正整数;Select N addresses from a list of pre-selected addresses, where N is a positive integer;
分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数;Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate the first pre-correspondence corresponding to each address respectively according to the received return data packets Set type parameters and second preset type parameters;
根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态;及Analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter; and
根据当前的网络拥塞状态调整预设服务的网络限速值。Adjust the network speed limit value of the preset service according to the current network congestion status.
可选地,所述第一预设类型参数为往返时间参数,所述第二预设类型参数为丢包率;以及所述根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态包括:Optionally, the first preset type parameter is a round-trip time parameter, the second preset type parameter is a packet loss rate; and the analysis is based on the first preset type parameter and the second preset type parameter The current network congestion status includes:
将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态;Compare the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status;
将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态;及Compare the calculated packet loss rate with a predetermined second network analysis standard to analyze the congestion status of the second network; and
根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态。According to the first network congestion state and the second network congestion state, the current network congestion state is analyzed.
可选地,所述第一网络分析标准包括与当前网络对应的往返时间阈值,其中,所述往返时间阈值包括第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值;及Optionally, the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second round-trip time threshold, a third round-trip time threshold, and a fourth round-trip Time threshold; and
所述的将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态包括:The comparison between the calculated round-trip time parameter and the preset first network analysis standard to analyze the first network congestion status includes:
若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第一往返时间阈值,且小于或者等于第二往返时间阈值,则判定网络状态为第一状态;If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the first round-trip time threshold and less than or equal to the second round-trip time threshold, the network state is determined to be the first state ;
若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第二往返时间阈值,且小于或者等于第三往返时间阈值, 则判定网络状态为第二状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the second round-trip time threshold and less than or equal to the third round-trip time threshold, the network state is determined to be the second state ;
若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第三往返时间阈值,且小于或者等于第四往返时间阈值,则判定网络状态为第三状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the third round-trip time threshold and less than or equal to the fourth round-trip time threshold, the network state is determined to be the third state ;
若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第四往返时间阈值,则判定网络状态为第四状态。If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the fourth round-trip time threshold, the network state is determined to be the fourth state.
可选地,所述第二网络分析标准包括与当前网络对应的丢包率阈值,其中,所述丢包率阈值包括第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值;及Optionally, the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold, a second packet loss rate threshold, and a third packet loss rate Threshold, fourth packet loss rate threshold; and
所述的将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态包括:The comparison between the calculated packet loss rate and a preset second network analysis standard to analyze the congestion status of the second network includes:
若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第一丢包率阈值,且小于或者等于第二丢包率阈值,则判定网络状态为第一状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the first packet loss rate threshold and less than or equal to the second packet loss rate threshold, the network status is determined to be A state
若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第二丢包率阈值,且小于或者等于第三丢包率阈值,则判定网络状态为第二状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the second packet loss rate threshold and less than or equal to the third packet loss rate threshold, the network status is determined to be Two states
若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第三丢包率阈值,且小于或者等于第四丢包率阈值,则判定网络状态为第三状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network status is determined to be Three states
若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第四丢包率阈值,则判定网络状态为第四状态。If the calculated packet loss rate is greater than the second preset number or the packet loss rate greater than the second preset ratio is greater than the fourth packet loss rate threshold, the network state is determined to be the fourth state.
可选地,所述根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态包括:Optionally, the analyzing the current network congestion state according to the first network congestion state and the second network congestion state includes:
若所述第一网络拥塞状态相对于第二网络拥塞状态,所述第一网络拥塞状态更差,则确定所述第一网络拥塞状态为当前的网络拥塞状态;If the first network congestion state is worse than the second network congestion state, the first network congestion state is determined to be the current network congestion state;
若所述第二网络拥塞状态相对于第一网络拥塞状态,所述第二网络拥塞状态更差,则确定所述第二网络拥塞状态为当前的网络拥塞状态。If the second network congestion state is worse than the first network congestion state, the second network congestion state is determined to be the current network congestion state.
可选地,所述的根据当前的网络拥塞状态调整预设服务的网络限速值,包括:Optionally, the adjusting the network speed limit value of the preset service according to the current network congestion state includes:
若当前的网络拥塞状态为第一状态时,按照第一规则调整预设服务的网络限速值;If the current network congestion state is the first state, adjust the network speed limit value of the preset service according to the first rule;
若当前的网络拥塞状态为第二状态时,按照第二规则调整预设服务的网络限速值;If the current network congestion state is the second state, adjust the network speed limit value of the preset service according to the second rule;
若当前的网络拥塞状态为第三状态时,按照第三规则调整预设服务的网络限速值;及If the current network congestion state is the third state, adjust the network speed limit value of the preset service according to the third rule; and
若当前的网络拥塞状态为第四状态时,按照第四规则调整预设服务的网络限速值。If the current network congestion state is the fourth state, the preset network speed limit value of the service is adjusted according to the fourth rule.
可选地,所述方法还包括:Optionally, the method further includes:
计算过去预定时间段内的往返时间的平均值;Calculate the average value of the round trip time in the past predetermined time period;
将第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值分别设置为所述往返时间的平均值的一倍、二倍、三倍和四倍。The first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
可选地,所述方法还包括:Optionally, the method further includes:
计算过去预定时间段内的丢包率的平均值;Calculate the average value of the packet loss rate in the past predetermined time period;
将第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值分别设置为所述丢包率的平均值的一倍、二倍、三倍和四倍。The first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold are respectively set to one, two, three, and four times the average value of the packet loss rate Times.
为实现上述目的,本申请提供的基于网络拥塞探测的智能限速装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的基于网络拥塞探测的智能限速程序,所述基于网络拥塞探测的智能限速程序被所述处理器执行时实现上述的基于网络拥塞探测的智能限速方法:In order to achieve the above object, the intelligent speed limit device based on network congestion detection provided by the present application includes a memory and a processor, and the memory stores an intelligent speed limit program based on network congestion detection that can run on the processor. The intelligent speed limit program based on network congestion detection implements the above intelligent speed limit method based on network congestion detection when executed by the processor:
为实现上述目的,本申请进一步提供一种计算机可读存储介质,所述计算机可读存储介质上存储有基于网络拥塞探测的智能限速程序,所述基于网络拥塞探测的智能限速程序被一个或者多个处理器执行,以实现上述所述的基于网络拥塞探测的智能限速方法。In order to achieve the above object, the present application further provides a computer-readable storage medium on which an intelligent speed limit program based on network congestion detection is stored. The intelligent speed limit program based on network congestion detection is Or multiple processors execute to implement the above-mentioned intelligent rate limiting method based on network congestion detection.
为实现上述目的,本申请进一步提供一种计算机程序产品,包括一个或多个计算机指令,在计算机上加载和执行所述计算机程序指令时,实现上述所述的基于网络拥塞探测的智能限速方法。In order to achieve the above object, the present application further provides a computer program product, including one or more computer instructions, when the computer program instructions are loaded and executed on the computer, the above-mentioned intelligent speed limit method based on network congestion detection is implemented .
本实施例所述基于网络拥塞探测的智能限速方法、装置以及存储介质对 多个域名地址/IP地址进行报文探测,再根据往返时间和丢包率评估网络拥塞情况,具有如下优点:The intelligent rate limiting method, device and storage medium based on network congestion detection described in this embodiment perform packet detection on multiple domain name addresses/IP addresses, and then evaluate the network congestion according to the round-trip time and packet loss rate, which has the following advantages:
第一、基于网络拥塞探测来感知带宽是否跑满;First, based on network congestion detection to detect whether the bandwidth is full;
第二、在网络拥塞时,自动加大对预设服务的网络限速力度,给其他服务让出足够的带宽,保证其他服务的质量,而在网络不拥塞时,自动减小对预设服务的网络限速力度,再次把其他服务没用到的空闲带宽利用起来,提高了系统的带宽利用率。Second, when the network is congested, the speed limit of the preset service is automatically increased to give enough bandwidth to other services to ensure the quality of other services, and when the network is not congested, the preset service is automatically reduced The speed limit of the network has once again utilized idle bandwidth that is not used by other services, which has improved the bandwidth utilization of the system.
第三、周期性的执行以上智能限速流程,自动根据网络拥塞情况动态调整限速值,无需手动调整。Third, periodically execute the above intelligent speed limit process to automatically adjust the speed limit value dynamically according to network congestion without manual adjustment.
第四、自适应被限速的服务的实时速率,在保证限速的灵敏度的同时,与链路最大带宽值解耦,用户无需感知链路最大带宽值。Fourth, the real-time rate of the adaptive speed-limited service is decoupled from the maximum link bandwidth value while ensuring the sensitivity of the speed limit, and the user does not need to perceive the maximum link bandwidth value.
附图说明BRIEF DESCRIPTION
图1为本申请一实施例揭露的基于网络拥塞探测的智能限速方法的流程示意图;1 is a schematic flowchart of an intelligent rate limiting method based on network congestion detection disclosed in an embodiment of the present application;
图2为本申请一实施例揭露的基于网络拥塞探测的智能限速装置的内部结构示意图;2 is a schematic diagram of an internal structure of an intelligent speed limiting device based on network congestion detection disclosed in an embodiment of the present application;
图3为图2中基于网络拥塞探测的智能限速程序的程序模块示意图。FIG. 3 is a schematic diagram of program modules of the intelligent speed limit program based on network congestion detection in FIG. 2.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present application will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clear, the following describes the present application in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺 序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,所述“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above drawings are used to distinguish similar objects without using To describe a specific order or sequence. It should be understood that the data so used can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than what is illustrated or described herein. In addition, the descriptions of "first", "second", etc. are for descriptive purposes only, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may include at least one of the features either explicitly or implicitly.
进一步地,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。Further, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products, or equipment that include a series of steps or units need not be limited to clearly listed Those steps or units may include other steps or units that are not explicitly listed or inherent to these processes, methods, products or equipment.
另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of those skilled in the art to achieve. When the combination of technical solutions conflicts with each other or cannot be realized, it should be considered that the combination of such technical solutions does not exist , Nor within the scope of protection required by this application.
本申请提供一种基于网络拥塞探测的智能限速方法。This application provides an intelligent rate limiting method based on network congestion detection.
参照图1,图1为本申请一实施例基于网络拥塞探测的智能限速方法的流程示意图。该流程示意图中所述方法可以由一个装置执行,该装置可以由软件和/或硬件实现。Referring to FIG. 1, FIG. 1 is a schematic flowchart of an intelligent rate limiting method based on network congestion detection according to an embodiment of the present application. The method described in the schematic flowchart may be executed by a device, and the device may be implemented by software and/or hardware.
在本实施例中,所述基于网络拥塞探测的智能限速方法包括:In this embodiment, the intelligent rate limiting method based on network congestion detection includes:
S10,从一个预选地址列表中选取N个地址,其中,所述N为正整数。S10. Select N addresses from a list of preselected addresses, where N is a positive integer.
本申请较佳实施例中,所述预选地址列表中存储有多个知名的IP地址或域名地址。所述IP地址是用来唯一标识互联网上计算机的逻辑地址,让计算机之间可以相互通信,每台连网计算机都依靠IP地址来互相区分,相互联系。由于IP地址是数字标识,使用时难以记忆和书写,因此在IP地址的基础上又发展出一种符号化的地址方案,来代替数字型的IP地址。每一个符号化的地址都与特定的IP地址对应,这样网络上的资源访问起来就容易得多了。这个与网络上的数字型IP地址相对应的字符型地址,就被称为域名地址。In a preferred embodiment of the present application, the pre-selected address list stores multiple well-known IP addresses or domain name addresses. The IP address is a logical address used to uniquely identify computers on the Internet so that computers can communicate with each other. Each networked computer depends on the IP address to distinguish and communicate with each other. Because the IP address is a digital ID, it is difficult to remember and write when it is used. Therefore, a symbolic address scheme has been developed based on the IP address to replace the digital IP address. Each symbolized address corresponds to a specific IP address, making it easier to access resources on the network. This character address corresponding to the digital IP address on the network is called the domain name address.
本申请所述知名的IP地址或域名地址是指为大众所知并经常使用的IP地址或域名,例如,某家公司的网址、某个搜索引擎的网址等。The well-known IP address or domain name address mentioned in this application refers to an IP address or domain name known and commonly used by the public, for example, a company's website, a search engine's website, etc.
S11,分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个所述地址对应的返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数。S11: Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate each location according to the received return data packets corresponding to the respective addresses The first preset type parameter and the second preset type parameter corresponding to the address.
本申请较佳实施例中,所述地一预设类型参数为往返时间(Round-Trip Time,RTT),以及所述第二预设类型参数为丢包率。In a preferred embodiment of the present application, the preset type parameter is a round-trip time (RTT), and the second preset type parameter is a packet loss rate.
本申请较佳实施例可以使用ping工具来实现向所选择的N个地址发送预先确定的数据包。The preferred embodiment of the present application may use the ping tool to send predetermined data packets to the selected N addresses.
本申请较佳实施例中,所述N大于或者等于3。选取3个或者3个以上的地址的方法可以避免总是探测同一个地址,同时,在其中又地址存在异常的情况下,其他网址仍然可以正常工作,可靠性较高。进一步地,本申请较佳实施例中,对于数据不可达的地址,可及时将其从所述预选地址列表中删除。In a preferred embodiment of the present application, the N is greater than or equal to 3. The method of selecting 3 or more addresses can avoid always detecting the same address, and at the same time, in the case where the address is abnormal, other websites can still work normally and have high reliability. Further, in the preferred embodiment of the present application, addresses that are not reachable to data can be deleted from the pre-selected address list in time.
所述RTT在计算机网络中是一个重要的性能指标,表示从发送端发送数据开始,到发送端收到来自接收端的确认(接收端收到数据后便立即发送确认,不包含数据传输时间)总共经历的时间。The RTT is an important performance indicator in the computer network, which means that the data is sent from the sending end to the confirmation from the receiving end (the receiving end sends the confirmation immediately after receiving the data, excluding the data transmission time). Elapsed time.
RTT由三个部分决定:链路的传播时间、末端系统的处理时间、路由器的缓存中的排队和处理时间。其中前两个部分的值作为一个TCP连接相对固定,路由器的缓存中的排队和处理时间会随着整个网络拥塞程度的变化而变化。所以RTT的变化在一定程度上反映了网络拥塞程度的变化。RTT is determined by three parts: the propagation time of the link, the processing time of the end system, and the queuing and processing time in the router's cache. The values of the first two parts are relatively fixed as a TCP connection, and the queuing and processing time in the router's cache will change as the entire network congestion changes. Therefore, the change of RTT reflects the change of network congestion degree to a certain extent.
所述丢包率(LOSS)又称网络丢包率,是数据包丢失部分与所传数据包总数的比值。网络丢包是我们在使用ping(检测某个系统能否正常运行)对目站进行询问时,数据包由于各种原因在信道中丢失的现象。ping使用了ICMP回送请求与回送回答报文。ICMP回送请求报文是主机或路由器向一个特定的目的主机发出的询问,收到此报文的机器必须给源主机发送ICMP回送回答报文。这种询问报文用来测试目的站是否可到达以及了解其状态。需要指出的是,ping是直接使用网络层ICMP的一个例子,它没有通过运输层的UDP或TCP。网络丢包的原因主要有物理线路故障、设备故障、病毒攻击、网络拥塞、路由错误等。The packet loss rate (LOSS), also known as the network packet loss rate, is the ratio of the lost portion of a data packet to the total number of transmitted data packets. Network packet loss is a phenomenon in which data packets are lost in the channel due to various reasons when we use ping (to detect whether a system is operating normally) to query the destination station. Ping uses ICMP echo request and echo reply messages. The ICMP echo request message is a query sent by the host or router to a specific destination host. The machine receiving this message must send an ICMP echo reply message to the source host. This query message is used to test whether the destination station is reachable and to understand its status. It should be noted that ping is an example of directly using the network layer ICMP, it does not pass through the transport layer UDP or TCP. The main causes of network packet loss include physical line failure, equipment failure, virus attack, network congestion, and routing errors.
S12,根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态。S12: Analyze the current network congestion status according to the first preset type parameter and the second preset type parameter.
本申请较佳实施例将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态;将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态;及根据所述第一网络拥 塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态。The preferred embodiment of the present application compares the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status; and performs the calculated packet loss rate with the preset second network analysis standard Compare and analyze the second network congestion state; and according to the first network congestion state and the second network congestion state, analyze the current network congestion state.
本申请中,所述第一网络分析标准包括与当前网络对应的往返时间阈值,其中,所述往返时间阈值包括第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值。In this application, the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second round-trip time threshold, a third round-trip time threshold, and a fourth round-trip Time threshold.
例如,根据所述网络类型为移动数据网络或者WI-FI网络等。其中,当所述网络类型为移动数据网络时,所述RTT阈值可以设置的数值高些,以及当所述网络类型为WI-FI网络时,所述RTT阈值可以设置的数值低些。For example, according to the network type, it is a mobile data network or a WI-FI network. Wherein, when the network type is a mobile data network, the RTT threshold can be set to a higher value, and when the network type is a WI-FI network, the RTT threshold can be set to a lower value.
优选地,在设置所述第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值时,本申请计算过去预定时间段内的往返时间的平均值,并将第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值分别设置为所述往返时间的平均值的一倍、二倍、三倍和四倍。Preferably, when setting the first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold, the present application calculates the average round-trip time in the past predetermined time period The first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
本申请根据预先确定的网络类型与往返时间阈值的映射关系数据,确定当前网络对应的往返时间阈值,所述往返时间阈值包括第一往返时间阈值(RTT_GREEN)、第二往返时间阈值(RTT_YELLOW)、第三往返时间阈值(RTT_ORANGE)、第四往返时间阈值(TT_RED)。This application determines the round-trip time threshold corresponding to the current network according to the mapping relationship data between the predetermined network type and the round-trip time threshold. The round-trip time threshold includes a first round-trip time threshold (RTT_GREEN), a second round-trip time threshold (RTT_YELLOW), The third round-trip time threshold (RTT_ORANGE) and the fourth round-trip time threshold (TT_RED).
较佳地,根据预先确定的网络类型与往返时间阈值的映射关系数据,本申请可以分别设置不同的RTT阈值为:Preferably, according to the data of the mapping relationship between the predetermined network type and the round-trip time threshold, the present application can set different RTT thresholds as follows:
RTT_GREEN=0,RTT_YELLOW=100ms,RTT_ORANGE=200ms,RTT_RED=300ms等。RTT_GREEN=0, RTT_YELLOW=100ms, RTT_ORANGE=200ms, RTT_RED=300ms, etc.
本申请通过将上述所接收到的每一个往返时间参数与预先设定的第一网络评估标准进行比较,分析出第一网络拥塞情况如下:This application compares each round-trip time parameter received with the preset first network evaluation standard to analyze the first network congestion situation as follows:
(1)若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第一往返时间阈值,且小于或者等于第二往返时间阈值,则判定网络状态为第一状态,即:RTT_GREEN<RTT<=RTT_YELLOW,判定网络状态为GREEN,表示网络良好。(1) If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the first round-trip time threshold and less than or equal to the second round-trip time threshold, the network status is determined to be The first state, namely: RTT_GREEN<RTT<=RTT_YELLOW, determines that the network status is GREEN, indicating that the network is good.
(2)若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第二往返时间阈值,且小于或者等于第三往返时间阈值,则判定网络状态为第二状态,即:RTT_YELLOW<RTT<=RTT_ORANGE,判定网络状态为YELLOW,表示网络一般。(2) If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the second round-trip time threshold and less than or equal to the third round-trip time threshold, the network status is determined to be The second state, namely: RTT_YELLOW<RTT<=RTT_ORANGE, determines that the network status is YELLOW, indicating that the network is normal.
(3)若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第三往返时间阈值,且小于或者等于第四往返时间阈值,则判定网络状态为第三状态,即:RTT_ORANGE<RTT<=RTT_RED,判定网络状态为ORANGE,表示网络较差。(3) If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the third round-trip time threshold and less than or equal to the fourth round-trip time threshold, the network status is determined to be The third state, namely: RTT_ORANGE<RTT<=RTT_RED, determines that the network state is ORANGE, indicating that the network is poor.
(4)若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第四往返时间阈值,则判定网络状态为第四状态,即:RTT>RTT_RED,判定网络状态为RED,表示网络极差。(4) If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the fourth round-trip time threshold, the network state is determined to be the fourth state, namely: RTT>RTT_RED, Determine that the network status is RED, indicating that the network is extremely poor.
进一步地,所述第二网络分析标准包括与当前网络对应的丢包率阈值,其中,所述丢包率阈值包括第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值。Further, the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold, a second packet loss rate threshold, and a third packet loss rate threshold 3. The fourth packet loss rate threshold.
例如,本申请所述网络类型可以包括移动数据网络或者WI-FI网络等。其中,当所述网络类型为移动数据网络时,所述丢包率阈值可以设置的数值高些,以及当所述网络类型为WI-FI网络时,所述丢包率阈值可以设置的数值低些。For example, the network types described in this application may include mobile data networks or WI-FI networks. Wherein, when the network type is a mobile data network, the value of the packet loss rate threshold may be set higher, and when the network type is a WI-FI network, the value of the packet loss rate threshold may be set lower some.
优选地,在设置所述第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值时,本申请计算过去预定时间段内的丢包率的平均值;将第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值分别设置为所述丢包率的平均值的一倍、二倍、三倍和四倍。Preferably, when setting the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold, the present application calculates the average packet loss rate in the past predetermined time period Value; set the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold to be set to one, two, and three times the average value of the packet loss rate, respectively And four times.
本申请根据预先确定的网络类型与丢包率阈值的映射关系数据,确定当前网络对应的丢包率阈值,所述丢包率阈值包括第一丢包率阈值(LOSS_GREEN)、第二丢包率阈值(LOSS_YELLOW)、第三丢包率阈值(LOSS_ORANGE)、第四丢包率阈值(LOSS_RED)。This application determines the packet loss rate threshold corresponding to the current network according to the data of the mapping relationship between the predetermined network type and the packet loss rate threshold, and the packet loss rate threshold includes the first packet loss rate threshold (LOSS_GREEN) and the second packet loss rate Threshold (LOSS_YELLOW), third packet loss rate threshold (LOSS_ORANGE), fourth packet loss rate threshold (LOSS_RED).
较佳地,根据预先确定的网络类型与丢包率阈值的映射关系数据,本申请可以设置不同的丢包率阈值为:Preferably, according to the data of the mapping relationship between the predetermined network type and the packet loss rate threshold, the present application can set different packet loss rate thresholds as follows:
LOSS_GREEN=0、LOSS_YELLOW=1‰、LOSS_ORANGE=1%、LOSS_RED=50%等。LOSS_GREEN = 0, LOSS_YELLOW = 1‰, LOSS_ORANGE = 1%, LOSS_RED = 50%, etc.
本申请通过将上述所接收到的每一个丢包率与预先设定的第二网络评估标准进行比较,评估出第二网络拥塞情况如下:This application compares each received packet loss rate with the pre-set second network evaluation standard to evaluate the second network congestion situation as follows:
(1)若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第一丢包率阈值,且小于或者等于第二丢包率阈值,则判定网络状 态为第一状态,即:LOSS_GREEN<LOSS<=LOSS_YELLOW,判定网络状态为GREEN,表示网络良好。(1) If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the first packet loss rate threshold and less than or equal to the second packet loss rate threshold, the network is determined The state is the first state, namely: LOSS_GREEN<LOSS<=LOSS_YELLOW, and the network state is determined to be GREEN, indicating that the network is good.
(2)若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第二丢包率阈值,且小于或者等于第三丢包率阈值,则判定网络状态为第二状态,即:LOSS_YELLOW<LOSS<=LOSS_ORANGE,判定网络状态为YELLOW,表示网络一般。(2) If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the second packet loss rate threshold and less than or equal to the third packet loss rate threshold, the network is determined The state is the second state, that is: LOSS_YELLOW<LOSS<=LOSS_ORANGE, and the network state is determined to be YELLOW, indicating that the network is normal.
(3)若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第三丢包率阈值,且小于或者等于第四丢包率阈值,则判定网络状态为第三状态,即:LOSS_ORANGE<LOSS<=LOSS_RED,判定网络状态为ORANGE,表示网络较差。(3) If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network is determined The state is the third state, namely: LOSS_ORANGE<LOSS<=LOSS_RED, and the network state is determined to be ORANGE, indicating that the network is poor.
(4)若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第四丢包率阈值,则判定网络状态为第四状态,即LOSS>LOSS_RED,判定网络状态为RED,表示网络极差。(4) If the calculated packet loss rate is greater than the second preset number or the packet loss rate greater than the second preset ratio is greater than the fourth packet loss rate threshold, the network state is determined to be the fourth state, that is, LOSS>LOSS_RED, Determine that the network status is RED, indicating that the network is extremely poor.
本申请较佳实施例中,若所述第一网络拥塞状态相对于第二网络拥塞状态,所述第一网络拥塞状态更差,则确定所述第一网络拥塞状态为当前的网络拥塞状态;及若所述第二网络拥塞状态相对于第一网络拥塞状态,所述第二网络拥塞状态更差,则确定所述第二网络拥塞状态为当前的网络拥塞状态。In a preferred embodiment of the present application, if the first network congestion state is worse than the second network congestion state, the first network congestion state is determined to be the current network congestion state; And if the second network congestion state is worse than the first network congestion state, the second network congestion state is determined to be the current network congestion state.
S13,根据当前的网络拥塞状态调整预设服务的网络限速值。S13: Adjust the network speed limit value of the preset service according to the current network congestion state.
本申请较佳实施例中:In the preferred embodiment of this application:
若当前的网络拥塞状态为第一状态(网络良好)时,按照第一规则调整预设服务的网络限速值;If the current network congestion state is the first state (the network is good), adjust the network speed limit value of the preset service according to the first rule;
若当前的网络拥塞状态为第二状态(网络一般)时,按照第二规则调整预设服务的网络限速值;If the current network congestion state is the second state (general network), adjust the network speed limit value of the preset service according to the second rule;
若当前的网络拥塞状态为第三状态(网络较差)时,按照第三规则调整预设服务的网络限速值;及If the current network congestion state is the third state (the network is poor), adjust the network speed limit value of the preset service according to the third rule; and
若当前的网络拥塞状态为第四状态(网络极差)时,按照第四规则调整预设服务的网络限速值。If the current network congestion state is the fourth state (very bad network), the network speed limit value of the preset service is adjusted according to the fourth rule.
其中:among them:
所述第一规则是指调高限速值为当前限速值的1.3倍,但小于或者等于网络的最大带宽值;The first rule means that the speed-up limit value is 1.3 times the current speed limit value, but less than or equal to the maximum bandwidth value of the network;
所述第一规则是指维持当前的限速值不变;The first rule refers to maintaining the current speed limit value unchanged;
所述第三规则是指调低限速值为当前限速值和实时速率两者中最小值的0.7倍;及The third rule refers to lowering the speed limit value to 0.7 times the minimum value of the current speed limit value and the real-time rate; and
所述第四规则是指调低限速值为当前限速值和实时速率两者中最小值的0.5倍。The fourth rule refers to lowering the speed limit value by 0.5 times the minimum value of the current speed limit value and the real-time rate.
其中,所述实时速率是指被限速的服务在短时间内(如1秒内)的流量。Wherein, the real-time rate refers to the flow rate of the speed-limited service in a short time (such as within 1 second).
S14,延时预设时间段后,如1分钟,自动跳转到上述的步骤S10,执行下一次的智能循环限速。S14, after delaying for a preset period of time, such as 1 minute, it automatically jumps to the above step S10, and executes the next intelligent loop speed limit.
本申请较佳实施例还提供一种用于执行上述基于网络拥塞探测的智能限速方法的基于网络拥塞探测的智能限速装置。The preferred embodiment of the present application further provides an intelligent rate limiting device based on network congestion detection for performing the above-mentioned intelligent rate limiting method based on network congestion detection.
参阅图2所示,所述基于网络拥塞探测的智能限速装置10可以包括存储器11、处理器12和总线13。Referring to FIG. 2, the intelligent speed limiting device 10 based on network congestion detection may include a memory 11, a processor 12 and a bus 13.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是基于网络拥塞探测的智能限速装置10的内部存储单元,例如该基于网络拥塞探测的智能限速装置10的硬盘。存储器11在另一些实施例中也可以是基于网络拥塞探测的智能限速装置10的外部存储设备,例如基于网络拥塞探测的智能限速装置10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括基于网络拥塞探测的智能限速装置10的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于基于网络拥塞探测的智能限速装置10的应用软件及各类数据,例如基于网络拥塞探测的智能限速程序01的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the memory 11 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk Wait. In some embodiments, the memory 11 may be an internal storage unit of the intelligent speed limiting device 10 based on network congestion detection, such as the hard disk of the intelligent speed limiting device 10 based on network congestion detection. In other embodiments, the memory 11 may also be an external storage device of the intelligent speed limiting device 10 based on network congestion detection, for example, a plug-in hard disk equipped on the intelligent speed limiting device 10 based on network congestion detection, a smart memory card (Smart Media, Card, SMC), Secure Digital (SD) card, Flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the intelligent speed limiting device 10 based on network congestion detection and an external storage device. The memory 11 can be used not only to store application software and various types of data installed in the intelligent speed limit device 10 based on network congestion detection, such as the code of the intelligent speed limit program 01 based on network congestion detection, but also to temporarily store Export or will export the data.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行基于网络拥塞探测的智能限速程序01等。In some embodiments, the processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip for running the program code or processing stored in the memory 11 Data, for example, execute intelligent speed limit program 01 based on network congestion detection.
该总线13可以是外设部件互连标准(peripheral component interconnect,简 称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 13 may be a peripheral component interconnection (peripheral component interconnection, PCI for short) bus or an extended industry standard architecture (extended industry standard (EISA) bus for short). The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.
进一步地,基于网络拥塞探测的智能限速装置10还可以包括网络接口14,网络接口14可选的,可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该装置10与其他电子设备之间建立通信连接。Further, the intelligent rate limiting device 10 based on network congestion detection may further include a network interface 14, the network interface 14 is optional, and may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), usually used To establish a communication connection between the device 10 and other electronic equipment.
可选地,该基于网络拥塞探测的智能限速装置10还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在基于网络拥塞探测的智能限速装置10中处理的信息以及用于显示可视化的用户界面。Optionally, the intelligent speed limiting device 10 based on network congestion detection may further include a user interface, the user interface may include a display, an input unit such as a keyboard, and the optional user interface may further include a standard wired interface , Wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light emitting diode) touch device, or the like. Among them, the display may also be appropriately referred to as a display screen or a display unit, for displaying information processed in the intelligent speed limiting device 10 based on network congestion detection and for displaying a visual user interface.
图2仅示出了具有组件11-14以及基于网络拥塞探测的智能限速程序01的基于网络拥塞探测的智能限速装置10,本领域技术人员可以理解的是,图3示出的结构并不构成对基于网络拥塞探测的智能限速装置10的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 2 only shows a network congestion detection-based intelligent speed limit device 10 having components 11-14 and an intelligent speed limit program 01 based on network congestion detection. Those skilled in the art can understand that the structure shown in FIG. It does not constitute a limitation on the intelligent speed limit device 10 based on network congestion detection, and may include fewer or more components than shown, or combine some components, or arrange different components.
在图2所示的基于网络拥塞探测的智能限速装置10实施例中,存储器11中存储的基于网络拥塞探测的智能限速程序01,由处理器12调用执行时,可以实现如下步骤:In the embodiment of the intelligent speed limit device 10 based on network congestion detection shown in FIG. 2, the intelligent speed limit program 01 based on network congestion detection stored in the memory 11 is called and executed by the processor 12 and can implement the following steps:
从一个预选地址列表中选取N个地址,所述N为正整数;Select N addresses from a list of pre-selected addresses, where N is a positive integer;
分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个所述地址对应的返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数;Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate the respective addresses according to the received return data packets corresponding to the respective addresses Corresponding first preset type parameters and second preset type parameters;
根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态;及Analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter; and
根据当前的网络拥塞状态调整预设服务的网络限速值。Adjust the network speed limit value of the preset service according to the current network congestion status.
可选地,在其他实施例中,所述基于网络拥塞探测的智能限速程序01还 可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行以完成本申请,本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,用于描述股票筛选程序在股票筛选装置中的执行过程。Optionally, in other embodiments, the intelligent rate limiting program 01 based on network congestion detection may also be divided into one or more modules, and the one or more modules are stored in the memory 11 and composed of one or more A processor (the processor 12 in this embodiment) is executed to complete the application. The module referred to in the application refers to a series of computer program instruction segments capable of performing specific functions, and is used to describe the stock screening program in the stock screening device. Implementation process.
例如,参照图3所示,为本申请基于网络拥塞探测的智能限速程序01的程序模块示意图,该实施例中,所述基于网络拥塞探测的智能限速程序01可以被分割为网络拥塞分析模块101及限速值调整模块102,示例性地:For example, referring to FIG. 3, which is a schematic diagram of a program module of an intelligent speed limit program 01 based on network congestion detection in this application, in this embodiment, the intelligent speed limit program 01 based on network congestion detection may be divided into network congestion analysis The module 101 and the speed limit adjustment module 102 exemplarily:
所述网络拥塞分析模块101用于:从一个预选地址列表中选取N个地址,所述N为正整数,分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个所述地址对应的返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数,根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态。The network congestion analysis module 101 is used to: select N addresses from a list of pre-selected addresses, where N is a positive integer, respectively send predetermined data packets to the selected N addresses, and receive the N addresses respectively Return the returned data packet, and calculate the first preset type parameter and the second preset type parameter corresponding to each address respectively according to the received return data packet corresponding to each address Set the type parameter and the second preset type parameter to analyze the current network congestion status.
所述限速值调整模块102用于:根据当前的网络拥塞状态调整预设服务的网络限速值。The speed limit adjustment module 102 is used to adjust the network speed limit of the preset service according to the current network congestion state.
上述的网络拥塞分析模块101及限速值调整模块102等程序模块被执行时所实现的功能或操作步骤与上述实施例大体相同,在此不再赘述。The above-mentioned network congestion analysis module 101 and the speed limit value adjustment module 102 and other program modules are implemented with functions or operation steps that are substantially the same as those in the foregoing embodiment, and will not be repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品存储在一种计算机可读存储介质中。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product is stored in a computer-readable storage medium. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present application are generated.
所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的 服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等The computer may be a general-purpose computer, a dedicated 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 from a website site, computer, server or data center Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available medium integration. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only  Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the sequence numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments. And the terms "include", "include", or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, device, article, or method that includes a series of elements includes not only those elements, but also unclear The other elements listed may also include elements inherent to this process, device, article, or method. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, device, article or method that includes the element.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application and do not limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by the description and drawings of this application, or directly or indirectly used in other related technical fields The same reason is included in the patent protection scope of this application.

Claims (20)

  1. 一种基于网络拥塞探测的智能限速方法,其特征在于,所述方法包括:An intelligent rate limiting method based on network congestion detection, characterized in that the method includes:
    从一个预选地址列表中选取N个地址,所述N为正整数;Select N addresses from a list of pre-selected addresses, where N is a positive integer;
    分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数;Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate the first pre-correspondence corresponding to each address respectively according to the received return data packets Set type parameters and second preset type parameters;
    根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态;及Analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter; and
    根据当前的网络拥塞状态调整预设服务的网络限速值。Adjust the network speed limit value of the preset service according to the current network congestion status.
  2. 根据权利要求1所述的方法,其特征在于,所述第一预设类型参数为往返时间参数,所述第二预设类型参数为丢包率;The method according to claim 1, wherein the first preset type parameter is a round trip time parameter, and the second preset type parameter is a packet loss rate;
    所述根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态包括:The analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter includes:
    将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态;Compare the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status;
    将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态;及Compare the calculated packet loss rate with a predetermined second network analysis standard to analyze the congestion status of the second network; and
    根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态。According to the first network congestion state and the second network congestion state, the current network congestion state is analyzed.
  3. 根据权利要求2所述的方法,其特征在于,所述第一网络分析标准包括与当前网络对应的往返时间阈值,其中,所述往返时间阈值包括第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值;及The method according to claim 2, wherein the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second round-trip time threshold, The third round trip time threshold and the fourth round trip time threshold; and
    所述的将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态包括:The comparison between the calculated round-trip time parameter and the preset first network analysis standard to analyze the first network congestion status includes:
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第一往返时间阈值,且小于或者等于第二往返时间阈值,则判定网络状态为第一状态;If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the first round-trip time threshold and less than or equal to the second round-trip time threshold, the network state is determined to be the first state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第二往返时间阈值,且小于或者等于第三往返时间阈值, 则判定网络状态为第二状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the second round-trip time threshold and less than or equal to the third round-trip time threshold, the network state is determined to be the second state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第三往返时间阈值,且小于或者等于第四往返时间阈值,则判定网络状态为第三状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the third round-trip time threshold and less than or equal to the fourth round-trip time threshold, the network state is determined to be the third state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第四往返时间阈值,则判定网络状态为第四状态。If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the fourth round-trip time threshold, the network state is determined to be the fourth state.
  4. 根据权利要求2所述的方法,其特征在于,所述第二网络分析标准包括与当前网络对应的丢包率阈值,其中,所述丢包率阈值包括第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值;及The method according to claim 2, wherein the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold and a second drop rate Packet rate threshold, third packet loss rate threshold, fourth packet loss rate threshold; and
    所述的将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态包括:The comparison between the calculated packet loss rate and a preset second network analysis standard to analyze the congestion status of the second network includes:
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第一丢包率阈值,且小于或者等于第二丢包率阈值,则判定网络状态为第一状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the first packet loss rate threshold and less than or equal to the second packet loss rate threshold, the network status is determined to be A state
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第二丢包率阈值,且小于或者等于第三丢包率阈值,则判定网络状态为第二状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the second packet loss rate threshold and less than or equal to the third packet loss rate threshold, the network status is determined to be Two states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第三丢包率阈值,且小于或者等于第四丢包率阈值,则判定网络状态为第三状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network status is determined to be Three states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第四丢包率阈值,则判定网络状态为第四状态。If the calculated packet loss rate is greater than the second preset number or the packet loss rate greater than the second preset ratio is greater than the fourth packet loss rate threshold, the network state is determined to be the fourth state.
  5. 根据权利要求1至4中任意一项所述的方法,其特征在于,所述根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态包括:The method according to any one of claims 1 to 4, wherein the analyzing the current network congestion state according to the first network congestion state and the second network congestion state includes:
    若所述第一网络拥塞状态相对于第二网络拥塞状态,所述第一网络拥塞状态更差,则确定所述第一网络拥塞状态为当前的网络拥塞状态;If the first network congestion state is worse than the second network congestion state, the first network congestion state is determined to be the current network congestion state;
    若所述第二网络拥塞状态相对于第一网络拥塞状态,所述第二网络拥塞状态更差,则确定所述第二网络拥塞状态为当前的网络拥塞状态。If the second network congestion state is worse than the first network congestion state, the second network congestion state is determined to be the current network congestion state.
  6. 根据权利要求5所述的方法,其特征在于,所述的根据当前的网络拥 塞状态调整预设服务的网络限速值,包括:The method according to claim 5, wherein the adjusting the network speed limit value of the preset service according to the current network congestion state includes:
    若当前的网络拥塞状态为第一状态时,按照第一规则调整预设服务的网络限速值;If the current network congestion state is the first state, adjust the network speed limit value of the preset service according to the first rule;
    若当前的网络拥塞状态为第二状态时,按照第二规则调整预设服务的网络限速值;If the current network congestion state is the second state, adjust the network speed limit value of the preset service according to the second rule;
    若当前的网络拥塞状态为第三状态时,按照第三规则调整预设服务的网络限速值;及If the current network congestion state is the third state, adjust the network speed limit value of the preset service according to the third rule; and
    若当前的网络拥塞状态为第四状态时,按照第四规则调整预设服务的网络限速值。If the current network congestion state is the fourth state, the preset network speed limit value of the service is adjusted according to the fourth rule.
  7. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    计算过去预定时间段内的往返时间的平均值;Calculate the average value of the round trip time in the past predetermined time period;
    将第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值分别设置为所述往返时间的平均值的一倍、二倍、三倍和四倍。The first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
  8. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    计算过去预定时间段内的丢包率的平均值;Calculate the average value of the packet loss rate in the past predetermined time period;
    将第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值分别设置为所述丢包率的平均值的一倍、二倍、三倍和四倍。The first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold are respectively set to one, two, three, and four times the average value of the packet loss rate Times.
  9. 一种基于网络拥塞探测的智能限速装置,其特征在于,所述装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的基于网络拥塞探测的智能限速程序,所述基于网络拥塞探测的智能限速程序被所述处理器执行时实现:An intelligent speed limit device based on network congestion detection, characterized in that the device includes a memory and a processor, and an intelligent speed limit program based on network congestion detection that can run on the processor is stored on the memory, When the intelligent speed limit program based on network congestion detection is executed by the processor:
    从一个预选地址列表中选取N个地址,所述N为正整数;Select N addresses from a list of pre-selected addresses, where N is a positive integer;
    分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数;Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate the first pre-correspondence corresponding to each address respectively according to the received return data packets Set type parameters and second preset type parameters;
    根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态;及Analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter; and
    根据当前的网络拥塞状态调整预设服务的网络限速值。Adjust the network speed limit value of the preset service according to the current network congestion status.
  10. 根据权利要求9所述的智能限速装置,其特征在于,所述第一预设类型参数为往返时间参数,所述第二预设类型参数为丢包率;The intelligent speed limiting device according to claim 9, wherein the first preset type parameter is a round trip time parameter, and the second preset type parameter is a packet loss rate;
    所述根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态包括:The analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter includes:
    将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态;Compare the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status;
    将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态;及Compare the calculated packet loss rate with a predetermined second network analysis standard to analyze the congestion status of the second network; and
    根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态。According to the first network congestion state and the second network congestion state, the current network congestion state is analyzed.
  11. 根据权利要求10所述的智能限速装置,其特征在于,所述第一网络分析标准包括与当前网络对应的往返时间阈值,其中,所述往返时间阈值包括第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值;及The intelligent rate limiting device according to claim 10, wherein the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold and a second round-trip Time threshold, third round trip time threshold, fourth round trip time threshold; and
    所述的将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态包括:The comparison between the calculated round-trip time parameter and the preset first network analysis standard to analyze the first network congestion status includes:
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第一往返时间阈值,且小于或者等于第二往返时间阈值,则判定网络状态为第一状态;If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the first round-trip time threshold and less than or equal to the second round-trip time threshold, the network state is determined to be the first state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第二往返时间阈值,且小于或者等于第三往返时间阈值,则判定网络状态为第二状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the second round-trip time threshold and less than or equal to the third round-trip time threshold, the network state is determined to be the second state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第三往返时间阈值,且小于或者等于第四往返时间阈值,则判定网络状态为第三状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the third round-trip time threshold and less than or equal to the fourth round-trip time threshold, the network state is determined to be the third state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第四往返时间阈值,则判定网络状态为第四状态。If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the fourth round-trip time threshold, the network state is determined to be the fourth state.
  12. 根据权利要求10所述的智能限速装置,其特征在于,所述第二网络分析标准包括与当前网络对应的丢包率阈值,其中,所述丢包率阈值包括第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值;及The intelligent rate limiting device according to claim 10, wherein the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold, The second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold; and
    所述的将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态包括:The comparison between the calculated packet loss rate and a preset second network analysis standard to analyze the congestion status of the second network includes:
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第一丢包率阈值,且小于或者等于第二丢包率阈值,则判定网络状态为第一状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the first packet loss rate threshold and less than or equal to the second packet loss rate threshold, the network status is determined to be A state
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第二丢包率阈值,且小于或者等于第三丢包率阈值,则判定网络状态为第二状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the second packet loss rate threshold and less than or equal to the third packet loss rate threshold, the network status is determined to be Two states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第三丢包率阈值,且小于或者等于第四丢包率阈值,则判定网络状态为第三状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network status is determined to be Three states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第四丢包率阈值,则判定网络状态为第四状态。If the calculated packet loss rate is greater than the second preset number or the packet loss rate greater than the second preset ratio is greater than the fourth packet loss rate threshold, the network state is determined to be the fourth state.
  13. 根据权利要求9至12中任意一项所述的智能限速装置,其特征在于,所述根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态包括:The intelligent rate limiting device according to any one of claims 9 to 12, wherein the analyzing the current network congestion status according to the first network congestion status and the second network congestion status includes:
    若所述第一网络拥塞状态相对于第二网络拥塞状态,所述第一网络拥塞状态更差,则确定所述第一网络拥塞状态为当前的网络拥塞状态;If the first network congestion state is worse than the second network congestion state, the first network congestion state is determined to be the current network congestion state;
    若所述第二网络拥塞状态相对于第一网络拥塞状态,所述第二网络拥塞状态更差,则确定所述第二网络拥塞状态为当前的网络拥塞状态。If the second network congestion state is worse than the first network congestion state, the second network congestion state is determined to be the current network congestion state.
  14. 根据权利要求13所述的智能限速装置,其特征在于,所述的根据当前的网络拥塞状态调整预设服务的网络限速值,包括:The intelligent speed limit device according to claim 13, wherein the adjusting of the network speed limit value of the preset service according to the current network congestion state includes:
    若当前的网络拥塞状态为第一状态时,按照第一规则调整预设服务的网络限速值;If the current network congestion state is the first state, adjust the network speed limit value of the preset service according to the first rule;
    若当前的网络拥塞状态为第二状态时,按照第二规则调整预设服务的网络限速值;If the current network congestion state is the second state, adjust the network speed limit value of the preset service according to the second rule;
    若当前的网络拥塞状态为第三状态时,按照第三规则调整预设服务的网络限速值;及If the current network congestion state is the third state, adjust the network speed limit value of the preset service according to the third rule; and
    若当前的网络拥塞状态为第四状态时,按照第四规则调整预设服务的网络限速值。If the current network congestion state is the fourth state, the preset network speed limit value of the service is adjusted according to the fourth rule.
  15. 根据权利要求11所述的智能限速装置,其特征在于,所述基于网络拥塞探测的智能限速程序被所述处理器执行时还实现:The intelligent speed limit device according to claim 11, wherein the intelligent speed limit program based on network congestion detection is also implemented when executed by the processor:
    计算过去预定时间段内的往返时间的平均值;Calculate the average value of the round trip time in the past predetermined time period;
    将第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值分别设置为所述往返时间的平均值的一倍、二倍、三倍和四倍。The first round-trip time threshold, the second round-trip time threshold, the third round-trip time threshold, and the fourth round-trip time threshold are respectively set to one, two, three, and four times the average value of the round-trip time.
  16. 根据权利要求11所述的智能限速装置,其特征在于,所述基于网络拥塞探测的智能限速程序被所述处理器执行时还实现:The intelligent speed limit device according to claim 11, wherein the intelligent speed limit program based on network congestion detection is also implemented when executed by the processor:
    计算过去预定时间段内的丢包率的平均值;Calculate the average value of the packet loss rate in the past predetermined time period;
    将第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值分别设置为所述丢包率的平均值的一倍、二倍、三倍和四倍。The first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold are respectively set to one, two, three, and four times the average value of the packet loss rate Times.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有基于网络拥塞探测的智能限速程序,所述基于网络拥塞探测的智能限速程序被一个或者多个处理器执行,以实现:A computer-readable storage medium, characterized in that an intelligent speed limit program based on network congestion detection is stored on the computer-readable storage medium, and the intelligent speed limit program based on network congestion detection is processed by one or more processors Implementation to achieve:
    从一个预选地址列表中选取N个地址,所述N为正整数;Select N addresses from a list of pre-selected addresses, where N is a positive integer;
    分别向所选择的N个地址发送预先确定的数据包,分别接收所述N个地址返回来的返回数据包,并根据接收的各个返回数据包,分别计算出各个所述地址对应的第一预设类型参数以及第二预设类型参数;Send predetermined data packets to the selected N addresses respectively, receive the return data packets returned from the N addresses respectively, and calculate the first pre-correspondence corresponding to each address respectively according to the received return data packets Set type parameters and second preset type parameters;
    根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态;及Analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter; and
    根据当前的网络拥塞状态调整预设服务的网络限速值。Adjust the network speed limit value of the preset service according to the current network congestion status.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述第一预设类型参数为往返时间参数,所述第二预设类型参数为丢包率;The computer-readable storage medium of claim 17, wherein the first preset type parameter is a round-trip time parameter, and the second preset type parameter is a packet loss rate;
    所述根据所述第一预设类型参数以及第二预设类型参数分析当前的网络拥塞状态包括:The analyzing the current network congestion status according to the first preset type parameter and the second preset type parameter includes:
    将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态;Compare the calculated round-trip time parameter with the preset first network analysis standard to analyze the first network congestion status;
    将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态;及Compare the calculated packet loss rate with a predetermined second network analysis standard to analyze the congestion status of the second network; and
    根据所述第一网络拥塞状态以及所述第二网络拥塞状态,分析出当前的网络拥塞状态。According to the first network congestion state and the second network congestion state, the current network congestion state is analyzed.
  19. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述第一网络分析标准包括与当前网络对应的往返时间阈值,其中,所述往返时间 阈值包括第一往返时间阈值、第二往返时间阈值、第三往返时间阈值、第四往返时间阈值;及The computer-readable storage medium according to claim 17, wherein the first network analysis standard includes a round-trip time threshold corresponding to the current network, wherein the round-trip time threshold includes a first round-trip time threshold, a second Round trip time threshold, third round trip time threshold, fourth round trip time threshold; and
    所述的将计算的往返时间参数与预先设定的第一网络分析标准进行比较,分析出第一网络拥塞状态包括:The comparison between the calculated round-trip time parameter and the preset first network analysis standard to analyze the first network congestion status includes:
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第一往返时间阈值,且小于或者等于第二往返时间阈值,则判定网络状态为第一状态;If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the first round-trip time threshold and less than or equal to the second round-trip time threshold, the network state is determined to be the first state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第二往返时间阈值,且小于或者等于第三往返时间阈值,则判定网络状态为第二状态;If the calculated round-trip time parameter is greater than the first preset number or greater than the first preset ratio, the round-trip time parameter is greater than the second round-trip time threshold and less than or equal to the third round-trip time threshold, the network state is determined to be the second state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第三往返时间阈值,且小于或者等于第四往返时间阈值,则判定网络状态为第三状态;If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the third round-trip time threshold and less than or equal to the fourth round-trip time threshold, the network state is determined to be the third state ;
    若计算的往返时间参数中,大于第一预设数量或者大于第一预设比例的往返时间参数大于第四往返时间阈值,则判定网络状态为第四状态。If the calculated round-trip time parameter is greater than the first preset number or the round-trip time parameter greater than the first preset ratio is greater than the fourth round-trip time threshold, the network state is determined to be the fourth state.
  20. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述第二网络分析标准包括与当前网络对应的丢包率阈值,其中,所述丢包率阈值包括第一丢包率阈值、第二丢包率阈值、第三丢包率阈值、第四丢包率阈值;及The computer-readable storage medium of claim 17, wherein the second network analysis standard includes a packet loss rate threshold corresponding to the current network, wherein the packet loss rate threshold includes a first packet loss rate threshold , The second packet loss rate threshold, the third packet loss rate threshold, and the fourth packet loss rate threshold; and
    所述的将计算的丢包率与预先设定的第二网络分析标准进行比较,分析出第二网络拥塞状态包括:The comparison between the calculated packet loss rate and a preset second network analysis standard to analyze the congestion status of the second network includes:
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第一丢包率阈值,且小于或者等于第二丢包率阈值,则判定网络状态为第一状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the first packet loss rate threshold and less than or equal to the second packet loss rate threshold, the network status is determined to be A state
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第二丢包率阈值,且小于或者等于第三丢包率阈值,则判定网络状态为第二状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the second packet loss rate threshold and less than or equal to the third packet loss rate threshold, the network status is determined to be Two states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第三丢包率阈值,且小于或者等于第四丢包率阈值,则判定网络状态为第三状态;If the calculated packet loss rate is greater than the second preset number or greater than the second preset ratio, the packet loss rate is greater than the third packet loss rate threshold and less than or equal to the fourth packet loss rate threshold, the network status is determined to be Three states
    若计算的丢包率中,大于第二预设数量或者大于第二预设比例的丢包率大于第四丢包率阈值,则判定网络状态为第四状态。If the calculated packet loss rate is greater than the second preset number or the packet loss rate greater than the second preset ratio is greater than the fourth packet loss rate threshold, the network state is determined to be the fourth state.
PCT/CN2019/092456 2019-01-11 2019-06-24 Network congestion detection-based intelligent speed limiting method and apparatus, and storage medium WO2020143180A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910026062.2A CN109787859B (en) 2019-01-11 2019-01-11 Intelligent speed limiting method and device based on network congestion detection and storage medium
CN201910026062.2 2019-01-11

Publications (1)

Publication Number Publication Date
WO2020143180A1 true WO2020143180A1 (en) 2020-07-16

Family

ID=66500366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/092456 WO2020143180A1 (en) 2019-01-11 2019-06-24 Network congestion detection-based intelligent speed limiting method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN109787859B (en)
WO (1) WO2020143180A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579489A (en) * 2020-12-25 2021-03-30 龙芯中科技术股份有限公司 Data operation method, device, equipment, storage medium and program product
CN113271316A (en) * 2021-06-09 2021-08-17 腾讯科技(深圳)有限公司 Multimedia data transmission control method and device, storage medium and electronic equipment
CN113595830A (en) * 2021-07-30 2021-11-02 百果园技术(新加坡)有限公司 Method, device, equipment and storage medium for detecting network packet loss state
CN114553778A (en) * 2022-02-25 2022-05-27 杭州网易云音乐科技有限公司 Heartbeat control method and device, storage medium and electronic equipment
CN114584491A (en) * 2022-04-21 2022-06-03 腾讯科技(深圳)有限公司 Detection method, detection device, storage medium, equipment and program product
CN114666225A (en) * 2022-03-10 2022-06-24 阿里巴巴(中国)有限公司 Bandwidth adjustment method, data transmission method, device and computer storage medium
CN115378832A (en) * 2022-07-29 2022-11-22 北京奇艺世纪科技有限公司 Congestion detection method and device, streaming media transmission system, electronic equipment and medium
CN116886622A (en) * 2023-09-08 2023-10-13 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110391956B (en) * 2019-07-23 2021-08-13 中国工商银行股份有限公司 Method and device for identifying and monitoring state of network service process
CN111510338B (en) * 2020-03-09 2022-04-26 苏州浪潮智能科技有限公司 Distributed block storage network sub-health test method, device and storage medium
CN111447107B (en) * 2020-03-20 2023-10-31 Oppo广东移动通信有限公司 Network state determining method and device, storage medium and electronic equipment
CN111682975B (en) * 2020-04-24 2023-05-16 视联动力信息技术股份有限公司 Network state prediction method, device, electronic equipment and storage medium
CN112231107B (en) * 2020-10-28 2023-06-30 新华三信息安全技术有限公司 Message speed limiting system, method, equipment and medium of firewall
CN117397224A (en) * 2021-06-11 2024-01-12 华为技术有限公司 Data transmission method and communication device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184052A (en) * 2007-12-25 2008-05-21 北京广视通达网络技术有限公司 Congestion control method of implementing reliable UDP transmission
CN102497312A (en) * 2011-12-07 2012-06-13 哈尔滨工业大学 Rate control method oriented to streaming media digital watermark transmission
CN102882803A (en) * 2012-10-11 2013-01-16 四川大学 Mixed congestion control method based on packet loss and time delay
WO2015016919A1 (en) * 2013-07-31 2015-02-05 Adaptive Spectrum And Signal Alignment, Inc. Method and apparatus for continuous access network monitoring and packet loss estimation
US20150271042A1 (en) * 2013-02-27 2015-09-24 Fuji Xerox Co., Ltd. Bandwidth measuring device and non-transitory computer readable medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4512192B2 (en) * 2005-02-09 2010-07-28 株式会社日立製作所 Congestion control device and network congestion control method
US7821937B1 (en) * 2007-06-29 2010-10-26 Symantec Corporation Network protocol with damage loss resilient congestion control algorithm
CN101582852B (en) * 2009-06-10 2012-04-11 中兴通讯股份有限公司 Method and system for network congestion management
CN105450441B (en) * 2015-11-05 2018-12-14 深圳市网心科技有限公司 A kind of weak net acceleration method and device based on Transmission Control Protocol
CN108259364B (en) * 2016-12-29 2021-09-14 中国移动通信集团浙江有限公司 Network congestion determination method and device
CN106982166B (en) * 2017-04-14 2020-12-18 吴建伟 Method and device for solving network congestion
CN107426102A (en) * 2017-07-26 2017-12-01 桂林电子科技大学 Multipath parallel transmission dynamic decision method based on path quality
CN107749827B (en) * 2017-10-30 2023-06-27 哈尔滨理工大学 Network congestion control method, device and system based on network state classification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184052A (en) * 2007-12-25 2008-05-21 北京广视通达网络技术有限公司 Congestion control method of implementing reliable UDP transmission
CN102497312A (en) * 2011-12-07 2012-06-13 哈尔滨工业大学 Rate control method oriented to streaming media digital watermark transmission
CN102882803A (en) * 2012-10-11 2013-01-16 四川大学 Mixed congestion control method based on packet loss and time delay
US20150271042A1 (en) * 2013-02-27 2015-09-24 Fuji Xerox Co., Ltd. Bandwidth measuring device and non-transitory computer readable medium
WO2015016919A1 (en) * 2013-07-31 2015-02-05 Adaptive Spectrum And Signal Alignment, Inc. Method and apparatus for continuous access network monitoring and packet loss estimation

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579489A (en) * 2020-12-25 2021-03-30 龙芯中科技术股份有限公司 Data operation method, device, equipment, storage medium and program product
CN112579489B (en) * 2020-12-25 2023-01-24 龙芯中科技术股份有限公司 Data operation method, device, equipment, storage medium and program product
CN113271316B (en) * 2021-06-09 2022-09-13 腾讯科技(深圳)有限公司 Multimedia data transmission control method and device, storage medium and electronic equipment
CN113271316A (en) * 2021-06-09 2021-08-17 腾讯科技(深圳)有限公司 Multimedia data transmission control method and device, storage medium and electronic equipment
CN113595830A (en) * 2021-07-30 2021-11-02 百果园技术(新加坡)有限公司 Method, device, equipment and storage medium for detecting network packet loss state
CN113595830B (en) * 2021-07-30 2024-02-20 百果园技术(新加坡)有限公司 Method, device, equipment and storage medium for detecting network packet loss state
CN114553778A (en) * 2022-02-25 2022-05-27 杭州网易云音乐科技有限公司 Heartbeat control method and device, storage medium and electronic equipment
CN114666225A (en) * 2022-03-10 2022-06-24 阿里巴巴(中国)有限公司 Bandwidth adjustment method, data transmission method, device and computer storage medium
CN114666225B (en) * 2022-03-10 2023-11-17 阿里巴巴(中国)有限公司 Bandwidth adjustment method, data transmission method, device and computer storage medium
CN114584491B (en) * 2022-04-21 2023-09-08 腾讯科技(深圳)有限公司 Detection method, detection device, storage medium and detection equipment
CN114584491A (en) * 2022-04-21 2022-06-03 腾讯科技(深圳)有限公司 Detection method, detection device, storage medium, equipment and program product
CN115378832A (en) * 2022-07-29 2022-11-22 北京奇艺世纪科技有限公司 Congestion detection method and device, streaming media transmission system, electronic equipment and medium
CN115378832B (en) * 2022-07-29 2024-03-26 北京奇艺世纪科技有限公司 Congestion detection method and device, stream media transmission system, electronic equipment and medium
CN116886622A (en) * 2023-09-08 2023-10-13 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116886622B (en) * 2023-09-08 2023-11-24 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109787859A (en) 2019-05-21
CN109787859B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
WO2020143180A1 (en) Network congestion detection-based intelligent speed limiting method and apparatus, and storage medium
KR102163280B1 (en) An apparatus for network monitoring based on edge computing and method thereof, and system
US7440419B2 (en) Methods for detecting nagling on a TCP network connection
US9893962B2 (en) Port mirroring for sampling measurement of network flows
US9985908B2 (en) Adaptive bandwidth control with defined priorities for different networks
CA2875457C (en) Systems and methods for managing congestion
US8976669B2 (en) Switch fabric end-to-end congestion avoidance mechanism
US8493859B2 (en) Method and apparatus for adaptive bandwidth control with a bandwidth guarantee
US7500014B1 (en) Network link state mirroring
WO2018094654A1 (en) Vpn transmission tunnel scheduling method and device, and vpn client-end server
US20220407791A1 (en) Network performance detection method and apparatus, and network device
WO2017161760A1 (en) Data transmission method and device
CN110519265A (en) A kind of method and device of defensive attack
CN116545936B (en) Congestion control method, system, device, communication equipment and storage medium
EP3682595A1 (en) Obtaining local area network diagnostic test results
US20140211614A1 (en) Methods and systems for providing redundancy in data network communications
WO2018188570A1 (en) Data transmission method and apparatus
US20140115145A1 (en) Method and apparatus for dynamically scaling application perfomance analysis completeness based on available system resources
JP5655049B2 (en) Determination device, determination method, and determination program
CN114697319B (en) Tenant service management method and device for public cloud
CN116260855B (en) Communication method, communication device, electronic equipment and storage medium
US20230269159A1 (en) Determining an egress interface for a packet using a processor of a network device
GB2566467A (en) Obtaining local area network diagnostic test results
WO2024031972A1 (en) Method, system and apparatus for identifying repeated data, and storage medium and product
KR20030073539A (en) Ip sharer detection method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 19908141

Country of ref document: EP

Kind code of ref document: A1