Bandwidth allocation method, optical communication system, apparatus and storage medium
By allocating fixed bandwidth to optical network units in FTTR optical communication networks and dynamically adjusting it according to bandwidth allocation information, the problem of unreasonable bandwidth allocation in optical gateways is solved, and efficient bandwidth utilization of optical network units and quality of communication services are guaranteed.
Patent Information
- Application Number
- CN202210710454.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-06-22
AI Technical Summary
In FTTR optical communication networks, unreasonable bandwidth allocation by optical gateways to downstream optical routers leads to underutilization and waste of bandwidth, affecting the quality of communication services.
Dynamic bandwidth allocation is achieved by allocating fixed bandwidth to optical network units and dynamically adjusting it based on bandwidth allocation criteria, including detecting the number of optical network units, the priority of the communication service types they carry, and bandwidth request information.
It enables dynamic allocation and efficient utilization of bandwidth in optical network units within optical communication networks, reducing bandwidth waste and ensuring the normal operation of communication services.
Smart Images

Figure CN117319844B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a bandwidth allocation method, an optical communication system, a computer device, and a storage medium. Background Technology
[0002] As the cost of optical communication networks decreases, their reach expands. Building upon FTTH (Fiber To The Home), applications such as FTTR (Fiber To The Room) and FTTD (Fiber To The Desk) have been implemented. This has led to an increase in the number of communication nodes in the optical network, raising the issue of bandwidth allocation among these nodes. For example, in FTTR, an optical gateway is typically located at the electrical box at the entrance to the building, and each room has at least one optical router. At the physical layer, the optical routers and the optical gateway are connected via an optical distribution network. At the link layer, the optical gateway connects to other optical routers. The gateway can control the communication bandwidth between itself and its connected routers. If the gateway fails to allocate bandwidth appropriately to its connected routers, it can lead to underutilization and waste of bandwidth, potentially causing communication services to fail to meet expected quality and thus disrupting normal operations. Summary of the Invention
[0003] To address at least one technical problem in the optical communication network, such as the allocation of communication bandwidth between communication nodes and their downstream communication nodes, the present invention aims to provide a bandwidth allocation method, an optical communication system, a computer device, and a storage medium.
[0004] On one hand, embodiments of the present invention provide a bandwidth allocation method, the bandwidth allocation method comprising:
[0005] A fixed bandwidth is allocated to each of the at least one second optical network unit, wherein the second optical network unit is an optical network unit that has been attached to the first optical network unit at a first moment;
[0006] Obtain the information on the basis for the first bandwidth allocation;
[0007] Based on the first bandwidth allocation information, a matching dynamic bandwidth is allocated to each of the second optical network units.
[0008] Furthermore, obtaining the first bandwidth allocation basis information includes:
[0009] Detect the total number of the second optical network units;
[0010] The total number of the second optical network units is used as the basis for the first bandwidth allocation.
[0011] Further, the step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes:
[0012] The dynamic bandwidth is allocated to each of the second optical network units based on the total number of the second optical network units.
[0013] Furthermore, obtaining the first bandwidth allocation basis information includes:
[0014] Determine the priority of the communication service types carried by each of the second optical network units;
[0015] The weight of the second optical network unit is determined according to the priority, wherein the weight of the second optical network unit is positively correlated with the priority of the corresponding communication service type;
[0016] The weight of each of the second optical network units is used as the basis for the first bandwidth allocation.
[0017] Further, the step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes:
[0018] The dynamic bandwidth is allocated to each of the second optical network units according to the weight of each second optical network unit.
[0019] Furthermore, obtaining the first bandwidth allocation basis information includes:
[0020] Receive some or all of the bandwidth allocation request information uploaded by the second optical network unit;
[0021] The bandwidth allocation request information is used as the first bandwidth allocation basis information.
[0022] Further, the step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes:
[0023] When the sum of the bandwidths corresponding to all the bandwidth allocation request information does not exceed the first remaining bandwidth, the portion of the first remaining bandwidth corresponding to the bandwidth allocation request information is allocated to the second optical network unit; wherein, the first remaining bandwidth is the total bandwidth of the first optical network unit minus the fixed bandwidth allocated to each of the second optical network units.
[0024] When the sum of the bandwidths corresponding to all the bandwidth allocation request information exceeds the first remaining bandwidth, the first remaining bandwidth is allocated to each of the second optical network units proportionally, using the bandwidths corresponding to all the bandwidth allocation request information as the allocation ratio.
[0025] Furthermore, the bandwidth allocation method further includes:
[0026] Control the third optical network unit to be connected to the first optical network unit; the third optical network unit is an optical network unit that was not connected to the first optical network unit at the first moment, but requested to be connected to the first optical network unit after the first moment.
[0027] The third optical network unit is detected to obtain the second bandwidth allocation basis information;
[0028] After the dynamic bandwidth is allocated to each of the second optical network units, the remaining second residual bandwidth of the first optical network unit is determined;
[0029] Based on the second bandwidth allocation information, the second remaining bandwidth is allocated to the third optical network unit.
[0030] Further, the step of allocating the second remaining bandwidth to the third optical network unit according to the second bandwidth allocation basis information includes:
[0031] When the bandwidth corresponding to the second bandwidth allocation basis information does not exceed the second remaining bandwidth, the portion of the second remaining bandwidth corresponding to the second bandwidth allocation basis information is allocated to the third optical network unit.
[0032] When the bandwidth corresponding to the second bandwidth allocation information exceeds the second remaining bandwidth, the network terminal connected to the third optical network unit and the target optical network unit corresponding to the network terminal are determined. The target optical network unit is the second optical network unit that the network terminal was connected to before switching to the third optical network unit. Part or all of the bandwidth allocated to the target optical network unit is recovered, and the recovered part or all of the bandwidth and the second remaining bandwidth are allocated to the third optical network unit.
[0033] On the other hand, embodiments of the present invention also provide a bandwidth allocation method applied to a second optical network unit, the bandwidth allocation method comprising:
[0034] Obtain the fixed bandwidth allocated by the first optical network unit, wherein the second optical network unit has been connected to the first optical network unit at the first moment;
[0035] Send the first bandwidth allocation basis information to the first optical network unit;
[0036] The dynamic bandwidth allocated by the first optical network unit is obtained, wherein the dynamic bandwidth is allocated by the first optical network unit according to the first bandwidth allocation basis information.
[0037] Further, sending the first bandwidth allocation basis information to the first optical network unit includes:
[0038] The type of communication service currently being carried is detected; the type of communication service has a corresponding priority, and the priority of the type of communication service is positively correlated with the weight of the second optical network unit.
[0039] The weight of the second optical network unit is used as the basis for the first bandwidth allocation and sent to the first optical network unit.
[0040] Further, sending the first bandwidth allocation basis information to the first optical network unit includes:
[0041] Generate bandwidth allocation request information;
[0042] The bandwidth allocation request information is used as the first bandwidth allocation basis information and sent to the first optical network unit.
[0043] On the other hand, embodiments of the present invention also provide an optical communication system, including a first optical network unit and at least one second optical network unit;
[0044] The first optical network unit is used to be connected to one or more second optical network units;
[0045] The first optical network unit is also configured to allocate a fixed bandwidth to each of the second optical network units according to a fixed value, obtain first bandwidth allocation basis information, and allocate matching dynamic bandwidth to each of the second optical network units according to the first bandwidth allocation basis information.
[0046] On the other hand, embodiments of the present invention also provide an optical communication system, including a first optical network unit and at least one second optical network unit;
[0047] The first optical network unit is used to be connected to one or more second optical network units;
[0048] The first optical network unit is used to determine its own fixed bandwidth and dynamic bandwidth, allocate the fixed bandwidth to each of the second optical network units according to a fixed value, obtain first bandwidth allocation basis information, and allocate matching dynamic bandwidth to each of the second optical network units according to the first bandwidth allocation basis information.
[0049] On the other hand, embodiments of the present invention also provide a storage medium storing a processor-executable program, which, when executed by a processor, is used to perform the bandwidth allocation method in embodiments of the present invention.
[0050] The beneficial effects of the present invention include: the bandwidth allocation method in the embodiments, by allocating fixed bandwidth to the second optical network units, can ensure the basic communication functions of each second optical network unit; by allocating dynamic bandwidth to each second optical network unit according to the allocation ratio determined by the first bandwidth allocation basis information, it can realize the allocation of dynamic bandwidth of the first optical network unit according to the working status of each second optical network unit or the number of first optical network units connected to it, so that the allocation of dynamic bandwidth can match the working status of each second optical network unit or the number of first optical network units connected to it, thereby realizing the dynamic allocation and efficient utilization of the bandwidth of optical network units in the optical communication network and reducing the bandwidth waste of the optical communication network. Attached Figure Description
[0051] Figure 1 This is a schematic diagram of the first optical communication network structure for the bandwidth allocation method in the applicable embodiments;
[0052] Figure 2 This is a schematic diagram of a second optical communication network structure for the bandwidth allocation method in the applicable embodiments;
[0053] Figure 3 This is a schematic diagram of a third optical communication network structure for the bandwidth allocation method in the applicable embodiments;
[0054] Figure 4 This is a flowchart of a bandwidth allocation method in the embodiment;
[0055] Figure 5 This is another flowchart of the bandwidth allocation method in the embodiment;
[0056] Figure 6 This is a schematic diagram illustrating the principle of allocating remaining bandwidth to the third optical network unit based on the second bandwidth allocation information in this embodiment.
[0057] Figure 7 This is a schematic diagram of the structure of a computer device in an embodiment of the present invention. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be arbitrarily combined with each other.
[0059] In this embodiment, the bandwidth allocation method can be applied in FTTR scenarios. Therefore, the application of the bandwidth allocation method in FTTR scenarios can be used as an example to illustrate the bandwidth allocation method.
[0060] Figure 1 , Figure 2 and Figure 3 These are several typical optical communication network structures in the FTTR scenario. Figure 1 , Figure 2 and Figure 3 In this embodiment, ONU 1 is the first optical network unit, ONU 2 is the second optical network unit, and ODN is the optical distribution network. Figure 1 , Figure 2 and Figure 3 Several optional configurations of the first optical network unit ONU 1 and the second optical network unit ONU 2 are shown respectively.
[0061] Figure 1 In this design, an XGPON-based Optical Network Unit (ONU) is used as the first ONU 1, and a GPON-based Optical Network Unit (ONU) is used as the second ONU 2. Physically, ONU 1 and ONU 2 are connected via an Optical Distribution Network (ODN). The channel between the first ONU and the second ONU (labeled 201) is Channel 1, and the channel between the first ONU and the second ONU (labeled 202) is Channel 2.
[0062] Figure 2 In this configuration, an optical network unit based on NGPON technology is used as the first optical network unit (ONU 1), and an optical network unit based on NGPON technology is used as the second optical network unit (ONU 2). Physically, ONU 1 and ONU 2 are connected via an optical distribution network. Specifically, the channels between the first optical network unit and the second optical network unit (labeled 201) are Channel 1 and Channel 2; the channels between the first optical network unit and the second optical network unit (labeled 202) are Channel 1 and Channel 3; and the channel between the first optical network unit and the second optical network unit (labeled 203) is Channel 4.
[0063] Figure 3In this design, a 100GPON-based optical network unit (ONU 1) is used as the first optical network unit, and a 100GPON and 50GPON-based optical network unit (ONU 2) is used as the second optical network unit. Physically, ONU 1 and ONU 2 are connected via an optical distribution network. The channels between the first optical network unit and the 100GPON-based second optical network unit are Channel 1, Channel 2, Channel 3, and Channel 4, while the channels between the first optical network unit and the 50GPON-based second optical network unit are Channel 1 and Channel 2.
[0064] In some applications such as FTTR, the first optical network unit in this embodiment can also be referred to as an "optical gateway," and the second optical network unit in this embodiment can also be referred to as an "optical router." The first optical network unit, i.e., the optical gateway, can connect to the optical line terminal (OLT) of the network service provider, thereby enabling the optical communication network composed of the first and second optical network units to access the Internet; the second optical network unit, i.e., the optical router, can provide communication services to network terminals such as mobile phones, tablets, laptops, and wearable devices via communication protocols such as WiFi.
[0065] In this embodiment, the second optical network unit is connected to the first optical network unit. Specifically, this means that at a specific moment, such as a first moment (which could be the moment when step S1 in this embodiment is executed), the second optical network unit has been successfully connected to the first optical network unit. The first optical network unit can control the communication bandwidth between the connected second optical network unit and the first optical network unit. Unless otherwise specified, in this embodiment, the bandwidth of the second optical network unit refers to the bandwidth between the second optical network unit and the first optical network unit. Since data communication between the second optical network unit and the Internet needs to pass through the first optical network unit, the most direct manifestation of the first optical network unit controlling the bandwidth of the second optical network unit is that the speed at which the network terminal connected to the second optical network unit accesses the Internet is affected.
[0066] for Figure 1 , Figure 2 and Figure 3 The optical communication network in the FTTR scenario shown, as well as similar optical communication networks in other scenarios, can implement bandwidth allocation methods. (Refer to...) Figure 4 In this embodiment, the bandwidth allocation method includes the following steps:
[0067] S1. Allocate a fixed bandwidth to each optical network unit in at least one second optical network unit;
[0068] S2. Obtain the first bandwidth allocation basis information;
[0069] S3. Based on the first bandwidth allocation information, allocate matching dynamic bandwidth to each second optical network unit.
[0070] In this embodiment, steps S1-S2 can be executed by the first optical network unit, by one of the second optical network units, or by a separate device for controlling the first and second optical network units. Step S3 can be executed by the first optical network unit. Since the same technical effect can be achieved regardless of which device executes the steps in the bandwidth allocation method, the example of execution by the first optical network unit will be used for explanation.
[0071] Before executing steps S1-S3, the first optical network unit can locate its fixed bandwidth and dynamic bandwidth available for allocation to its subordinate second optical network units. Specifically, the fixed bandwidth and dynamic bandwidth can be two independent bandwidths, and the first optical network unit can set the fixed bandwidth and dynamic bandwidth separately. It should be noted that the sum of the fixed bandwidth and the sum of the dynamic bandwidth allocated to the second optical network unit are not always fixed.
[0072] Before executing steps S1-S3, the first optical network unit can set its fixed bandwidth and dynamic bandwidth based on its total bandwidth. The first optical network unit can set its total bandwidth according to the bandwidth limit provided by the network service provider, for example, setting the total bandwidth to be the same as the bandwidth limit provided by the network service provider. The first optical network unit can divide the total bandwidth into two parts: one part as the sum of the fixed bandwidth allocated to the second optical network unit, and the other part as the sum of the dynamic bandwidth allocated to the second optical network unit. For example, when the total bandwidth is 1000Mbps, the first optical network unit can set the sum of the fixed bandwidth to 800Mbps and the sum of the dynamic bandwidth to 200Mbps.
[0073] In step S1, the first optical network unit allocates a fixed bandwidth to each second optical network unit according to a fixed value. Here, "fixed value" can refer to a fixed allocation ratio, such as a 1:1 allocation ratio between any two second optical network units. In this case, the fixed bandwidth will be evenly distributed among the second optical network units according to the total number of second optical network units connected to the first optical network unit. Figure 1Two second optical network units, GPON 201 and GPON 202, are configured. With a total fixed bandwidth of 800Mbps, 400Mbps of bandwidth can be allocated to each of the two second optical network units. On the other hand, "fixed value" can refer to the same or different fixed values corresponding to each second optical network unit, for example, in... Figure 2 The system is configured with three second optical network units: NGPON 201, NGPON 202, and NGPON 203. Each of these three second optical network units can correspond to the same fixed value of 200Mbps. Thus, when step S1 is executed, 200Mbps of bandwidth is allocated to each of the three second optical network units: NGPON 201, NGPON 202, and NGPON 203. Figure 2 The three second optical network units can also correspond to different defined values. For example, NGPON 201 corresponds to 200Mbps, NGPON 202 corresponds to 200Mbps, and NGPON 203 corresponds to 400Mbps. In this way, when executing step S1, 200Mbps of bandwidth is allocated to NGPON 201, 200Mbps of bandwidth is allocated to NGPON 202, and 400Mbps of bandwidth is allocated to NGPON 203.
[0074] In another optional embodiment, in step S1, the first optical network unit allocates a fixed bandwidth to each of the second optical network units according to a fixed value. Here, "fixed value" can refer to a fixed amount of bandwidth. For example, if the fixed bandwidth is 100 Mbps, when there are two second optical network units, the sum of the fixed bandwidth allocated to each second optical network unit is 400 Mbps; when there are three second optical network units, the sum of the fixed bandwidth allocated to each second optical network unit is 600 Mbps.
[0075] By executing step S1, each second optical network unit can be allocated a portion of a fixed bandwidth. The second optical network unit can use the allocated bandwidth from the fixed bandwidth to communicate with the first optical network unit, thereby ensuring the basic communication function of each second optical network unit.
[0076] In this embodiment, the first bandwidth allocation information in steps S2 and S3 can take many forms.
[0077] For the first type of first bandwidth allocation basis information, when executing step S2, that is, the step of obtaining the first bandwidth allocation basis information, the following steps can be performed:
[0078] S201A. Detect the total number of second optical network units;
[0079] S202A. The total number of second optical network units is used as the basis for the first bandwidth allocation.
[0080] In step S201A, the first optical network unit can detect the number of optical network units connected to its WAN port to obtain the total number of the second optical network units.
[0081] In step S202A, the total number of second optical network units detected by the first optical network unit can be used as the basis information for the first bandwidth allocation to be obtained in step S2.
[0082] Based on the execution of steps S201A-S202A, when executing step S3, which is to allocate matching dynamic bandwidth to each second optical network unit according to the first bandwidth allocation information, the following steps can be performed:
[0083] S301A. Based on the total number of second optical network units, the dynamic bandwidth is evenly distributed to each second optical network unit.
[0084] For example, for Figure 1 In the optical communication network shown, in S201A, a total of 2 second optical network units are detected. With a total dynamic bandwidth of 200Mbps, step S301A is executed, and the bandwidth allocated to the two second optical network units, GPON 201 and GPON 202, is 100Mbps respectively.
[0085] By executing step S301A to allocate dynamic bandwidth to each second optical network unit (ONU) in an even distribution manner, it is possible to complete the dynamic bandwidth allocation simply by detecting the number of second ONUs connected to the first ONU. No other data communication or processing between the first and second ONUs is required, resulting in minimal impact on the load of either the first or second ONU and faster allocation speed. Step S301A is particularly suitable for situations where second ONUs frequently connect to or disconnect from the first ONU. Such scenarios include: an office space with multiple meeting rooms, an office space equipped with a first optical network unit, and each meeting room equipped with a second optical network unit. Each second optical network unit is physically connected to the first optical network unit. When someone uses a meeting room, the second optical network unit in that meeting room enters a working state and is connected to the first optical network unit. When all personnel leave the meeting room, the second optical network unit in that meeting room enters a dormant state and is released from connection to the first optical network unit. This makes the second optical network units connected to the first optical network unit in a dynamically changing state. By executing step S301A, the first optical network unit can easily achieve rapid dynamic allocation of bandwidth, providing bandwidth to meeting rooms that need it and recovering bandwidth from meeting rooms that no longer need it, thus achieving high-efficiency utilization of bandwidth.
[0086] For the second type of first bandwidth allocation basis information, when executing step S2, that is, the step of obtaining the first bandwidth allocation basis information, the following steps can be performed:
[0087] S201B. Detect the type of communication service carried by each second optical network unit;
[0088] S202B. Determine the priority of each communication service type;
[0089] S203B. Determine the weight of the second optical network unit based on the priority of the communication service type it carries; the weight of the second optical network unit is positively correlated with the priority of the communication service type corresponding to the same second optical network unit.
[0090] S204B. The weight of each second optical network unit is used as the basis for the first bandwidth allocation.
[0091] In step S201B, each second optical network unit can report the type of communication service it is currently carrying to the first optical network unit, or the first optical network unit can parse the data packets sent by the second optical network unit to determine the type of communication service carried by the second optical network unit. Specifically, the communication service type can be file transfer service, audio-visual entertainment service, and voice call service, etc.
[0092] In step S202B, the priority of communication service types can be determined based on their importance. For a second optical network unit, its weight is positively correlated with the priority of its communication service type. For example, voice call services can be determined to have the highest priority, file transfer services to have a medium priority, and audio-visual entertainment services to have the lowest priority. If, in step S201B, a second optical network unit is identified as carrying multiple communication service types, the priority of the communication service type with the highest priority can be used as the priority determined in step S202B.
[0093] In step S203B, the mapping relationship between the priority and weight of communication service types can be edited into a data table. When executing step S203B, for a second optical network unit, the corresponding weight can be obtained by querying the priority of the communication service type carried by the second optical network unit, and used as the weight corresponding to this second optical network unit. For example, for the highest priority call service, its weight can be determined to be 3; for the medium priority file transfer service, its weight can be determined to be 2; and for the lowest priority audio-visual entertainment service, its weight can be determined to be 1.
[0094] When performing step S203B, the mapping relationship between the priority and weight of the communication service type can also be fitted into a function expression or curve. After determining the priority of the communication service type, the priority of the communication service type can be substituted into the function expression or curve to query or calculate the weight of the communication service type.
[0095] In step S204B, the weights of each second optical network unit can be used as the basis information for the first bandwidth allocation to be obtained in step S2.
[0096] Based on the execution of steps S201B-S204B, when executing step S3, which is to allocate matching dynamic bandwidth to each second optical network unit according to the first bandwidth allocation information, the following steps can be performed:
[0097] S301B. Dynamic bandwidth is allocated to each second optical network unit based on the weight of each second optical network unit.
[0098] For example, for Figure 2In the optical communication network shown, in step S201B, it is detected that the communication service type carried by NGPON 201 is a voice call service, and the weight corresponding to NGPON 201 is 3; the communication service type carried by NGPON 202 is an audio-visual entertainment service, and the weight corresponding to NGPON 202 is 1; and the communication service type carried by NGPON 203 is a file transfer service, and the weight corresponding to NGPON 203 is 2. With a total dynamic bandwidth of 200Mbps, step S301B is executed. The bandwidth allocated to NGPON 201 is 200Mbps*3 / (3+1+2) = 100Mbps, the bandwidth allocated to NGPON 202 is 200Mbps*1 / (3+1+2) = 33.33Mbps, and the bandwidth allocated to NGPON 203 is 200Mbps*2 / (3+1+2) = 66.67Mbps.
[0099] By executing step S301B, dynamic bandwidth is allocated according to the weight of the second optical network unit. Since the weight of each second optical network unit is positively correlated with the priority of the communication service type it carries, the second optical network unit carrying the higher priority communication service type will be allocated more bandwidth. This ensures that the normal operation of high-priority communication service types is guaranteed first, and achieves high-efficiency bandwidth utilization under the premise of the same total bandwidth. This is suitable for occasions such as hotels and restaurants with large bandwidth requirements and a variety of communication service types running at the same time.
[0100] For the third type of first bandwidth allocation basis information, when executing step S2, that is, the step of obtaining the first bandwidth allocation basis information, the following steps can be performed:
[0101] S201C. Receive bandwidth allocation request information uploaded by some or all of the second optical network units;
[0102] S202C. Use each bandwidth allocation request information as the first bandwidth allocation basis information.
[0103] In step S201C, the second optical network unit can detect its own service traffic size and determine whether the bandwidth currently allocated to it is sufficient to support the current service traffic size. If the bandwidth currently allocated to it is insufficient to support the current service traffic size, the second optical network unit can generate bandwidth allocation request information based on the required additional bandwidth size and send the bandwidth allocation request information to the first optical network unit.
[0104] In step S201C, the second optical network unit that generates bandwidth allocation request information can package the bandwidth allocation request information into a PLOAM (Physical Layer Operations, Administration and Maintenance) message or an OMCI (ONU Management and Control Interface) message, and send the PLOAM message or OMCI message to the first optical network unit, thereby sending the bandwidth allocation request information to the first optical network unit.
[0105] Specifically, fields can be added to PLOAM or OMCI messages as bandwidth allocation request information. For example, the field format could be "enable=x, value=y". For instance, if a PLOAM or OMCI message sent by a second optical network unit to a first optical network unit contains a field like "enable=1, value=100", the bandwidth allocation request information could be "requesting the first optical network unit to allocate 100Mbps of bandwidth to the second optical network unit in addition to the previously allocated bandwidth", while a field like "enable=0" indicates that the second optical network unit does not need any further bandwidth allocation.
[0106] In some cases, only some of the second optical network units need to reallocate bandwidth. Therefore, in step S201C, the first optical network unit will only receive bandwidth allocation request information uploaded by some of the second optical network units.
[0107] In step S202C, the bandwidth allocation request information uploaded by the second optical network unit to the first optical network unit can be used as the first bandwidth allocation basis information to be obtained in step S2.
[0108] Based on the execution of steps S201C-S202C, when executing step S3, which is to allocate matching dynamic bandwidth to each second optical network unit according to the first bandwidth allocation information, the following steps can be performed:
[0109] S301C. When the sum of the bandwidths corresponding to all bandwidth allocation request information does not exceed the first remaining bandwidth, the portion of the first remaining bandwidth corresponding to the bandwidth allocation request information is allocated to the second optical network unit; wherein, the first remaining bandwidth is the remaining bandwidth after deducting the fixed bandwidth allocated to each second optical network unit from the total bandwidth of the first optical network unit;
[0110] S302C. When the sum of the bandwidths corresponding to all bandwidth allocation request information exceeds the first remaining bandwidth, the first remaining bandwidth is allocated to each second optical network unit proportionally, using the bandwidth corresponding to all bandwidth allocation request information as the allocation ratio.
[0111] In step S301C, with Figure 2 Taking the optical communication network shown as an example, assuming that NGPON 201 sends a bandwidth allocation request to the first optical network unit requesting 50Mbps of bandwidth, NGPON 202 does not send a bandwidth allocation request to the first optical network unit, and NGPON 203 sends a bandwidth allocation request to the first optical network unit requesting 10Mbps of bandwidth, then the sum of the bandwidth corresponding to all bandwidth allocation request information is 50Mbps + 10Mbps = 60Mbps. With a dynamic bandwidth sum of 200Mbps and no dynamic bandwidth allocation, the first remaining bandwidth is 200Mbps. Since the sum of the bandwidth corresponding to all bandwidth allocation request information does not exceed the first remaining bandwidth, the first optical network unit can fully respond to all bandwidth allocation request information, allocating 50Mbps of the first remaining bandwidth to the second optical network unit NGPON 201 and 10Mbps of the dynamic bandwidth to the second optical network unit NGPON 203. Therefore, the remaining bandwidth after the dynamic bandwidth is allocated to each of the second optical network units is 200Mbps - 50Mbps - 10Mbps = 140Mbps.
[0112] In step S302C, with Figure 2Taking the optical communication network shown as an example, assuming that NGPON 201 requests 150Mbps of bandwidth in its bandwidth allocation request to the first optical network unit, NGPON 202 requests 50Mbps of bandwidth in its bandwidth allocation request to the first optical network unit, and NGPON 203 requests 50Mbps of bandwidth in its bandwidth allocation request to the first optical network unit, then the sum of the bandwidth corresponding to all bandwidth allocation requests is 150Mbps + 50Mbps + 50Mbps = 250Mbps. If the sum of the dynamic bandwidth is 200Mbps, and no dynamic bandwidth allocation is performed, then the first remaining bandwidth is 200Mbps. The sum of the bandwidth corresponding to all bandwidth allocation requests exceeds the sum of the first remaining bandwidth. Therefore, the first optical network unit can determine that the allocation ratio of the three second optical network units (NGPON 201, NGPON 202, and NGPON 203) is 150Mbps:50Mbps:50Mbps, i.e., 3:1:1, and allocate the first remaining bandwidth to NGPON 203 in a 3:1:1 ratio. The three second optical network units are NGPON 201, NGPON 202, and NGPON 203. NGPON 201 is allocated a dynamic bandwidth of 200Mbps*3*(3+1+1)=120Mbps, while NGPON 202 and NGPON 203 are each allocated a dynamic bandwidth of 200Mbps*1*(3+1+1)=40Mbps.
[0113] By executing steps S301C-S302C to allocate dynamic bandwidth based on the bandwidth allocation request information of the second optical network unit, the authority to request dynamic bandwidth allocation can be delegated to the second optical network unit, thereby directly satisfying the bandwidth requirements actively proposed by the second optical network unit. For example, the second optical network unit can be authorized to issue bandwidth allocation request information only in emergency situations, and the requested bandwidth can be directly allocated to the second optical network unit, thereby achieving precise bandwidth allocation and reducing bandwidth waste.
[0114] By executing steps S2 and S3, the working status information of the second optical network units, such as the total number of second optical network units, the type of communication services they carry, or the actual bandwidth required, can be determined as the first bandwidth allocation basis information. By allocating dynamic bandwidth to each second optical network unit according to the allocation ratio determined by the first bandwidth allocation basis information, it is possible to allocate the dynamic bandwidth of the first optical network unit according to the working status of each second optical network unit or the connection status of the first optical network unit. This ensures that the allocation of dynamic bandwidth matches the working status of each second optical network unit or the number of first optical network units connected to it, thereby achieving dynamic allocation and efficient utilization of the bandwidth of optical network units in the optical communication network and reducing bandwidth waste in the optical communication network.
[0115] In this embodiment, refer to Figure 5 The bandwidth allocation method also includes the following steps:
[0116] S4. Control the third optical network unit to be attached to the first optical network unit;
[0117] S5. Detect the third optical network unit to obtain the second bandwidth allocation basis information;
[0118] S6. Determine the second remaining bandwidth of the first optical network unit after the dynamic bandwidth is allocated to each second optical network unit;
[0119] S7. Allocate the second remaining bandwidth to the third optical network unit according to the second bandwidth allocation information.
[0120] In this embodiment, based on the same principle as steps S1-S2, steps S4-S6 can be executed by the first optical network unit, by one of the second optical network units, or by a separate device for controlling the first and second optical network units. Step S7 can be executed by the first optical network unit. Since the same technical effect can be achieved regardless of which device executes the steps in the bandwidth allocation method, the example of execution by the first optical network unit can be used for explanation.
[0121] In step S4, the third optical network unit and the second optical network unit can be the same or different optical network units; that is, the third optical network unit can also be... Figure 1 , Figure 2 and Figure 3 The third optical network unit (ONU) is based on GPON, NGPON, 100GPON, or 50GPON. The main difference between the second and third ONUs is that the second ONU is already connected to the first ONU at the first moment, while the third ONU is not connected at the first moment. The third ONU requests connection to the first ONU only after the first moment. Specifically, at the first moment, the third ONU may not be connected to the first ONU due to reasons such as not being physically connected to the optical distribution network, not being powered on, experiencing a fault, or entering sleep mode. After the first moment, the third ONU can establish a physical connection with the optical distribution network, be powered on, have its fault resolved, or be woken up, thereby connecting the third ONU to the first ONU.
[0122] For the first optical network unit and the second optical network unit, the third optical network unit is a newly attached optical network unit. The third optical network unit has not undergone the bandwidth allocation process in steps S1-S3. Bandwidth can be allocated to the third optical network unit by executing steps S6-S7.
[0123] In this embodiment, after executing step S4 and before executing step S5, a fixed bandwidth can be allocated to the third optical network unit according to the principle of step S1.
[0124] In this embodiment, the principle of detecting the second bandwidth allocation basis information in step S5 is the same as the principle of detecting the first bandwidth allocation basis information in step S2. That is, the form of the second bandwidth allocation basis information in step S5 can be the total number of newly connected third optical network units, the weight corresponding to the communication service type carried by the third optical network unit, or the bandwidth allocation request information sent by the third optical network unit.
[0125] In step S6, the second remaining bandwidth is the residual value of the dynamic bandwidth after it has been allocated to each of the second optical network units, and is the upper limit of the bandwidth that can be further allocated to the third optical network unit.
[0126] In step S7, the first optical network unit can refer to the principle of step S3 and allocate the second remaining bandwidth to the third optical network unit according to the second bandwidth allocation information.
[0127] By executing steps S4-S7, the bandwidth of the first optical network unit can be allocated to the newly connected third optical network unit, based on the bandwidth already allocated to the second optical network unit. This enables the first optical network unit to dynamically allocate and efficiently utilize the bandwidth of the newly connected optical network unit, reducing bandwidth waste in the first optical network unit.
[0128] In this embodiment, when performing step S7, which is to allocate the second remaining bandwidth to the third optical network unit according to the second bandwidth allocation basis information, the following steps can be specifically performed:
[0129] S701. When the bandwidth corresponding to the second bandwidth allocation basis information does not exceed the second remaining bandwidth, the portion of the second remaining bandwidth corresponding to the second bandwidth allocation basis information is allocated to the third optical network unit.
[0130] S702. When the bandwidth corresponding to the second bandwidth allocation information exceeds the second remaining bandwidth, determine the network terminal connected to the third optical network unit and the target optical network unit corresponding to the network terminal. The target optical network unit is the second optical network unit that the network terminal was connected to before switching to the connection with the third optical network unit. Reclaim part or all of the bandwidth allocated to the target optical network unit and allocate the reclaimed part or all of the bandwidth and the second remaining bandwidth to the third optical network unit.
[0131] In step S701, assuming the bandwidth corresponding to the second bandwidth allocation basis information generated by the third optical network unit is 50Mbps, that is, the third optical network unit actively requests the first optical network unit to allocate another 50Mbps of bandwidth, or the first optical network unit detects that the third optical network unit needs to be allocated another 50Mbps of bandwidth, and the second remaining bandwidth obtained after the dynamic bandwidth is allocated to each of the second optical network units is 200Mbps, then the bandwidth corresponding to the second bandwidth allocation basis information does not exceed the second remaining bandwidth, that is, the second remaining bandwidth is sufficient to meet the bandwidth requirements of the third optical network unit, and the first optical network unit can allocate the portion of the second remaining bandwidth corresponding to the second bandwidth allocation basis information, i.e., 50Mbps, to the third optical network unit.
[0132] In step S702, assuming the bandwidth corresponding to the second bandwidth allocation information generated by the third optical network unit is 250Mbps, and the second remaining bandwidth after the dynamic bandwidth is allocated to each second optical network unit is 200Mbps, then the bandwidth corresponding to the second bandwidth allocation information exceeds the second remaining bandwidth, that is, the second remaining bandwidth cannot meet the bandwidth requirements of the third optical network unit. The first optical network unit can detect the network terminal connected to the third optical network unit. For example, if the first optical network unit detects that the third optical network unit is currently connected to a network terminal named "END 1", the first optical network unit can continue to detect the target optical network unit corresponding to the network terminal END 1, that is, the second optical network unit that the network terminal END 1 was connected to before switching to the connection with the third optical network unit. The first optical network unit reclaims part or all of the bandwidth allocated to the second optical network unit previously connected to network terminal END 1, and allocates the reclaimed part or all of the bandwidth, along with the second remaining bandwidth, to the third optical network unit. Specifically, in this embodiment, the bandwidth corresponding to the second bandwidth allocation information is 250Mbps, the second remaining bandwidth is 200Mbps, and the bandwidth gap required by the third optical network unit is 250Mbps - 200Mbps = 50Mbps. The first optical network unit can reclaim 50Mbps from the bandwidth allocated to the target optical network unit during steps S1-S3, thereby reducing the bandwidth between the target optical network unit and the first optical network unit by 50Mbps. The reclaimed 50Mbps bandwidth is then allocated to the third optical network unit, so that the bandwidth between the third optical network unit and the first optical network unit can reach the bandwidth of 250Mbps corresponding to the second bandwidth allocation information generated by the third optical network unit.
[0133] In step S702, the number of target optical network units can be multiple. The number of target optical network units can be limited by restricting the number of network terminals currently connected to the third optical network unit being searched, or by limiting the time period during which the network terminals currently connected to the third optical network unit previously connected to the second optical network unit.
[0134] Reference Figure 6 Taking the application of step S702 in an FTTR scenario as an example, the principle of step S702 is as follows: In an FTTR scenario, each second optical network unit 501 and third optical network unit 502 is installed in multiple rooms within the same building. The second and third optical network units connect to signal transceivers such as WiFi to achieve wireless signal coverage in different spaces within the building. The range of wireless signal coverage can be small enough that the wireless signal of each second or third optical network unit only covers the room where it is located. Users can use mobile phones or other network terminals (the name can be "END") 1) Moving between different rooms, for example, Room 1 is equipped with the target optical network unit of this embodiment, and Room 2 is equipped with the third optical network unit of this embodiment. If a user stays in Room 1 for an extended period and uses the target optical network unit, the third optical network unit in Room 2 will remain unused and enter a dormant state. Thus, at the first moment, the third optical network unit becomes an optical network unit not connected to the first optical network unit. After the first moment, if the user moves from Room 1 to Room 2, their network terminal END 1 will switch from being connected to the target optical network unit in Room 1 to being connected to the third optical network unit in Room 2. Therefore, the third optical network unit in Room 2 becomes an optical network unit connected to the first optical network unit, and the network terminal END 1... The network load generated by the target optical network unit installed in Room 1 is switched to the third optical network unit installed in Room 2. The bandwidth requirement of the target optical network unit installed in Room 1 decreases, while the bandwidth requirement of the third optical network unit installed in Room 2 increases. By executing step S702, the bandwidth resources allocated by the first optical network unit to the target optical network unit installed in Room 1 can be transferred to the third optical network unit installed in Room 2, thereby achieving efficient utilization of the bandwidth of the first optical network unit.
[0135] While the first optical network unit executes steps S1-S3, the second optical network unit may execute the following steps:
[0136] P1. Obtain the fixed bandwidth allocated by the first optical network unit;
[0137] P2. Send the first bandwidth allocation basis information to the first optical network unit;
[0138] P3. Obtain the dynamic bandwidth allocated by the first optical network unit, wherein the dynamic bandwidth is allocated by the first optical network unit according to the first bandwidth allocation basis information.
[0139] In this context, step P1 corresponds to step S1, step P2 corresponds to step S2, and step P3 corresponds to step S3.
[0140] When executing step P2, the second optical network unit can proactively send the first bandwidth allocation basis information to the first optical network unit, or it can return the first bandwidth allocation basis information to the first optical network unit when the first optical network unit requests or queries it. For example, when the first optical network unit executes step S2 in the form of steps S201A-S202A, the first bandwidth allocation basis information required by the first optical network unit is the total number of second optical network units. The first optical network unit can send a query command to its subordinate second optical network units to query the subordinate status. Therefore, from the perspective of the second optical network unit, the first bandwidth allocation basis information sent by each second optical network unit can be feedback information to the query command sent by the first optical network unit.
[0141] In step P3, for a single second optical network unit, "dynamic bandwidth" can refer to a portion of the total dynamic bandwidth allocated to the first optical network unit.
[0142] By executing steps P1-P3, the second optical network unit can, together with steps S1-S3 executed by the first optical network unit, achieve the allocation of fixed and dynamic bandwidth of the first optical network unit. Therefore, the technical effect of steps P1-P3 is the same as that of steps S1-S3.
[0143] In this embodiment, the first optical network unit and the second optical network unit can be part of an optical communication system for FTTR. The first optical network unit can be connected to one or more second optical network units. The first optical network unit can perform the bandwidth allocation method in this embodiment, including steps S1-S7. The second optical network unit can perform the bandwidth allocation method in this embodiment, including steps P1-P3, thereby achieving the same technical effect as the bandwidth allocation method in this embodiment of the invention.
[0144] In this embodiment, when the second optical network unit performs step P2, which is to send the first bandwidth allocation basis information to the first optical network unit, it can specifically perform the following steps:
[0145] P201A. Detect the type of communication service currently being carried; the type of communication service has a corresponding priority, and the priority of the type of communication service is positively correlated with the weight of the second optical network unit;
[0146] P202A. The weight of the second optical network unit is used as the basis for the first bandwidth allocation and sent to the first optical network unit.
[0147] Steps P201A-P202A are the first execution mode of step P2. Steps P201A-P202A executed by the second optical network unit correspond to steps S201B-S204B executed by the first optical network unit, enabling the first optical network unit to obtain the first bandwidth allocation basis information.
[0148] In this embodiment, when the second optical network unit performs step P2, which is to send the first bandwidth allocation basis information to the first optical network unit, it can specifically perform the following steps:
[0149] P201B. Generate bandwidth allocation request information;
[0150] P202B. The bandwidth allocation request information is sent to the first optical network unit as the first bandwidth allocation basis information.
[0151] Steps P201B-P202B are the second execution method of step P2. Steps P201B-P202B executed by the second optical network unit correspond to steps S201C-S202C executed by the first optical network unit, enabling the first optical network unit to obtain the first bandwidth allocation basis information.
[0152] In this embodiment, the optical communication system for FTTR may further include a second optical network unit attached to the first optical network unit, and an optical distribution network that establishes a physical connection between the first optical network unit and the second optical network unit.
[0153] In this embodiment, the following can be used Figure 7 The computer device shown performs a bandwidth allocation method. (Refer to...) Figure 7 The computer device includes a memory 6001 and a processor 6002, wherein the memory 6001 is used to store at least one program, and the processor 6002 is used to load at least one program to execute the bandwidth allocation method in the embodiments of the present invention. By running this device, the same technical effects as the bandwidth allocation method in the embodiments of the present invention can be achieved.
[0154] In embodiments of the present invention, a storage medium is provided, wherein a processor-executable program is stored, wherein the processor-executable program, when executed by a processor, is used to perform the bandwidth allocation method in the embodiments of the present invention. By using this storage medium, the same technical effects as the bandwidth allocation method in the embodiments of the present invention can be achieved.
[0155] It should be noted that, unless otherwise specified, when a feature is referred to as "fixed" or "connected" to another feature, it can be directly fixed or connected to the other feature, or indirectly fixed or connected to the other feature. Furthermore, the descriptions of "upper," "lower," "left," and "right" used in this disclosure are only relative to the relative positional relationships of the various components of this disclosure in the accompanying drawings. The singular forms "a," "described," and "the" used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. Moreover, unless otherwise defined, all technical and scientific terms used in this embodiment have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this embodiment specification is only for describing particular embodiments and is not intended to limit the invention. The term "and / or" as used in this embodiment includes any combination of one or more of the associated listed items.
[0156] It should be understood that although the terms first, second, third, etc., may be used to describe various elements in this disclosure, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. For example, a first element may also be referred to as a second element without departing from the scope of this disclosure, and similarly, a second element may also be referred to as a first element. The use of any and all instances or exemplary language (“e.g.,” “such as,” etc.) provided in this embodiment is intended only to better illustrate embodiments of the invention and, unless otherwise required, does not impose a limitation on the scope of the invention.
[0157] It should be recognized that embodiments of the present invention can be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable storage medium. The method can be implemented using standard programming techniques—including a non-transitory computer-readable storage medium configured with a computer program, wherein such a storage medium causes the computer to operate in a specific and predefined manner—according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. Furthermore, for this purpose, the program can run on a programmed application-specific integrated circuit (ASIC).
[0158] Furthermore, the procedures described in this embodiment can be performed in any suitable order unless otherwise indicated by this embodiment or clearly contradicted by the context. The procedures (or variations and / or combinations thereof) described in this embodiment can be executed under the control of one or more computer systems configured with executable instructions, and can be implemented by hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) that commonly executes on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
[0159] Furthermore, the method can be implemented in any suitable type of computing platform, including but not limited to personal computers, minicomputers, mainframes, workstations, networked or distributed computing environments, standalone or integrated computer platforms, or in communication with charged particle tools or other imaging devices. Aspects of the invention can be implemented as machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and / or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the processes described herein. Furthermore, the machine-readable code, or portions thereof, can be transmitted via wired or wireless networks. The invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media when such media comprises instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. When programmed according to the methods and techniques described in the invention, the invention also includes the computer itself.
[0160] A computer program can be applied to input data to perform the functions described in this embodiment, thereby transforming the input data to generate output data stored in non-volatile memory. The output information can also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects generated on the display.
[0161] The above description is merely a preferred embodiment of the present invention. The present invention is not limited to the above-described embodiments. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention, as long as they achieve the technical effects of the present invention by the same means, should be included within the scope of protection of the present invention. Within the scope of protection of the present invention, the technical solutions and / or implementation methods can have various modifications and variations.
Claims
1. A bandwidth allocation method applied to a first optical network unit, characterized in that, include: A fixed bandwidth is allocated to each of the at least one second optical network unit, wherein the second optical network unit is an optical network unit that has been attached to the first optical network unit at a first moment; Obtain the information on the basis for the first bandwidth allocation; Based on the first bandwidth allocation information, a matching dynamic bandwidth is allocated to each of the second optical network units; Control the third optical network unit to be connected to the first optical network unit; the third optical network unit is an optical network unit that was not connected to the first optical network unit at the first moment, but requested to be connected to the first optical network unit after the first moment. The third optical network unit is detected to obtain the second bandwidth allocation basis information; After the dynamic bandwidth is allocated to each of the second optical network units, the remaining second residual bandwidth of the first optical network unit is determined; When the bandwidth corresponding to the second bandwidth allocation information exceeds the second remaining bandwidth, the network terminal connected to the third optical network unit and the target optical network unit corresponding to the network terminal are determined. The target optical network unit is the second optical network unit that the network terminal was connected to before switching to the third optical network unit. Part or all of the bandwidth allocated to the target optical network unit is recovered, and the recovered part or all of the bandwidth and the second remaining bandwidth are allocated to the third optical network unit. In this configuration, data communication between the second optical network unit, the third optical network unit, and the Internet all passes through the first optical network unit, and the network terminal accesses the Internet by correspondingly connecting the third optical network unit and the first optical network unit.
2. The bandwidth allocation method according to claim 1, characterized in that, The information used to obtain the first bandwidth allocation basis includes: Detect the total number of the second optical network units; The total number of the second optical network units is used as the basis for the first bandwidth allocation.
3. The bandwidth allocation method according to claim 2, characterized in that, The step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes: The dynamic bandwidth is allocated to each of the second optical network units based on the total number of the second optical network units.
4. The bandwidth allocation method according to claim 1, characterized in that, The information used to obtain the first bandwidth allocation basis includes: Determine the priority of the communication service types carried by each of the second optical network units; The weight of the second optical network unit is determined according to the priority, wherein the weight of the second optical network unit is positively correlated with the priority of the corresponding communication service type; The weight of each of the second optical network units is used as the basis for the first bandwidth allocation.
5. The bandwidth allocation method according to claim 4, characterized in that, The step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes: The dynamic bandwidth is allocated to each of the second optical network units according to the weight of each second optical network unit.
6. The bandwidth allocation method according to claim 1, characterized in that, The information used to obtain the first bandwidth allocation basis includes: Receive some or all of the bandwidth allocation request information uploaded by the second optical network unit; The bandwidth allocation request information is used as the first bandwidth allocation basis information.
7. The bandwidth allocation method according to claim 6, characterized in that, The step of allocating matching dynamic bandwidth to each of the second optical network units based on the first bandwidth allocation information includes: When the sum of the bandwidths corresponding to all the bandwidth allocation request information does not exceed the first remaining bandwidth, the portion of the first remaining bandwidth corresponding to the bandwidth allocation request information is allocated to the second optical network unit; wherein, the first remaining bandwidth is the total bandwidth of the first optical network unit minus the fixed bandwidth allocated to each of the second optical network units. When the sum of the bandwidths corresponding to all the bandwidth allocation request information exceeds the first remaining bandwidth, the first remaining bandwidth is allocated to each of the second optical network units proportionally, using the bandwidths corresponding to all the bandwidth allocation request information as the allocation ratio.
8. The bandwidth allocation method according to claim 1, characterized in that, The method further includes: When the bandwidth corresponding to the second bandwidth allocation basis information does not exceed the second remaining bandwidth, the portion of the second remaining bandwidth corresponding to the second bandwidth allocation basis information is allocated to the third optical network unit.
9. A bandwidth allocation method applied to a second optical network unit, characterized in that, include: Obtain the fixed bandwidth allocated by the first optical network unit, wherein the second optical network unit has been connected to the first optical network unit at the first moment; Send the first bandwidth allocation basis information to the first optical network unit; The dynamic bandwidth allocated by the first optical network unit is obtained, wherein the dynamic bandwidth is allocated by the first optical network unit according to the first bandwidth allocation basis information. The first optical network unit is configured to detect the requested third optical network unit after the first time interval, obtain second bandwidth allocation basis information, determine the second remaining bandwidth of the first optical network unit after the dynamic bandwidth is allocated to each of the second optical network units, and when the bandwidth corresponding to the second bandwidth allocation basis information exceeds the second remaining bandwidth, determine the network terminal connected to the third optical network unit and the target optical network unit corresponding to the network terminal, wherein the target optical network unit is the second optical network unit connected to the network terminal before switching to the connection with the third optical network unit, reclaim part or all of the bandwidth allocated to the target optical network unit, and allocate the reclaimed part or all of the bandwidth and the second remaining bandwidth to the third optical network unit. In this configuration, data communication between the second optical network unit, the third optical network unit, and the Internet all passes through the first optical network unit, and the network terminal accesses the Internet by correspondingly connecting the third optical network unit and the first optical network unit.
10. The bandwidth allocation method according to claim 9, characterized in that, The step of sending the first bandwidth allocation basis information to the first optical network unit includes: The type of communication service currently being carried is detected; the type of communication service has a corresponding priority, and the priority of the type of communication service is positively correlated with the weight of the second optical network unit. The weight of the second optical network unit is used as the basis for the first bandwidth allocation and sent to the first optical network unit.
11. The bandwidth allocation method according to claim 9, characterized in that, The step of sending the first bandwidth allocation basis information to the first optical network unit includes: Generate bandwidth allocation request information; The bandwidth allocation request information is used as the first bandwidth allocation basis information and sent to the first optical network unit.
12. An optical communication system, characterized in that, It includes a first optical network unit, at least one second optical network unit, and a third optical network unit, wherein the third optical network unit is not connected to the first optical network unit at the first moment; The first optical network unit is used to be connected to one or more second optical network units; The first optical network unit is also configured to allocate a fixed bandwidth to each of the second optical network units according to a fixed value, obtain first bandwidth allocation basis information, and allocate matching dynamic bandwidth to each of the second optical network units according to the first bandwidth allocation basis information; The third optical network unit is used to request the optical network unit connected to the first optical network unit after the first time, so that the first optical network unit can detect the third optical network unit and obtain the second bandwidth allocation basis information. After the dynamic bandwidth is allocated to each of the second optical network units, the remaining second remaining bandwidth of the first optical network unit is determined; and when the bandwidth corresponding to the second bandwidth allocation information exceeds the second remaining bandwidth, the network terminal connected to the third optical network unit is determined, and the target optical network unit corresponding to the network terminal is determined, wherein the target optical network unit is the second optical network unit that the network terminal was connected to before switching to the connection with the third optical network unit, and part or all of the bandwidth allocated to the target optical network unit is recovered, and the recovered part or all of the bandwidth and the second remaining bandwidth are allocated to the third optical network unit; In this configuration, data communication between the second optical network unit, the third optical network unit, and the Internet all passes through the first optical network unit, and the network terminal accesses the Internet by correspondingly connecting the third optical network unit and the first optical network unit.
13. A computer device, characterized in that, The device includes a memory and a processor, the memory being used to store at least one program, and the processor being used to load the at least one program to perform the bandwidth allocation method according to any one of claims 1-8 or 9-11.
14. A storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to perform the bandwidth allocation method as described in any one of claims 1-8 or 9-11.
Citation Information
Patent Citations
Novel bandwidth allocation algorithm based on OFDM-PON
CN102395060A
Passive optical network system having dynamic bandwidth allocation function
CN102523539A