Method, device and system for dynamically adjusting network flow and medium
By monitoring the available bandwidth resources of the outgoing interface in real time, dynamically adjusting the bandwidth speed limit value of the incoming interface services, solving the problems of wasted bandwidth resources and poor user experience in the existing technology, giving priority to ensuring the bandwidth requirements of high-priority services, and improving voice and video transmission quality and system stability.
Patent Information
- Application Number
- CN202410981083.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-12-06
AI Technical Summary
The existing network traffic adjustment technology cannot monitor the available bandwidth resources of the outgoing interface in real time, resulting in waste of bandwidth resources and poor user experience, especially in data transmission with low latency and high bandwidth requirements, such as voice and video transmission. Data loss, call quality degradation, and video playback stuttering.
By determining the service type and priority of the incoming interface service, and adjusting the bandwidth speed limit value in real time according to the available bandwidth resources of the outgoing interface, we will prioritize the bandwidth speed limit value of the high-priority service. When the available bandwidth increases, we will reduce the low-priority service. Bandwidth speed limit value ensures that high-priority services obtain more bandwidth resources, improve user experience, and avoid frequent adjustment of bandwidth speed limit value to ensure system stability.
It realizes dynamic adjustment of bandwidth speed limit according to network conditions, prioritizes the bandwidth requirements of high-priority services, reduces bandwidth waste, improves user experience and system stability, and ensures the quality of voice and video transmission.
Smart Images

Figure CN119094458A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, system and medium for dynamically adjusting network traffic. Background Art
[0002] With the continuous development of network technology, the demand for bandwidth in network links is growing. In the network, when data is transmitted from a high-speed link to a low-speed link, or when data from multiple links is merged into one link, bandwidth bottlenecks often occur, resulting in serious data loss, especially for data with low latency and high bandwidth requirements, such as voice and video, which has a particularly significant impact and brings a bad experience to users.
[0003] The existing network traffic adjustment technology sets a fixed bandwidth speed limit value on the inbound interface of the network device. Although it alleviates the bandwidth bottleneck problem to a certain extent, it does not consider the change of available bandwidth resources on the outbound interface, which will lead to bandwidth resource waste and poor user experience. Summary of the invention
[0004] In view of this, the first aspect of the present application provides a method for dynamically adjusting network traffic, the method comprising:
[0005] Determine the service type of the incoming interface service, the priority corresponding to the service type and the default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces and the service type;
[0006] Monitor the available bandwidth resources of the outbound interface in real time;
[0007] When the available bandwidth resources of the outbound interface increase and meet the first preset condition, according to the bandwidth limit value increase sequence diagram, the bandwidth limit value of the inbound interface service with a high priority is preferentially increased;
[0008] When the available bandwidth resources of the outbound interface are reduced and the second preset condition is met, the bandwidth rate limit value of the inbound interface service with a low priority is preferentially reduced according to the bandwidth rate limit value reduction sequence diagram.
[0009] Optionally, the step of preferentially increasing the bandwidth rate limit value of the inbound interface service with a high priority according to the bandwidth rate limit value increase sequence diagram includes:
[0010] According to the bandwidth speed limit value increase sequence diagram, for the inbound interface services whose bandwidth speed limit value is less than the default bandwidth speed limit value, the bandwidth speed limit value is increased to the default bandwidth speed limit value of the inbound interface services in order of the priorities from high to low, and the bandwidth speed limit value increase speed decreases in order of the priorities from high to low; if the bandwidth speed limit values of all the inbound interface services are greater than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are increased by a fixed proportion in order of the priorities from high to low, and the bandwidth speed limit value increase speed is the same.
[0011] Optionally, the step of preferentially reducing the bandwidth rate limit value of the inbound interface service with a low priority according to the bandwidth rate limit value reduction sequence diagram includes:
[0012] According to the bandwidth speed limit value reduction sequence diagram, for the inbound interface services whose bandwidth speed limit value is greater than the default bandwidth speed limit value, the bandwidth speed limit value is reduced to the default bandwidth speed limit value of the inbound interface services in order of the priorities from low to high, and the bandwidth speed limit value reduction speed decreases in order of the priorities from low to high; if the bandwidth speed limit values of all the inbound interface services are less than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are reduced by a fixed proportion in order of the priorities from low to high, and the bandwidth speed limit value reduction speed is the same.
[0013] Optionally, the real-time monitoring of available bandwidth resources of the outbound interface includes:
[0014] Real-time monitoring of the relationship between the change in available bandwidth resources of the outbound interface within a fixed time range and a preset threshold;
[0015] If the change amount is an increase in resources and is greater than a first preset threshold, it is determined that the available bandwidth resources of the outbound interface are increased and meet a first preset condition;
[0016] If the change amount is a resource reduction amount and is greater than a second preset threshold, it is determined that the available bandwidth resources of the outbound interface are reduced and meet the second preset condition.
[0017] Optionally, the sequentially increasing the bandwidth speed limit value by a fixed ratio includes:
[0018] The fixed-ratio bandwidth speed limit values are sequentially increased until a maximum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a maximum ratio coefficient.
[0019] Optionally, the sequentially reducing the bandwidth speed limit value by a fixed ratio includes:
[0020] The fixed-ratio bandwidth speed limit values are sequentially reduced until a minimum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a minimum ratio coefficient.
[0021] Optionally, the service types are divided into voice services, video services and common services in order of the priorities from high to low.
[0022] A second aspect of the present application provides a device for dynamically adjusting network traffic, the device comprising:
[0023] A determination unit, configured to determine a service type of an incoming interface service, a priority corresponding to the service type, and a default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces, and the service type;
[0024] A monitoring unit, used for monitoring the available bandwidth resources of the outbound interface in real time;
[0025] A speed-up unit, configured to preferentially increase the bandwidth speed limit value of the inbound interface service with a high priority according to a bandwidth speed limit value increase sequence diagram when the available bandwidth resources of the outbound interface increase and the first preset condition is met;
[0026] The speed reduction unit is used to preferentially reduce the bandwidth speed limit value of the input interface service with a low priority according to the bandwidth speed limit value reduction sequence diagram when the available bandwidth resources of the output interface are reduced and the second preset condition is met.
[0027] A third aspect of the present application provides a system for dynamically adjusting network traffic, the system comprising: a memory and a processor;
[0028] The memory is used to store instructions;
[0029] The processor is used to execute the instructions in the memory to perform the method described in the first aspect above.
[0030] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer storage medium stores program codes or instructions. When the program codes or instructions are executed on a computer, the computer executes the method described in the first aspect above.
[0031] It can be seen from the above technical solutions that this application has the following beneficial effects:
[0032] Determine the service type of the incoming interface service, the priority corresponding to the service type, and the default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces, and the service type; monitor the available bandwidth resources of the outgoing interface in real time; when the available bandwidth resources of the outgoing interface increase and meet the first preset condition, according to the bandwidth speed limit value increase sequence diagram, give priority to increasing the bandwidth speed limit value of the incoming interface service with high priority; when the available bandwidth resources of the outgoing interface decrease and meet the second preset condition, according to the bandwidth speed limit value reduction sequence diagram, give priority to reducing the bandwidth speed limit value of the incoming interface service with low priority. It can be seen that by determining the service type of the incoming interface service and the priority corresponding to the service type, and adopting different speed limit adjustment strategies for incoming interface services of different priorities, it can give priority to ensuring that the incoming interface service with high priority can obtain more bandwidth resources, thereby improving the user experience. At the same time, the speed limit bandwidth value of the incoming interface service needs to meet the preset conditions to avoid frequent adjustment of the bandwidth speed limit value, and improve the stability of the system while ensuring full use of the maximum available bandwidth resources of the outgoing interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A method flow chart of a method for dynamically adjusting network traffic provided by an embodiment of the present application;
[0034] Figure 2 A schematic diagram of a sequence diagram for increasing bandwidth speed limit values provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a bandwidth speed limit value reduction sequence diagram provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of the structure of a device for dynamically adjusting network traffic provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0038] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0039] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0041] Network technology is developing rapidly, and bandwidth demand is also growing. However, actual network data transmission often encounters bottlenecks and data loss. In order to solve this problem, existing network traffic adjustment technologies usually set fixed bandwidth speed limits for the inbound interface services of network devices to prevent bandwidth bottlenecks. However, this static speed limit method has obvious defects. The existing technology cannot monitor the available bandwidth resources of the outbound interface in real time, so it is impossible to dynamically adjust the speed limit settings of the inbound interface services according to the network conditions. For example, when the available bandwidth resources of the outbound interface are sufficient, the speed limit of the inbound interface is still fixed, resulting in a large amount of bandwidth resources being idle and wasted. In addition, since the speed limit settings of the existing network traffic adjustment technology are fixed, it is impossible to flexibly adjust according to the service priority and the actual bandwidth conditions. This means that both high-priority services and low-priority services are subject to static fixed speed limits and cannot meet the needs of different services. For example, some high-priority services (such as voice and video) cannot obtain sufficient bandwidth, resulting in problems such as reduced call quality and video playback freezes, which seriously affects the user experience.
[0042] To this end, the present application provides a method, device, system and medium for dynamically adjusting network traffic, determining the service type of the incoming interface service and the priority corresponding to the service type, and adopting different adjustment speed limit strategies for incoming interface services of different priorities, so as to give priority to ensuring that high-priority incoming interface services can obtain more bandwidth resources, thereby improving user experience. At the same time, the speed limit bandwidth value of the incoming interface service needs to meet the preset conditions, avoiding frequent adjustment of the bandwidth speed limit value, and improving the stability of the system while ensuring full utilization of the maximum bandwidth resources available on the outgoing interface.
[0043] Exemplary Methods
[0044] See also Figure 1 , Figure 1 A method flow chart of a method for dynamically adjusting network traffic provided in an embodiment of the present application, the method specifically comprises the following steps:
[0045] Step 101: Determine the service type of the incoming interface service, the priority corresponding to the service type, and the default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of inbound interfaces, and the service type.
[0046] In a network environment, network devices need to identify the type of service that the data traffic transmitted on each inbound interface belongs to. Based on the service type, network devices assign a priority to each inbound interface service. The purpose is to ensure that when the available bandwidth resources of the outbound interface are limited, the bandwidth requirements of high-priority inbound interface services are prioritized, such as ensuring the clarity of voice calls and the smoothness of video playback. The outbound interface refers to the interface on the network device that is connected to the next-hop network device. The available bandwidth resources of the outbound interface indicate the bandwidth that the interface can currently use to transmit data traffic, that is, the remaining part of the total bandwidth of the outbound interface minus the occupied bandwidth. Factors that affect the available bandwidth resources of the outbound interface include but are not limited to the following: If the outbound interface is a single-link interface, at night, the bandwidth requirements of the inbound interface services with high bandwidth requirements decrease, which may lead to an increase in the available bandwidth resources of the outbound interface; if the outbound interface is an aggregate interface, the increase or decrease of aggregate interface members will lead to changes in the available bandwidth resources of the outbound interface; if the outbound interface is a multi-path interface, the increase or decrease of paths will lead to changes in the available bandwidth resources of the outbound interface. The network device sets a default bandwidth limit value for each inbound interface service based on the initial available bandwidth resources of the outbound interface, the number of inbound interfaces, and the service type.
[0047] For example, assuming that the initial available bandwidth resource of the outbound interface is 100 Mbps, and three inbound interfaces are connected, of which two inbound interfaces transmit voice services and one inbound interface transmits video services. The default bandwidth speed limit value is set to 20 Mbps for voice services and 60 Mbps for video services. The total default bandwidth speed limit value of the inbound interface services must be less than the initial available bandwidth resource. A larger default bandwidth speed limit value is allocated to the inbound interface services with large bandwidth requirements. For example, the default bandwidth speed limit value of the video service is larger.
[0048] In a possible implementation, the service types provided in the embodiment of the present application are divided into voice services, video services and common services in order of priority from high to low.
[0049] Voice services have high requirements for latency and packet loss rate. If severe packet loss occurs due to insufficient available bandwidth resources on the network device output interface, voice jams and reduced call quality will occur. Video services have high bandwidth requirements. Insufficient available bandwidth for video services will cause jams and reduced picture quality. Ordinary services refer to the general term for services other than video and voice services, such as file transfer, email transfer, and web browsing services. These services have relatively low requirements for bandwidth, latency, and packet loss rate.
[0050] Based on the actual service demand for bandwidth, the service types of the inbound interface are determined to be voice service, video service and common service, and the priorities corresponding to the service types are that the priority of voice service is higher than that of video service, and the priority of video service is higher than that of common service. By determining the priorities of voice service, video service and common service, targeted adjustment strategies can be made. When the available bandwidth resources of the outbound interface increase, the bandwidth speed limit values of the voice service and the video service are increased first. When the available bandwidth resources of the outbound interface decrease, the bandwidth speed limit values of the common service are reduced first, and the bandwidth speed limit values of the voice service and the video service are reduced last, thereby better ensuring the transmission quality of the actual voice and video.
[0051] Step 102: Monitor the available bandwidth resources of the outbound interface in real time.
[0052] Network devices monitor the available bandwidth resources of the outbound interface at a certain frequency (for example, every minute) through methods such as traffic statistics, bandwidth testing or protocol analysis, and promptly detect changes in bandwidth resources. This step provides a data basis for subsequent speed limit adjustments, helps network devices to grasp network conditions in real time, and enhances the flexibility of network traffic adjustment.
[0053] It should be emphasized that step 102 is continuously executed after step 101 and is not a phased process. Other steps except step 101 do not affect the continuous execution of step 102. This method flow chart is a schematic diagram, which represents the logical relationship between the method steps and does not directly represent the execution process of the steps.
[0054] In a possible implementation, the real-time monitoring of the available bandwidth resources of the outbound interface provided in the embodiment of the present application may specifically include:
[0055] Real-time monitoring of the relationship between the change in available bandwidth resources of the outbound interface within a fixed time range and a preset threshold;
[0056] If the change amount is an increase in resources and is greater than a first preset threshold, it is determined that the available bandwidth resources of the outbound interface are increased and meet a first preset condition;
[0057] If the change amount is a resource reduction amount and is greater than a second preset threshold, it is determined that the available bandwidth resources of the outbound interface are reduced and meet the second preset condition.
[0058] The change in the available bandwidth resources of the outbound interface is obtained by comparing the available bandwidth resources of the current outbound interface with the available bandwidth resources of the outbound interface before a fixed time range. The frequency of judging whether the preset condition is met is the fixed time range value, for example, the fixed time range is 1 minute. Then, it is judged every minute whether the change in the available bandwidth resources of the outbound interface is greater than the preset threshold. The preset threshold refers to setting a certain value as a trigger condition to judge whether the change in the available bandwidth resources of the outbound interface reaches the amplitude that requires adjustment of the bandwidth speed limit value. If the change in the available bandwidth resources of the outbound interface is greater than the preset threshold, the preset condition corresponding to the preset threshold is met. By monitoring the change in the available bandwidth resources of the outbound interface, the available bandwidth resource status of the outbound interface can be judged more accurately. By presetting the threshold, frequent adjustment of the speed limit setting due to slight changes in bandwidth resources can be avoided. Only when the available bandwidth resources of the outbound interface change to a degree that meets the preset threshold within the fixed time range, the bandwidth speed limit value of the inbound interface service is adjusted. By reducing unnecessary bandwidth speed limit value adjustments, the stability of the system can be improved and the power consumption of the system can be reduced.
[0059] Among them, the first preset threshold is used to judge that the change amount is an increase in resources. If the change amplitude is greater than the first preset threshold, it is determined that the available bandwidth resources of the outbound interface increase and meet the first preset condition; the second preset threshold is used to judge that the change amount is a decrease in resources. If the change amplitude is greater than the second preset threshold, it is determined that the available bandwidth resources of the outbound interface increase and meet the second preset condition.
[0060] Taking the case where the available bandwidth resources of the outbound interface increase as an example, the first preset threshold is 100Mbps, and the fixed time range is 3 minutes. If the available bandwidth resources of the outbound interface increase by 150Mbps within 3 minutes, it is determined that the first preset condition is met; if the available bandwidth resources of the outbound interface decrease, the second preset threshold is 50Mbps, and the fixed time range is 3 minutes. If the available bandwidth resources of the outbound interface decrease by 100Mbps within 3 minutes, it is determined that the second preset condition is met.
[0061] Step 103: When the available bandwidth resources of the outbound interface increase and meet the first preset condition, the bandwidth limit value of the inbound interface service with a high priority is increased preferentially according to the bandwidth limit value increase sequence diagram.
[0062] When the available bandwidth resources of the outbound interface increase and meet the first preset condition, the system will increase the bandwidth speed limit value of the inbound interface service in order from high to low priority according to the bandwidth speed limit value increase sequence diagram. The bandwidth speed limit value increase sequence diagram is a sequential guidance diagram for increasing the bandwidth speed limit value based on the priority of the inbound interface service. Arrows are used to guide the inbound interface service that needs to increase the bandwidth speed limit value next and the range of its bandwidth speed limit value increase. Services with higher priority will obtain more bandwidth resources first. For inbound interface services with higher priority, their bandwidth speed limit value increases faster. For example, the bandwidth speed limit value of video services may increase faster than that of voice services, and voice services are faster than ordinary services.
[0063] By giving priority to increasing the bandwidth speed limit of high-priority inbound services, you can ensure that when the outbound bandwidth resources are relatively abundant, the high-priority inbound services can obtain bandwidth resources earlier and faster, improving user experience. As the available bandwidth resources of the outbound interface increase, the bandwidth speed limit is adjusted dynamically to improve bandwidth utilization and avoid resource waste.
[0064] In a possible implementation manner, the bandwidth rate limit value of the inbound interface service with a high priority is preferentially increased according to the bandwidth rate limit value increase sequence diagram provided in the embodiment of the present application, which may specifically include:
[0065] According to the bandwidth speed limit value increase sequence diagram, for the inbound interface services whose bandwidth speed limit value is less than the default bandwidth speed limit value, the bandwidth speed limit value is increased to the default bandwidth speed limit value of the inbound interface services in order of the priorities from high to low, and the bandwidth speed limit value increase speed decreases in order of the priorities from high to low; if the bandwidth speed limit values of all the inbound interface services are greater than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are increased by a fixed proportion in order of the priorities from high to low, and the bandwidth speed limit value increase speed is the same.
[0066] The increase of bandwidth speed limit value is divided into two stages with the default bandwidth speed limit value as the boundary. In the first stage, when there is an inbound interface service whose bandwidth speed limit value is less than the default bandwidth speed limit value, for such inbound interface services, the default bandwidth speed limit value of the high-priority inbound interface services is increased first in descending order of priority, and the speed of increasing the bandwidth speed limit value decreases in descending order of priority. The purpose of the first stage is to give priority to meeting the bandwidth requirements of high-priority inbound interface services when the outbound interface bandwidth resources are becoming more and more abundant, and finally adjust the bandwidth speed limit values of all inbound interface services to their corresponding default bandwidth speed limit values.
[0067] When the bandwidth speed limit values of all inbound services are greater than or equal to their corresponding default bandwidth speed limit values, the second stage is entered. The bandwidth speed limit values of inbound services are increased in order of priority from high to low, and the bandwidth speed limit values are increased by a fixed ratio in each round. For example, if there are voice services, video services and ordinary services, in the second stage, the bandwidth speed limit values of voice services, video services and ordinary services are increased by 1 / 3 in the first round, and then by 1 / 2 in the second round. The fixed ratio refers to the same ratio of bandwidth speed limit values increased in the same round. The purpose of the second stage is to give priority to increasing the high-priority inbound services when the bandwidth speed limit value ratio is the same. After exceeding the default bandwidth speed limit value, the basic bandwidth demand of the inbound services is met. Considering the stability of the network, even if the available bandwidth resources of the outbound interface may continue to increase, the bandwidth speed limit value of the high-priority inbound services will no longer be increased quickly, but the speed will still be increased in order of priority from high to low.
[0068] In a possible implementation manner, the method of sequentially increasing the bandwidth speed limit value of a fixed ratio provided in the embodiment of the present application may specifically include:
[0069] The fixed-ratio bandwidth speed limit values are sequentially increased until a maximum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a maximum ratio coefficient.
[0070] In the second stage of speed increase, when the bandwidth speed limit values of all incoming interface services have reached the corresponding default bandwidth speed limit values, in order to avoid unlimited increase, setting the maximum bandwidth speed limit value can prevent bandwidth resources from being over-occupied and ensure fair allocation of network resources. Because the available bandwidth resources of the outbound interface may not usually increase continuously, setting the maximum bandwidth speed limit value can cope with the sudden rapid decrease of the available bandwidth resources of the outbound interface and keep the network running smoothly.
[0071] Specifically, an implementation form of the bandwidth limit value increase sequence diagram is shown in Figure 2 , Figure 2 A schematic diagram of a sequence diagram for increasing bandwidth speed limit values provided in an embodiment of the present application.
[0072] Assume that the incoming interface services are divided into voice services, video services, and common services according to their priorities from high to low, and the bandwidth speed limits of all incoming interface services are less than the default bandwidth speed limit, and the maximum speed limit bandwidth value is three times the default bandwidth speed limit. In order, first increase the bandwidth speed limit of the voice service to the default bandwidth speed limit; then increase the bandwidth speed limit of the video service to 1 / 3 of the default bandwidth speed limit, then increase it to 2 / 3 of the default bandwidth speed limit, and finally increase the bandwidth speed limit of the video service to the default bandwidth speed limit; at the end of the first stage, start to increase the bandwidth speed limit of common services, passing through the three bandwidth speed limit value nodes of 1 / 5, 1 / 3, and 2 / 3 of the default bandwidth speed limit, and finally increase the bandwidth speed limit of common services to the default bandwidth speed limit, and the first stage ends. In the second stage, the bandwidth speed limit of voice service, video service and common service is increased to 4 / 3 of their respective default bandwidth speed limit values in descending order of priority, and then increased to 5 / 3 of their respective default bandwidth speed limit values in descending order of priority, and so on, until the bandwidth speed limit values of voice service, video service and common service all reach 2 times of their respective default bandwidth speed limit values, and then increased to their respective maximum bandwidth speed limit values in turn. The bandwidth speed limit value of the inbound interface service will no longer be increased.
[0073] Step 104: When the available bandwidth resources of the outbound interface decrease and the second preset condition is met, the bandwidth rate limit value of the inbound interface service with a low priority is preferentially reduced according to the bandwidth rate limit value reduction sequence diagram.
[0074] By preferentially reducing the bandwidth speed limit of low-priority inbound services, it is possible to ensure that when the outbound bandwidth resources are relatively scarce, the high-priority inbound services can obtain the necessary bandwidth resources, thereby improving the user experience. As the available bandwidth resources of the outbound interface decrease, the bandwidth speed limit is adjusted dynamically to avoid data transmission losses and packet loss.
[0075] In a possible implementation manner, according to the bandwidth rate limit value reduction sequence diagram provided in the embodiment of the present application, the bandwidth rate limit value of the inbound interface service with a low priority is preferentially reduced, which may specifically include:
[0076] According to the bandwidth speed limit value reduction sequence diagram, for the inbound interface services whose bandwidth speed limit value is greater than the default bandwidth speed limit value, the bandwidth speed limit value is reduced to the default bandwidth speed limit value of the inbound interface services in order of the priorities from low to high, and the bandwidth speed limit value reduction speed decreases in order of the priorities from low to high; if the bandwidth speed limit values of all the inbound interface services are less than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are reduced by a fixed proportion in order of the priorities from low to high, and the bandwidth speed limit value reduction speed is the same.
[0077] The reduction of bandwidth speed limit value is divided into two stages with the default bandwidth speed limit value as the boundary. In the first stage, when there is an inbound interface service with a bandwidth speed limit value greater than the default bandwidth speed limit value, for such inbound interface services, the default bandwidth speed limit value of the low-priority inbound interface services is reduced first in order of priority from low to high, and the bandwidth speed limit value reduction speed decreases in order of priority from low to high. The purpose of the first stage is to ensure that the bandwidth requirements of high-priority inbound interface services are met first when the outbound interface bandwidth resources are continuously reduced, and finally adjust the bandwidth speed limit values of all inbound interface services to their corresponding default bandwidth speed limit values.
[0078] When the bandwidth speed limit values of all inbound services are less than or equal to their corresponding default bandwidth speed limit values, the second stage is entered. The bandwidth speed limit values of the inbound services are reduced in order of priority from low to high, and the bandwidth speed limit values are reduced by a fixed ratio in each round. For example, if there are voice services, video services and ordinary services, in the second stage, the bandwidth speed limit values of ordinary services, video services and voice services are reduced by 1 / 3 in the first round, and then by 1 / 2 in the second round. The fixed ratio means that the ratio of the bandwidth speed limit values reduced in the same round is the same. The purpose of the second stage is to give priority to reducing the low-priority inbound services when the ratio of the bandwidth speed limit value reduction is the same. When the bandwidth speed limit value is less than the default bandwidth speed limit value, the basic bandwidth demand of the inbound services is met. At this time, considering the basic operation requirements of low-priority services, the bandwidth speed limit value of low-priority inbound services is no longer reduced quickly, but it is still reduced in order of priority from low to high.
[0079] In a possible implementation, the method of sequentially reducing the bandwidth speed limit value of a fixed ratio provided in an embodiment of the present application includes:
[0080] The fixed-ratio bandwidth speed limit values are sequentially reduced until a minimum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a minimum ratio coefficient.
[0081] In the second stage of speed reduction, when the bandwidth speed limit values of all inbound interface services reach the corresponding default bandwidth speed limit values, in order to ensure the basic operation of all inbound interface services, setting the minimum bandwidth speed limit value can prevent the services from being completely stopped and ensure the basic normal operation of the inbound interface services. The minimum bandwidth speed limit value of the inbound interface service is positively correlated with its priority. The higher the priority, the larger the minimum bandwidth speed limit value.
[0082] Specifically, an implementation form of the bandwidth limit value reduction sequence diagram is shown in Figure 3 , Figure 3 A schematic diagram of a bandwidth speed limit value reduction sequence diagram provided in an embodiment of the present application.
[0083] Assume that the inbound services are divided into voice services, video services, and common services according to their priorities from high to low, and the bandwidth speed limit values of all inbound services are the maximum bandwidth speed limit value, the maximum speed limit bandwidth value is 3 times the default bandwidth speed limit value, the minimum speed limit bandwidth value of the voice service is the default bandwidth speed limit value, the minimum speed limit bandwidth value of the video service is 1 / 3 of the default bandwidth speed limit value, and the minimum speed limit bandwidth value of the common service is 1 / 5 of the default bandwidth speed limit value. In order, the bandwidth speed limit value of the common service is first reduced to 6 / 3 of the default bandwidth speed limit value, and then reduced to the default bandwidth speed limit value; then the bandwidth speed limit value of the video service is reduced to 6 / 3 of the default bandwidth speed limit value, and then increased to 4 / 3 of the default bandwidth speed limit value, and finally the bandwidth speed limit value of the video service is reduced to the default bandwidth speed limit value; at the end of the first stage, the bandwidth speed limit value of the voice service begins to be reduced, passing through the three bandwidth speed limit value nodes of 6 / 3, 5 / 3, and 4 / 3 of the default bandwidth speed limit value, and finally the bandwidth speed limit value of the voice service is reduced to the default bandwidth speed limit value, and the first stage ends. In the second stage, the bandwidth speed limit of common services and video services is reduced to 2 / 3 of their respective default bandwidth speed limit values in descending order of priority, and then further reduced to 1 / 3 of their respective default bandwidth speed limit values in descending order of priority, and so on, until the bandwidth speed limit values of voice services, video services, and common services all reach their respective minimum bandwidth speed limit values. The bandwidth speed limit value of the inbound interface service will no longer be reduced.
[0084] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0085] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0086] Exemplary Devices
[0087] See also Figure 4 , Figure 4 A schematic diagram of a structure of a device for dynamically adjusting network traffic provided in an embodiment of the present application, the device comprising:
[0088] A determination unit 201 is used to determine a service type of an incoming interface service, a priority corresponding to the service type, and a default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces, and the service type;
[0089] A monitoring unit 202, configured to monitor the available bandwidth resources of the outbound interface in real time;
[0090] The speed-up unit 203 is used to preferentially increase the bandwidth speed limit value of the inbound interface service with a high priority according to the bandwidth speed limit value increase sequence diagram when the available bandwidth resources of the outbound interface increase and the first preset condition is met;
[0091] The speed reduction unit 204 is configured to preferentially reduce the bandwidth speed limit value of the inbound interface service with a low priority according to the bandwidth speed limit value reduction sequence diagram when the available bandwidth resources of the outbound interface are reduced and the second preset condition is met.
[0092] Optionally, the speed-up unit 203 is specifically used for:
[0093] According to the bandwidth speed limit value increase sequence diagram, for the inbound interface services whose bandwidth speed limit value is less than the default bandwidth speed limit value, the bandwidth speed limit value is increased to the default bandwidth speed limit value of the inbound interface services in order of the priorities from high to low, and the bandwidth speed limit value increase speed decreases in order of the priorities from high to low; if the bandwidth speed limit values of all the inbound interface services are greater than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are increased by a fixed proportion in order of the priorities from high to low, and the bandwidth speed limit value increase speed is the same.
[0094] Optionally, the speed reduction unit 204 is specifically used for:
[0095] According to the bandwidth speed limit value reduction sequence diagram, for the inbound interface services whose bandwidth speed limit value is greater than the default bandwidth speed limit value, the bandwidth speed limit value is reduced to the default bandwidth speed limit value of the inbound interface services in order of the priorities from low to high, and the bandwidth speed limit value reduction speed decreases in order of the priorities from low to high; if the bandwidth speed limit values of all the inbound interface services are less than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are reduced by a fixed proportion in order of the priorities from low to high, and the bandwidth speed limit value reduction speed is the same.
[0096] Optionally, the monitoring unit 202 is specifically configured to:
[0097] Real-time monitoring of the relationship between the change in available bandwidth resources of the outbound interface within a fixed time range and a preset threshold;
[0098] If the change amount is an increase in resources and is greater than a first preset threshold, it is determined that the available bandwidth resources of the outbound interface are increased and meet a first preset condition;
[0099] If the change amount is a resource reduction amount and is greater than a second preset threshold, it is determined that the available bandwidth resources of the outbound interface are reduced and meet the second preset condition.
[0100] Optionally, the speed-up unit 203 is specifically used for:
[0101] The fixed-ratio bandwidth speed limit values are sequentially increased until a maximum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a maximum ratio coefficient.
[0102] Optionally, the speed reduction unit 204 is specifically used for:
[0103] The fixed-ratio bandwidth speed limit values are sequentially reduced until a minimum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a minimum ratio coefficient.
[0104] Optionally, the service types are divided into voice services, video services and common services in order of the priorities from high to low.
[0105] Based on the above embodiments, an embodiment of the present application provides a system for dynamically adjusting network traffic, characterized in that the system includes: a memory and a processor;
[0106] The memory is used to store program codes or instructions;
[0107] The processor is used to execute the program code or instruction in the memory to execute the method described in the above method embodiment.
[0108] Based on the above embodiments, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer storage medium stores program code or instructions, and when the program code or instructions are run on a computer, the computer executes the method described in the above method embodiments.
[0109] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0111] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0112] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for dynamically adjusting network traffic. It is characterized in that The method comprises: Determine the service type of the incoming interface service, the priority corresponding to the service type and the default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces and the service type; Monitor the available bandwidth resources of the outbound interface in real time; When the available bandwidth resources of the outbound interface increase and meet the first preset condition, according to the bandwidth limit value increase sequence diagram, the bandwidth limit value of the inbound interface service with a high priority is preferentially increased; When the available bandwidth resources of the outbound interface are reduced and the second preset condition is met, the bandwidth rate limit value of the inbound interface service with a low priority is preferentially reduced according to the bandwidth rate limit value reduction sequence diagram.
2. The method according to claim 1, It is characterized in that The step of preferentially increasing the bandwidth speed limit value of the inbound interface service with a high priority according to the bandwidth speed limit value increasing sequence diagram includes: According to the bandwidth speed limit value increase sequence diagram, for the inbound interface services whose bandwidth speed limit value is less than the default bandwidth speed limit value, the bandwidth speed limit value is increased to the default bandwidth speed limit value of the inbound interface services in order of the priorities from high to low, and the bandwidth speed limit value increase speed decreases in order of the priorities from high to low; if the bandwidth speed limit values of all the inbound interface services are greater than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are increased by a fixed proportion in order of the priorities from high to low, and the bandwidth speed limit value increase speed is the same.
3. The method according to claim 1, It is characterized in that The step of preferentially reducing the bandwidth limit value of the inbound interface service with a low priority according to the bandwidth limit value reduction sequence diagram includes: According to the bandwidth speed limit value reduction sequence diagram, for the inbound interface services whose bandwidth speed limit value is greater than the default bandwidth speed limit value, the bandwidth speed limit value is reduced to the default bandwidth speed limit value of the inbound interface services in order of the priorities from low to high, and the bandwidth speed limit value reduction speed decreases in order of the priorities from low to high; if the bandwidth speed limit values of all the inbound interface services are less than or equal to the default bandwidth speed limit value of the inbound interface services, the bandwidth speed limit values are reduced by a fixed proportion in order of the priorities from low to high, and the bandwidth speed limit value reduction speed is the same.
4. The method according to claim 1, It is characterized in that The real-time monitoring of the available bandwidth resources of the outbound interface includes: Real-time monitoring of the relationship between the change in available bandwidth resources of the outbound interface within a fixed time range and a preset threshold; If the change amount is an increase in resources and is greater than a first preset threshold, it is determined that the available bandwidth resources of the outbound interface are increased and meet a first preset condition; If the change amount is a resource reduction amount and is greater than a second preset threshold, it is determined that the available bandwidth resources of the outbound interface are reduced and meet the second preset condition.
5. The method according to claim 2, It is characterized in that The step of sequentially increasing the bandwidth speed limit value by a fixed ratio includes: The fixed-ratio bandwidth speed limit values are sequentially increased until a maximum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a maximum ratio coefficient.
6. The method according to claim 3, It is characterized in that The step of sequentially reducing the bandwidth speed limit value by a fixed ratio includes: The fixed-ratio bandwidth speed limit values are sequentially reduced until a minimum bandwidth speed limit value is reached; the maximum bandwidth speed limit value is determined by multiplying the default bandwidth speed limit value corresponding to the inbound interface service by a minimum ratio coefficient.
7. The method according to any one of claims 1 to 6, It is characterized in that The service types are divided into voice service, video service and common service in the order of the priorities from high to low.
8. A device for dynamically adjusting network traffic, It is characterized in that The device comprises: A determination unit, configured to determine a service type of an incoming interface service, a priority corresponding to the service type, and a default bandwidth speed limit value; the default bandwidth speed limit value is determined according to the initial available bandwidth resources of the outgoing interface, the number of incoming interfaces, and the service type; A monitoring unit, used for monitoring the available bandwidth resources of the outbound interface in real time; A speed-up unit, configured to, when the available bandwidth resources of the outbound interface increase and meet the first preset condition, preferentially increase the bandwidth speed limit value of the inbound interface service with a high priority according to the bandwidth speed limit value increase sequence diagram; The speed reduction unit is used to preferentially reduce the bandwidth speed limit value of the inbound interface service with a low priority according to the bandwidth speed limit value reduction sequence diagram when the available bandwidth resources of the outbound interface are reduced and the second preset condition is met.
9. A system for dynamically adjusting network traffic, It is characterized in that The system includes: a memory and a processor; The memory is used to store instructions; The processor is used to execute the instructions in the memory and perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer storage medium stores program codes or instructions, and when the program codes or instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.
