Optical network unit management method, device, equipment, storage medium and program product

By dynamically adjusted the number of token barrels of the optical network unit, according to the real -time traffic information and the preset threshold, the resource allocation of the optical network unit in the FTTR family network network network was realized, and the problem of network congestion and business stuck was solved.

CN119364227APending Publication Date: 2025-01-24WUHAN YANGTZE OPTICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411340584.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In FTTR home networking, the resource allocation of optical network units is difficult to meet the traffic demand of different services, resulting in network congestion and service lag.

Method used

By obtaining the real -time flow information reported by the optical network unit, calculate the node rate, and dynamically adjust the number of tokens of the token barrel according to the relationship between the node rate and the preset threshold to achieve real -time traffic control.

Benefits of technology

Effectively avoid network congestion and business stuck caused by sudden traffic, ensuring that the resource allocation of the optical network unit can meet the traffic needs of different businesses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364227A_ABST
    Figure CN119364227A_ABST
Patent Text Reader

Abstract

The invention provides an optical network unit management method, device and equipment, a storage medium and a program product, which are applied to the technical field of optical network communication. The method comprises the following steps: acquiring real-time flow information reported by an optical network unit; calculating a node rate of the optical network unit according to the real-time flow information, and judging whether the node rate of the optical network unit is greater than a first threshold value or less than the first threshold value; if the node rate of the optical network unit is greater than the first threshold value, gradually reducing the number of tokens in a token bucket of the optical network unit according to the amplitude of a first score value until the node rate of the optical network unit is less than or equal to the first threshold value; if the number of the tokens in the token bucket of the optical network unit is smaller than the first threshold value, the number of the tokens in the token bucket of the optical network unit is increased according to the amplitude of a second score value; wherein the number of the tokens is used for indicating the maximum rate of the optical network unit for transmitting the service, and the first threshold value corresponds to the importance degree of the application scene of the optical network unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical network communication technology, and in particular to an optical network unit management method, device, equipment, storage medium and program product. Background Art

[0002] Fiber to the Home (FTTH) is a fiber access solution that refers to installing an ONU (Optical Network Unit) at a home user or enterprise user as a gateway. FTTR (Fiber to The Remote) is a new internal network technology based on fiber optic communication. FTTR can establish a fiber optic network covering all rooms through FTTR equipment. Compared with the traditional network technology FTTH, FTTR achieves gigabit WIFI coverage throughout the house, solving the poor user experience caused by insufficient FTTH bandwidth and poor coverage. While FTTR technology brings high-bandwidth coverage, it also introduces more ONU application scenarios. There are many ONU members in the FTTR home network, and the services carried are relatively complex. The traffic requirements of various services are different. How to reasonably allocate resources has become an urgent problem to be solved. Summary of the invention

[0003] The present invention provides an optical network unit management method, device, equipment, storage medium and program product, which are used to solve the problem of how to reasonably allocate resources.

[0004] The present invention provides an optical network unit management method, comprising: acquiring real-time flow information reported by an optical network unit; calculating a node rate of the optical network unit according to the real-time flow information, and judging whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if the node rate is greater than the first threshold, reducing the number of tokens in a token bucket of the optical network unit successively according to a magnitude of a first fractional value until the node rate of the optical network unit is less than or equal to the first threshold; if the node rate is less than the first threshold, increasing the number of tokens in the token bucket of the optical network unit according to a magnitude of a second fractional value; wherein the number of tokens is used to indicate a maximum rate of a transmission service of the optical network unit, and the first threshold corresponds to the importance of an application scenario of the optical network unit.

[0005] According to an optical network unit management method provided by the present invention, the node rate of the optical network unit is calculated according to the real-time traffic information, and whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold is determined, including: calculating the node rate of the optical network unit at multiple consecutive reporting nodes according to the real-time traffic information obtained within a preset time period; and determining whether the node rates of the multiple consecutive reporting nodes are all greater than the first threshold or all less than the first threshold.

[0006] According to an optical network unit management method provided by the present invention, if it is less than the first threshold, after increasing the number of tokens in the token bucket of the optical network unit according to the amplitude of the second fractional value, the method also includes: judging whether the node rate of the optical network unit increases; if not, stopping increasing the number of tokens in the token bucket of the optical network unit; if so, continuing to increase the number of tokens in the token bucket of the optical network unit.

[0007] According to an optical network unit management method provided by the present invention, the optical line terminal stores a tree topology structure of its subordinate optical network units, in which the sum of the number of tokens in each leaf node token bucket is less than the number of tokens of its parent node.

[0008] According to an optical network unit management method provided by the present invention, the method further includes: acquiring member status information of the optical network unit; and when the member status information changes, reallocating token bucket resources according to the new member status.

[0009] The present invention also provides an optical network unit management device, comprising the following modules: an acquisition module and a processing module; the acquisition module is used to acquire real-time traffic information reported by the optical network unit; the processing module is used to calculate the node rate of the optical network unit according to the real-time traffic information, and determine whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, the number of tokens in the token bucket of the optical network unit is reduced successively according to the amplitude of a first fractional value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, the number of tokens in the token bucket of the optical network unit is increased according to the amplitude of a second fractional value; wherein the number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

[0010] According to an optical network unit management device provided by the present invention, the processing module is used to calculate the node rate of the optical network unit at multiple consecutive reporting nodes based on the real-time traffic information obtained within a preset time period; and determine whether the node rates of the multiple consecutive reporting nodes are all greater than the first threshold or are all less than the first threshold.

[0011] According to an optical network unit management device provided by the present invention, the processing module is used to determine whether the node rate of the optical network unit increases; if not, stop increasing the number of tokens in the token bucket of the optical network unit; if so, continue to increase the number of tokens in the token bucket of the optical network unit.

[0012] According to an optical network unit management device provided by the present invention, the optical line terminal stores a tree topology structure of its subordinate optical network units, in which the sum of the number of tokens in each leaf node token bucket is less than the number of tokens of its parent node.

[0013] According to an optical network unit management device provided by the present invention, the acquisition module is used to obtain member status information of the optical network unit; the processing module is used to reallocate token bucket resources according to the new member status when the member status information changes.

[0014] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the optical network unit management methods described above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the optical network unit management method described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the optical network unit management method described above is implemented.

[0017] The optical network unit management method, device, equipment, storage medium and program product provided by the present invention can obtain the real-time traffic information reported by the optical network unit; calculate the node rate of the optical network unit according to the real-time traffic information, and judge whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, the number of tokens in the token bucket of the optical network unit is reduced successively according to the amplitude of the first score value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, the number of tokens in the token bucket of the optical network unit is increased according to the amplitude of the second score value; wherein the number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit. Through this scheme, the number of tokens in the token bucket of the optical network unit can be reallocated according to the relationship between the node rate of the optical network unit and the first threshold. Since the number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit, real-time traffic control can be achieved according to the application scenario of the optical network unit, thereby avoiding the problem of network congestion and service jamming caused by traffic bursts. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 It is a flow chart of the optical network unit management method provided by the present invention; Figure 2 It is a structural diagram of the FTTR networking provided by the present invention; Figure 3 It is a structural schematic diagram of the optical network unit management device provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0022] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0023] In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and order of execution.

[0024] The embodiments of the present application describe some exemplary embodiments for the purpose of explanation. It should be understood that the present application can be implemented in other ways that are not specifically shown in the drawings.

[0025] like Figure 1 As shown, an embodiment of the present application provides an optical network unit management method, which can be applied to an optical network unit management device, and the optical network unit management device can be an optical line terminal (Optical Line Terminal, OLT). The optical network unit management method may include S101-S104: S101. An optical line terminal obtains real-time traffic information reported by an optical network unit.

[0026] In the FTTR networking, at least one optical line terminal is included, wherein each OLT includes at least one virtual domain, that is, an OLT includes one or more virtual domains, each virtual domain manages multiple ONUs, and the ONUs in any virtual domain are networked in a tree topology. The OLT stores the tree topology of the subordinate ONUs, that is, when the OLT includes N virtual domains, the ONUs in each virtual domain are networked in a tree topology, and the OLT stores these N tree topologies. The ONUs of each virtual domain can select a suitable tree structure for networking according to actual usage requirements. It is understandable that in order to distinguish the tree topology of each virtual domain, the OLT also stores the unique identification information of each virtual domain, and the tree topology of each virtual domain is respectively associated with the unique identification information of the corresponding virtual domain.

[0027] When the ONU terminal completes networking and registers and goes online in the OLT on the bureau side, the first thing to do is to send the service configuration information, that is, the ONU needs to send its own service configuration information to the OLT. Specifically, the ONU notifies the OLT through the VRCP (Virtual RemoteControl Protocol) protocol, and the OLT parses the virtual domain ID to which each ONU belongs, the unique identification information of each ONU, the services configured on each ONU, the parent-child relationship of each ONU, and other service configuration information from the VRCP protocol, and stores it locally.

[0028] The OLT includes a token bucket management module, which allocates an exclusive token bucket to each ONU terminal when it goes online. The identification information of the token bucket is unique. The number of tokens in the token bucket is used to indicate the maximum amount of data of the service that the ONU can upload, that is, the maximum rate reported by the ONU. The uplink rate or downlink rate of the ONU can be controlled by the number of tokens.

[0029] Optionally, the optical line terminal stores a tree topology structure of subordinate optical network units, in which the sum of the number of tokens in the token bucket of each leaf node is less than the number of tokens of its parent node.

[0030] like Figure 2 As shown, the number of tokens in the token bucket of the main route is greater than or equal to the sum of the number of tokens of node 1 and node 2, and the number of tokens in the token bucket of node 1 is also greater than or equal to the sum of the number of tokens of node 3 and node 4. In this way, it can be ensured that the traffic of each node will not cause congestion.

[0031] Optionally, the ONU can use the VRCP protocol to Actively report real-time traffic information to OLT , Accordingly, the OLT can obtain the real-time traffic information reported by the optical network unit.

[0032] S102: The optical line terminal calculates the node rate of the optical network unit according to the real-time traffic information, and determines whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold.

[0033] The first threshold corresponds to the importance of the application scenario of the optical network unit.

[0034] It should be noted that the optical line terminal can set the first threshold corresponding to each ONU according to the importance of the application scenario of the ONU. That is, the ONU carrying important services can adjust its first threshold higher accordingly to tolerate a higher rate of passing; on the contrary, the ONU carrying general services can adjust its first threshold lower accordingly to meet the balanced configuration of limited resources.

[0035] Specifically, the optical line terminal can calculate the node rate of the optical network unit according to the following formula (1): ; (1)

[0036] in, Indicates the node rate of the optical network unit and the traffic information at the last moment .

[0037] Optionally, the optical line terminal can calculate the node rate of the optical network unit at multiple consecutive reporting nodes based on the real-time traffic information obtained within a preset time period; and then determine whether the node rates of the multiple consecutive reporting nodes are all greater than the first threshold or all less than the first threshold.

[0038] Specifically, the optical line terminal can calculate the node rate of the optical network unit on three consecutive reporting nodes, and determine in turn whether the node rate on each reporting node is greater than the first threshold or less than the first threshold. In this way, it can be further determined whether the network resource demand of the optical network unit is stable, thereby avoiding erroneous operations caused by sudden factors.

[0039] S103: If it is greater than the first threshold, the optical line terminal gradually reduces the number of tokens in the token bucket of the optical network unit according to the amplitude of the first fractional value until the node rate of the optical network unit is less than or equal to the first threshold.

[0040] The number of tokens is used to indicate the maximum rate of the optical network unit transmission service.

[0041] Specifically, if the node rate on each reporting node within a preset time period is greater than the first threshold, the optical line terminal can issue a new token bucket to the ONU and gradually reduce the number of tokens in the new token bucket according to the amplitude of the first score value until the node rate of the optical network unit is less than or equal to the first threshold.

[0042] For example, the optical line terminal may reduce the number of tokens in the token bucket by 10% each time until the rate of the ONU drops below the first threshold.

[0043] S104: If the value is less than the first threshold, the optical line terminal increases the number of tokens in the token bucket of the optical network unit according to the second fractional value.

[0044] Similarly, if the node rate on each reporting node within the preset time period is less than the first threshold, the optical line terminal can increase the number of tokens in the token bucket of the optical network unit according to the amplitude of the second fractional value.

[0045] Optionally, the second score value may be the same as the first score value, or may be different from the first score value. The specific value may be determined based on actual usage requirements and is not limited here.

[0046] For example, if the node rate on each reporting node within the preset time period is less than the first threshold, the optical line terminal may increase the number of tokens in the ONU token bucket by 10% each time.

[0047] Optionally, after increasing the number of tokens in the token bucket of the optical network unit according to the amplitude of the second fractional value, the optical line terminal can determine whether the node rate of the optical network unit has increased; if not, stop increasing the number of tokens in the token bucket of the optical network unit; if so, continue to increase the number of tokens in the token bucket of the optical network unit.

[0048] Specifically, the node rate of the optical network unit is not only related to the number of tokens in the token bucket, but also related to the service corresponding to the optical network unit. When the network resource demand of the service corresponding to the optical network unit is small, blindly increasing the number of tokens in the token bucket cannot increase the node rate of the optical network unit. Therefore, the optical line terminal can judge whether the node rate of the optical network unit increases after increasing the number of tokens once. If it does not increase, it means that the number of tokens is not a factor limiting the node rate. Therefore, the optical line terminal can stop increasing the number of tokens in the token bucket of the optical network unit; otherwise, the number of tokens in the token bucket of the optical network unit can continue to be increased.

[0049] It should be noted that, under the rule that the sum of the number of tokens in each leaf node token bucket is less than the number of tokens in its parent node, the number of tokens in the ONU token bucket is dynamically adjusted according to the first threshold, which can fully utilize the bandwidth while ensuring that no traffic congestion occurs on the path.

[0050] Optionally, the optical line terminal may obtain member status information of the optical network unit; and when the member status information changes, reallocate token bucket resources according to the new member status.

[0051] Specifically, when the number of members of the optical network unit increases or decreases, the optical line terminal can reallocate token bucket resources according to the new member status.

[0052] In an embodiment of the present application, the number of tokens in the token bucket of the optical network unit can be reallocated according to the relationship between the node rate of the optical network unit and the first threshold value. Since the number of tokens is used to indicate the maximum rate of the optical network unit to transmit the service, and the first threshold value corresponds to the importance of the application scenario of the optical network unit, real-time flow control can be implemented according to the application scenario of the optical network unit, thereby avoiding network congestion and service jams caused by traffic bursts.

[0053] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0054] The optical network unit management method provided in the embodiment of the present application can be executed by an optical network unit management device or a control module for optical network unit management in the optical network unit management device. In the embodiment of the present application, the optical network unit management method executed by the optical network unit management device is taken as an example to illustrate the optical network unit management device provided in the embodiment of the present application.

[0055] It should be noted that the embodiment of the present application can divide the optical network unit management device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0056] like Figure 3 As shown, an embodiment of the present application provides an optical network unit management device 300. The optical network unit management device 300 includes: an acquisition module 301 and a processing module 302. The acquisition module 301 can be used to acquire real-time traffic information reported by the optical network unit; the processing module 302 is used to calculate the node rate of the optical network unit according to the real-time traffic information, and determine whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, the number of tokens in the token bucket of the optical network unit is reduced successively according to the amplitude of the first score value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, the number of tokens in the token bucket of the optical network unit is increased according to the amplitude of the second score value; wherein the number of tokens is used to indicate the maximum rate of the transmission service of the optical network unit, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

[0057] Optionally, the processing module 302 is used to calculate the node rate of the optical network unit at multiple consecutive reporting nodes based on the real-time traffic information obtained within a preset time period; and determine whether the node rates of the multiple consecutive reporting nodes are all greater than the first threshold or are all less than the first threshold.

[0058] Optionally, the processing module 302 is used to determine whether the node rate of the optical network unit increases; if not, stop increasing the number of tokens in the token bucket of the optical network unit; if so, continue to increase the number of tokens in the token bucket of the optical network unit.

[0059] Optionally, the optical line terminal stores a tree topology structure of subordinate optical network units, in which the sum of the number of tokens in the token bucket of each leaf node is less than the number of tokens of its parent node.

[0060] Optionally, the acquisition module 301 is used to acquire member status information of the optical network unit; the processing module 302 is used to reallocate token bucket resources according to new member status when the member status information changes.

[0061] In an embodiment of the present application, the number of tokens in the token bucket of the optical network unit can be reallocated according to the relationship between the node rate of the optical network unit and the first threshold value. Since the number of tokens is used to indicate the maximum rate of the optical network unit to transmit the service, and the first threshold value corresponds to the importance of the application scenario of the optical network unit, real-time flow control can be implemented according to the application scenario of the optical network unit, thereby avoiding network congestion and service jams caused by traffic bursts.

[0062] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 complete mutual communication through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the optical network unit management method, the method comprising: obtaining real-time traffic information reported by the optical network unit; calculating the node rate of the optical network unit according to the real-time traffic information, and judging whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if greater than the first threshold, gradually reducing the number of tokens in the token bucket of the optical network unit according to the amplitude of the first score value until the node rate of the optical network unit is less than or equal to the first threshold; if less than the first threshold, increasing the number of tokens in the token bucket of the optical network unit according to the amplitude of the second score value; wherein the number of tokens is used to indicate the maximum rate of the transmission service of the optical network unit, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

[0063] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0064] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the optical network unit management method provided by the above methods, the method comprising: obtaining real-time traffic information reported by the optical network unit; calculating the node rate of the optical network unit according to the real-time traffic information, and judging whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, reducing the number of tokens in the token bucket of the optical network unit successively according to the amplitude of the first score value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, increasing the number of tokens in the token bucket of the optical network unit according to the amplitude of the second score value; wherein the number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

[0065] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the optical network unit management method provided by the above methods, the method comprising: obtaining real-time traffic information reported by the optical network unit; calculating the node rate of the optical network unit according to the real-time traffic information, and judging whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, reducing the number of tokens in the token bucket of the optical network unit successively according to the amplitude of the first fractional value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, increasing the number of tokens in the token bucket of the optical network unit according to the amplitude of the second fractional value; wherein the number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

[0066] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An optical network unit management method, characterized in that: Applied to an optical line terminal, the method comprises: Obtain real-time traffic information reported by the optical network unit; Calculating a node rate of the optical network unit according to the real-time traffic information, and determining whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; If it is greater than the first threshold, the number of tokens in the token bucket of the optical network unit is reduced successively according to the amplitude of the first fractional value until the node rate of the optical network unit is less than or equal to the first threshold; If it is less than the first threshold, increasing the number of tokens in the token bucket of the optical network unit according to the magnitude of the second fractional value; The number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

2. The optical network unit management method according to claim 1, characterized in that: The calculating the node rate of the optical network unit according to the real-time traffic information, and judging whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold, comprises: Calculating the node rate of the optical network unit at a plurality of consecutive reporting nodes according to the real-time traffic information obtained within a preset time period; It is determined whether the node rates of the plurality of consecutive reporting nodes are all greater than the first threshold or are all less than the first threshold.

3. The optical network unit management method according to claim 1, characterized in that: If the value is less than the first threshold, then after increasing the number of tokens in the token bucket of the optical network unit according to the magnitude of the second fractional value, the method further comprises: Determining whether the node rate of the optical network unit increases; If not, stop increasing the number of tokens in the token bucket of the optical network unit; if so, continue to increase the number of tokens in the token bucket of the optical network unit.

4. The optical network unit management method according to any one of claims 1 to 3, characterized in that: The optical line terminal stores a tree topology structure of subordinate optical network units, in which the sum of the number of tokens in the token bucket of each leaf node is less than the number of tokens in its parent node.

5. The optical network unit management method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining member status information of the optical network unit; When the member status information changes, token bucket resources are reallocated according to the new member status.

6. An optical network unit management device, characterized in that: include: Acquisition module and processing module; The acquisition module is used to acquire the real-time traffic information reported by the optical network unit; The processing module is used to calculate the node rate of the optical network unit according to the real-time traffic information, and determine whether the node rate of the optical network unit is greater than a first threshold or less than the first threshold; if it is greater than the first threshold, the number of tokens in the token bucket of the optical network unit is reduced successively according to the amplitude of the first fractional value until the node rate of the optical network unit is less than or equal to the first threshold; if it is less than the first threshold, the number of tokens in the token bucket of the optical network unit is increased according to the amplitude of the second fractional value; The number of tokens is used to indicate the maximum rate of the optical network unit transmission service, and the first threshold corresponds to the importance of the application scenario of the optical network unit.

7. The optical network unit management device according to claim 6, characterized in that: The processing module is used to calculate the node rate of the optical network unit at multiple consecutive reporting nodes based on the real-time traffic information obtained within a preset time period; and determine whether the node rates of the multiple consecutive reporting nodes are all greater than the first threshold or all less than the first threshold.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the optical network unit management method according to any one of claims 1 to 5 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical network unit management method according to any one of claims 1 to 5 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the optical network unit management method according to any one of claims 1 to 5 is implemented.