WO2017088563A1 - Bandwidth acquiring method and apparatus, and storage medium - Google Patents
Bandwidth acquiring method and apparatus, and storage medium Download PDFInfo
- Publication number
- WO2017088563A1 WO2017088563A1 PCT/CN2016/099203 CN2016099203W WO2017088563A1 WO 2017088563 A1 WO2017088563 A1 WO 2017088563A1 CN 2016099203 W CN2016099203 W CN 2016099203W WO 2017088563 A1 WO2017088563 A1 WO 2017088563A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bandwidth
- token
- onu
- added
- cycle
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission 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/762—Admission 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
Definitions
- the present invention relates to bandwidth allocation technologies in the field of optical communications, and in particular, to a bandwidth acquisition method and apparatus, and a storage medium.
- a dynamic bandwidth allocation (DBA) mechanism is generally adopted to improve the system uplink bandwidth utilization and ensure service fairness and quality of service (Quality of Service, QOS).
- the optical line terminal (OLT) requests the dynamic bandwidth to be delivered according to the related configuration and the bandwidth reported by the optical network unit (ONU).
- the bandwidth type is divided into fixed bandwidth, guaranteed bandwidth and best effort bandwidth.
- the fixed bandwidth is for a specific service, and is authorized by the OLT with a small polling period and a higher frequency.
- the guaranteed bandwidth is authorized by the OLT according to the report information of the ONU, and belongs to the user's contract bandwidth, even when the system uplink traffic is congested.
- the user obtains the contract authorization; as far as the bandwidth is concerned, the system does not guarantee that the ONU must obtain it. Only when the uplink bandwidth has no higher priority service, each ONU calculates the theoretical bandwidth that can be allocated according to the respective weights.
- the best-effort bandwidth that the ONU obtains should not exceed the set best-effort bandwidth. Because there is no necessary connection between the best-effort weight bandwidth and the set bandwidth, it is necessary to ensure the accuracy of the weight ratio allocation between the ONUs when delivering the bandwidth, and cannot exceed the corresponding set bandwidth value. In the technology, it is impossible to achieve mutual constraint between the two, so that there is a problem that the bandwidth accuracy error and the granularity are large issued by the DBA.
- the embodiment of the present invention is to provide a bandwidth acquisition method and device, and a storage medium, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth, and avoids DBA.
- the problem of large bandwidth accuracy error and large granularity is guaranteed, and the bandwidth accuracy and granularity issued by the DBA are guaranteed.
- an embodiment of the present invention provides a bandwidth acquiring method, where the method includes:
- an embodiment of the present invention provides a bandwidth allocation apparatus, where the apparatus includes: a first acquiring unit, a second acquiring unit, a determining unit, and a first processing unit; wherein:
- the first acquiring unit is configured to acquire a weight bandwidth of each optical network unit ONU in a best effort bandwidth allocation phase in each period;
- the second obtaining unit is configured to acquire a set bandwidth of each of the ONUs in a best effort bandwidth allocation phase
- the determining unit is configured to determine, according to the set bandwidth and the weight bandwidth, a bandwidth to be added in a token bucket corresponding to each of the ONUs in a best effort bandwidth allocation phase. brand;
- the first processing unit is configured to add the to-be-added bandwidth to the ONU and try its best The bandwidth of the token bucket corresponding to the bandwidth allocation phase is obtained, and the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained.
- an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the bandwidth acquisition method provided by the first aspect of the present invention.
- the bandwidth acquisition method and device and the storage medium provided by the embodiments of the present invention can acquire the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each cycle, and obtain the setting of each ONU in the best effort bandwidth allocation phase.
- the bandwidth is determined, and the bandwidth to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period is determined according to the set bandwidth and the weight bandwidth, and then the bandwidth token to be added is added.
- To the ONU try to allocate the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth.
- the ONU tries its best to allocate the bandwidth of the token bucket corresponding to the bandwidth allocation phase, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth, avoiding the bandwidth accuracy error and the granularity delivered by the DBA.
- the problem of large degree guarantees the bandwidth accuracy and granularity issued by the DBA.
- FIG. 1 is a schematic flowchart diagram of a bandwidth acquiring method according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of another bandwidth acquisition method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of still another method for acquiring a bandwidth according to an embodiment of the present disclosure
- FIG. 4 is a schematic flowchart diagram of a bandwidth acquiring method according to another embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a bandwidth acquiring apparatus according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of another bandwidth acquiring apparatus according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of still another bandwidth acquiring apparatus according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a bandwidth acquiring apparatus according to another embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of another bandwidth acquiring apparatus according to another embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of still another bandwidth acquiring apparatus according to another embodiment of the present invention.
- FIG. 11 is a schematic structural diagram of a bandwidth acquiring apparatus according to another embodiment of the present invention.
- An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 1, the method includes the following steps:
- Step 101 Obtain a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each cycle.
- the step of obtaining the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each cycle may be implemented by the bandwidth acquisition device. After the ONU completes the fixed bandwidth allocation and guarantees the bandwidth allocation, if the bandwidth request is not fully satisfied, it can enter the best effort bandwidth allocation phase. Each ONU in each cycle has different weight bandwidths in the best effort bandwidth allocation phase. It is the theoretical bandwidth that can be calculated according to the weight of each ONU.
- Step 102 Acquire a set bandwidth of each ONU in a best effort bandwidth allocation phase.
- the step of obtaining the set bandwidth of each ONU in the best effort bandwidth allocation phase may be implemented by the bandwidth acquisition device, and the size of the set bandwidth of each ONU in different cycles is the same.
- the set bandwidth determines the peak rate that the ONU can reach in the best effort bandwidth allocation phase.
- the weight bandwidth is the theoretical calculation of each period, which can be larger than the set bandwidth or smaller than the set bandwidth; however, the bandwidth allocation is performed. It is required that the value of the weighted bandwidth cannot be greater than the value of the set bandwidth.
- Step 103 Determine, according to the set bandwidth and the weight bandwidth, the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase that needs to be added to each ONU in each period.
- the step determines, according to the set bandwidth and the weight bandwidth, the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase that needs to be added to each ONU in each cycle. Get the device to implement. By comparing the size of the set bandwidth and the weight bandwidth, and determining the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase according to the judgment result, it can be added to the ONU.
- Step 104 Add the bandwidth token to be added to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtain the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
- the bandwidth allocation includes four phases: wherein the fixed bandwidth allocation is performed in a form in which the bandwidth allocation period is configurable and the interval period is sent once.
- the guaranteed bandwidth and best-effort bandwidth will be stored in the corresponding token bucket in the form of tokens.
- the DBA compares the report values reported by the ONUs with the tokens of the token buckets in the order of the maximum number of queues. After the bandwidth is fixed and the bandwidth remaining after the bandwidth allocation is guaranteed, if the request value of some ONUs is not met, the DBA allocates the remaining bandwidth to each ONU according to a certain weight ratio, which is called weight bandwidth (BW), but the weight bandwidth. It is only the theoretical value of the ONU's allocated remaining bandwidth, which determines the accuracy of the allocation of each ONU by weight. In addition, the bandwidth and the bandwidth have a set bandwidth. The set bandwidth determines the peak rate of the ONU.
- BW weight bandwidth
- the set bandwidth of the best effort bandwidth allocation phase is a fixed value, that is, the E bucket is filled with a fixed token every cycle.
- the weight bandwidth refers to the remaining bandwidth that each ONU theory can divide in each DBA cycle, and it changes dynamically every cycle. If the ONU is in a light load state for a certain period, after a fixed bandwidth and a guaranteed bandwidth, there will be a large amount of remaining bandwidth. The weight bandwidth calculated by the ONU is large. If the ONU is in a heavy state for a certain period, it is fixed. Bandwidth and guarantee After the bandwidth, the remaining bandwidth is not much, and the weight bandwidth calculated by the ONU is small.
- the bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU.
- the token bucket corresponding to the bandwidth allocation phase thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU.
- the bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA.
- the bandwidth accuracy and granularity delivered by the DBA are guaranteed.
- An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 2, the method includes the following steps:
- Step 201 The bandwidth acquiring apparatus acquires a weight bandwidth of each ONU in each cycle in the best effort bandwidth allocation phase.
- Step 202 The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
- Step 203 The bandwidth acquiring apparatus determines a relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i-th cycle.
- Step 203 after determining the size relationship between the weight bandwidth of the jth ONU and the set bandwidth in the i-th cycle, step 204 or step 205 may be selected according to the size relationship between the weighted bandwidth and the set bandwidth;
- Step 204 If the weight bandwidth of the jth ONU in the i-th cycle is greater than the set bandwidth of the jth ONU in the i-th cycle, the bandwidth obtaining apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort bandwidth allocation.
- the bandwidth token to be added in the token bucket corresponding to the phase is the jth ONU. Set the bandwidth token.
- the period when the weight bandwidth calculated by the ONU of a certain period is large, even larger than the set bandwidth, the period should be the best in the token bucket corresponding to the bandwidth allocation phase. Add a bandwidth token to ensure that the bandwidth delivered by the token bucket corresponding to the best-effort bandwidth allocation phase is close to but not exceeding the peak rate set by the set bandwidth.
- Step 205 If the weight bandwidth of the jth ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle, the bandwidth acquiring apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort.
- the bandwidth token to be added in the token bucket corresponding to the allocation phase is the weight bandwidth token of the jth ONU in the i th period.
- the weighted bandwidth calculated in the best-effort bandwidth allocation phase is small, and the cycle should be as much as possible.
- a weight bandwidth token is added to the token bucket corresponding to the allocation phase to ensure an accurate ratio.
- the bandwidth acquisition method provided in this embodiment does not first add a set bandwidth token to the E bucket, and compares it with the weight bandwidth when the bandwidth is delivered, but dynamically adds the E bucket token, so that the guarantee point of the bandwidth precision is advanced. At the stage of adding a token to the leaky bucket, the accuracy and granularity of the bandwidth are effectively guaranteed.
- the bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU.
- the token bucket corresponding to the bandwidth allocation phase thus, the ONU tries its best to consider the weight bandwidth and setting of the ONU for the bandwidth allocation phase.
- the bandwidth is balanced, and the relationship between the weight bandwidth of the ONU and the set bandwidth is balanced.
- the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained, which solves the problem that the existing ONU cannot fully consider the weight bandwidth when trying to allocate bandwidth.
- the problem of setting the bandwidth factor avoids the problem of large bandwidth error and large granularity issued by the DBA, and ensures the bandwidth accuracy and granularity issued by the DBA.
- An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase.
- the method includes the following steps:
- Step 301 The bandwidth acquiring apparatus acquires a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each period.
- Step 302 The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
- Step 303 The bandwidth acquiring apparatus determines whether the weight bandwidth of the jth ONU in the i th period is zero.
- Step 304 If the weight bandwidth of the jth ONU in the i-th cycle is zero, the bandwidth acquiring apparatus allocates the bandwidth to be added in the token bucket corresponding to the bandwidth allocation phase according to the best effort added to the jth ONU in the i-1th cycle. The token is determined to be added to the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle.
- the ONUs go to the best effort bandwidth allocation stage, and the calculated weight bandwidth is 0, or the remaining bandwidth of the best effort bandwidth allocation phase has been divided.
- the time period should be a gradual process.
- step 304 can be implemented in the following manner:
- Step 304a If the weight bandwidth of the jth ONU in the i-th cycle is zero, the bandwidth acquiring apparatus acquires the token corresponding to the bandwidth allocation phase added to the jth ONU in the i-1th cycle. The bandwidth token to be added in the bucket.
- step 304b if the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the weight bandwidth token added to the jth ONU in the i-1th cycle, the bandwidth acquiring device determines that it needs to be added to the i th
- the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the cycle is the weighted bandwidth token of the jth ONU in the i-th cycle.
- step 304c if the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token, the bandwidth acquiring device determines that it needs to be added to the first The j-th ONU in the i-cycle tries to set the bandwidth token of the j-th ONU in the token bucket corresponding to the bandwidth allocation phase.
- the remaining bandwidth is 0, it is necessary to determine whether it is necessary to add the set bandwidth token to the token bucket corresponding to the bandwidth allocation phase.
- the weight bandwidth calculated by each ONU is 0 at this time, it does not mean that all ONUs exceed their peak rates. Therefore, it is necessary to refer to the allocation rule of the previous cycle: if the previous cycle, the best effort bandwidth allocation of an ONU A weighted bandwidth token is added to the token bucket corresponding to the phase.
- the bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set bandwidth and weight bandwidth to determine what is needed in each cycle Adding a bandwidth token to be added to the token bucket corresponding to the bandwidth allocation phase of each ONU, and then adding the to-be-added bandwidth token to the token bucket corresponding to the ONU's best effort bandwidth allocation phase; thus, the ONU In the best-effort bandwidth allocation phase, the weight bandwidth and the set bandwidth of the ONU are comprehensively considered, and the relationship between the weight bandwidth of the ONU and the set bandwidth is balanced, and the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained.
- the ONU tries its best to allocate bandwidth, it cannot comprehensively consider the weight bandwidth and the bandwidth factor. It avoids the problem of large bandwidth error and large granularity issued by the DBA, and ensures the bandwidth accuracy and granularity delivered by the DBA.
- An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 4, the method includes the following steps:
- Step 401 The bandwidth obtaining apparatus acquires a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each period.
- Step 402 The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
- Step 403 The bandwidth acquiring apparatus determines a size relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i th period.
- Step 403 After determining the relationship between the weight bandwidth of the jth ONU and the set bandwidth in the ith cycle, step 404 or step 405 may be selected according to the relationship between the weight bandwidth and the set bandwidth;
- Step 404 If the weight bandwidth of the jth ONU in the i-th cycle is greater than the set bandwidth of the jth ONU in the i-th cycle, the bandwidth obtaining apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort bandwidth allocation.
- the bandwidth token to be added in the token bucket corresponding to the phase is the set bandwidth token of the jth ONU.
- Step 405 If the weight bandwidth of the jth ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle, the bandwidth acquiring apparatus determines that the j-th ONU needs to be added to the i-th cycle.
- the bandwidth token to be added in the token bucket corresponding to the allocation phase is the i-th week.
- Step 406 The bandwidth obtaining device compares the size relationship between the bandwidth of the token bucket corresponding to the bandwidth allocation phase and the queue set reported by the jth ONU in the i-th cycle in the i-th cycle.
- Step 406 may be followed by step 407 or step 408;
- Step 407 If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is greater than or equal to the maximum bandwidth of the queue set reported by the jth ONU in the i-th cycle, the bandwidth acquiring device will be the first The maximum bandwidth in the queue set reported by the jth ONU in the i period is the allocated bandwidth.
- Step 408 If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is less than the minimum bandwidth of the queue set in the jth ONU in the i-th cycle, the bandwidth acquiring device does not perform bandwidth allocation. .
- the dynamic bandwidth allocation is implemented by double-drain bucket dual-rate.
- the DBA Before the bandwidth allocation, the DBA first calculates the fixed bandwidth, the guaranteed bandwidth, and the token corresponding to the best-effort bandwidth, where the fixed bandwidth is fixed.
- the Fixed Information Rate (FIR), the guaranteed bandwidth information (CIR) and the set bandwidth are the Peak Information Rate (PIR).
- FIR Fixed Information Rate
- CIR guaranteed bandwidth information
- PIR Peak Information Rate
- the phase of bandwidth allocation is entered.
- the fixed bandwidth is configurable according to the period, and the bandwidth is sent once in the interval period; the bandwidth allocation phase is guaranteed to be filled into the leaky bucket.
- the bandwidth token CBW is guaranteed, and then according to the queue set req1 to reqN reported by the ONU, the size relationship between the bandwidth token bucket bandwidth token_c and the queue set bandwidth req is compared in order from large to small, and the larger queue set is satisfied.
- the ONUs whose req is not satisfied at this time calculate their respective weight values in the best effort phase, and compare the respective set bandwidth ebw. If the weight bandwidth bw i ⁇ ebw, then try to do its best.
- the bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU.
- the token bucket corresponding to the bandwidth allocation phase thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU.
- the bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA.
- the bandwidth accuracy and granularity delivered by the DBA are guaranteed.
- the embodiment of the present invention provides a bandwidth acquisition apparatus, which can be applied to a bandwidth acquisition method according to the embodiment of the present invention.
- the apparatus includes: a first acquisition unit 51, and a second acquisition. Unit 52, determining unit 53 and first processing unit 54, wherein:
- the first obtaining unit 51 is configured to acquire a weight bandwidth of each ONU in each cycle in the best effort bandwidth allocation phase.
- the second obtaining unit 52 is configured to acquire a set bandwidth of each ONU in a best effort bandwidth allocation phase.
- the determining unit 53 is configured to determine, according to the set bandwidth and the weight bandwidth, the to-be-added bandwidth token in the token bucket corresponding to each ONU in the best effort bandwidth allocation phase.
- the first processing unit 54 is configured to add the bandwidth to be added to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtain the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
- the bandwidth obtaining apparatus can acquire the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU.
- the token bucket corresponding to the bandwidth allocation phase thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU.
- the bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA.
- the bandwidth accuracy and granularity delivered by the DBA are guaranteed.
- the determining unit 53 includes: a determining module 531 and a first determining module 532, wherein:
- the determining module 531 is configured to determine the size relationship between the weight bandwidth of the jth ONU and the set bandwidth in the i-th cycle.
- the first determining module 532 is configured to determine that the j-th ONU in the i-th cycle is greater than the set bandwidth of the j-th ONU in the i-th cycle, and then determine that the j-th ONU needs to be added to the i-th cycle.
- the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token of the jth ONU.
- the determining unit 53 further includes: a second determining module 533, wherein:
- the second determining module 533 is configured to determine that the jth ONU in the i-th cycle needs to be added to the j-th ONU in the i-th cycle if the weight bandwidth of the j-th ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle.
- the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the weight bandwidth token of the jth ONU in the i th period.
- the determining unit 53 is configured to perform the following steps:
- the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase added to the jth ONU in the i-1th cycle is determined to be added.
- the jth ONU in the i-th cycle tries to add the bandwidth token in the token bucket corresponding to the bandwidth allocation phase.
- the determining unit 53 further includes: an obtaining module 534 and a third determining module 535, wherein:
- the obtaining module 534 is configured to: if the weight bandwidth of the jth ONU in the i-th cycle is zero, obtain the to-be-added in the token bucket corresponding to the bandwidth allocation phase added to the j-th ONU in the i-1th cycle Bandwidth token.
- the third determining module 535 is configured to be added to the weighted bandwidth token in the token bucket corresponding to the bandwidth allocation phase if it is added to the jth ONU in the i-1th period In the i-th cycle, the jth ONU tries its best to the token bucket corresponding to the bandwidth allocation phase.
- the to-be-added bandwidth token is the weighted bandwidth token of the jth ONU in the i-th cycle.
- the determining unit 53 further includes: a fourth determining module 536, wherein:
- the fourth determining module 536 is configured to determine that the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token, if it is added to the jth ONU in the i-1th cycle.
- the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle is the set bandwidth token of the j-th ONU.
- the apparatus further includes: a comparing unit 55 and a second processing unit 56, wherein:
- the comparing unit 55 is configured to compare the size relationship between the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle and the queue set reported by the jth ONU in the i-th cycle.
- the second processing unit 56 is configured to: if the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is greater than or equal to the maximum bandwidth of the queue set reported by the jth ONU in the i-th cycle, The maximum bandwidth in the queue set reported by the jth ONU in the i-th cycle is used as the allocated bandwidth.
- the apparatus further includes: a third processing unit 57, wherein:
- the third processing unit 57 is configured to: if the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is less than the minimum bandwidth in the queue set reported by the jth ONU in the i-th cycle, the third processing unit 57 is configured not to perform Bandwidth allocation.
- the bandwidth obtaining apparatus can acquire the weight bandwidth of each ONU in the bandwidth allocation phase of each best effort in each period, and acquire the bandwidth of each ONU in the best effort.
- the bandwidth to be added in the token bucket of the allocation phase is determined according to the set bandwidth and the weight bandwidth, and the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each cycle is determined, and then to be added.
- the bandwidth token is added to the token bucket corresponding to the bandwidth allocation phase of the ONU; thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the weight bandwidth and the set bandwidth of the ONU.
- the relationship between the ONB and the token bucket corresponding to the bandwidth allocation phase of the ONU is solved, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the bandwidth delivered by the DBA.
- the problem of large precision error and large granularity ensures the bandwidth accuracy and granularity issued by the DBA.
- the first obtaining unit 51, the second obtaining unit 52, the determining unit 53, the determining module 531, the first determining module 532, the second determining module 533, the obtaining module 534, the third determining module 535, and the The four determining module 536, the first processing unit 54, the comparing unit 55, the second processing unit 56, and the third processing unit 57 may each be a central processing unit (CPU) and a microprocessor located in the wireless data transmitting device ( Micro Processor Unit (MPU), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
- MPU Micro Processor Unit
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- bandwidth acquisition method is implemented in the form of a software function module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium.
- the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
- a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the bandwidth acquisition method in the embodiment of the present invention.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period can be obtained, and the set bandwidth of each ONU in the best effort bandwidth allocation phase is obtained, and according to the set bandwidth and weight.
- Bandwidth determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each cycle, and then add the to-be-added bandwidth token to the ONU to try the bandwidth allocation phase.
- the ONU tries its best to consider the weight bandwidth and set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth, so that the ONU tries its best to allocate the bandwidth.
- the bandwidth of the card bucket solves the problem that the existing ONU can't comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth. It avoids the problem of large bandwidth error and large granularity issued by the DBA, and guarantees the DBA to issue the problem. Bandwidth accuracy and granularity.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed in an embodiment of the present invention is a bandwidth acquiring method. The method comprises: acquiring a weighted bandwidth of each optical network unit (ONU) in a best effort bandwidth allocation stage in each period; acquiring a set bandwidth of each ONU in the best effort bandwidth allocation stage; determining, according to the set bandwidth and the weighted bandwidth, a to-be-added bandwidth token that needs to be added into a token bucket corresponding to each ONU in the best effort bandwidth allocation stage in each period; and adding the to-be-added bandwidth token into the token bucket corresponding to each ONU in the best effort bandwidth allocation stage, and obtaining a bandwidth of the token bucket corresponding to each ONU in the best effort bandwidth allocation stage. Also disclosed in embodiments of the present invention are a bandwidth acquiring apparatus and a storage medium.
Description
本发明涉及光通信领域中的带宽分配技术,尤其涉及一种带宽获取方法和装置、存储介质。The present invention relates to bandwidth allocation technologies in the field of optical communications, and in particular, to a bandwidth acquisition method and apparatus, and a storage medium.
在以太网无源光网络(Ethernet Passive Optical Network,EPON)上行系统中,通常采用动态带宽分配(dynamic bandwidth allocation,DBA)机制来提高系统上行带宽利用率以及保证业务公平性和服务质量(Quality of Service,QOS)。每个DBA调度周期,光线路终端(Optical Line Terminal,OLT)根据相关的配置和光网络单元(Optical Network Unit,ONU)上报的带宽请求动态的下发带宽。按照业务优先级从高到低,带宽类型分为固定带宽、保证带宽和尽力而为带宽。固定带宽针对特定业务,由OLT以较小的轮询周期和较高的频率授权;保证带宽由OLT根据ONU的报告信息授权,属于用户的合约带宽,即使在系统上行流量拥塞时,也要保证用户获得合约授权;尽力而为带宽顾名思义,系统并不保证ONU一定获得,只在上行带宽没有更高优先级的业务占用时,各个ONU按照各自的权重计算能分到的理论带宽。In the Ethernet Passive Optical Network (EPON) uplink system, a dynamic bandwidth allocation (DBA) mechanism is generally adopted to improve the system uplink bandwidth utilization and ensure service fairness and quality of service (Quality of Service, QOS). The optical line terminal (OLT) requests the dynamic bandwidth to be delivered according to the related configuration and the bandwidth reported by the optical network unit (ONU). According to the business priority from high to low, the bandwidth type is divided into fixed bandwidth, guaranteed bandwidth and best effort bandwidth. The fixed bandwidth is for a specific service, and is authorized by the OLT with a small polling period and a higher frequency. The guaranteed bandwidth is authorized by the OLT according to the report information of the ONU, and belongs to the user's contract bandwidth, even when the system uplink traffic is congested. The user obtains the contract authorization; as far as the bandwidth is concerned, the system does not guarantee that the ONU must obtain it. Only when the uplink bandwidth has no higher priority service, each ONU calculates the theoretical bandwidth that can be allocated according to the respective weights.
当然,即使系统上行带宽剩余较大,ONU获得的尽力而为带宽也不应该超过设定的尽力而为带宽。因为尽力而为的权重带宽和设定带宽之间没有必然的联系,所以在下发带宽时既要保证各个ONU之间按权重比例分配的准确性,又不能超过其对应的设定带宽值,现有技术中无法实现两者之间互相制约,从而会存在DBA下发的带宽精度误差大和颗粒度大的问题。
Of course, even if the system's upstream bandwidth is large, the best-effort bandwidth that the ONU obtains should not exceed the set best-effort bandwidth. Because there is no necessary connection between the best-effort weight bandwidth and the set bandwidth, it is necessary to ensure the accuracy of the weight ratio allocation between the ONUs when delivering the bandwidth, and cannot exceed the corresponding set bandwidth value. In the technology, it is impossible to achieve mutual constraint between the two, so that there is a problem that the bandwidth accuracy error and the granularity are large issued by the DBA.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种带宽获取方法和装置、存储介质,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。In order to solve the above technical problem, the embodiment of the present invention is to provide a bandwidth acquisition method and device, and a storage medium, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth, and avoids DBA. The problem of large bandwidth accuracy error and large granularity is guaranteed, and the bandwidth accuracy and granularity issued by the DBA are guaranteed.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种带宽获取方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a bandwidth acquiring method, where the method includes:
获取每个周期中每个光网络单元ONU在尽力而为带宽分配阶段的权重带宽;Obtaining the weight bandwidth of each optical network unit ONU in the best effort bandwidth allocation phase in each cycle;
获取每个所述ONU在尽力而为带宽分配阶段的设定带宽;Obtaining a set bandwidth of each of the ONUs in a best effort bandwidth allocation phase;
根据所述设定带宽和所述权重带宽,确定每个周期中需要添加至每个所述ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;And determining, according to the set bandwidth and the weight bandwidth, a to-be-added bandwidth token in a token bucket corresponding to a bandwidth allocation phase that needs to be added to each of the ONUs in each period;
将所述待添加带宽令牌添加至所述ONU尽力而为带宽分配阶段对应的所述令牌桶中,并得到所述ONU尽力而为带宽分配阶段对应的令牌桶的带宽。Adding the to-be-added bandwidth token to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtaining the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
第二方面,本发明实施例提供一种带宽分配装置,所述装置包括:第一获取单元、第二获取单元、确定单元和第一处理单元;其中:In a second aspect, an embodiment of the present invention provides a bandwidth allocation apparatus, where the apparatus includes: a first acquiring unit, a second acquiring unit, a determining unit, and a first processing unit; wherein:
所述第一获取单元,配置为获取每个周期中每个光网络单元ONU在尽力而为带宽分配阶段的权重带宽;The first acquiring unit is configured to acquire a weight bandwidth of each optical network unit ONU in a best effort bandwidth allocation phase in each period;
所述第二获取单元,配置为获取每个所述ONU在尽力而为带宽分配阶段的设定带宽;The second obtaining unit is configured to acquire a set bandwidth of each of the ONUs in a best effort bandwidth allocation phase;
所述确定单元,配置为根据所述设定带宽和所述权重带宽,确定每个周期中需要添加至每个所述ONU在尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;The determining unit is configured to determine, according to the set bandwidth and the weight bandwidth, a bandwidth to be added in a token bucket corresponding to each of the ONUs in a best effort bandwidth allocation phase. brand;
所述第一处理单元,配置为将所述待添加带宽添加至所述ONU尽力而
为带宽分配阶段对应的所述令牌桶中,并得到所述ONU尽力而为带宽分配阶段对应的令牌桶的带宽。The first processing unit is configured to add the to-be-added bandwidth to the ONU and try its best
The bandwidth of the token bucket corresponding to the bandwidth allocation phase is obtained, and the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained.
第三方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明第一方面实施例提供的带宽获取方法。In a third aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the bandwidth acquisition method provided by the first aspect of the present invention.
本发明实施例所提供的带宽获取方法和装置、存储介质,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth acquisition method and device and the storage medium provided by the embodiments of the present invention can acquire the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each cycle, and obtain the setting of each ONU in the best effort bandwidth allocation phase. The bandwidth is determined, and the bandwidth to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period is determined according to the set bandwidth and the weight bandwidth, and then the bandwidth token to be added is added. To the ONU, try to allocate the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth. The ONU tries its best to allocate the bandwidth of the token bucket corresponding to the bandwidth allocation phase, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth, avoiding the bandwidth accuracy error and the granularity delivered by the DBA. The problem of large degree guarantees the bandwidth accuracy and granularity issued by the DBA.
图1为本发明实施例提供的一种带宽获取方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a bandwidth acquiring method according to an embodiment of the present disclosure;
图2为本发明实施例提供的另一种带宽获取方法的流程示意图;2 is a schematic flowchart of another bandwidth acquisition method according to an embodiment of the present invention;
图3为本发明实施例提供的又一种带宽获取方法的流程示意图;FIG. 3 is a schematic flowchart of still another method for acquiring a bandwidth according to an embodiment of the present disclosure;
图4为本发明另一实施例提供的一种带宽获取方法的流程示意图;FIG. 4 is a schematic flowchart diagram of a bandwidth acquiring method according to another embodiment of the present disclosure;
图5为本发明实施例提供的一种带宽获取装置的结构示意图;FIG. 5 is a schematic structural diagram of a bandwidth acquiring apparatus according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种带宽获取装置的结构示意图;FIG. 6 is a schematic structural diagram of another bandwidth acquiring apparatus according to an embodiment of the present disclosure;
图7为本发明实施例提供的又一种带宽获取装置的结构示意图;FIG. 7 is a schematic structural diagram of still another bandwidth acquiring apparatus according to an embodiment of the present disclosure;
图8为本发明另一实施例提供的一种带宽获取装置的结构示意图;
FIG. 8 is a schematic structural diagram of a bandwidth acquiring apparatus according to another embodiment of the present invention;
图9为本发明另一实施例提供的另一种带宽获取装置的结构示意图;FIG. 9 is a schematic structural diagram of another bandwidth acquiring apparatus according to another embodiment of the present invention;
图10为本发明另一实施例提供的又一种带宽获取装置的结构示意图;FIG. 10 is a schematic structural diagram of still another bandwidth acquiring apparatus according to another embodiment of the present invention;
图11为本发明又一实施例提供的一种带宽获取装置的结构示意图。FIG. 11 is a schematic structural diagram of a bandwidth acquiring apparatus according to another embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例提供一种带宽获取方法,该方法应用于ONU在尽力而为带宽分配阶段的带宽分配过程中,参照图1所示,该方法包括以下步骤:An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 1, the method includes the following steps:
步骤101、获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽。Step 101: Obtain a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each cycle.
在本发明的其他实施例中,步骤获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽可以由带宽获取装置来实现。ONU在进行完固定带宽分配和保证带宽分配之后,如果带宽请求没有被完全满足,可以进入尽力而为带宽分配阶段,每个周期中的每个ONU在尽力而为带宽分配阶段的权重带宽是不同的,是可以根据每个ONU各自的权重计算得到的能分到的理论带宽。In other embodiments of the present invention, the step of obtaining the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each cycle may be implemented by the bandwidth acquisition device. After the ONU completes the fixed bandwidth allocation and guarantees the bandwidth allocation, if the bandwidth request is not fully satisfied, it can enter the best effort bandwidth allocation phase. Each ONU in each cycle has different weight bandwidths in the best effort bandwidth allocation phase. It is the theoretical bandwidth that can be calculated according to the weight of each ONU.
步骤102、获取每个ONU在尽力而为带宽分配阶段的设定带宽。Step 102: Acquire a set bandwidth of each ONU in a best effort bandwidth allocation phase.
在本发明的其他实施例中,步骤获取每个ONU在尽力而为带宽分配阶段的设定带宽可以由带宽获取装置来实现,每个ONU在不同周期中的设定带宽的大小是相同的。设定带宽决定了ONU在尽力而为带宽分配阶段能达到的峰值速率,权重带宽是每个周期的理论计算,可以比设定带宽大,也可以比设定带宽小;但是,进行带宽分配的时候要求权重带宽的值不能大于设定带宽的值。In other embodiments of the present invention, the step of obtaining the set bandwidth of each ONU in the best effort bandwidth allocation phase may be implemented by the bandwidth acquisition device, and the size of the set bandwidth of each ONU in different cycles is the same. The set bandwidth determines the peak rate that the ONU can reach in the best effort bandwidth allocation phase. The weight bandwidth is the theoretical calculation of each period, which can be larger than the set bandwidth or smaller than the set bandwidth; however, the bandwidth allocation is performed. It is required that the value of the weighted bandwidth cannot be greater than the value of the set bandwidth.
步骤103、根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。
Step 103: Determine, according to the set bandwidth and the weight bandwidth, the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase that needs to be added to each ONU in each period.
在本发明的其他实施例中,步骤根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌可以由带宽获取装置来实现。可以通过比较设定带宽和权重带宽的大小,并根据判断结果决定能够添加至ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。In other embodiments of the present invention, the step determines, according to the set bandwidth and the weight bandwidth, the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase that needs to be added to each ONU in each cycle. Get the device to implement. By comparing the size of the set bandwidth and the weight bandwidth, and determining the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase according to the judgment result, it can be added to the ONU.
步骤104、将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中,得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽。Step 104: Add the bandwidth token to be added to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtain the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
在本发明的其他实施例中,带宽分配包含4个阶段:其中固定带宽分配采用带宽分配周期可配置,间隔周期下发一次带宽的形式进行。在分配保证带宽和尽力而为带宽前,会从上行接收模块收集来自ONU上报的报告REPORT消息,该消息包含了ONU缓存数据的真实报告值,一般以一个或多个队列集表示,例如reqN,且req0>=req1>=……>=reqN。为了保证用户购买的带宽得到保证,保证带宽和尽力而为带宽会以令牌的形式存到相应的令牌桶里。保证带宽分配阶段,DBA会根据各个ONU上报的报告值从大到小依次与其令牌桶的令牌比较,尽可能按照数值大的队列集下发。经过固定带宽和保证带宽分配后剩下的带宽,如果有些ONU的请求值没有被满足,DBA会按照一定的权重比例将剩余带宽分配给各个ONU,称之为权重带宽(BW),但权重带宽只是ONU分配剩余带宽的理论值,它决定了各个ONU按权重比例分配的准确性;另外尽力而带宽还有一个设定带宽,设定带宽决定了ONU的峰值速率。In other embodiments of the present invention, the bandwidth allocation includes four phases: wherein the fixed bandwidth allocation is performed in a form in which the bandwidth allocation period is configurable and the interval period is sent once. Before the guaranteed bandwidth and the best-effort bandwidth are allocated, the report REPORT message reported by the ONU is collected from the uplink receiving module, and the message includes the true report value of the ONU cache data, which is generally represented by one or more queue sets, such as reqN. And req0>=req1>=...>=reqN. In order to ensure that the bandwidth purchased by the user is guaranteed, the guaranteed bandwidth and best-effort bandwidth will be stored in the corresponding token bucket in the form of tokens. During the bandwidth allocation phase, the DBA compares the report values reported by the ONUs with the tokens of the token buckets in the order of the maximum number of queues. After the bandwidth is fixed and the bandwidth remaining after the bandwidth allocation is guaranteed, if the request value of some ONUs is not met, the DBA allocates the remaining bandwidth to each ONU according to a certain weight ratio, which is called weight bandwidth (BW), but the weight bandwidth. It is only the theoretical value of the ONU's allocated remaining bandwidth, which determines the accuracy of the allocation of each ONU by weight. In addition, the bandwidth and the bandwidth have a set bandwidth. The set bandwidth determines the peak rate of the ONU.
尽力而为带宽分配阶段的设定带宽是一个固定值,即E桶每个周期都填充固定的令牌。而权重带宽指每个DBA周期各个ONU理论能分到的剩余带宽,它每个周期都在动态变化。如果某个周期ONU处于轻载状态下,在经过固定带宽和保证带宽后,会有大量的剩余带宽,ONU计算得到的权重带宽很大;如果某个周期ONU处于重载状态下,在经过固定带宽和保证
带宽后,剩余带宽不多,ONU计算得到的权重带宽就很小。The set bandwidth of the best effort bandwidth allocation phase is a fixed value, that is, the E bucket is filled with a fixed token every cycle. The weight bandwidth refers to the remaining bandwidth that each ONU theory can divide in each DBA cycle, and it changes dynamically every cycle. If the ONU is in a light load state for a certain period, after a fixed bandwidth and a guaranteed bandwidth, there will be a large amount of remaining bandwidth. The weight bandwidth calculated by the ONU is large. If the ONU is in a heavy state for a certain period, it is fixed. Bandwidth and guarantee
After the bandwidth, the remaining bandwidth is not much, and the weight bandwidth calculated by the ONU is small.
本发明实施例所提供的带宽获取方法,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU. In the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU. The bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA. The bandwidth accuracy and granularity delivered by the DBA are guaranteed.
本发明的实施例提供一种带宽获取方法,该方法应用于ONU在尽力而为带宽分配阶段的带宽分配过程中,参照图2所示,该方法包括以下步骤:An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 2, the method includes the following steps:
步骤201、带宽获取装置获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽。Step 201: The bandwidth acquiring apparatus acquires a weight bandwidth of each ONU in each cycle in the best effort bandwidth allocation phase.
步骤202、带宽获取装置获取每个ONU在尽力而为带宽分配阶段的设定带宽。Step 202: The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
步骤203、带宽获取装置判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系。Step 203: The bandwidth acquiring apparatus determines a relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i-th cycle.
其中,步骤203判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系之后,可以根据权重带宽和设定带宽之间的大小关系选择执行步骤204或者步骤205; Step 203, after determining the size relationship between the weight bandwidth of the jth ONU and the set bandwidth in the i-th cycle, step 204 or step 205 may be selected according to the size relationship between the weighted bandwidth and the set bandwidth;
步骤204、若第i周期中第j个ONU的权重带宽大于第i周期中第j个ONU的设定带宽,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的
设定带宽令牌。Step 204: If the weight bandwidth of the jth ONU in the i-th cycle is greater than the set bandwidth of the jth ONU in the i-th cycle, the bandwidth obtaining apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort bandwidth allocation. The bandwidth token to be added in the token bucket corresponding to the phase is the jth ONU.
Set the bandwidth token.
在本发明的其他实施例中,当某一周期的ONU计算得到的权重带宽很大,甚至大于设定的设定带宽的时候,这个周期应该往尽力而为带宽分配阶段对应的令牌桶中添加设定带宽令牌,保证尽力而为带宽分配阶段对应的令牌桶下发的带宽接近但不超过设定带宽设定的峰值速率。In other embodiments of the present invention, when the weight bandwidth calculated by the ONU of a certain period is large, even larger than the set bandwidth, the period should be the best in the token bucket corresponding to the bandwidth allocation phase. Add a bandwidth token to ensure that the bandwidth delivered by the token bucket corresponding to the best-effort bandwidth allocation phase is close to but not exceeding the peak rate set by the set bandwidth.
步骤205、若第i周期中第j个ONU的权重带宽小于或者等于第i周期中j个ONU的设定带宽,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第i周期中第j个ONU的权重带宽令牌。Step 205: If the weight bandwidth of the jth ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle, the bandwidth acquiring apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort. The bandwidth token to be added in the token bucket corresponding to the allocation phase is the weight bandwidth token of the jth ONU in the i th period.
在本发明的其他实施例中,某些DBA周期中ONU经过固定带宽和保证带宽的分配之后,到尽力而为带宽分配阶段时计算得到的权重带宽很小,这个周期就应该往尽力而为带宽分配阶段对应的令牌桶中添加权重带宽令牌,保证比例准确。In other embodiments of the present invention, after the allocation of the fixed bandwidth and the guaranteed bandwidth by the ONU in some DBA cycles, the weighted bandwidth calculated in the best-effort bandwidth allocation phase is small, and the cycle should be as much as possible. A weight bandwidth token is added to the token bucket corresponding to the allocation phase to ensure an accurate ratio.
本实施例中提供的带宽获取方法不是先往E桶添加设定带宽令牌,在下发带宽时再与其权重带宽进行比较,而是采用动态的添加E桶令牌,使得带宽精度的保证点提前到了漏桶添加令牌的阶段,有效保证了带宽的精度和颗粒度。The bandwidth acquisition method provided in this embodiment does not first add a set bandwidth token to the E bucket, and compares it with the weight bandwidth when the bandwidth is delivered, but dynamically adds the E bucket token, so that the guarantee point of the bandwidth precision is advanced. At the stage of adding a token to the leaky bucket, the accuracy and granularity of the bandwidth are effectively guaranteed.
需要说明的是,本实施例中与上述实施例相同步骤的解释可以参照上述实施例中的描述,此处不再赘述。It should be noted that the explanation of the same steps in the foregoing embodiments as the above embodiments may be referred to the description in the foregoing embodiments, and details are not described herein again.
本发明实施例所提供的带宽获取方法,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设
定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU. In the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and setting of the ONU for the bandwidth allocation phase.
The bandwidth is balanced, and the relationship between the weight bandwidth of the ONU and the set bandwidth is balanced. The bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained, which solves the problem that the existing ONU cannot fully consider the weight bandwidth when trying to allocate bandwidth. The problem of setting the bandwidth factor avoids the problem of large bandwidth error and large granularity issued by the DBA, and ensures the bandwidth accuracy and granularity issued by the DBA.
本发明的实施例提供一种带宽获取方法,该方法应用于ONU在尽力而为带宽分配阶段的带宽分配过程中,参照图3所示,该方法包括以下步骤:An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 3, the method includes the following steps:
步骤301、带宽获取装置获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽。Step 301: The bandwidth acquiring apparatus acquires a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each period.
步骤302、带宽获取装置获取每个ONU在尽力而为带宽分配阶段的设定带宽。Step 302: The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
步骤303、带宽获取装置判断第i周期第j个ONU的权重带宽是否为零。Step 303: The bandwidth acquiring apparatus determines whether the weight bandwidth of the jth ONU in the i th period is zero.
步骤304、若第i周期第j个ONU的权重带宽为零,则带宽获取装置根据添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。Step 304: If the weight bandwidth of the jth ONU in the i-th cycle is zero, the bandwidth acquiring apparatus allocates the bandwidth to be added in the token bucket corresponding to the bandwidth allocation phase according to the best effort added to the jth ONU in the i-1th cycle. The token is determined to be added to the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle.
其中,如果固定带宽和保证带宽分配阶段已经满足了ONU上报的请求值,这些ONU到了尽力而为带宽分配阶段,计算的权重带宽为0,或者到了尽力而为带宽分配阶段剩余带宽已经分完,此时,可以按照上个DBA周期的对应ONU尽力而为带宽分配阶段的带宽分配情况来决定往E桶添加设定带宽令牌或者权重带宽令牌,因为ONU流量的变化,在一个微秒级的时间段内,应该是一个渐变的过程。If the fixed bandwidth and the guaranteed bandwidth allocation phase have met the request value reported by the ONU, the ONUs go to the best effort bandwidth allocation stage, and the calculated weight bandwidth is 0, or the remaining bandwidth of the best effort bandwidth allocation phase has been divided. At this time, it is possible to determine to add a set bandwidth token or a weight bandwidth token to the E bucket according to the bandwidth allocation of the bandwidth allocation phase according to the corresponding ONU of the last DBA cycle, because the ONU traffic changes in a microsecond level. The time period should be a gradual process.
在本发明的其他实施例中,步骤304可以通过以下方式来实现:In other embodiments of the invention, step 304 can be implemented in the following manner:
步骤304a、若第i周期中第j个ONU的权重带宽为零,则带宽获取装置获取添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌
桶中的待添加带宽令牌。 Step 304a: If the weight bandwidth of the jth ONU in the i-th cycle is zero, the bandwidth acquiring apparatus acquires the token corresponding to the bandwidth allocation phase added to the jth ONU in the i-1th cycle.
The bandwidth token to be added in the bucket.
步骤304b、若添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为权重带宽令牌,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第i周期中第j个ONU的权重带宽令牌。In step 304b, if the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the weight bandwidth token added to the jth ONU in the i-1th cycle, the bandwidth acquiring device determines that it needs to be added to the i th The to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the cycle is the weighted bandwidth token of the jth ONU in the i-th cycle.
步骤304c、若添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为设定带宽令牌,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。In step 304c, if the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token, the bandwidth acquiring device determines that it needs to be added to the first The j-th ONU in the i-cycle tries to set the bandwidth token of the j-th ONU in the token bucket corresponding to the bandwidth allocation phase.
在本发明的其他实施例中,经过固定带宽和保证带宽分配之后,如果剩余带宽为0,需要判断是否需要往尽力而为带宽分配阶段对应的令牌桶添加设定带宽令牌。虽然此时各个ONU计算的权重带宽为0,但并不代表所有的ONU都超过了其峰值速率,所以要参考前一个周期的分配规则:如果前一个周期,某个ONU的尽力而为带宽分配阶段对应的令牌桶中添加了权重带宽令牌,该周期不添加令牌(因为该周期下的权重带宽为零),表示为:如果前一个周期中token_ei-1=token_ei-2+bwi-1,那么token_ei=token_ei-1;如果前一个周期,某个ONU的尽力而为带宽分配阶段对应的令牌桶中添加设定带宽令牌,该周期尽力而为带宽分配阶段对应的令牌桶应添加设定带宽令牌,表示为:如果token_ei-1=token_ei-2+ebw,那么,token_ei=token_ei-1+ebw。添加令牌后,结束带宽分配。In other embodiments of the present invention, after the fixed bandwidth and the guaranteed bandwidth allocation, if the remaining bandwidth is 0, it is necessary to determine whether it is necessary to add the set bandwidth token to the token bucket corresponding to the bandwidth allocation phase. Although the weight bandwidth calculated by each ONU is 0 at this time, it does not mean that all ONUs exceed their peak rates. Therefore, it is necessary to refer to the allocation rule of the previous cycle: if the previous cycle, the best effort bandwidth allocation of an ONU A weighted bandwidth token is added to the token bucket corresponding to the phase. The token is not added (because the weight bandwidth is zero in the period), which is expressed as: if the token_e i-1 =token_e i-2 + in the previous cycle Bw i-1 , then token_e i =token_e i-1 ; if the previous cycle, add a bandwidth token to the token bucket corresponding to the best effort bandwidth allocation phase of an ONU, the cycle is the best bandwidth allocation phase The corresponding token bucket should be added with a set bandwidth token, expressed as: if token_e i-1 =token_e i-2 +ebw, then token_e i =token_e i-1 +ebw. After adding the token, the bandwidth allocation ends.
需要说明的是,本实施例中与上述实施例相同步骤的解释可以参照上述实施例中的描述,此处不再赘述。It should be noted that the explanation of the same steps in the foregoing embodiments as the above embodiments may be referred to the description in the foregoing embodiments, and details are not described herein again.
本发明实施例所提供的带宽获取方法,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要
添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set bandwidth and weight bandwidth to determine what is needed in each cycle
Adding a bandwidth token to be added to the token bucket corresponding to the bandwidth allocation phase of each ONU, and then adding the to-be-added bandwidth token to the token bucket corresponding to the ONU's best effort bandwidth allocation phase; thus, the ONU In the best-effort bandwidth allocation phase, the weight bandwidth and the set bandwidth of the ONU are comprehensively considered, and the relationship between the weight bandwidth of the ONU and the set bandwidth is balanced, and the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU is obtained. When the ONU tries its best to allocate bandwidth, it cannot comprehensively consider the weight bandwidth and the bandwidth factor. It avoids the problem of large bandwidth error and large granularity issued by the DBA, and ensures the bandwidth accuracy and granularity delivered by the DBA.
本发明实施例提供一种带宽获取方法,该方法应用于ONU在尽力而为带宽分配阶段的带宽分配过程中,参照图4所示,该方法包括以下步骤:An embodiment of the present invention provides a bandwidth acquisition method, which is applied to a bandwidth allocation process of an ONU in a best effort bandwidth allocation phase. Referring to FIG. 4, the method includes the following steps:
步骤401、带宽获取装置获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽。Step 401: The bandwidth obtaining apparatus acquires a weight bandwidth of each ONU in a best effort bandwidth allocation phase in each period.
步骤402、带宽获取装置获取每个ONU在尽力而为带宽分配阶段的设定带宽。Step 402: The bandwidth acquiring apparatus acquires a set bandwidth of each ONU in a best effort bandwidth allocation phase.
步骤403、带宽获取装置判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系。Step 403: The bandwidth acquiring apparatus determines a size relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i th period.
其中,步骤403判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系之后,可以根据权重带宽和设定带宽的大小关系选择执行步骤404或者步骤405;Step 403: After determining the relationship between the weight bandwidth of the jth ONU and the set bandwidth in the ith cycle, step 404 or step 405 may be selected according to the relationship between the weight bandwidth and the set bandwidth;
步骤404、若第i周期中第j个ONU的权重带宽大于第i周期中第j个ONU的设定带宽,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。Step 404: If the weight bandwidth of the jth ONU in the i-th cycle is greater than the set bandwidth of the jth ONU in the i-th cycle, the bandwidth obtaining apparatus determines that the j-th ONU in the i-th cycle needs to be added to the best effort bandwidth allocation. The bandwidth token to be added in the token bucket corresponding to the phase is the set bandwidth token of the jth ONU.
步骤405、若第i周期中第j个ONU的权重带宽小于或者等于第i周期中j个ONU的设定带宽,则带宽获取装置确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第i周
期中第j个ONU的权重带宽令牌。Step 405: If the weight bandwidth of the jth ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle, the bandwidth acquiring apparatus determines that the j-th ONU needs to be added to the i-th cycle. The bandwidth token to be added in the token bucket corresponding to the allocation phase is the i-th week.
The weighted bandwidth token of the jth ONU in the period.
步骤406、带宽获取装置比较第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽与第i周期中第j个ONU上报的队列集之间的大小关系。Step 406: The bandwidth obtaining device compares the size relationship between the bandwidth of the token bucket corresponding to the bandwidth allocation phase and the queue set reported by the jth ONU in the i-th cycle in the i-th cycle.
其中,步骤406之后可以选择执行步骤407或者步骤408;Step 406 may be followed by step 407 or step 408;
步骤407、若第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽大于或者等于第i周期中第j个ONU上报的队列集中的最大带宽,则带宽获取装置将第i周期中第j个ONU上报的队列集中的最大带宽作为下发分配带宽。Step 407: If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is greater than or equal to the maximum bandwidth of the queue set reported by the jth ONU in the i-th cycle, the bandwidth acquiring device will be the first The maximum bandwidth in the queue set reported by the jth ONU in the i period is the allocated bandwidth.
步骤408、若第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽小于第i周期中第j个ONU上报的队列集中的最小带宽,则带宽获取装置不进行带宽分配。Step 408: If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is less than the minimum bandwidth of the queue set in the jth ONU in the i-th cycle, the bandwidth acquiring device does not perform bandwidth allocation. .
其中,按照标准的流量监管算法,采用双漏桶双速率实现动态带宽分配进行说明:在带宽分配之前,DBA先计算固定带宽、保证带宽和尽力而为带宽对应的令牌,其中固定带宽为固定比特率(Fixed Information Rate,FIR),宝恒带宽为保证带宽比特率(Commited Information Rate,CIR)和设定带宽为峰值比特率(Peak Information Rate,PIR)。各个带宽与各个带宽令牌之间的关系如下:According to the standard traffic policing algorithm, the dynamic bandwidth allocation is implemented by double-drain bucket dual-rate. Before the bandwidth allocation, the DBA first calculates the fixed bandwidth, the guaranteed bandwidth, and the token corresponding to the best-effort bandwidth, where the fixed bandwidth is fixed. The Fixed Information Rate (FIR), the guaranteed bandwidth information (CIR) and the set bandwidth are the Peak Information Rate (PIR). The relationship between each bandwidth and each bandwidth token is as follows:
固定带宽令牌FBW=FIR*DBA周期/16;保证带宽令牌CBW=(CIR-FIR)*DBA周期/16;尽力而为带宽令牌EBW=(PIR-CIR)*DBA周期/16;权重带宽令牌:其中,bwi表示各个ONU的权重带宽;wi表示各个ONU的权重;surplus_bw表示经过固定带宽和保证带宽分配后的剩余带宽。Fixed bandwidth token FBW=FIR*DBA period/16; guaranteed bandwidth token CBW=(CIR-FIR)*DBA period/16; best effort bandwidth token EBW=(PIR-CIR)*DBA period/16; weight Bandwidth token: Where bw i represents the weight bandwidth of each ONU; w i represents the weight of each ONU; and surplus_bw represents the remaining bandwidth after the fixed bandwidth and guaranteed bandwidth allocation.
各种带宽的令牌计算完成后,就进入带宽分配的阶段。固定带宽按周期可配置的方法,间隔周期下发一次带宽;保证带宽分配阶段往漏桶填充
保证带宽令牌CBW,然后根据ONU上报值的队列集req1~reqN,依次从大到小顺序比较保证带宽令牌桶带宽token_c与队列集带宽req之间的大小关系,满足较大的队列集中的带宽值,并计算ONU的未被满足的带宽申请值req_r;例如req3<token_c<req4,那么实际下发的带宽act_c=req3,req_r=token_c-req3。After the calculation of the tokens of various bandwidths is completed, the phase of bandwidth allocation is entered. The fixed bandwidth is configurable according to the period, and the bandwidth is sent once in the interval period; the bandwidth allocation phase is guaranteed to be filled into the leaky bucket.
The bandwidth token CBW is guaranteed, and then according to the queue set req1 to reqN reported by the ONU, the size relationship between the bandwidth token bucket bandwidth token_c and the queue set bandwidth req is compared in order from large to small, and the larger queue set is satisfied. The bandwidth value is calculated, and the unsatisfied bandwidth request value req_r of the ONU is calculated; for example, req3<token_c<req4, then the actually delivered bandwidth act_c=req3, req_r=token_c-req3.
在进入尽力而为带宽分配阶段,此时req没有被满足的ONU在尽力而为阶段计算各自的权重值,并比较各自的设定带宽ebw,如果权重带宽bwi<ebw,那么往尽力而为带宽分配阶段对应的令牌桶添加bwi,token_ei=token_ei-1+bwi;如果ebw<=bwi,那么往尽力而为带宽分配阶段对应的令牌桶中添加ebw;此时,尽力而为带宽分配阶段对应的令牌桶的带宽token_ei=token_ei-1+ebw。添加令牌后,进入分配带宽,直接比较令牌桶的带宽和req_r之间的关系。如果req_r<=token_e,那么act_e=req_r,下发后令牌桶中的带宽token_e’=token_e-req_r;否则,act_e=0,token_e’=token_e。In the stage of entering the best effort bandwidth allocation, the ONUs whose req is not satisfied at this time calculate their respective weight values in the best effort phase, and compare the respective set bandwidth ebw. If the weight bandwidth bw i <ebw, then try to do its best. The token bucket corresponding to the bandwidth allocation phase adds bw i , token_e i =token_e i-1 +bw i ; if ebw<=bw i , then ebw is added to the token bucket corresponding to the best effort bandwidth allocation phase; The bandwidth of the token bucket corresponding to the best effort bandwidth allocation phase token_e i =token_e i-1 +ebw. After adding a token, enter the allocated bandwidth and directly compare the relationship between the bandwidth of the token bucket and req_r. If req_r<=token_e, then act_e=req_r, the bandwidth token_e'=token_e-req_r in the token bucket after delivery; otherwise, act_e=0, token_e'=token_e.
需要说明的是,本实施例中与上述实施例相同步骤的解释可以参照上述实施例中的描述,此处不再赘述。It should be noted that the explanation of the same steps in the foregoing embodiments as the above embodiments may be referred to the description in the foregoing embodiments, and details are not described herein again.
本发明实施例所提供的带宽获取方法,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。
The bandwidth acquisition method provided by the embodiment of the present invention can obtain the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU. In the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU. The bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA. The bandwidth accuracy and granularity delivered by the DBA are guaranteed.
本发明实施例提供一种带宽获取装置,可以应用于图1~4对应的实施例提供的一种带宽获取方法中,参照图5所示,该装置包括:第一获取单元51、第二获取单元52、确定单元53和第一处理单元54,其中:The embodiment of the present invention provides a bandwidth acquisition apparatus, which can be applied to a bandwidth acquisition method according to the embodiment of the present invention. Referring to FIG. 5, the apparatus includes: a first acquisition unit 51, and a second acquisition. Unit 52, determining unit 53 and first processing unit 54, wherein:
第一获取单元51,配置为获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽。The first obtaining unit 51 is configured to acquire a weight bandwidth of each ONU in each cycle in the best effort bandwidth allocation phase.
第二获取单元52,配置为获取每个ONU在尽力而为带宽分配阶段的设定带宽。The second obtaining unit 52 is configured to acquire a set bandwidth of each ONU in a best effort bandwidth allocation phase.
确定单元53,配置为根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU在尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。The determining unit 53 is configured to determine, according to the set bandwidth and the weight bandwidth, the to-be-added bandwidth token in the token bucket corresponding to each ONU in the best effort bandwidth allocation phase.
第一处理单元54,配置为将待添加带宽添加至ONU尽力而为带宽分配阶段对应的令牌桶中,并得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽。The first processing unit 54 is configured to add the bandwidth to be added to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtain the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
本发明实施例所提供的带宽获取装置,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth obtaining apparatus provided by the embodiment of the present invention can acquire the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period, and obtain the set bandwidth of each ONU in the best effort bandwidth allocation phase, and according to Set the bandwidth and the weight bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each period, and then add the bandwidth token to be added to the ONU. In the token bucket corresponding to the bandwidth allocation phase; thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth to obtain the bandwidth of the ONU. The bandwidth of the token bucket corresponding to the allocation phase solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the problem of large bandwidth accuracy error and large granularity issued by the DBA. The bandwidth accuracy and granularity delivered by the DBA are guaranteed.
在本发明的其他实施例中,参照图6所示,确定单元53包括:判断模块531和第一确定模块532,其中:
In other embodiments of the present invention, referring to FIG. 6, the determining unit 53 includes: a determining module 531 and a first determining module 532, wherein:
判断模块531,配置为判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系。The determining module 531 is configured to determine the size relationship between the weight bandwidth of the jth ONU and the set bandwidth in the i-th cycle.
第一确定模块532,配置为若第i周期中第j个ONU的权重带宽大于第i周期中第j个ONU的设定带宽,则确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。The first determining module 532 is configured to determine that the j-th ONU in the i-th cycle is greater than the set bandwidth of the j-th ONU in the i-th cycle, and then determine that the j-th ONU needs to be added to the i-th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token of the jth ONU.
在本发明的其他实施例中,参照图7所示,确定单元53还包括:第二确定模块533,其中:In other embodiments of the present invention, referring to FIG. 7, the determining unit 53 further includes: a second determining module 533, wherein:
第二确定模块533,配置为若第i周期中第j个ONU的权重带宽小于或者等于第i周期中j个ONU的设定带宽,则确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第i周期中第j个ONU的权重带宽令牌。The second determining module 533 is configured to determine that the jth ONU in the i-th cycle needs to be added to the j-th ONU in the i-th cycle if the weight bandwidth of the j-th ONU in the i-th cycle is less than or equal to the set bandwidth of the j ONUs in the i-th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the weight bandwidth token of the jth ONU in the i th period.
在本发明的其他实施例中,确定单元53配置为执行以下步骤:In other embodiments of the invention, the determining unit 53 is configured to perform the following steps:
若第i周期第j个ONU的权重带宽为零,则根据添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。If the weight bandwidth of the jth ONU in the i-th cycle is zero, the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase added to the jth ONU in the i-1th cycle is determined to be added. The jth ONU in the i-th cycle tries to add the bandwidth token in the token bucket corresponding to the bandwidth allocation phase.
在本发明的其他实施例中,参照图8所示,确定单元53还包括:获取模块534和第三确定模块535,其中:In other embodiments of the present invention, referring to FIG. 8, the determining unit 53 further includes: an obtaining module 534 and a third determining module 535, wherein:
获取模块534,配置为若第i周期中第j个ONU的权重带宽为零,则获取添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。The obtaining module 534 is configured to: if the weight bandwidth of the jth ONU in the i-th cycle is zero, obtain the to-be-added in the token bucket corresponding to the bandwidth allocation phase added to the j-th ONU in the i-1th cycle Bandwidth token.
第三确定模块535,配置为若添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为权重带宽令牌,则确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中
的待添加带宽令牌为第i周期中第j个ONU的权重带宽令牌。The third determining module 535 is configured to be added to the weighted bandwidth token in the token bucket corresponding to the bandwidth allocation phase if it is added to the jth ONU in the i-1th period In the i-th cycle, the jth ONU tries its best to the token bucket corresponding to the bandwidth allocation phase.
The to-be-added bandwidth token is the weighted bandwidth token of the jth ONU in the i-th cycle.
在本发明的其他实施例中,参照图9所示,确定单元53还包括:第四确定模块536,其中:In other embodiments of the present invention, referring to FIG. 9, the determining unit 53 further includes: a fourth determining module 536, wherein:
第四确定模块536,配置为若添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为设定带宽令牌,则确定需要添加至第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。The fourth determining module 536 is configured to determine that the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token, if it is added to the jth ONU in the i-1th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle is the set bandwidth token of the j-th ONU.
在本发明的其他实施例中,参照图10所示,该装置还包括:比较单元55和第二处理单元56,其中:In other embodiments of the present invention, as shown in FIG. 10, the apparatus further includes: a comparing unit 55 and a second processing unit 56, wherein:
比较单元55,配置为比较第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽与第i周期中第j个ONU上报的队列集之间的大小关系。The comparing unit 55 is configured to compare the size relationship between the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle and the queue set reported by the jth ONU in the i-th cycle.
第二处理单元56,配置为若第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽大于或者等于第i周期中第j个ONU上报的队列集中的最大带宽,则将第i周期中第j个ONU上报的队列集中的最大带宽作为下发分配带宽。The second processing unit 56 is configured to: if the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is greater than or equal to the maximum bandwidth of the queue set reported by the jth ONU in the i-th cycle, The maximum bandwidth in the queue set reported by the jth ONU in the i-th cycle is used as the allocated bandwidth.
在本发明的其他实施例中,参照图11所示,该装置还包括:第三处理单元57,其中:In other embodiments of the present invention, referring to FIG. 11, the apparatus further includes: a third processing unit 57, wherein:
第三处理单元57,配置为若第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽小于第i周期中第j个ONU上报的队列集中的最小带宽,则不进行带宽分配。The third processing unit 57 is configured to: if the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is less than the minimum bandwidth in the queue set reported by the jth ONU in the i-th cycle, the third processing unit 57 is configured not to perform Bandwidth allocation.
需要说明的是,本实施例中各个单元之间的交互过程可以参照图1~4对应的实施例提供的一种带宽获取方法中的交互过程,此处不再赘述。It should be noted that, in the process of the interaction between the units in this embodiment, the interaction process in the bandwidth acquisition method provided by the embodiment corresponding to the embodiment of FIG. 1 to FIG.
本发明实施例所提供的带宽获取装置,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽
分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。The bandwidth obtaining apparatus provided by the embodiment of the present invention can acquire the weight bandwidth of each ONU in the bandwidth allocation phase of each best effort in each period, and acquire the bandwidth of each ONU in the best effort.
The bandwidth to be added in the token bucket of the allocation phase is determined according to the set bandwidth and the weight bandwidth, and the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each cycle is determined, and then to be added. The bandwidth token is added to the token bucket corresponding to the bandwidth allocation phase of the ONU; thus, the ONU tries its best to consider the weight bandwidth and the set bandwidth of the ONU in the bandwidth allocation phase, and balances the weight bandwidth and the set bandwidth of the ONU. The relationship between the ONB and the token bucket corresponding to the bandwidth allocation phase of the ONU is solved, which solves the problem that the existing ONU cannot comprehensively consider the weight bandwidth and the bandwidth factor when trying to allocate bandwidth, and avoids the bandwidth delivered by the DBA. The problem of large precision error and large granularity ensures the bandwidth accuracy and granularity issued by the DBA.
在实际应用中,所述第一获取单元51、第二获取单元52、确定单元53、判断模块531、第一确定模块532、第二确定模块533、获取模块534、第三确定模块535、第四确定模块536、第一处理单元54、比较单元55、第二处理单元56和第三处理单元57均可由位于无线数据发送设备中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the first obtaining unit 51, the second obtaining unit 52, the determining unit 53, the determining module 531, the first determining module 532, the second determining module 533, the obtaining module 534, the third determining module 535, and the The four determining module 536, the first processing unit 54, the comparing unit 55, the second processing unit 56, and the third processing unit 57 may each be a central processing unit (CPU) and a microprocessor located in the wireless data transmitting device ( Micro Processor Unit (MPU), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的带宽获取方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
It should be noted that, in the embodiment of the present invention, if the foregoing bandwidth acquisition method is implemented in the form of a software function module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例中带宽获取方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the bandwidth acquisition method in the embodiment of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
本发明实施例中,能够获取每个周期中每个ONU在尽力而为带宽分配阶段的权重带宽,以及获取每个ONU在尽力而为带宽分配阶段的设定带宽,并根据设定带宽和权重带宽,确定每个周期中需要添加至每个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,之后将待添加带宽令牌添加至ONU尽力而为带宽分配阶段对应的令牌桶中;这样,ONU尽力而为带宽分配阶段综合考虑ONU的权重带宽和设定带宽,并平衡ONU的权重带宽和设定带宽之间的关系得到ONU尽力而为带宽分配阶段对应的令牌桶的带宽,解决了现有ONU尽力而为带宽分配时无法综合考虑权重带宽和设定带宽因素的问题,避免出现DBA下发的带宽精度误差大和颗粒度大的问题,保证了DBA下发的带宽精度和颗粒度。
In the embodiment of the present invention, the weight bandwidth of each ONU in the best effort bandwidth allocation phase in each period can be obtained, and the set bandwidth of each ONU in the best effort bandwidth allocation phase is obtained, and according to the set bandwidth and weight. Bandwidth, determine the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of each ONU in each cycle, and then add the to-be-added bandwidth token to the ONU to try the bandwidth allocation phase. In the token bucket, the ONU tries its best to consider the weight bandwidth and set bandwidth of the ONU in the bandwidth allocation phase, and balances the relationship between the weight bandwidth of the ONU and the set bandwidth, so that the ONU tries its best to allocate the bandwidth. The bandwidth of the card bucket solves the problem that the existing ONU can't comprehensively consider the weight bandwidth and the bandwidth setting when trying to allocate bandwidth. It avoids the problem of large bandwidth error and large granularity issued by the DBA, and guarantees the DBA to issue the problem. Bandwidth accuracy and granularity.
Claims (17)
- 一种带宽获取方法,所述方法包括:A bandwidth acquisition method, the method comprising:获取每个周期中每个光网络单元ONU在尽力而为带宽分配阶段的权重带宽;Obtaining the weight bandwidth of each optical network unit ONU in the best effort bandwidth allocation phase in each cycle;获取每个所述ONU在尽力而为带宽分配阶段的设定带宽;Obtaining a set bandwidth of each of the ONUs in a best effort bandwidth allocation phase;根据所述设定带宽和所述权重带宽,确定每个周期中需要添加至每个所述ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;And determining, according to the set bandwidth and the weight bandwidth, a to-be-added bandwidth token in a token bucket corresponding to a bandwidth allocation phase that needs to be added to each of the ONUs in each period;将所述待添加带宽令牌添加至所述ONU尽力而为带宽分配阶段对应的所述令牌桶中,并得到所述ONU尽力而为带宽分配阶段对应的令牌桶的带宽。Adding the to-be-added bandwidth token to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtaining the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the ONU.
- 根据权利要求1所述的方法,其中,所述根据所述设定带宽和所述权重带宽的大小关系,确定每个周期中需要添加至每个所述ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,包括:The method according to claim 1, wherein the determining, according to the size relationship between the set bandwidth and the weight bandwidth, determining an order corresponding to a bandwidth allocation phase that needs to be added to each of the ONUs in each cycle The bandwidth token to be added in the bucket, including:判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系;Determining a relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i-th cycle;若所述第i周期中第j个ONU的权重带宽大于所述第i周期中第j个ONU的设定带宽,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。If the weight bandwidth of the jth ONU in the ith cycle is greater than the set bandwidth of the jth ONU in the ith cycle, determining that the jth ONU needs to be added to the i-th cycle to try to allocate bandwidth The bandwidth token to be added in the token bucket corresponding to the phase is the set bandwidth token of the jth ONU.
- 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:若所述第i周期中第j个ONU的权重带宽小于或者等于所述第i周期中j个ONU的设定带宽,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第i周期中第j个ONU的权重带宽令牌。If the weight bandwidth of the jth ONU in the ith cycle is less than or equal to the set bandwidth of the j ONUs in the ith cycle, determining that the jth ONU needs to be added to the i-th cycle The bandwidth token to be added in the token bucket corresponding to the allocation phase is the weight bandwidth token of the jth ONU in the i th period.
- 根据权利要求1~3任一所述的方法,其中,所述根据所述设定带宽和所述权重带宽的大小关系,确定每个周期中需要添加至每个所述 ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,还包括:The method according to any one of claims 1 to 3, wherein the determining, according to the size relationship between the set bandwidth and the weight bandwidth, determining that each period needs to be added to each of the The ONU tries to add the bandwidth token in the token bucket corresponding to the bandwidth allocation phase, and also includes:若所述第i周期第j个ONU的权重带宽为零,则根据添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。If the weight bandwidth of the jth ONU in the ith cycle is zero, the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is determined according to the jth ONU added to the i-1th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is required to be added to the jth ONU in the ith cycle.
- 根据权利要求4所述的方法,其中,所述若所述第i周期中第j个ONU的权重带宽为零,则根据添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,包括:The method according to claim 4, wherein if the weight bandwidth of the jth ONU in the ith cycle is zero, the bandwidth allocation phase is based on the jth ONU effort added to the i-1th cycle. The bandwidth token to be added in the corresponding token bucket is determined to be added to the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the ith cycle, including:若所述第i周期中第j个ONU的权重带宽为零,则获取添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;If the weight bandwidth of the jth ONU in the ith cycle is zero, the bandwidth to be added in the token bucket corresponding to the bandwidth allocation phase is added to the jth ONU in the i-1th cycle. brand;若添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为权重带宽令牌,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第i周期中第j个ONU的权重带宽令牌。If the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase is the weighted bandwidth token added to the j-th ONU in the i-1th cycle, it is determined to be added to the i-th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU is the weight bandwidth token of the jth ONU in the i th period.
- 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5 wherein the method further comprises:若添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为设定带宽令牌,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第j个ONU的设定带宽令牌。If the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token added to the jth ONU in the (i-1)th cycle, it is determined that the i-th cycle needs to be added to the i-th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU is the set bandwidth token of the jth ONU.
- 根据权利要求2或3所述的方法,其中,所述方法还包括:The method of claim 2 or 3, wherein the method further comprises:比较所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽与所述第i周期中第j个ONU上报的队列集之间的大小关系; Comparing the size relationship between the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the ith cycle and the queue set reported by the jth ONU in the ith cycle;若所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽大于或者等于所述第i周期中第j个ONU上报的队列集中的最大带宽,则将所述第i周期中第j个ONU上报的队列集中的最大带宽作为下发分配带宽。If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is greater than or equal to the maximum bandwidth of the queue set reported by the jth ONU in the i-th cycle, the first The maximum bandwidth in the queue set reported by the jth ONU in the i period is the allocated bandwidth.
- 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7 wherein the method further comprises:若所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽小于所述第i周期中第j个ONU上报的队列集中的最小带宽,则不进行带宽分配。If the bandwidth of the token bucket corresponding to the bandwidth allocation phase in the i-th cycle is less than the minimum bandwidth of the queue set reported by the jth ONU in the i-th cycle, the bandwidth allocation is not performed.
- 一种带宽分配装置,所述装置包括:第一获取单元、第二获取单元、确定单元和第一处理单元;其中:A bandwidth allocation apparatus, the apparatus comprising: a first acquisition unit, a second acquisition unit, a determination unit, and a first processing unit; wherein:所述第一获取单元,配置为获取每个周期中每个光网络单元ONU在尽力而为带宽分配阶段的权重带宽;The first acquiring unit is configured to acquire a weight bandwidth of each optical network unit ONU in a best effort bandwidth allocation phase in each period;所述第二获取单元,配置为获取每个所述ONU在尽力而为带宽分配阶段的设定带宽;The second obtaining unit is configured to acquire a set bandwidth of each of the ONUs in a best effort bandwidth allocation phase;所述确定单元,配置为根据所述设定带宽和所述权重带宽,确定每个周期中需要添加至每个所述ONU在尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;The determining unit is configured to determine, according to the set bandwidth and the weight bandwidth, a bandwidth to be added in a token bucket corresponding to each of the ONUs in a best effort bandwidth allocation phase. brand;所述第一处理单元,配置为将所述待添加带宽添加至所述ONU尽力而为带宽分配阶段对应的所述令牌桶中,并得到所述ONU尽力而为带宽分配阶段对应的令牌桶的带宽。The first processing unit is configured to add the to-be-added bandwidth to the token bucket corresponding to the bandwidth allocation phase of the ONU, and obtain the token corresponding to the bandwidth allocation phase of the ONU The bandwidth of the bucket.
- 根据权利要求9所述的装置,其中,所述确定单元包括:判断模块和第一确定模块;其中,The apparatus according to claim 9, wherein the determining unit comprises: a determining module and a first determining module; wherein所述判断模块,配置为判断第i周期中第j个ONU的权重带宽和设定带宽的大小关系;The determining module is configured to determine a size relationship between a weight bandwidth of the jth ONU and a set bandwidth in the i-th cycle;所述第一确定模块,配置为若所述第i周期中第j个ONU的权重带 宽大于所述第i周期中第j个ONU的设定带宽,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为第j个ONU的设定带宽令牌。The first determining module is configured to be a weighting band of the jth ONU in the i th period The bandwidth is greater than the set bandwidth of the jth ONU in the ith period, and the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is determined to be added to the jth ONU in the ith cycle. Set the bandwidth token for the jth ONU.
- 根据权利要求10所述的装置,其中,所述确定单元还包括:第二确定模块;其中,The apparatus according to claim 10, wherein the determining unit further comprises: a second determining module; wherein所述第二确定模块,配置为若所述第i周期中第j个ONU的权重带宽小于或者等于所述第i周期中j个ONU的设定带宽,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第i周期中第j个ONU的权重带宽令牌。The second determining module is configured to determine that the i-th cycle needs to be added if the weight bandwidth of the j-th ONU in the ith period is less than or equal to the set bandwidth of the j ONUs in the ith cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the jth ONU is the weight bandwidth token of the jth ONU in the i th period.
- 根据权利要求9~11任一所述的装置,其中,所述确定单元配置为:The apparatus according to any one of claims 9 to 11, wherein the determining unit is configured to:若所述第i周期第j个ONU的权重带宽为零,则根据添加至第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌,确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌。If the weight bandwidth of the jth ONU in the ith cycle is zero, the bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is determined according to the jth ONU added to the i-1th cycle. The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase is required to be added to the jth ONU in the ith cycle.
- 根据权利要求12所述的装置,其中,所述确定单元包括:获取模块和第三确定模块;其中,The apparatus according to claim 12, wherein the determining unit comprises: an obtaining module and a third determining module; wherein所述获取模块,配置为若所述第i周期中第j个ONU的权重带宽为零,则获取添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌;The acquiring module is configured to: if the weight bandwidth of the jth ONU in the ith cycle is zero, acquire the token corresponding to the bandwidth allocation phase added to the jth ONU in the i-1th cycle The bandwidth token to be added in the bucket;所述第三确定模块,配置为若添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为权重带宽令牌,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第i周期中第j个ONU的权重带宽令牌。 The third determining module is configured to determine, if the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase is the weight bandwidth token, if it is added to the j-th ONU in the (i-1)th period The to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase of the i-th cycle of the i-th cycle is the weight bandwidth token of the j-th ONU in the i-th cycle.
- 根据权利要求13所述的装置,其中,所述确定单元还包括:第四确定模块;其中,The apparatus according to claim 13, wherein the determining unit further comprises: a fourth determining module; wherein所述第四确定模块,配置为若添加至所述第i-1周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为设定带宽令牌,则确定需要添加至所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶中的待添加带宽令牌为所述第j个ONU的设定带宽令牌。The fourth determining module is configured to: if the to-be-added bandwidth token in the token bucket corresponding to the bandwidth allocation phase is the set bandwidth token, if the j-th ONU in the i-1th cycle is added to the best effort The bandwidth token to be added in the token bucket corresponding to the bandwidth allocation phase of the i-th cycle is determined to be the set bandwidth token of the j-th ONU.
- 根据权利要求10或11所述的装置,其中,所述装置还包括:比较单元和第二处理单元;其中,The apparatus according to claim 10 or 11, wherein the apparatus further comprises: a comparing unit and a second processing unit; wherein所述比较单元,配置为比较所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽与所述第i周期中第j个ONU上报的队列集之间的大小关系;The comparing unit is configured to compare the size of the bandwidth of the token bucket corresponding to the bandwidth allocation phase of the jth ONU in the i-th cycle with the queue set reported by the jth ONU in the i-th cycle relationship;所述第二处理单元,配置为若所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽大于或者等于所述第i周期中第j个ONU上报的队列集中的最大带宽,则将所述第i周期中第j个ONU上报的队列集中的最大带宽作为下发分配带宽。The second processing unit is configured to: if the jth ONU in the ith cycle tries its best, the bandwidth of the token bucket corresponding to the bandwidth allocation phase is greater than or equal to the queue concentration reported by the jth ONU in the ith cycle The maximum bandwidth of the queue is the same as the bandwidth allocated for the delivery of the queues reported by the jth ONU in the i-th cycle.
- 根据权利要求15所述的装置,其中,所述装置还包括:第三处理单元;其中,The apparatus of claim 15, wherein the apparatus further comprises: a third processing unit; wherein所述第三处理单元,配置为若所述第i周期中第j个ONU尽力而为带宽分配阶段对应的令牌桶的带宽小于所述第i周期中第j个ONU上报的队列集中的最小带宽,则不进行带宽分配。The third processing unit is configured to: if the jth ONU in the ith cycle tries its best, the bandwidth of the token bucket corresponding to the bandwidth allocation phase is smaller than the minimum of the queue set reported by the jth ONU in the ith cycle. Bandwidth, no bandwidth allocation.
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至8任一项所述的带宽分配方法。 A computer storage medium having stored therein computer executable instructions for performing the bandwidth allocation method of any one of claims 1 to 8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510819463.5A CN106789745B (en) | 2015-11-23 | 2015-11-23 | bandwidth acquisition method and device |
CN201510819463.5 | 2015-11-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017088563A1 true WO2017088563A1 (en) | 2017-06-01 |
Family
ID=58762996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/099203 WO2017088563A1 (en) | 2015-11-23 | 2016-09-18 | Bandwidth acquiring method and apparatus, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106789745B (en) |
WO (1) | WO2017088563A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234495B (en) * | 2018-01-04 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Network bandwidth allocation method based on multidimensional attribute of autonomous system |
CN113783727B (en) * | 2021-09-07 | 2024-04-26 | 山石网科通信技术股份有限公司 | Method and device for adjusting bandwidth of distributed equipment, storage medium and processor |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080130657A1 (en) * | 2006-12-01 | 2008-06-05 | Electronics And Telecommunications Research Institute | Method and apparatus for dynamically allocating bandwidth by hierarchical weight round robin |
CN102523539A (en) * | 2011-12-15 | 2012-06-27 | 北京讯风光通信技术开发有限责任公司 | Passive optical network system having dynamic bandwidth allocation function |
CN103684866A (en) * | 2013-12-16 | 2014-03-26 | 和记奥普泰通信技术有限公司 | Dynamic bandwidth allocation method for Ethernet passive optical network |
CN104022966A (en) * | 2014-06-24 | 2014-09-03 | 河北工程大学 | ONU internal scheduling method for guaranteeing QoS in PON based on NC |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100493071B1 (en) * | 2003-01-21 | 2005-06-02 | 삼성전자주식회사 | Method for controlling bandwidth in ethernet passive optical network |
CN1258289C (en) * | 2003-07-22 | 2006-05-31 | 中国科学院计算技术研究所 | Uniform complexing method for digital video broadcasting transmission network |
CN1285186C (en) * | 2004-04-14 | 2006-11-15 | 烽火通信科技股份有限公司 | Ascending link bandwidth dynamic distribution method and appts. based on ethernet passive optical network |
CN1953353B (en) * | 2006-06-28 | 2010-11-03 | 北京邮电大学 | A distribution method of dynamic bandwidth based on multiple-grade service in the gigabit passive optical network |
CN101420640B (en) * | 2008-11-24 | 2011-09-21 | 中兴通讯股份有限公司 | Bandwidth allocation method and device based on Gbit passive optical network |
CN101753421B (en) * | 2008-11-28 | 2012-12-19 | 中兴通讯股份有限公司 | Method and device for dynamic bandwidth allocation in gigabit passive optical network |
CN102571583A (en) * | 2012-01-11 | 2012-07-11 | 浙江工业大学 | Quality of service (QoS) aware self-adaptive bandwidth distribution system for wireless-optical broadband access networks (WOBAN) and self-adaptive bandwidth distribution method |
-
2015
- 2015-11-23 CN CN201510819463.5A patent/CN106789745B/en active Active
-
2016
- 2016-09-18 WO PCT/CN2016/099203 patent/WO2017088563A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080130657A1 (en) * | 2006-12-01 | 2008-06-05 | Electronics And Telecommunications Research Institute | Method and apparatus for dynamically allocating bandwidth by hierarchical weight round robin |
CN102523539A (en) * | 2011-12-15 | 2012-06-27 | 北京讯风光通信技术开发有限责任公司 | Passive optical network system having dynamic bandwidth allocation function |
CN103684866A (en) * | 2013-12-16 | 2014-03-26 | 和记奥普泰通信技术有限公司 | Dynamic bandwidth allocation method for Ethernet passive optical network |
CN104022966A (en) * | 2014-06-24 | 2014-09-03 | 河北工程大学 | ONU internal scheduling method for guaranteeing QoS in PON based on NC |
Also Published As
Publication number | Publication date |
---|---|
CN106789745B (en) | 2019-12-06 |
CN106789745A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11601512B2 (en) | System and method for throttling service requests having non-uniform workloads | |
US20160337259A1 (en) | Method and apparatus for data traffic restriction | |
US8953453B1 (en) | System and method for throttling service requests using work-based tokens | |
Zhang et al. | Online resource scheduling under concave pricing for cloud computing | |
US9584588B2 (en) | Multi-stage feedback controller for prioritizing tenants for multi-tenant applications | |
US9112809B2 (en) | Method and apparatus for controlling utilization in a horizontally scaled software application | |
Ghosh et al. | Quantifying resiliency of IaaS cloud | |
US8676621B1 (en) | System and method for managing requests for pooled resources during non-contention | |
US11416320B2 (en) | Adaptive quota management system | |
CN110221775B (en) | Method and device for distributing tokens in storage system | |
WO2015043528A1 (en) | Parallel multi-thread message processing method and device | |
Shi et al. | RSMOA: A revenue and social welfare maximizing online auction for dynamic cloud resource provisioning | |
WO2017088563A1 (en) | Bandwidth acquiring method and apparatus, and storage medium | |
KR20180088811A (en) | How to Strengthen Proportional Bandwidth Assignments to Quality of Service | |
US20220086097A1 (en) | Stream allocation using stream credits | |
CN108023834A (en) | A kind of cloud resource auto-allocation method and device | |
CN110798527A (en) | Node data deployment method, device, system and medium | |
US20160217451A1 (en) | Charging processing device and charging processing method | |
CN110178119B (en) | Method, device and storage system for processing service request | |
CN112087518B (en) | Consensus method, apparatus, computer system, and medium for blockchains | |
CN106850456A (en) | Token bucket flow limiters | |
CN106020333B (en) | Multi-core timer implementing method and multiple nucleus system | |
US20220067683A1 (en) | System for facilitating real-time transactions | |
CN113381873B (en) | Capacity expansion method and related device for network equipment | |
CN112671732B (en) | Consensus method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16867790 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16867790 Country of ref document: EP Kind code of ref document: A1 |