Upstream line rate switching method and electronic device

By sending control messages to the ONU via the optical line terminal (OLT), and combining the BWmap structure and PLOAM messages, flexible switching of the ONU uplink line rate is achieved. This solves the limitation of static rate setting in traditional TDM-PON systems and improves the network's dynamic adjustment capability and service quality.

WO2026242708A1PCT designated stage Publication Date: 2026-11-26ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/091418
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-23
Filing Date
2026-04-17
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In 50G passive optical networks, the uplink rate of the ONU in a traditional TDM-PON system is statically set during registration and activation, which is difficult to change. This limits the network's ability to dynamically adjust to cope with sudden traffic demands. In particular, when the ONU supports multiple uplink rates at the same time, how to efficiently switch these rates without affecting service quality has become an urgent problem to be solved.

Method used

The Optical Line Terminal (OLT) instructs the ONU to switch uplink rates by sending control messages, including the target uplink rate. Combining the BWmap structure and PLOAM messages, the ONU achieves flexible rate switching and ensures the accuracy and reliability of the switching through verification and recovery strategies.

Benefits of technology

It enables flexible switching of uplink line rates, improves network performance, resource optimization, quality of service and energy-saving strategy execution, ensures high availability and continuity of the network, and solves the problem of insufficient rate switching in traditional systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026091418_26112026_PF_FP_ABST
    Figure CN2026091418_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in embodiments of the present disclosure are an upstream line rate switching method and an electronic device, applied to an optical line terminal (OLT). The method comprises: sending a management and control message to a network unit (ONU) to instruct the ONU to switch an upstream line rate to a target upstream line rate, wherein the management and control message comprises the target upstream line rate. The present disclosure solves the problem in the related art that upstream line rate switching for time division multiplexing passive optical networks is not flexible enough.
Need to check novelty before this filing date? Find Prior Art

Description

Uplink speed switching methods and electronic devices

[0001] Cross-references to related applications

[0002] This disclosure is based on and claims priority to Chinese patent application CN202510675746.0, filed on May 23, 2025, entitled “Method and Electronic Device for Switching Uplink Line Rate”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] This disclosure relates to the field of communications, and more specifically, to a method and electronic device for switching uplink rates. Background Technology

[0004] In a 50G Passive Optical Network (PON), the Optical Network Unit (ONU) can support different uplink rates (such as 25G / 50G), and there will be ONUs that support multiple uplink rates—multi-rate ONUs.

[0005] In Time Division Multiplexing (TDM) PON architectures, traditional TDM-PON systems statically set the ONU's uplink rate during registration and activation, making it difficult to change once determined. This limits the network's ability to dynamically adjust to handle sudden traffic surges. More complexly, when an ONU simultaneously supports multiple uplink rates, efficiently switching between these rates without compromising service quality becomes a critical issue. Summary of the Invention

[0006] This disclosure provides an uplink rate switching method and electronic device to at least address the problem of insufficient flexibility in uplink rate switching in time-division multiplexing passive optical networks in the related art.

[0007] According to one embodiment of this disclosure, an uplink rate switching method is provided, applied to an optical line terminal (OLT), comprising: sending a control message to a network unit (ONU) instructing the ONU to switch the uplink rate to a target uplink rate, wherein the control message includes the target uplink rate.

[0008] According to another embodiment of this disclosure, an uplink rate switching method is provided, applied to an optical network unit (ONU), comprising: receiving a control message sent by an optical line terminal (OLT), and switching the uplink rate to a target uplink rate according to the control message, wherein the control message includes the target uplink rate.

[0009] According to yet another embodiment of this disclosure, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0010] According to yet another embodiment of this disclosure, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0011] According to yet another embodiment of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments. Attached Figure Description

[0012] Figure 1 is a flowchart (a) of an uplink line rate switching method according to an embodiment of the present disclosure;

[0013] Figure 2 is a schematic diagram of the BWmap structure according to an embodiment of the present disclosure;

[0014] Figure 3 is a flowchart (II) of an uplink line rate switching method according to an embodiment of the present disclosure. Detailed Implementation

[0015] The embodiments of this disclosure will be described in detail below with reference to the accompanying drawings and examples.

[0016] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0017] Registration and activation process in traditional TDM PON:

[0018] The evolution of the ONU state between two consecutive re-entry into the initial state is called the activation cycle.

[0019] The general activation process is divided into five steps, O1-5.

[0020] O1 phase (initial state): The OLT sends downlink signals, and the ONU synchronizes according to the downlink signals. After completing physical frame synchronization, it enters the next state.

[0021] O1.1 (Off-Synchronization State): The ONU searches for and attempts to synchronize with downstream signals. Once it achieves downlink synchronization with a certain channel, the ONU transitions to the O1 / Profile Learning sub-state.

[0022] O1.2 (File Learning Status): The ONU receives the Brust Profile Physical Layer Operations, Administration and Maintenance (PLOAM) message and enters the sequence number status (O2-3) after collecting sufficient information.

[0023] O2-3 Phase (Serial Number State): The OLT sends a Burst Profile PLOAM to configure the parameters for ONU burst transmission; the OLT sends a Serial Number Grant to instruct all ONUs in the O2-3 state to send a Serial Number PLOAM message; after receiving a Serial Number PLOAM message from a specific ONU, the OLT sends an Assign ONU-ID PLOAM message to that ONU to configure its ONU-ID; in this phase, the ONU reports its supported uplink rate via Serial Number ONU, and the OLT specifies the uplink line rate for the ONU's operation via Assign ONU-ID PLOAM.

[0024] Phase O4 (ranging state): The OLT sends a unicast ranging authorization, instructing a specific ONU to send a Registration PLOAM message. The OLT calculates the equalization delay based on the received Registration PLOAM message, and then sends a Ranging Time PLOAM to configure its equalization delay.

[0025] O5 stage (normal working state): The ONU sends uplink service data according to the control of the OLT through the Bandwidth Map (BWmap).

[0026] It should be noted that, for the sake of simplicity, O1.1 (Closed-Synchronization State) will be referred to as the first working state, O1.2 (Archive Learning State) as the second working state, O2-3 (Serial Number State) as the third working state, O4 (Distance Measurement State) as the fourth working state, and O5 (Normal Working State) as the fifth working state.

[0027] In traditional TDM-PON systems, the uplink rate of the ONU is statically set during registration and activation, and once determined, it is difficult to change. This limits the network's ability to dynamically adjust to cope with sudden traffic demands. When the ONU supports multiple uplink rates simultaneously, how to efficiently switch between these rates without affecting service quality has become an urgent problem to be solved.

[0028] Therefore, this disclosure provides an uplink rate switching method applied to an optical line terminal (OLT). Figure 1 is a flowchart (I) of the uplink rate switching method according to an embodiment of this disclosure. As shown in Figure 1, the process includes the following steps:

[0029] Step S102: Send a control message to the network unit ONU, instructing the ONU to switch the uplink line rate to the target uplink line rate, wherein the control message includes the target uplink line rate.

[0030] For example, the Optical Line Terminal (OLT) can send a control message containing the target uplink rate to the Network Unit (ONU) to instruct the ONU to switch the uplink rate to the target uplink rate, thereby achieving flexible switching of the uplink rate.

[0031] In one exemplary embodiment, step S102 includes:

[0032] A first control message is sent to the ONU in the fifth operating state, instructing the ONU to switch the uplink line rate to the first target uplink line rate, wherein the first control message includes the first target uplink line rate.

[0033] For example, the first target uplink rate may include all rates supported by the ONU.

[0034] For example, the ONU successfully enters the O5 stage for normal operation after passing through stages O1-O4. The OLT has already obtained the uplink rates supported by the ONU and configured the uplink rate currently executed by the ONU in stage O5. The OLT monitors the uplink traffic changes of the ONU in the fifth operating state. If the ONU supports multiple uplink rates, it can send a first control message including the first target uplink rate to the ONU in the fifth operating state, instructing the ONU to switch the uplink rate to the first target uplink rate to reduce the ONU's uplink rate and thus reduce ONU power consumption. Alternatively, it can increase the ONU's uplink rate to end the power-saving behavior.

[0035] In one exemplary embodiment, the method further includes:

[0036] Verify whether the ONU has switched the uplink speed to the first target uplink speed.

[0037] For example, the OLT can verify whether the ONU has switched the uplink rate to the first target uplink rate to ensure the accuracy of the uplink rate switching. This process is a key step in ensuring network performance, resource optimization, quality of service, and energy-saving strategy execution in a 50G PON system. It not only ensures the effectiveness of command execution but also avoids potential network failures and improves the overall robustness of the system.

[0038] In one exemplary embodiment, the method further includes:

[0039] In response to the failure of the ONU to switch uplink line rate, a second control message is sent to the ONU that has re-entered the third operating state, instructing the ONU to switch the uplink line rate to the first target uplink line rate, wherein the second control message includes the first target uplink line rate.

[0040] For example, in the event of an ONU failing to switch uplink speed, the OLT can send a second control message, including the first target uplink speed, to the ONU that has re-entered the third operating state, instructing the ONU to switch its uplink speed to the first target uplink speed. By providing a recovery strategy for ONU speed switching failures at the OLT level, high network availability and quality of service are ensured. Especially in multi-rate ONU environments, the speed switching process can be effectively managed and controlled, preventing potential service interruptions. Simultaneously, it guides the ONU to re-establish communication at the correct speed, guaranteeing network continuity and data transmission accuracy.

[0041] In one exemplary embodiment, the first control message includes at least one of the following fields:

[0042] A field used to indicate the first predetermined handover time, which is represented by the superframe number of the downlink frame;

[0043] A field used to indicate the uplink rate of the first target.

[0044] For example, the first control message can be a Get_Set_Capabilities PLOAM message actively sent by the OLT, which instructs the ONU to switch the uplink rate to the first target uplink rate.

[0045] For example, the Get_Set_Capabilities PLOAM message may include a field indicating the first target uplink line rate and a first predetermined handover time for handover, the first predetermined handover time being represented by the superframe number of the downlink frame. Table 1 shows the structure of this PLOAM message.

[0046] Table 1

[0047] In one exemplary embodiment, before verifying whether the ONU switches the uplink rate to the first target uplink rate, the process includes:

[0048] At the first predetermined switching time, a first rate grant message is sent to the ONU to allocate uplink bandwidth to the ONU.

[0049] For example, the first rate grant message could be a Rate Grant message.

[0050] In one exemplary embodiment, the first rate authorization message is a BWmap structure, which includes an ONU identifier field and an allocated bandwidth field.

[0051] For example, the first rate authorization message is a specific BWmap structure. Figure 2 is a schematic diagram of the BWmap structure according to an embodiment of this disclosure. As shown in Figure 2, the BWmap structure typically contains a series of allocation structures, each occupying 8 bytes, used to allocate the start time and bandwidth size of uplink transmission to a specific ONU. Its specific structure may include the following key fields:

[0052] Alloc-ID: This is a 14-bit field used to identify the ONU that will receive bandwidth allocation. Each ONU has a unique Alloc-ID, assigned by the OLT during the registration process. The Alloc-ID can be set to the ONU-ID of the ONU performing the rate switching.

[0053] Flags: This is a 2-digit field used to mark certain special attributes of the allocation structure, such as whether it contains the PLOAMu (Physical Layer Operations, Administration, and Maintenance unit) field or the DBRu (Dynamic Bandwidth Request unit) field.

[0054] StartTime: This is a 16-bit field that indicates the valid time point at which bandwidth begins in the allocation structure, typically a timestamp in microseconds.

[0055] GrantSize: This is also a 16-bit field that represents the amount of uplink bandwidth allocated to the ONU. The ONU will send data within a specified time period based on GrantSize. GrantSize can be set to 0.

[0056] Frame Watchdog Interval (FWI): This is a 1-bit field that indicates whether the allocation structure allows the ONU to send additional data within the allocated uplink cycle.

[0057] Burst Profile: This is a 2-bit field indicating the burst configuration the ONU should use when transmitting uplink data. Different uplink rates may require different Burst Profiles to ensure correct data transmission.

[0058] Heck Code (HEC): This is a 13-bit field used for parity checking or error detection to ensure the integrity and correctness of messages.

[0059] Dynamic Bandwidth Request unit (DBRu): This 1-bit field may exist if the corresponding bit in the Flags field is set, and is used by the ONU to request additional bandwidth. DBRu can be set to 0.

[0060] Physical Layer Operation and Maintenance unit (PLOAMu): This 1-bit field may exist if the corresponding bit in the Flags field is set. It is used for communication related to physical layer operation, management, and maintenance between the OLT and ONU. PLOAMu can be set to 1.

[0061] Padding: Used to fill in a message to make it reach the specified length or meet specific format requirements.

[0062] Integrity Code (MIC): The integrity code field, which typically occupies 8 bytes, is used to encrypt or verify the entire PLOAM message to ensure that the authenticity and integrity of the message are not tampered with.

[0063] In an exemplary embodiment, verifying whether the ONU switches the uplink rate to the first target uplink rate includes:

[0064] Receive the third response message sent by the ONU on the uplink bandwidth;

[0065] The third response message is analyzed based on the uplink speed of the first target.

[0066] The third response message was successfully parsed, confirming that the ONU successfully switched uplink line speed.

[0067] The failure to parse the third response message indicates a failure to determine the ONU uplink switching rate.

[0068] For example, the third response message can be an ACK PLOAM message. The OLT can parse the uplink ACK PLOAM message according to the first target uplink line rate configured for the ONU. If the OLT successfully parses the uplink PLAOM, it is considered that the ONU has completed the rate switch. If the OLT fails to parse the uplink PLAOM, it is considered that the rate switch has failed.

[0069] In one exemplary embodiment, after determining that the ONU switching uplink rate has failed, the process includes:

[0070] A reactivation message is sent to the ONU that failed to switch uplink line speed, instructing the ONU to re-enter the third working state.

[0071] For example, after determining that the ONU failed to switch uplink speed, the OLT can send a reactivation message to the ONU that failed to switch uplink speed so that the ONU can re-enter the third working state. Then, it can send a second control message to the ONU that has re-entered the third working state, instructing it to switch the uplink speed to the first target uplink speed.

[0072] In one exemplary embodiment, the second control message includes the following field: a field for indicating the ONU identifier of the first target uplink rate.

[0073] For example, if the OLT determines that the ONU rate switching has failed, it can send a reactivation message (deactiveONU-ID request PLOAM message) to instruct the ONU to go offline and come back online. In stages O2-3, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message). In stage O4, the ONU will directly enter stage O5 by sending a Ranged Time PLAOM message.

[0074] In one exemplary embodiment, the first control message includes at least one of the following fields:

[0075] A field used to indicate an uplink rate switch to occur before a first predetermined switching time, which is represented by the superframe number of the downlink frame.

[0076] A field used to indicate the uplink rate of the first target.

[0077] For example, the first control message may be an Upstream Line Rate Change PLOAM message, which is used to instruct the ONU to switch upstream line rates. It includes a field for indicating an identifier for switching upstream line rates before a first predetermined switching time and a field for a first target upstream line rate. The first predetermined switching time is represented by the superframe number of the downlink frame. Table 2 shows the structure of this PLOAM message.

[0078] Table 2

[0079] In an exemplary embodiment, verifying whether the ONU switches the uplink rate to the first target uplink rate includes:

[0080] In response to receiving uplink data sent by the ONU before the first predetermined switching time, the uplink line rate of the ONU is analyzed based on the synchronization signal information of the uplink data;

[0081] In response to the uplink rate being equal to the first target uplink rate, it is determined that the ONU has successfully switched uplink rates.

[0082] In response to the uplink rate not being equal to the first target uplink rate, it is determined that the ONU uplink rate switching failed.

[0083] In one exemplary embodiment, the synchronization signal information includes at least one of the following: a preamble and a delimiter.

[0084] For example, if the OLT receives uplink data sent by the ONU before the first predetermined switching time, it can parse the uplink line rate of the ONU based on information such as the preamble and delimiter of the uplink data. If the parsed uplink line rate is equal to the first target uplink line rate, it is determined that the ONU has successfully switched uplink line rates; if the parsed uplink line rate is not equal to the first target uplink line rate, it is determined that the ONU has failed to switch uplink line rates.

[0085] For example, after determining that the ONU failed to switch uplink speed, the OLT can send a reactivation message to the ONU that failed to switch uplink speed so that the ONU can re-enter the third working state. Then, it can send a second control message to the ONU that has re-entered the third working state, instructing it to switch the uplink speed to the first target uplink speed.

[0086] For example, if the OLT determines that the ONU rate switching has failed, it can send a reactivation message (deactiveONU-ID request PLOAM message) to instruct the ONU to go offline and come back online. In stages O2-3, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message). In stage O4, the ONU will directly enter stage O5 by sending a Ranged Time PLAOM message.

[0087] In one exemplary embodiment, the first control message includes the following fields:

[0088] A field used to indicate the uplink rate of the first target.

[0089] For example, the first control message can be an Upstream Line Rate Change PLOAM message, which is used to instruct the ONU to switch the upstream line rate. It includes a field for indicating the first target upstream line rate. Table 3 shows the structure of this PLOAM message.

[0090] Table 3

[0091] In one exemplary embodiment, before verifying whether the ONU switches the uplink rate to the first target uplink rate, the process includes:

[0092] In response to receiving the fourth response message from the ONU in the sixth operating state, a second rate grant message is sent to the ONU to allocate uplink bandwidth to the ONU.

[0093] For example, the sixth working state is a different working state from stages O1-9. For instance, the sixth working state could be the working state of stage O10.

[0094] For example, the ONU sends a fourth response message to the OLT to inform the OLT that it has entered the sixth working state. Upon receiving the fourth response message, the OLT can send a second rate grant message to the ONU to allocate uplink bandwidth to the ONU. The second rate grant message can be a Rate Grant message.

[0095] In one exemplary embodiment, the second rate authorization message is a BWmap structure, which includes an ONU identifier field and an allocated bandwidth field.

[0096] For example, the second rate authorization message is a specific BWmap structure, as shown in Figure 2. In this structure, Alloc-ID can be set to the ONU-ID of the ONU that performs the rate switching, PLOAMu can be set to 1, DBRu can be set to 0, and GrantSize can be set to 0. This embodiment will not be described in detail here.

[0097] In an exemplary embodiment, verifying whether the ONU switches the uplink rate to the first target uplink rate includes:

[0098] Upon receiving the fifth response message sent by the ONU on the uplink bandwidth, it is determined that the ONU has successfully switched the uplink line rate, and a sixth response message is sent to the ONU.

[0099] If the fifth response message sent by the ONU on the uplink bandwidth is not received, it is determined that the ONU failed to switch uplink line rates.

[0100] For example, the fifth response message can be a Rate Changed PLOAM message, and Table 4 shows the structure of this PLOAM message.

[0101] Table 4

[0102] For example, the sixth response message can be a Rate Complete PLOAM message, and Table 4 shows the structure of this PLOAM message, as shown in Table 5.

[0103] Table 5

[0104] For example, when the ONU receives the first control message (e.g., an Upstream Line Rate Change PLOAM message), it will enter the sixth working state (e.g., stage O10) and perform upstream rate switching. The ONU can configure a first predetermined switching time (e.g., initialize a timer (e.g., TO6)) to limit the time for completing the upstream rate switching. When the ONU receives the second rate grant message (e.g., a Rate Grant message), if the ONU has already adjusted to the target upstream rate, it will send a fifth response message (e.g., a Rate Changed PLOAM message). The OLT can then determine that the ONU has successfully switched upstream line rates and send a sixth response message (e.g., a Rate Complete PLOAM message) to the ONU. If the ONU has not adjusted to the target upstream rate, it ignores the second rate grant message. If the OLT does not receive the fifth response message, it can determine that the ONU's upstream line rate switching has failed. When the ONU receives the Rate Complete PLOAM message from the OLT, the ONU will return to stage O5, or when timer TO6 expires, the ONU will return to stage O1 and re-enter the network.

[0105] For example, in phases O2-3, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message), and in phase O4, it will directly send the Rangeing Time PLAOM message to make the ONU directly enter phase O5.

[0106] In one exemplary embodiment, step S102 includes:

[0107] A third control message is sent to the ONU in the third operating state, instructing the ONU to switch the uplink rate to the second target uplink rate. The third control message includes the second target uplink rate.

[0108] For example, the third control message could be an Assign ONU-ID PLAOM message, and the second target uplink rate could include all rates supported by the ONU.

[0109] For example, in phase O2-3, if the uplink rate specified in the third control message from the OLT (e.g., the Assign ONU-ID PLAOM message) is inconsistent with the uplink rate used by the ONU to send the Serial Number PLOAM message in phase O2-3, the ONU will perform a rate switch before phase O4.

[0110] In one exemplary embodiment, the method further includes:

[0111] At the second predetermined switching time, a ranging authorization message is sent to the ONU in the fourth operating state, instructing the ONU to send an eighth response message based on the ranging authorization message. The second predetermined switching time is either sent by the ONU in the third operating state via the seventh response message, or the second predetermined switching time is configured by the OLT.

[0112] For example, the seventh response message could be a Serial Number PLOAM message, and the eighth response message could be a Registration PLOAM message.

[0113] For example, the OLT sends a message at the second predetermined switching time to enable the ONU to complete the rate switch. It sends a ranging grant message (e.g., a Rangening Grant message) to the ONU in the fourth operating state, instructing the ONU to send an eighth response message based on the ranging grant message. The second predetermined switching time can be the rate switch time reported by the ONU in phase O2-3 via the Serial Number PLOAM message, or a fixed time configured by the OLT according to its specific implementation, such as 200ms. This time can be greater than the maximum time required for the ONU to perform the switch.

[0114] In one exemplary embodiment, the method further includes:

[0115] Send a ranging authorization message to the ONU in the fourth operating state, instructing the ONU to send the eighth response message based on the ranging authorization message;

[0116] In response to the failure to receive the eighth response message, the ranging authorization message is resent to the ONU at the second predetermined handover time, wherein the second predetermined handover time is configured by the OLT.

[0117] For example, the OLT can send a ranging authorization message to the ONU in the fourth operating state, instructing the ONU to send an eighth response message based on the ranging authorization message. If the eighth response message is not received, the OLT can resend the ranging authorization message to the ONU at a second predetermined switching time. The second predetermined switching time can be a fixed time configured by the OLT according to the specific implementation, such as 200ms, and this time can be greater than the maximum time required for the ONU to perform a switching.

[0118] Through the above steps, the OLT sends a control message including the target uplink rate to the network unit ONU, instructing the ONU to switch the uplink rate to the target uplink rate. This solves the problem of insufficient flexibility in uplink rate switching in time-division multiplexing passive optical networks in related technologies, thereby achieving the effects of flexible uplink rate switching, improved switching efficiency, and accuracy.

[0119] This disclosure provides an uplink rate switching method applied to an optical network unit (ONU). Figure 3 is a flowchart (II) of the uplink rate switching method according to an embodiment of this disclosure. As shown in Figure 3, the process includes the following steps:

[0120] Step S302: Receive a control message sent by the optical line terminal (OLT), and switch the uplink rate to the target uplink rate according to the control message. The control message includes the target uplink rate.

[0121] For example, the optical network unit (ONU) can receive control messages sent by the optical line terminal (OLT) and switch the uplink rate to the target uplink rate according to the control messages, which include the target uplink rate, thereby achieving flexible switching of the uplink rate.

[0122] In one exemplary embodiment, step S302 includes:

[0123] Entering the fifth working state, the uplink line rate is switched to the first target uplink line rate according to the first control message sent by the OLT. The first control message includes the first target uplink line rate.

[0124] For example, the first target uplink line rate may include all rates supported by the ONU, and the first control message may be a Get_Set_Capabilities PLOAM message actively sent by the OLT.

[0125] For example, the ONU successfully enters the O5 stage for normal operation after passing through stages O1-O4. The OLT has already obtained the uplink rates supported by the ONU and configured the uplink rate currently executed by the ONU in stage O5. The OLT monitors the uplink traffic changes of the ONU in the fifth operating state. If the ONU supports multiple uplink rates, it can send a first control message including the first target uplink rate to the ONU in the fifth operating state, instructing the ONU to switch the uplink rate to the first target uplink rate to reduce the ONU's uplink rate and thus reduce ONU power consumption. Alternatively, it can increase the ONU's uplink rate to end the power-saving behavior.

[0126] In an exemplary embodiment, the burst configuration parameters of the first target uplink line rate are obtained by the ONU through the first burst configuration message broadcast by the OLT, or

[0127] The burst configuration parameters for the first target uplink line rate are obtained by the ONU through the first burst configuration message unicast by the OLT.

[0128] For example, when the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT, or it can be obtained by the ONU through the first burst configuration message unicast by the OLT.

[0129] In an exemplary embodiment, the burst configuration parameters in response to the first target uplink line rate are obtained by the ONU through a first burst configuration message broadcast by the OLT, and include the following before entering the fifth operating state:

[0130] Entering the second working state, receiving the first burst configuration message broadcast by the OLT, obtaining the burst configuration parameters of the first target uplink line rate through the first burst configuration message, and then entering the third working state; or

[0131] Entering the third working state, receiving the first burst configuration message and the first sequence authorization message broadcast by the OLT, obtaining the burst configuration parameters of the first target uplink line rate through the first burst configuration message, and sending the first response message based on the first sequence authorization message to the OLT.

[0132] For example, the registration and activation process of the ONU can be restricted to require it to collect Bryst Profile parameter information for all supported uplink rates in a specific state. For instance, in stage O1.2: after receiving the first burst configuration message broadcast by the OLT, the ONU needs to collect the Bryst Profile parameters for all its supported uplink rates in this stage before it can enter stage O2-3; or in stage O2-3: after receiving the first burst configuration message and the first sequence grant message (SN Grant message) broadcast by the OLT, the ONU collects the Bryst Profile parameters for all its supported uplink rates and sends a first response message (which can be an SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0133] In an exemplary embodiment, the burst configuration parameters in response to the first target uplink line rate are obtained by the ONU through a burst configuration message unicast by the OLT, the method including:

[0134] In response to the fact that the ONU does not support the first target uplink line rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the reason why the ONU does not support the uplink line rate switching is the first reason.

[0135] Receive the first burst configuration message from the OLT unicast and obtain the burst configuration parameters of the first target uplink line rate through the first burst configuration message.

[0136] For example, the ONU can respond to the first control message with a second response message to indicate whether the ONU supports rate switching. If the ONU supports rate switching, it enters the sixth operating state; if the ONU does not support rate switching, the message can carry the reason for not supporting it (e.g., the reason may include not collecting the Brust Profile parameters of the first target uplink rate). When the OLT receives a message indicating that switching is not supported and the reason is that the Brust Profile of the first target uplink rate has not been collected, the OLT will send a unicast Brust Profile PLOAM message carrying the Brust Profile parameters of the first target uplink rate to the ONU.

[0137] For example, the sixth working state is a different working state from stages O1-9. For instance, the sixth working state could be the working state of stage O10.

[0138] In one exemplary embodiment, the method further includes:

[0139] In response to a failure to switch uplink speed, it re-enters the third operating state;

[0140] According to the second control message sent by the OLT, the uplink rate is switched to the first target uplink rate, wherein the second control message includes the first target uplink rate.

[0141] For example, if the ONU fails to switch uplink speed, it can re-enter the third operating state and, based on the second control message sent by the OLT, which includes the first target uplink speed, switch the uplink speed to the first target uplink speed. This improves the reliability, efficiency, and security of speed switching in 50G PON networks, providing network operators with an effective tool to address and resolve potential issues that may arise when multi-rate ONUs dynamically adjust their uplink speeds, ensuring the continuity and high quality of network services.

[0142] In an exemplary embodiment, switching the uplink rate to a first target uplink rate according to a first control message sent by the OLT includes:

[0143] In response to the ONU supporting the first target uplink rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink rate switching;

[0144] Entering the sixth working state;

[0145] The uplink rate is switched to the first target uplink rate at the first predetermined switching time.

[0146] For example, the first control message can be a Get_Set_Capabilities PLOAM message, and the second response message can be a response to the Get_Set_Capabilities PLOAM message. If the ONU supports the first target uplink rate, the ONU sends the second response message to the OLT based on the first control message. The OLT can then parse the second response message to determine that the ONU supports uplink rate switching. The ONU enters its sixth operating state and switches the uplink rate to the first target uplink rate at a predetermined switching time.

[0147] In one exemplary embodiment, re-entering the third operating state in response to a failure to switch uplink rates includes:

[0148] In response to receiving a first rate grant message from the OLT at a first predetermined handover time, a third response message is sent to the OLT on the allocated uplink bandwidth according to the first rate grant message;

[0149] In response to the OLT's failure to parse the third response message according to the first target uplink line rate, receive the reactivation message sent by the OLT;

[0150] Re-enter the third working state based on the reactivation message.

[0151] For example, the first rate grant message can be a Rate Grant message, and the third response message can be an ACK PLOAM message.

[0152] For example, if the ONU receives a first rate grant message from the OLT at the first predetermined handover time, it can send a third response message to the OLT on the allocated uplink bandwidth according to the first rate grant message. The OLT can parse the uplink ACK PLOAM message according to the first target uplink line rate configured for the ONU. If the OLT successfully parses the uplink PLAOM, it is considered that the ONU has completed the rate handover. If the OLT fails to parse the uplink PLAOM, it is considered that the rate handover has failed.

[0153] For example, after the OLT determines that the ONU has failed to switch uplink line rate, it sends a reactivation message (deactiveONU-ID request PLOAM message) to it. The ONU goes offline, comes back online, and re-enters the third working state according to the reactivation message. In the O2-3 phase, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message). In the O4 phase, the ONU will directly enter the O5 phase by sending the Ranged Time PLAOM message.

[0154] In an exemplary embodiment, switching the uplink rate to a first target uplink rate according to a first control message sent by the OLT includes:

[0155] In response to the ONU supporting the first target uplink rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink rate switching;

[0156] Entering the sixth working state;

[0157] The uplink rate is switched to the first target uplink rate before the first predetermined switching time.

[0158] For example, the first control message can be an Upstream Line Rate Change PLOAM message, and the second response message can be a response message to the Upstream Line Rate Change PLOAM message. If the ONU supports the first target upstream line rate, the ONU sends the second response message to the OLT based on the first control message. The OLT can then parse the second response message to determine that the ONU supports upstream line rate switching. The ONU enters its sixth operating state and switches the upstream line rate to the first target upstream line rate before the first predetermined switching time.

[0159] In one exemplary embodiment, re-entering the third operating state in response to a failure to switch uplink rates includes:

[0160] Send uplink data to the OLT before the first scheduled handover time;

[0161] In response to the OLT's analysis of the uplink data synchronization signal information and its determination that the uplink line rate is not equal to the first target uplink line rate, the system receives a reactivation message sent by the OLT.

[0162] Re-enter the third working state based on the reactivation message.

[0163] In one exemplary embodiment, the synchronization signal information includes at least one of the following: a preamble and a delimiter.

[0164] For example, the ONU can send uplink data to the OLT before the first predetermined handover time. The OLT can parse the ONU's uplink line rate based on information such as the preamble and delimiter of the uplink data. If the parsed uplink line rate is equal to the first target uplink line rate, it is determined that the ONU's uplink line rate handover was successful; if the parsed uplink line rate is not equal to the first target uplink line rate, it is determined that the ONU's uplink line rate handover failed.

[0165] For example, after the OLT determines that the ONU has failed to switch uplink line rate, it sends a reactivation message (deactiveONU-ID request PLOAM message) to it. The ONU goes offline, comes back online, and re-enters the third working state according to the reactivation message. In the O2-3 phase, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message). In the O4 phase, the ONU will directly enter the O5 phase by sending the Ranged Time PLAOM message.

[0166] In an exemplary embodiment, switching the uplink rate to a first target uplink rate according to a first control message sent by the OLT includes:

[0167] In response to the ONU supporting the first target uplink rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink rate switching;

[0168] Entering the sixth working state;

[0169] Configure the first scheduled handover time and send the fourth response message to the OLT;

[0170] The uplink rate is switched to the first target uplink rate before the first predetermined switching time.

[0171] For example, the first control message can be an Upstream Line Rate Change PLOAM message, and the second response message can be a response message to the Upstream Line Rate Change PLOAM message. If the ONU supports the first target upstream line rate, the ONU sends a second response message to the OLT based on the first control message. The OLT can parse the second response message to determine that the ONU supports upstream line rate switching. The ONU enters the sixth operating state. The ONU can configure a first predetermined switching time (e.g., initialize a timer (e.g., TO6)) to limit the time required to complete the upstream rate switching, and send a fourth response message to the OLT to inform it that it has entered the sixth operating state and will switch the upstream line rate to the first target upstream line rate before the first predetermined switching time.

[0172] In one exemplary embodiment, re-entering the third operating state in response to a failure to switch uplink rates includes:

[0173] Receive the second rate authorization message sent by the OLT based on the fourth response message;

[0174] If the uplink rate is not switched to the first target uplink rate before the first predetermined handover time, the second rate grant message is ignored.

[0175] It will re-enter the third working state at the first scheduled switching time.

[0176] For example, when the ONU receives a second rate grant message (e.g., a Rate Grant message), if the ONU has already adjusted to the target uplink rate, it will send a fifth response message (e.g., a Rate Changed PLOAM message). The OLT can then determine that the ONU successfully switched uplink rates and send a sixth response message to the ONU. If the ONU has not adjusted to the target uplink rate, it ignores the second rate grant message. If the OLT does not receive the fifth response message, it can determine that the ONU's uplink rate switching failed. When the ONU receives a Rate Complete PLOAM message from the OLT, the ONU will return to stage O5, or when timer TO6 expires, the ONU will return to stage O1 and re-enter the network.

[0177] For example, in phases O2-3, the OLT will specify the first target uplink line rate to the ONU through the second control message (Assign ONU-ID PLOAM message), and in phase O4, it will directly send the Rangeing Time PLAOM message to make the ONU directly enter phase O5.

[0178] In one exemplary embodiment, the method includes:

[0179] Entering the third working state;

[0180] The uplink rate is switched to the second target uplink rate according to the third control message sent by the OLT, wherein the third control message includes the second target uplink rate.

[0181] For example, the third control message could be an Assign ONU-ID PLAOM message, and the second target uplink rate could include all rates supported by the ONU.

[0182] For example, in phase O2-3, if the uplink rate specified in the third control message from the OLT (e.g., the Assign ONU-ID PLAOM message) is inconsistent with the uplink rate used by the ONU to send the Serial Number PLOAM message in phase O2-3, the ONU will perform a rate switch before phase O4.

[0183] In one exemplary embodiment, the burst configuration parameters of the second target uplink line rate are obtained by the ONU through a second burst configuration message broadcast by the OLT.

[0184] For example, when the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT.

[0185] In one exemplary embodiment, entering the third working state includes:

[0186] Entering the second working state, receiving the second burst configuration message broadcast by the OLT, obtaining the burst configuration parameters of the second target uplink line rate through the second burst configuration message, and then entering the third working state; or

[0187] In the third working state, the system receives the second burst configuration message and the second sequence grant message broadcast by the OLT, obtains the burst configuration parameters of the second target uplink line rate through the second burst configuration message, and sends a seventh response message based on the second sequence grant message to the OLT.

[0188] For example, the registration and activation process of the ONU can be restricted to require it to collect Bryst Profile parameter information for all supported uplink rates in a specific state. For example, in stage O1.2: the ONU needs to collect Bryst Profile parameter information for all its supported uplink rates in this stage before it can enter stage O2-3; or in stage O2-3: after the ONU collects the Bryst Profile for all its supported uplink rates, it sends a first response message (which can be SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0189] In one exemplary embodiment, the method further includes:

[0190] Entering the fourth working state;

[0191] Receive the ranging authorization message sent by the OLT at the second predetermined switching time;

[0192] In response to switching the uplink rate to the second target uplink rate, an eighth response message is sent to the OLT based on the ranging authorization message, wherein the second predetermined switching time is sent by the ONU in the third operating state via the seventh response message, or the second predetermined switching time is configured by the OLT.

[0193] For example, the seventh response message could be a Serial Number PLOAM message, and the eighth response message could be a Registration PLOAM message.

[0194] For example, the ONU enters the fourth operating state and receives a ranging authorization message sent by the OLT at a second predetermined switching time. The OLT sends this message at the second predetermined switching time to allow the ONU to complete the rate switch. This second predetermined switching time can be the rate switch time reported by the ONU during phase O2-3 via the Serial Number PLOAM message, or a fixed time configured by the OLT according to its specific implementation, such as 200ms. This time can be greater than the maximum time required for the ONU to perform the switch. When the ONU switches its uplink rate to the second target uplink rate, the ONU sends an eighth response message to the OLT.

[0195] In one exemplary embodiment, the method further includes:

[0196] Entering the fourth working state;

[0197] Receive the ranging authorization message sent by the OLT;

[0198] In response to failure to switch the uplink rate to the second target uplink rate, the ranging authorization message is ignored;

[0199] Receive the ranging authorization message resent by the OLT at the second predetermined switching time;

[0200] In response to switching the uplink rate to the second target uplink rate, an eighth response message is sent to the OLT based on the ranging grant message, wherein the second predetermined handover time is configured by the OLT.

[0201] For example, the ONU enters the fourth working state and receives the ranging authorization message sent by the OLT. If the ONU does not switch the uplink rate to the second target uplink rate, the ONU will ignore the ranging authorization message and not respond. If the OLT does not receive a response from the OLT, it will resend the ranging authorization message to the ONU at the second predetermined switching time. If the ONU switches the uplink rate to the second target uplink rate, the ONU can send an eighth response message to the OLT. The second predetermined switching time can be a fixed time configured by the OLT according to the specific implementation, such as 200ms. This time can be greater than the maximum time required for the ONU to perform the switching.

[0202] Through the above steps, the ONU receives a control message from the Optical Line Terminal (OLT) including the target uplink rate, and switches the uplink rate to the target uplink rate according to the control message. This solves the problem of insufficient flexibility in uplink rate switching in time-division multiplexing passive optical networks in related technologies, thereby achieving the effects of flexible uplink rate switching, improved switching efficiency, and accuracy.

[0203] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solutions of this disclosure, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this disclosure.

[0204] Example 1

[0205] This embodiment takes the ONU performing a fast rate switch in the O5 stage as an example, and the OLT verifying whether the ONU has switched its uplink rate to the first target uplink rate based on the first target uplink rate.

[0206] The ONU successfully enters the O5 stage after passing through stages O1-O4 for normal operation. The OLT has obtained the uplink rates supported by the ONU and configured the current uplink rate executed by the ONU in stage O5. The OLT monitors the uplink traffic changes of the ONU in the fifth operating state. If the ONU supports multiple uplink rates, it can send a first control message containing the first target uplink rate to the ONU in the fifth operating state, instructing the ONU to switch the uplink rate to the first target uplink rate to reduce the ONU's uplink rate and thus reduce power consumption. Alternatively, it can increase the ONU's uplink rate to end the power-saving behavior.

[0207] The OLT can proactively send a Get_Set_Capabilities PLOAM message (first control message) to the ONU in the fifth operating state, instructing the ONU to perform uplink rate switching. The PLOAM message includes a field for indicating a first predetermined switching time and a field for indicating a first target uplink rate.

[0208] When the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT, or it can be obtained by the ONU through the first burst configuration message unicast by the OLT.

[0209] 1. Limit the registration and activation process of ONUs, requiring them to collect Bryst Profile parameter information for all supported uplink rates in a specific state.

[0210] 1.1 In phase O1.2: After receiving the first burst configuration message broadcast by the OLT, the ONU needs to collect the Brust Profile parameters for all uplink rates it supports in this phase before it can enter phases O2-3; or,

[0211] 1.2 In the O2-3 phase: After receiving the first burst configuration message and the first sequence grant message (SN Grant message) broadcast by the OLT, the ONU collects the Brust Profile parameters of all uplink rates it supports and sends a first response message (the first response message can be SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0212] 2. The ONU can respond to the first control message with a second response message to indicate whether the ONU supports rate switching. If the ONU supports rate switching, it enters the sixth working state; if the ONU does not support rate switching, the message can carry the reason for not supporting it (e.g., the reason may include not collecting the Brust Profile parameters of the first target uplink rate). When the OLT receives a message indicating that switching is not supported and the reason is that the Brust Profile of the first target uplink rate has not been collected, the OLT will send a unicast Brust Profile PLOAM message carrying the Brust Profile parameters of the first target uplink rate to the ONU.

[0213] The OLT sends a Rate Grant message to the ONU at the first predetermined handover time to allocate uplink bandwidth to the ONU. Upon receiving this message, the ONU will send an ACK PLOAM message within the bandwidth specified in the Rate Grant message. The OLT will parse the uplink ACK PLOAM message at the first target uplink line rate. If the OLT successfully parses the uplink PLAOM, it considers the rate handover complete; if the OLT fails to parse the uplink PLAOM, it considers the rate handover to have failed and will send a deactive ONU-ID request PLOAM message to instruct the ONU to go offline and reconnect to the O1 phase.

[0214] In phases O2-3, the OLT will send an Assign ONU-ID PLOAM message (second control message) to the ONU that has re-entered the third working state, specifying the first target uplink line rate for the ONU. In phase O4, the ONU will directly enter phase O5 by sending a Rangeing Time PLAOM message.

[0215] Example 2

[0216] This embodiment takes the ONU performing a fast rate switch in the O5 stage as an example, and the OLT verifying whether the ONU has switched the uplink line rate to the first target uplink line rate based on the uplink data synchronization signal information.

[0217] The ONU successfully enters the O5 stage after passing through stages O1-O4 for normal operation. The OLT has obtained the uplink rates supported by the ONU and configured the current uplink rate executed by the ONU in stage O5. The OLT monitors the uplink traffic changes of the ONU in the fifth operating state. If the ONU supports multiple uplink rates, it can send a first control message containing the first target uplink rate to the ONU in the fifth operating state, instructing the ONU to switch the uplink rate to the first target uplink rate to reduce the ONU's uplink rate and thus reduce power consumption. Alternatively, it can increase the ONU's uplink rate to end the power-saving behavior.

[0218] The OLT can proactively send an Upstream Line Rate Change PLOAM message (first control message) to the ONU in the fifth operating state, instructing the ONU to perform an upstream line rate switch. The PLOAM message includes a field indicating an upstream line rate switch to be performed before a first predetermined switch time and a field indicating a first target upstream line rate.

[0219] When the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT, or it can be obtained by the ONU through the first burst configuration message unicast by the OLT.

[0220] 1. Limit the registration and activation process of ONUs, requiring them to collect Bryst Profile parameter information for all supported uplink rates in a specific state.

[0221] 1.1 In phase O1.2: After receiving the first burst configuration message broadcast by the OLT, the ONU needs to collect the Brust Profile parameters for all uplink rates it supports in this phase before it can enter phases O2-3; or,

[0222] 1.2 In the O2-3 phase: After receiving the first burst configuration message and the first sequence grant message (SN Grant message) broadcast by the OLT, the ONU collects the Brust Profile parameters of all uplink rates it supports and sends a first response message (the first response message can be SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0223] 2. The ONU can respond to the first control message with a second response message to indicate whether the ONU supports rate switching. If the ONU supports rate switching, it enters the sixth working state; if the ONU does not support rate switching, the message can carry the reason for not supporting it (e.g., the reason may include not collecting the Brust Profile parameters of the first target uplink rate). When the OLT receives a message indicating that switching is not supported and the reason is that the Brust Profile of the first target uplink rate has not been collected, the OLT will send a unicast Brust Profile PLOAM message carrying the Brust Profile parameters of the first target uplink rate to the ONU.

[0224] If the OLT receives uplink data from the ONU before the first predetermined switching time, it can deduce the ONU's uplink line rate based on the uplink data's synchronization signal information (preamble, delimiter, etc.). If the deduced uplink line rate is equal to the first target uplink line rate, the ONU's uplink line rate switching is considered successful. If the deduced uplink line rate is not equal to the first target uplink line rate, the ONU's uplink line rate switching is considered failed. The OLT will then send a deactive ONU-ID request PLOAM message to instruct the ONU to go offline and reconnect to the O1 phase.

[0225] In phases O2-3, the OLT will send an Assign ONU-ID PLOAM message (second control message) to the ONU that has re-entered the third working state, specifying the first target uplink line rate for the ONU. In phase O4, the ONU will directly enter phase O5 by sending a Rangeing Time PLAOM message.

[0226] Example 3

[0227] This embodiment takes the ONU performing a fast rate switch in the sixth working state as an example, and the OLT verifying whether the ONU has switched the uplink rate to the first target uplink rate based on the response message.

[0228] The ONU successfully enters the O5 stage after passing through stages O1-O4 for normal operation. The OLT has obtained the uplink rates supported by the ONU and configured the current uplink rate executed by the ONU in stage O5. The OLT monitors the uplink traffic changes of the ONU in the fifth operating state. If the ONU supports multiple uplink rates, it can send a first control message containing the first target uplink rate to the ONU in the fifth operating state, instructing the ONU to switch the uplink rate to the first target uplink rate to reduce the ONU's uplink rate and thus reduce power consumption. Alternatively, it can increase the ONU's uplink rate to end the power-saving behavior.

[0229] The OLT can proactively send an Upstream Line Rate Change PLOAM message (first control message) to instruct the ONU to perform an upstream line rate switch. This PLOAM message includes a field indicating the first target upstream line rate.

[0230] When the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT, or it can be obtained by the ONU through the first burst configuration message unicast by the OLT.

[0231] 1. Limit the registration and activation process of ONUs, requiring them to collect Bryst Profile parameter information for all supported uplink rates in a specific state.

[0232] 1.1 In phase O1.2: After receiving the first burst configuration message broadcast by the OLT, the ONU needs to collect the Brust Profile parameters for all uplink rates it supports in this phase before it can enter phases O2-3; or,

[0233] 1.2 In the O2-3 phase: After receiving the first burst configuration message and the first sequence grant message (SN Grant message) broadcast by the OLT, the ONU collects the Brust Profile parameters of all uplink rates it supports and sends a first response message (the first response message can be SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0234] 2. The ONU can respond to the first control message with a second response message to indicate whether the ONU supports rate switching. If the ONU supports rate switching, it enters the sixth working state; if the ONU does not support rate switching, the message can carry the reason for not supporting it (e.g., the reason may include not collecting the Brust Profile parameters of the first target uplink rate). When the OLT receives a message indicating that switching is not supported and the reason is that the Brust Profile of the first target uplink rate has not been collected, the OLT will send a unicast Brust Profile PLOAM message carrying the Brust Profile parameters of the first target uplink rate to the ONU.

[0235] When the ONU receives the Upstream Line Rate Change PLOAM message (first control message), it enters the sixth operating state (e.g., O10 stage) and performs an upstream rate switch. The ONU can configure a first predetermined switch time (e.g., initialize a timer (e.g., TO6)) to limit the time required to complete the upstream rate switch. Upon entering the sixth operating state, the ONU sends a fourth response message to the OLT. The OLT then sends a Rate Grant message (second rate grant message) to the ONU to allocate upstream bandwidth.

[0236] When the ONU receives a Rate Grant message, if the ONU has already adjusted to the target uplink rate, it will send a Rate Changed PLOAM message (the fifth response message). The OLT can then determine that the ONU successfully switched uplink rates and send a Rate Complete PLOAM message (the sixth response message) to the ONU. If the ONU has not adjusted to the target uplink rate, it ignores the Rate Grant message. If the OLT does not receive a Rate Changed PLOAM message, it can determine that the ONU's uplink rate switching failed. When the ONU receives a Rate Complete PLOAM message from the OLT, the ONU will return to stage O5, or when timer TO6 expires, the ONU will return to stage O1 and reconnect.

[0237] In phases O2-3, the OLT will send an Assign ONU-ID PLOAM message (second control message) to the ONU that has re-entered the third working state, specifying the first target uplink line rate for the ONU. In phase O4, the ONU will directly enter phase O5 by sending a Rangeing Time PLAOM message.

[0238] Example 4

[0239] This embodiment takes the ONU performing rate switching before the O4 stage as an example.

[0240] During phase O2-3, if the uplink rate specified in the Assign ONU-ID PLAOM message (third control message) from the OLT is inconsistent with the uplink rate used by the ONU to send the Serial Number PLOAM message in phase O2-3, the ONU will perform a rate switch before phase O4.

[0241] When the ONU performs a rate switch, the ONU needs to have already collected the Brust Profile parameter information corresponding to the first target uplink rate. This parameter information can be obtained by the ONU through the first burst configuration message broadcast by the OLT.

[0242] 1. Limit the registration and activation process of ONUs, requiring them to collect Bryst Profile parameter information for all supported uplink rates in a specific state.

[0243] 1.1 In phase O1.2: After receiving the first burst configuration message broadcast by the OLT, the ONU needs to collect the Brust Profile parameters for all uplink rates it supports in this phase before it can enter phases O2-3; or,

[0244] 1.2 In the O2-3 phase: After receiving the first burst configuration message and the first sequence grant message (SN Grant message) broadcast by the OLT, the ONU collects the Brust Profile parameters of all uplink rates it supports and sends a first response message (the first response message can be SN PLOAM) to the OLT in response to the SN Grant message sent by the OLT.

[0245] In phase O4, the ONU needs to receive a unicast Ranging Grant message from the OLT and respond with a Registration PLOAM message (eighth response message) using the second target uplink line rate. To allow the ONU to complete the rate handover, the OLT can send a Ranging Grant message to the ONU in the fourth operating state at a second predetermined handover time. This second predetermined handover time can be the rate handover time reported by the ONU via the Serial Number PLOAM message in phases O2-3, or a fixed time configured by the OLT according to its specific implementation, such as 200ms, which can be greater than the maximum time required for the ONU to perform the handover. Alternatively, the OLT can send a Ranging Grant message to the ONU in the fourth operating state. If it does not receive the eighth response message, it can resend the Ranging Grant message to the ONU at the second predetermined handover time. This second predetermined handover time can also be a fixed time configured by the OLT according to its specific implementation, such as 200ms, which can be greater than the maximum time required for the ONU to perform the handover.

[0246] Embodiments of this disclosure also provide a computer-readable storage medium storing a computer program configured to perform the steps in any of the above method embodiments when executed.

[0247] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0248] Embodiments of this disclosure also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0249] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0250] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0251] It is obvious to those skilled in the art that the modules or steps of this disclosure described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this disclosure is not limited to any particular combination of hardware and software.

[0252] The above are merely preferred embodiments of this disclosure and are not intended to limit this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for switching uplink rates, applied to an optical line terminal (OLT), comprising: A control message is sent to the network unit (ONU) to instruct the ONU to switch the uplink line rate to the target uplink line rate, wherein the control message includes the target uplink line rate.

2. The method according to claim 1, wherein, The method includes: A first control message is sent to the ONU in the fifth operating state, instructing the ONU to switch the uplink line rate to a first target uplink line rate, wherein the first control message includes the first target uplink line rate.

3. The method according to claim 2, wherein, The method further includes: Verify whether the ONU switches the uplink rate to the first target uplink rate.

4. The method according to claim 3, wherein, The method further includes: In response to the failure of the ONU to switch uplink line rate, a second control message is sent to the ONU that has re-entered the third operating state, instructing the ONU to switch the uplink line rate to the first target uplink line rate, wherein the second control message includes the first target uplink line rate.

5. The method according to claim 2, wherein, The first control message includes at least one of the following fields: A field used to indicate a first predetermined handover time, which is represented by the superframe number of the downlink frame; A field used to indicate the uplink rate of the first target.

6. The method according to claim 2, wherein, The first control message includes at least one of the following fields: A field used to indicate an uplink rate switch to occur before a first predetermined switching time, the first predetermined switching time being represented by the superframe number of the downlink frame; A field used to indicate the uplink rate of the first target.

7. The method according to claim 2, wherein, The first control message includes the following fields: A field used to indicate the uplink rate of the first target.

8. The method according to claim 3, wherein, Before verifying whether the ONU switches the uplink rate to the first target uplink rate, the process includes: At the first predetermined switching time, a first rate grant message is sent to the ONU to allocate uplink bandwidth to the ONU.

9. The method according to claim 8, wherein, Verifying whether the ONU switches the uplink rate to the first target uplink rate includes: Receive the third response message sent by the ONU on the uplink bandwidth; The third response message is parsed based on the uplink speed of the first target; Upon successful parsing of the third response message, it is determined that the ONU successfully switched uplink line speed. In response to the failure to parse the third response message, it is determined that the ONU failed to switch uplink line rate.

10. The method according to claim 3, wherein, Before verifying whether the ONU switches the uplink rate to the first target uplink rate, the process includes: In response to receiving the fourth response message from the ONU in the sixth operating state, a second rate grant message is sent to the ONU to allocate uplink bandwidth to the ONU.

11. The method according to claim 10, wherein, Verifying whether the ONU switches the uplink rate to the first target uplink rate includes: Upon receiving the fifth response message sent by the ONU on the uplink bandwidth, it is determined that the ONU has successfully switched the uplink line rate, and a sixth response message is sent to the ONU. In response to the failure to receive a fifth response message from the ONU on the uplink bandwidth, it is determined that the ONU failed to switch uplink line rates.

12. The method according to claim 3, wherein, Verifying whether the ONU switches the uplink rate to the first target uplink rate includes: In response to receiving uplink data sent by the ONU before the first predetermined switching time, the uplink line rate of the ONU is analyzed based on the synchronization signal information of the uplink data; In response to the uplink rate being equal to the first target uplink rate, it is determined that the ONU has successfully switched uplink rates. In response to the fact that the uplink rate is not equal to the first target uplink rate, it is determined that the ONU has failed to switch uplink rates.

13. The method according to claim 9 or 12, wherein, After determining that the ONU failed to switch uplink line rate, the following steps are included: A reactivation message is sent to the ONU that failed to switch uplink line speed, instructing the ONU to re-enter the third working state.

14. The method according to claim 4, wherein, The second control message includes the following fields: A field used to indicate the ONU identifier of the first target uplink line rate.

15. The method according to claim 8, wherein, The first rate authorization message is a BWmap structure, which includes an ONU identifier field and an allocated bandwidth field.

16. The method of claim 10, wherein, The second rate authorization message is a BWmap structure, which includes an ONU identifier field and an allocated bandwidth field.

17. The method according to claim 12, wherein, The synchronization signal information includes at least one of the following: preamble, delimiter.

18. The method according to claim 1, wherein, The method includes: A third control message is sent to the ONU in the third operating state, instructing the ONU to switch the uplink line rate to the second target uplink line rate, wherein the third control message includes the second target uplink line rate.

19. The method according to claim 18, wherein, The method further includes: At the second predetermined switching time, a ranging authorization message is sent to the ONU in the fourth operating state, instructing the ONU to send an eighth response message based on the ranging authorization message. The second predetermined switching time is either sent by the ONU in the third operating state via a seventh response message, or the second predetermined switching time is configured by the OLT.

20. The method according to claim 18, wherein, The method further includes: Send a ranging authorization message to the ONU in the fourth working state, instructing the ONU to send an eighth response message based on the ranging authorization message; In response to the failure to receive the eighth response message, the ranging authorization message is resent to the ONU at a second predetermined switching time, wherein the second predetermined switching time is configured by the OLT.

21. A method for switching uplink rates, applied to an optical network unit (ONU), comprising: The system receives a control message sent by an optical line terminal (OLT) and switches the uplink rate to a target uplink rate based on the control message, wherein the control message includes the target uplink rate.

22. The method according to claim 21, wherein, The method includes: Entering the fifth working state, the uplink line rate is switched to the first target uplink line rate according to the first control message sent by the OLT, wherein the first control message includes the first target uplink line rate.

23. The method according to claim 22, wherein, The burst configuration parameters for the first target uplink line rate are obtained by the ONU through the first burst configuration message broadcast by the OLT, or The burst configuration parameters of the first target uplink line rate are obtained by the ONU through the first burst configuration message unicast by the OLT.

24. The method according to claim 23, wherein, The burst configuration parameters in response to the first target uplink line rate are obtained by the ONU through the first burst configuration message broadcast by the OLT, and include the following before entering the fifth working state: Entering the second working state, receiving the first burst configuration message broadcast by the OLT, obtaining the burst configuration parameters of the first target uplink line rate through the first burst configuration message, and then entering the third working state; or Entering the third working state, receiving the first burst configuration message and the first sequence authorization message broadcast by the OLT, obtaining the burst configuration parameters of the first target uplink line rate through the first burst configuration message, and sending a first response message based on the first sequence authorization message to the OLT.

25. The method according to claim 23, wherein, The burst configuration parameters in response to the first target uplink line rate are obtained by the ONU through the burst configuration message unicast by the OLT, and the method includes: In response to the fact that the ONU does not support the first target uplink line rate, a second response message based on the first control message is sent to the OLT, so that the OLT can parse the second response message to know that the reason why the ONU does not support the uplink line rate switching is the first reason; Receive the first burst configuration message unicast by the OLT, and obtain the burst configuration parameters of the first target uplink line rate through the first burst configuration message.

26. The method according to claim 22, wherein, The method further includes: In response to a failure to switch uplink speed, it re-enters the third operating state; According to the second control message sent by the OLT, the uplink line rate is switched to the first target uplink line rate, wherein the second control message includes the first target uplink line rate.

27. The method according to claim 22, wherein, Switching the uplink rate to the first target uplink rate according to the first control message sent by the OLT includes: In response to the ONU supporting the first target uplink line rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink line rate switching; Entering the sixth working state; The uplink rate is switched to the first target uplink rate at a first predetermined switching time.

28. The method according to claim 22, wherein, Switching the uplink rate to the first target uplink rate according to the first control message sent by the OLT includes: In response to the ONU supporting the first target uplink line rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink line rate switching; Entering the sixth working state; The uplink rate is switched to the first target uplink rate before the first predetermined switching time.

29. The method according to claim 22, wherein, Switching the uplink rate to the first target uplink rate according to the first control message sent by the OLT includes: In response to the ONU supporting the first target uplink line rate, a second response message based on the first control message is sent to the OLT so that the OLT can parse the second response message to know that the ONU supports uplink line rate switching; Entering the sixth working state; Configure a first predetermined switching time and send a fourth response message to the OLT; The uplink rate is switched to the first target uplink rate before the first predetermined switching time.

30. The method of claim 26, wherein, In response to a failure to switch uplink rates, re-entering the third operating state includes: In response to receiving a first rate grant message from the OLT at a first predetermined handover time, a third response message is sent to the OLT on the allocated uplink bandwidth according to the first rate grant message; In response to the failure of the OLT to parse the third response message according to the first target uplink line rate, the system receives a reactivation message sent by the OLT. The system re-enters the third working state based on the reactivation message.

31. The method according to claim 26, wherein, In response to a failure to switch uplink rates, re-entering the third operating state includes: Uplink data is sent to the OLT before the first predetermined switching time; In response to the OLT resolving from the uplink data synchronization signal information that the uplink line rate is not equal to the first target uplink line rate, the system receives a reactivation message sent by the OLT. The system re-enters the third working state based on the reactivation message.

32. The method according to claim 26, wherein, In response to a failure to switch uplink rates, re-entering the third operating state includes: Receive the second rate authorization message sent by the OLT based on the fourth response message; In response to the failure to switch the uplink rate to the first target uplink rate before the first predetermined handover time, the second rate grant message is ignored; It re-enters the third working state at the first predetermined switching time.

33. The method according to claim 21, wherein, The method includes: Entering the third working state; The uplink rate is switched to the second target uplink rate according to the third control message sent by the OLT, wherein the third control message includes the second target uplink rate.

34. The method according to claim 33, wherein, The burst configuration parameters of the second target uplink line rate are obtained by the ONU through the second burst configuration message broadcast by the OLT.

35. The method according to claim 34, wherein, Entering the third working state includes: Entering the second working state, receiving the second burst configuration message broadcast by the OLT, obtaining the burst configuration parameters of the second target uplink line rate through the second burst configuration message, and then entering the third working state; or In the third operating state, the system receives the second burst configuration message and the second sequence grant message broadcast by the OLT, obtains the burst configuration parameters of the second target uplink line rate through the second burst configuration message, and sends a seventh response message based on the second sequence grant message to the OLT.

36. The method according to claim 33, wherein, The method further includes: Entering the fourth working state; Receive the ranging authorization message sent by the OLT at the second predetermined switching time; In response to switching the uplink rate to the second target uplink rate, an eighth response message is sent to the OLT based on the ranging authorization message, wherein the second predetermined switching time is sent by the ONU in the third operating state via the seventh response message, or the second predetermined switching time is configured by the OLT.

37. The method according to claim 33, wherein, The method further includes: Entering the fourth working state; Receive the ranging authorization message sent by the OLT; In response to failure to switch the uplink rate to the second target uplink rate, the ranging authorization message is ignored; Receive the ranging authorization message resent by the OLT at the second predetermined switching time; In response to switching the uplink rate to the second target uplink rate, an eighth response message is sent to the OLT based on the ranging authorization message, wherein the second predetermined switching time is configured by the OLT.

38. A computer-readable storage medium storing a computer program, wherein, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 20, or the steps of the method described in any one of claims 21 to 37.

39. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 20, or implements the steps of the method according to any one of claims 21 to 37.

40. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 20, or implements the steps of the method according to any one of claims 21 to 37.