Bandwidth granting method, device and system, storage medium, and electronic device
By analyzing the data information sent by the ONU in the PON system and matching bandwidth time authorization, the bandwidth waste caused by uplink data delay and jitter is solved, and zero delay and zero jitter are achieved, and the performance of the communication system is improved.
Patent Information
- Application Number
- PCT/CN2024/085350
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-30
- Filing Date
- 2024-04-01
- Publication Date
- 2025-01-02
AI Technical Summary
The delay and jitter of uplink data in existing PON systems lead to waste of bandwidth, and the existing technology has failed to effectively solve this problem.
By obtaining the data information sent by ONU in the OLT device, analyzing and determining the packet length, transmission time and transmission cycle of the target data, matching the bandwidth time authorization information, ensuring that the ONU sends data according to the target bandwidth time, thereby achieving zero delay and zero Jitter.
It effectively eliminates data transmission delay and jitter, maximizes bandwidth utilization, and improves the performance of the communication system.
Smart Images

Figure CN2024085350_02012025_PF_FP_ABST
Abstract
Description
Bandwidth authorization method, device and system, storage medium and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure is based on Chinese patent application CN 202310804543.8, filed on June 30, 2023, entitled “Method, device and system, storage medium and electronic device for bandwidth authorization”, and claims the priority of the patent application, and all the contents disclosed therein are incorporated into this disclosure by reference. Technical Field
[0003] The embodiments of the present disclosure relate to the field of communications, and in particular, to a method, device, system, storage medium, and electronic device for bandwidth authorization. Background Art
[0004] The existing PON (Passive Optical Network) uplink scheduling method is that the OLT (Optical Line Terminal) side issues an authorization time slice to the ONU (Optical Network Unit). The authorization includes the time point when the ONU sends the uplink data and the total allocated time slice length. The ONU sends the uplink data to the OLT within the specified time slice in a time-division burst manner. When the ONU does not receive the authorization, all uplink data to be sent must be cached until the bandwidth authorization is received. This mechanism will affect the overall transmission delay and jitter. For services that originally had periodicity, the periodicity may disappear with the cache after passing through the PON system, introducing additional delay and jitter. In the system, large bandwidth or multiple bandwidth transmission methods are usually used to reduce delay and jitter. This method will cause bandwidth waste.
[0005] Currently, no effective solution has been proposed to solve the problem of system bandwidth waste caused by delay and jitter in data transmission in related technologies.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a bandwidth authorization method, apparatus, system, storage medium, and electronic device to at least solve the problem of system bandwidth waste caused by eliminating delay and jitter in data transmission in the related art.
[0008] According to one embodiment of the present disclosure, a bandwidth authorization method is provided, comprising: obtaining data transmission information of multiple data sent by an optical network unit (ONU), wherein the data transmission information of each data carries time information of the ONU sending the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by an optical line terminal (OLT); determining target data from the multiple data based on the time information of each data, wherein a target time for the ONU to send the target data satisfies a predetermined relationship with a bandwidth time included in target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information issued by the OLT to the ONU for sending the target data; analyzing the target data to determine a data packet length, a target sending time, and a target sending period of the target data; and sending a target bandwidth time that matches the data packet length, the target sending time, and the target sending period to the ONU, to instruct the ONU to send subsequent target data according to the target bandwidth time.
[0009] According to another embodiment of the present disclosure, a bandwidth authorization device is provided, comprising: an acquisition module configured to acquire data transmission information of multiple data sent by an optical network unit (ONU), wherein the data transmission information of each data carries time information of the ONU sending the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by an optical line terminal (OLT); a first determination module configured to determine target data from the multiple data based on the time information of each data, wherein a target time for the ONU to send the target data satisfies a predetermined relationship with a bandwidth time included in target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information issued by the OLT to the ONU for sending the target data; a second determination module configured to analyze the target data to determine a data packet length, a target sending time, and a target sending period of the target data; and a sending module configured to send a target bandwidth time matching the data packet length, the target sending time, and the target sending period to the ONU, to instruct the ONU to send subsequent target data according to the target bandwidth time.
[0010] According to another embodiment of the present disclosure, a bandwidth authorization system is provided, including an optical line terminal OLT and an optical network unit ONU, wherein the OLT includes the bandwidth authorization device as described in the above embodiment.
[0011] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0012] According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG1 is a schematic diagram of business types according to an embodiment of the present disclosure;
[0014] FIG2 is a first schematic diagram of data transmission according to an embodiment of the present disclosure;
[0015] FIG3 is a second schematic diagram of data transmission according to an embodiment of the present disclosure;
[0016] FIG4 is a hardware structure block diagram of a mobile terminal of a bandwidth authorization method according to an embodiment of the present disclosure;
[0017] FIG5 is a flow chart of a method for bandwidth authorization according to an embodiment of the present disclosure;
[0018] FIG6 is a schematic diagram of data attributes according to an embodiment of the present disclosure;
[0019] FIG7 is a system block diagram according to an embodiment of the present disclosure;
[0020] FIG8 is a third schematic diagram of data transmission according to an embodiment of the present disclosure;
[0021] FIG9 is a schematic diagram of data linear recovery according to an embodiment of the present disclosure;
[0022] FIG10 is a schematic diagram of data clustering according to an embodiment of the present disclosure;
[0023] FIG11 is a schematic diagram of a comparison model according to an embodiment of the present disclosure;
[0024] FIG12 is an overall flow chart according to an embodiment of the present disclosure;
[0025] FIG13 is a structural block diagram of an apparatus for bandwidth authorization according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0028] First, the related technologies involved in this disclosure are described:
[0029] In PON scenarios, there are many services with relatively fixed periodicity and consistent packet lengths (i.e., data packets). Some periodic service models have a single period, while some systems' periodic data is not necessarily single-periodic. This includes services such as those shown in Figure 1. While the time between adjacent packets is not periodic, as a whole, the data shown in Figure 1 is transmitted in a single, large period.
[0030] In addition, the existing traditional DBA (Dynamic Bandwidth Assignment) function cannot provide a mature method to eliminate the delay jitter of periodic services at the PON level. As shown in Figure 2, with a certain probability, the upstream data on the ONU side always waits for the OLT authorization to be received before it is sent. In addition, there is also a probability that the upstream data and the authorization time will coincide, as shown in Figure 3. In this case, the additional delay caused by DBA can be reduced to zero.
[0031] To address the problem in related technologies whereby upstream data on the ONU side always waits for the OLT authorization before being sent, resulting in significant data delay and system jitter, the present disclosure utilizes the characteristic that upstream data in the PON system can coincide with the bandwidth authorization to eliminate the additional delay caused by complex multi-cycle upstream data at the PON layer. The following describes how to eliminate data delay and system jitter in conjunction with the embodiments.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 4 is a hardware structure block diagram of the mobile terminal of the bandwidth authorization method of the embodiment of the present disclosure. As shown in Figure 4, the mobile terminal may include one or more (only one is shown in Figure 4) processors 402 (the processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 404 configured to store data, wherein the above-mentioned mobile terminal may also include a transmission device 406 and an input and output device 408 configured to have a communication function. It can be understood by those skilled in the art that the structure shown in Figure 4 is only for illustration and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in Figure 4, or have a configuration different from that shown in Figure 4.
[0033] The memory 404 can be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the bandwidth authorization method in the embodiment of the present disclosure. The processor 402 executes various functional applications and data processing by running the computer program stored in the memory 404, that is, implementing the above-mentioned method. The memory 404 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 404 may further include a memory remotely located relative to the processor 402, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] Transmission device 406 is configured to receive or transmit data via a network. Specific examples of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, transmission device 406 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In one embodiment, transmission device 406 may be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
[0035] In this embodiment, a method for bandwidth authorization is provided. FIG5 is a flow chart of the method for bandwidth authorization according to an embodiment of the present disclosure. As shown in FIG5 , the process includes the following steps:
[0036] Step S502: Acquire data transmission information of multiple data sent by an optical network unit (ONU), wherein the data transmission information of each data carries time information of when the ONU sent the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by the optical line terminal (OLT);
[0037] Step S504: determining target data from the plurality of data based on time information of each data, wherein a target time for the ONU to send the target data satisfies a predetermined relationship with a bandwidth time included in target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information sent by the OLT to the ONU for sending the target data;
[0038] Step S506, analyzing the target data to determine the data packet length, target sending time, and target sending period of the target data;
[0039] Step S508: Send the target bandwidth time that matches the data packet length, the target sending time, and the target sending period to the ONU, so as to instruct the ONU to send the subsequent target data according to the target bandwidth time.
[0040] The above operations may be performed by the OLT, or a processing module built into the OLT, or a processor or processing system associated with the OLT, or other devices with similar processing capabilities.
[0041] In the above embodiment, the data transmitted by the ONU includes multiple types of data, and the transmission period of each type of data can be different. In addition, the data transmitted by the ONU may also include some non-periodic data. Since this application mainly predicts the subsequent transmission time information of periodically transmitted data, the non-periodic data transmitted by the ONU can be ignored. In addition, when the ONU transmits upstream data, it sends it based on the bandwidth authorization information issued by the OLT. The bandwidth authorization information, also known as the authorization time slice, mainly includes the time point when the ONU transmits the upstream data and the total allocated time slice length.
[0042] In the above embodiment, the sending time of the data can be determined based on the timestamp of each data, wherein the timestamp can be a time label added by the ONU before sending the data. In addition, the timestamp can also be calculated by the OLT side based on information such as idle characters in the data packet.
[0043] In the above embodiment, the predetermined relationship actually means that the target time for the ONU to transmit the target data falls within the bandwidth time included in the target bandwidth authorization information. In other words, data whose transmission time (or the actual arrival location of the data) is consistent with the time included in the bandwidth authorization information needs to be filtered out. It should also be noted that this filtering operation can be deferred and performed later during the periodic algorithm verification.
[0044] In the above embodiment, the data received from the ONU will be analyzed to determine its sending time and sending period, and then the sending time of subsequent data can be predicted based on the determined sending time and sending period, and the corresponding bandwidth authorization time can be matched for the sending of subsequent data, thereby ensuring that bandwidth authorization is performed at the time of subsequent data sending, and achieving zero delay and zero jitter in the PON upstream system, thereby ensuring maximum bandwidth utilization, achieving zero delay and zero jitter in data transmission at the PON level, improving the performance of the overall communication system, and effectively solving the problem of system bandwidth waste caused by eliminating data transmission delay and jitter in related technologies.
[0045] In an optional embodiment, determining the target data from the plurality of data based on the time information of each data includes: obtaining the sending time of each data carried in the timestamp information of each data; and determining the data whose sending time is consistent with the bandwidth time as the target data. In this embodiment, the sending time being consistent with the bandwidth time actually means that the sending time falls within the bandwidth time. In addition, the target data can also be other types of data (for example, periodic data), which can be specifically filtered based on actual needs. In this way, interfering data can be filtered out, thereby ensuring that subsequent results are more accurate.
[0046] In an optional embodiment, analyzing the target data to determine the data packet length, target sending time and target sending period of the target data includes: obtaining the sending time, packet length and index of the encapsulation unit to which each data is carried in the timestamp information of each data; determining the time interval between two adjacent data with the same index of the encapsulation unit based on the sending time and packet length of each data; eliminating the non-periodic data included in the target data based on the time interval to obtain first data; clustering the first data to obtain multiple categories of periodic data; and separately determining the data packet length, sending time and sending period of each category of periodic data.
[0047] In the above embodiment, when the ONU transmits data, it carries relevant information of the data in the relevant position of the data packet (e.g., the header or other parts other than the header), including but not limited to the above-mentioned transmission time, packet length, index of the encapsulation unit, etc., wherein the transmission time (or time information) can be mapped into the form of superframe + time. The superframe (SF) is the processing unit of the PON network and is measured in units of 125us. Within 125us, time is divided into intra-frame time (TIME) units according to the minimum encapsulation. Therefore, time information can be expressed in the format of (SF, TIME) in the PON system. In addition, the above-mentioned encapsulation unit is the carrier for carrying services in the upstream direction of the PON and can be abbreviated as TCONT. That is, PON-level service encapsulation is in units of TCONT. Each TCONT is represented by an index ALLOC-ID. Different types of data can be sent using different TCONTs. Either the ONU side or the OLT side can record the timestamp (superframe number SF and intra-frame time TIME) and packet length LEN when data needs to be sent in the manner shown in FIG6 , wherein the content can be recorded by a new timestamp module on the ONU side or the OLT side.
[0048] In an optional embodiment, eliminating non-periodic data included in the target data based on the time interval to obtain the first data includes: filtering out data with the same time interval, determining the unfiltered data as the non-periodic data; and eliminating the non-periodic data included in the target data to obtain the first data. That is, only data with a periodic relationship is retained, and non-periodic data can be temporarily disregarded and directly eliminated.
[0049] In an optional embodiment, clustering the first data to obtain multiple categories of periodic data includes: performing linear recovery of data points based on the data characteristics of the first data; clustering the first data according to the time interval based on the linear recovery result, and determining multiple categories of the periodic data based on the clustering result.
[0050] In the above embodiment, when clustering the first data, it is necessary to implement clustering based on the characteristics of each data included in the first data, wherein the characteristics of the data here may include but are not limited to the sending time of the data and the interval with adjacent data (which may be uniformly the interval with the valid data adjacent thereto, and the valid data includes periodic data). For periodically sent data, its sending time and the sending interval between data are linear, so linear recovery can be performed based on this characteristic. In addition, the characteristics of the above data may also include other content, such as the length of the data, the type of sender of the data, etc. The specific information that needs to be considered shall be based on actual needs. It should also be noted that the above method of clustering periodic data after linear recovery is only an optional real-time method. In actual applications, other methods that can determine periodic data may also be used.
[0051] In an optional embodiment, performing linear recovery of data points based on the data characteristics of the first data includes: determining the transmission time of each data point included in the first data and the transmission time interval between adjacent valid data points; and constructing a linear relationship based on the transmission time of each data point and the transmission time interval; wherein the data characteristics include the transmission time of each data point and the transmission time interval. It should be noted that constructing a linear relationship based on the transmission time of data points and the transmission time interval between adjacent data points is merely an example. In actual applications, other elements capable of constructing a linear relationship may also be considered, as long as they can achieve similar functions.
[0052] In an optional embodiment, sending the target bandwidth time that matches the data packet length, the target sending time, and the target sending period to the ONU includes: obtaining the sending time and packet length of the target data carried in the timestamp information of the target data; determining the next sending time of the target data based on the sending time, packet length, data packet length, target sending time, and target sending period; and determining the target bandwidth time based on the next sending time, wherein the difference between the next sending time and the target bandwidth time is less than a predetermined time threshold. In this embodiment, the accuracy of the calculated target sending time can be verified based on the sending time of the target data (i.e., the actual sending time of the target data), and the estimated sending period is adjusted based on the verification result, thereby ensuring the accuracy of the determined next sending time.
[0053] In an optional embodiment, determining the next sending time of the target data based on the sending time, packet length, data packet length, target sending time and target sending period of the target data includes: comparing the sending time with the target sending time to obtain a first comparison result, and comparing the packet length with the data packet length to obtain a second comparison result; verifying the accuracy of the analysis result obtained after analyzing the target data based on the first comparison result and the second comparison result, wherein the analysis result includes the data packet length, the target sending time and the target sending period; adjusting the target sending period based on the accuracy to obtain the adjusted target sending period; and determining the next sending time of the target data based on the sending time and the adjusted target sending period. In this embodiment, the timestamp information of the target data carries the actual sending time and packet length of the target data. By analyzing the target data, a predicted data packet length and target sending time can be obtained. By comparing the actual packet length with the predicted packet length, and by comparing the actual sending time with the predicted sending time, the deviation between the predicted result and the actual result of the prediction method can be verified, and then the target sending period can be adjusted based on the deviation to obtain an accurate sending period.
[0054] The present disclosure is described as a whole below with reference to specific embodiments:
[0055] To implement bandwidth authorization at the moment a data packet arrives, this disclosure proposes a device as shown in Figure 7. The overall block diagram of this system can be found in Figure 7. Upon receiving bandwidth authorization from the OLT, the ONU sends periodic data. After parsing the upstream data, the OLT determines which data coincides with the bandwidth authorization based on the relationship between the bandwidth authorization information and the actual data arrival location. This data is then filtered for periodic algorithm verification, outputting the periodically calculated bandwidth delivery location and packet length to ensure that the next authorization coincides with data transmission time, ensuring zero DBA latency.
[0056] The apparatus involved in the embodiments of the present disclosure is mainly located on the OLT side, including an ONU uplink signal module, a data collection module, a period position prediction module, and a bandwidth calculation and delivery module. In addition, the ONU side may include a data sending module and a receiving bandwidth authorization module. The functions of each module in the OLT are described below:
[0057] ONU upstream signal module: receives upstream data sent by the ONU.
[0058] Data collection module: Responsible for parsing uplink data, filtering out data that coincides with the original bandwidth authorization and packet position (i.e., the time when the data packet / data is sent), recording the packet length and timestamp information of the data, and sending it to the periodic position prediction module.
[0059] Period Position Prediction Module: This module uses the data collected by the Data Collection Module to perform algorithmic analysis, restoring the existing timestamp information into clustered information with a linear relationship (the X-axis can be time, and the Y-axis can be the spacing between adjacent valid data). Based on the data characteristics, it recovers the specific period of a periodic service and verifies the results using the obtained data until the correct period is output. The original data and the calculated period value are output to the Bandwidth Calculation and Delivery Module for processing.
[0060] Bandwidth calculation and delivery module: Based on the acquired cycle and original data, the data packet length and timestamp information, and the calculated cycle value, it predicts the bandwidth time slice required to coincide with the authorized bandwidth of the data in the future and sends it to the ONU.
[0061] Step 1. The OLT receives raw upstream data and filters it in the data collection module (i.e., a module within the OLT). For PON systems, according to the GPON family standard, time information can be mapped into a superframe + time format. A superframe (SF) is the processing unit of the PON network and is measured in 125µs. Within this 125µs, time is divided into the minimum encapsulated intra-frame time (TIME) unit. Therefore, time information can be expressed in the PON system in the format of (SF, TIME). At the same time, PON-level service encapsulation is performed in TCONT units, and each TCONT is represented by an index ALLOC-ID.
[0062] A new timestamp module is added, including the ALLOC-ID to which the data belongs, and records its timestamp (superframe number SF and intra-frame time TIME) and packet length LEN when the data needs to be sent.
[0063] Step 2. The acquired data set is processed in the calculation module, and linear recovery of the data points is performed based on the data characteristics. Because the transmitted data is periodic, the intervals between adjacent valid data are always regular. The acquired timestamp information (SF, TIME, LEN) is used as a reference. Based on the acquired timestamp data, the time interval between two adjacent timestamp data with the same ALLOC-ID is obtained. Due to the characteristics of the non-single-cycle service model, the packet interval is always consistent within adjacent large cycles, as shown in delta1 and delta4 in Figure 8.
[0064] The acquired timestamp data is filtered by packet spacing, and the data with the same packet spacing is filtered out. This step can eliminate non-periodic data, as shown in Figure 9.
[0065] The recovered linear characteristics are clustered according to the spacing. After clustering is completed, the periodic point data can be screened for details. The obtained period information can be used to restore its linear characteristics through the original data to calculate the period. See Figure 10 for details.
[0066] Using the original data and the calculated period, accurate period information can be obtained using the model shown in Figure 11. Figure 11 can be used to verify the data transmission time point, that is, to use prior data to verify the accuracy of the data predicted by the embodiment of the present disclosure. If it is inaccurate, further adjustment is required to obtain accurate time data.
[0067] It should be noted that the above determination algorithm is only an example of using the packet spacing characteristic. After obtaining the original data, there are other ways to obtain the period, including but not limited to this algorithm.
[0068] Step 3: The period information and raw data are sent to the bandwidth dispatch calculation module. Based on the available data (timestamp location and packet length) and the calculated length, the module determines the arrival location of the next periodic service, thus achieving precise bandwidth allocation. In a PON system, the units of authorized bandwidth are the same as the structural units of the construction: SF, TIME, and ALLOCID.
[0069] Step 4: The system gradually learns and issues the predicted data authorization. Uplink data can still verify the system's zero-wait effect through the constructed timestamp structure. If there is a discrepancy between the expected authorization position and the packet timestamp position on the OLT side, the specific authorization position can be adjusted to improve overall system stability.
[0070] The flowchart of the above steps can be seen in Figure 12.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0072] This embodiment also provides a device for bandwidth authorization, which is used to implement the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0073] FIG13 is a structural block diagram of a device for bandwidth authorization according to an embodiment of the present disclosure. As shown in FIG13 , the device includes:
[0074] An acquisition module 132 is configured to acquire data transmission information of multiple data sent by an optical network unit (ONU), wherein the data transmission information of each data carries time information of the ONU sending the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by the optical line terminal (OLT);
[0075] A first determining module 134 is configured to determine target data from the plurality of data based on time information of each data, wherein a target time for the ONU to send the target data satisfies a predetermined relationship with a bandwidth time included in target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information sent by the OLT to the ONU for sending the target data;
[0076] The second determination module 136 is configured to analyze the target data to determine the data packet length, target sending time, and target sending period of the target data;
[0077] The sending module 138 is configured to send the target bandwidth time matching the data packet length, the target sending time and the target sending period to the ONU, so as to instruct the ONU to send the subsequent target data according to the target bandwidth time.
[0078] In an optional embodiment, the first determination module 134 includes: a first acquisition unit, configured to obtain the sending time of each data carried in the timestamp information of each data; a first determination unit, configured to determine the data whose sending time is consistent with the bandwidth time as the target data.
[0079] In an optional embodiment, the second determination module 136 includes: a second acquisition unit, configured to obtain the sending time, packet length and index of the encapsulation unit to which each data is carried in the timestamp information of each data; a second determination unit, configured to determine the time interval between two adjacent data with the same index of the encapsulation unit to which they belong based on the sending time and packet length of each data; a removal unit, configured to remove the non-periodic data included in the target data based on the time interval to obtain first data; a clustering unit, configured to cluster the first data to obtain multiple types of periodic data; and a third determination unit, configured to respectively determine the data packet length, sending time and sending period of each type of periodic data.
[0080] In an optional embodiment, the elimination unit includes: a screening subunit, configured to filter out data with the same time interval and determine the unfiltered data as the non-periodic data; and a elimination subunit, configured to eliminate the non-periodic data included in the target data to obtain the first data.
[0081] In an optional embodiment, the clustering unit includes: a recovery subunit, configured to perform linear recovery of data points based on the data characteristics of the first data; a clustering subunit, configured to cluster the first data according to the time interval based on the linear recovery result, and determine multiple categories of the periodic data based on the clustering result.
[0082] In an optional embodiment, the recovery subunit is configured to achieve linear recovery of data points based on the data characteristics of the first data in the following manner: determining the sending time of each data included in the first data and the sending time interval between adjacent valid data; constructing a linear relationship based on the sending time of each data and the sending time interval; wherein the data characteristics include the sending time of each data and the sending time interval.
[0083] In an optional embodiment, the sending module includes: a third acquisition subunit, configured to obtain the sending time and packet length of the target data carried in the timestamp information of the target data; a fourth determination unit, configured to determine the next sending time of the target data based on the sending time, packet length, data packet length, target sending time and target sending period of the target data; a fifth determination unit, configured to determine the target bandwidth time based on the next sending time, wherein the difference between the next sending time and the target bandwidth time is less than a predetermined time threshold.
[0084] In an optional embodiment, the fourth determination unit includes: a comparison subunit, configured to compare the sending time with the target sending time to obtain a first comparison result, and to compare the packet length with the data packet length to obtain a second comparison result; a verification subunit, configured to verify the accuracy of the analysis result obtained after analyzing the target data based on the first comparison result and the second comparison result, wherein the analysis result includes the data packet length, the target sending time and the target sending period; an adjustment subunit, configured to adjust the target sending period based on the accuracy to obtain an adjusted target sending period; a determination subunit, configured to determine the next sending time of the target data based on the sending time and the adjusted target sending period.
[0085] According to one aspect of the present disclosure, a bandwidth authorization system is further provided, including an optical line terminal OLT and an optical network unit ONU, wherein the OLT includes the bandwidth authorization device described in any one of the aforementioned embodiments.
[0086] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0087] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0088] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0089] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0090] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0091] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0092] As can be seen from the above embodiments, the present disclosure relates to a method and apparatus for predicting the arrival time of future data packets based on acquired upstream periodic data at the OLT device, and granting bandwidth to the ONU. This relates particularly to the field of PON communications in optical networks. Upstream communications on PON networks are implemented in a burst-time division manner, with the OLT sending upstream bandwidth grants to the ONUs, which then transmit upstream data in designated time slots. Based on existing upstream DBA scheduling, data predictions are performed and bandwidth is issued based on acquired data information. As can be seen, the present disclosure utilizes the PON system's upstream data to achieve the characteristic of exactly coinciding with bandwidth grants, eliminating the additional latency introduced by complex multi-periodic upstream data at the PON layer. The OLT device parses the time information of the ONU's data transmission, generating a series of data with timestamps and packet length information. This data is then passed through an algorithm module, which extracts the periodic characteristics and packet arrival location of the current periodic service based on the complex multi-periodic service characteristics. Bandwidth grants are then accurately issued at the packet arrival time, ensuring zero latency (i.e., zero latency and zero jitter) within the PON upstream system. This ensures maximum bandwidth utilization, improves the uplink latency of the overall communication system, and reduces jitter.
[0093] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.
[0094] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.
Claims
1. A method for bandwidth authorization, comprising: Acquire data sending information of multiple data sent by an optical network unit ONU, wherein the data sending information of each data carries time information of the ONU sending the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by an optical line terminal OLT; Determine target data from the plurality of data based on time information of each of the data, wherein the target time for the ONU to send the target data satisfies a predetermined relationship with the bandwidth time included in the target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information for sending the target data sent by the OLT to the ONU; Analyzing the target data to determine the data packet length, target sending time and target sending cycle of the target data; The target bandwidth time matching the data packet length, the target sending time and the target sending period is sent to the ONU to instruct the ONU to send the subsequent target data according to the target bandwidth time.
2. The method according to claim 1, wherein: Determining target data from a plurality of the data based on time information of each of the data comprises: Obtaining the sending time of each data carried in the timestamp information of each data; The data whose sending time is consistent with the bandwidth time is determined as the target data.
3. The method according to claim 1, wherein: Analyzing the target data to determine the data packet length, target sending time, and target sending period of the target data includes: Obtaining the sending time, packet length and index of the encapsulation unit to which each data belongs carried in the timestamp information of each data; Determine the time interval between two adjacent data of the encapsulation units to which the data belongs and which have the same index based on the sending time and packet length of each data; Eliminate non-periodic data included in the target data based on the time interval to obtain first data; Clustering the first data to obtain multiple types of periodic data; The data packet length, sending time and sending cycle of each type of periodic data are determined respectively.
4. The method according to claim 3, wherein: Eliminating non-periodic data included in the target data based on the time interval to obtain first data includes: Screening out data with the same time interval, and determining the data not screened out as the non-periodic data; The non-periodic data included in the target data is eliminated to obtain the first data.
5. The method according to claim 3, wherein: Clustering the first data to obtain multiple types of periodic data includes: Performing linear recovery of data points based on the data characteristics of the first data; The first data is clustered according to the time interval based on the linear recovery result, and a plurality of categories of the periodic data are determined based on the clustering result.
6. The method according to claim 5, wherein: The linear recovery of the data points based on the data characteristics of the first data includes: Determine the sending time of each data included in the first data and the sending time interval between each data and adjacent valid data; Building a linear relationship based on the sending time of each data and the sending time interval; The data characteristics include the sending time of each data and the sending time interval.
7. The method according to claim 1, wherein: Sending a target bandwidth time matching the data packet length, the target sending time, and the target sending period to the ONU comprises: Obtaining the sending time and packet length of the target data carried in the timestamp information of the target data; Determine the next time the target data is sent based on the target data sending time, packet length, data packet length, target sending time, and target sending period; The target bandwidth time is determined based on the next sending time, wherein the difference between the next sending time and the target bandwidth time is less than a predetermined time threshold.
8. The method according to claim 7, wherein: Determining the next time the target data is sent based on the target data sending time, the packet length, the data packet length, the target sending time, and the target sending period includes: Comparing the sending time with the target sending time to obtain a first comparison result, and comparing the packet length with the data packet length to obtain a second comparison result; Verifying the accuracy of an analysis result obtained after analyzing the target data based on the first comparison result and the second comparison result, wherein the analysis result includes the data packet length, the target sending time, and the target sending period; adjusting the target sending period based on the accuracy to obtain an adjusted target sending period; The next sending time of the target data is determined based on the sending time and the adjusted target sending period.
9. A bandwidth authorization device, comprising: An acquisition module is configured to acquire data transmission information of multiple data sent by an optical network unit ONU, wherein the data transmission information of each data carries time information of the ONU sending the data, and the multiple data are sent by the ONU based on bandwidth authorization information issued by the optical line terminal OLT; A first determination module is configured to determine target data from a plurality of the data based on time information of each of the data, wherein a target time for the ONU to send the target data satisfies a predetermined relationship with a bandwidth time included in target bandwidth authorization information, and the target bandwidth authorization information is bandwidth authorization information for sending the target data sent by the OLT to the ONU; A second determination module is configured to analyze the target data to determine a data packet length, a target sending time, and a target sending cycle of the target data; The sending module is configured to send the target bandwidth time matching the data packet length, the target sending time and the target sending period to the ONU, so as to instruct the ONU to send the subsequent target data according to the target bandwidth time.
10. A bandwidth authorization system, comprising an optical line terminal OLT and an optical network unit ONU, wherein: The OLT comprises the bandwidth authorization device according to claim 9.
11. A computer-readable storage medium having a computer program stored therein, wherein: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Bandwidth allocation method and device in Ethernet passive optical network
CN101742368A
Network bandwidth resource allocation method and device
CN108449286A
Automatic bandwidth allocation method and device for industrial PON (Passive Optical Network)
CN114025261A
Bandwidth allocation method, optical line terminal, optical network unit and storage medium
CN114430372A
Method and apparatus for allocating bandwidth based on machine learning in passive optical network
US20200092622A1