CN117376280A - Bandwidth adjustment method and device - Google Patents

Bandwidth adjustment method and device Download PDF

Info

Publication number
CN117376280A
CN117376280A CN202311162410.1A CN202311162410A CN117376280A CN 117376280 A CN117376280 A CN 117376280A CN 202311162410 A CN202311162410 A CN 202311162410A CN 117376280 A CN117376280 A CN 117376280A
Authority
CN
China
Prior art keywords
current
speed limit
limit value
packet loss
loss rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311162410.1A
Other languages
Chinese (zh)
Inventor
夏云坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202311162410.1A priority Critical patent/CN117376280A/en
Publication of CN117376280A publication Critical patent/CN117376280A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • H04L47/762Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS

Landscapes

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

Abstract

The application provides a bandwidth adjustment method and a device, the method is applied to network equipment, the network equipment comprises a first interface, the first interface configures an original interface speed limit value, and the method comprises the following steps: periodically detecting the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located; if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the original interface speed limit value is adjusted to obtain a current interface speed limit value; and updating the original interface speed limit value to the current interface speed limit value at the first interface.

Description

Bandwidth adjustment method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for bandwidth adjustment.
Background
With the digitalized transformation of enterprises, the functions and types of the services provided by the enterprises are diversified and personalized, so that the bandwidth resources required by each service are more and more increased. In the traditional wide area network, a private line mode is adopted between an enterprise branch and an enterprise headquarter to forward the service flow.
The special line mode has the advantages of stable bandwidth resource and high quality, but is high in price. Therefore, most enterprises choose to use the Internet (Internet) with lower cost for communication between branches and headquarters of the enterprise.
Although the Internet has the advantage of low cost of use, it also exposes the following problems: unstable, unable to sense network condition in real time, dynamic adjustment of bandwidth resources, and large influence by factors such as network congestion degree, weather, etc.
For example, an enterprise purchases 100G bandwidth resources from an operator. In a practical environment, the bandwidth resources provided by the operators may float between 80 and 120G. If the enterprise gateway configures the exit bandwidth speed limit according to the 100G bandwidth, when the operator provides the 80G bandwidth, there will be 20G traffic that is randomly discarded when the wide area network is transmitted, and the discarded traffic may be core traffic of the enterprise, so that the enterprise suffers a loss.
Disclosure of Invention
In view of this, the present application provides a bandwidth adjustment method and apparatus, which are used to solve the problems that in the existing communication process of using internet to carry out enterprise branches and enterprise headquarters, the network is unstable, the network situation cannot be perceived in real time, and the bandwidth resource is dynamically adjusted.
In a first aspect, the present application provides a bandwidth adjustment method, where the method is applied to a network device, where the network device includes a first interface, and the first interface configures an original interface speed limit value, and the method includes:
periodically detecting the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located;
if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the original interface speed limit value is adjusted to obtain a current interface speed limit value;
and updating the original interface speed limit value to the current interface speed limit value at the first interface.
In a second aspect, the present application provides a bandwidth adjustment apparatus, the apparatus being applied to a network device, the network device including a first interface, the first interface configuring an original interface speed limit value, the apparatus comprising:
the detection unit is used for periodically detecting the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located;
the adjusting unit is used for adjusting the original interface speed limit value to obtain a current interface speed limit value if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition;
and the updating unit is used for updating the original interface speed limit value to the current interface speed limit value at the first interface.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to cause the processor to perform the method provided in the first aspect of the present application.
Therefore, by applying the bandwidth adjustment method and device provided by the application, the network equipment periodically detects the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located; if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the network equipment adjusts the original interface speed limit value to obtain the current interface speed limit value; at the first interface, the network device updates the original interface speed limit value to the current interface speed limit value.
Therefore, the self-adaptive bandwidth speed limit adjustment is carried out by detecting the packet loss rate in the network equipment, the network packet loss rate and the interface bandwidth utilization rate, so that the packet loss is limited in an enterprise, and the high-priority service priority forwarding can be selectively ensured by matching with the traditional QoS function; and adjusting the interface speed limit value in a controllable range to maximize the utilization of the operator network. The method solves the problems that in the existing communication process of enterprise branches and enterprise headquarters by using Interne, the network is unstable, the network condition cannot be perceived in real time, and bandwidth resource dynamic adjustment is made.
Drawings
Fig. 1 is a flowchart of a bandwidth adjustment method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a branch-headquarters networking of an enterprise provided in an embodiment of the present application;
FIG. 3 is a graph of a change in current interface speed limit provided by an embodiment of the present application;
fig. 4 is a block diagram of a bandwidth adjustment device according to an embodiment of the present application;
fig. 5 is a hardware structure of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the corresponding listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The bandwidth adjustment method provided in the embodiment of the present application is described in detail below. Referring to fig. 1, fig. 1 is a flowchart of a bandwidth adjustment method provided in an embodiment of the present application. The method is applied to network equipment, and the bandwidth adjustment method provided by the embodiment of the application can comprise the following steps.
Step 110, periodically detecting a current device packet loss rate of the network device, a current interface bandwidth utilization rate of the first interface, and a current network packet loss rate of a network where the network device is located;
specifically, the network device includes a first interface that has been configured with an original interface speed limit value. The network device periodically detects the current device packet loss rate of the network device, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network device is located.
As shown in fig. 2, fig. 2 is a schematic networking diagram of an enterprise branch-enterprise headquarters according to an embodiment of the present application. In fig. 2, an in-enterprise terminal accesses an enterprise branched network device that accesses a network (e.g., a wide area network) through a first interface. One end of the enterprise headquarter gateway is connected to the network, and the other end is connected to the enterprise headquarter.
After receiving the traffic flow sent by the terminal in the enterprise, the network device periodically (e.g., every 10s, 20s, 30s, etc.) detects the current device packet loss rate, the current interface bandwidth utilization rate, and the current network packet loss rate.
The network device calculates the packet loss rate of the current device according to the following formula (1).
Current device packet loss ratio = bandwidth of discarded message/total bandwidth of first interface (1)
The bandwidth of the discarded message is specifically the quotient of the length of the discarded message of the network device and the preset time. The length of the discarded message, the network device may count a preset time through a token bucket mechanism, for example: 10s; the first interface total bandwidth is in particular a bandwidth configured by the operator for each interface, e.g. 300M.
The network device calculates the current interface bandwidth utilization by the following equation (2).
Current interface bandwidth utilization = used bandwidth of first interface/total bandwidth of first interface (2)
The used bandwidth of the first interface specifically refers to counting the length/preset time of all messages sent by the first interface within a preset time (e.g., 10 s).
The network equipment calculates the current network packet loss rate through the following formula (3).
Current network packet loss rate= (number of sending messages at sending end-number of receiving messages at receiving end)/number of sending messages at sending end (3)
The sending end performs characteristic marking on the appointed message and sends the appointed message to the receiving end through an in-band detection technology (namely, the real service message is subjected to characteristic marking or detection information is embedded in the real service message), the receiving end counts the message with the characteristic marking, and the counted number of the messages is fed back to the sending end.
In practical applications, the current network packet loss rate may also be obtained by other means. For example, a public network is deployed between the enterprise branch and the enterprise headquarter, and the packet is generally encrypted and protected through the IPSec protocol, and at this time, the packet loss rate may be calculated by using the anti-replay sequence number. For example, the packet loss rate calculation can also be performed by the extended BFD.
Step 120, if any one or a combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, adjusting the original interface speed limit value to obtain a current interface speed limit value;
specifically, according to the description of step 110, after the network device obtains the current device packet loss rate, the current interface bandwidth utilization rate, and the current network packet loss rate, it is identified whether any one or a combination of the current device packet loss rate, the current interface bandwidth utilization rate, and the current network packet loss rate satisfies a preset condition.
And if any one or combination meets the preset condition, the network equipment adjusts the original interface speed limit value to obtain the current interface speed limit value.
Optionally, in the process of periodically detecting the three parameters, in one implementation manner, when the network device first senses that the current network packet loss rate is different from the current previous network packet loss rate, if the current network packet loss rate is greater than 0, the network device reduces the original interface speed limit value to obtain the current interface speed limit value; if the current network packet loss rate is equal to 0 and the current device packet loss rate is greater than 0, the network device increases the original interface speed limit value to obtain the current interface speed limit value.
For example, the current network packet loss rate is C2 (20%), and the current previous network packet loss rate is C1 (10%). At this time, C2 is greater than 0, and the network device reduces the original interface speed limit value, to obtain the current interface speed limit value.
For another example, the current network packet loss rate is C2 (5%), and the current previous network packet loss rate is C1 (10%). At this time, C2 is still greater than 0, and the network device still reduces the original interface speed limit value, to obtain the current interface speed limit value.
For another example, the current network packet loss rate is C2 (0%), and the current previous network packet loss rate is C1 (10%). At this time, C2 is equal to 0, that is, no packet loss occurs in network transmission, and the network device identifies the current device packet loss rate A2 (the current previous device packet loss rate is A1). If A2 is greater than 0, the network device increases the original interface speed limit value to obtain the current interface speed limit value.
In another implementation manner, when the network device first perceives that the current device packet loss rate is different from the current previous device packet loss rate, if the current network packet loss rate is greater than 0, the network device reduces the original interface speed limit value to obtain the current interface speed limit value; if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is equal to 0, the network equipment does not adjust the original interface speed limit value; if the current network packet loss rate is equal to 0 and the current device packet loss rate is greater than 0, the network device increases the original interface speed limit value to obtain the current interface speed limit value.
For example, the current network packet loss rate is C2 (20%), and the current previous network packet loss rate is C1 (10%). At this time, C2 is greater than 0, and the network device reduces the original interface speed limit value, to obtain the current interface speed limit value.
For another example, the current network packet loss rate is C2 (5%), and the current previous network packet loss rate is C1 (10%). At this time, C2 is still greater than 0, and the network device still reduces the original interface speed limit value, to obtain the current interface speed limit value.
For another example, the current network packet loss rate is C2 (0%), the network device identifies the change of the device packet loss rates A1 and A2, and if the current previous device packet loss rate A1 (20%) is changed to the current device packet loss rate A2 (0%), that is, the network device has no packet loss, the original interface speed limit value is suitable, and no adjustment is needed.
For another example, the current network packet loss rate is C2 (0%), and the network device again recognizes the change in the device packet loss rates A1, A2. Current previous device packet loss rate A1 (20%), current device packet loss rate A2 (10%). At this time, A2 is greater than 0, and the network device increases the original interface speed limit value, to obtain the current interface speed limit value.
In another implementation, when the network device first senses that the current interface bandwidth utilization is different from the current previous interface bandwidth utilization, if the current device packet loss rate and the current network packet loss rate are both 0, the current interface bandwidth utilization is greater than the current previous interface bandwidth utilization and the current interface bandwidth utilization is greater than the first value, and the current previous interface bandwidth utilization is less than the first value, the network device increases the original interface speed limit value to obtain the current interface speed limit value.
For example, the network device perceives a change in the interface bandwidth utilization B1, B2. Current previous interface bandwidth utilization B1 (90%), current interface bandwidth utilization (98%). The network device identifies a current device packet loss rate A2 and a current network packet loss rate C2. If both A2 and C2 are 0, and B2> B1, B2>95% and B1<95%, the network device increases the original interface speed limit value to obtain the current interface speed limit value.
Optionally, the specific process of the network device reducing the original interface speed limit value to obtain the current interface speed limit value is as follows: the network equipment calculates a difference value between the first value and the current network packet loss rate; the network device takes the product of the original interface speed limit value and the difference value as the current interface speed limit value.
For example, the first value is specifically 1. The network device calculates the current interface speed limit value by the following formula (4).
x2=x1X (1-C2) formula (4)
Wherein X2 is the current interface speed limit value; x1 is an original interface speed limit value; c2 is the current network packet loss rate.
Optionally, the specific process of the network device increasing the original interface speed limit value to obtain the current interface speed limit value is as follows: the network equipment acquires the total bandwidth of the first interface configuration; the network equipment calculates the difference between the total bandwidth and the original interface speed limit value; the network device calculates a quotient of the difference value and the second value; the network device takes the sum of the original interface speed limit value and the quotient as the current interface speed limit value.
For example, the network device calculates the current interface speed limit value by the following equation (5).
X2=x1+|x0-x1|/2 formula (5)
Wherein X2 is the current interface speed limit value; x1 is an original interface speed limit value; x0 is the total bandwidth.
And 130, updating the original interface speed limit value to the current interface speed limit value at the first interface.
Specifically, after the network device obtains the current interface speed limit value according to the description of step 120, the original interface speed limit value is updated to the current interface speed limit value at the first interface. And then, the network equipment carries out speed-limiting forwarding processing on the service flow according to the current interface speed-limiting value.
As shown in fig. 3, fig. 3 is a graph of a change in a current interface speed limit value according to an embodiment of the present application. In fig. 3, X0 is the total bandwidth, and the current interface speed limit value is smoothly adjusted when it is close to X0; the current interface speed limit value is steeply adjusted when it is far from X0.
Therefore, by applying the bandwidth adjustment method provided by the application, the network equipment periodically detects the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located; if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the network equipment adjusts the original interface speed limit value to obtain the current interface speed limit value; at the first interface, the network device updates the original interface speed limit value to the current interface speed limit value.
Therefore, the self-adaptive bandwidth speed limit adjustment is carried out by detecting the packet loss rate in the network equipment, the network packet loss rate and the interface bandwidth utilization rate, so that the packet loss is limited in an enterprise, and the high-priority service priority forwarding can be selectively ensured by matching with the traditional QoS function; and adjusting the interface speed limit value in a controllable range to maximize the utilization of the operator network. The method solves the problems that in the existing communication process of enterprise branches and enterprise headquarters by using Interne, the network is unstable, the network condition cannot be perceived in real time, and bandwidth resource dynamic adjustment is made.
Based on the same inventive concept, the embodiment of the application also provides a bandwidth adjusting device corresponding to the bandwidth adjusting method. Referring to fig. 4, fig. 4 is a bandwidth adjustment apparatus provided in an embodiment of the present application, where the apparatus is applied to a network device, and the network device includes a first interface, and the first interface configures an original interface speed limit value, and the apparatus includes:
a detecting unit 410, configured to periodically detect a current device packet loss rate of the network device, a current interface bandwidth utilization rate of the first interface, and a current network packet loss rate of a network where the network device is located;
an adjusting unit 420, configured to adjust the original interface speed limit value if any one or a combination of the current device packet loss rate, the current interface bandwidth utilization rate, and the current network packet loss rate meets a preset condition, so as to obtain a current interface speed limit value;
and an updating unit 430, configured to update, at the first interface, the original interface speed limit value to the current interface speed limit value.
Optionally, the adjusting unit 420 is specifically configured to, when the current network packet loss rate is different from the current previous network packet loss rate, reduce the original interface speed limit value to obtain the current interface speed limit value if the current network packet loss rate is greater than 0;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
Optionally, the adjusting unit 420 is specifically configured to, when the current device packet loss rate is different from the current previous device packet loss rate, reduce the original interface speed limit value to obtain the current interface speed limit value if the current network packet loss rate is greater than 0;
if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is equal to 0, not adjusting the original interface speed limit value;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
Optionally, the adjusting unit 420 is specifically configured to, when the current interface bandwidth utilization is different from the current previous interface bandwidth utilization, increase the original interface speed limit value if the current device packet loss rate and the current network packet loss rate are both 0, where the current interface bandwidth utilization is greater than the current previous interface bandwidth utilization and the current interface bandwidth utilization is greater than a first value, and the current previous interface bandwidth utilization is less than the first value, so as to obtain the current interface speed limit value.
Optionally, the adjusting unit 420 is further specifically configured to calculate a difference between the first value and the current network packet loss rate;
and taking the product of the original interface speed limit value and the difference value as the current interface speed limit value.
Optionally, the adjusting unit 420 is further specifically configured to obtain a total bandwidth of the first interface configuration;
calculating the difference between the total bandwidth and the original interface speed limit value;
calculating a quotient of the difference and a second value;
and taking the sum of the original interface speed limit value and the quotient as the current interface speed limit value.
Therefore, by applying the bandwidth adjusting device provided by the application, the network equipment periodically detects the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located; if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the network equipment adjusts the original interface speed limit value to obtain the current interface speed limit value; at the first interface, the network device updates the original interface speed limit value to the current interface speed limit value.
Therefore, the self-adaptive bandwidth speed limit adjustment is carried out by detecting the packet loss rate in the network equipment, the network packet loss rate and the interface bandwidth utilization rate, so that the packet loss is limited in an enterprise, and the high-priority service priority forwarding can be selectively ensured by matching with the traditional QoS function; and adjusting the interface speed limit value in a controllable range to maximize the utilization of the operator network. The method solves the problems that in the existing communication process of enterprise branches and enterprise headquarters by using Interne, the network is unstable, the network condition cannot be perceived in real time, and bandwidth resource dynamic adjustment is made.
Based on the same inventive concept, the present application embodiment also provides a network device, as shown in fig. 5, including a processor 510, a transceiver 520, and a machine-readable storage medium 530, where the machine-readable storage medium 530 stores machine executable instructions capable of being executed by the processor 510, and the processor 510 is caused by the machine executable instructions to perform the bandwidth adjustment method provided by the present application embodiment. The bandwidth adjusting apparatus shown in fig. 4 may be implemented by using a hardware structure of a network device as shown in fig. 5.
The computer readable storage medium 530 may include a random access Memory (hereinafter referred to as "RAM") or a nonvolatile Memory (hereinafter referred to as "Non-volatile Memory") such as at least one magnetic disk Memory. Optionally, the computer readable storage medium 530 may also be at least one storage device located remotely from the aforementioned processor 510.
The processor 510 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (English: digital Signal Processor; DSP; for short), an application specific integrated circuit (English: application Specific Integrated Circuit; ASIC; for short), a Field programmable gate array (English: field-Programmable Gate Array; FPGA; for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In this embodiment, processor 510 is enabled by reading machine-executable instructions stored in machine-readable storage medium 530, which cause processor 510 itself to be implemented and transceiver 520 to perform the bandwidth adjustment methods described in the embodiments of the present application.
Additionally, the present embodiments provide a machine-readable storage medium 530, the machine-readable storage medium 530 storing machine-executable instructions that, when invoked and executed by the processor 510, cause the processor 510 itself and the invoking transceiver 520 to perform the bandwidth adjustment methods described in the previous embodiments of the present application.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
For the bandwidth adjustment device and the machine-readable storage medium embodiments, since the method content related thereto is substantially similar to the method embodiments described above, the description is relatively simple, and the relevant points are referred to in the description of the method embodiments.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A method for bandwidth adjustment, the method being applied to a network device, the network device comprising a first interface, the first interface configuring an original interface speed limit value, the method comprising:
periodically detecting the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located;
if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition, the original interface speed limit value is adjusted to obtain a current interface speed limit value;
and updating the original interface speed limit value to the current interface speed limit value at the first interface.
2. The method of claim 1, wherein if any one or a combination of the current device packet loss rate, the current interface bandwidth utilization, and the current network packet loss rate meets a preset condition, adjusting the original interface speed limit value to obtain a current interface speed limit value, including:
when the current network packet loss rate is different from the current previous network packet loss rate, if the current network packet loss rate is greater than 0, reducing the original interface speed limit value to obtain the current interface speed limit value;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
3. The method of claim 1, wherein if any one or a combination of the current device packet loss rate, the current interface bandwidth utilization, and the current network packet loss rate meets a preset condition, adjusting the original interface speed limit value to obtain a current interface speed limit value, including:
when the current equipment packet loss rate is different from the current previous equipment packet loss rate, if the current network packet loss rate is greater than 0, reducing the original interface speed limit value to obtain the current interface speed limit value;
if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is equal to 0, not adjusting the original interface speed limit value;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
4. The method of claim 1, wherein if any one or a combination of the current device packet loss rate, the current interface bandwidth utilization, and the current network packet loss rate meets a preset condition, adjusting the original interface speed limit value to obtain a current interface speed limit value, including:
when the current interface bandwidth utilization rate is different from the current previous interface bandwidth utilization rate, if the current equipment packet loss rate and the current network packet loss rate are both 0, the current interface bandwidth utilization rate is greater than the current previous interface bandwidth utilization rate and the current interface bandwidth utilization rate is greater than a first value, and the current previous interface bandwidth utilization rate is less than the first value, the original interface speed limit value is increased, and the current interface speed limit value is obtained.
5. A method according to any one of claims 2-3, wherein said reducing said original interface speed limit value to obtain said current interface speed limit value comprises:
calculating a difference value between a first value and the current network packet loss rate;
and taking the product of the original interface speed limit value and the difference value as the current interface speed limit value.
6. The method according to any one of claims 2-4, wherein said increasing the original interface speed limit value to obtain the current interface speed limit value specifically includes:
acquiring the total bandwidth of the first interface configuration;
calculating the difference between the total bandwidth and the original interface speed limit value;
calculating a quotient of the difference and a second value;
and taking the sum of the original interface speed limit value and the quotient as the current interface speed limit value.
7. A bandwidth adjustment apparatus, the apparatus being applied to a network device, the network device including a first interface, the first interface configuring an original interface speed limit value, the apparatus comprising:
the detection unit is used for periodically detecting the current equipment packet loss rate of the network equipment, the current interface bandwidth utilization rate of the first interface and the current network packet loss rate of the network where the network equipment is located;
the adjusting unit is used for adjusting the original interface speed limit value to obtain a current interface speed limit value if any one or combination of the current equipment packet loss rate, the current interface bandwidth utilization rate and the current network packet loss rate meets a preset condition;
and the updating unit is used for updating the original interface speed limit value to the current interface speed limit value at the first interface.
8. The apparatus of claim 7, wherein the adjusting unit is specifically configured to, when the current network packet loss rate is different from a current previous network packet loss rate, reduce the original interface speed limit value to obtain the current interface speed limit value if the current network packet loss rate is greater than 0;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
9. The apparatus of claim 7, wherein the adjusting unit is specifically configured to, when the current device packet loss rate is different from a current previous device packet loss rate, reduce the original interface speed limit value to obtain the current interface speed limit value if the current network packet loss rate is greater than 0;
if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is equal to 0, not adjusting the original interface speed limit value;
and if the current network packet loss rate is equal to 0 and the current equipment packet loss rate is greater than 0, increasing the original interface speed limit value to obtain the current interface speed limit value.
10. The apparatus of claim 7, wherein the adjusting unit is specifically configured to, when the current interface bandwidth utilization is different from a current previous interface bandwidth utilization, increase the original interface speed limit value if the current device packet loss rate and the current network packet loss rate are both 0, the current interface bandwidth utilization is greater than the current previous interface bandwidth utilization and the current interface bandwidth utilization is greater than a first value, and the current previous interface bandwidth utilization is less than the first value, and obtain the current interface speed limit value.
11. The apparatus according to any one of claims 8-9, wherein the adjusting unit is further specifically configured to calculate a difference between a first value and the current network packet loss rate;
and taking the product of the original interface speed limit value and the difference value as the current interface speed limit value.
12. The apparatus according to any one of claims 8-10, wherein the adjusting unit is further specifically configured to obtain a total bandwidth of the first interface configuration;
calculating the difference between the total bandwidth and the original interface speed limit value;
calculating a quotient of the difference and a second value;
and taking the sum of the original interface speed limit value and the quotient as the current interface speed limit value.
CN202311162410.1A 2023-09-08 2023-09-08 Bandwidth adjustment method and device Pending CN117376280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311162410.1A CN117376280A (en) 2023-09-08 2023-09-08 Bandwidth adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311162410.1A CN117376280A (en) 2023-09-08 2023-09-08 Bandwidth adjustment method and device

Publications (1)

Publication Number Publication Date
CN117376280A true CN117376280A (en) 2024-01-09

Family

ID=89406731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311162410.1A Pending CN117376280A (en) 2023-09-08 2023-09-08 Bandwidth adjustment method and device

Country Status (1)

Country Link
CN (1) CN117376280A (en)

Similar Documents

Publication Publication Date Title
US11102181B2 (en) Semantically aware network method and apparatus
EP3516833B1 (en) Methods, systems, and computer readable media for discarding messages during a congestion event
US8509074B1 (en) System, method, and computer program product for controlling the rate of a network flow and groups of network flows
US9185047B2 (en) Hierarchical profiled scheduling and shaping
US10135735B2 (en) Method and system for managing flows in a network
CN103999414B (en) A kind of method and apparatus of attribution for the congestion contribution of the shared resource of relative users register
EP2575303A1 (en) Determining congestion measures
US20190089623A1 (en) Hcpe-based intelligent path selection over a multipath network
CN113141314B (en) Congestion control method and equipment
CN111699711B (en) Service function chain congestion feedback
US20160294569A1 (en) Quota control policy
CN104995883A (en) Signalling congestion
EP3560152B1 (en) Determining the bandwidth of a communication link
CN117376280A (en) Bandwidth adjustment method and device
CN115347994B (en) Method, device, medium, wireless access equipment and system for feeding back state in network
WO2020103423A1 (en) Bandwidth testing method and apparatus, and storage medium
CN108605209B (en) Method and network entity for controlling charging for Value Added Services (VAS)
CN112887218B (en) Message forwarding method and device
EP3292655B1 (en) Method and network entity for control of value added service (vas)
US10652159B2 (en) Mobile packet data rate control based on radio load and other measures
EP3085035B1 (en) Technique for signalling congestion in a packet communication network
CN114930885A (en) Method, system and device for I-SMF event subscription and notification
CN116582496B (en) Token bucket packet loss optimization method and system
CN117278360B (en) Network communication method, device and storage medium based on virtual private network
US20160295028A1 (en) Tracking usage window for quota control policy

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination