Bandwidth request sending method and device, storage medium and electronic device

By adjusting the transmission order of bandwidth requests and loads in the passive optical network system, the amount of data carried in the bandwidth request is closer to the actual amount of data to be sent by the ONU, the problem of inaccurate data to be sent by the OLT is solved, and the accuracy of bandwidth allocation is improved.

CN120128830APending Publication Date: 2025-06-10ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510299349.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2019-10-12
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

In passive optical network systems, the data to be sent by OLT is inaccurate, resulting in inaccurate dynamic bandwidth allocation.

Method used

In the bandwidth allocation obtained by the transmission container, load and bandwidth requests are sent to the optical circuit terminals in sequence. The amount of data carried in the bandwidth request is the amount of data cached in the transmission container. By adjusting the transmission order of load and bandwidth requests, it is ensured that the amount of data carried in the bandwidth request is closer to the actual required data amount.

Benefits of technology

The accuracy of OLT bandwidth allocation is improved, and the problem of inaccurate DBA allocation caused by inaccurate data to be sent by OLT is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128830A_ABST
    Figure CN120128830A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a bandwidth request sending method and device, a storage medium and an electronic device, and the method comprises the steps: sequentially sending a load and a bandwidth request to an optical line terminal in bandwidth allocation obtained by a transmission container, the load carrying first data, the bandwidth request carrying the data size of second data, and the data size of the second data being smaller than the first data; the data volume of the second data is the data volume cached in the transmission container when the bandwidth request is generated, and the problem that the condition of the to-be-sent data in the ONU acquired by the OLT in the related technology is inaccurate, and consequently the DBA allocation is inaccurate is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, and in particular, to a method and apparatus for sending a bandwidth request, a storage medium, and an electronic device. Background Art

[0002] As shown in the Passive Optical Network (PON) architecture Figure 1 is a point-to-multipoint network architecture, which consists of an Optical Line Terminal (OLT), an Optical Distribute Network (ODN), and an Optical Network Unit (ONU). The OLT is connected to multiple optical network units through the ODN.

[0003] The upstream transmission of the ONU requires coordination by the OLT through bandwidth allocation to avoid signal conflicts between different ONUs. The passive optical network system generally calculates the upstream bandwidth of each ONU through Dynamic Bandwidth Assignment (DBA).

[0004] In the traditional DBA algorithm, the ONU reports the local data to be transmitted to the OLT, and the OLT allocates bandwidth to the ONU according to the reported situation of the ONU. The local data to be transmitted is represented by an upstream Dynamic Bandwidth Request (DBRu). In an Allocation, it includes DBRu and a payload. In a bandwidth allocation cycle, DBRu is sent first, and then the data carried in the payload is sent immediately afterwards. The buffered data for requesting bandwidth allocation in DBRu includes the data carried in the subsequent payload. Therefore, when the OLT receives DBRu, the data to be transmitted by the ONU indicated in DBRu no longer includes the data carried in the payload. At this time, the data to be transmitted by the ONU obtained by the OLT is inconsistent with the actual data to be transmitted. That is, the data to be transmitted by the ONU obtained by the OLT is inaccurate, which in turn leads to inaccurate DBA allocation.

[0005] In view of the problem in the related art that the data to be transmitted by the ONU obtained by the OLT is inaccurate, which in turn leads to inaccurate DBA allocation, no effective solution has been proposed yet. Summary of the Invention

[0006] Embodiments of the present disclosure provide a method and apparatus for sending a bandwidth request, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the situation of data to be sent in an ONU obtained by an OLT is inaccurate, thereby resulting in inaccurate DBA allocation.

[0007] According to an embodiment of the present disclosure, a method for sending a bandwidth request is provided, including: in the bandwidth allocation obtained by a transmission container, sequentially sending a payload and a bandwidth request to an optical line terminal, where the payload carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the bandwidth request is generated.

[0008] Optionally, sequentially sending a payload and a bandwidth request to an optical line terminal in the bandwidth allocation obtained by a transmission container includes: in the bandwidth allocation obtained by the transmission container, sending the payload to the optical line terminal; after sending the payload to the optical line terminal, sending the bandwidth request at the end position of the bandwidth allocation, where the difference between the generation time of the bandwidth request and the sending time of the bandwidth request is less than or equal to a preset difference.

[0009] Optionally, before sending the bandwidth request to the optical line terminal, the method further includes at least one of the following: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the payload and the bandwidth request in the bandwidth allocation; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the payload and the bandwidth request in the bandwidth allocation.

[0010] According to an embodiment of the present disclosure, a method for sending a bandwidth request is further provided, including: in the bandwidth allocation obtained by a transmission container, sequentially sending a bandwidth request and a payload to an optical line terminal, where the payload carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume cached in the transmission container when the bandwidth request is generated.

[0011] Optionally, before sequentially sending the bandwidth request and the payload to the optical line terminal, the method further includes at least one of the following: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the payload and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the payload and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data.

[0012] According to an embodiment of the present disclosure, there is also provided a method for sending a bandwidth request, including: in the bandwidth allocation obtained by a transmission container, sequentially sending a bandwidth request and a load to an optical line terminal, where the load carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume of the data cached in the transmission container when the bandwidth request is generated; the optical line terminal subtracts the data volume of the first data from the data volume of the second data to obtain the data volume of third data, and allocates bandwidth according to the data volume of the third data.

[0013] Optionally, before sequentially sending the bandwidth request and the load to the optical line terminal in the bandwidth allocation obtained by the transmission container, the method further includes: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data.

[0014] According to an embodiment of the present disclosure, a method for sending a bandwidth request is further provided, including: an optical network unit and an optical line terminal agree on a way to send a bandwidth request, where the optical network unit includes one or more transmission containers, and the way to send the bandwidth request includes at least one of the following: in the bandwidth allocation obtained by the transmission container, successively send a first payload and a first bandwidth request to the optical line terminal, where the first payload carries first data, and the first bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the first bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, successively send a second bandwidth request and a second payload to the optical line terminal, where the second payload carries third data, and the second bandwidth request carries the data volume of fourth data, and the data volume of the fourth data is obtained by subtracting the data volume of the third data from the data volume cached in the transmission container when the second bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, successively send a third bandwidth request and a third payload to the optical line terminal, where the third payload carries fifth data, and the third bandwidth request carries the data volume of sixth data, and the data volume of the sixth data is: the data volume cached in the transmission container when the third bandwidth request is generated, and the optical line terminal uses the data volume of the sixth data minus the data volume of the fifth data to obtain the data volume of seventh data, and allocates bandwidth according to the data volume of the seventh data; in the bandwidth allocation obtained by the transmission container, successively send a fourth bandwidth request and a fourth payload to the optical line terminal, where the fourth payload carries eighth data, and the fourth bandwidth request carries the data volume of ninth data, and the data volume of the ninth data is: the data volume cached in the transmission container when the fourth bandwidth request is generated.

[0015] Optionally, the agreement on the way to send a bandwidth request between the optical network unit and the optical line terminal includes: the optical network unit sends first indication information to the optical line terminal, where the first indication information is used to indicate the way to send the bandwidth request; the optical network unit receives second indication information sent by the optical line terminal, where the second indication information is used to indicate the way to send the bandwidth request.

[0016] According to an embodiment of the present disclosure, a device for sending a bandwidth request is further provided, including: a first sending module, configured to successively send a payload and a bandwidth request to an optical line terminal in the bandwidth allocation obtained by a transmission container, where the payload carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the bandwidth request is generated.

[0017] According to an embodiment of the present disclosure, there is also provided a bandwidth request sending device, including: a second sending module, configured to sequentially send a bandwidth request and a payload to an optical line terminal in the bandwidth allocation obtained by a transmission container, where the payload carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume of the data cached in the transmission container when the bandwidth request is generated.

[0018] According to an embodiment of the present disclosure, there is also provided a bandwidth request sending device, including: a third sending module, configured to sequentially send a bandwidth request and a payload to an optical line terminal in the bandwidth allocation obtained by a transmission container, where the payload carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume of the data cached in the transmission container when the bandwidth request is generated; an allocation module, configured to subtract the data volume of the first data from the data volume of the second data to obtain the data volume of third data, and allocate bandwidth according to the data volume of the third data.

[0019] According to an embodiment of the present disclosure, there is also provided a device for sending a bandwidth request, including: an agreement module, configured to agree on a sending manner of the bandwidth request between an optical network unit and an optical line terminal, where the optical network unit includes one or more transport containers, and the sending manner of the bandwidth request includes at least one of the following: in the bandwidth allocation obtained by the transport container, sequentially send a first payload and a first bandwidth request to the optical line terminal, where the first payload carries first data, and the first bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transport container when the first bandwidth request is generated; in the bandwidth allocation obtained by the transport container, sequentially send a second bandwidth request and a second payload to the optical line terminal, where the second payload carries third data, and the second bandwidth request carries the data volume of fourth data, and the data volume of the fourth data is obtained by subtracting the data volume of the third data from the data volume cached in the transport container when the second bandwidth request is generated; in the bandwidth allocation obtained by the transport container, sequentially send a third bandwidth request and a third payload to the optical line terminal, where the third payload carries fifth data, and the third bandwidth request carries the data volume of sixth data, and the data volume of the sixth data is: the data volume cached in the transport container when the third bandwidth request is generated, and the optical line terminal uses the data volume of the sixth data minus the data volume of the fifth data to obtain the data volume of seventh data, and allocates bandwidth according to the data volume of the seventh data; in the bandwidth allocation obtained by the transport container, sequentially send a fourth bandwidth request and a fourth payload to the optical line terminal, where the fourth payload carries eighth data, and the fourth bandwidth request carries the data volume of ninth data, and the data volume of the ninth data is: the data volume cached in the transport container when the fourth bandwidth request is generated.

[0020] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned method for sending a bandwidth request when running.

[0021] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the above-mentioned processor executes the above-mentioned method for sending a bandwidth request through the computer program.

[0022] In the bandwidth allocation obtained by the transmission container in the embodiments of the present application, a load and a bandwidth request are sequentially sent to the optical line terminal. Among them, the first data is carried in the load, and the data volume of the second data carried in the bandwidth request is: the data volume cached in the transmission container when the first bandwidth request is generated. By adjusting the sending order of the load and the bandwidth request, when the bandwidth request is sent, the first data carried in the load no longer exists in the current bandwidth allocation, and the data volume of the second data carried in the bandwidth request is closer to the data volume that actually needs to be sent in the current bandwidth allocation, solving the problem that the situation of the data to be sent in the ONU obtained by the OLT in the related art is inaccurate, and further causing inaccurate DBA allocation, and improving the accuracy rate of OLT bandwidth allocation. Description of the Drawings

[0023] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation of the present application. In the drawings:

[0024] Figure 1 is a schematic diagram of the architecture of a passive optical network in the related art;

[0025] Figure 2 is a flowchart of an optional method for sending a bandwidth request according to an embodiment of the present application;

[0026] Figure 3 is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application;

[0027] Figure 4 is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application;

[0028] Figure 5 is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application;

[0029] Figure 6 is a block diagram of the structure of an optional device for sending a bandwidth request according to an embodiment of the present application;

[0030] Figure 7 is a block diagram of the structure of an optional device for sending a bandwidth request according to an embodiment of the present application;

[0031] Figure 8 is a block diagram of the structure of an optional device for sending a bandwidth request according to an embodiment of the present application;

[0032] Figure 9 is a block diagram of the structure of an optional device for sending a bandwidth request according to an embodiment of the present application;

[0033] Figure 10It is a schematic diagram of an optional bandwidth allocation structure according to an embodiment of the present disclosure;

[0034] Figure 11 It is a schematic diagram of an optional bandwidth allocation structure according to an embodiment of the present disclosure;

[0035] Figure 12 It is a schematic block diagram of an optional device structure according to an embodiment of the present application. Detailed implementation manners

[0036] The present application will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence.

[0038] An embodiment of the present application provides a method for sending a bandwidth request. Figure 2 It is a flowchart of an optional method for sending a bandwidth request in an embodiment of the present application. As Figure 2 shown, the method includes:

[0039] Step S102, in the bandwidth allocation obtained by the transmission container, sequentially send a payload and a bandwidth request to the optical line terminal. Among them, the payload carries first data, and the data volume of the second data carried in the bandwidth request is: the data volume cached in the transmission container when the bandwidth request is generated.

[0040] Through the above method, in the bandwidth allocation obtained by the transmission container, a payload and a bandwidth request are sequentially sent to the optical line terminal. Among them, the payload carries first data, and the data volume of the second data carried in the bandwidth request is: the data volume cached in the transmission container when the bandwidth request is generated. By adjusting the sending order of the payload and the bandwidth request, when the bandwidth request is sent, the first data carried in the payload no longer exists in the current bandwidth allocation, and the data volume of the second data carried in the bandwidth request is closer to the actual data volume to be sent in the current bandwidth allocation, solving the problem in the related art that the situation of the data to be sent in the ONU obtained by the OLT is inaccurate, and further resulting in inaccurate DBA allocation, and improving the accuracy rate of OLT bandwidth allocation.

[0041] It should be noted that the transmission container can be represented by T-CONT. One ONU includes one or more T-CONTs. The sending of the bandwidth request is based on the ONU. Each time an ONU sends a payload or a bandwidth request to the OLT, the bandwidth allocation of one or more T-CONTs is included in each ONU.

[0042] Optionally, in the bandwidth allocation obtained by the transmission container, sequentially sending a load and a bandwidth request to the optical line terminal includes: in the bandwidth allocation obtained by the transmission container, sending a load to the optical line terminal; after sending the load to the optical line terminal, sending a bandwidth request at the end position of the bandwidth allocation, where the difference between the generation time of the bandwidth request and the sending time of the bandwidth request is less than or equal to a preset difference.

[0043] The closer to the end position of the bandwidth allocation, the closer the data volume of the second data carried in the bandwidth request is to the data volume cached in the bandwidth allocation, and the higher the accuracy of the OLT to allocate resources according to the data volume in the bandwidth request. The difference between the generation time of the bandwidth request and the sending time of the bandwidth request being less than or equal to the preset difference can be understood as the smaller the difference between the generation time of the bandwidth request and the sending time of the bandwidth request, the shorter the generation time of the bandwidth request, the faster the generation speed, and the closer the data volume of the second data is to the actual data volume cached in the bandwidth allocation.

[0044] Optionally, before sending a bandwidth request to the optical line terminal, the method further includes at least one of the following: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation.

[0045] It is necessary to agree between the ONU and the OLT. It can be that the ONU sends a report message to the OLT, or the OLT gives an indication to the ONU. After the OLT knows that the sending order of the bandwidth request for the load is to send the load first and then the bandwidth request, it can directly use the data volume of the second data to be sent carried in the bandwidth request to allocate bandwidth.

[0046] According to an embodiment of the present disclosure, a method for sending a bandwidth request is further provided. Figure 3 It is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application, as Figure 3 shown, the method includes: including:

[0047] Step S202, in the bandwidth allocation obtained by the transmission container, sequentially sending a bandwidth request and a load to the optical line terminal, where the load carries first data, the data volume of the second data is carried in the bandwidth request, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume cached in the transmission container when the bandwidth request is generated.

[0048] It should be noted that when the sending order of the load and the bandwidth request is not changed, the amount of data in the bandwidth request can be obtained through the above calculation method. When sending a bandwidth request, subtracting the first data carried in the subsequent sent load from the total amount of data cached in the current bandwidth allocation can basically obtain the bandwidth actually required for the current bandwidth request.

[0049] Optionally, before sequentially sending a bandwidth request and a load to an optical line terminal, the method further includes at least one of the following: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in bandwidth allocation, and / or the calculation method of the amount of the second data; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in bandwidth allocation, and / or the calculation method of the amount of the second data.

[0050] According to an embodiment of the present disclosure, there is also provided a method for sending a bandwidth request. Figure 4 It is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application, as Figure 4 shown. The method includes:

[0051] Step S302: In the bandwidth allocation obtained by the transmission container, sequentially send a bandwidth request and a load to the optical line terminal, where the load carries the first data, and the bandwidth request carries the amount of the second data. The amount of the second data is: the amount of data cached in the transmission container when the bandwidth request is generated;

[0052] Step S304: The optical line terminal subtracts the amount of the first data from the amount of the second data to obtain the amount of the third data, and allocates bandwidth according to the amount of the third data.

[0053] It should be noted that it is possible to indicate to the optical line terminal to subtract the amount of the first data from the amount of the second data to obtain the amount of the third data and allocate bandwidth according to the amount of the third data while sending the bandwidth request, or it may not be indicated through the bandwidth request. It may be that the ONU indicates to the OLT through other report information or indication information, or it may be pre-agreed between the OLT and the ONU, or it may be an indication sent by the OLT to the ONU. The embodiments of the present disclosure do not limit this.

[0054] When the sending order of the load and the bandwidth request in the bandwidth allocation is to send the bandwidth request first and then the load, on the ONU side, when sending the bandwidth request, the data volume carried in the bandwidth request can be used to subtract the data volume of the cached data carried in the load, and then the obtained data volume after subtraction is sent to the OLT side to request bandwidth allocation. This is the calculation action performed on the ONU side. It can also be performed on the OLT side, that is, the OMU directly sends the bandwidth request and the load to the OLT side, and then the OLT uses the data volume carried in the bandwidth request to subtract the data volume of the cached data carried in the load, and then allocates bandwidth for the ONU according to the obtained data volume after subtraction. If the order is to send the load first and then the bandwidth request, the subtraction step does not need to be performed. After the partial cached data carried in the load is sent, the data volume in the bandwidth request already does not include the part of the cached data carried in the load, and the bandwidth can be directly allocated according to the data volume carried in the load.

[0055] Optionally, before sequentially sending a bandwidth request and a load to an optical line terminal in the bandwidth allocation obtained by a transmission container, the method further includes: sending first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data; receiving second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data.

[0056] The ways for the ONU to send the bandwidth request include at least four types, and the sending method needs to be agreed or negotiated between the ONU and the OLT, or one party reports or indicates the sending method, and the other party can cooperate with the complete calculation process. Figure 5 It is a flowchart of another optional method for sending a bandwidth request in an embodiment of the present application. As Figure 5 shown, the method includes:

[0057] Step S402, an optical network unit and an optical line terminal agree on a sending method for a bandwidth request. Among them, the optical network unit includes one or more transmission containers, and the sending method for the bandwidth request includes at least one of the following:

[0058] In the bandwidth allocation obtained by the transmission container, a first load and a first bandwidth request are sequentially sent to the optical line terminal. Among them, the first load carries first data, and the first bandwidth request carries the data volume of second data. The data volume of the second data is: the data volume cached in the transmission container when the first bandwidth request is generated;

[0059] In the bandwidth allocation obtained by the transmission container, a second bandwidth request and a second payload are sequentially sent to the optical line terminal. Among them, the third data is carried in the second payload, and the data volume of the fourth data is carried in the second bandwidth request. The data volume of the fourth data is obtained by subtracting the data volume of the third data from the data volume of the data cached in the transmission container when the second bandwidth request is generated;

[0060] In the bandwidth allocation obtained by the transmission container, a third bandwidth request and a third payload are sequentially sent to the optical line terminal. Among them, the fifth data is carried in the third payload, and the data volume of the sixth data is carried in the third bandwidth request. The data volume of the sixth data is: the data volume of the data cached in the transmission container when the third bandwidth request is generated. The optical line terminal uses the data volume of the sixth data minus the data volume of the fifth data to obtain the data volume of the seventh data, and allocates bandwidth according to the data volume of the seventh data;

[0061] In the bandwidth allocation obtained by the transmission container, a fourth bandwidth request and a fourth payload are sequentially sent to the optical line terminal. Among them, the eighth data is carried in the fourth payload, and the data volume of the ninth data carried in the fourth bandwidth request. The data volume of the ninth data is: the data volume of the data cached in the transmission container when the fourth bandwidth request is generated.

[0062] Optionally, the agreed sending method of the bandwidth request between the optical network unit and the optical line terminal includes: the optical network unit sends the first indication information to the optical line terminal, where the first indication information is used to indicate the sending method of the bandwidth request; the optical network unit receives the second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending method of the bandwidth request.

[0063] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0064] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0065] In this embodiment, a device for sending a bandwidth request is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0066] Figure 6 is a structural block diagram of an optional device for sending a bandwidth request according to an embodiment of the present application. As Figure 6 shown, the device includes:

[0067] A first sending module 502, configured to sequentially send a load and a bandwidth request to an optical line terminal in the bandwidth allocation obtained by a transmission container, where the load carries first data, and the bandwidth request carries the data volume of second data. The data volume of the second data is: the data volume cached in the transmission container when the bandwidth request is generated.

[0068] Optionally, the first sending module 502 includes: a first sending unit, configured to send the load to the optical line terminal in the bandwidth allocation obtained by the transmission container; a second sending unit, configured to send the bandwidth request at the end position of the bandwidth allocation after sending the load to the optical line terminal, where the difference between the generation time of the bandwidth request and the sending time of the bandwidth request is less than or equal to a preset difference.

[0069] Optionally, the device further includes: a first indication information sending module, configured to send first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation; a first receiving module, configured to receive second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation.

[0070] Figure 7 is a structural block diagram of an optional bandwidth request sending device according to an embodiment of the present application. As Figure 7 shown, the device includes:

[0071] A second sending module 602, configured to sequentially send a bandwidth request and a load to an optical line terminal in the bandwidth allocation obtained by the transport container, where the load carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume of the data cached in the transport container when the bandwidth request is generated.

[0072] Optionally, the device further includes: a second indication information sending module, configured to send first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data to be sent; a second receiving module, configured to receive second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data to be sent.

[0073] Figure 8 is a structural block diagram of an optional bandwidth request sending device according to an embodiment of the present application. As Figure 8 shown, the device includes:

[0074] A third sending module 702, configured to sequentially send a bandwidth request and a load to an optical line terminal in the bandwidth allocation obtained by the transport container, where the load carries first data, the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume of the data cached in the transport container when the bandwidth request is generated;

[0075] An allocation module 704, configured to subtract the data volume of the first data from the data volume of the second data to obtain the data volume of third data, and allocate bandwidth according to the data volume of the third data.

[0076] Optionally, the device further includes: a third indication information sending module, configured to send first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data; a third receiving module, configured to receive second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data.

[0077] Figure 9It is a structural block diagram of an optional bandwidth request sending device according to an embodiment of the present application. As Figure 9 shown, the device includes:

[0078] An agreement module 802, configured to agree on a bandwidth request sending method between an optical network unit and an optical line terminal. Among them, the optical network unit includes one or more transmission containers, and the bandwidth request sending method includes at least one of the following: in the bandwidth allocation obtained by the transmission container, sequentially send a first payload and a first bandwidth request to the optical line terminal, where the first payload carries first data, and the first bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the first bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, sequentially send a second bandwidth request and a second payload to the optical line terminal, where the second payload carries third data, and the second bandwidth request carries the data volume of fourth data, and the data volume of the fourth data is obtained by subtracting the data volume of the third data from the data volume cached in the transmission container when the second bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, sequentially send a third bandwidth request and a third payload to the optical line terminal, where the third payload carries fifth data, and the third bandwidth request carries the data volume of sixth data, and the data volume of the sixth data is: the data volume cached in the transmission container when the third bandwidth request is generated, and the optical line terminal uses the data volume of the sixth data minus the data volume of the fifth data to obtain the data volume of seventh data, and allocates bandwidth according to the data volume of the seventh data; in the bandwidth allocation obtained by the transmission container, sequentially send a fourth bandwidth request and a fourth payload to the optical line terminal, where the fourth payload carries eighth data, and the fourth bandwidth request carries the data volume of ninth data, and the data volume of the ninth data is: the data volume cached in the transmission container when the fourth bandwidth request is generated.

[0079] Optionally, the agreement module 802 includes: a sending unit, configured to send first indication information to the optical line terminal, where the first indication information is used to indicate the bandwidth request sending method; a receiving unit, configured to receive second indication information sent by the optical line terminal, where the second indication information is used to indicate the bandwidth request sending method.

[0080] The above-mentioned bandwidth request sending device includes a processor and a memory. The above-mentioned first sending module 502, second sending module 602, third sending module 702, allocation module 704, agreement module 802, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0081] The processor contains a kernel, which retrieves the corresponding program units from the memory. One or more kernels can be set. By adjusting the sending order of the load and bandwidth requests, or by subtracting the data volume carried in the load from the data volume carried in the bandwidth request to obtain the corresponding bandwidth allocation, the problem that the OLT in the related art obtains inaccurate data to be sent in the ONU, and thus the DBA allocation is inaccurate, is solved, and the accuracy of the OLT bandwidth allocation is improved.

[0082] The memory may include non-permanent memory in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.

[0083] To better understand the solutions described in the embodiments of the present disclosure, the following will be specifically described with reference to the accompanying drawings.

[0084] Taking the X Gigabit-Capable Passive Optical Networks (XG-PON) technology as an example, the local data to be sent situation is represented by the upstream Dynamic Bandwidth Request (DBRu). The DBRu is sent first in a bandwidth allocation, and then the data (the data is carried in the XGTC payload) is sent immediately. According to the XG-PON standard, the DBRu contains the data to be sent subsequently (i.e., the data carried in the XGTC payload). This DBRu report contains the data that has already been sent, and the DBRu is sent at the front of the bandwidth allocation, so the data to be sent situation obtained is not the latest. This DBRu method will report inaccurate local data to be sent information to the OLT side, which will lead to inaccurate DBA allocation.

[0085] To solve the above problems, the embodiments of the present disclosure provide a method for sending a bandwidth request. Figure 10 It is a schematic diagram of an optional bandwidth allocation structure according to the embodiments of the present disclosure. As Figure 10 shown, in the improved DBA reporting method, in the bandwidth allocation, the data is sent first, and then the DBRu is sent, where the generation time of the DBRu is as close to or equal to the DBRu sending time as possible, so that the DBRu carries the latest data to be sent situation. As Figure 10As shown, in the upstream frame format, DBRu is placed at the end of the bandwidth allocation Allocation, that is, after the XGTC payload, where the data to be sent is carried in the XGTC payload. In DBRu, three bytes are used to represent BufOcc, that is, the amount of data in the buffer, and one byte is used to represent the cyclic redundancy check CRC.

[0086] Data transmission: After the ONU obtains the corresponding bandwidth of the T-CONT, it reserves the bandwidth corresponding to DBRu, sends the data, which is carried in the XGTC payload, and prepares DBRu. The time for preparing DBRu is before the end of the T-CONT bandwidth and as late as possible to obtain the latest data to be sent in the buffer as much as possible.

[0087] Figure 11 is a schematic diagram of an optional bandwidth allocation structure according to an embodiment of the present disclosure. As Figure 11 shown, the ONU still uses the old DBRu reporting method. However, on the OLT side, after receiving the buffer data situation in DBRu and the data volume in the subsequent XGTC payload, the difference between the two is used as the buffer data situation reported by the ONU.

[0088] As Figure 11 shown, the ONU still uses the old DBRu reporting method. However, before the ONU reports, after obtaining the buffer data situation and the data volume sent in the subsequent XGTC payload, the difference between the two is used as the buffer data situation reported by the ONU and sent in the DBRu area.

[0089] Figure 11 The transmission structure diagram shown is compatible with the existing DBRu reporting method. The ONU selects the reporting method and indicates which reporting method is used in the upstream frame. In the improved DBA reporting method, in the bandwidth allocation, the data (payload) is sent first, and then DBRu is sent, where the generation time of DBRu is as close to or equal to the DBRu transmission time as possible, so that the latest data to be sent is carried in DBRu. As Figure 10 shown, in the upstream frame format, DBRu is placed at the end of the bandwidth allocation Allocation, that is, after the XGTC payload, where the data to be sent is carried in the XGTC payload.

[0090] Data transmission: After the ONU obtains the corresponding bandwidth of the T-CONT, it reserves the bandwidth corresponding to DBRu, sends the data, which is carried in the XGTC payload, and prepares DBRu. The time for preparing DBRu is before the end of the T-CONT bandwidth and as late as possible to obtain the latest data to be sent in the buffer as much as possible.

[0091] There is a 9-bit Ind field in the XGTC header of the upstream frame, which is used to indicate options for partial upstream transmission. The original definition is shown in the following table:

[0092] Bits Meaning 8 PLOAM queue status, used to report the situation of the PLOAM message queue 7-1 Reserved 0 Dying Gasp

[0093] The improved Ind definition is as follows:

[0094]

[0095] When bits 7-6 of the Ind field are 10, it indicates an improvement to the original DBRu reporting method: The ONU still reports DBRu in the original way. At the OLT receiving side, the data volume immediately following the DBRu needs to be subtracted from the DBRu as the data situation to be transmitted.

[0096] The above Figure 11 In the shown transmission structure diagram, it can also be that the OLT indicates which DBRu reporting method the ONU should adopt. In the improved DBA reporting method, during bandwidth allocation, data is sent first, and then DBRu is sent. The generation time of DBRu is as close as possible to or equal to the DBRu transmission time, so that the latest data situation to be sent is carried in the DBRu. In the upstream frame format, the DBRu is placed at the end of the bandwidth allocation Allocation, that is, after the XGTC payload, and the data carried in the XGTC payload is sent. Data transmission: After the ONU obtains the corresponding bandwidth of the T-CONT, it reserves the bandwidth corresponding to the DBRu, sends the data, which is carried in the XGTC payload, and prepares the DBRu. The time to prepare the DBRu is before the end of the T-CONT bandwidth and as close to the end as possible to obtain the latest data situation to be sent in the cache as much as possible.

[0097] There is a 9-bit Ind field in the XGTC header of the upstream frame, which is used to indicate options for partial upstream transmission. The original definition is:

[0098] Bits Meaning 8 PLOAM queue status, used to report the situation of the PLOAM message queue 7-1 Reserved 0 Dying Gasp

[0099] The improved Ind definition is as follows:

[0100]

[0101] When bits 7-6 of the Ind field are 10, it indicates an improvement to the original DBRu reporting method: The ONU still reports DBRu in the original way. At the OLT receiving side, the data volume immediately following the DBRu needs to be subtracted from the DBRu as the data situation to be transmitted.

[0102] The OLT indicates on the downstream frame which DBRu reporting method the ONU should adopt, which can be achieved by modifying the existing PLOAM message Profile. See the definition of bits 34 - 35 in the table.

[0103]

[0104]

[0105]

[0106] An embodiment of the present application provides a storage medium with a program stored thereon. When the program is executed by a processor, the method for sending the bandwidth request is implemented.

[0107] An embodiment of the present application provides a processor for running a program. When the program runs, the method for sending the bandwidth request is executed.

[0108] Figure 12 It is a block diagram of an optional electronic device (equipment) structure according to an embodiment of the present application. An embodiment of the present application provides a device, which includes at least one processor 1101, at least one memory 1102 connected to the processor, and a bus 1103. Among them, the processor and the memory complete communication with each other through the bus. The processor is used to call program instructions in the memory to execute the above-mentioned method for sending the bandwidth request. The device herein can be a server, a PC, a PAD, a mobile phone, etc.

[0109] The present application also provides a computer program product, which is suitable for executing a program initialized with the following method steps when executed on a data processing device:

[0110] S1. In the bandwidth allocation obtained by the transmission container, sequentially send the load and the bandwidth request to the optical line terminal, where the load carries the first data, and the bandwidth request carries the data volume of the second data. The data volume of the second data is: the data volume cached in the transmission container when the bandwidth request is generated.

[0111] Optionally, the computer program product provided by the present application is also suitable for executing a program with the following method steps:

[0112] S1. In the bandwidth allocation obtained by the transmission container, sequentially send the bandwidth request and the load to the optical line terminal, where the load carries the first data, and the bandwidth request carries the data volume of the second data. The data volume of the second data is obtained by subtracting the data volume of the first data from the data volume cached in the transmission container when the bandwidth request is generated.

[0113] Optionally, the computer program product provided by the present application is also suitable for executing a program with the following method steps:

[0114] S1. In the bandwidth allocation obtained by the transmission container, sequentially send a bandwidth request and a load to the optical line terminal, where the load carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the bandwidth request is generated;

[0115] S2. The optical line terminal subtracts the data volume of the first data from the data volume of the second data to obtain the data volume of third data, and allocates bandwidth according to the data volume of the third data.

[0116] Optionally, the computer program product provided by the present application is also suitable for executing a program with the following method steps:

[0117] S1. The optical network unit and the optical line terminal agree on the sending manner of the bandwidth request. The optical network unit includes one or more transmission containers, and the sending manner of the bandwidth request includes at least one of the following:

[0118] In the bandwidth allocation obtained by the transmission container, sequentially send a first load and a first bandwidth request to the optical line terminal, where the first load carries first data, and the first bandwidth request carries the data volume of second data, and the data volume of the second data is: the data volume cached in the transmission container when the first bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, sequentially send a second bandwidth request and a second load to the optical line terminal, where the second load carries third data, and the second bandwidth request carries the data volume of fourth data, and the data volume of the fourth data is obtained by subtracting the data volume of the third data from the data volume cached in the transmission container when the second bandwidth request is generated; in the bandwidth allocation obtained by the transmission container, sequentially send a third bandwidth request and a third load to the optical line terminal, where the third load carries fifth data, and the third bandwidth request carries the data volume of sixth data, and the data volume of the sixth data is: the data volume cached in the transmission container when the third bandwidth request is generated, the optical line terminal subtracts the data volume of the fifth data from the data volume of the sixth data to obtain the data volume of seventh data, and allocates bandwidth according to the data volume of the seventh data; in the bandwidth allocation obtained by the transmission container, sequentially send a fourth bandwidth request and a fourth load to the optical line terminal, where the fourth load carries eighth data, and the data volume of the ninth data carried by the fourth bandwidth request, and the data volume of the ninth data is: the data volume cached in the transmission container when the fourth bandwidth request is generated.

[0119] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general purpose computers, special purpose computers, embedded processors, or other programmable data processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices generate means for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in one block or multiple blocks.

[0120] In a typical configuration, the device includes one or more processors (CPUs), a memory, and a bus. The device may also include an input / output interface, a network interface, etc.

[0121] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip. The memory is an example of computer-readable media.

[0122] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0123] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.

[0124] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] The above are only the embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A bandwidth allocation method, characterized in that, it includes: In the bandwidth allocation obtained by the optical line terminal for the transmission container of the optical network unit, the bandwidth request and the load are sequentially received, where the load carries the first data, and the bandwidth request carries the data volume of the second data, and the data volume of the second data reflects the data volume cached in the transmission container when the bandwidth request is generated; The optical line terminal uses the data volume of the second data minus the data volume of the first data to obtain the data volume of the third data, where the data volume of the third data is used by the optical line terminal to allocate bandwidth for the optical network unit.

2. The method according to claim 1, characterized in that, Before the optical line terminal sequentially receives the bandwidth request and the load in the bandwidth allocation obtained by the transmission container of the optical network unit, the method further includes at least one of the following: The optical line terminal receives the first indication information sent by the optical network unit, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data; The optical line terminal sends the second indication information to the optical network unit, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data.

3. A method for sending a bandwidth request, characterized in that, it includes: In the bandwidth allocation obtained by the transmission container, the optical network unit sequentially sends a bandwidth request and a load to the optical line terminal, where the load carries the first data, and the bandwidth request carries the data volume of the second data, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume cached in the transmission container when the bandwidth request is generated.

4. The method according to claim 3, characterized in that, Before the optical network unit sequentially sends the bandwidth request and the load to the optical line terminal, the method further includes at least one of the following: The optical network unit sends the first indication information to the optical line terminal, where the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data; The optical network unit receives the second indication information sent by the optical line terminal, where the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data.

5. A bandwidth allocation device, characterized in that, it includes: A receiving module, configured to sequentially receive a bandwidth request and a load in the bandwidth allocation obtained by the transmission container of the optical network unit, where the load carries the first data, and the bandwidth request carries the data volume of the second data, and the data volume of the second data reflects the data volume cached in the transmission container when the bandwidth request is generated; An allocation module, configured to obtain the data volume of a third data by subtracting the data volume of the first data from the data volume of the second data, wherein the data volume of the third data is used for an optical line terminal to allocate bandwidth for the optical network unit.

6. The apparatus according to claim 5, wherein, the apparatus further includes at least one of the following: A first indication information receiving module, configured to receive first indication information sent by the optical network unit, wherein the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data; A fourth indication information sending module, configured to send second indication information to the optical network unit, wherein the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the third data.

7. A bandwidth request sending apparatus, wherein, it includes: A second sending module, configured to sequentially send a bandwidth request and a load to an optical line terminal in a bandwidth allocation obtained by a transmission container, wherein the load carries first data, and the bandwidth request carries the data volume of second data, and the data volume of the second data is obtained by subtracting the data volume of the first data from the data volume of the data cached in the transmission container when the bandwidth request is generated.

8. The apparatus according to claim 7, wherein, the apparatus further includes at least one of the following: A second indication information sending module, configured to send first indication information to the optical line terminal, wherein the first indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data; A second receiving module, configured to receive second indication information sent by the optical line terminal, wherein the second indication information is used to indicate the sending order of the load and the bandwidth request in the bandwidth allocation, and / or the calculation method of the data volume of the second data.

9. A computer-readable storage medium, wherein, the computer-readable storage medium includes a stored program, wherein when the program runs, it executes the method described in any one of claims 1 to 4 above.

10. An electronic device, including a memory and a processor, wherein, a computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 4 through the computer program.