Bandwidth allocation method and device, electronic equipment and storage medium
By adjusting the bandwidth allocation strategy in the passive optical network system and using the combination of fixed margin bandwidth and conventional margin bandwidth, the problem of ineffective traffic status monitoring is solved and the bandwidth utilization and throughput of the system are improved.
Patent Information
- Application Number
- CN202410884000.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-27
AI Technical Summary
In passive optical network systems, traffic status monitoring does not effectively use the entire remaining bandwidth, resulting in part of the bandwidth being unutilized and reducing the throughput of the system.
By obtaining the demand bandwidth and conventional margin bandwidth of each terminal, it is determined whether to perform global bandwidth reallocation in the next cycle. Specific measures include allocating fixed margin bandwidth to the terminal when the sum of the demand bandwidth and margin bandwidth is greater than the system upper limit, reducing Allocate the remaining bandwidth, or when the sum of the required bandwidth and the remaining bandwidth is not greater than the system upper limit, allocate bandwidth including the regular remaining bandwidth, and determine the traffic status and bandwidth status based on the difference between the actual traffic and the allocated bandwidth, and conduct timely adjustments Bandwidth adjustment.
It improves the bandwidth utilization and throughput of the system, reduces bandwidth waste, and can more accurately monitor the traffic status of the terminal and respond to traffic changes in a timely manner.
Smart Images

Figure CN118714013A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network technology, and in particular to a bandwidth allocation method and device, an electronic device, and a storage medium. Background Art
[0002] Dynamic Bandwidth Allocation (DBA) is a mechanism that can dynamically allocate upstream bandwidth within microsecond or millisecond time intervals. It is mainly used in passive optical network (PON) systems to control upstream bandwidth. By real-time monitoring of the congestion of the PON port and the current bandwidth utilization and configuration, the optical line terminal (OLT) will dynamically adjust the bandwidth, thereby improving the upstream line bandwidth utilization of the PON port, and can well adapt to services with large bandwidth changes.
[0003] In order to monitor the traffic status of user terminals, margins are included in the bandwidth allocated to each terminal. However, traffic status monitoring does not necessarily use all margins effectively. In this way, some bandwidth may not be utilized, reducing the throughput of the entire system. Summary of the invention
[0004] In view of this, the present disclosure proposes a bandwidth allocation solution.
[0005] According to one aspect of the present disclosure, a bandwidth allocation method is provided, comprising: obtaining a required bandwidth and a conventional margin bandwidth of each terminal in a current period; and when the sum of each required bandwidth and each conventional margin bandwidth is greater than a system upper limit bandwidth, allocating a first bandwidth to each terminal, wherein the first bandwidth comprises a fixed margin bandwidth in which the margin bandwidth is a fixed value.
[0006] In a possible implementation, the method further includes: when the sum of each required bandwidth and each regular margin bandwidth is not greater than the system upper limit bandwidth, allocating a second bandwidth to each terminal, the second bandwidth including the regular margin bandwidth.
[0007] In a possible implementation, the method further includes: detecting the actual traffic of each terminal in the current cycle; determining the traffic state and / or bandwidth state of the single terminal based on the first bandwidth and actual traffic of the single terminal; and determining whether to perform global bandwidth reallocation in the next cycle based on the traffic state or bandwidth state of at least one of the terminals.
[0008] In a possible implementation, determining the flow state of the single terminal based on the first bandwidth and actual flow of the single terminal includes: obtaining the fixed margin bandwidth; when the difference between the first bandwidth and the actual flow is less than the fixed margin bandwidth, determining that the flow state is increasing flow; when the difference between the first bandwidth and the actual flow is greater than the fixed margin bandwidth, determining that the flow state is decreasing flow; when the difference between the first bandwidth and the actual flow is equal to the fixed margin bandwidth, determining that the flow state is stable flow.
[0009] In a possible implementation, determining the bandwidth status of the single terminal according to the first bandwidth and actual traffic of the single terminal includes: when the difference between the first bandwidth and the actual traffic is zero, determining that the bandwidth status is bandwidth full.
[0010] In a possible implementation, determining whether to perform global bandwidth reallocation in the next cycle based on the traffic state or bandwidth state of at least one of the terminals includes: performing global bandwidth reallocation when the traffic state of at least one terminal is traffic increase or traffic decrease; or performing global bandwidth reallocation when the bandwidth state of at least one terminal is bandwidth full; or not performing global bandwidth reallocation when the traffic state of all terminals is traffic stability.
[0011] In a possible implementation manner, the terminal includes: an optical network unit, and the global bandwidth reallocation includes allocating bandwidth according to the fixed margin bandwidth.
[0012] According to another aspect of the present disclosure, there is provided a bandwidth allocation device, comprising:
[0013] The bandwidth acquisition unit is used to acquire the required bandwidth and the regular surplus bandwidth of each terminal in the current period;
[0014] The first bandwidth allocation unit is used to allocate a first bandwidth to each terminal when the sum of each required bandwidth and each regular surplus bandwidth is greater than the system upper limit bandwidth, wherein the first bandwidth includes a fixed surplus bandwidth with a fixed surplus bandwidth.
[0015] In a possible implementation manner, the device further includes:
[0016] The second bandwidth allocation unit is configured to allocate a second bandwidth to each terminal when the sum of each required bandwidth and each regular surplus bandwidth is not greater than the system upper limit bandwidth, wherein the second bandwidth includes the regular surplus bandwidth.
[0017] In a possible implementation manner, the device further includes:
[0018] An actual flow detection unit, used to detect the actual flow of each terminal in the current cycle;
[0019] A flow state and bandwidth state determining unit, configured to determine the flow state and / or bandwidth state of a single terminal according to the first bandwidth and actual flow of the single terminal;
[0020] The global bandwidth reallocation determination unit is used to determine whether to perform global bandwidth reallocation in the next cycle based on the flow status or bandwidth status of at least one of the terminals.
[0021] In a possible implementation manner, the traffic state and bandwidth state determining unit is further configured to:
[0022] Obtaining the fixed margin bandwidth;
[0023] When the difference between the first bandwidth and the actual flow is less than the fixed margin bandwidth, determining that the flow state is a flow increase;
[0024] When the difference between the first bandwidth and the actual flow is greater than the fixed margin bandwidth, determining that the flow state is a flow decrease;
[0025] When the difference between the first bandwidth and the actual flow is equal to the fixed margin bandwidth, the flow state is determined to be stable flow.
[0026] In a possible implementation manner, the traffic state and bandwidth state determining unit is further configured to:
[0027] When the difference between the first bandwidth and the actual flow is equal to zero, it is determined that the bandwidth state is bandwidth full.
[0028] In a possible implementation manner, the global bandwidth reallocation determination unit is used to:
[0029] When the traffic state of at least one terminal is a traffic increase or a traffic decrease, reallocating the global bandwidth;
[0030] or,
[0031] When the bandwidth status of at least one terminal is that the bandwidth is fully occupied, global bandwidth reallocation is performed;
[0032] or,
[0033] When the traffic status of all terminals is stable, global bandwidth reallocation is not performed.
[0034] In a possible implementation manner, the terminal includes: an optical network unit, and the global bandwidth reallocation includes allocating bandwidth according to the fixed margin bandwidth.
[0035] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0036] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0037] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0038] In the embodiment of the present disclosure, when the sum of the required bandwidth and the conventional margin bandwidth of each terminal is greater than the upper limit bandwidth of the system, the first bandwidth allocated to each terminal no longer includes the conventional margin bandwidth, and is replaced by the fixed margin bandwidth. The fixed margin bandwidth is much smaller than the conventional margin bandwidth, so part of the bandwidth in the system is released. Therefore, the throughput of the entire system can be improved while being able to monitor the flow status of each terminal.
[0039] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0041] Figure 1 A flowchart of a bandwidth allocation method provided in an embodiment of the present disclosure.
[0042] Figure 2 A schematic diagram of a flow chart of a bandwidth allocation device provided in an embodiment of the present disclosure.
[0043] Figure 3 A schematic diagram of the structure of an electronic device for bandwidth allocation provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0045] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0046] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0047] Figure 1 The following is a flow chart of a bandwidth allocation method provided by an embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0048] S11, obtaining the required bandwidth and regular surplus bandwidth of each terminal in the current period.
[0049] The required bandwidth of each terminal may be a bandwidth estimated based on the statistical results of the actual traffic of each terminal in the previous period. In order to monitor the traffic status of the user terminal, a margin will be included in the bandwidth allocated to each terminal. Generally, the margin can be a bandwidth determined based on the required bandwidth according to a preset first ratio. For ease of distinction, we will name the margin determined according to the preset first ratio as the regular margin bandwidth. The regular margin bandwidth may be the product of the required bandwidth and the first ratio. For example, the first ratio may be 15%. When the required bandwidth is 400 megabits, the regular margin bandwidth is 60 megabits.
[0050] The regular surplus bandwidth is positively correlated with the required bandwidth. When the required bandwidth of a terminal increases, the regular surplus bandwidth will also increase. If the required bandwidth of one or several terminals increases significantly, these terminals will occupy more bandwidth in the system and use it as regular surplus bandwidth. This may cause other terminals to not be able to get their respective required bandwidth. In other words, the actual rising traffic in the entire system cannot reach the maximum traffic limit of the system. In fact, some bandwidth in the system is not effectively used.
[0051] S12: when the sum of the required bandwidths and the regular surplus bandwidths is greater than the system upper limit bandwidth, allocating a first bandwidth to each terminal, wherein the first bandwidth includes a fixed surplus bandwidth whose surplus bandwidth is a fixed value.
[0052] If the sum of the required bandwidth of each terminal and the conventional margin bandwidth of each terminal is greater than the upper limit bandwidth of the system, it means that part of the conventional margin bandwidth may not be effectively utilized. Therefore, a first bandwidth including a fixed margin bandwidth can be allocated to each terminal. The fixed margin bandwidth can be a relatively small margin bandwidth, for example: the fixed margin bandwidth can be between 1 megabyte and 5 megabytes, preferably, the fixed margin bandwidth is 1 megabyte. It can also be set according to the needs of the scene. The fixed margin bandwidth is much smaller than the conventional margin bandwidth. This also means that part of the bandwidth used as margin bandwidth can be released for data transmission, improving the utilization of bandwidth in the system.
[0053] In the embodiment of the present disclosure, when the sum of the required bandwidth and the conventional margin bandwidth of each terminal is greater than the upper limit bandwidth of the system, the first bandwidth allocated to each terminal no longer includes the conventional margin bandwidth, and is replaced by the fixed margin bandwidth. The fixed margin bandwidth is much smaller than the conventional margin bandwidth, so part of the bandwidth in the system is released. Therefore, the throughput of the entire system can be improved while being able to monitor the flow status of each terminal.
[0054] In a possible implementation, the method further includes: when the sum of each required bandwidth and each regular margin bandwidth is not greater than the system upper limit bandwidth, allocating a second bandwidth to each terminal, the second bandwidth including the regular margin bandwidth.
[0055] If the sum of the required bandwidth and the regular surplus bandwidth of each terminal is not greater than the upper limit bandwidth of the system, it means that even if the regular surplus bandwidth is used, each terminal can obtain its own required bandwidth because the sum of the bandwidth occupied by each terminal does not reach the upper limit bandwidth of the system. Therefore, the second bandwidth including the regular surplus bandwidth can be allocated to each terminal.
[0056] In the disclosed embodiment, without affecting each terminal's acquisition of its required bandwidth, a second bandwidth including a regular surplus bandwidth can be allocated to each terminal, thereby increasing the surplus bandwidth of each terminal, improving the ability of the entire system to resist traffic jitter, and improving system reliability.
[0057] In a possible implementation, the method further includes: detecting the actual traffic of each terminal in the current cycle; determining the traffic state and / or bandwidth state of the single terminal based on the first bandwidth and actual traffic of the single terminal; and determining whether to perform global bandwidth reallocation in the next cycle based on the traffic state or bandwidth state of at least one of the terminals.
[0058] The bandwidth status may characterize the usage of the first bandwidth allocated to the terminal in actual operation. The bandwidth status may include: bandwidth occupied and bandwidth not occupied. The flow status may characterize the change of the actual flow of the terminal compared with the flow when the first bandwidth is allocated after the first flow is allocated. The flow status includes: flow increase, flow decrease, and flow stability.
[0059] The flow state or bandwidth state of the terminal can indicate whether the current first flow is suitable for the actual use of the terminal. In this way, the terminal's demand for flow and the utilization of the allocated bandwidth can be perceived in a timely manner, and then the global bandwidth reallocation can be triggered in a timely manner to transfer the surplus bandwidth of the terminal with reduced throughput to the terminal that needs more bandwidth, so as to respond to the bandwidth waste in the system in a timely and sensitive manner and improve the utilization rate of the bandwidth in the system.
[0060] In a possible implementation, determining the flow state of the single terminal based on the first bandwidth and actual flow of the single terminal includes: obtaining the fixed margin bandwidth; when the difference between the first bandwidth and the actual flow is less than the fixed margin bandwidth, determining that the flow state is increasing flow; when the difference between the first bandwidth and the actual flow is greater than the fixed margin bandwidth, determining that the flow state is decreasing flow; when the difference between the first bandwidth and the actual flow is equal to the fixed margin bandwidth, determining that the flow state is stable flow.
[0061] In the disclosed embodiment, the fixed margin bandwidth is relatively small, and the flow change such as the increase or decrease of the terminal flow is relatively obvious relative to the fixed margin bandwidth. Therefore, the fixed margin bandwidth has a more accurate and sensitive indication effect on the flow status of the terminal. Moreover, by judging the usage of the fixed margin bandwidth, the flow status of each terminal is indirectly determined, rather than directly using the flow of the terminal when the first bandwidth is allocated to compare with the actual flow to determine the flow status, it is not necessary to store the flow of the terminal when the first flow is allocated, saving storage overhead and data transmission overhead.
[0062] Therefore, the present disclosure uses the difference between the first bandwidth and the actual flow to compare with the fixed margin bandwidth to obtain a comparison result; and determines the flow state based on the comparison result.
[0063] If the difference between the first bandwidth and the actual traffic is greater than the fixed margin bandwidth, it means that the fixed margin bandwidth has been used, so the traffic of the terminal is increasing, and the traffic state is traffic increase. If the difference between the first bandwidth and the actual traffic is equal to the fixed margin bandwidth, it means that the fixed margin bandwidth is not used, so the actual traffic is the same as the traffic when the first bandwidth is allocated, that is, the traffic of the terminal has not changed, so the traffic state is traffic stability. If the difference between the first bandwidth and the actual traffic is less than the fixed margin bandwidth, it means that not only the fixed margin bandwidth is not used, but also the first bandwidth is not fully utilized, so the traffic of the terminal is decreasing, and the traffic state is traffic decrease.
[0064] In the embodiment of the present disclosure, the difference between the first bandwidth and the actual traffic is used to compare with the fixed margin bandwidth to determine the traffic state, which can improve the accuracy of determining the traffic state and reduce storage overhead.
[0065] In a possible implementation, determining the bandwidth status of the single terminal according to the first bandwidth and actual traffic of the single terminal includes: when the difference between the first bandwidth and the actual traffic is zero, determining that the bandwidth status is bandwidth full.
[0066] The actual traffic represents the traffic actually used by the terminal in this period. If the actual traffic is equal to the first bandwidth allocated to the terminal, it means that the first bandwidth has been used, including the remaining bandwidth in the first bandwidth. In other words, the bandwidth allocated to the terminal has been fully occupied, that is, the bandwidth status is bandwidth full.
[0067] In the embodiment of the present disclosure, the difference between the first bandwidth and the actual traffic can directly and accurately indicate the bandwidth status. Moreover, the first bandwidth and the actual traffic are both known data, and no additional data is required, which is simple and easy.
[0068] In a possible implementation, determining whether to perform global bandwidth reallocation in the next cycle based on the traffic state or bandwidth state of at least one of the terminals includes: performing global bandwidth reallocation when the traffic state of at least one terminal is traffic increase or traffic decrease; or performing global bandwidth reallocation when the bandwidth state of at least one terminal is bandwidth full; or not performing global bandwidth reallocation when the traffic state of at least one terminal is traffic stability.
[0069] If the traffic status of at least one terminal in the system is increasing, there is a high probability that the bandwidth of the terminal with increasing traffic is insufficient in the next cycle. Therefore, global bandwidth reallocation is triggered in the next cycle to increase bandwidth for the terminal with increasing traffic.
[0070] If the traffic status of at least one terminal in the system is traffic decline, it means that the bandwidth of the terminal with traffic decline is not fully utilized, and there is a high probability that the bandwidth allocated to the terminal with traffic decline in the next cycle will not be fully utilized according to the allocation amount of this cycle. Therefore, the global bandwidth reallocation is triggered in the next cycle to reduce the bandwidth for the terminal with traffic decline.
[0071] If the bandwidth status of at least one terminal in the system is full, it means that the terminal with full bandwidth has no bandwidth margin and its traffic situation cannot be monitored. Therefore, global bandwidth reallocation is triggered in the next cycle to increase bandwidth for the terminal with full bandwidth.
[0072] If the traffic status of all terminals in the system is stable, it means that the traffic allocated to each terminal in the current cycle is sufficient and there is no waste, so there is no need to trigger global bandwidth reallocation in the next cycle.
[0073] In the embodiment of the present disclosure, when the traffic status or bandwidth status of at least one terminal meets the conditions, global bandwidth reallocation in the next cycle is triggered, and bandwidth reallocation can be triggered in a timely and sensitive manner according to the traffic status and bandwidth status of the terminal, thereby reducing the situation where terminal data is blocked due to insufficient bandwidth, improving the utilization rate of the system bandwidth, and reducing bandwidth waste.
[0074] In a possible implementation manner, the terminal includes: an optical network unit, and the global bandwidth reallocation includes allocating bandwidth according to the fixed margin bandwidth.
[0075] The terminal includes an optical network unit, so the terminal of the embodiment of the present disclosure is an optical line terminal. In the case where the terminal in the system is an optical line terminal, if the first bandwidth (including the fixed margin bandwidth) is allocated to each terminal in this cycle, the fixed margin bandwidth can continue to be allocated to each terminal in the re-bandwidth allocation triggered by the next cycle. The whole system continues to sensitively detect the flow status of the terminal, and the throughput can be maximized.
[0076] Figure 2 The following is a flow chart of a bandwidth allocation device provided in an embodiment of the present disclosure. Figure 2 As shown, the device 20 comprises:
[0077] The bandwidth acquisition unit 21 is used to acquire the required bandwidth and the regular surplus bandwidth of each terminal in the current period;
[0078] The first bandwidth allocation unit 22 is used to allocate a first bandwidth to each terminal when the sum of each required bandwidth and each regular surplus bandwidth is greater than the system upper limit bandwidth, wherein the first bandwidth includes a fixed surplus bandwidth with a fixed surplus bandwidth.
[0079] In a possible implementation, the device 20 further includes:
[0080] The second bandwidth allocation unit is configured to allocate a second bandwidth to each terminal when the sum of each required bandwidth and each regular surplus bandwidth is not greater than the system upper limit bandwidth, wherein the second bandwidth includes the regular surplus bandwidth.
[0081] In a possible implementation, the device 20 further includes:
[0082] An actual flow detection unit, used to detect the actual flow of each terminal in the current cycle;
[0083] A flow state and bandwidth state determining unit, configured to determine the flow state and / or bandwidth state of a single terminal according to the first bandwidth and actual flow of the single terminal;
[0084] The global bandwidth reallocation determination unit is used to determine whether to perform global bandwidth reallocation in the next cycle based on the flow status or bandwidth status of at least one of the terminals.
[0085] In a possible implementation manner, the traffic state and bandwidth state determining unit is further configured to:
[0086] Obtaining the fixed margin bandwidth;
[0087] When the difference between the first bandwidth and the actual flow is less than the fixed margin bandwidth, determining that the flow state is a flow increase;
[0088] When the difference between the first bandwidth and the actual flow is greater than the fixed margin bandwidth, determining that the flow state is a flow decrease;
[0089] When the difference between the first bandwidth and the actual flow is equal to the fixed margin bandwidth, the flow state is determined to be stable flow.
[0090] In a possible implementation manner, the traffic state and bandwidth state determining unit is further configured to:
[0091] When the difference between the first bandwidth and the actual flow is equal to zero, it is determined that the bandwidth state is bandwidth full.
[0092] In a possible implementation manner, the global bandwidth reallocation determination unit is used to:
[0093] When the traffic state of at least one terminal is a traffic increase or a traffic decrease, reallocating the global bandwidth;
[0094] or,
[0095] When the bandwidth status of at least one terminal is that the bandwidth is fully occupied, global bandwidth reallocation is performed;
[0096] or,
[0097] When the traffic status of all terminals is stable, global bandwidth reallocation is not performed.
[0098] In a possible implementation manner, the terminal includes: an optical network unit, and the global bandwidth reallocation includes allocating bandwidth according to the fixed margin bandwidth.
[0099] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0100] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0101] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0102] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0103] Figure 3 The structure diagram of the electronic device for bandwidth allocation provided by the embodiment of the present disclosure is shown in FIG. 19. For example, the electronic device 1900 may be provided as a server or a terminal device. Figure 3 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0104] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM or similar.
[0105] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0106] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0107] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0108] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0109] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0110] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0111] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0112] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0113] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0114] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A bandwidth allocation method, characterized in that: include: Obtain the required bandwidth and regular surplus bandwidth of each terminal in the current period; In the case that the sum of each required bandwidth and each regular margin bandwidth is greater than the system upper limit bandwidth, a first bandwidth is allocated to each terminal, where the first bandwidth includes a fixed margin bandwidth with a fixed margin bandwidth value.
2. The method according to claim 1, characterized in that The method further comprises: In a case where the sum of each required bandwidth and each regular margin bandwidth is not greater than the system upper limit bandwidth, a second bandwidth is allocated to each terminal, where the second bandwidth includes the regular margin bandwidth.
3. The method according to claim 1, characterized in that The method further comprises: Detecting the actual traffic of each terminal in the current period; Determining a traffic state and / or a bandwidth state of a single terminal according to a first bandwidth and actual traffic of the single terminal; Based on the traffic state or bandwidth state of at least one of the terminals, it is determined whether to perform global bandwidth reallocation in the next cycle.
4. The method according to claim 3, characterized in that The determining the flow state of the single terminal according to the first bandwidth and the actual flow of the single terminal includes: Obtaining the fixed margin bandwidth; When the difference between the first bandwidth and the actual flow is less than the fixed margin bandwidth, determining that the flow state is a flow increase; When the difference between the first bandwidth and the actual flow is greater than the fixed margin bandwidth, determining that the flow state is a flow decrease; When the difference between the first bandwidth and the actual flow is equal to the fixed margin bandwidth, the flow state is determined to be stable flow.
5. The method according to claim 3, characterized in that: The determining, according to the first bandwidth and actual traffic of the single terminal, the bandwidth state of the single terminal includes: When the difference between the first bandwidth and the actual flow is equal to zero, it is determined that the bandwidth state is bandwidth full.
6. The method according to claim 3, characterized in that: The determining whether to perform global bandwidth reallocation in the next cycle based on the traffic state or bandwidth state of at least one of the terminals includes: When the traffic state of at least one terminal is a traffic increase or a traffic decrease, reallocating the global bandwidth; or, When the bandwidth status of at least one terminal is that the bandwidth is fully occupied, global bandwidth reallocation is performed; or, When the traffic status of all terminals is stable, global bandwidth reallocation is not performed.
7. The method according to claim 3, characterized in that The terminal includes: an optical network unit, and the global bandwidth reallocation includes allocating bandwidth according to the fixed margin bandwidth.
8. A bandwidth allocation device, characterized in that: include: The bandwidth acquisition unit is used to acquire the required bandwidth and the regular surplus bandwidth of each terminal in the current period; The first bandwidth allocation unit is used to allocate a first bandwidth to each terminal when the sum of each required bandwidth and each regular surplus bandwidth is greater than the system upper limit bandwidth, wherein the first bandwidth includes a fixed surplus bandwidth with a fixed surplus bandwidth.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 7 when executing the instructions stored in the memory.
10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
