Bandwidth allocation method and device, electronic equipment and system
By executing the bandwidth allocation method in the OLT of the PON system, determining the allocation cycles of different MAC protocol ONTs and allocating time slots in these cycles, the uplink data conflict problem that supports different MAC protocol ONTs is solved, and efficient bandwidth allocation and The coexistence of multiple ONT protocols.
Patent Information
- Application Number
- CN202310944424.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-14
AI Technical Summary
In PON system, ONT supporting different MAC protocols may lead to uplink data conflicts and affect the normal operation of the system.
By executing a bandwidth allocation method in the OLT, the first allocation period set and the second allocation period set are determined in the target period, and the time slots are allocated according to the MAC protocols of each ONT to ensure that the ONTs of different MAC protocols are in different The time slot sends uplink data.
It effectively avoids the conflict of ONT sending uplink data in different MAC protocols, simplifies the bandwidth allocation algorithm, improves the efficiency of bandwidth allocation, and supports the ONT coexistence of different MAC protocols.
Smart Images

Figure CN119450261A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a bandwidth allocation method and device, electronic equipment and system. Background Art
[0002] Passive optical network (PON) is a point-to-multipoint single-fiber bidirectional optical access network. A PON system usually includes an optical line terminal (OLT), an optical distribution network (ODN), and multiple optical network terminations (ONT). OLT is connected to multiple ONTs through ODN.
[0003] With the development of optical communication technology, at least two ONTs supporting different media access control (MAC) protocols will coexist in the PON system in a certain period of time. The upstream wavelengths used by ONTs supporting different MAC protocols may overlap, resulting in conflicts in the upstream data sent by ONTs supporting different MAC protocols, affecting the normal operation of the PON system.
[0004] Therefore, there is an urgent need for a method that can resolve conflicts in uplink data sent by ONTs supporting different MAC protocols. Summary of the invention
[0005] The present application provides a bandwidth allocation method and device, an electronic device and a system, which can avoid conflicts in uplink data sent by ONTs supporting different MAC protocols.
[0006] In a first aspect, the present application provides a bandwidth allocation method, which can be performed by an OLT in a PON system. The PON system also includes a first terminal set and a second terminal set, the first terminal set includes at least one first ONT, the second terminal set includes at least one second ONT, the first ONT and the second ONT use different MAC protocols, and the upstream wavelength of the first ONT overlaps with the upstream wavelength of the second ONT. The method includes: determining a first allocation period set and a second allocation period set in a target period, the target period includes M allocation periods, M is greater than 1 and M is an integer, the first allocation period set includes X first allocation periods in the M allocation periods, the second allocation period set includes Y second allocation periods in the M allocation periods, X and Y are both positive integers, and the sum of X and Y is less than or equal to M; allocating the time slots in the first allocation period to the first ONT in the first terminal set according to the MAC protocol of the first ONT; allocating the time slots in the second allocation period to the second ONT in the second terminal set according to the MAC protocol of the second ONT.
[0007] In the case where the MAC protocols supported by the first ONT and the second ONT are different, it is difficult to complete the scheduling of the first ONT and the second ONT within the upstream frame period specified by the MAC protocol through a bandwidth allocation algorithm. In the present application, the first allocation period set and the second period set are first determined in the target period, and then the time slots in the first allocation period are allocated to the first ONT according to the MAC protocol of the first ONT, and the time slots in the second allocation period are allocated to the second ONT according to the MAC protocol of the second ONT, so that the time slots allocated to the first ONT and the time slots of the second ONT are staggered. That is, when the OLT allocates time slots (bandwidth), it first divides the time slots (bandwidth) in a coarse-grained manner, so that the first ONT and the second ONT using different MAC protocols send upstream data in different time slots, even if the upstream wavelengths of the first ONT and the second ONT for sending upstream data overlap, the upstream data sent by the first ONT and the second ONT will not conflict. In addition, bandwidth allocation is performed on ONTs in the first time slot group and the second time slot group respectively according to the corresponding MAC protocol, which can simplify the bandwidth allocation algorithm and improve the efficiency of bandwidth allocation.
[0008] Optionally, the first allocation cycle set includes at least two first subsets, any first subset of the at least two first subsets includes one first allocation cycle or includes at least two consecutive first allocation cycles, and there is at least one second allocation cycle between two adjacent first subsets in the at least two first subsets; and / or, the second allocation cycle set includes at least two second subsets, any second subset of the at least two second subsets includes one second allocation cycle or includes at least two consecutive second allocation cycles, and there is at least one first allocation cycle between two adjacent second subsets in the at least two second subsets.
[0009] By alternately setting the first subset and the second subset in a target period, the allocation period in the target period can be evenly distributed to the first ONT in the first terminal set and the second ONT in the second terminal set, so as to avoid the first ONT and / or the second ONT from waiting too long for sending uplink data, thereby meeting the latency requirement of the ONT.
[0010] In some examples, the number of first allocation cycles included in different first subsets is equal, and the number of second allocation cycles included in different second subsets is equal.
[0011] In other examples, the number of first allocation cycles included in different first subsets is not equal, and the number of second allocation cycles included in different second subsets is equal. Alternatively, the number of first allocation cycles included in different first subsets is equal, and the number of second allocation cycles included in different second subsets is not equal. Alternatively, the number of first allocation cycles included in different first subsets is not equal, and the number of second allocation cycles included in different second subsets is also not equal.
[0012] By flexibly configuring the number of allocation cycles included in the first subset and the second subset, more scenario requirements can be met.
[0013] Optionally, the first allocation cycle set includes one first allocation cycle or includes at least two consecutive first allocation cycles; and / or, the second allocation cycle set includes one second allocation cycle or includes at least two consecutive second allocation cycles. That is, in the same target period, all first allocation cycles in the first allocation cycle set are set continuously, and / or, all second allocation cycles in the second allocation cycle set are set continuously. In this way, it can be applied to the situation where the number of ONTs of a certain type is much higher than that of ONTs of another type, for example, in the early or late stages when different types coexist in the PON system, thus ensuring the service bandwidth requirements of the terminal types with a large number of existing networks.
[0014] Optionally, at least one first allocation period in the first allocation period set is a windowing period; and / or at least one second allocation period in the second allocation period set is a windowing period. That is, the windowing period is set in the target period. Setting the windowing period in the allocation period corresponding to the MAC protocol adopted by the ONT can avoid affecting the normal service communication of the ONT adopting other MAC protocols.
[0015] Optionally, the method further includes: determining an allocation period after the target period or at least two consecutive allocation periods as a windowing period. That is, setting the windowing period outside the target period. Flexible setting of the position of the windowing period can adapt to more scene requirements.
[0016] Optionally, the first ONT and the second ONT use different message encapsulation methods. When the first ONT and the second ONT use different message encapsulation methods, the lengths of the corresponding frame structures are different, which makes the bandwidth allocation algorithm more complicated, and it is difficult to complete the bandwidth allocation of the first ONT and the second ONT within the uplink frame period specified by the MAC protocol (for example, 125 μs corresponding to the message encapsulation method of the first ONT or the second ONT). Therefore, in this case, it is more suitable to adopt the above-mentioned bandwidth allocation method.
[0017] Optionally, when the length of the frame structure corresponding to the message encapsulation method adopted by the first ONT is fixed, the length of the allocation period is an integer multiple of the length of the frame structure corresponding to the message encapsulation method adopted by the first ONT; and / or, when the length of the frame structure corresponding to the message encapsulation method adopted by the second ONT is fixed, the length of the allocation period is an integer multiple of the length of the frame structure corresponding to the message encapsulation method adopted by the second ONT.
[0018] When the bandwidth is divided in a coarse-grained manner, the length of the frame structure corresponding to the message encapsulation method adopted by the first ONT and / or the second ONT is considered, and the length of the allocation period is set to an integer multiple of the length of the frame structure corresponding to the message encapsulation method adopted by the first ONT and / or the second ONT, so that each allocation period can be fully used for the ONT to send uplink data, which is conducive to improving the uplink bandwidth utilization of the system.
[0019] Optionally, the MAC protocol used by the first ONT belongs to the Institute of Electrical and Electronics Engineers (IEEE) standard system, and the MAC protocol used by the second ONT belongs to the International Telecommunication Union-Telecommunication Standardization Sector (ITU-T) standard system. In the ITU-T standard system, it is stipulated that the message encapsulation method is the GPON encapsulation method, and the length of the frame structure is required to be 125μs, while in the IEEE standard system, the message encapsulation method is the Ethernet encapsulation method, and the length of the frame structure is not fixed. Therefore, the length of the allocation period can be set to an integer multiple of the length of the frame structure corresponding to the second ONT, that is, the length of the allocation period is set to N times of 125μs. Wherein, N is a positive integer, and the value range can be 1-32, such as 1, 2, 3, 8, 16 or 32, etc.
[0020] Optionally, determining the first allocation cycle set and the second allocation cycle set in the target cycle includes: determining the first allocation cycle set and the second allocation cycle set in the target cycle according to bandwidth demand related information of the first ONT in the first terminal set and bandwidth demand related information of the second ONT in the second terminal set.
[0021] Exemplarily, the information related to the bandwidth demand of the first ONT includes at least one of the number of first ONTs and service information of the service opened by the first ONT, and the information related to the bandwidth demand of the second ONT includes at least one of the number of second ONTs and service information of the service opened by the second ONT. Optionally, the service information includes service type or latency requirement, etc.
[0022] Dividing the first allocation period set and the second allocation period set according to the bandwidth demand related information of the first ONT and the second ONT can better meet the uplink bandwidth demand of the ONT.
[0023] In a possible implementation, the first terminal set further includes at least one third ONT, and the MAC protocol used by the third ONT is different from the MAC protocol used by the first ONT and the second ONT. For example, the first ONT is an EPON ONT, the second ONT is a 50G PON ONT or a 25GS PON ONT, and the third ONT is a 10G EPON ONT.
[0024] In this embodiment, allocating the time slots in the first allocation cycle to the first ONT in the first terminal set according to the MAC protocol of the first ONT includes: allocating the time slots in the first allocation cycle to the first ONT and the third ONT in the first terminal set according to the MAC protocol of the first ONT and the MAC protocol of the third ONT.
[0025] Since the MAC protocol used by the first ONT and the third ONT belongs to the same standard system, the message encapsulation method used is the same, the corresponding frame structure is also the same, and a similar method can be used for scheduling. Therefore, the time slots in the first allocation cycle can be allocated to the two ONTs, and the two ONTs can be uniformly scheduled, so as to achieve the coexistence of the first ONT, the second ONT and the third ONT in the PON system.
[0026] In another possible implementation manner, the first ONT is an EPON ONT, and the second ONT is a 50G PON ONT or a 25GS PON ONT.
[0027] In another possible implementation, the first ONT is an EPON ONT, and the second ONT is an XG(S)PON ONT (ie, a symmetrical or asymmetrical 10GPON ONT).
[0028] In a second aspect, the present application provides a bandwidth allocation device. The bandwidth allocation device has the function of implementing the method described in the first aspect or any optional method of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.
[0029] In a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory is used to store software programs and modules. The processor implements the method in the first aspect or any possible implementation of the first aspect by running or executing the software program and / or module stored in the memory.
[0030] Optionally, the number of the processors is one or more, and the number of the memories is one or more.
[0031] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0032] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.
[0033] In a fourth aspect, a computer program product is provided, wherein the computer program product comprises computer program code, and when the computer program code is executed by a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect.
[0034] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes executed by a processor, wherein the program codes include instructions for implementing a method in any possible implementation of the first aspect above.
[0035] In a sixth aspect, the present application provides a chip, comprising a processor, the processor being used to call and execute instructions stored in a memory from the memory, so that an optical communication device equipped with the chip executes a method in any possible implementation manner of the above-mentioned first aspect.
[0036] In a seventh aspect, the present application provides another chip. The other chip includes an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected through an internal connection path. The processor is used to execute the code in the memory, and when the code is executed, the processor is used to execute the method in any possible implementation of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural diagram of a PON system provided in an embodiment of the present application;
[0038] Figure 2 This is a schematic diagram of the distribution of upstream wavelengths of ONTs corresponding to different MAC protocols provided in an embodiment of the present application;
[0039] Figure 3 It is a structural diagram of an OLT provided in an embodiment of the present application;
[0040] Figure 4 It is a flow chart of a bandwidth allocation method provided in an embodiment of the present application;
[0041] Figure 5 is a schematic diagram of the relationship between a first allocation period set and a second allocation period set provided in an embodiment of the present application;
[0042] Figure 6 is a schematic diagram of the relationship between another first allocation period set and a second allocation period set provided in an embodiment of the present application;
[0043] Figure 7 is a block diagram of a bandwidth allocation device provided in an embodiment of the present application;
[0044] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] Figure 1 Schematic diagram of a PON system provided by an embodiment of the present application. Figure 1 As shown, the PON system includes OLT 110, ONT 120 and ODN 130. OLT 110 is connected to one or more ONTs 120 via ODN 130. ONT 120 may also be referred to as an optical network unit (ONU).
[0047] The OLT 110 is usually located at the network side, such as a central office (CO), and can uniformly manage multiple ONTs 120. The OLT 110 can act as a medium between the ONT 120 and an upper network (not shown in the figure), forwarding data received from the upper network to the ONT 120, and forwarding data received from the ONT 120 to the upper network. The upper network includes, but is not limited to, the Internet, a public switched telephone network (PSTN), and a community antenna television (CATV).
[0048] A plurality of ONTs 120 may be distributedly arranged at the user side. ONT 120 may be a network device for communicating with OLT 110 and user equipment. ONT 120 may act as a medium between OLT 110 and user equipment. For example, ONT 120 may forward data received from OLT 110 to user equipment, and forward data received from user equipment to OLT 110.
[0049] The plurality of ONTs include a first terminal set and a second terminal set, wherein the first terminal set includes at least one first ONT, and the second terminal set includes at least one second ONT, and the first ONT and the second ONT use different MAC protocols.
[0050] In the embodiments of the present application, the MAC protocol includes but is not limited to gigabit PON (gigabit-capable PON, GPON), 10 gigabit per second PON (10gigabit per second PON, XG-PON), 10-gigabit-capable symmetric passive optical network (10-gigabit-capable symmetric passive optical network, XGS-PON), Ethernet PON (Ethernet PON, EPON), 10 gigabit per second EPON (10gigabit per second EPON, 10G-EPON), 25 gigabit per second PON (25gigabit per second PON, 25G-PON), 50 gigabit per second PON (50gigabit persecond PON, 50G-PON), 100 gigabit per second PON (100gigabit per second PON, 100G-PON), 25 gigabit per second EPON (25gigabit per second EPON, 25G-EPON), 50 gigabit per second EPON (50gigabit per second PON, 50G-PON), EPON, 50G-EPON), and other speeds of GPON, EPON, etc.
[0051] exist Figure 1 In the example shown, the first ONT is an EPON ONT, and the second ONT is a 50G PON ONT or a 25GS PON ONT. The first terminal set also includes at least one third ONT. The third ONT is a 10G EPON ONT. Among them, EPON ONT can be called a first generation ONT, 10G EPON ONT can be called a second generation ONT, and 50G PON ONT or 25GS PON ONT can be called a third generation ONT. In this case, the PON system can be called a three-generation coexistence PON system.
[0052] In other examples, the first ONT in the first terminal set is an EPON ONT; the second ONT in the second terminal set is a 50G PON ONT or a 25GS PON ONT. For an existing system including only EPON ONTs, the EPON ONTs can be directly upgraded to 50G PON ONTs or 25GS PON ONTs. During the upgrade process, the EPON ONTs may coexist with the 50GPON ONTs or 25GS PON ONTs.
[0053] In some other examples, the first ONT in the first terminal set is an EPON ONT, and the second ONT in the second terminal set is a symmetrical or asymmetrical 10G PON ONT. Since the current stock of 10G PON ONT, especially 10GS PON ONT, is larger and more popular, some EPON ONTs can be transitioned to 10G PON ONTs first, and then 10G PON ONTs and 50GPON can coexist in a wavelength division multiplexing manner.
[0054] ODN 130 is a data distribution / multiplexing system, which may include a trunk optical fiber, a passive optical splitter and a user optical fiber. The passive optical splitter may include a first port and a plurality of second ports. The first port of the passive optical splitter is connected to OLT 110 via the trunk optical fiber, and each second port of the passive optical splitter is connected to an ONT 120 via a user optical fiber.
[0055] In the PON system, the transmission from OLT 110 to ONT 120 is called downlink, and OLT 110 broadcasts the downlink data to all ONTs 120, and each ONT 120 only receives the data with its own identification. Conversely, the transmission from ONT 120 to OLT 110 is called uplink.
[0056] When a first ONT and a second ONT supporting different MAC protocols exist in the PON system, the upstream wavelengths of the first ONT and the second ONT may overlap.
[0057] Figure 2 FIG. 1 is a schematic diagram of the distribution of upstream wavelengths of ONTs corresponding to different MAC protocols provided in an embodiment of the present application. Figure 2 As shown, the upstream wavelength of EPON ONT includes 1260nm-1360nm (not shown in the figure), or 1290nm-1330nm. The upstream wavelength of 10G EPON ONT includes 1290nm-1330nm, or 1260nm-1280nm. The upstream wavelength of 50G PON ONT is 1284nm-1288nm. It can be seen that the upstream wavelength of EPON ONT overlaps with the upstream wavelength of 50G PON ONT.
[0058] Since each ONT 120 shares the ODN 130 and the OLT 110, when the upstream wavelengths of the first ONT and the second ONT overlap, if the first ONT and the second ONT send upstream data at the same time, the upstream data sent by the first ONT and the second ONT will conflict. In order to ensure that the upstream data of each ONT 120 does not conflict, in the embodiment of the present application, in the PON system, the ONTs supporting different MAC protocols use time division multiplexing (TDM) to transmit upstream data. That is, the OLT 110 allocates time slots to each ONT 120, and each ONT 120 sends upstream data according to the time slots allocated by the OLT 110. The allocation of time slots by the OLT 110 to each ONT 120 can be called bandwidth allocation or bandwidth authorization.
[0059] Figure 3 Schematic diagram of the structure of an OLT provided in an embodiment of the present application. Figure 3 As shown, the OLT includes a processing unit 301 and an optical module 302 .
[0060] The processing unit 301 may include a first MAC module and a second MAC module. The MAC protocol used by the first MAC module is the same as the MAC protocol used by the first ONT in the first terminal set. The MAC protocol used by the second MAC module is the same as the MAC protocol used by the second ONT in the second terminal set. The first MAC module and the second MAC module are connected, and bandwidth allocation information can be synchronized between the first MAC module and the second MAC module to facilitate the implementation of the bandwidth allocation method described below.
[0061] Optionally, the first MAC module and the second MAC module may be integrated on the same physical chip, or the first MAC module and the second MAC module may be respectively arranged on different physical chips.
[0062] In addition to the first MAC module and the second MAC module, the processing unit 301 may also include one or more processors, such as a network processor (NP) or a central processing unit (CPU).
[0063] Optionally, the processor may also be integrated with the first MAC module and the second MAC module on the same physical chip, or respectively set on different physical chips.
[0064] In the embodiments of the present application, the physical chip may be a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a digital signal processor (DSP), a programmable logic device (PLD) or other integrated chips.
[0065] The optical module 302 includes an optical transmitting component 3021 and an optical receiving component 3022, wherein the optical transmitting component 3021 is used to send an optical signal to the ONT under the control of the processing unit 301. The optical receiving component 3022 is used to receive the optical signal sent by the ONT and convert the received optical signal into an electrical signal, and the processing unit 301 is also used to recover the uplink data sent by the ONT from the electrical signal.
[0066] Figure 3 exemplarily shows the structure of an optical communication device for the aforementioned three-generation coexistence PON system. Figure 3 As shown, the optical transmission component 2021 includes two transmitters (transmitters, Tx) 2021a and 2021b, Tx 2021a is used to transmit optical signals of 1490nm (i.e. 1480nm-1500nm) and 1577nm (i.e. 1575nm-1579nm); Tx 2021b is used to transmit optical signals of 1342nm (i.e. 1340nm-1344nm). Among them, 1480nm-1500nm is the downstream wavelength of EPON ONT, 1575nm-1579nm is the downstream wavelength of 10G EPON ONT, and 1340nm-1344nm is the downstream wavelength of 50GPON ONT.
[0067] The optical receiving component 3022 includes a receiver 3022a (receiver, Rx) and an electrical power splitter 3022b, and the receiving wavelength range of the receiver is 1260nm-1360nm. The receiving wavelength range covers the uplink wavelengths of the three generations of ONTs mentioned above, so it can receive the optical signals sent by the three generations of ONTs mentioned above and convert the optical signals into one electrical signal. The electrical power splitter 3022b is used to divide the electrical signal output by the receiver 3022a into three electrical signals. The processing unit 301 is used to recover the uplink data sent by the EPON ONT from the first electrical signal, recover the uplink data sent by the 10G EPON ONT from the second electrical signal, and recover the uplink data sent by the 25GS PON ONT or 50GPON ONT from the third electrical signal.
[0068] For example, Figure 3 The receiver and transmitter in the device can both adopt transistor outline can (TO-CAN), that is, the photoelectric conversion device or electro-optical conversion device is encapsulated in a coaxial tube shell.
[0069] The optical receiving component 3022 further includes three limiting amplifiers (LA) 3022c, and the three LAs 3022c are respectively connected between an output end of the electric power divider 3022b and an input end of the processing unit 301. The three LAs 3022c are respectively used to amplify one channel of electrical signals.
[0070] Figure 3 The structure of the optical module is only an example, and the present application does not limit this. For example, the optical transmission component 2021 may also include a transmitter for transmitting optical signals of 1342nm, 1490nm and 1577nm.
[0071] Figure 4 is a flow chart of a bandwidth allocation method provided in an embodiment of the present application. The method can be executed by the OLT, for example, Figure 2 The processing unit 301 of the OLT in FIG. Figure 4 As shown, the bandwidth allocation method includes:
[0072] S401: Determine a first allocation period set and a second allocation period set in a target period.
[0073] The target cycle includes M allocation cycles, M is greater than 1 and M is an integer, the first allocation cycle set includes X first allocation cycles, the second allocation cycle set includes Y second allocation cycles, X and Y are both positive integers, and the sum of X and Y is less than or equal to M. That is, the M allocation cycles include X first allocation cycles and Y second allocation cycles, the X first allocation cycles constitute the first allocation cycle set, and the second allocation cycles constitute the second allocation cycle set.
[0074] The value of M can be set according to actual needs. For example, the value range of M can be 2-32, for example, M is equal to 8 or 16, etc.
[0075] When the value of M is small, the calculation cycle of bandwidth allocation is short, which is conducive to quickly adjusting bandwidth allocation according to business changes. When the value of M is large, it is conducive to ensuring stable bandwidth allocation.
[0076] In a possible implementation manner, the sum of X and Y is equal to M, that is, all allocation cycles in a target cycle are divided into first allocation cycles and second allocation cycles.
[0077] In some examples, the first allocation cycle set includes at least two first subsets. Each first subset includes one first allocation cycle or includes at least two consecutive first allocation cycles, and at least one second allocation cycle exists between two adjacent first subsets.
[0078] By dividing the first allocation period into a plurality of first subsets and setting at least one second allocation period between adjacent first subsets, when a large number of first allocation periods are included in the target period, it is possible to avoid setting all first allocation periods continuously, thereby preventing the second ONT from having to wait too long for uplink data to be sent.
[0079] In some other examples, the second allocation cycle set includes at least two second subsets. Each second subset includes one second allocation cycle or includes at least two consecutive second allocation cycles, and at least one first allocation cycle exists between two adjacent second subsets.
[0080] By dividing the second allocation period into multiple second subsets and setting at least one first allocation period between adjacent second subsets, when the number of second allocation periods included in the target period is large, it is possible to avoid setting all second allocation periods continuously, which would result in a long waiting time for the first ONT to send uplink data.
[0081] In some other examples, the first allocation cycle set includes at least two first subsets, and the second allocation cycle set includes at least two second subsets. Each first subset includes one first allocation cycle or includes at least two consecutive first allocation cycles. Each second subset includes one second allocation cycle or includes at least two consecutive second allocation cycles. There is a second subset between two adjacent first subsets. There is a first subset between two adjacent second subsets.
[0082] By alternately setting the first subset and the second subset in a target period, the allocation period in the target period can be evenly distributed to the first ONT in the first terminal set and the second ONT in the second terminal set, thereby avoiding too long waiting time for the first ONT and the second ONT to send uplink data.
[0083] Figure 5 It is a schematic diagram of the relationship between a first allocation period set and a second allocation period set provided in an embodiment of the present application. Figure 5 In the embodiment, an example is given of a case where all allocation periods in a target period are divided into a first allocation period and a second allocation period.
[0084] like Figure 5 As shown in part (a), the first allocation period set includes two first subsets, and the second allocation period set includes two second subsets. The two first subsets and the two second subsets are arranged alternately. Each first subset includes three first allocation periods that are continuous in time, and each second subset includes one second allocation period. Among them, the number of second allocation periods corresponding to the second ONT is small, which is suitable for the case where the number of second ONTs in the PON system is small.
[0085] like Figure 5 As shown in part (b), the first allocation cycle set includes four first subsets, and the second allocation cycle set includes four second subsets. The four first subsets and the four second subsets are arranged alternately. Each first subset includes a first allocation cycle, and each second subset includes a second allocation cycle. The first allocation cycle and the second allocation cycle are arranged alternately, which is beneficial to reducing the waiting delay of the first ONT and the second ONT.
[0086] It should be noted that in Figure 5In parts (a) and (b), the number of first allocation cycles included in different first subsets is equal; the number of second allocation cycles included in different second subsets is equal. In other embodiments, the number of first allocation cycles included in different first subsets is unequal, and the number of second allocation cycles included in different second subsets is equal; or, the number of first allocation cycles included in different first subsets is equal, and the number of second allocation cycles included in different second subsets is unequal; or, the number of first allocation cycles included in different first subsets is unequal, and the number of second allocation cycles included in different second subsets is also unequal. By flexibly configuring the number of allocation cycles included in the first subset and the second subset, more scenario requirements can be met.
[0087] also, Figure 5 In parts (a) and (b), in a target cycle, the number of first subsets and the number of second subsets are the same. In other embodiments, the number of first subsets and the number of second subsets may be different.
[0088] In some further examples, the first allocation period set includes one first allocation period or includes at least two consecutive first allocation periods; and / or, the second allocation period set includes one second allocation period or includes at least two consecutive second allocation periods. That is, in the same target period, all first allocation periods in the first allocation period set are set continuously, and / or, all second allocation periods in the second allocation period set are set continuously. In this way, it can be applied to the situation where the number of ONTs of a certain type is much higher than that of ONTs of another type, for example, in the early or late stages when different types coexist in the PON system, thus ensuring the service bandwidth requirements of the terminal types with a large number of existing networks.
[0089] For example, in Figure 5 In part (c), the first allocation cycle set includes 7 first allocation cycles that are consecutive in time, and the second allocation cycle set includes 1 second allocation cycle.
[0090] In actual applications, in addition to bandwidth authorization for each ONT, OLT also has windowing. Windowing means that bandwidth is not authorized in one or more time slots, but is used to receive registration requests from ONTs to be online, or for network operation and maintenance, such as reflection detection. In the embodiment of the present application, such time slots are called windowing time slots, and the allocation period in which the windowing time slots are located is called the windowing period.
[0091] Figure 6 This is another schematic diagram of the relationship between the first allocation period set and the second allocation period set provided in the embodiment of the present application. Figure 6 The method for setting the window opening cycle is explained in detail.
[0092] In a possible implementation, at least one first allocation period in the first allocation period set is a windowing period. Figure 6 As shown in part (a), the first allocation period set includes two first subsets, and the second allocation period set includes two second subsets. The two first subsets and the two second subsets are arranged alternately. Each first subset includes three first allocation periods that are continuous in time, and each second subset includes one second allocation period. Among them, the three first allocation periods in the second first subset are windowing periods.
[0093] In another possible implementation, at least one second allocation cycle in the second allocation cycle set is a windowing cycle. Figure 6 As shown in part (b), the first allocation period set includes two first subsets, and the second allocation period set includes two second subsets. The two first subsets and the two second subsets are arranged alternately. Each first subset includes three first allocation periods that are continuous in time, and each second subset includes one second allocation period. Among them, one first allocation period in the second second subset is a windowing period.
[0094] In another possible implementation, at least one first allocation period in the first allocation period set is a windowing period, and at least one second allocation period in the second allocation period set is a windowing period. That is, in the same target period, there is both a windowing period corresponding to the first ONT and a windowing period corresponding to the second ONT.
[0095] By setting the windowing period corresponding to the first ONT in the first allocation period, the windowing period of the first ONT can be prevented from affecting the normal service communication of the second ONT. Similarly, by setting the windowing period corresponding to the second ONT in the second allocation period, the windowing period of the second ONT can be prevented from affecting the normal service communication of the first ONT. That is, by setting the windowing period in the allocation period corresponding to the MAC protocol adopted by the ONT, it is possible to avoid affecting the normal service communication of the ONT adopting other MAC protocols.
[0096] In the above three implementations, the windowing period is set within the target period. In another possible implementation, the windowing period can be set outside the target period. In this case, the method can also include: determining an allocation period after the target period or at least two consecutive allocation periods as the windowing period. For example, Figure 6 As shown in part (c), an allocation period after the target period is determined as a windowing period. The windowing period may be a windowing period of the first ONT or a windowing period of the second ONT, or may include a windowing period of the first ONT and a windowing period of the second ONT that are connected in time.
[0097] In this way, the windowing period can be configured after one or more target periods as needed, making the configuration of the windowing period more flexible.
[0098] Exemplarily, in S401, a first allocation period set and a second allocation period set may be determined in a target period according to information related to bandwidth requirements of ONTs in a first terminal set and information related to bandwidth requirements of ONTs in a second terminal set.
[0099] When the first terminal set includes only the first ONT, that is, according to the bandwidth demand related information of the first ONT and the bandwidth demand related information of the second ONT, the first allocation period set and the second allocation period set are determined in the target period.
[0100] When the first terminal set includes the first ONT and the third ONT, the first allocation period set and the second allocation period set may be determined in the target period according to information related to bandwidth requirements of the first ONT and the third ONT in the first terminal set and information related to bandwidth requirements of the second ONT in the second terminal set.
[0101] Here, the information related to the bandwidth demand of the ONTs in the first terminal set includes but is not limited to the number of all ONTs in the first terminal set and the service information of the services opened by each OTN. The information related to the bandwidth demand of the ONTs in the second terminal set includes but is not limited to the number of all ONTs in the second terminal set and the service information of the services opened by each OTN. Among them, the service information includes but is not limited to the service type and the delay requirement corresponding to the service.
[0102] Determining the first allocation cycle set and the second allocation cycle set in the target cycle at least includes determining a proportion of the first allocation cycle included in the first allocation cycle set in the target cycle and a proportion of the second allocation cycle included in the second allocation cycle set in the target cycle.
[0103] In the embodiment of the present application, the more ONTs there are in the first terminal set, the greater the bandwidth demand corresponding to the service opened by each ONT, and the greater the proportion of the first allocation period included in the first allocation period set in the target period. Similarly, the more second ONTs there are in the second terminal set, the greater the bandwidth demand corresponding to the service opened by each second ONT, and the greater the proportion of the second allocation period included in the second allocation period set in the target period.
[0104] In some examples, the bandwidth demand related information includes the number of ONTs in the first terminal set and the number of ONTs in the second terminal set. The OLT determines the proportion of the first allocation period and the second allocation period in the following manner: the proportion of the first allocation period in the target period is equal to a first ratio of the number of ONTs in the first terminal set to the sum of the number of ONTs in the first terminal set and the number of ONTs in the second terminal set; similarly, the proportion of the second allocation period in the target period is equal to a second ratio of the number of ONTs in the second terminal set to the sum of the number of ONTs in the first terminal set and the number of ONTs in the second terminal set.
[0105] In some other examples, the bandwidth demand related information includes the service type enabled by each ONT in the first terminal set and the service type enabled by each ONT in the second terminal set. The OLT determines the proportion of the first allocation period and the second allocation period in the following manner:
[0106] First, the OLT determines the bandwidth corresponding to the service type of each ONT according to the mapping relationship between the service type and the bandwidth as the bandwidth demand of each ONT; then, the ONT counts the sum of the bandwidth demands of all ONTs in the first terminal set and the sum of the bandwidth demands of all ONTs in the second terminal set; a third ratio of the sum of the bandwidth demands of all ONTs in the first terminal set to the sum of the bandwidth demands of all ONTs in the first terminal set and the second terminal set is determined as the proportion of the first allocation period in the target period; and a fourth ratio of the sum of the bandwidth demands of all ONTs in the second terminal set to the sum of the bandwidth demands of all ONTs in the first terminal set and the second terminal set is determined as the proportion of the second allocation period in the target period.
[0107] In some other examples, the bandwidth demand related information includes the number of ONTs in the first terminal set, the number of ONTs in the second terminal set, the service type opened by the ONTs in the first terminal set, and the service type opened by the ONTs in the second terminal set. The OLT determines the proportion of the first allocation period and the second allocation period in the following manner: a first ratio of the number of ONTs in the first terminal set to the sum of the number of ONTs in the first terminal set and the second terminal set, and a second ratio of the sum of the bandwidth requirements of all ONTs in the first terminal set to the sum of the bandwidth requirements of all ONTs in the first terminal set and the second terminal set are respectively multiplied by corresponding weights and then added to obtain the proportion of the first allocation period in the target period; a third ratio of the number of ONTs in the second terminal set to the sum of the number of ONTs in the first terminal set and the second terminal set, and a fourth ratio of the sum of the bandwidth requirements of all ONTs in the second terminal set to the sum of the bandwidth requirements of all ONTs in the first terminal set and the second terminal set are respectively multiplied by corresponding weights and then added to obtain the proportion of the second allocation period in the target period. Among them, the sum of the weight corresponding to the first ratio and the weight corresponding to the second ratio is equal to 1; the sum of the weight corresponding to the third ratio and the weight corresponding to the fourth ratio is equal to 1.
[0108] The weight corresponding to the first ratio and the weight corresponding to the second ratio, as well as the weight corresponding to the third ratio and the weight corresponding to the fourth ratio can be set as needed, for example, all are 0.5.
[0109] Exemplarily, when the bandwidth demand related information includes service information of a service activated by the ONT, the service information may be reported by the ONT to the OLT when activating the service, or may be obtained by the OLT from a database, in which user information is stored, and the user information includes a user identifier, an ONT identifier, service information, and the like.
[0110] Optionally, in addition to determining the proportion of the first allocation period and the second allocation period, determining the first allocation period set and the second allocation period set in the target period may also include: determining the distribution method of the first allocation period and the second allocation period according to the delay sensitivity of the ONT in the first terminal set and the delay sensitivity of the ONT in the second terminal set, and the distribution method is used to indicate the number of consecutive first allocation periods and the number of consecutive second allocation periods.
[0111] The higher the delay sensitivity of the ONT in the first terminal set, the smaller the number of consecutive first allocation cycles. The lower the delay sensitivity of the ONT in the first terminal set, the larger the number of consecutive first allocation cycles. The higher the delay sensitivity of the ONT in the second terminal set, the smaller the number of consecutive second allocation cycles. The lower the delay sensitivity of the ONT in the second terminal set, the larger the number of consecutive second allocation cycles.
[0112] Exemplarily, the delay sensitivity may be represented by the maximum delay that the ONT can tolerate. The larger the maximum delay that the ONT can tolerate, the higher the delay sensitivity. The delay sensitivity may also be reported by the ONT to the OLT or obtained by the OLT from a database.
[0113] S402: Allocate a time slot in a first allocation cycle to a first ONT in a first terminal set according to a MAC protocol of the first ONT.
[0114] For more information about the first ONT, see Figure 1 The relevant content will not be repeated here.
[0115] In some examples, the OLT receives first bandwidth requests sent by each first ONT, and the OLT generates first authorized bandwidth information according to the received first bandwidth requests, where the first authorized bandwidth information is used to indicate a time slot in a first allocation cycle.
[0116] S402 may be performed by the aforementioned first MAC module. The embodiment of the present application does not limit the dynamic bandwidth allocation (DBA) algorithm used by the first MAC module to generate the authorization information, and any DBA algorithm in the related art may be used.
[0117] S403: Allocate the time slots in the second allocation period to the second ONT in the second terminal set according to the MAC protocol of the second ONT.
[0118] For more information about the second ONT, see Figure 1 The relevant content will not be repeated here.
[0119] In some examples, the OLT receives second bandwidth requests sent by each second ONT, and the OLT generates second authorized bandwidth information according to the received second bandwidth requests, where the second authorized bandwidth information is used to indicate a time slot in a second allocation cycle.
[0120] S403 may be executed by the aforementioned second MAC module. The embodiment of the present application does not limit the DBA algorithm used by the second MAC module to generate the authorization information, and any DBA algorithm in the related art may be used.
[0121] It should be noted that the embodiment of the present application does not limit the execution order of S402 and S403. S402 may be executed first, and then S403; or S402 may be executed first, and then S403; or S402 and S403 may be executed simultaneously.
[0122] In the embodiment of the present application, the length of each allocation cycle may be N times of 125 μs. Here, N is a positive integer, and the value range may be 1-32, such as 1, 2, 3, 8, 16 or 32.
[0123] In the embodiment of the present application, the MAC protocol used by the first ONT and the MAC protocol used by the second ONT may belong to different standard systems. Here, the standard system includes but is not limited to the IEEE standard system and the ITU-T standard system.
[0124] In some examples, when the MAC protocol used by the first ONT and the MAC protocol used by the second ONT belong to different standard systems, the first ONT and the second ONT will use different message encapsulation methods. For example, when the MAC protocol used by the first ONT belongs to the IEEE standard system, the first ONT uses the Ethernet (Eth) encapsulation method. When the MAC protocol used by the second ONT belongs to the ITU-T standard system, the second ONT uses the GPON encapsulation mode (G-PON encapsulation mode, GEM).
[0125] The length of the frame structure corresponding to different message encapsulation methods is different. The length of the frame structure corresponding to the Eth encapsulation method is not fixed, and the length of the frame structure corresponding to GEM is fixed, which is 125μs.
[0126] Therefore, when the first ONT or the second ONT is a 50G PON ONT, the length of each allocation cycle can be set to an integer multiple of 125 μs to support the protocol requirements of 50G PON. In addition, this can fully utilize the upstream bandwidth and improve the utilization rate of the upstream bandwidth.
[0127] When both the first ONT and the second ONT are not 50G PON ONTs, the length of each allocation period may not be an integer multiple of 125 μs.
[0128] Optionally, the method may further include: adjusting the length of the target cycle, that is, adjusting the number of allocation cycles contained in the target cycle and / or the length of the allocation cycle.
[0129] The embodiment of the present application does not limit the conditions or timing for adjusting the length of the target period. In some examples, the length of the target period can be adjusted when it is detected that the ratio of the number of ONTs in the first terminal set and / or the number of ONTs in the second terminal set changes greatly. For example, the corresponding relationship between the length of the target period and the sum of the number of ONTs in the first terminal set and the number of ONTs in the second terminal set can be preset. In this corresponding relationship, the greater the sum of the number of ONTs in the first terminal set and the number of ONTs in the second terminal set, the greater the length of the target period. For example, the length of the target period corresponding to the first interval [a1, b1) is A, and the length of the target period corresponding to the second interval [b1, c1) is B, and B is greater than A.
[0130] In other examples, when an adjustment instruction is received, the length of the target cycle is adjusted according to the adjustment instruction, and the adjustment instruction may be input by a user.
[0131] In the case where the MAC protocols used by the first ONT and the second ONT are different, especially in the case where the MAC protocols used by the first ONT and the second ONT are different and the message encapsulation methods are different, it is difficult to complete the scheduling of the first ONT and the second ONT within the upstream frame period specified by the MAC protocol (for example, within 125μs corresponding to the message encapsulation method of the second ONT) through a bandwidth allocation algorithm. In an embodiment of the present application, the first allocation period set and the second period set are first determined in the target period, and then the time slots in the first allocation period are allocated to the first ONT according to the MAC protocol of the first ONT, and the time slots in the second allocation period are allocated to the second ONT according to the MAC protocol of the second ONT, so that the time slots allocated to the first ONT and the time slots of the second ONT are staggered. That is, when the OLT allocates bandwidth, it first divides the bandwidth in a coarse-grained manner, so that the first ONT and the second ONT using different MAC protocols send upstream data in different time slots, even if the upstream wavelengths used to send upstream data of the first ONT and the second ONT overlap, the upstream data sent by the first ONT and the second ONT will not conflict. Furthermore, bandwidth allocation is performed on the ONTs in the first time slot group and the second time slot group respectively according to the corresponding MAC protocol, which can simplify the bandwidth allocation algorithm and improve the efficiency of bandwidth allocation.
[0132] By adopting the bandwidth allocation method of the embodiment of the present application, the first ONT and the second ONT supporting different MAC protocols can coexist under the same PON port of the optical module of the OLT, thereby achieving smooth evolution and upgrading of the PON system with a low transmission rate, which is conducive to cost saving.
[0133] Figure 7is a block diagram of a bandwidth allocation device provided in an embodiment of the present application. The bandwidth allocation device can be implemented as all or part of an optical communication device (eg, OLT) through software, hardware, or a combination of both. Figure 7 As shown, the bandwidth allocation device includes a first allocation unit 701 , a second allocation unit 702 and a third allocation unit 703 .
[0134] The first allocation unit 701 is used to determine a first allocation cycle set and a second allocation cycle set in a target cycle, the target cycle includes M allocation cycles, M is greater than 1 and M is an integer, the first allocation cycle set includes X first allocation cycles among the M allocation cycles, the second allocation cycle set includes Y second allocation cycles among the M allocation cycles, X and Y are both positive integers, and the sum of X and Y is less than or equal to M.
[0135] The second allocation unit is configured to allocate the time slots in the first allocation cycle to the first ONT in the first terminal set according to the MAC protocol of the first ONT.
[0136] The third allocation unit is configured to allocate the time slots in the second allocation period to the second ONT in the second terminal set according to the MAC protocol of the second ONT.
[0137] Optionally, the first terminal set also includes at least one third ONT, the first ONT is an EPON ONT, the third ONT is a 10G EPON ONT, and the second ONT is a 50G PON ONT or a 25GS PON ONT, and the first allocation 701701 is used to allocate time slots in the first allocation cycle to the first ONT and the third ONT in the first terminal set according to the MAC protocol of the first ONT and the MAC protocol of the third ONT.
[0138] Optionally, the first allocation unit 701 is further configured to determine an allocation period after the target period or at least two consecutive allocation periods as the windowing period.
[0139] Optionally, the first allocation unit 701 is configured to determine a first allocation period set and a second allocation period set in the target period according to information related to bandwidth requirements of first ONTs in the first terminal set and information related to bandwidth requirements of second ONTs in the second terminal set.
[0140] It should be noted that the bandwidth allocation device provided in the above embodiment is only illustrated by the division of the above functional units when transmitting data. In actual applications, the above functional allocation can be completed by different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the bandwidth allocation device provided in the above embodiment and the bandwidth allocation method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0141] The descriptions of the processes corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process, please refer to the relevant descriptions of other processes.
[0142] Figure 8 8 is a schematic diagram of the structure of an electronic device 800 provided in an embodiment of the present application. Figure 8 As shown, the electronic device 800 includes at least one processor 801 , a memory 802 , and at least one network interface 803 .
[0143] The processor 801 is, for example, a general-purpose central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 801 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0144] The memory 802 is, for example, a read-only memory (ROM) or other static storage device that can store static information and instructions, a random access memory (RAM) or other dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. Optionally, the memory 802 exists independently and is connected to the processor 801 through the internal connection 804. Alternatively, the memory 802 and the processor 801 are optionally integrated together.
[0145] The network interface 803 uses any transceiver-like device for communicating with other devices or communication networks. The network interface 803 includes, for example, at least one of a wired network interface or a wireless network interface. The wired network interface is, for example, an Ethernet interface. The Ethernet interface is, for example, an optical interface, an electrical interface, or a combination thereof. The wireless network interface is, for example, a wireless local area network (WLAN) interface, a cellular network interface, or a combination thereof.
[0146] In some embodiments, the processor 801 includes one or more CPUs, such as Figure 8 CPU0 and CPU1 are shown in the figure.
[0147] In some embodiments, the electronic device 800 optionally includes multiple processors, such as Figure 8 801 and processor 805 are shown in FIG. Each of these processors is, for example, a single-core processor (single-CPU), or a multi-core processor (multi-CPU). The processor here optionally refers to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0148] In some embodiments, the electronic device 800 further includes an internal connection 804. The processor 801, the memory 802, and the at least one network interface 803 are connected via the internal connection 804. The internal connection 804 includes a path to transmit information between the above components. Optionally, the internal connection 804 is a single board or a bus. Optionally, the internal connection 804 is divided into an address bus, a data bus, a control bus, etc.
[0149] In some embodiments, the electronic device 800 further includes an input-output interface 806. The input-output interface 806 is connected to the internal connection 804.
[0150] In some embodiments, the input / output interface 806 is used to connect to an input device to receive commands or data related to the above method embodiments input by a user through the input device, such as the length of a target cycle, etc. The input device includes but is not limited to a keyboard, a touch screen, a microphone, a mouse, or a sensor device, etc.
[0151] In some embodiments, the input / output interface 806 is also used to connect to an output device. The input / output interface 806 outputs the intermediate results and / or final results generated by the processor 801 executing the above method embodiment through the output device, such as the length of the first allocation cycle, the length of the second allocation cycle, the relationship between the first allocation cycle and the second allocation cycle, etc. The output device includes but is not limited to a display, a printer, a projector, etc.
[0152] Optionally, the processor 801 implements the method in the above embodiment by reading the program code 810 stored in the memory 802, or the processor 801 implements the method in the above embodiment by the program code stored internally. In the case where the processor 801 implements the method in the above embodiment by reading the program code 810 stored in the memory 802, the memory 802 stores the program code for implementing the method provided in the embodiment of the present application.
[0153] For more details on how the processor 801 implements the above functions, please refer to the descriptions in the previous method embodiments, which will not be repeated here.
[0154] In some embodiments, a computer-readable storage medium is also provided, which stores computer instructions. When the computer instructions stored in the computer-readable storage medium are executed by an electronic device, the optical communication device executes the bandwidth allocation method provided by the above method embodiment.
[0155] In some embodiments, a computer program product is also provided, which includes one or more computer program instructions. When the computer program instructions are loaded and executed by a computer, the computer executes the bandwidth allocation method provided by the above method embodiment.
[0156] In some embodiments, a chip is also provided, including a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the bandwidth allocation method provided by the above method embodiment.
[0157] Unless otherwise defined, the technical or scientific terms used herein shall have the usual meaning understood by persons of ordinary skill in the field to which this application belongs. The words "first", "second", "third" and similar terms used in the patent application specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate a quantitative limitation, but rather indicate the presence of at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalents, and do not exclude other elements or objects. A and / or B means that there are three situations: A; B; and A and B.
[0158] The above is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A bandwidth allocation method, characterized in that: Applied to a passive optical network PON system, the PON system includes a first terminal set and a second terminal set, the first terminal set includes at least one first optical network terminal ONT, the second terminal set includes at least one second ONT, the first ONT and the second ONT use different media access control MAC protocols, and the uplink wavelength of the first ONT overlaps with the uplink wavelength of the second ONT; The method comprises: Determine a first allocation cycle set and a second allocation cycle set in a target cycle, the target cycle includes M allocation cycles, M is greater than 1 and M is an integer, the first allocation cycle set includes X first allocation cycles among the M allocation cycles, the second allocation cycle set includes Y second allocation cycles among the M allocation cycles, X and Y are both positive integers, and the sum of X and Y is less than or equal to M; Allocate the time slots in the first allocation period to the first ONT in the first terminal set according to the MAC protocol of the first ONT; Allocate the time slots in the second allocation period to the second ONT in the second terminal set according to the MAC protocol of the second ONT.
2. The method according to claim 1, characterized in that The first terminal set further includes at least one third ONT, the first ONT is an EPON ONT, the third ONT is a 10G EPON ONT, the second ONT is a 50G PON ONT or a 25GS PON ONT, The allocating the time slot in the first allocation period to the first ONT in the first terminal set according to the MAC protocol of the first ONT includes: Allocate time slots in the first allocation cycle to a first ONT and a third ONT in the first terminal set according to a MAC protocol of the first ONT and a MAC protocol of the third ONT.
3. The method according to claim 1, characterized in that The first ONT is an EPON ONT, the second ONT is a 50G PON ONT or a 25GS PON ONT, or the second ONT is a symmetric or asymmetric 10G PON ONT.
4. The method according to any one of claims 1 to 3, characterized in that: The first allocation cycle set includes at least two first subsets, any first subset of the at least two first subsets includes one first allocation cycle or includes at least two consecutive first allocation cycles, and there is at least one second allocation cycle between two adjacent first subsets of the at least two first subsets; and / or, The second allocation cycle set includes at least two second subsets, any second subset of the at least two second subsets includes one second allocation cycle or includes at least two consecutive second allocation cycles, and at least one first allocation cycle exists between two adjacent second subsets of the at least two second subsets.
5. The method according to any one of claims 1 to 3, characterized in that: The first allocation cycle set includes one first allocation cycle or includes at least two consecutive first allocation cycles; and / or the second allocation cycle set includes one second allocation cycle or includes at least two consecutive second allocation cycles.
6. The method according to any one of claims 1 to 5, characterized in that: At least one first allocation cycle in the first allocation cycle set is a windowing cycle; and / or at least one second allocation cycle in the second allocation cycle set is a windowing cycle.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: An allocation cycle after the target cycle or at least two consecutive allocation cycles are determined as the windowing cycle.
8. The method according to any one of claims 1 to 7, characterized in that: The determining of the first allocation cycle set and the second allocation cycle set in the target cycle includes: According to the bandwidth demand related information of the ONTs in the first terminal set and the bandwidth demand related information of the ONTs in the second terminal set, a first allocation period set and a second allocation period set are determined in the target period.
9. The method according to any one of claims 1 to 8, characterized in that: The length of the allocation period is N times of 125 μs, where N is a positive integer.
10. A bandwidth allocation device, characterized in that: Applied to a passive optical network PON system, the PON system includes a first terminal set and a second terminal set, the first terminal set includes at least one first optical network terminal ONT, the second terminal set includes at least one second ONT, the first ONT and the second ONT use different media access control MAC protocols, and the uplink wavelength of the first ONT overlaps with the uplink wavelength of the second ONT; The device comprises: a determination module, configured to determine a first allocation cycle set and a second allocation cycle set in a target cycle, wherein the target cycle includes M allocation cycles, M is greater than 1 and is an integer, the first allocation cycle set includes X first allocation cycles among the M allocation cycles, the second allocation cycle set includes Y second allocation cycles among the M allocation cycles, X and Y are both positive integers, and the sum of X and Y is less than or equal to M; A first allocation unit, configured to allocate a time slot in the first allocation period to a first ONT in the first terminal set according to a MAC protocol of the first ONT; The second allocation unit is configured to allocate the time slots in the second allocation period to the second ONTs in the second terminal set according to the MAC protocol of the second ONTs.
11. The device according to claim 10, characterized in that The first terminal set further includes at least one third ONT, the first ONT is an EPON ONT, the third ONT is a 10G EPON ONT, the second ONT is a 50G PON ONT or a 25GS PON ONT, The first allocation unit is configured to allocate the time slots in the first allocation period to the first ONT and the third ONT in the first terminal set according to the MAC protocol of the first ONT and the MAC protocol of the third ONT.
12. The device according to claim 10, characterized in that The first ONT is an EPON ONT, the second ONT is a 50G PON ONT or a 25GS PON ONT, or the second ONT is a symmetric or asymmetric 10G PON ONT.
13. The device according to any one of claims 10 to 12, characterized in that The first allocation cycle set includes at least two first subsets, any first subset of the at least two first subsets includes one first allocation cycle or includes at least two consecutive first allocation cycles, and there is at least one second allocation cycle between two adjacent first subsets of the at least two first subsets; and / or, The second allocation cycle set includes at least two second subsets, any second subset of the at least two second subsets includes one second allocation cycle or includes at least two consecutive second allocation cycles, and at least one first allocation cycle exists between two adjacent second subsets of the at least two second subsets.
14. The device according to any one of claims 10 to 12, characterized in that The first allocation cycle set includes one first allocation cycle or includes at least two consecutive first allocation cycles; and / or the second allocation cycle set includes one second allocation cycle or includes at least two consecutive second allocation cycles.
15. The device according to any one of claims 10 to 14, characterized in that At least one first allocation cycle in the first allocation cycle set is a windowing cycle; and / or at least one second allocation cycle in the second allocation cycle set is a windowing cycle.
16. The device according to any one of claims 10 to 14, characterized in that The device also includes: An allocation cycle after the target cycle or at least two consecutive allocation cycles are determined as the windowing cycle.
17. The device according to any one of claims 10 to 16, characterized in that The determining of the first allocation cycle set and the second allocation cycle set in the target cycle includes: A first allocation period set and a second allocation period set are determined in the target period according to information related to bandwidth requirements of first ONTs in the first terminal set and information related to bandwidth requirements of second ONTs in the second terminal set.
18. The device according to any one of claims 10 to 17, characterized in that The length of the allocation period is N times of 125 μs, where N is a positive integer.
19. A passive optical network system, characterized in that: The invention comprises an optical line terminal OLT, an optical distribution network ODN and a plurality of optical network terminals ONT, wherein the OLT is connected to the plurality of ONTs through the ODN, the plurality of ONTs comprise a first terminal set and a second terminal set, the first terminal set comprises at least one first optical network terminal ONT, the second terminal set comprises at least one second ONT, the first ONT and the second ONT adopt different media access control MAC protocols, and the OLT is used to allocate authorized bandwidth to the plurality of ONTs by adopting the method according to any one of claims 1 to 9.
20. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a software program, and the processor runs or executes the software program stored in the memory so that the electronic device implements the method according to any one of claims 1 to 9.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes executed by a processor, wherein the program codes include instructions for implementing the method according to any one of claims 1 to 9.