Bandwidth demand reporting method and device and bandwidth demand processing method and device

By dynamically adjusting the bandwidth demand reporting cycle by the user-side device, the problem that the local device cannot handle frequent reporting requests is solved, and more effective bandwidth demand management is achieved, and the processing pressure of the local device is reduced.

CN120034759APending Publication Date: 2025-05-23RUIJIE NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311566331.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the spectroscopy scheme of existing optical access networks, local devices cannot effectively handle frequent bandwidth demand reporting requests, resulting in limited processing performance.

Method used

The user-side equipment dynamically adjusts the period of bandwidth demand reporting and determines the frequency of data collection based on the change in the data volume. The specific method includes: collecting data amounts according to the first frequency, counting the data amount changes within a plurality of time periods, and if the change amount is less than the set threshold, determine the second frequency and report the bandwidth requirement.

Benefits of technology

By dynamically adjusting the reporting cycle, frequent requests from the local devices are reduced, processing pressure is avoided, and data transmission is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034759A_ABST
    Figure CN120034759A_ABST
Patent Text Reader

Abstract

The invention discloses a bandwidth demand reporting method and device and a bandwidth demand processing method and device, which are used for flexibly lengthening a bandwidth reporting period according to the actual data transmission condition of user side equipment and solving the problem that the current local side equipment cannot process the frequently reported bandwidth demand. The bandwidth demand reporting method is applied to user side equipment, and comprises the following steps: acquiring a first data volume according to a first frequency; counting at least two second data volumes collected in the at least two first durations; the second data volume comprises N first data volumes collected according to the first frequency; n is an integer greater than 1; under the condition that the variable quantity between the at least two second data volumes is smaller than a set threshold value, a second frequency is determined according to the first duration; the first frequency is higher than the second frequency; and reporting the bandwidth demand to the local side equipment according to the second frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a bandwidth demand reporting and bandwidth demand processing method and device. Background Art

[0002] With the development of optical access networks, the traditional connection mode of one optical line terminal (OLT) deployed at the central office corresponding to one optical network unit (ONU) device can no longer meet the needs of data transmission, so the splitting technology comes into being. The current splitting scheme is based on Ethernet Passive Optical Network (EPON) chip, Gigabit-Capable Passive Optical Network (GPON) chip or Field-Programmable Gate Array (FPGA). This type of splitting scheme is based on the Ethernet Layer 2 protocol control message transmitted between OLT and multiple ONUs to realize bandwidth allocation, ensuring that multiple ONUs occupy different time slots to transmit data to OLT, thereby meeting the transmission needs of multiple ONUs. However, at the same time, this type of scheme requires multiple ONUs to frequently report bandwidth requirements to OLT, while the Ethernet chip at the OLT end cannot handle too frequent reporting requests due to limited processing performance. Summary of the invention

[0003] The exemplary embodiments of the present application provide a method and device for reporting bandwidth requirements, which solve the problem that the current local end equipment cannot handle frequently reported bandwidth requirements.

[0004] In a first aspect, the present application proposes a bandwidth demand reporting method, which is applied to a user terminal device, comprising:

[0005] Collecting a first amount of data at a first frequency;

[0006] Counting at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1;

[0007] In the case where the variation between the at least two second data amounts is less than a set threshold, determining a second frequency according to the first duration; the first frequency is higher than the second frequency;

[0008] The bandwidth requirement is reported to the central office device according to the second frequency.

[0009] Based on the above solution, the user-end device dynamically adjusts the cycle of reporting bandwidth requirements according to the changes in the amount of data to be transmitted. When the amount of data collected at a certain period of time changes relatively slowly, the user-end device will update the frequency of reporting bandwidth requirements according to the period, thereby lengthening the cycle of reporting bandwidth requirements to the central office without affecting actual data transmission, solving the problem that the central office device cannot handle frequently reported bandwidth requirements.

[0010] In some embodiments, the counting of at least two second data amounts collected within at least two first time periods includes:

[0011] Acquire multiple preset durations; the multiple durations include the first duration;

[0012] For any time period, counting at least two second data amounts collected within at least two of the any time periods;

[0013] After counting at least two second data amounts collected within at least two first time periods, the method further includes:

[0014] It is determined that among the multiple durations, the duration with the smallest change between the at least two second data amounts is the first duration.

[0015] Based on the above scheme, statistics are given for the second data volumes collected according to various time lengths, and a time length with the smallest change is selected according to the change in the second data volumes collected under each time length type. The time length with the smallest change indicates that when data is collected at this time length, the change in the collected data volume is relatively gradual. The reporting frequency is then updated with the time length with the smallest change.

[0016] In some embodiments, when the variation between the at least two second data amounts is not less than a set threshold, the method further includes:

[0017] determining a first bandwidth requirement value according to a first data volume collected at the first frequency;

[0018] Report the first bandwidth requirement value to the central office device according to the first frequency.

[0019] In some embodiments, determining the first bandwidth requirement value according to the first data volume collected according to the first frequency includes:

[0020] Determining that the amount of first data collected at the first frequency shows an increasing trend, and the magnitude of the increase is greater than a first preset value;

[0021] A first bandwidth requirement value is calculated according to a first data volume collected at the first frequency and a data volume stored in a cache.

[0022] Based on the above scheme, this application proposes to comprehensively consider the input data volume and cache status when reporting bandwidth requirements to avoid cache overflow problems.

[0023] In some embodiments, the change amount between the at least two second data amounts is determined in the following manner:

[0024] Determine an average value of N first data amounts contained in each second data amount;

[0025] The variation between the at least two second data amounts is determined according to the discreteness of the average values ​​respectively determined for the at least two second data amounts.

[0026] Based on the above scheme, the present application proposes that the degree of variation of the data volume of the corresponding time length can be accurately characterized by the degree of dispersion of the average data volume collected in each time length.

[0027] In some embodiments, reporting the bandwidth requirement to the central office device according to the second frequency includes:

[0028] A second data volume is collected at the second frequency, and the second bandwidth requirement value is determined according to the collected second data volume; and the second bandwidth requirement value is sent to the local end device at the second frequency.

[0029] In some embodiments, determining the second bandwidth requirement value according to the collected second data volume includes:

[0030] Determining that the amounts of the plurality of second data collected continuously show an increasing trend, and the increase is greater than a second preset value;

[0031] The second bandwidth requirement value is determined according to a plurality of continuously collected second data amounts and the amount of data stored in the cache.

[0032] Based on the above solution, the second bandwidth requirement value is not calculated based on the amount of data collected each time, but is calculated based on the amount of data collected multiple times, thereby reducing the frequency of reporting the second bandwidth requirement value and alleviating the pressure on the local equipment.

[0033] In some embodiments, determining the second bandwidth requirement value according to the plurality of continuously collected second data amounts and the amount of data stored in the cache includes:

[0034] Determine a first target data volume according to a peak value among the N first data volumes contained in each second data volume and a newly collected second data volume;

[0035] When the amount of data stored in the cache is less than a first threshold, calculating the second bandwidth requirement value according to the first target data amount;

[0036] When the amount of data stored in the cache is not less than the first threshold, a second target data amount is determined according to the first target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is calculated according to the second target data amount.

[0037] Based on the above scheme, this application proposes that when calculating the bandwidth requirement value, not only the actual input data volume is considered, but also the amount of data already stored in the cache is considered. These two points are combined to jointly determine the bandwidth requirement value to avoid the problem of device cache overflow.

[0038] In some embodiments, the first target data volume is determined using the following formula:

[0039] R 1 =αOB i +(1-α)OB t

[0040] Among them, R 1 is the first target data volume, OB i is the average data volume of the second data volume collected most recently, OB t is the average value of the peak values ​​of the first data amounts included in the plurality of second data amounts, and α is determined according to the number of first data amounts included in each second data amount that are greater than the average data amount of the second data amount.

[0041] In some embodiments, the second target data amount is determined using the following formula:

[0042]

[0043] Among them, R 2 is the second target data volume, R 1 is the first target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0044] In some embodiments, determining the second bandwidth requirement value according to the second data volume includes:

[0045] When the growth rate of the second data volume collected the most recently compared to the second data volume collected the last time is greater than the third preset value, or the result obtained by dividing the remaining storage space in the cache by the average data volume of the current first time length is less than the fourth preset value, an emergency bandwidth identifier is generated;

[0046] Determine the second bandwidth requirement value according to a plurality of second data amounts collected continuously and the amount of data stored in the cache;

[0047] The sending the second bandwidth requirement value to the central office device includes:

[0048] Sending the second bandwidth requirement value and the emergency bandwidth identifier to the central office device;

[0049] The emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period.

[0050] Under normal circumstances, after receiving the bandwidth demand reported by the user-side device, the central office device will not immediately meet the bandwidth demand, but will meet the bandwidth demand in the next data transmission cycle. Based on the above solution, when there is a sudden increase in data volume between two consecutive collections or the amount of data stored in the cache is too much, the emergency request will replace the regular request. The emergency request will instruct the central office to immediately meet the bandwidth demand of the user side in the current data transmission cycle, without having to wait until the next cycle to be met, so as to prevent data congestion, data loss and other problems from occurring in the user-side device.

[0051] In some embodiments, when the growth rate of the latest collected second data amount compared to the second data amount collected last time is greater than the third preset value, the growth rate of the latest collected second data amount compared to the second data amount collected when the bandwidth demand was last reported is greater than the fifth preset value.

[0052] In some embodiments, when the growth rate of the most recently collected second data volume compared to the previously collected second data volume is greater than the third preset value, the proportion of the data volume stored in the cache exceeds the sixth preset value.

[0053] In the traditional solution, whether to request emergency bandwidth is determined only based on the amount of input data, without considering the actual situation of the cache. When the amount of data stored in the cache is too large or overloaded, it will cause data overflow, loss and other problems. Therefore, in order to avoid this problem, this application proposes that when the amount of data stored in the cache is too large, emergency bandwidth will also be requested from the local end, so as to relieve the pressure of the cache in time and avoid problems such as cache overflow in the user-side device.

[0054] In some embodiments, determining the second bandwidth requirement value according to the plurality of continuously collected second data amounts and the amount of data stored in the cache includes:

[0055] Calculate a third target data volume according to the most recently collected second data volume and the second data volume collected when the bandwidth requirement was last reported;

[0056] When the amount of data stored in the cache is less than a second threshold, determining the second bandwidth requirement value according to the third target data amount;

[0057] When the amount of data stored in the cache is not less than the second threshold, a fourth target data amount is determined according to the third target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is determined according to the fourth target data amount.

[0058] Based on the above solution, the bandwidth requirement value is determined by combining the two factors of input data volume and cache storage data volume, which not only meets the transmission demand of input data volume, but also alleviates the storage pressure of cache and avoids the problem of device cache overflow.

[0059] In some embodiments, after sending the second bandwidth requirement value and the emergency bandwidth identifier to the central office device, the method further includes:

[0060] The frequency of reporting bandwidth requirements to the central office device is switched from the second frequency to the first frequency.

[0061] Based on the above scheme, since the emergency bandwidth can already indicate that the amount of data currently transmitted has changed greatly, this application proposes that the accuracy of the collected data volume can be given priority, so that the data volume transmission demand can be met in time. In the scenario where the emergency bandwidth demand is generated, the original frequency collection and calculation bandwidth demand are directly restored, increasing the frequency of calculating the bandwidth demand.

[0062] In some embodiments, after determining the second frequency according to the first duration, the method further includes:

[0063] collecting a second amount of data according to the second frequency;

[0064] When there is a periodic sudden increase in the second data volume within a preset time period, determining a third bandwidth requirement value according to each sudden increase in the second data volume, and determining an emergency bandwidth requirement time according to the duration of each sudden increase in the second data volume;

[0065] An emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value are sent to the central office device; wherein the emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device in the current data transmission cycle.

[0066] Based on the above scheme, when it is detected that the data volume surges periodically, the statistical period and the duration of each surge will be synchronously reported to the local device, so that the local device can not only allocate additional bandwidth in time for the surge in data volume, but also recover the additional allocated bandwidth in time to avoid the problem of bandwidth waste.

[0067] In some embodiments, after reporting the bandwidth requirement to the central office device according to the second frequency, the method further includes:

[0068] collecting a second amount of data according to the second frequency;

[0069] Calculating peak values ​​of N first data amounts contained in each of a plurality of second data amounts collected continuously, and determining an average value of the calculated plurality of peak values;

[0070] When the ratio of the latest collected second data volume to the average value of the multiple peak values ​​is greater than the seventh preset value, or the proportion of data stored in the cache exceeds the eighth preset value, the frequency of reporting bandwidth requirements to the local device will be switched from the second frequency to the first frequency.

[0071] Based on the above scheme, after extending the reporting cycle, in order to avoid the problem of untimely reporting of increased data volume, the present application proposes to determine the growth of the data volume based on the peak value and average value of the collected second data volume when collecting the second data volume at the second frequency, and exit the second frequency when the growth is obvious, and switch back to the first frequency, so as to timely increase the frequency of collection and reporting, and solve the problem of untimely reporting of increased data volume when reporting at a low frequency.

[0072] In some embodiments, after determining the second frequency according to the first duration, the method further includes:

[0073] collecting a second amount of data according to the second frequency;

[0074] When the decrease of the Q second data amounts collected continuously exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold, determining a bandwidth release value according to the Q second data amounts;

[0075] A bandwidth release request is sent to the central office device; the bandwidth release request carries the bandwidth release value, and is used to request the central office device to release the bandwidth indicated by the bandwidth release value; Q is an integer greater than 1, and the value of Q is determined based on the number of bandwidth demand reports within a recently set time period.

[0076] Based on the above scheme, the present application proposes that when the data volume is reduced and the cache pressure is small, the user terminal device will actively request to release part of the bandwidth to save bandwidth resources.

[0077] In some embodiments, determining the bandwidth release value according to the Q second data amounts includes:

[0078] Calculating an average value of the N first data amounts contained in each of the Q second data amounts;

[0079] Determine a fifth target data volume according to the calculated Q average values ​​and the second data volume collected when the bandwidth requirement is most recently reported;

[0080] The bandwidth release value is determined according to the fifth target data volume.

[0081] In some embodiments, the fifth target data amount is determined using the following formula:

[0082]

[0083] Among them, R i is the fifth target data volume, LR is the average data volume of the second data volume collected when the bandwidth requirement value is reported most recently, is the average value of the average data amounts of the Q second data amounts, and k is a preset constant.

[0084] In a second aspect, the present application proposes a bandwidth demand processing method, which is applied to a central office device, and the method includes:

[0085] Receiving a second bandwidth requirement value reported by a user terminal device according to a second frequency; wherein the second frequency is determined according to a first duration, and a change between at least two second data amounts collected within at least two of the first durations is less than a set threshold; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1;

[0086] The bandwidth in the next data transmission cycle is allocated to the user terminal equipment according to the second bandwidth requirement value.

[0087] In some embodiments, after allocating bandwidth in the next data transmission cycle to the user terminal device according to the second bandwidth requirement value, the method further includes:

[0088] Receiving an emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value from a user terminal device;

[0089] According to the emergency bandwidth identifier and the third bandwidth requirement value, additional emergency bandwidth is allocated to the user terminal device in a current data transmission period, and according to the emergency bandwidth requirement time, a time for releasing the additional emergency bandwidth is determined.

[0090] In some embodiments, before receiving the second bandwidth requirement value reported by the user terminal device according to the second frequency, the method further includes:

[0091] A first bandwidth requirement value reported by the user terminal device according to a first frequency is received; the first bandwidth requirement value is determined according to a first data volume collected according to the first frequency.

[0092] In some embodiments, after allocating bandwidth in the next data transmission cycle to the user terminal device according to the second bandwidth requirement value, the method further includes:

[0093] Receive a bandwidth release request from a user terminal device; the bandwidth release request carries a bandwidth release value; the bandwidth release value is determined according to the Q second data amounts when a decrease in the Q second data amounts continuously collected by the user terminal device exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold; Q is an integer greater than 1, and the value of Q is determined according to the number of bandwidth demand reports within a recently set time period;

[0094] The bandwidth indicated by the bandwidth release value allocated to the user terminal equipment is released.

[0095] In a third aspect, the present application proposes a bandwidth demand reporting device, the device is a user terminal device, or the device is applied to the user terminal device, the device includes:

[0096] a processing unit, configured to collect a first amount of data at a first frequency;

[0097] The processing unit is further used to count at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1;

[0098] The processing unit is further configured to determine a second frequency according to the first duration when a change between the at least two second data amounts is less than a set threshold; the first frequency is higher than the second frequency;

[0099] The communication unit is further used to report bandwidth requirements to the central office device according to the second frequency.

[0100] In some embodiments, the processing unit is specifically configured to:

[0101] Acquire multiple preset durations; the multiple durations include the first duration;

[0102] For any time period, counting at least two second data amounts collected within at least two of the any time periods;

[0103] The processing unit is further used for:

[0104] It is determined that among the multiple durations, the duration with the smallest change between the at least two second data amounts is the first duration.

[0105] In some embodiments, the processing unit is specifically configured to:

[0106] determining a first bandwidth requirement value according to a first data volume collected at the first frequency;

[0107] Report the first bandwidth requirement value to the central office device according to the first frequency.

[0108] In some embodiments, the processing unit is specifically configured to:

[0109] Determining that the amount of first data collected at the first frequency shows an increasing trend, and the magnitude of the increase is greater than a first preset value;

[0110] A first bandwidth requirement value is calculated according to a first data volume collected at the first frequency and a data volume stored in a cache.

[0111] In some embodiments, the processing unit, when determining the change amount between at least two second data amounts, is specifically configured to:

[0112] Determine an average value of N first data amounts contained in each second data amount;

[0113] The variation between the at least two second data amounts is determined according to the discreteness of the average values ​​respectively determined for the at least two second data amounts.

[0114] In some embodiments, the processing unit is further configured to collect a second amount of data according to the second frequency, and determine the second bandwidth requirement value according to the collected second amount of data;

[0115] The communication unit is specifically configured to send the second bandwidth requirement value to the central office device according to a second frequency.

[0116] In some embodiments, the processing unit is specifically configured to:

[0117] Determining that the amounts of the plurality of second data collected continuously show an increasing trend, and the increase is greater than a second preset value;

[0118] The second bandwidth requirement value is determined according to a plurality of continuously collected second data amounts and the amount of data stored in the cache.

[0119] In some embodiments, the processing unit is specifically configured to:

[0120] Determine a first target data volume according to a peak value among the N first data volumes contained in each second data volume and a newly collected second data volume;

[0121] When the amount of data stored in the cache is less than a first threshold, calculating the second bandwidth requirement value according to the first target data amount;

[0122] When the amount of data stored in the cache is not less than the first threshold, a second target data amount is determined according to the first target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is calculated according to the second target data amount.

[0123] In some embodiments, the processing unit is specifically configured to:

[0124] The first target data volume is determined using the following formula:

[0125] R 1 =αOB i +(1-α)OB t

[0126] Among them, R 1 is the first target data volume, OB i is the average data volume of the second data volume collected most recently, OB t is the average value of the peak values ​​of the first data amounts included in the plurality of second data amounts, and α is determined according to the number of first data amounts included in each second data amount that are greater than the average data amount of the second data amount.

[0127] In some embodiments, the processing unit is specifically configured to:

[0128] The second target data volume is determined by the following formula:

[0129]

[0130] Among them, R 2 is the second target data volume, R 1 is the first target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0131] In some embodiments, the processing unit is specifically used to generate an emergency bandwidth identifier when the growth rate of the latest collected second data volume compared with the second data volume collected last time is greater than a third preset value, or the result obtained by dividing the remaining storage space in the cache by the average data volume of the current first time length is less than a fourth preset value; determine the second bandwidth requirement value according to multiple continuously collected second data volumes and the data volume stored in the cache;

[0132] The communication unit is specifically configured to send the second bandwidth requirement value and the emergency bandwidth identifier to the local end device;

[0133] The emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period.

[0134] In some embodiments, when the growth rate of the latest collected second data amount compared to the second data amount collected last time is greater than the third preset value, the growth rate of the latest collected second data amount compared to the second data amount collected when the bandwidth demand was last reported is greater than the fifth preset value.

[0135] In some embodiments, when the growth rate of the most recently collected second data volume compared to the previously collected second data volume is greater than the third preset value, the proportion of the data volume stored in the cache exceeds the sixth preset value.

[0136] In some embodiments, the processing unit is specifically configured to:

[0137] Calculate a third target data volume according to the most recently collected second data volume and the second data volume collected when the bandwidth requirement was last reported;

[0138] When the amount of data stored in the cache is less than a second threshold, determining the second bandwidth requirement value according to the third target data amount;

[0139] When the amount of data stored in the cache is not less than the second threshold, a fourth target data amount is determined according to the third target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is determined according to the fourth target data amount.

[0140] In some embodiments, the processing unit is further configured to:

[0141] The frequency of reporting bandwidth requirements to the central office device is switched from the second frequency to the first frequency.

[0142] In some embodiments, the processing unit is further configured to collect the second data volume at the second frequency; when there is a periodic sudden increase in the second data volume within a preset time period, determine the third bandwidth requirement value according to each sudden increase in the second data volume, and determine the emergency bandwidth requirement time according to the duration of each sudden increase in the second data volume;

[0143] The communication unit is further used to send an emergency bandwidth identifier, the emergency bandwidth requirement time and the third bandwidth requirement value to the central office device; wherein the emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period.

[0144] In some embodiments, the processing unit is further configured to:

[0145] collecting a second amount of data according to the second frequency;

[0146] Calculating peak values ​​of N first data amounts contained in each of a plurality of second data amounts collected continuously, and determining an average value of the calculated plurality of peak values;

[0147] When the ratio of the latest collected second data volume to the average value of the multiple peak values ​​is greater than the seventh preset value, or the proportion of data stored in the cache exceeds the eighth preset value, the frequency of reporting bandwidth requirements to the local device will be switched from the second frequency to the first frequency.

[0148] In some embodiments, the processing unit is further used to collect a second data volume according to the second frequency; when the decrease of the Q second data volumes collected continuously exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold, determine a bandwidth release value according to the Q second data volumes;

[0149] The communication unit is also used to send a bandwidth release request to the local device; the bandwidth release request carries the bandwidth release value, and is used to request the local device to release the bandwidth indicated by the bandwidth release value; Q is an integer greater than 1, and the value of Q is determined based on the number of bandwidth demand reports within the most recent set time period.

[0150] In some embodiments, the processing unit is specifically configured to:

[0151] Calculating an average value of the N first data amounts contained in each of the Q second data amounts;

[0152] Determine a fifth target data volume according to the calculated Q average values ​​and the second data volume collected when the bandwidth requirement is most recently reported;

[0153] The bandwidth release value is determined according to the fifth target data volume.

[0154] In some embodiments, the processing unit is specifically configured to:

[0155] In some embodiments, the fifth target data amount is determined using the following formula:

[0156]

[0157] Among them, R i is the fifth target data volume, LR is the average data volume of the second data volume collected when the bandwidth requirement value is reported most recently, is the average value of the average data amounts of the Q second data amounts, and k is a preset constant.

[0158] In a fourth aspect, the present application proposes a bandwidth demand processing device, the device is a central office device, or the device is applied to the central office device, the device comprising:

[0159] A communication unit, configured to receive a second bandwidth requirement value reported by a user terminal device according to a second frequency; wherein the second frequency is determined according to a first duration, and a change between at least two second data amounts collected within at least two of the first durations is less than a set threshold; the second data amount includes N first data amounts collected according to the first frequency; and N is an integer greater than 1;

[0160] The processing unit is configured to allocate bandwidth in a next data transmission cycle to the user terminal device according to the second bandwidth requirement value.

[0161] In some embodiments, the communication unit is further used to receive an emergency bandwidth identifier, the emergency bandwidth requirement time and the third bandwidth requirement value from a user terminal device;

[0162] The processing unit is further configured to allocate additional emergency bandwidth to the user terminal device in a current data transmission cycle according to the emergency bandwidth identifier and the third bandwidth requirement value, and determine a time to release the additional emergency bandwidth according to the emergency bandwidth requirement time.

[0163] In some embodiments, the communication unit is further configured to:

[0164] A first bandwidth requirement value reported by the user terminal device according to a first frequency is received; the first bandwidth requirement value is determined according to a first data volume collected according to the first frequency.

[0165] In some embodiments, the communication unit is further used to receive a bandwidth release request from a user terminal device; the bandwidth release request carries a bandwidth release value; the bandwidth release value is determined according to the Q second data amounts when the decrease in the Q second data amounts collected continuously by the user terminal device exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold; Q is an integer greater than 1, and the value of Q is determined according to the number of bandwidth demand reports within a recently set time period;

[0166] The processing unit is further configured to release the bandwidth indicated by the bandwidth release value allocated to the user terminal equipment.

[0167] In a fifth aspect, the present application proposes a bandwidth reporting system, including a user terminal device and a central office device, wherein:

[0168] The user terminal device is used to collect a first amount of data at a first frequency;

[0169] The user terminal device is further used to count at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1;

[0170] The user terminal device is further configured to determine a second frequency according to the first duration when a change between the at least two second data amounts is less than a set threshold;

[0171] The user terminal device is further configured to report a second bandwidth requirement value to the central office device according to a second frequency;

[0172] The central office device is used to receive a second bandwidth requirement value reported by the user terminal device according to a second frequency, and allocate bandwidth in a next data transmission cycle to the user terminal device according to the second bandwidth requirement value.

[0173] In a sixth aspect, an electronic device is provided, the electronic device comprising a controller and a memory. The memory is used to store computer-executable instructions, and the controller executes the computer-executable instructions in the memory to use hardware resources in the controller to perform the operation steps of any possible implementation method of the first aspect or the second aspect.

[0174] In a seventh aspect, a computer-readable storage medium is provided, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes the methods in the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0175] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0176] Figure 1 is a schematic diagram of a system architecture of an all-optical network;

[0177] Figure 2 A schematic diagram of a system architecture of a splitting network;

[0178] Figure 3A A schematic diagram of a method for reporting bandwidth requirements provided in an embodiment of the present application;

[0179] Figure 3B A schematic diagram of a bandwidth demand processing method provided in an embodiment of the present application;

[0180] Figure 3C A flowchart of a method for processing temporary emergency bandwidth requirements provided in an embodiment of the present application;

[0181] Figure 4 A schematic diagram of the architecture of a user terminal device provided in an embodiment of the present application;

[0182] Figure 5 A schematic diagram of the structure of a bandwidth demand reporting device provided in an embodiment of the present application;

[0183] Figure 6 A schematic diagram of the structure of a bandwidth demand processing device provided in an embodiment of the present application;

[0184] Figure 7 A schematic diagram of the architecture of a bandwidth demand reporting system provided in an embodiment of the present application;

[0185] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0186] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0187] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0188] In a traditional all-optical network, a central office device can only be connected to one user terminal device. Figure 1 In the system architecture diagram of the all-optical network shown in Figure 1, there is a one-to-one relationship between the central office device and the user end device. As the bandwidth of a single port continues to increase, the need for a single downlink interface of the central office device to access multiple user end devices has arisen, and thus Ethernet optical splitting technology has emerged. For example, the system architecture of the Ethernet optical splitting network can be seen in Figure 2 The current splitting technology is implemented based on EPON / GPON chips, or FPGA chips implement EPON / GPON protocols. No matter which implementation method is used, a dedicated chip needs to be designed, which increases the cost of splitting. In addition, in the splitting solution, multiple user-end devices will frequently report their bandwidth requirements to the central office device, but the central office device using traditional Ethernet chips has limited processing performance and cannot handle the frequently reported bandwidth requirements.

[0189] In view of this, the present application proposes a bandwidth demand reporting scheme. When collecting data volume to determine the reported bandwidth demand, the user-end device will determine the cycle of calculating the bandwidth demand according to the change of the data volume. When the data volume changes greatly and irregularly, the user-end device will collect data volume at a higher frequency, and judge whether it is necessary to report the bandwidth demand and calculate the specific bandwidth demand value based on the amount of data collected each time; when the data volume changes less or shows regular changes within a certain period of time, the user-end device will jointly judge whether it is necessary to report the bandwidth demand and calculate the specific bandwidth demand value based on the multiple amounts of data collected within the period of time.

[0190] The solution of this application is specifically introduced below, for example, see Figure 3A , is a flow chart of a method for reporting bandwidth requirements provided in an embodiment of the present application. For example, Figure 3A The method flow shown can be executed by any user-end device connected to the central office device, and the user-end device uses a traditional Ethernet chip. Figure 3A The method flow shown specifically includes:

[0191] 301A, collecting a first amount of data at a first frequency.

[0192] For example, the user terminal device may collect the first data volume at a frequency of every 2 ms, and the collected first data volume is the data volume input into the user terminal device within 2 ms.

[0193] In an optional manner, the user-end device may also report bandwidth requirements to the central office device based on the first data volume collected each time, that is, report bandwidth requirements to the central office device at a first frequency. Exemplarily, the user-end device may determine whether it is necessary to report bandwidth requirements based on the first data volume collected each time, such as determining whether the difference between the first data volume collected last time meets a condition. Further, in the case where it is determined that reporting is necessary, the first bandwidth requirement value may be calculated based on the first data volume collected each time. For ease of description, when the bandwidth requirement value is calculated based on the data volume collected at the first frequency as a reference, the calculated bandwidth requirement values ​​are collectively referred to as first bandwidth requirement values.

[0194] 302A, counting at least two second data amounts collected within at least two first time periods.

[0195] Each second data volume includes N first data volumes collected at the first frequency. That is, each second data volume can be understood as a group of first data volumes. N can be an integer greater than 1.

[0196] For example, within any first duration, the first data volume may be collected N times at the first frequency. For example, if the first frequency is 2 ms / time and the first duration is 16 ms, the first data volume may be collected 8 times within 16 ms, that is, N is 8, and the set of 8 first data volumes collected within 16 ms is a second data volume. Furthermore, at least two second data volumes collected within at least two past first durations may be counted.

[0197] Optionally, the second data volume may be counted periodically. Exemplarily, a timer may be set, such as 16 ms may be set as the timeout period of the timer, and each time the timer times out, the statistics of at least two second data volumes collected within at least two first time periods are started.

[0198] 303A, when the variation between at least two second data amounts is less than a set threshold, determine the second frequency according to the first duration.

[0199] Wherein, the first frequency is higher than the second frequency. Exemplarily, when determining the amount of change between at least two second data amounts, the average value of the N first data amounts contained in each second data amount can be calculated to obtain at least two average values. Further, the amount of change between at least two data amounts is determined based on the degree of dispersion of at least two average values. For example, continuing the example in the above steps, taking 16ms as the first duration as an example, at least two first durations are set to 10 first durations, then 10 second data amounts are counted in the past 160ms, and each second data amount contains 8 first data amounts. When calculating the amount of change between these 10 second data amounts, the average value of the 8 first data amounts contained in each second data amount can be calculated to obtain 10 average values. Further, the variance of these 10 average values ​​is calculated to characterize the amount of change between the 10 second data amounts. Wherein, the smaller the variance, the smaller the amount of change. For example, the average values ​​of 10 second data amounts and 10 second data amounts are respectively:

[0200] (1) 3bit, 2bit, 5bit, 5bit, 4bit, 3bit, 6bit, 4bit; the average value is 4bit; (2) 3bit, 6bit, 4bit, 3bit, 2bit, 5bit, 4bit, 5bit; the average value is 4bit; (3) 5bit, 5bit, 5bit, 5bit, 5bit, 5bit, 5bit, 5bit, 5bit; the average value is 5bit; (4) 6bit, 4bit, 3bit, 7bit, 5bit, 5bit, 6bit, 4bit; the average value is 5bit; (5) 6bit, 4bit, 3bit, 7bit, 5bit, 5bit, 6bit, 4bit; the average value is 5bit; (6) 6bit, 4bit, 3bit, 7bit, 5bit, 5bit, 6bit, 4bit; the average value is 5bit; (7) 2bit, 8bit, 3bit, 7bit, 7bit, 3bit, 6bit, 4bit; the average value is 5bit; (8) 1bit, 9bit, 3bit, 7bit, 5bit, 5bit, 6bit, 4bit; the average value is 5bit; (9) 2bit, 3bit, 3bit, 4bit, 5bit, 5bit, 6bit, 4bit; the average value is 4bit; (10) 2bit, 3bit, 3bit, 4bit, 5bit, 5bit, 6bit, 4bit; the average value is 4bit. The variance of the 10 average values ​​is 0.24, that is, the variation of the 10 second data amounts is 0.24.

[0201] When the change is less than the set threshold, the second frequency can be determined according to the first duration. For example, if the first duration is 16ms, the second frequency can be 16ms / time. As in the above example, the first frequency is 2ms / time, and it can be seen that the second frequency is lower than the first frequency.

[0202] In some embodiments, when counting the second data amounts collected within at least two first time lengths, the second data amounts collected within multiple time lengths may also be counted simultaneously. Exemplarily, multiple preset time lengths may be obtained, wherein the multiple time lengths include the first time length. Further, for any one of the multiple time lengths, at least two second data amounts collected within at least two arbitrary time lengths may be counted. After counting the second data amounts collected within multiple time lengths, it may be further determined that among the multiple time lengths, the first time length is the time length with the smallest change between the at least two second data amounts, and the change between the at least two second data amounts corresponding to the first time length is less than a set threshold.

[0203] 304A, reporting bandwidth requirements to the central office device according to the second frequency.

[0204] Exemplarily, after determining the second frequency, the user-end device can collect the second data volume according to the second frequency, calculate the second bandwidth requirement value based on the collected second data volume, and report the second bandwidth requirement value to the local-end device. Collecting the second data volume according to the second frequency means collecting the first data volume N times according to the first frequency, and the second data volume is the set of N first data volumes collected according to the first frequency. For example, continuing with the above example, the first frequency is 2ms / time, and the second frequency is 16ms / time, then collecting the second data volume once according to the second frequency is essentially collecting the first data volume 8 times according to the first frequency, and the collected second data volume is a set of 8 first data volumes.

[0205] Based on the above solution, the user-end device dynamically adjusts the cycle of reporting bandwidth requirements according to the changes in the amount of data to be transmitted. When the amount of data collected at a certain period of time changes relatively slowly, the user-end device will update the frequency of reporting bandwidth requirements according to the period, thereby lengthening the cycle of reporting bandwidth requirements to the central office without affecting actual data transmission, solving the problem that the central office device cannot handle frequently reported bandwidth requirements.

[0206] Correspondingly, on the central office side, bandwidth will be allocated to the user-end device based on the bandwidth demand reported by the user-end device. Figure 3B , is a flow chart of a method for a local end device to process bandwidth requirements provided in an embodiment of the present application, specifically including:

[0207] 301B, the central office device receives the second bandwidth requirement value reported by the user terminal device according to the second frequency.

[0208] For example, the method for determining the second frequency and the second bandwidth requirement value can refer to the above Figure 3A The relevant introduction in will not be repeated here.

[0209] It is known that the central office device is connected to multiple user-end devices, and each user-end device occupies multiple different transmission time slots in a data transmission cycle. For the convenience of description, the user-end device that sends the second bandwidth requirement value is referred to as user-end device A. User-end device A can send the second bandwidth requirement value to the central office device in any transmission time slot it occupies in the current data transmission cycle.

[0210] 302B, the central office device allocates bandwidth within the data transmission period to the user terminal device according to the second bandwidth requirement value.

[0211] Exemplarily, after receiving the second bandwidth requirement value, the central office device may store the second bandwidth requirement value. When allocating the transmission time slot in the next data transmission cycle, at least one transmission time slot in the next data transmission cycle is calculated and allocated to the user terminal device A according to the stored second bandwidth requirement value. It should be noted that the product of the at least one transmission time slot and the fixed bandwidth value corresponding to each transmission time slot needs to be greater than or equal to the second bandwidth requirement value to meet the bandwidth requirement of the user terminal device A.

[0212] For example, for ease of description, in the subsequent introduction of this application, the user terminal device collects the first data volume according to the first frequency, and the reporting mode using the first data volume as the basis for reporting the bandwidth demand is referred to as the normal mode, and the reporting frequency in the normal mode is the first frequency. The second data volume is collected according to the second frequency, and the reporting mode using the second data volume as the basis for reporting the bandwidth demand is referred to as the inert mode, and the reporting frequency in the inert mode is the second frequency. The process of switching from the normal mode to the inert mode is specifically introduced below.

[0213] In some embodiments, when switching from normal mode to inert mode, the user-end device can, in the process of reporting bandwidth requirements in normal mode, separately count the second data amounts collected in multiple time periods, determine whether to switch to inert mode based on the change in at least two second data amounts collected, and determine the reporting frequency in inert mode.

[0214] Exemplarily, the process of counting the second data volume is introduced by taking the second duration among multiple durations as an example, wherein the second duration is any duration among multiple durations, and the second duration may be the first duration introduced in the above embodiment, or may be any other duration except the first duration, and the present application does not limit this, and only takes the second duration as an example to introduce the process of counting the second data volume. When counting the second data volume, the first data volume collected according to the first frequency may be collected in multiple consecutive second durations in history. Among them, a group of first data volume collected in any second duration is a second data volume. For example, the second duration is 10 minutes, the current time is 2:00, and it is defined that 5 groups of first data volumes need to be counted for the second duration, then the five groups of first data volumes collected in the five time periods of 1:50-2:00, 1:40-1:50, 1:30-1:40, 1:20-1:30 and 1:10-1:20 may be counted respectively.

[0215] Further, when determining the variation of at least two second data volumes collected within at least two second time periods, the average values ​​of the multiple first data volumes contained in each second data volume can be calculated respectively. For example, continuing the above example, 5 groups of data volumes are counted for the second time period, and then 5 average values ​​can be calculated. Further, the variation of the second data volume can be determined based on the degree of dispersion of the calculated multiple average values, for example, the variance of the multiple average values ​​can be calculated, and the variation of the second data volume can be characterized by the variance.

[0216] As an optional method, in the process of calculating the variance, a sliding window method can also be used for calculation. During the sliding window process, each calculated value is iterated to reduce the amount of calculation, which is equivalent to averaging the amount of calculation into each sampling period. As an example, see the following formula (1), which shows the effect of clearing old data on the variance when the window slides:

[0217]

[0218] Among them, δ 2 1 In order to eliminate the variance after the influence of old data, M is the number of data in the current window, h i is the i-th data in the historical window, is the average value of the data in the historical window, and D is the data deleted when the window slides.

[0219] Furthermore, see formula (2) below, which shows the effect of new data on the variance when the window slides:

[0220]

[0221] Among them, δ 2 2 To increase the variance after the impact of the new data, M is the number of data in the current window, is the historical variance, is the average value of the data in the window after the new data is added, A is the new data, is the average value of the data in the historical window.

[0222] In some embodiments, when detecting the amount of data in normal mode and inert mode, detection can be performed according to different detection windows. Exemplarily, the present application proposes that a sensitive window and an inert window can be set, wherein detection according to the sensitive window can be understood as detecting the amount of data according to the first frequency, and the value of the inert window is determined according to the reporting frequency in the corresponding inert mode. For example, if the reporting frequency in the inert mode is updated to the second frequency, then detection according to the inert window can be understood as detecting the amount of data according to the second frequency. Exemplarily, the sensitive window can be used to detect the amount of data in normal mode as a reference for the amount of data reported for bandwidth, and can also be used to determine whether the amount of data has increased suddenly in inert mode to determine whether it is necessary to exit the inert mode. The inert window can be used to detect the amount of data in inert mode as a reference for the amount of data reported for bandwidth. Below, the detection process of the amount of data (or also referred to as traffic) is introduced in combination with different devices.

[0223] In a possible scenario, when the user terminal device is an AP device, since the AP device will input the message received from the downstream device into the central processing unit (CPU), the length of the message in the window (sluggish window and sensitive window) can be calculated in the CPU, and the average data volume within the detection time can be determined according to the length and timestamp of the message in the window, so as to determine whether the bandwidth demand needs to be reported according to the detected average data volume. Exemplarily, the message length can be determined using the following formula (3):

[0224] LEN 1 =LEN 2 +LEN new -LEN old ; Formula (3)

[0225] Among them, LEN 1 The length of the message in the current window, LEN 2 The length of the message in the previous window, LEN new The length of the message added when the window slides, LEN old The length of the message removed when the window slides.

[0226] Furthermore, the average amount of data within the detection time can be determined according to the message length and the timestamp. For example, see the following formula (4):

[0227]

[0228] Among them, OB is the average data volume, LEN is 1 is the message length in the window, TS n The timestamp of the newly added message, TS oTimestamp of the message to be removed.

[0229] In another possible scenario, when the user terminal device is a switching device, since the switching device is only used for data forwarding and does not process the message, the received data will be stored in the cache, and the number of bits stored in the cache can be read to determine the average data volume in the window. For example, the data volume detection process in the inert mode is used as an example for introduction, and the collected data volume can be referred to the following formula (5):

[0230]

[0231] Where n is the number of acquisitions included in a slow window, OB i is the amount of data collected for the i-th time, TX is the number of bits sent by the optical port, Drop is the number of bits that failed to be sent, and F is the number of bits stored in the cache.

[0232] In a possible implementation, after the data volume is detected through the window, it can be determined whether it is necessary to report the bandwidth demand and the reported bandwidth demand value according to the data volume. For example, the reporting methods proposed in this application may include regular reporting, emergency reporting and temporary emergency reporting. The following introduces these three reporting methods in the slow mode respectively.

[0233] (I) Conventional reporting in slow mode

[0234] Exemplarily, the reporting detection period of the inert mode is taken as the first duration as an example for introduction. When the second data amount collected by the user terminal device in a plurality of consecutive first durations shows an increasing trend and the growth rate is greater than the second preset value, it is determined that the bandwidth demand needs to be reported. For the convenience of description, the second data amount collected each time in the inert mode is subsequently set to include N first data amounts, and the average value of the N first data amounts is called the average data amount corresponding to the second data amount. As an example, the user terminal device can count whether the average data amount corresponding to the second data amount collected four times in a row increases by more than 120% (that is, according to the N first data amounts contained in each of the four second data amounts, the average data amount corresponding to each second data amount is calculated to obtain four average data amounts, and it is determined whether the ratio of each average data amount to the previous average data amount in the four average data amounts is greater than 120%). If so, it can be determined that the regular reporting of bandwidth demand needs to be performed in the inert mode, that is, the bandwidth demand is reported to the local terminal device according to the second frequency. Furthermore, the user-end device may determine the second bandwidth requirement value to be reported to the central office device according to the multiple collected second data amounts and the data amount stored in the cache.

[0235] In one possible case, the amount of data in the cache is less than the first threshold, for example, the amount of data in the cache accounts for less than 40%. In this case, the user terminal device can determine the first target data amount based on the peak values ​​of the N first data amounts contained in each of the multiple second data amounts collected, and the latest second data amount collected, and determine the second bandwidth requirement value based on the first target data amount. Exemplarily, the method for determining the first data amount can refer to the following formula (6):

[0236] R 1 =αOB i +(1-α)OB t ; Formula (6)

[0237] Among them, R 1 is the first target data volume, OB i is the average data volume corresponding to the second data volume collected most recently, OB t is the average value of the peak values ​​of the first data amounts respectively included in the plurality of second data amounts, and α is a weight coefficient, which is determined according to the number of first data amounts greater than the average data amount in each second data amount.

[0238] Exemplarily, when determining the weight coefficient, the average overflow cycle number can be determined first: obtain the N first data volumes contained in any second data volume, divide the total number of N first data volumes exceeding the average data volume by the average data volume, and obtain the overflow cycle number of any second data volume. Further, the average value of the overflow cycle numbers of multiple second data volumes collected continuously is taken as the average overflow cycle number. The weight coefficient is inversely proportional to the average overflow cycle number, and the weight coefficient can be calculated as follows: in, is a weight coefficient, k is a preset negative number, a is the average overflow cycle number, and b is determined according to the value of the first duration. For example, if the first duration is 128 ms, then b may be 16%.

[0239] In another possible case, the amount of data stored in the cache is not less than the first threshold, and the user terminal device can obtain the second target data amount according to the first target data amount and the amount of data stored in the cache, and determine the second bandwidth requirement value according to the second target data amount. Exemplarily, the second target data amount can be calculated using the following formula (7):

[0240]

[0241] Among them, R 2 is the second target data volume, R 1 is the first target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0242] (II) Emergency reporting in slow mode

[0243] The user terminal device can collect the second data volume at the second frequency in the inert mode, wherein the second frequency is determined according to the first duration. The specific determination method can refer to the relevant introduction in the above embodiments. In the inert mode, the user terminal device can determine the need for emergency reporting based on the growth rate of the second data volume collected twice adjacently and / or the amount of data stored in the cache, and determine the second bandwidth requirement value based on the multiple second data volumes collected continuously and the amount of data stored in the cache. Wherein, M is an integer greater than 1. Exemplarily, it can be determined that emergency reporting needs to be performed in the inert mode when the following three conditions are met:

[0244] Case 1: The growth rate of the latest collected second data volume compared to the second data volume collected when the bandwidth demand was most recently reported is greater than the third preset value, and the growth rate of the latest collected second data volume compared to the second data volume collected the previous time is greater than the fifth preset value. Exemplarily, when calculating the growth rate of each second data volume, the average data volume corresponding to each second data volume can be calculated first, and the growth rate can be further determined by the ratio between the average data volumes. For example, when the average data volume of the latest collected second data volume increases by more than 300% compared to the average data volume of the second data volume collected when the bandwidth demand was most recently reported, and increases by more than 110% compared to the average data volume of the previous collected second data volume, it is determined that emergency reporting needs to be performed in the inert mode, and an emergency flag can be generated.

[0245] Case 2: When the growth rate of the second data volume collected the most recently compared to the average data volume of the second data volume collected the most recently is greater than the third preset value, and the proportion of the data volume stored in the cache exceeds the sixth preset value, it is determined that an emergency report is required. For example, when it is determined that the cache usage rate (i.e., the proportion of the data volume stored in the cache) exceeds 40%, and the average data volume growth rate exceeds 110%, it is determined that an emergency report needs to be performed in the inert mode and an emergency mark needs to be generated.

[0246] Case 3: When the result obtained by dividing the remaining free storage space in the cache by the average data volume of the most recently collected second data volume is less than the fourth preset value, it is determined that an emergency report is required. That is, assuming that the average data volume of the subsequent second data volume remains unchanged, it is determined how many first time lengths are required to fill the entire cache. When the number of required first time lengths is less than the fourth preset value (for example, it can be set to 15), it is determined that an emergency report needs to be performed in the inert mode and an emergency mark is generated.

[0247] In some embodiments, after determining that an emergency report needs to be made in the inert mode, the second bandwidth requirement value can be determined based on the amount of data stored in the cache, the average amount of the second data most recently collected, and the average amount of the second data collected when the bandwidth requirement was most recently reported. In one possible case, the amount of data stored in the cache is less than the second threshold, such as when the amount of data stored in the cache accounts for less than 40%, the third target data amount can be calculated based on the average amount of the second data most recently collected and the average amount of the second data collected when the bandwidth requirement was most recently reported, and the second bandwidth requirement value can be determined based on the third target data amount.

[0248] Exemplarily, the third target data volume may be calculated using the following formula (8):

[0249] R 3 =OB i +k(OB i -LR); Formula (8)

[0250] Among them, R 3 is the third target data volume, OB i is the average data volume of the second data volume collected most recently, k is a preset gain coefficient, and LR is the average data volume of the second data volume collected in the most recent reporting of the bandwidth requirement.

[0251] In another possible case, the amount of data stored in the cache is not less than the second threshold value, for example, the amount of data stored in the cache accounts for more than 40%, and the user terminal device can determine the fourth target data amount according to the amount of data stored in the cache and the third target data amount, and determine the second bandwidth requirement value according to the fourth target data amount. Exemplarily, the fourth target data amount can be determined by the following formula (9):

[0252]

[0253] Among them, R 4 is the fourth target data volume, R 3 is the third target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0254] For example, when performing emergency reporting, the second bandwidth requirement value can be sent with an emergency flag to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period. Optionally, after performing emergency reporting in the inert mode, the inert mode can be exited and switched back to the normal mode for bandwidth reporting.

[0255] (III) Temporary emergency reporting in slow mode

[0256] For example, after switching to the inert mode, the user terminal device can make a temporary emergency report to the central office device according to the periodic sudden increase of the amount of the collected second data. The temporary emergency report in the inert mode increases the emergency bandwidth demand time compared to the emergency report, so that the central office device can not only allocate additional bandwidth to the user terminal device, but also release the additional bandwidth after a set time. As an optional method, see Figure 3C , introduces the process of handling temporary emergency bandwidth requirements, including:

[0257] 301C, the central office device receives the emergency bandwidth identifier, the emergency bandwidth requirement time and the third bandwidth requirement value from the user end device.

[0258] Exemplarily, when there is a periodic data volume surge within a preset time period, for example, when there is a data volume surge exceeding 3 times the average data volume more than 3 times and less than 20 times per second, the user terminal device determines the third bandwidth requirement value according to each surge in data volume, and determines the emergency bandwidth requirement time according to the duration of each surge in data volume. The user terminal device sends the emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value to the central office device.

[0259] 302C, the central office device allocates additional emergency bandwidth to the user terminal device in the current data transmission period according to the emergency bandwidth representation and the third bandwidth requirement value, and determines the time to release the additionally allocated emergency bandwidth according to the emergency bandwidth requirement time.

[0260] Among them, allocating additional emergency bandwidth to the user terminal device refers to allocating additional transmission time slots to the user terminal device, and this part of the additional transmission time slots can be used to meet the emergency bandwidth demand. Therefore, the central office device can reclaim this part of the additional allocated transmission time slot when the additional transmission time slot meets the emergency bandwidth demand duration.

[0261] In some embodiments, after reporting the second bandwidth demand value, the user terminal device can also determine whether it can instruct the central office device to release part of the bandwidth to save bandwidth resources according to the storage situation of the cache. Exemplarily, the user terminal device can determine that part of the bandwidth can be released when the decline of the Q second data amounts collected continuously exceeds the ninth preset value and the amount of data in the cache is less than the third threshold. For example, when the amount of data in the cache is less than the average data amount of the second data amount collected most recently, and the average data amount of the second data amount collected most recently is reduced by 50% compared with the average data amount of the previous second data amount, when this situation lasts for (20+E)ms, it is determined that part of the bandwidth can be released. Wherein, E is the additional duration, and the value of E is affected by the number of reports of the user terminal device within the set time period. Or, for another example, when the amount of data in the cache is less than the average data amount of the second data amount collected most recently, and the average data amount of the second data amount collected most recently is reduced by 90% compared with the average data amount of the previous second data amount, when this situation lasts for (40+E)ms, it is determined that part of the bandwidth can be released.

[0262] In some embodiments, the user terminal device may determine the bandwidth value to be released based on the Q second data volumes collected continuously. Exemplarily, the user terminal device may determine the fifth target data volume based on the average data volume of the Q second data volumes collected continuously and the average data volume of the second data volume collected when the bandwidth requirement value was last reported, and use the fifth target data volume to determine the bandwidth release value. As an example, the fifth target data volume may be calculated using the following formula (10):

[0263]

[0264] Among them, R 5 is the fifth target data volume, LR is the average data volume collected when the bandwidth requirement value is reported most recently, is the average of the average data volumes of the Q second data volumes, and k is a preset constant. The value of k is affected by the decrease in the data volume. For example, when the decrease in the data volume is 50%, k can be set to 1 / 4, and when the decrease in the data volume is 90%, k can be set to 1 / 8. The function of k is to prevent the bandwidth from being released too quickly.

[0265] In a possible implementation, in the process of collecting and reporting data volume in the inert mode using an inert window, a sensitive window can be used to synchronously collect data volume. For example, the average peak flow rate can be determined based on the maximum value of multiple data volumes collected using the sensitive window in multiple first time periods. The average peak flow rate value can be used as an upper limit judgment for the application data volume. That is, the amount of data to be reported obtained by collecting using the inert window should be between the average peak flow rate and the average data volume of the current first time period. Furthermore, the average peak flow rate can also be used as a basis for switching to the inert mode. For example, when the ratio between the amount of data collected using the sensitive window and the average peak flow rate is greater than the seventh preset value, it indicates that a sudden increase in data volume has occurred. In this case, the inert mode can be exited and switched back to the normal mode for bandwidth reporting to avoid data volume accumulation.

[0266] As an optional method, it can also be determined whether to exit the inert mode according to the amount of data stored in the cache. For example, when the amount of data stored in the cache exceeds the eighth preset value, the inert mode can be exited and switched back to the normal mode for bandwidth reporting.

[0267] In normal mode, a sensitive window can be used to collect data volume, and when it is determined that the collected data volume is on an increasing trend and the growth rate is greater than a first preset value, it is determined that regular reporting needs to be performed in normal mode. For example, it can be determined that regular reporting in normal mode is required when the growth rate of the data volume collected twice in a row exceeds 110%. The amount of data for regular reporting in normal mode can be determined based on the latest collected data volume and the amount of data stored in the cache. Exemplarily, when the proportion of data stored in the cache does not exceed a certain set value, such as 40%, the sixth target data volume can be determined based on the data volume collected n times, and the first bandwidth requirement value to be reported can be determined based on the sixth target data volume. As an example, the sixth target data volume can be calculated using the following formula (11):

[0268]

[0269] Among them, R 6 The sixth target data volume, OB i is the number of samples collected at the current moment i, B i is the amount of data stored in the cache at the current acquisition time i, B i-n is the amount of data stored in the cache at the (in) moment, and n is a preset constant.

[0270] Exemplarily, when the amount of data stored in the cache exceeds a certain set value, such as 40%, the seventh target data amount can be determined according to the amount of data stored in the cache and the sixth target data amount, and the first bandwidth requirement value can be calculated using the seventh target data amount. As an example, the seventh target data amount can be calculated using the following formula (12):

[0271]

[0272] Among them, R 7 is the seventh target data volume, R 6 is the sixth target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0273] Exemplarily, the conditions for emergency reporting in normal mode can also refer to the emergency reporting in the inert mode described in the above embodiment. Different from the emergency reporting in the inert mode, when judging whether the first condition is met, the preset value for judging the growth rate of the data volume in the normal mode is less than the third preset value. Exemplarily, the temporary emergency reporting in the normal mode can refer to the temporary emergency reporting in the inert mode described in the above embodiment.

[0274] In some embodiments, the above operations performed by the user terminal device may also be performed by a specific module included in the user terminal device. Figure 4 , is a schematic diagram of the architecture of a user terminal device provided in an embodiment of the present application, and the user terminal device may include a traffic detector, a traffic model detector, and a bandwidth reporter. Among them, the traffic detector is used to detect the data volume in normal mode and inert mode according to the sensitive window and the inert window respectively, and the traffic model detector is used to switch between inert mode and normal mode according to the data volume detected by the traffic detector. The bandwidth reporter is used to determine whether bandwidth reporting is required and to determine the bandwidth reporting value based on the data volume detected by the traffic detector. The bandwidth reporter is also used to determine whether bandwidth release is required and to determine the bandwidth release value based on the data volume detected by the traffic detector. It should be noted that, Figure 4 This is only an example and is not intended to be a specific limitation on the configuration of the user terminal device.

[0275] Based on the same concept as the above method, see Figure 5 , is a bandwidth demand reporting device 500 provided in an embodiment of the present application. The device 500 is used to execute the steps disclosed in the above-mentioned method embodiments. In order to avoid repetition, they will not be described here. The device 500 includes: a processing unit 501 and a communication unit 502.

[0276] A processing unit 501 is configured to collect a first amount of data at a first frequency;

[0277] The processing unit 501 is further configured to count at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected at the first frequency; N is an integer greater than 1;

[0278] The processing unit 501 is further configured to determine a second frequency according to the first duration when a change between the at least two second data amounts is less than a set threshold; the first frequency is higher than the second frequency;

[0279] The communication unit 502 is further configured to report bandwidth requirements to the central office device according to the second frequency.

[0280] In some embodiments, the processing unit 501 is specifically configured to:

[0281] Acquire multiple preset durations; the multiple durations include the first duration;

[0282] For any time period, counting at least two second data amounts collected within at least two of the any time periods;

[0283] The processing unit 501 is further configured to:

[0284] It is determined that among the multiple durations, the duration with the smallest change between the at least two second data amounts is the first duration.

[0285] In some embodiments, the processing unit 501 is specifically configured to:

[0286] determining a first bandwidth requirement value according to a first data volume collected at the first frequency;

[0287] Report the first bandwidth requirement value to the central office device according to the first frequency.

[0288] In some embodiments, the processing unit 501 is specifically configured to:

[0289] Determining that the amount of first data collected at the first frequency shows an increasing trend, and the magnitude of the increase is greater than a first preset value;

[0290] A first bandwidth requirement value is calculated according to a first data volume collected at the first frequency and a data volume stored in a cache.

[0291] In some embodiments, the processing unit 501, when determining the change amount between at least two second data amounts, is specifically configured to:

[0292] Determine an average value of N first data amounts contained in each second data amount;

[0293] The variation between the at least two second data amounts is determined according to the discreteness of the average values ​​respectively determined for the at least two second data amounts.

[0294] In some embodiments, the processing unit 501 is further configured to collect a second data volume according to the second frequency, and determine the second bandwidth requirement value according to the collected second data volume;

[0295] The communication unit 502 is specifically configured to send the second bandwidth requirement value to the central office device according to a second frequency.

[0296] In some embodiments, the processing unit 501 is specifically configured to:

[0297] Determining that the amounts of the plurality of second data collected continuously show an increasing trend, and the increase is greater than a second preset value;

[0298] The second bandwidth requirement value is determined according to a plurality of continuously collected second data amounts and the amount of data stored in the cache.

[0299] In some embodiments, the processing unit 501 is specifically configured to:

[0300] Determine a first target data volume according to a peak value among the N first data volumes contained in each second data volume and a newly collected second data volume;

[0301] When the amount of data stored in the cache is less than a first threshold, calculating the second bandwidth requirement value according to the first target data amount;

[0302] When the amount of data stored in the cache is not less than the first threshold, a second target data amount is determined according to the first target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is calculated according to the second target data amount.

[0303] In some embodiments, the processing unit 501 is specifically configured to:

[0304] The first target data volume is determined using the following formula:

[0305] R 1 =αOB i +(1-α)OB t

[0306] Among them, R 1 is the first target data volume, OB i is the average data volume of the second data volume collected most recently, OB tis the average value of the peak values ​​of the first data amounts included in the plurality of second data amounts, and α is determined according to the number of first data amounts included in each second data amount that are greater than the average data amount of the second data amount.

[0307] In some embodiments, the processing unit 501 is specifically configured to:

[0308] The second target data volume is determined by the following formula:

[0309]

[0310] Among them, R 2 is the second target data volume, R 1 is the first target data volume, B is the amount of data stored in the cache, and n is a preset constant.

[0311] In some embodiments, the processing unit 501 is specifically used to generate an emergency bandwidth identifier when the growth rate of the latest collected second data volume compared with the second data volume collected last time is greater than a third preset value, or the result obtained by dividing the remaining storage space in the cache by the average data volume of the current first time length is less than a fourth preset value; determine the second bandwidth requirement value according to multiple continuously collected second data volumes and the data volume stored in the cache;

[0312] The communication unit 502 is specifically configured to send the second bandwidth requirement value and the emergency bandwidth identifier to the central office device;

[0313] The emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period.

[0314] In some embodiments, when the growth rate of the latest collected second data amount compared to the second data amount collected last time is greater than the third preset value, the growth rate of the latest collected second data amount compared to the second data amount collected when the bandwidth demand was last reported is greater than the fifth preset value.

[0315] In some embodiments, when the growth rate of the most recently collected second data volume compared to the previously collected second data volume is greater than the third preset value, the proportion of the data volume stored in the cache exceeds the sixth preset value.

[0316] In some embodiments, the processing unit 501 is specifically configured to:

[0317] Calculate a third target data volume according to the most recently collected second data volume and the second data volume collected when the bandwidth requirement was last reported;

[0318] When the amount of data stored in the cache is less than a second threshold, determining the second bandwidth requirement value according to the third target data amount;

[0319] When the amount of data stored in the cache is not less than the second threshold, a fourth target data amount is determined according to the third target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is determined according to the fourth target data amount.

[0320] In some embodiments, the processing unit 501 is further configured to:

[0321] The frequency of reporting bandwidth requirements to the central office device is switched from the second frequency to the first frequency.

[0322] In some embodiments, the processing unit 501 is further configured to collect the second data volume at the second frequency; when there is a periodic sudden increase in the second data volume within a preset time period, determine the third bandwidth requirement value according to each sudden increase in the second data volume, and determine the emergency bandwidth requirement time according to the duration of each sudden increase in the second data volume;

[0323] The communication unit 502 is further used to send an emergency bandwidth identifier, the emergency bandwidth requirement time and the third bandwidth requirement value to the central office device; wherein the emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission cycle.

[0324] In some embodiments, the processing unit 501 is further configured to:

[0325] collecting a second amount of data according to the second frequency;

[0326] Calculating peak values ​​of N first data amounts contained in each of a plurality of second data amounts collected continuously, and determining an average value of the calculated plurality of peak values;

[0327] When the ratio of the latest collected second data volume to the average value of the multiple peak values ​​is greater than the seventh preset value, or the proportion of data stored in the cache exceeds the eighth preset value, the frequency of reporting bandwidth requirements to the local device will be switched from the second frequency to the first frequency.

[0328] In some embodiments, the processing unit 501 is further configured to collect a second data volume according to the second frequency; when a decrease in the Q second data volumes collected continuously exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold, determine a bandwidth release value according to the Q second data volumes;

[0329] The communication unit 502 is further configured to send a bandwidth release request to the central office device; the bandwidth release request carries the bandwidth release value, and is used to request the central office device to release the bandwidth indicated by the bandwidth release value; Q is an integer greater than 1, and the value of Q is determined according to the number of times of reporting bandwidth requirements within the recently set time period.

[0330] In some embodiments, the processing unit 501 is specifically configured to:

[0331] Calculate the average value of the N first data amounts included in each of the Q second data amounts;

[0332] Determine a fifth target data amount according to the Q calculated average values and the second data amount collected when the bandwidth requirement was reported last time;

[0333] Determine the bandwidth release value according to the fifth target data amount.

[0334] In some embodiments, the processing unit 501 is specifically configured to:

[0335] In some embodiments, the following formula is used to determine the fifth target data amount:

[0336]

[0337] where R i is the fifth target data amount, LR is the average data amount of the second data amount collected when the bandwidth requirement value was reported last time, is the average value of the average data amounts of the Q second data amounts, and k is a preset constant.

[0338] Based on the same concept as the above method, refer to Figure 6 , a bandwidth requirement processing device 600 provided by an embodiment of the present application. The device 600 is used to implement the steps of processing the bandwidth requirements from the user equipment described in the above method embodiments. The device 600 includes: a communication unit 601 and a processing unit 602.

[0339] The communication unit 601 is configured to receive the second bandwidth requirement value reported by the user equipment at the second frequency; wherein, the second frequency is determined according to the first duration, and the change amount between at least two second data amounts collected within at least two first durations is less than a set threshold; the second data amount includes N first data amounts collected at the first frequency; N is an integer greater than 1;

[0340] The processing unit 602 is configured to allocate the bandwidth for the user equipment within the next data transmission period according to the second bandwidth requirement value.

[0341] In some embodiments, the communication unit 601 is further configured to receive an emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value from a user terminal device;

[0342] The processing unit 602 is further configured to allocate additional emergency bandwidth to the user terminal device in a current data transmission cycle according to the emergency bandwidth identifier and the third bandwidth requirement value, and determine a time to release the additional emergency bandwidth according to the emergency bandwidth requirement time.

[0343] In some embodiments, the communication unit 601 is further configured to:

[0344] A first bandwidth requirement value reported by the user terminal device according to a first frequency is received; the first bandwidth requirement value is determined according to a first data volume collected according to the first frequency.

[0345] In some embodiments, the communication unit 601 is further used to receive a bandwidth release request from a user terminal device; the bandwidth release request carries a bandwidth release value; the bandwidth release value is determined according to the Q second data amounts when the decrease in the Q second data amounts collected continuously by the user terminal device exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold; Q is an integer greater than 1, and the value of Q is determined according to the number of bandwidth demand reports within a recently set time period;

[0346] The processing unit 602 is further configured to release the bandwidth indicated by the bandwidth release value allocated to the user terminal equipment.

[0347] Figure 7 The present invention provides a bandwidth demand reporting system 700, which is used to implement the above-mentioned various method embodiments, and specifically includes a user terminal device 701 and a central office device 702. For example, the steps performed by the user terminal device 701 can be specifically referred to in the above Figure 5 For details of the steps performed by the local terminal device 702, please refer to the above Figure 6 The relevant introduction in, among which:

[0348] The user terminal device 701 is used to collect a first amount of data at a first frequency;

[0349] The user terminal device 701 is further used to count at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1;

[0350] The user terminal device 701 is further configured to determine a second frequency according to the first duration when a change between the at least two second data amounts is less than a set threshold;

[0351] The user terminal device 701 is further configured to report a second bandwidth requirement value to the central office device 702 according to a second frequency;

[0352] The central office device 702 is configured to receive a second bandwidth requirement value reported by the user terminal device 701 at a second frequency, and allocate bandwidth in a next data transmission cycle to the user terminal device 701 according to the second bandwidth requirement value.

[0353] Figure 8 The electronic device 800 in the embodiment of the present application may further include a communication interface 803, which is, for example, a network port, through which the electronic device can transmit data. For example, the communication interface 803 can implement the above Figure 5 The communication unit 502 introduced in or the above Figure 6 The functions of the communication unit 601 are introduced.

[0354] In the embodiment of the present application, the memory 802 stores instructions that can be executed by at least one controller 801. The at least one controller 801 can be used to execute each step in the above method by executing the instructions stored in the memory 802. For example, the controller 801 can implement the above Figure 5 The processing unit 501 or the above Figure 6 The function of the processing unit 602 in.

[0355] Among them, the controller 801 is the control center of the electronic device, which can use various interfaces and lines to connect various parts of the entire electronic device, by running or executing instructions stored in the memory 802 and calling data stored in the memory 802. Optionally, the controller 801 may include one or more processing units, and the controller 801 may integrate an application controller and a modem controller, wherein the application controller mainly processes the operating system and application programs, etc., and the modem controller mainly processes wireless communications. It is understandable that the above-mentioned modem controller may not be integrated into the controller 801. In some embodiments, the controller 801 and the memory 802 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0356] The controller 801 may be a general controller, such as a central processing unit (CPU), a digital signal controller, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general controller may be a microcontroller or any conventional controller, etc. The step of adjusting the bandwidth of the data transmission channel during data transmission disclosed in the embodiments of the present application may be performed directly by a hardware controller, or may be performed by a combination of hardware and software modules in the controller.

[0357] The memory 802 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 802 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (English: Random Access Memory, referred to as: RAM), a static random access memory (English: Static Random Access Memory, referred to as: SRAM), a programmable read-only memory (English: Programmable Read Only Memory, referred to as: PROM), a read-only memory (English: Read Only Memory, referred to as: ROM), an electrically erasable programmable read-only memory (English: Electrically Erasable Programmable Read-Only Memory, referred to as: EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 802 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0358] By designing and programming the controller 801, for example, the code corresponding to the method introduced in the above embodiment can be solidified into the chip, so that the chip can execute the steps of the above method when running. How to design and program the controller 801 is a technology well known to those skilled in the art and will not be repeated here.

[0359] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0360] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a controller of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the controller of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0361] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0362] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0363] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0364] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A bandwidth demand reporting method, It is characterized in that The method is applied to a user terminal device, and the method comprises: Collecting a first amount of data at a first frequency; Counting at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1; In the case where the variation between the at least two second data amounts is less than a set threshold, determining a second frequency according to the first duration; the first frequency is higher than the second frequency; The bandwidth requirement is reported to the central office device according to the second frequency.

2. The method according to claim 1, It is characterized in that The counting of at least two second data amounts collected within at least two first time periods includes: Acquire multiple preset durations; the multiple durations include the first duration; For any time period, counting at least two second data amounts collected within at least two of the any time periods; After counting at least two second data amounts collected within at least two first time periods, the method further includes: It is determined that among the multiple durations, the duration with the smallest change between the at least two second data amounts is the first duration.

3. The method according to claim 1 or 2, It is characterized in that In a case where the variation between the at least two second data amounts is not less than a set threshold, the method further includes: determining a first bandwidth requirement value according to a first data volume collected at the first frequency; Report the first bandwidth requirement value to the central office device according to the first frequency.

4. The method according to claim 3, It is characterized in that The determining the first bandwidth requirement value according to the first data amount collected according to the first frequency includes: Determining that the amount of first data collected at the first frequency shows an increasing trend, and the magnitude of the increase is greater than a first preset value; A first bandwidth requirement value is calculated according to a first data volume collected at the first frequency and a data volume stored in a cache.

5. The method according to claim 1 or 2, It is characterized in that The variation between the at least two second data amounts is determined in the following manner: Determine an average value of N first data amounts contained in each second data amount; The variation between the at least two second data amounts is determined according to the discreteness of the average values ​​respectively determined for the at least two second data amounts.

6. The method according to claim 1 or 2, It is characterized in that Reporting bandwidth requirements to the central office device according to the second frequency includes: collecting a second amount of data at the second frequency, and determining the second bandwidth requirement value according to the collected second amount of data; The second bandwidth requirement value is sent to the central office device according to a second frequency.

7. The method according to claim 6, It is characterized in that The determining the second bandwidth requirement value according to the collected second data volume includes: Determining that the amounts of the plurality of second data collected continuously show an increasing trend, and the increase is greater than a second preset value; The second bandwidth requirement value is determined according to a plurality of continuously collected second data amounts and the amount of data stored in the cache.

8. The method according to claim 7, It is characterized in that The determining the second bandwidth requirement value according to the plurality of continuously collected second data amounts and the amount of data stored in the cache includes: Determine a first target data volume according to a peak value among the N first data volumes contained in each second data volume and a newly collected second data volume; When the amount of data stored in the cache is less than a first threshold, calculating the second bandwidth requirement value according to the first target data amount; When the amount of data stored in the cache is not less than the first threshold, a second target data amount is determined according to the first target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is calculated according to the second target data amount.

9. The method according to claim 6, It is characterized in that The determining the second bandwidth requirement value according to the collected second data volume includes: When the growth rate of the second data volume collected the most recently compared with the second data volume collected the last time is greater than the third preset value, or the result obtained by dividing the remaining storage space in the cache by the average data volume of the current first time length is less than the fourth preset value, an emergency bandwidth identifier is generated; Determine the second bandwidth requirement value according to a plurality of second data amounts collected continuously and the amount of data stored in the cache; The sending the second bandwidth requirement value to the central office device includes: Sending the second bandwidth requirement value and the emergency bandwidth identifier to the central office device; The emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device during the current data transmission period.

10. The method according to claim 9, It is characterized in that In the case where the growth rate of the latest collected second data volume compared to the second data volume collected last time is greater than the third preset value, the growth rate of the latest collected second data volume compared to the second data volume collected when the bandwidth demand was last reported is greater than the fifth preset value; or The amount of data stored in the cache accounts for more than a sixth preset value.

11. The method according to claim 9 or 10, It is characterized in that The determining the second bandwidth requirement value according to the plurality of continuously collected second data amounts and the amount of data stored in the cache includes: Calculate a third target data volume according to the most recently collected second data volume and the second data volume collected when the bandwidth requirement was last reported; When the amount of data stored in the cache is less than a second threshold, determining the second bandwidth requirement value according to the third target data amount; When the amount of data stored in the cache is not less than the second threshold, a fourth target data amount is determined according to the third target data amount and the amount of data stored in the cache; and the second bandwidth requirement value is determined according to the fourth target data amount.

12. The method according to claim 9 or 10, It is characterized in that After sending the second bandwidth requirement value and the emergency bandwidth identifier to the central office device, the method further includes: The frequency of reporting bandwidth requirements to the central office device is switched from the second frequency to the first frequency.

13. The method according to claim 1 or 2, It is characterized in that After determining the second frequency according to the first duration, the method further includes: collecting a second amount of data according to the second frequency; When there is a periodic sudden increase in the second data volume within a preset time period, determining a third bandwidth requirement value according to each sudden increase in the second data volume, and determining an emergency bandwidth requirement time according to the duration of each sudden increase in the second data volume; An emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value are sent to the central office device; wherein the emergency bandwidth identifier is used to instruct the central office device to allocate additional bandwidth to the user terminal device in the current data transmission cycle.

14. The method according to claim 1 or 2, It is characterized in that After reporting the bandwidth requirement to the central office device according to the second frequency, the method further includes: collecting a second amount of data according to the second frequency; Calculating peak values ​​of N first data amounts contained in each of a plurality of second data amounts collected continuously, and determining an average value of the calculated plurality of peak values; When the ratio of the latest collected second data volume to the average value of the multiple peak values ​​is greater than the seventh preset value, or the proportion of data stored in the cache exceeds the eighth preset value, the frequency of reporting bandwidth requirements to the local device will be switched from the second frequency to the first frequency.

15. The method according to claim 1 or 2, It is characterized in that After determining the second frequency according to the first duration, the method further includes: collecting a second amount of data according to the second frequency; When the decrease of the Q second data amounts collected continuously exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold, determining a bandwidth release value according to the Q second data amounts; A bandwidth release request is sent to the central office device; the bandwidth release request carries the bandwidth release value, and is used to request the central office device to release the bandwidth indicated by the bandwidth release value; Q is an integer greater than 1, and the value of Q is determined based on the number of bandwidth demand reports within a recently set time period.

16. The method according to claim 15, It is characterized in that The determining of the bandwidth release value according to the Q second data amounts includes: Calculating an average value of the N first data amounts contained in each of the Q second data amounts; Determine a fifth target data volume according to the calculated Q average values ​​and the second data volume collected when the bandwidth requirement is most recently reported; The bandwidth release value is determined according to the fifth target data volume.

17. A method for processing bandwidth requirements, It is characterized in that The method is applied to a central office device, and the method comprises: Receiving a second bandwidth requirement value reported by a user terminal device according to a second frequency; wherein the second frequency is determined according to a first duration, and a change between at least two second data amounts collected within at least two of the first durations is less than a set threshold; and the second data amount includes N first data amounts collected according to the first frequency; The bandwidth in the next data transmission cycle is allocated to the user terminal equipment according to the second bandwidth requirement value.

18. The method according to claim 17, It is characterized in that After allocating bandwidth in the next data transmission cycle to the user terminal device according to the second bandwidth requirement value, the method further includes: Receiving an emergency bandwidth identifier, the emergency bandwidth requirement time, and the third bandwidth requirement value from a user terminal device; According to the emergency bandwidth identifier and the third bandwidth requirement value, additional emergency bandwidth is allocated to the user terminal device in a current data transmission period, and according to the emergency bandwidth requirement time, a time for releasing the additional emergency bandwidth is determined.

19. The method according to claim 17 or 18, It is characterized in that Before receiving the second bandwidth requirement value reported by the user terminal device according to the second frequency, the method further includes: A first bandwidth requirement value reported by the user terminal device according to a first frequency is received; the first bandwidth requirement value is determined according to a first data volume collected according to the first frequency.

20. The method according to claim 17 or 18, It is characterized in that After allocating bandwidth in the next data transmission cycle to the user terminal device according to the second bandwidth requirement value, the method further includes: In some embodiments, after allocating bandwidth in the next data transmission cycle to the user terminal device according to the second bandwidth requirement value, the method further includes: Receive a bandwidth release request from a user terminal device; the bandwidth release request carries a bandwidth release value; the bandwidth release value is determined according to the Q second data amounts when a decrease in the Q second data amounts continuously collected by the user terminal device exceeds a ninth preset value and the amount of data stored in the cache is less than a third threshold; Q is an integer greater than 1, and the value of Q is determined according to the number of bandwidth demand reports within a recently set time period; The bandwidth indicated by the bandwidth release value allocated to the user terminal equipment is released.

21. A bandwidth demand reporting device, It is characterized in that The device is a user terminal device, or the device is applied to the user terminal device, and the device includes: A processing unit, configured to collect a first amount of data at a first frequency; The processing unit is further used to count at least two second data amounts collected within at least two first time periods; the second data amount includes N first data amounts collected according to the first frequency; N is an integer greater than 1; The processing unit is further configured to determine a second frequency according to the first duration when a change between the at least two second data amounts is less than a set threshold; the first frequency is higher than the second frequency; The communication unit is further used to report bandwidth requirements to the central office device according to the second frequency.

22. A bandwidth demand processing device, It is characterized in that The device is a central office device, or the device is applied to the central office device, and the device includes: A communication unit, configured to receive a second bandwidth requirement value reported by a user terminal device according to a second frequency; wherein the second frequency is determined according to a first duration, and a change between at least two second data amounts collected within at least two of the first durations is less than a set threshold; the second data amount includes N first data amounts collected according to the first frequency; and the second bandwidth requirement value is determined according to the second data amount; The processing unit is configured to allocate bandwidth in a next data transmission cycle to the user terminal device according to the second bandwidth requirement value.

23. An electronic device, It is characterized in that The electronic device comprises a controller and a memory, The memory is used to store computer programs or instructions; The controller is used to execute the computer program or instructions in the memory so that the method described in any one of claims 1 to 16 or any one of claims 17 to 20 is executed.

24. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called by a computer, the computer executes the method according to any one of claims 1 to 16 or any one of claims 17 to 20.