WO2023201912A1 - Device registration method and apparatus - Google Patents

Device registration method and apparatus Download PDF

Info

Publication number
WO2023201912A1
WO2023201912A1 PCT/CN2022/106027 CN2022106027W WO2023201912A1 WO 2023201912 A1 WO2023201912 A1 WO 2023201912A1 CN 2022106027 W CN2022106027 W CN 2022106027W WO 2023201912 A1 WO2023201912 A1 WO 2023201912A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical
rate
optical network
line terminal
message
Prior art date
Application number
PCT/CN2022/106027
Other languages
French (fr)
Chinese (zh)
Inventor
李博睿
李红波
刘思迪
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023201912A1 publication Critical patent/WO2023201912A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Definitions

  • the present application relates to the field of equipment management technology, and in particular to a device registration method and device.
  • Passive optical network includes optical line termination (OLT), optical distribution network (ODN) and optical network termination (ONT).
  • OLT optical line termination
  • ODN optical distribution network
  • ONT optical network termination
  • the OLT is configured with an optical module, and the OLT needs to use the optical module to send and receive messages.
  • PON relies on a point-to-multipoint architecture to realize the connection between network nodes and end users.
  • PON can use low-cost optical devices.
  • Low-cost optical devices are mainly low-bandwidth devices.
  • High-speed messages received by low-bandwidth devices will have inter-symbol interference (ISI).
  • ISI inter-symbol interference
  • digital signal processing technology can be used in optical modules and the equalization function of the digital signal processor (DSP) can be used to eliminate ISI.
  • DSP digital signal processor
  • the DSP can determine the packet processing parameters based on the received packets, and eliminate the ISI of the packets based on the packet processing parameters.
  • the process of determining the packet processing parameters is the process of changing the packet processing parameters from the initial state to convergence, and this process takes a certain amount of time.
  • the ONT can send a training sequence with a longer length to the OLT, so that the DSP can converge the packet processing parameters within the duration of the training sequence.
  • This application provides a device registration method and device. This application can effectively ensure the registration efficiency of optical network terminals.
  • the technical solutions provided by this application are as follows:
  • this application provides a device registration method.
  • This method is applied to passive optical networks.
  • Passive optical networks include: optical network terminals and optical line terminals.
  • the method includes: the optical network terminal sends a discovery response message to the optical line terminal, the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message; the optical line terminal responds based on the discovery response
  • the message obtains the device information of the optical network terminal; the optical network terminal sends an authorization response message to the optical line terminal at the service rate, and the authorization response message includes at least one of a test message and a service message.
  • the discovery response message carries equipment information (such as serial number) of the optical network terminal.
  • the optical line terminal obtains the equipment information of the optical network terminal in order to perform terminal discovery on the optical network terminal, and after completing the terminal discovery on the optical network terminal, the optical line terminal can assign the optical network terminal identifier and the optical network terminal identifier to the optical network terminal. Only when the bandwidth is authorized can the optical network terminal be able to send other messages (such as authorization response messages) in addition to the discovery response message to the optical line terminal. Therefore, the optical network terminal that sends the authorization response message to the optical line terminal here is actually the optical network terminal that has obtained the device information. Moreover, in this article, the operations performed after the optical network terminal obtains the device information are actually operations performed by the optical network terminal whose device information is obtained.
  • the optical line terminal Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • packet collision means that in the point-to-multipoint passive optical network architecture, when the optical line terminal allows multiple unregistered optical network terminals to register within a specified time, the optical line terminal receives a When the discovery response message of the optical network terminal is received, the discovery response message of other optical network terminals will also be received.
  • the discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal.
  • the discovery response message carries device information such as the serial number of the optical network terminal. Then the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the optical line terminal extracts the serial number of the optical network terminal from the discovery response message.
  • the method also includes: the optical line terminal allocates an optical network terminal identifier to the optical network terminal, and sends the optical network terminal identifier to the optical network terminal.
  • the optical network terminal can interact with the optical line terminal using the optical network terminal identification. For example, the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: the optical network terminal sends an authorization response message carrying the optical network terminal identifier to the optical line terminal at the service rate.
  • the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal.
  • the difference between the two rates can be expressed by the following content:
  • the optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate.
  • the optical line terminal extracting the message means that the optical line terminal correctly extracts the message.
  • the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal reports The packets are equalized.
  • the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message is implemented in different ways.
  • the following two implementation methods are used as examples to illustrate them:
  • the authorization response message includes a test message.
  • the method further includes: the optical network terminal sends a ranging message to the optical line terminal.
  • the rate at which the optical network terminal sends the ranging response message is less than the service rate; the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message.
  • the ranging response messages Since the rate of sending ranging response messages is lower than the service rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further improving the optical network terminal.
  • the efficiency of network terminal ranging shortens the time it takes for optical network terminals to complete registration.
  • the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate.
  • the optical line The terminal performs equalization processing on the packets.
  • the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
  • the optical line terminal since the authorization response message includes a test message, and the sending rate of the authorization response message is the service rate, the optical line terminal performs equalization processing on the message. Therefore, the method also includes: the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
  • the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages.
  • the method before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate.
  • the range response message includes a test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
  • the optical line terminal includes an optical module.
  • adjust the packet processing parameters of the optical line terminal including adjusting the packet processing parameters of the optical module.
  • the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
  • the method further includes: the optical module receives the discovery response message; the optical module The discovery response message is forwarded to the access controller at the service rate; the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the optical network terminal based on the discovery response message sent at the service rate. Device information of the network terminal.
  • the discovery response is forwarded to the access controller through the optical module at the service rate. message, it can ensure that the access controller receives discovery response messages that comply with the configuration message instructions, and prevent the access controller from generating alarms due to receiving messages with an incorrect rate.
  • the method also includes: the optical module receives the ranging response message. text; the optical module forwards the ranging response message to the access controller at the service rate; the optical line terminal allocates balanced delay to the optical network terminal based on the ranging response message, including: the access controller sends the ranging response message at the service rate The ranging response message is allocated to the optical network terminal with balanced delay.
  • the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the type indication can be implemented through a flag bit.
  • the flag bit When the flag bit carries a first parameter value, it indicates that the optical network terminal needs to perform rate switching. When the flag bit carries a second parameter value, it indicates that the optical network terminal needs to perform rate switching. No rate switching is required.
  • the type indication can indicate whether the optical network terminal needs to perform rate switching by instructing the optical network terminal at a rate at which the discovery response message is sent. For example, when the type indication indicates that the rate at which the optical network terminal sends discovery response messages is less than the service rate, the access controller may determine that the optical network terminal needs to perform rate switching based on the indication.
  • the optical module may carry the type indication in the check bit of the discovery response message sent to the access controller.
  • the optical network terminal can communicate with the optical line terminal at the service rate. For example, the optical network terminal sends test packets and service packets to the optical line terminal at the service rate. Therefore, in one implementation, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method further includes: the optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical line terminal to The network terminal sends messages to the optical line terminal at the service rate.
  • rate switching instructions may be sent according to the type indication. For example, if the access controller receives a type indication, and the type indication is used to indicate that the optical network terminal needs to perform rate switching, the access controller can send a rate switching instruction to the optical network terminal through the optical module. Moreover, when sending a rate switching instruction to the optical network terminal, multiple rate switching instructions can be sent continuously to the optical network terminal to ensure that the optical network terminal can receive the rate switching instruction.
  • the optical module may not send a type indication to the access controller.
  • the access controller may not make a decision to send a rate switching instruction to the optical network terminal based on the type indication.
  • the access controller may not make a decision to send a rate switching instruction to the optical network terminal based on the type indication.
  • the access controller After the access controller completes the allocation equalization delay to the optical network terminal, if it determines that the packets sent by the optical network terminal at the service rate will not affect the normal functions of the optical line terminal, it can pass The optical module sends rate switching instructions to the optical network terminal.
  • the access controller makes a After the optical network terminal sends the decision of the rate switching instruction, the alarm function of the access controller can be turned off.
  • the optical module After the optical module completes the adjustment of the packet processing parameters, the optical module can send a completion command to the access controller to indicate that the optical module has completed the adjustment of the packet processing parameters, so that the access controller can execute normally according to the completion command. Subsequent operations.
  • the method further includes: the access controller turns on the alarm function based on the completion instruction.
  • this application provides a device registration method.
  • This method is applied to optical network terminals.
  • the method includes: the optical network terminal sends a discovery response message to the optical line terminal; the rate at which the optical network terminal sends the discovery response message is less than the service rate; the service rate is the rate at which the optical network terminal sends the service message; the optical network terminal sends the discovery response message at the service rate; , sending an authorization response message to the optical line terminal, where the authorization response message includes at least one of a test message and a service message.
  • the method further includes: the optical network terminal receives the optical network terminal identification assigned by the optical line terminal to the optical network terminal. After the optical network terminal receives the optical network terminal identifier, it can interact with the optical line terminal using the optical network terminal identifier. For example, the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: the optical network terminal sends an authorization response message carrying the optical network terminal identifier to the optical line terminal at the service rate. Among them, the optical network terminal identifier is assigned to the optical network terminal after the optical line terminal obtains the device information of the optical network terminal based on the discovery response message. The discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal. In an implementation manner, the discovery response message carries the serial number of the optical network terminal.
  • the optical line terminal when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate.
  • the time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
  • the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal reports The packets are equalized.
  • the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message includes a test message.
  • the method further includes: the optical network terminal sends a ranging response message to the optical line terminal. , the rate at which the optical network terminal sends ranging response messages is less than the service rate.
  • the rate at which the optical network terminal sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages.
  • the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate, and the ranging response message includes a test sequence.
  • the method further includes: the optical network terminal receives a rate switching instruction sent by the optical line terminal, and the rate switching instruction instructs the optical network terminal to transmit the authorization response message at the service rate. Send packets to the optical line terminal at the rate.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: after receiving the rate switching instruction, the optical network terminal sends an authorization response message to the optical line terminal at the service rate.
  • this application provides a device registration method.
  • This method is applied to optical line terminals.
  • the method includes: the optical line terminal receives the discovery response message sent by the optical network terminal, the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message; the optical line terminal is based on discovery
  • the response message obtains the device information of the optical network terminal; the optical line terminal receives an authorization response message sent by the optical network terminal at a service rate, and the authorization response message includes at least one of a test message and a service message.
  • the discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal.
  • the discovery response message carries the serial number of the optical network terminal.
  • the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the optical line terminal extracts the serial number of the optical network terminal from the discovery response message.
  • the method also includes: the optical line terminal allocates an optical network terminal identifier to the optical network terminal, and sends the optical network terminal identifier to the optical network terminal.
  • the optical network terminal can interact with the optical line terminal using the optical network terminal identifier.
  • the optical line terminal receiving an authorization response message sent by the optical network terminal at the service rate includes: the optical line terminal receiving the authorization response message sent by the optical network terminal at the service rate, and the authorization response message carries the optical network terminal identifier.
  • the authorization response message includes a test message.
  • the method further includes: the optical line terminal receives the ranging response message sent by the optical network terminal.
  • the rate at which the optical network terminal sends ranging response messages is lower than the service rate; the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response messages.
  • the method also includes: the optical line terminal adjusts message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process messages received by the optical line terminal.
  • the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages.
  • the method also includes: the optical line terminal receives the ranging response message sent by the optical network terminal at the service rate, and the ranging response message includes the test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • the message processing parameters include: clock phase deviation and/or equalization coefficient.
  • the optical line terminal includes an optical module.
  • adjust the packet processing parameters of the optical line terminal including adjusting the packet processing parameters of the optical module.
  • the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
  • the method further includes: the optical module receives the discovery response message; the optical module The discovery response message is forwarded to the access controller at the service rate; the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the optical network terminal based on the discovery response message sent at the service rate. Device information of the network terminal.
  • the method further includes: the optical module receives the ranging response message. text; the optical module forwards the ranging response message to the access controller at the service rate; the optical line terminal allocates balanced delay to the optical network terminal based on the ranging response message, including: the access controller sends the ranging response message at the service rate The ranging response message is allocated to the optical network terminal with balanced delay.
  • the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the method before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate, the method also includes: the optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to transmit at the service rate. Send messages to optical line terminals.
  • the optical line terminal further includes an access controller.
  • the access controller turns off the alarm function.
  • the optical line terminal includes an optical module and an access controller, and when the optical line terminal is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
  • the method also includes: the optical module sends a completion instruction to the access controller, and the completion instruction is used to indicate that the optical module has completed the adjustment of the message processing parameters.
  • the method further includes: the access controller turns on the alarm function based on the completion instruction.
  • this application provides a passive optical network.
  • Passive optical networks include: optical network terminals and optical line terminals.
  • the optical network terminal is used to perform the method provided in the second aspect of the application and any possible implementation manner thereof; the optical line terminal is used to perform the method provided in the third aspect of the application and any possible implementation manner thereof.
  • the optical network terminal is used to send discovery response messages to the optical line terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages;
  • the optical line terminal is used to send discovery response messages based on The discovery response message obtains the device information of the optical network terminal;
  • the optical network terminal is used to send an authorization response message to the optical line terminal at a service rate, and the authorization response message includes at least one of a test message and a service message.
  • the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the cost of the same message sent at a rate less than the service rate The time is less than the time it takes to extract the same message sent at the service rate.
  • the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal reports The packets are equalized.
  • the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message includes a test message
  • the optical network terminal is also used to send a ranging response message to the optical line terminal.
  • the rate at which the optical network terminal sends the ranging response message is less than the service rate; the optical line terminal The terminal is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
  • the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate.
  • the optical line The terminal performs equalization processing on the packets.
  • the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
  • the optical line terminal is also used to adjust the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
  • the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages.
  • the method before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate.
  • the range response message includes a test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
  • the optical line terminal includes an optical module.
  • the optical module is specifically used to adjust the packet processing parameters of the optical module.
  • the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters based on the test message.
  • the optical module is also used to receive the discovery response message; the optical module is also used to forward the discovery response message to the access controller at the service rate; the access controller The controller is used to obtain the device information of the optical network terminal based on the discovery response message sent at the service rate.
  • the optical module is also used to receive the ranging response message; the optical module is also used to forward the ranging response message to the access controller at the service rate;
  • the access controller is specifically used to allocate balanced delays to optical network terminals based on ranging response messages sent at the service rate.
  • the optical module is also used to send a type indication to the access controller.
  • the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the optical line terminal is also used to send a rate switching instruction to the optical network terminal before the optical network terminal sends a test message to the optical line terminal at the service rate.
  • the rate switching instruction instructs the optical network terminal to send the test message to the optical line terminal at the service rate.
  • the terminal sends the message.
  • the optical line terminal further includes an access controller, and the access controller is further configured to turn off the alarm function before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
  • the optical line terminal includes an optical module and an access controller, and when the optical module is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical module is also used to send a completion instruction to the access controller, The completion command is used to indicate that the optical module has completed the adjustment of message processing parameters.
  • the access controller is also used to enable the alarm function based on the completion instruction.
  • this application provides an optical network terminal.
  • the optical network terminal includes: a sending module, which is used to send discovery response messages to the optical line terminal.
  • the rate at which the sending module sends discovery response messages is less than the service rate, and the service rate is the rate at which the sending module sends service messages; the sending module also uses The authorization response message is sent to the optical line terminal at the service rate, and the authorization response message includes at least one of a test message and a service message.
  • the optical line terminal when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate.
  • the time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
  • the rate at which the sending module sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal responds to the message Perform equalization processing.
  • the transmission rate of packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message includes a test message
  • the sending module is also used to send a ranging response message to the optical line terminal.
  • the rate at which the sending module sends the ranging response message is less than the service rate.
  • the rate at which the sending module sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal reports The packets are equalized.
  • the optical line terminal does not perform equalization processing on the packets.
  • the authorization response message is a service message, that is, the authorization response message does not include the test message, but only the service message.
  • the sending module is also used to send a ranging response message to the optical line terminal at the service rate, where the ranging response message includes a test sequence.
  • the optical network terminal also includes: a receiving module, configured to receive a rate switching instruction sent by the optical line terminal before the sending module sends a test message to the optical line terminal at a service rate.
  • the rate switching instruction instructs the optical network terminal to transmit a test message at a service rate. Send packets to the optical line terminal at the rate.
  • the sending module is specifically configured to send the test message to the optical line terminal at the service rate based on the rate switching instruction.
  • this application provides an optical line terminal.
  • the optical line terminal includes a transceiver module and a processing module.
  • the transceiver module is used to receive the discovery response message sent by the optical network terminal.
  • the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message;
  • the processing module is used for discovery-based
  • the response message obtains the device information of the optical network terminal;
  • the transceiver module is also used to receive an authorization response message sent by the optical network terminal at a service rate.
  • the authorization response message includes at least one of a test message and a service message.
  • the authorization response message includes a test message.
  • the transceiver module is also configured to receive a ranging response message sent by the optical network terminal before receiving the authorization response message sent by the optical network terminal at the service rate.
  • the optical network terminal sends The rate of the ranging response message is lower than the service rate; the processing module is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
  • the processing module is also used to adjust message processing parameters based on the test message, and the message processing parameters are used to process the messages received by the processing module.
  • the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages.
  • the transceiver module is also used to receive the ranging response message sent by the optical network terminal at the service rate before receiving the authorization response message sent by the optical network terminal at the service rate.
  • the ranging response message includes the test sequence; the processing module also uses Based on the test sequence, the message processing parameters of the optical line terminal are adjusted, and based on the ranging response message, a balanced delay is allocated to the optical network terminal.
  • the message processing parameters are used to process the messages received by the processing module.
  • the message processing parameters include: clock phase deviation and/or equalization coefficient.
  • the transceiver module is also used to receive the ranging response message, and forward the ranging response message to the processed module at the service rate; the processing module is specifically used to perform optical processing based on the ranging response message sent at the service rate.
  • Network terminals allocate balanced delays.
  • the transceiver module is also configured to send a type indication to the processing module, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the processing module is also configured to send a rate switching instruction to the optical network terminal through the transceiver module before receiving the authorization response message sent by the optical network terminal at the service rate.
  • the rate switching instruction instructs the optical network terminal to send the optical network terminal at the service rate.
  • the line terminal sends the message.
  • the processing module is also used to turn off the alarm function before adjusting the message processing parameters.
  • the transceiver module is also configured to send a completion instruction to the processing module after adjusting the message processing parameters.
  • the completion instruction is used to indicate that the transceiver module has completed the adjustment of the message processing parameters.
  • the processing module is also used to enable the alarm function based on the completion instruction.
  • the present application provides an optical network terminal, including a memory and a processor.
  • the memory stores program instructions
  • the processor runs the program instructions to execute the second aspect of the application and any possible implementation thereof. method.
  • this application provides an optical line terminal, including a memory and a processor.
  • the memory stores program instructions
  • the processor runs the program instructions to execute the method provided in the third aspect of this application and any possible implementation manner thereof. method.
  • the application provides a computer-readable storage medium.
  • the computer-readable storage medium is a non-volatile computer-readable storage medium.
  • the computer-readable storage medium includes program instructions. When the program instructions are stored on a computer device, When running, the computer device is caused to execute the method provided in the second aspect of the application and any possible implementation manner thereof, or to execute the method provided in the third aspect of the application and any possible implementation manner thereof.
  • this application provides a computer program product containing instructions.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the method provided in the second aspect of this application and any possible implementation thereof, or , execute the method provided in the third aspect of this application and any possible implementation manner thereof.
  • Figure 1 is a schematic diagram of an application scenario involved in a device registration method provided by an embodiment of the present application
  • Figure 2 is a schematic structural diagram of an optical line terminal provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of an optical network terminal provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a device registration method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of another device registration method provided by an embodiment of the present application.
  • Figure 6 is a flow chart of yet another device registration method provided by an embodiment of the present application.
  • Figure 7 is a flow chart of a method for registering an optical network terminal device provided by an embodiment of the present application.
  • Figure 8 is a flow chart of a registration method for an optical line terminal implementation device provided by an embodiment of the present application.
  • Figure 9 is a flow chart of another registration method for optical line terminal implementation equipment provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of another optical network terminal provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of another optical line terminal provided by an embodiment of the present application.
  • FIG 1 is a schematic diagram of an application scenario involved in a device registration method provided by an embodiment of the present application.
  • this application scenario includes: optical line terminal 200 and optical network terminal 300.
  • the optical line terminal refers to the network side interface that provides the optical access network.
  • the optical network terminal is the user-side device of the passive optical network, and the user terminal can access the network through the optical network terminal.
  • optical network terminals can provide various broadband services to user terminals connected to them.
  • the optical line terminal and the optical network terminal are connected through an optical distribution network.
  • Systems including optical line terminals, optical network terminals and optical distribution networks can be called passive optical networks.
  • the optical line terminal can connect multiple optical network terminals through the optical distribution network.
  • the passive optical network including the optical line terminal and the optical network terminal is a point-to-multipoint passive optical network.
  • each optical network terminal In the downstream direction where the optical line terminal sends a message to the optical network terminal, the optical line terminal sends a message to the optical network terminal connected to it through broadcast. After receiving the message, each optical network terminal can select the message belonging to the optical network terminal. own content.
  • each optical network terminal In the upstream direction where the optical network terminal sends messages to the optical line terminal, each optical network terminal communicates with the optical line terminal in the form of burst packets within the designated time slot through time division multiplexing (TDM). , thereby avoiding collisions between various optical network terminals.
  • TDM time division multiplexing
  • the optical network terminal needs to register with the optical line terminal, that is, complete the process from power on to registration.
  • This process includes: terminal discovery process and ranging process from the optical line terminal to the optical network terminal.
  • optical line terminals usually silence optical network terminals that have completed registration periodically. That is, the optical line terminal does not allocate bandwidth to optical network terminals that have completed registration within a specified period of time, and allows the optical network terminals that have completed registration to be silent.
  • the optical network terminal interacts with the optical line terminal to register related messages within the specified period.
  • registration-related messages are usually very short (for example, dozens of bytes), so that multiple optical network terminals can register during this period, thereby improving registration efficiency.
  • optoelectronic devices with lower bandwidth can be used in passive optical networks.
  • optoelectronic devices with lower bandwidth send and receive high-speed messages, inter-code crosstalk will occur.
  • the optical line terminal 200 may include an optical module 201.
  • the optical line terminal 200 relies on the optical module 201 to send and receive messages.
  • the optical module 201 includes a processor 2011.
  • the processor 2011 can adjust its message processing parameters according to the received message, and use the adjusted message processing parameters to realize its equalization function, thereby adjusting the inter-code of the message. Crosstalk is corrected.
  • the processor 2011 may be a digital signal processor (DSP).
  • DSP digital signal processor
  • the process of adjusting the packet processing parameters is a process of adjusting the packet processing parameters of the processor 2011 from the initial state to convergence. Only after the adjustment of the message processing parameters is completed, the optical module 201 can parse the valid information according to the received message. Otherwise, the information cannot be parsed, or the correct information cannot be parsed.
  • the message processing parameters corresponding to different optical network terminals may be different. Therefore, the processor 2011 needs to adjust the message processing parameters for different optical network terminals.
  • the optical line terminal 200, the optical module 201 and the processor 2011 can exist in various forms.
  • the optical module 201 can be independent of the optical line terminal 200, and the optical module 201 can be externally connected to the optical line terminal 200.
  • the optical line terminal 200 may be a device having a slot, and the optical module 201 may be inserted into the slot.
  • the optical line terminal with an external optical module and the optical module as a whole can also be called an optical line terminal.
  • the processor 2011 may be located inside the optical module 201, or the processor 2011 may also be located inside the optical line terminal 200, which is not specifically limited in the embodiment of this application.
  • the components used to implement the functions of the optical module 201 may be components in the optical line terminal 200 .
  • the entire set of components used to implement the functions of the optical module 201 is usually not called an optical module, but for convenience of description, it is also referred to as an optical module in this article.
  • the processor 2011 is also a component in the optical line terminal 200.
  • each optical network terminal needs to send a training sequence with a longer length to the optical line terminal 200 at a service rate, so that the processor 2011 can complete the training sequence within the duration of the training sequence. Adjust packet processing parameters.
  • a longer training sequence will increase the time it takes for optical network terminals to register, and since the messages of multiple optical network terminals to be registered appear at random locations within the silent window, collisions are prone to occur, thus affecting the performance of the same optical network terminal.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the device information of the optical network terminal based on the discovery response message and completes the discovery of the optical network terminal. Terminal discovery. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively
  • the registration efficiency of multiple optical network terminals registered to the optical line terminal 200 during the same period is guaranteed, thereby improving user service experience.
  • the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the message to be sent by the optical line terminal.
  • the difference between the two rates can be expressed by the following content:
  • the optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate.
  • the optical line terminal extracting the message means that the optical line terminal correctly extracts the message.
  • the rate at which the optical network terminal sends discovery response messages may be less than the reference rate, and the service rate may be greater than or equal to the reference rate.
  • the reference rate may be the critical rate at which the optical line terminal needs to equalize packets. That is, when the transmission rate of the packets sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to equalize the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, , the optical line terminal does not need to equalize the packets.
  • equalization processing can be used to eliminate inter-code crosstalk of messages.
  • the reference rate can be the critical sending rate that causes inter-code crosstalk in the message when the optical network terminal is used to send the message.
  • the transmission rate of packets sent by the optical network terminal is less than the reference rate, the packets received by the optical line terminal 200 will not cause inter-code crosstalk, and the optical line terminal does not need to adjust the packet processing parameters.
  • the transmission rate of packets sent by the optical network terminal is greater than or equal to the reference rate, inter-code crosstalk will occur in the packets received by the optical line terminal 200, and the optical line terminal needs to adjust packet processing parameters. Therefore, the optical network terminals involved in the embodiments of this application may all be optical network terminals with a service rate greater than or equal to the reference rate.
  • the message processing parameters in the embodiment of the present application may include physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
  • the optical line terminal 200 may also include an access controller 205.
  • the optical line terminal 200 relies on the access controller 205 to control the network access of the optical network terminal.
  • the access controller 205 can perform terminal discovery on optical network terminals, allocate balanced delays to optical network terminals, and perform service authorization on optical network terminals.
  • the access controller 205 may be a media access controller (media access controller, MAC).
  • the optical line terminal 200 may also include a processor 2011, a passive optical network card, a gateway router, a voice gateway, an uplink card, etc., which are not specifically limited in the embodiment of this application.
  • FIG. 2 is a schematic structural diagram of an optical line terminal provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the optical module 201 being a component in the optical line terminal 200.
  • the optical line terminal 200 includes an optical module 201, a memory 202, a communication interface 203, a bus 204 and an access controller 205.
  • the optical module 201 includes a processor 2011.
  • the optical module 201, the memory 202, and the communication interface 203 realize communication connections with each other through the bus 204.
  • the optical line terminal 200 may include multiple processors, so that different processors can implement the functions of the above-mentioned different functional modules.
  • Processors may include general-purpose processors and/or special-purpose hardware chips.
  • General-purpose processors can include: central processing unit (CPU), microprocessor or graphics processing unit (GPU).
  • the CPU is, for example, a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a dedicated hardware chip is a high-performance processing hardware module.
  • Specialized hardware chips include at least one of a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a network processor (NP) One item.
  • the processor can also be an integrated circuit chip with signal processing capabilities. During the implementation process, part or all of the functions of the device registration method of this application can be completed by instructions in the form of hardware integrated logic circuits or software in the processor.
  • the memory 202 is used to store computer programs, including an operating system 202a and executable code 202b.
  • the memory 202 is, for example, a read-only memory or other type of static storage device that can store static information and instructions, or a random access memory or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable memory device.
  • the memory 202 is used to store outbound port queues, etc.
  • the memory 202 exists independently, for example, and is connected to the processor through a bus 204 . Or the memory 202 and the processor are integrated together.
  • the memory 202 may store executable code. When the executable code stored in the memory 202 is executed by the processor, the processor is used to execute the device registration method provided by the embodiment of the present application.
  • the memory 202 may also include operating systems and other software modules and data required for running processes.
  • the communication interface 203 uses a transceiver module such as but not limited to a transceiver to implement communication between the optical line terminal 200 and other devices or communication networks.
  • a transceiver module such as but not limited to a transceiver to implement communication between the optical line terminal 200 and other devices or communication networks.
  • the communication interface 203 may be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
  • the bus 204 is any type of communication bus used to interconnect internal devices (eg, memory 202, processor, communication interface 203) of the optical line terminal 200, such as a system bus.
  • This embodiment of the present application takes the interconnection of the above-mentioned devices inside the optical line terminal 200 through the bus 204 as an example.
  • the above-mentioned devices inside the optical line terminal 200 can also communicate with each other using other connection methods besides the bus 204 .
  • the above-mentioned devices inside the optical line terminal 200 are interconnected through logical interfaces inside the optical line terminal 200 .
  • the optical network terminal can be a device such as an "optical cat".
  • Figure 3 is a schematic structural diagram of an optical network terminal provided by an embodiment of the present application.
  • the optical network terminal 300 includes a processor 301 , a memory 302 , a communication interface 303 and a bus 304 .
  • the memory 302, the processor 301, and the communication interface 303 implement communication connections between each other through the bus 304.
  • the optical network terminal 300 may include multiple processors 301 so that different processors can implement the functions of the above-mentioned different functional modules.
  • Processor 301 may include a general-purpose processor and/or a special-purpose hardware chip.
  • General purpose processors may include: central processing units, microprocessors, or graphics processors.
  • the CPU is, for example, a single-core processor or a multi-core processor.
  • a dedicated hardware chip is a high-performance processing hardware module.
  • Special-purpose hardware chips include at least one of an application-specific integrated circuit, a field-programmable logic gate array, or a network processor.
  • the processor 301 may also be an integrated circuit chip with signal processing capabilities. During the implementation process, part or all of the functions of the device registration method of the present application can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 301 .
  • the memory 302 is used to store computer programs, including an operating system 302a and executable code 302b.
  • the memory 302 is, for example, a read-only memory or other type of static storage device that can store static information and instructions, or a random access memory or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable memory device.
  • the memory 302 is used to store outbound port queues, etc.
  • the memory 302 exists independently, for example, and is connected to the processor 301 through a bus 304 . Or the memory 302 and the processor 301 are integrated together.
  • the memory 302 can store executable code. When the executable code stored in the memory 302 is executed by the processor 301, the processor 301 is used to execute the device registration method provided by the embodiment of the present application.
  • the memory 302 may also include operating systems and other software modules and data required for running processes.
  • the communication interface 303 uses a transceiver module such as but not limited to a transceiver to implement communication between the optical network terminal 300 and other devices or communication networks.
  • a transceiver module such as but not limited to a transceiver to implement communication between the optical network terminal 300 and other devices or communication networks.
  • the communication interface 303 may be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
  • the bus 304 is any type of communication bus used to interconnect internal devices (for example, the memory 302, the processor 301, the communication interface 303) of the optical network terminal 300, such as a system bus.
  • the embodiment of the present application takes the above-mentioned devices inside the optical network terminal 300 as being interconnected through the bus 304 as an example.
  • the above-mentioned devices inside the optical network terminal 300 can also communicate with each other using other connection methods besides the bus 304.
  • the above-mentioned devices inside the optical network terminal 300 are interconnected through logical interfaces inside the optical network terminal 300 .
  • optical network terminal and optical line terminal can be respectively provided on independent chips, or at least part or all of them can be provided on the same chip. Whether each device is independently installed on different chips or integrated on one or more chips often depends on the needs of product design.
  • the embodiments of this application do not limit the specific implementation forms of the above devices.
  • the descriptions of the processes corresponding to each of the above drawings have different emphases. For parts that are not detailed in a certain process, you can refer to the relevant descriptions of other processes.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product that provides a program development platform includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer device, the process or function of the device registration method provided by the embodiment of the present application is fully or partially implemented.
  • computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
  • computer instructions may be transmitted over a wired connection from a website, computer, server or data center. (such as coaxial cable, optical fiber, digital subscriber line or wireless (such as infrared, wireless, microwave, etc.) to transmit to another website, computer, server or data center.
  • the computer-readable storage medium stores information that provides a program development platform Computer program instructions.
  • the authorization response message may include at least one of a test message and a service message.
  • the implementation process of the device registration method provided by the embodiment of the present application is different. They are explained below. Furthermore, the following describes the implementation process of the device registration method provided by the embodiment of the present application, taking an example in which the optical module is externally connected to the optical line terminal and the processor is located inside the optical module.
  • the implementation process of the device's registration method includes the following steps:
  • Step 401 The optical line terminal sends a configuration message to the optical network terminal.
  • the configuration message is used to instruct the optical network terminal to send registration-related messages to the optical line terminal.
  • optical line terminals In order to realize the registration of optical network terminals, optical line terminals usually silence optical network terminals that have completed registration periodically. That is, the optical line terminal does not allocate bandwidth to optical network terminals that have completed registration within a specified period of time.
  • the optical network terminal interacts with the optical line terminal to register relevant messages within the specified period, so as to complete the registration of the optical network terminal based on the message.
  • the optical line terminal needs to perform terminal discovery on the optical network terminal and obtain the physical distance from the optical network terminal to the optical line terminal after the terminal discovery is completed (that is, ranging from the optical network terminal).
  • the messages required for terminal discovery include: discovery response messages sent by the optical network terminal to the optical line terminal.
  • the discovery response message may carry equipment information of the optical network terminal. For example, the serial number (SN) of an optical network terminal.
  • the messages required for ranging include: the ranging indication message sent by the optical line terminal to the designated optical network terminal, and the ranging response message sent by the optical network terminal to the optical line terminal. Moreover, this designated period is usually called a silent window provided by the optical line terminal for the optical network terminal to be registered.
  • a silent window supports the registration process of optical network terminals at one rate. Therefore, before the silent window arrives, the optical line terminal can send a configuration message to the optical network terminal to be registered to indicate what speed optical network terminal can initiate registration within the silent window, so that the optical network terminal with the corresponding speed can initiate registration within the silent window.
  • the silent window interacts with the optical line terminal to register messages related to it.
  • the optical line terminal may broadcast the configuration message to the optical network terminal to be registered.
  • the configuration message may be a burst-profile message.
  • an optical network terminal with a certain rate refers to an optical network terminal that sends service packets at the rate.
  • an optical network terminal that sends service messages at a rate of 10 gigabit per second (Gbps) can be called a 10Gbps optical network terminal.
  • An optical network terminal that sends service messages at a rate of 50Gbps can be called a 50Gbps optical network terminal.
  • the optical line terminal relies on the optical module to send and receive messages, and the access controller in the optical line terminal is used to decide what rate the silent window supports for the registration process of the optical network terminal. Therefore, the access controller can indicate to the optical module what rate the silent window supports, and the optical module sends a configuration message to the optical network terminal based on the instruction of the access controller. In one implementation, the access controller can carry the rate supported by the silent window in the encoding check bit of the message sent to the optical module, and the optical module extracts this information and completes the encoding of the message.
  • step 401 includes: Step 4011: The access controller sends the rate supported by the silent window to the optical module. And, step 4012, the optical module sends a configuration message to the optical network terminal.
  • the configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal, and the optical network terminal is an optical fiber with a rate supported by the silent window. Network terminal.
  • Step 402 The optical network terminal sends a discovery response message to the optical line terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • the optical network terminal to be registered After the optical network terminal to be registered is powered on, it can listen to the configuration packet sent by the optical line terminal, and when the rate indicated by the configuration packet is the rate at which the optical network terminal sends service packets, in the silent window provided by the optical line terminal , sending a discovery response message to the optical line terminal.
  • the discovery response message carries the device information (such as serial number) of the optical network terminal.
  • the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the message to be sent by the optical line terminal.
  • the difference between the two rates can be expressed by the following content:
  • the optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate.
  • the optical line terminal extracting the message means that the optical line terminal correctly extracts the message.
  • the rate at which the optical network terminal sends discovery response messages may be less than the reference rate, and the service rate may be greater than or equal to the reference rate.
  • the reference rate may be the critical rate at which the optical line terminal needs to equalize packets. That is, when the transmission rate of the packets sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to equalize the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, , the optical line terminal does not need to equalize the packets.
  • equalization processing can be used to eliminate inter-code crosstalk of messages.
  • the reference rate can be the critical sending rate that causes inter-code crosstalk in the message when the optical network terminal is used to send the message. That is to say, when the message sending rate is greater than or equal to the reference rate, the message received by the optical line terminal will have inter-code crosstalk. When the message sending rate is less than the reference rate, the message received by the optical line terminal will There will be no inter-symbol crosstalk.
  • the rate at which the optical network terminal sends the discovery response message can be any rate lower than the reference rate, or it can be any upstream rate of the passive optical network that is lower than the reference rate.
  • the uplink rate includes 2.5Gbps and 10Gbps, and the reference rate is 10Gbps, then the rate at which the optical network terminal sends discovery response messages can be 2.5Gbps or any rate less than 10Gbps.
  • the uplink rates include 12.5Gbps, 25Gbps and 50Gbps.
  • the reference rate is 50Gbps.
  • the rate at which the optical network terminal sends discovery response messages can be 12.5Gbps, 25Gbps or any rate less than 50Gbps.
  • Adjusting the message processing parameters of the optical line terminal can ensure that the optical line terminal successfully receives the discovery response message and improves the success rate of terminal discovery of the optical network terminal. Moreover, since there is no need to adjust the message processing parameters of the optical line terminal in this process, it is possible to use a shorter frame length to complete terminal discovery. Compared with the technology of adjusting the message processing parameters of the optical line terminal by sending a longer training sequence, It avoids sending a long training sequence during the terminal discovery process, reduces the probability of collision, and can effectively ensure the registration efficiency of optical network terminals.
  • step 402 includes: Step 4021: The optical network terminal sends a discovery response message to the optical module at a rate smaller than the service rate.
  • Step 403 The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
  • performing terminal discovery on the optical network terminal includes: obtaining device information of the optical network terminal based on the discovery response message. For example, the optical line terminal extracts the serial number of the optical network terminal from the discovery response message. Moreover, after completing the terminal discovery, the optical line terminal allocates an optical network terminal identification (ONT-ID) to the optical network terminal, so that the optical network terminal and the optical line terminal interact according to the ONT-ID.
  • ONT-ID optical network terminal identification
  • the optical line terminal when the optical line terminal includes an optical module and an access controller, the optical line terminal can receive the discovery response message through the optical module. At this time, the optical line terminal's terminal discovery operation for the optical network terminal can be performed by the access controller. Correspondingly, after receiving the discovery response message, the optical module can forward the discovery response message to the access controller. Moreover, since the rate indicated by the configuration message is the service rate at which the optical network terminal sends the service message, and the rate at which the optical network terminal sends the discovery response message is less than the service rate, the optical module cannot receive the service rate sent at a rate less than the service rate.
  • the discovery response message needs to be forwarded to the access controller at the service rate to ensure that the access controller can receive the discovery response message that meets the configuration message instructions and to avoid the access controller receiving errors.
  • An alarm occurs for packets at a certain rate.
  • the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the device information of the optical network terminal based on the discovery response message sent at the service rate.
  • the optical module in order to ensure that accurate discovery response messages are sent to the optical line terminal, after the optical module receives the message sent by the terminal, it can first use the rate to identify that the discovery response message is sent at a rate lower than the service rate. message, and perform clock recovery and judgment on the discovery response message. Moreover, since the configuration message is sent to the optical network terminal through the optical module, the optical module can learn the service rate supported by the silent window. Therefore, after the discovery response message is judged, the optical module can send the service rate to the access controller at the service rate. The discovery response message obtained by the judgment.
  • the optical module when it forwards the discovery response message to the access controller at the service rate, it can also send a type indication to the access controller.
  • This type of indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the optical module since the discovery response message received by the optical module is sent at a rate less than the service rate, the optical module needs to forward the discovery response message to the access controller at the service rate, so that the discovery response message sent at the service rate If the sending time of the message is less than the sending time of the discovery response message sent at a rate less than the service rate, the optical module can send the type indication to the access controller within the period of forwarding the discovery response message to the access controller. This type indication can be implemented through a flag bit.
  • the type indication can indicate whether the optical network terminal needs to perform rate switching by instructing the optical network terminal at a rate at which the discovery response message is sent. For example, when the type indication indicates that the rate at which the optical network terminal sends discovery response messages is less than the service rate, the access controller may determine that the optical network terminal needs to perform rate switching based on the indication. In one implementation, the optical module may carry the type indication in the check bit of the discovery response message sent to the access controller.
  • step 403 when the optical line terminal includes an optical module and an access controller, step 403 includes: Step 4031: The optical module forwards the discovery response message to the access controller at the service rate. And, step 4032, the access controller obtains the device information of the optical network terminal based on the discovery response message. Moreover, as shown in Figure 5, when the optical module sends a type indication to the access controller in step 403, step 403 also includes: step 4033: the optical module sends a type indication to the access controller. Among them, Figure 5 shows the process in which the optical module sends a type indication to the access controller after forwarding the discovery response message to the access controller.
  • Step 404 The optical line terminal sends a ranging indication message to the optical network terminal.
  • the optical line terminal After the optical line terminal completes the terminal discovery of the optical network terminal, it can enter the process of ranging the optical network terminal.
  • the optical line terminal may send the ranging indication message to the optical network terminal, so that the optical network terminal feeds back the ranging indication message to the optical line terminal according to the ranging indication message.
  • the optical line terminal After the optical line terminal obtains the ranging response message fed back by the optical network terminal, it can determine the physical distance from the optical network terminal to the optical line terminal based on the delay from sending the ranging indication message to receiving the ranging response message.
  • step 404 includes: Step 4041: The access controller instructs the optical module to send a ranging indication message to the optical network terminal. And, step 4042, the optical module sends a ranging indication message to the optical network terminal.
  • Step 405 The optical network terminal sends a ranging response message to the optical line terminal.
  • the rate at which the optical network terminal sends the ranging response message is less than the service rate.
  • the optical network terminal After receiving the ranging indication message sent by the optical line terminal, the optical network terminal can send a ranging response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal can respond to the optical network terminal based on the ranging response message. Ranging.
  • the rate at which the optical network terminal sends ranging response messages may be less than the reference rate.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, which improves the accuracy of the ranging response. Efficiency of optical network terminal ranging.
  • the rate at which the ranging response message is sent may be any rate lower than the reference rate, or may be any uplink rate of the passive optical network lower than the reference rate. Furthermore, the rate at which ranging response messages are sent may be equal to the rate at which discovery response messages are sent, or the rate at which ranging response messages are sent may not be equal to the rate at which discovery response messages are sent. This is not done in the embodiments of this application. Specific limitations.
  • step 405 includes: Step 4051: The optical network terminal sends a ranging response message to the optical module at a rate lower than the service rate.
  • Step 406 The optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates balanced delays to the multiple optical network terminals based on the ranging results on the multiple optical network terminals.
  • the optical line terminal can receive the ranging response message through the optical module, and measure the ranging of the optical network terminal based on the ranging response message. For example, the physical distance from the optical network terminal to the optical line terminal is determined based on the time delay between the optical line terminal sending the ranging indication message and receiving the ranging response message.
  • the optical line terminal also includes an access controller.
  • the optical line terminal's ranging operation for the optical network terminal can be performed by the access controller.
  • the optical module can forward the ranging response message to the access controller at the service rate.
  • the optical module forwards the ranging response message to the access controller at the service rate, it can also send a type indication to the access controller. This type of indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the implementation process of the optical module forwarding the ranging response message to the access controller and the implementation process of sending the type indication to the access controller please refer to the relevant description in step 403 accordingly, and will not be described again here.
  • the optical line terminal After the optical line terminal completes the ranging of multiple optical network terminals to be registered, it can allocate equalization delays to the multiple optical network terminals based on the physical distances from the multiple optical network terminals to the optical line terminal. EqD), so that the logical distances between the multiple optical network terminals and the optical line terminals are equal, so that the multiple optical network terminals interact with the optical line terminals in an orderly manner at the same logical distance.
  • the optical line terminal includes an access controller
  • the operation of allocating balanced delays by the optical line terminal to multiple optical network terminals can be performed by the access controller.
  • the optical network terminal After completing the equalization delay allocation to the optical network terminal, the optical network terminal enters the ready state (such as the O5 state) and can perform normal service authorization.
  • step 406 includes: Step 4061: The optical module forwards the ranging response message to the access controller at the service rate.
  • step 4064 the optical module sends the decision to allocate the equalization delay to the optical network terminal.
  • step 406 also includes: step 4065: the optical module sends a type indication to the access controller. 5 does not show the process of the optical module sending the type indication to the access controller in step 406.
  • Step 407 The optical line terminal sends a rate switching instruction to the optical network terminal, and instructs the optical network terminal to send a test message to the optical line terminal.
  • the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  • the optical network terminal can communicate with the optical line terminal at the service rate. For example, the optical network terminal sends test packets and service packets to the optical line terminal at the service rate. Among them, the optical module can adjust the message processing parameters according to the test message. In an implementation manner, the optical line terminal can send a rate switching instruction to the optical network terminal, and the optical network terminal sends a message to the optical line terminal at a service rate based on the rate switching instruction.
  • the optical line terminal includes an access controller
  • the decision to send a rate switching instruction to the optical network terminal may be made by the access controller and sent to the optical network terminal by the optical module.
  • rate switching instructions may be sent according to the type indication. For example, if the access controller receives a type indication, and the type indication is used to indicate that the optical network terminal needs to perform rate switching, the access controller can send a rate switching instruction to the optical network terminal through the optical module. Moreover, when sending a rate switching instruction to the optical network terminal, multiple rate switching instructions can be sent continuously to the optical network terminal to ensure that the optical network terminal can receive the rate switching instruction.
  • the optical module may not send a type indication to the access controller.
  • the access controller may not make a decision to send a rate switching instruction to the optical network terminal based on the type indication.
  • the access controller can use the optical module to Send rate switching instructions to the optical network terminal.
  • the optical network terminal After the optical line terminal sends a rate switching instruction to the optical network terminal, the optical network terminal can be instructed to send a test message to the optical line terminal so that the optical module can adjust the message processing parameters based on the test message. Because the message processing parameters are mainly used to correct the service messages, and the service messages are sent at the service rate. Therefore, adjusting the message processing parameters based on the test messages sent by the optical network terminal at the service rate can ensure the accuracy of the adjusted message processing parameters and improve the efficiency of eliminating inter-code crosstalk in the service messages.
  • the optical line terminal can allocate a fixed bandwidth (such as 100 Mbps) to the optical network terminal to instruct the optical network terminal to send a test message to the optical line terminal.
  • a fixed bandwidth such as 100 Mbps
  • the optical line terminal and the optical network terminal can agree that when allocating a fixed bandwidth to the optical network terminal, the optical network terminal sends a test message to the optical line terminal.
  • the allocation identifier (Alloc-ID) of the bandwidth allocated by the optical line terminal to the optical network terminal is equal to the ONT-ID allocated by the optical line terminal to the optical network terminal, the optical network terminal sends a test message to the optical line terminal.
  • the optical line terminal may send a burst packet configuration message to the optical network terminal, and the burst packet configuration message instructs the optical network terminal to send a test packet to the optical line terminal.
  • the burst packet configuration message can also indicate the type of test message.
  • the burst packet configuration message can instruct the optical network terminal to send a test message carrying an idle sequence to the optical line terminal, or a pseudo-random binary sequence (PRBS) type test message carrying the idle sequence. arts.
  • PRBS pseudo-random binary sequence
  • the optical line terminal includes an access controller
  • the decision to instruct the optical network terminal to send the test message can be made by the access controller and sent to the optical network terminal by the optical module.
  • the access controller makes After sending the decision of rate switching instruction to the optical network terminal, the alarm function of the access controller can be turned off.
  • step 407 includes: Step 4071: The access controller instructs the optical module to send a rate switching instruction to the optical network terminal, and instructs the optical module to send a rate switching instruction to the optical network terminal.
  • the network terminal sends an instruction instructing the optical network terminal to send a test message.
  • Step 4072 The optical module sends a rate switching instruction and an instruction instructing the optical network terminal to send a test message to the optical network terminal.
  • Step 408 Based on the rate switching instruction, the optical network terminal sends an authorization response message including a test message to the optical line terminal at the service rate.
  • the optical network terminal After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and according to the instructions of the optical line terminal, send the authorization response message to the optical line terminal at the service rate.
  • the optical network terminal allocates an ONT-ID to the optical network terminal
  • the optical network terminal sends an authorization response message carrying the optical network terminal identification to the optical line terminal at the service rate.
  • the authorization response message may be a test message, or a test message and a service message.
  • the optical network terminal can send the test message of the corresponding type according to the instruction.
  • the optical network terminal when instructing the optical network terminal to send a test message carrying an idle sequence to the optical line terminal, the optical network terminal can fill the specified type of idle message into the gigabit-capable-passive optical network encapsulation mode (gigabit-capable-passive optical network encapsulation method, GEM) frame, and sends the GEM frame to the optical line terminal at the service rate.
  • GEM gigabit-capable-passive optical network encapsulation method
  • step 408 includes: Step 4081: The optical network terminal sends an authorization response message including a test message to the optical module at the service rate.
  • Step 409 The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • the optical line terminal After the optical line terminal receives the test message, it can adjust the message processing parameters of the optical line terminal based on the test message.
  • the optical line terminal includes an optical module.
  • the optical module actually adjusts the packet processing parameters of the optical module based on the test packets.
  • the optical module includes a processor, and the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters based on the test message.
  • the optical network terminal can send test messages to the optical line terminal multiple times.
  • the optical module adjusts the message processing parameters according to the test messages sent multiple times, that is, repeats the operation of instructing the optical network terminal to send the test message to the optical line terminal in step 407, and the operations in steps 408 and 409, Until the adjustment of message processing parameters is completed.
  • the optical module can send a completion command to the access controller to indicate that the optical module has completed the adjustment of the packet processing parameters, so that the access controller can execute normally according to the completion command. Subsequent operations.
  • the access controller can enable the alarm function based on completion instructions.
  • the access controller can configure the authorized service bandwidth according to the completion instruction and perform normal service authorization.
  • the device registration method provided by the embodiment of this application includes:
  • Step 601 The optical line terminal sends a configuration message to the optical network terminal.
  • the configuration message is used to instruct the optical network terminal to send registration-related messages to the optical line terminal.
  • step 601 For the implementation process of step 601, please refer to the implementation process of step 401 accordingly.
  • Step 602 The optical network terminal sends a discovery response message to the optical line terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • step 602 For the implementation process of step 602, please refer to the implementation process of step 402 accordingly.
  • Step 603 The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
  • step 603 For the implementation process of step 603, please refer to the implementation process of step 403 accordingly.
  • Step 604 The optical line terminal sends a ranging indication message to the optical network terminal.
  • step 604 For the implementation process of step 604, please refer to the implementation process of step 404 accordingly.
  • Step 605 The optical network terminal sends a ranging response message to the optical line terminal at the service rate, and the ranging response message includes a test sequence.
  • the optical network terminal After receiving the ranging indication message sent by the optical line terminal, the optical network terminal can send a ranging response message to the optical line terminal at the service rate, so that the optical line terminal can measure the ranging of the optical network terminal based on the ranging response message.
  • the ranging response message may include a test sequence, such as a training sequence or preamble with a longer length, so that the optical module can adjust the message processing parameters according to the training sequence or preamble with a longer length.
  • step 605 includes: Step 6051: The optical network terminal sends a ranging response message to the optical module at the service rate.
  • Step 606 The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, then measures the ranging of the optical network terminal based on the ranging response message, and then allocates a balanced delay to the optical network terminal based on the ranging results.
  • step 606 you can first use the test sequence to adjust the message processing parameters of the optical line terminal. After the parameters converge, the ranging response message is parsed, and the ranging of the optical network terminal is completed based on the ranging response message. , and then allocate balanced delay to the optical network terminal based on the ranging results. Among them, in step 606, the optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates the balanced delay according to the ranging results of multiple optical network terminals. Please refer to the implementation process in step 406 accordingly. The relevant description will not be repeated here. For the implementation process of the optical line terminal adjusting the message processing parameters of the optical line terminal, please refer to the relevant description of step 409 accordingly.
  • Step 607 The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  • step 607 For the implementation process of step 607, please refer to the relevant description of step 407 accordingly.
  • Step 608 The optical network terminal sends the service message to the optical line terminal at the service rate based on the rate switching instruction.
  • the optical network terminal After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and when it is necessary to send service messages to the optical line terminal, it can send service messages to the optical line terminal at the service rate.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further This improves the efficiency of ranging for optical network terminals and shortens the time it takes for optical network terminals to complete registration.
  • This application provides a device registration method. This method is applied to optical network terminals. As shown in Figure 7, the method includes:
  • Step 701 The optical network terminal receives a configuration message.
  • the configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
  • step 401 Please refer to the relevant description in step 401 for how to implement the configuration message.
  • Step 702 The optical network terminal sends a discovery response message to the optical line terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • step 702 For the implementation process of step 702, please refer to the relevant description of step 402 accordingly.
  • Step 703 The optical network terminal receives the ranging indication message.
  • step 404 For the implementation of the ranging indication message, please refer to the relevant description in step 404 accordingly.
  • Step 704 The optical network terminal sends a ranging response message to the optical line terminal.
  • the rate at which the optical network terminal sends ranging response messages is less than the service rate.
  • the rate at which the optical network terminal sends ranging response messages is less than the service rate.
  • the optical network terminal can send a ranging response message to the optical line terminal at the service rate.
  • the ranging response message includes a test sequence, so that the optical line terminal can adjust the message processing parameters based on the test sequence.
  • Step 705 The optical network terminal receives the rate switching instruction sent by the optical line terminal.
  • the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  • step 407 For the implementation method of the rate switching instruction, please refer to the relevant description in step 407 accordingly.
  • Step 706 The optical network terminal sends an authorization response message to the optical line terminal at the service rate based on the rate switching instruction.
  • the authorization response message may include a test message.
  • the optical network terminal can send test packets and service packets at the service rate. At this time, please refer to the relevant description in step 408 for the implementation method of step 706.
  • the authorization response message may be a service message.
  • the optical network terminal can send service packets at the service rate.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of optical network terminal ranging is improved.
  • the authorization response message may include at least one of a test message and a service message.
  • the authorization response message includes a test message, as shown in Figure 8, the method includes:
  • Step 801 The optical line terminal sends a configuration message to the optical network terminal.
  • the configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
  • step 801 For the implementation process of step 801, please refer to the implementation process of step 401 accordingly.
  • Step 802 The optical line terminal receives the discovery response message sent by the optical network terminal.
  • the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • step 402 For the implementation method of the discovery response message, please refer to the relevant description of step 402 accordingly.
  • Step 803 The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
  • step 803 For the implementation process of step 803, please refer to the implementation process of step 403 accordingly.
  • Step 804 The optical line terminal sends a ranging indication message to the optical network terminal.
  • step 804 For the implementation process of step 804, please refer to the relevant description of step 404 accordingly.
  • Step 805 The optical line terminal receives the ranging response message sent by the optical network terminal.
  • the rate at which the optical network terminal sends the ranging response message is less than the service rate.
  • step 405 For the implementation of the ranging response message, please refer to the relevant description in step 405 accordingly.
  • Step 806 The optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates balanced delays to the multiple optical network terminals based on the ranging results on the multiple optical network terminals.
  • step 806 For the implementation process of step 806, please refer to the relevant description of step 406 accordingly.
  • Step 807 The optical line terminal sends a rate switching instruction to the optical network terminal, and instructs the optical network terminal to send a test message to the optical line terminal.
  • the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  • Step 808 The optical line terminal receives an authorization response message sent by the optical network terminal at the service rate based on the rate switching instruction.
  • the authorization response message includes a test message.
  • Step 809 The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • step 809 please refer to the implementation process of step 409 accordingly.
  • the device registration method provided by the embodiment of this application includes:
  • Step 901 The optical line terminal sends a configuration message to the optical network terminal.
  • the configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
  • step 901 For the implementation process of step 901, please refer to the implementation process of step 401 accordingly.
  • Step 902 The optical line terminal receives the discovery response message sent by the optical network terminal.
  • the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • step 402 For the implementation method of the discovery response message, please refer to the relevant description of step 402 accordingly.
  • Step 903 The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
  • step 903 For the implementation process of step 903, please refer to the implementation process of step 403 accordingly.
  • Step 904 The optical line terminal sends a ranging indication message to the optical network terminal.
  • step 904 please refer to the implementation process of step 404 accordingly.
  • Step 905 The optical line terminal receives the ranging response message sent by the optical network terminal at the service rate.
  • the ranging response message includes the test sequence.
  • step 605 For the implementation method of the ranging response message, please refer to the relevant description of step 605 accordingly.
  • Step 906 The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, then measures the ranging of the optical network terminal based on the ranging response message, and then allocates a balanced delay to the optical network terminal based on the ranging results.
  • step 906 For the implementation process of step 906, please refer to the implementation process of step 606 accordingly.
  • Step 907 The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  • step 907 For the implementation process of step 907, please refer to the relevant description of step 407 accordingly.
  • Step 908 The optical line terminal receives the authorization response message sent by the optical network terminal at the service rate based on the rate switching instruction.
  • the optical network terminal After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and when it is necessary to send service messages to the optical line terminal, it can send service messages to the optical line terminal at the service rate.
  • the method it also includes: the optical module receives the discovery response message, and the optical module forwards the discovery response message to the access controller at the service rate.
  • the optical line terminal obtains the equipment information of the optical network terminal based on the discovery response message, including: the access controller obtains the equipment information of the optical network terminal based on the discovery response message. Please refer to the relevant description in step 403 for how to implement this process.
  • the method further includes: the optical module receives the ranging response message. message, the optical module forwards the ranging response message to the access controller at the service rate.
  • the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, including: the access controller allocates a balanced delay to the optical network terminal based on the ranging response message. Please refer to the relevant description in step 406 for how to implement this process.
  • the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the method further includes: the access controller turns off the alarm function. Please refer to the relevant description in step 407 for how to implement this process.
  • the optical line terminal further includes an optical module
  • the method further includes: the optical module sends a completion instruction to the access controller.
  • the completion command is used to indicate that the optical module has completed the adjustment of message processing parameters. Please refer to the relevant description in step 409 for how to implement this process.
  • the method further includes: the access controller turns on the alarm function based on the completion instruction. Please refer to the relevant description in step 409 for how to implement this process.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
  • Passive optical networks include: optical network terminals and optical line terminals.
  • the passive optical network can be a point-to-multipoint passive optical network, in which case the optical line terminal connects multiple optical network terminals through an optical distribution network.
  • Figure 1 is a schematic diagram of a passive optical network provided by an embodiment of the present application. Among them, the functions of optical line terminals and optical network terminals are as follows:
  • the optical network terminal is used to send discovery response messages to the optical line terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • the optical line terminal is used to obtain the device information of the optical network terminal based on the discovery response message.
  • the optical network terminal is used to send an authorization response message to the optical line terminal at a service rate.
  • the authorization response message includes at least one of a test message and a service message.
  • the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the cost of the same message sent at a rate less than the service rate The time is less than the time it takes to extract the same message sent at the service rate.
  • the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal needs to The packets are balanced.
  • the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to balance the packets.
  • the authorization response message includes a test message
  • the optical network terminal is also used to send a ranging response message to the optical line terminal.
  • the rate at which the optical network terminal sends the ranging response message is less than the service rate.
  • the optical line terminal is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
  • the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate.
  • the optical line The terminal needs to equalize the packets.
  • the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to equalize the packets.
  • the optical line terminal is also used to adjust the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
  • the authorization response message is a service message
  • the optical network terminal is also used to send a ranging response message to the optical line terminal at the service rate.
  • the ranging response message includes a test sequence; the optical line The terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message.
  • the message processing parameters are used to process the messages received by the optical line terminal.
  • the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
  • the optical line terminal includes an optical module.
  • the optical module is specifically used to adjust the packet processing parameters of the optical module.
  • the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
  • the optical module is also used to receive a discovery response message.
  • the optical module is also used to forward discovery response messages to the access controller at the service rate.
  • the access controller is used to obtain the device information of the optical network terminal based on the discovery response message sent at the service rate.
  • the optical module is also used to receive the ranging response message.
  • the optical module is also used to forward ranging response messages to the access controller at the service rate.
  • the access controller is specifically used to allocate balanced delays to optical network terminals based on ranging response messages sent at the service rate.
  • the optical module is also used to send a type indication to the access controller, and the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the optical line terminal is also used to send a rate switching instruction to the optical network terminal before the optical network terminal sends a test message to the optical line terminal at the service rate.
  • the rate switching instruction instructs the optical network terminal to send the test message to the optical line terminal at the service rate.
  • the terminal sends the message.
  • the optical line terminal further includes an access controller, and the access controller is further configured to turn off the alarm function before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
  • the optical line terminal includes an optical module and an access controller, and when the optical module is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical module is also used to send a completion instruction to the access controller, The completion command is used to indicate that the optical module has completed the adjustment of message processing parameters.
  • the access controller is also used to enable the alarm function based on the completion instruction.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical signal based on the discovery response message.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
  • optical network terminal 1000 includes:
  • the sending module 1001 is configured to send discovery response messages to optical line terminals.
  • the rate at which the sending module 1001 sends discovery response messages is less than the service rate, and the service rate is the rate at which the sending module 1001 sends service messages.
  • the sending module 1001 is also configured to send an authorization response message to the optical line terminal at a service rate, where the authorization response message includes at least one of a test message and a service message.
  • the optical line terminal when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate.
  • the time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
  • the rate at which the sending module 1001 sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal needs to The packets are balanced.
  • the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to balance the packets.
  • the authorization response message includes a test message.
  • the sending module 1001 is also configured to send a ranging response message to the optical line terminal.
  • the rate at which the sending module 1001 sends the ranging response message is less than the service rate.
  • the rate at which the sending module 1001 sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate.
  • the optical line terminal needs to The packets are equalized.
  • the optical line terminal does not need to perform equalization processing on the packets.
  • the authorization response message is a service message
  • the sending module 1001 is also configured to send a ranging response message to the optical line terminal at a service rate, where the ranging response message includes a test sequence.
  • the optical network terminal also includes: a receiving module 1002, configured to receive a rate switching instruction sent by the optical line terminal before the sending module 1001 sends a test message to the optical line terminal at the service rate.
  • the rate switching instruction instructs the optical network terminal. Send messages to the optical line terminal at the service rate.
  • the sending module 1001 is specifically configured to send a test message to the optical line terminal at the service rate based on the rate switching instruction.
  • optical network module may also include other components used to implement its functions.
  • the optical network module may also include components such as memory.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical network information based on the discovery response message. Terminal device information to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
  • optical line terminal 1100 includes:
  • the transceiver module 1101 is configured to receive discovery response messages sent by the optical network terminal.
  • the rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
  • the processing module 1102 is configured to obtain the device information of the optical network terminal based on the discovery response message.
  • the transceiver module 1101 is also configured to receive an authorization response message sent by the optical network terminal at a service rate.
  • the authorization response message includes at least one of a test message and a service message.
  • the authorization response message includes a test message.
  • the transceiver module 1101 is also configured to receive a ranging response message sent by the optical network terminal before receiving the authorization response message sent by the optical network terminal at the service rate.
  • the optical network terminal The rate at which ranging response messages are sent is less than the service rate.
  • the processing module 1102 is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
  • the processing module 1102 is also configured to adjust message processing parameters based on the test message, and the message processing parameters are used to process the messages received by the processing module 1102.
  • the authorization response message is a service message
  • the transceiver module 1101 is also configured to receive a ranging response message sent by the optical network terminal at the service rate before receiving the authorization response message sent by the optical network terminal at the service rate,
  • the ranging response message includes the test sequence.
  • the processing module 1102 is also used to adjust the message processing parameters of the processing module 1102 based on the test sequence, and allocate a balanced delay to the optical network terminal based on the ranging response message.
  • the message processing parameters are used to adjust the message processing parameters received by the processing module 1102. The message is processed.
  • the message processing parameters include: clock phase deviation and/or equalization coefficient.
  • the transceiver module 1101 is also configured to receive a ranging response message, and forward the ranging response message to the processing module 1102 at a service rate.
  • the processing module 1102 is specifically configured to allocate balanced delay to the optical network terminal based on the ranging response message sent at the service rate.
  • the transceiver module 1101 is also configured to send a type indication to the processing module 1102.
  • the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  • the processing module 1102 is also configured to send a rate switching instruction to the optical network terminal through the transceiver module 1101 before receiving the authorization response message sent by the optical network terminal at the service rate.
  • the rate switching instruction instructs the optical network terminal to send the authorization response message at the service rate. Send messages to optical line terminals.
  • the processing module 1102 is also configured to turn off the alarm function before adjusting the message processing parameters.
  • the transceiver module 1101 is also configured to send a completion instruction to the processing module 1102 after adjusting the message processing parameters.
  • the completion instruction is used to indicate that the transceiver module 1101 has completed the adjustment of the message processing parameters.
  • processing module 1102 is also configured to enable the alarm function based on the completion instruction.
  • optical network module may also include other components used to implement its functions.
  • the optical network module may also include components such as memory.
  • the optical network terminal first sends a discovery response message to the optical line terminal at a rate less than the service rate, so that the optical line terminal obtains the information based on the discovery response message.
  • Equipment information of optical network terminals to complete terminal discovery of optical network terminals.
  • the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk.
  • the optical line terminal does not need to adjust the message processing parameters, so that it can use shorter
  • the frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration.
  • it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience.
  • the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium is a non-volatile computer-readable storage medium.
  • the computer-readable storage medium includes program instructions. When the program instructions are run on a computer device At this time, the computer device is caused to execute the device registration method provided by the embodiment of the present application.
  • An embodiment of the present application also provides a computer program product containing instructions.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the device registration method provided by the embodiment of the present application.
  • the terms “first”, “second” and “third” are only used for description purposes and cannot be understood as indicating or implying relative importance.
  • the term “at least one” refers to one or more, and the term “plurality” refers to two or more, unless expressly limited otherwise.
  • the information including but not limited to user equipment information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • messages involved in this application are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

Abstract

The present application relates to the technical field of device management, and discloses a device registration method and apparatus. The method comprises: an optical network terminal sends a discovery response packet to an optical line terminal, a rate of sending the discovery response packet by the optical network terminal being less than a service rate, and the service rate being a rate of sending a service packet by the optical network terminal; the optical line terminal obtains device information of the optical network terminal on the basis of the discovery response packet; and the optical network terminal sends an authorization response packet to the optical line terminal at the service rate, the authorization response packet comprising at least one of a test packet and the service packet. The present application can effectively ensure the registration efficiency of the optical network terminal.

Description

设备的注册方法及装置Device registration method and device
本申请要求于2022年04月22日提交的申请号为202210431791.8、发明名称为“设备的注册方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210431791.8 and the invention name "Equipment Registration Method and Device" submitted on April 22, 2022, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及设备管理技术领域,特别涉及一种设备的注册方法及装置。The present application relates to the field of equipment management technology, and in particular to a device registration method and device.
背景技术Background technique
无源光网络(passive optical network,PON)包括光线路终端(optical line termination,OLT)、光配线网(optical distribution network,ODN)以及光网络终端(optical network termination,ONT)。OLT配置有光模块,OLT收发报文需要通过光模块实现。Passive optical network (PON) includes optical line termination (OLT), optical distribution network (ODN) and optical network termination (ONT). The OLT is configured with an optical module, and the OLT needs to use the optical module to send and receive messages.
PON凭借点到多点的架构,实现了网络节点和终端用户之间的连接。为降低PON的成本,PON可以使用低成本的光器件。低成本的光器件主要体现为低带宽器件。低带宽器件接收的高速报文会存在码间串扰(inter symbol interference,ISI)。目前,可以在光模块中采用数字信号处理技术,利用数字信号处理器(digital signal processor,DSP)的均衡功能消除ISI。在实现均衡功能时,DSP可以根据接收到的报文确定报文处理参数,并根据该报文处理参数实现消除报文的ISI等目的。确定报文处理参数的过程是使报文处理参数从初始状态到收敛的过程,该过程需要一定的时间。PON relies on a point-to-multipoint architecture to realize the connection between network nodes and end users. To reduce the cost of PON, PON can use low-cost optical devices. Low-cost optical devices are mainly low-bandwidth devices. High-speed messages received by low-bandwidth devices will have inter-symbol interference (ISI). Currently, digital signal processing technology can be used in optical modules and the equalization function of the digital signal processor (DSP) can be used to eliminate ISI. When implementing the balancing function, the DSP can determine the packet processing parameters based on the received packets, and eliminate the ISI of the packets based on the packet processing parameters. The process of determining the packet processing parameters is the process of changing the packet processing parameters from the initial state to convergence, and this process takes a certain amount of time.
通常地,在ONT的注册过程中,ONT可以向OLT发送具有较长长度的训练序列,以便于DSP在该训练序列的时长内使报文处理参数收敛。Generally, during the registration process of the ONT, the ONT can send a training sequence with a longer length to the OLT, so that the DSP can converge the packet processing parameters within the duration of the training sequence.
但是,这样会增加ONT注册所耗费的时长,影响在同一时段向OLT注册的多个ONT的注册效率。However, this will increase the time it takes for ONT registration and affect the registration efficiency of multiple ONTs that register with the OLT during the same period.
发明内容Contents of the invention
本申请提供了一种设备的注册方法及装置。本申请能够有效保证光网络终端的注册效率。本申请提供的技术方案如下:This application provides a device registration method and device. This application can effectively ensure the registration efficiency of optical network terminals. The technical solutions provided by this application are as follows:
第一方面,本申请提供了一种设备的注册方法。该方法应用于无源光网络。无源光网络包括:光网络终端和光线路终端。该方法包括:光网络终端向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率;光线路终端基于发现响应报文获取光网络终端的设备信息;光网络终端以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。其中,发现响应报文携带有光网络终端的设备信息(如序列号)。并且,考虑到光线路终端获取光网络终端的设备信息是为了对光网络终端进行终端发现,且完成对光网络终端的终端发现之后,光线路终端才能向该光网络终端分配光网络终端标识以及授权带宽,光网络终端才能够向光线路终端发送除发现响应报文外的其他报文(如授权响应报文)。因此,此处向光线路终端发送授权响应报文的光网络终端,实际是已被获取设备信息的光网络终端。并且,本文中在光网络终端被获取设备信息之后执行的操作,实际均为被获取设备信息的光网络终 端执行的操作。In the first aspect, this application provides a device registration method. This method is applied to passive optical networks. Passive optical networks include: optical network terminals and optical line terminals. The method includes: the optical network terminal sends a discovery response message to the optical line terminal, the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message; the optical line terminal responds based on the discovery response The message obtains the device information of the optical network terminal; the optical network terminal sends an authorization response message to the optical line terminal at the service rate, and the authorization response message includes at least one of a test message and a service message. Among them, the discovery response message carries equipment information (such as serial number) of the optical network terminal. Furthermore, considering that the optical line terminal obtains the equipment information of the optical network terminal in order to perform terminal discovery on the optical network terminal, and after completing the terminal discovery on the optical network terminal, the optical line terminal can assign the optical network terminal identifier and the optical network terminal identifier to the optical network terminal. Only when the bandwidth is authorized can the optical network terminal be able to send other messages (such as authorization response messages) in addition to the discovery response message to the optical line terminal. Therefore, the optical network terminal that sends the authorization response message to the optical line terminal here is actually the optical network terminal that has obtained the device information. Moreover, in this article, the operations performed after the optical network terminal obtains the device information are actually operations performed by the optical network terminal whose device information is obtained.
由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。其中,报文出现碰撞是指在点到多点的无源光网络架构中,在光线路终端允许未注册的多个光网络终端在指定时间内进行注册时,光线路终端在收到某个光网络终端的发现响应报文时也会收到其他光网络终端的发现响应报文。Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Among them, packet collision means that in the point-to-multipoint passive optical network architecture, when the optical line terminal allows multiple unregistered optical network terminals to register within a specified time, the optical line terminal receives a When the discovery response message of the optical network terminal is received, the discovery response message of other optical network terminals will also be received.
发现响应报文用于供光线路终端获取光网络终端的设备信息,从而实现对光网络终端的终端发现。在一种实现方式中,发现响应报文携带有光网络终端的序列号等设备信息。则光线路终端基于发现响应报文获取光网络终端的设备信息,包括:光线路终端从发现响应报文中提取光网络终端的序列号。The discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal. In one implementation, the discovery response message carries device information such as the serial number of the optical network terminal. Then the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the optical line terminal extracts the serial number of the optical network terminal from the discovery response message.
并且,在光线路终端基于发现响应报文获取光网络终端的设备信息之后,该方法还包括:光线路终端为光网络终端分配光网络终端标识,并向光网络终端发送光网络终端标识。在接收到光网络终端标识后,光网络终端可以以该光网络终端标识与光线路终端进行交互。例如,光网络终端以业务速率,向光线路终端发送授权响应报文,包括:光网络终端以业务速率,向光线路终端发送携带有光网络终端标识的授权响应报文。Moreover, after the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, the method also includes: the optical line terminal allocates an optical network terminal identifier to the optical network terminal, and sends the optical network terminal identifier to the optical network terminal. After receiving the optical network terminal identification, the optical network terminal can interact with the optical line terminal using the optical network terminal identification. For example, the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: the optical network terminal sends an authorization response message carrying the optical network terminal identifier to the optical line terminal at the service rate.
其中,光网络终端发送报文的速率的大小,可以通过光线路终端提取出报文耗费的时长反映。例如,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,两个速率的区别可以通过以下内容表现:光线路终端提取出以小于业务速率的速率发送的该相同报文耗费的时长,小于提取出以业务速率发送的该相同报文耗费的时长。其中,光线路终端提取出报文是指光线路终端正确地提取出该报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容相同时,才能称为光线路终端提取出发送端发送的报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容不同时,不能称为光线路终端提取出发送端发送的报文。Among them, the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate smaller than the service rate and at the service rate, the difference between the two rates can be expressed by the following content: The optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate. Wherein, the optical line terminal extracting the message means that the optical line terminal correctly extracts the message. When the content of the message extracted by the optical line terminal is the same as the content of the message sent by the sending end, it can be said that the optical line terminal has extracted the message sent by the sending end. When the content of the message extracted by the optical line terminal is different from the content of the message sent by the sending end, it cannot be said that the optical line terminal has extracted the message sent by the sending end.
可选地,光网络终端发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal reports The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
根据不同的应用场景,授权响应报文的实现方式不同。下面以以下两种实现方式为例对其进行说明:According to different application scenarios, the authorization response message is implemented in different ways. The following two implementation methods are used as examples to illustrate them:
在一种实现方式中,授权响应报文包括测试报文,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端向光线路终端发送测距响应报文,光网络终端发送测距响应报文的速率小于业务速率;光线路终端基于测距响应报文,对光网络终端分配均衡时延。In one implementation, the authorization response message includes a test message. Before the optical network terminal sends the authorization response message to the optical line terminal at the service rate, the method further includes: the optical network terminal sends a ranging message to the optical line terminal. In response to the message, the rate at which the optical network terminal sends the ranging response message is less than the service rate; the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message.
由于发送测距响应报文的速率小于业务速率,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高对光网络终端测距的效率,缩短了光网络终端完成注册所耗费的时长。Since the rate of sending ranging response messages is lower than the service rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further improving the optical network terminal. The efficiency of network terminal ranging shortens the time it takes for optical network terminals to complete registration.
可选的,光网络终端发送测距响应报文的速率可以小于参考速率,业务速率可以大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line The terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
并且,在该实现方式中,由于授权响应报文包括测试报文,且授权响应报文的发送速率为业务速率,则光线路终端对报文进行均衡处理。因此,该方法还包括:光线路终端基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Moreover, in this implementation manner, since the authorization response message includes a test message, and the sending rate of the authorization response message is the service rate, the optical line terminal performs equalization processing on the message. Therefore, the method also includes: the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
在另一种实现方式中,授权响应报文为业务报文。即授权响应报文不包括测试报文,只包括业务报文。在该实现方式中,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列;光线路终端基于测试序列,调整光线路终端的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延。其中,报文处理参数用于对光线路终端接收到的报文进行处理。In another implementation manner, the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages. In this implementation, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate. The range response message includes a test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. Among them, the message processing parameters are used to process the messages received by the optical line terminal.
在一种可实现方式中,报文处理参数包括:时钟相位偏差、均衡系数和/或模拟均衡电路的参数等物理层参数。In an implementation manner, the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
可选地,光线路终端包括光模块。此时,调整光线路终端的报文处理参数,包括:调整光模块的报文处理参数。并且,当由处理器基于报文处理参数消除报文的码间串扰时,具体是处理器调整报文处理参数。Optionally, the optical line terminal includes an optical module. At this time, adjust the packet processing parameters of the optical line terminal, including adjusting the packet processing parameters of the optical module. Moreover, when the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
可选地,光线路终端包括光模块和接入控制器时,在光线路终端基于发现响应报文获取光网络终端的设备信息之前,该方法还包括:光模块接收发现响应报文;光模块以业务速率,向接入控制器转发发现响应报文;光线路终端基于发现响应报文获取光网络终端的设备信息,包括:接入控制器基于以业务速率发送的发现响应报文,获取光网络终端的设备信息。Optionally, when the optical line terminal includes an optical module and an access controller, before the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, the method further includes: the optical module receives the discovery response message; the optical module The discovery response message is forwarded to the access controller at the service rate; the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the optical network terminal based on the discovery response message sent at the service rate. Device information of the network terminal.
由于配置报文指示的速率为光网络终端发送业务报文的业务速率,且光网络终端发送发现响应报文的速率小于业务速率,因此,通过光模块以业务速率向接入控制器转发发现响应报文,能够保证接入控制器接收到符合配置报文指示的发现响应报文,避免接入控制器因接收到错误速率的报文发生告警。Since the rate indicated by the configuration message is the service rate at which the optical network terminal sends service messages, and the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response is forwarded to the access controller through the optical module at the service rate. message, it can ensure that the access controller receives discovery response messages that comply with the configuration message instructions, and prevent the access controller from generating alarms due to receiving messages with an incorrect rate.
类似的,当光线路终端包括光模块和接入控制器时,在光线路终端基于测距响应报文,对光网络终端分配均衡时延之前,该方法还包括:光模块接收测距响应报文;光模块以业务速率,向接入控制器转发测距响应报文;光线路终端基于测距响应报文,对光网络终端分配均衡时延,包括:接入控制器基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。Similarly, when the optical line terminal includes an optical module and an access controller, before the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, the method also includes: the optical module receives the ranging response message. text; the optical module forwards the ranging response message to the access controller at the service rate; the optical line terminal allocates balanced delay to the optical network terminal based on the ranging response message, including: the access controller sends the ranging response message at the service rate The ranging response message is allocated to the optical network terminal with balanced delay.
可选地,该方法还包括:光模块向接入控制器发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。Optionally, the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
在一种实现方式中,类型指示可以通过标志位实现,当该标志位携带第一参数值时,表示光网络终端需要进行速率切换,当该标志位携带第二参数值时,表示光网络终端不需要进 行速率切换。并且,类型指示可以通过指示光网络终端发送发现响应报文的速率,实现对光网络终端是否需要进行速率切换的指示。例如,当类型指示指示光网络终端发送发现响应报文的速率小于业务速率时,接入控制器根据该指示可以确定光网络终端需要进行速率切换。在一种实现方式中,光模块可以在向接入控制器发送的发现响应报文的校验位中携带类型指示。In one implementation, the type indication can be implemented through a flag bit. When the flag bit carries a first parameter value, it indicates that the optical network terminal needs to perform rate switching. When the flag bit carries a second parameter value, it indicates that the optical network terminal needs to perform rate switching. No rate switching is required. Furthermore, the type indication can indicate whether the optical network terminal needs to perform rate switching by instructing the optical network terminal at a rate at which the discovery response message is sent. For example, when the type indication indicates that the rate at which the optical network terminal sends discovery response messages is less than the service rate, the access controller may determine that the optical network terminal needs to perform rate switching based on the indication. In one implementation, the optical module may carry the type indication in the check bit of the discovery response message sent to the access controller.
完成对光网络终端的终端发现和测距后,光网络终端就可以以业务速率与光线路终端进行通信。例如,光网络终端以业务速率向光线路终端发送测试报文和业务报文。因此,在一种实现方式中,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光线路终端向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。After completing the terminal discovery and ranging of the optical network terminal, the optical network terminal can communicate with the optical line terminal at the service rate. For example, the optical network terminal sends test packets and service packets to the optical line terminal at the service rate. Therefore, in one implementation, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method further includes: the optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical line terminal to The network terminal sends messages to the optical line terminal at the service rate.
可选地,速率切换指令可以根据类型指示发送。例如,接入控制器若接收到类型指示,且类型指示用于指示光网络终端需要进行速率切换,则接入控制器可以通过光模块向光网络终端发送速率切换指令。并且,在向光网络终端发送速率切换指令时,可以向光网络终端连续发出多条速率切换指令,以确保光网络终端能够接收到速率切换指令。Optionally, rate switching instructions may be sent according to the type indication. For example, if the access controller receives a type indication, and the type indication is used to indicate that the optical network terminal needs to perform rate switching, the access controller can send a rate switching instruction to the optical network terminal through the optical module. Moreover, when sending a rate switching instruction to the optical network terminal, multiple rate switching instructions can be sent continuously to the optical network terminal to ensure that the optical network terminal can receive the rate switching instruction.
或者,光模块也可以不向接入控制器发送类型指示,此时,接入控制器可以不根据类型指示做出向光网络终端发送速率切换指令的决策。在一种可实现方式中,接入控制器在完成对光网络终端的分配均衡时延后,若确定光网络终端以业务速率发送的报文不会影响光线路终端的正常功能,即可通过光模块向光网络终端发送速率切换指令。Alternatively, the optical module may not send a type indication to the access controller. In this case, the access controller may not make a decision to send a rate switching instruction to the optical network terminal based on the type indication. In an implementable manner, after the access controller completes the allocation equalization delay to the optical network terminal, if it determines that the packets sent by the optical network terminal at the service rate will not affect the normal functions of the optical line terminal, it can pass The optical module sends rate switching instructions to the optical network terminal.
另外,在光模块调整报文处理参数时,其向接入控制器发送的报文为没有完全解析出来的错误的报文,为避免因错误的报文引起告警,接入控制器做出向光网络终端发送速率切换指令的决策后,可以关闭该接入控制器的告警功能。In addition, when the optical module adjusts the packet processing parameters, the packets it sends to the access controller are incorrect packets that have not been fully parsed. In order to avoid alarms caused by incorrect packets, the access controller makes a After the optical network terminal sends the decision of the rate switching instruction, the alarm function of the access controller can be turned off.
在光模块完成对报文处理参数的调整后,光模块可以向接入控制器发送完成指令,以指示光模块已完成报文处理参数的调整,使得接入控制器能够根据该完成指令正常执行后续的操作。After the optical module completes the adjustment of the packet processing parameters, the optical module can send a completion command to the access controller to indicate that the optical module has completed the adjustment of the packet processing parameters, so that the access controller can execute normally according to the completion command. Subsequent operations.
可选地,为保证接入控制器告警功能的正常使用,在光模块向接入控制器发送完成指令之后,该方法还包括:接入控制器基于完成指令开启告警功能。Optionally, in order to ensure the normal use of the alarm function of the access controller, after the optical module sends a completion instruction to the access controller, the method further includes: the access controller turns on the alarm function based on the completion instruction.
第二方面,本申请提供了一种设备的注册方法。该方法应用于光网络终端。该方法包括:光网络终端向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率;光网络终端以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。In the second aspect, this application provides a device registration method. This method is applied to optical network terminals. The method includes: the optical network terminal sends a discovery response message to the optical line terminal; the rate at which the optical network terminal sends the discovery response message is less than the service rate; the service rate is the rate at which the optical network terminal sends the service message; the optical network terminal sends the discovery response message at the service rate; , sending an authorization response message to the optical line terminal, where the authorization response message includes at least one of a test message and a service message.
可选地,在光网络终端向光线路终端发送发现响应报文之后,该方法还包括:光网络终端接收光线路终端为光网络终端分配的光网络终端标识。光网络终端接收到光网络终端标识后,可以以该光网络终端标识与光线路终端进行交互。例如,光网络终端以业务速率,向光线路终端发送授权响应报文,包括:光网络终端以业务速率,向光线路终端发送携带有光网络终端标识的授权响应报文。其中,光网络终端标识是光线路终端基于发现响应报文获取光网络终端的设备信息后,为光网络终端分配的。发现响应报文用于供光线路终端获取光网络终端的设备信息,从而实现对光网络终端的终端发现。在一种实现方式中,发现响应报文携带有光网络终端的序列号。Optionally, after the optical network terminal sends the discovery response message to the optical line terminal, the method further includes: the optical network terminal receives the optical network terminal identification assigned by the optical line terminal to the optical network terminal. After the optical network terminal receives the optical network terminal identifier, it can interact with the optical line terminal using the optical network terminal identifier. For example, the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: the optical network terminal sends an authorization response message carrying the optical network terminal identifier to the optical line terminal at the service rate. Among them, the optical network terminal identifier is assigned to the optical network terminal after the optical line terminal obtains the device information of the optical network terminal based on the discovery response message. The discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal. In an implementation manner, the discovery response message carries the serial number of the optical network terminal.
可选地,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,光线路终端提取出以小于业务速率的速率发送的相同报文耗费的时长,小于提取出以业务速率发送的相同报文耗费的时长。Optionally, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate. The time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
可选地,光网络终端发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal reports The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
可选地,授权响应报文包括测试报文,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端向光线路终端发送测距响应报文,光网络终端发送测距响应报文的速率小于业务速率。Optionally, the authorization response message includes a test message. Before the optical network terminal sends the authorization response message to the optical line terminal at the service rate, the method further includes: the optical network terminal sends a ranging response message to the optical line terminal. , the rate at which the optical network terminal sends ranging response messages is less than the service rate.
可选地,光网络终端发送测距响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
可选地,授权响应报文为业务报文。即授权响应报文不包括测试报文,只包括业务报文。在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列。Optionally, the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages. Before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate, and the ranging response message includes a test sequence.
可选地,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端接收光线路终端发送的速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method further includes: the optical network terminal receives a rate switching instruction sent by the optical line terminal, and the rate switching instruction instructs the optical network terminal to transmit the authorization response message at the service rate. Send packets to the optical line terminal at the rate.
可选地,光网络终端以业务速率,向光线路终端发送授权响应报文,包括:光网络终端在接收到速率切换指令之后,以业务速率向光线路终端发送授权响应报文。Optionally, the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including: after receiving the rate switching instruction, the optical network terminal sends an authorization response message to the optical line terminal at the service rate.
第三方面,本申请提供了一种设备的注册方法。该方法应用于光线路终端。该方法包括:光线路终端接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率;光线路终端基于发现响应报文获取光网络终端的设备信息;光线路终端接收光网络终端以业务速率发送的授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。In the third aspect, this application provides a device registration method. This method is applied to optical line terminals. The method includes: the optical line terminal receives the discovery response message sent by the optical network terminal, the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message; the optical line terminal is based on discovery The response message obtains the device information of the optical network terminal; the optical line terminal receives an authorization response message sent by the optical network terminal at a service rate, and the authorization response message includes at least one of a test message and a service message.
发现响应报文用于供光线路终端获取光网络终端的设备信息,从而实现对光网络终端的终端发现。在一种实现方式中,发现响应报文携带有光网络终端的序列号。光线路终端基于发现响应报文获取光网络终端的设备信息,包括:光线路终端从发现响应报文中提取光网络终端的序列号。The discovery response message is used for the optical line terminal to obtain the device information of the optical network terminal, thereby realizing terminal discovery of the optical network terminal. In an implementation manner, the discovery response message carries the serial number of the optical network terminal. The optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the optical line terminal extracts the serial number of the optical network terminal from the discovery response message.
并且,在光线路终端基于发现响应报文获取光网络终端的设备信息之后,该方法还包括:光线路终端为光网络终端分配光网络终端标识,并向光网络终端发送光网络终端标识。光网络终端在接收到光网络终端标识后,可以以该光网络终端标识与光线路终端进行交互。例如,光线路终端接收光网络终端以业务速率发送的授权响应报文,包括:光线路终端接收光网络终端以业务速率发送的授权响应报文,该授权响应报文携带有光网络终端标识。Moreover, after the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, the method also includes: the optical line terminal allocates an optical network terminal identifier to the optical network terminal, and sends the optical network terminal identifier to the optical network terminal. After receiving the optical network terminal identifier, the optical network terminal can interact with the optical line terminal using the optical network terminal identifier. For example, the optical line terminal receiving an authorization response message sent by the optical network terminal at the service rate includes: the optical line terminal receiving the authorization response message sent by the optical network terminal at the service rate, and the authorization response message carries the optical network terminal identifier.
可选地,授权响应报文包括测试报文,在光线路终端接收光网络终端以业务速率发送的授权响应报文之前,该方法还包括:光线路终端接收光网络终端发送的测距响应报文,光网 络终端发送测距响应报文的速率小于业务速率;光线路终端基于测距响应报文,对光网络终端分配均衡时延。Optionally, the authorization response message includes a test message. Before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate, the method further includes: the optical line terminal receives the ranging response message sent by the optical network terminal. According to the text, the rate at which the optical network terminal sends ranging response messages is lower than the service rate; the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response messages.
可选地,该方法还包括:光线路终端基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Optionally, the method also includes: the optical line terminal adjusts message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process messages received by the optical line terminal.
可选地,授权响应报文为业务报文。即授权响应报文不包括测试报文,只包括业务报文。在光线路终端接收光网络终端以业务速率发送的授权响应报文之前,该方法还包括:光线路终端接收光网络终端以业务速率发送的测距响应报文,该测距响应报文包括测试序列;光线路终端基于测试序列,调整光线路终端的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延。其中,报文处理参数用于对光线路终端接收到的报文进行处理。Optionally, the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages. Before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate, the method also includes: the optical line terminal receives the ranging response message sent by the optical network terminal at the service rate, and the ranging response message includes the test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. Among them, the message processing parameters are used to process the messages received by the optical line terminal.
可选地,报文处理参数包括:时钟相位偏差和/或均衡系数。Optionally, the message processing parameters include: clock phase deviation and/or equalization coefficient.
可选地,光线路终端包括光模块。此时,调整光线路终端的报文处理参数,包括:调整光模块的报文处理参数。并且,当由处理器基于报文处理参数消除报文的码间串扰时,具体是处理器调整报文处理参数。Optionally, the optical line terminal includes an optical module. At this time, adjust the packet processing parameters of the optical line terminal, including adjusting the packet processing parameters of the optical module. Moreover, when the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
可选地,光线路终端包括光模块和接入控制器时,在光线路终端基于发现响应报文获取光网络终端的设备信息之前,该方法还包括:光模块接收发现响应报文;光模块以业务速率,向接入控制器转发发现响应报文;光线路终端基于发现响应报文获取光网络终端的设备信息,包括:接入控制器基于以业务速率发送的发现响应报文,获取光网络终端的设备信息。Optionally, when the optical line terminal includes an optical module and an access controller, before the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, the method further includes: the optical module receives the discovery response message; the optical module The discovery response message is forwarded to the access controller at the service rate; the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the optical network terminal based on the discovery response message sent at the service rate. Device information of the network terminal.
可选地,光线路终端包括光模块和接入控制器时,在光线路终端基于测距响应报文,对光网络终端分配均衡时延之前,该方法还包括:光模块接收测距响应报文;光模块以业务速率,向接入控制器转发测距响应报文;光线路终端基于测距响应报文,对光网络终端分配均衡时延,包括:接入控制器基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。Optionally, when the optical line terminal includes an optical module and an access controller, before the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, the method further includes: the optical module receives the ranging response message. text; the optical module forwards the ranging response message to the access controller at the service rate; the optical line terminal allocates balanced delay to the optical network terminal based on the ranging response message, including: the access controller sends the ranging response message at the service rate The ranging response message is allocated to the optical network terminal with balanced delay.
可选地,该方法还包括:光模块向接入控制器发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。Optionally, the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
可选地,在光线路终端接收光网络终端以业务速率发送的授权响应报文之前,该方法还包括:光线路终端向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate, the method also includes: the optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to transmit at the service rate. Send messages to optical line terminals.
可选地,光线路终端还包括接入控制器,在光线路终端基于测试报文调整光线路终端的报文处理参数之前,该方法还包括:接入控制器关闭告警功能。Optionally, the optical line terminal further includes an access controller. Before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message, the method further includes: the access controller turns off the alarm function.
可选地,光线路终端包括光模块和接入控制器,且光线路终端用于基于测试报文调整光线路终端的报文处理参数时,在光线路终端基于测试报文调整光线路终端的报文处理参数之后,该方法还包括:光模块向接入控制器发送完成指令,完成指令用于指示光模块已完成报文处理参数的调整。Optionally, the optical line terminal includes an optical module and an access controller, and when the optical line terminal is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message. After the message processing parameters are set, the method also includes: the optical module sends a completion instruction to the access controller, and the completion instruction is used to indicate that the optical module has completed the adjustment of the message processing parameters.
可选地,在光模块向接入控制器发送完成指令之后,该方法还包括:接入控制器基于完成指令开启告警功能。Optionally, after the optical module sends the completion instruction to the access controller, the method further includes: the access controller turns on the alarm function based on the completion instruction.
第四方面,本申请提供了一种无源光网络。无源光网络包括:光网络终端和光线路终端。光网络终端用于执行本申请第二方面以及其任一种可能的实现方式中提供的方法;光线路终端用于执行本申请第三方面以及其任一种可能的实现方式中提供的方法。In the fourth aspect, this application provides a passive optical network. Passive optical networks include: optical network terminals and optical line terminals. The optical network terminal is used to perform the method provided in the second aspect of the application and any possible implementation manner thereof; the optical line terminal is used to perform the method provided in the third aspect of the application and any possible implementation manner thereof.
例如,光网络终端用于向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率;光线路终端用于基于发现响应报文获取光网络终端的设备信息;光网络终端用于以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。For example, the optical network terminal is used to send discovery response messages to the optical line terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages; the optical line terminal is used to send discovery response messages based on The discovery response message obtains the device information of the optical network terminal; the optical network terminal is used to send an authorization response message to the optical line terminal at a service rate, and the authorization response message includes at least one of a test message and a service message.
其中,光网络终端发送报文的速率的大小,可以通过光线路终端提取出报文耗费的时长反映。例如,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,光线路终端提取出以小于业务速率的速率发送的相同报文耗费的时长,小于提取出以业务速率发送的相同报文耗费的时长。Among them, the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the cost of the same message sent at a rate less than the service rate The time is less than the time it takes to extract the same message sent at the service rate.
可选地,光网络终端发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal reports The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
在一种实现方式中,授权响应报文包括测试报文,光网络终端还用于向光线路终端发送测距响应报文,光网络终端发送测距响应报文的速率小于业务速率;光线路终端还用于基于测距响应报文,对光网络终端分配均衡时延。In one implementation, the authorization response message includes a test message, and the optical network terminal is also used to send a ranging response message to the optical line terminal. The rate at which the optical network terminal sends the ranging response message is less than the service rate; the optical line terminal The terminal is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
可选的,光网络终端发送测距响应报文的速率可以小于参考速率,业务速率可以大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line The terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
可选地,光线路终端还用于基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Optionally, the optical line terminal is also used to adjust the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
在另一种实现方式中,授权响应报文为业务报文。即授权响应报文不包括测试报文,只包括业务报文。在该实现方式中,在光网络终端以业务速率,向光线路终端发送授权响应报文之前,该方法还包括:光网络终端以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列;光线路终端基于测试序列,调整光线路终端的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延。其中,报文处理参数用于对光线路终端接收到的报文进行处理。In another implementation manner, the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages. In this implementation, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method also includes: the optical network terminal sends a ranging response message to the optical line terminal at the service rate. The range response message includes a test sequence; the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. Among them, the message processing parameters are used to process the messages received by the optical line terminal.
在一种可实现方式中,报文处理参数包括:时钟相位偏差、均衡系数和/或模拟均衡电路的参数等物理层参数。In an implementation manner, the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
可选地,光线路终端包括光模块。此时,光模块具体用于调整光模块的报文处理参数。并且,当由处理器基于报文处理参数消除报文的码间串扰时,具体是处理器基于测试报文调整报文处理参数。Optionally, the optical line terminal includes an optical module. At this time, the optical module is specifically used to adjust the packet processing parameters of the optical module. Moreover, when the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters based on the test message.
可选地,光线路终端包括光模块和接入控制器时,光模块还用于接收发现响应报文;光模块还用于以业务速率,向接入控制器转发发现响应报文;接入控制器用于基于以业务速率发送的发现响应报文,获取光网络终端的设备信息。Optionally, when the optical line terminal includes an optical module and an access controller, the optical module is also used to receive the discovery response message; the optical module is also used to forward the discovery response message to the access controller at the service rate; the access controller The controller is used to obtain the device information of the optical network terminal based on the discovery response message sent at the service rate.
可选地,光线路终端包括光模块和接入控制器时,光模块还用于接收测距响应报文;光模块还用于以业务速率,向接入控制器转发测距响应报文;接入控制器具体用于基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。Optionally, when the optical line terminal includes an optical module and an access controller, the optical module is also used to receive the ranging response message; the optical module is also used to forward the ranging response message to the access controller at the service rate; The access controller is specifically used to allocate balanced delays to optical network terminals based on ranging response messages sent at the service rate.
可选地,光模块还用于向接入控制器发送类型指示,类型指示用于指示光网络终端是否 需要进行速率切换。Optionally, the optical module is also used to send a type indication to the access controller. The type indication is used to indicate whether the optical network terminal needs to perform rate switching.
可选地,光线路终端还用于在光网络终端以业务速率,向光线路终端发送测试报文之前,向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the optical line terminal is also used to send a rate switching instruction to the optical network terminal before the optical network terminal sends a test message to the optical line terminal at the service rate. The rate switching instruction instructs the optical network terminal to send the test message to the optical line terminal at the service rate. The terminal sends the message.
可选地,光线路终端还包括接入控制器,接入控制器还用于在光线路终端基于测试报文调整光线路终端的报文处理参数之前,关闭告警功能。Optionally, the optical line terminal further includes an access controller, and the access controller is further configured to turn off the alarm function before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
可选地,光线路终端包括光模块和接入控制器,且光模块用于基于测试报文调整光线路终端的报文处理参数时,光模块还用于向接入控制器发送完成指令,完成指令用于指示光模块已完成报文处理参数的调整。Optionally, the optical line terminal includes an optical module and an access controller, and when the optical module is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical module is also used to send a completion instruction to the access controller, The completion command is used to indicate that the optical module has completed the adjustment of message processing parameters.
可选地,接入控制器还用于基于完成指令开启告警功能。Optionally, the access controller is also used to enable the alarm function based on the completion instruction.
第五方面,本申请提供了一种光网络终端。光网络终端包括:发送模块,用于向光线路终端发送发现响应报文,发送模块发送发现响应报文的速率小于业务速率,业务速率为发送模块发送业务报文的速率;发送模块,还用于以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。In a fifth aspect, this application provides an optical network terminal. The optical network terminal includes: a sending module, which is used to send discovery response messages to the optical line terminal. The rate at which the sending module sends discovery response messages is less than the service rate, and the service rate is the rate at which the sending module sends service messages; the sending module also uses The authorization response message is sent to the optical line terminal at the service rate, and the authorization response message includes at least one of a test message and a service message.
可选地,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,光线路终端提取出以小于业务速率的速率发送的相同报文耗费的时长,小于提取出以业务速率发送的相同报文耗费的时长。Optionally, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate. The time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
可选地,发送模块发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the sending module sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal responds to the message Perform equalization processing. When the transmission rate of packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
可选地,授权响应报文包括测试报文,发送模块还用于向光线路终端发送测距响应报文,发送模块发送测距响应报文的速率小于业务速率。Optionally, the authorization response message includes a test message, and the sending module is also used to send a ranging response message to the optical line terminal. The rate at which the sending module sends the ranging response message is less than the service rate.
可选地,发送模块发送测距响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不对报文进行均衡处理。Optionally, the rate at which the sending module sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal reports The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not perform equalization processing on the packets.
可选地,授权响应报文为业务报文,即授权响应报文不包括测试报文,只包括业务报文。发送模块还用于以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列。Optionally, the authorization response message is a service message, that is, the authorization response message does not include the test message, but only the service message. The sending module is also used to send a ranging response message to the optical line terminal at the service rate, where the ranging response message includes a test sequence.
可选地,光网络终端还包括:接收模块,用于在发送模块以业务速率向光线路终端发送测试报文之前,接收光线路终端发送的速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the optical network terminal also includes: a receiving module, configured to receive a rate switching instruction sent by the optical line terminal before the sending module sends a test message to the optical line terminal at a service rate. The rate switching instruction instructs the optical network terminal to transmit a test message at a service rate. Send packets to the optical line terminal at the rate.
可选地,发送模块,具体用于基于速率切换指令,以业务速率向光线路终端发送测试报文。Optionally, the sending module is specifically configured to send the test message to the optical line terminal at the service rate based on the rate switching instruction.
第六方面,本申请提供了一种光线路终端。光线路终端包括收发模块和处理模块。收发模块,用于接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于 业务速率,业务速率为光网络终端发送业务报文的速率;处理模块,用于基于发现响应报文获取光网络终端的设备信息;收发模块,还用于接收光网络终端以业务速率发送的授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。In a sixth aspect, this application provides an optical line terminal. The optical line terminal includes a transceiver module and a processing module. The transceiver module is used to receive the discovery response message sent by the optical network terminal. The rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends the service message; the processing module is used for discovery-based The response message obtains the device information of the optical network terminal; the transceiver module is also used to receive an authorization response message sent by the optical network terminal at a service rate. The authorization response message includes at least one of a test message and a service message.
可选地,授权响应报文包括测试报文,收发模块还用于在接收光网络终端以业务速率发送的授权响应报文之前,接收光网络终端发送的测距响应报文,光网络终端发送测距响应报文的速率小于业务速率;处理模块还用于基于测距响应报文,对光网络终端分配均衡时延。Optionally, the authorization response message includes a test message. The transceiver module is also configured to receive a ranging response message sent by the optical network terminal before receiving the authorization response message sent by the optical network terminal at the service rate. The optical network terminal sends The rate of the ranging response message is lower than the service rate; the processing module is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
可选地,处理模块还用于基于测试报文,调整报文处理参数,报文处理参数用于对处理模块接收到的报文进行处理。Optionally, the processing module is also used to adjust message processing parameters based on the test message, and the message processing parameters are used to process the messages received by the processing module.
可选地,授权响应报文为业务报文。即授权响应报文不包括测试报文,只包括业务报文。收发模块还用于在接收光网络终端以业务速率发送的授权响应报文之前,接收光网络终端以业务速率发送的测距响应报文,该测距响应报文包括测试序列;处理模块还用于基于测试序列,调整光线路终端的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延,报文处理参数用于对处理模块接收到的报文进行处理。Optionally, the authorization response message is a service message. That is, the authorization response message does not include test messages, but only business messages. The transceiver module is also used to receive the ranging response message sent by the optical network terminal at the service rate before receiving the authorization response message sent by the optical network terminal at the service rate. The ranging response message includes the test sequence; the processing module also uses Based on the test sequence, the message processing parameters of the optical line terminal are adjusted, and based on the ranging response message, a balanced delay is allocated to the optical network terminal. The message processing parameters are used to process the messages received by the processing module.
可选地,报文处理参数包括:时钟相位偏差和/或均衡系数。Optionally, the message processing parameters include: clock phase deviation and/or equalization coefficient.
可选地,收发模块还用于接收测距响应报文,以业务速率,向所处理模块转发测距响应报文;处理模块具体用于基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。Optionally, the transceiver module is also used to receive the ranging response message, and forward the ranging response message to the processed module at the service rate; the processing module is specifically used to perform optical processing based on the ranging response message sent at the service rate. Network terminals allocate balanced delays.
可选地,收发模块,还用于向处理模块发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。Optionally, the transceiver module is also configured to send a type indication to the processing module, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
可选地,处理模块,还用于在接收光网络终端以业务速率发送的授权响应报文之前,通过收发模块向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the processing module is also configured to send a rate switching instruction to the optical network terminal through the transceiver module before receiving the authorization response message sent by the optical network terminal at the service rate. The rate switching instruction instructs the optical network terminal to send the optical network terminal at the service rate. The line terminal sends the message.
可选地,处理模块,还用于在调整报文处理参数之前,关闭告警功能。Optionally, the processing module is also used to turn off the alarm function before adjusting the message processing parameters.
可选地,收发模块,还用于在调整报文处理参数之后,向处理模块发送完成指令,完成指令用于指示收发模块已完成报文处理参数的调整。Optionally, the transceiver module is also configured to send a completion instruction to the processing module after adjusting the message processing parameters. The completion instruction is used to indicate that the transceiver module has completed the adjustment of the message processing parameters.
可选地,处理模块,还用于基于完成指令开启告警功能。Optionally, the processing module is also used to enable the alarm function based on the completion instruction.
第七方面,本申请提供了一种光网络终端,包括存储器和处理器,存储器存储有程序指令,处理器运行程序指令以执行本申请第二方面以及其任一种可能的实现方式中提供的方法。In the seventh aspect, the present application provides an optical network terminal, including a memory and a processor. The memory stores program instructions, and the processor runs the program instructions to execute the second aspect of the application and any possible implementation thereof. method.
第八方面,本申请提供了一种光线路终端,包括存储器和处理器,存储器存储有程序指令,处理器运行程序指令以执行本申请第三方面以及其任一种可能的实现方式中提供的方法。In an eighth aspect, this application provides an optical line terminal, including a memory and a processor. The memory stores program instructions, and the processor runs the program instructions to execute the method provided in the third aspect of this application and any possible implementation manner thereof. method.
第九方面,本申请提供了一种计算机可读存储介质,该计算机可读存储介质为非易失性计算机可读存储介质,该计算机可读存储介质包括程序指令,当程序指令在计算机设备上运行时,使得计算机设备执行本申请第二方面以及其任一种可能的实现方式中提供的方法,或者,执行本申请第三方面以及其任一种可能的实现方式中提供的方法。In a ninth aspect, the application provides a computer-readable storage medium. The computer-readable storage medium is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are stored on a computer device, When running, the computer device is caused to execute the method provided in the second aspect of the application and any possible implementation manner thereof, or to execute the method provided in the third aspect of the application and any possible implementation manner thereof.
第十方面,本申请提供了一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行本申请第二方面以及其任一种可能的实现方式中提供的方法,或 者,执行本申请第三方面以及其任一种可能的实现方式中提供的方法。In a tenth aspect, this application provides a computer program product containing instructions. When the computer program product is run on a computer, it causes the computer to execute the method provided in the second aspect of this application and any possible implementation thereof, or , execute the method provided in the third aspect of this application and any possible implementation manner thereof.
附图说明Description of the drawings
图1是本申请实施例提供的一种设备的注册方法涉及的应用场景的示意图;Figure 1 is a schematic diagram of an application scenario involved in a device registration method provided by an embodiment of the present application;
图2是本申请实施例提供的一种光线路终端的结构示意图;Figure 2 is a schematic structural diagram of an optical line terminal provided by an embodiment of the present application;
图3是本申请实施例提供的一种光网络终端的结构示意图;Figure 3 is a schematic structural diagram of an optical network terminal provided by an embodiment of the present application;
图4是本申请实施例提供的一种设备的注册方法的流程图;Figure 4 is a flow chart of a device registration method provided by an embodiment of the present application;
图5是本申请实施例提供的另一种设备的注册方法的流程图;Figure 5 is a flow chart of another device registration method provided by an embodiment of the present application;
图6是本申请实施例提供的再一种设备的注册方法的流程图;Figure 6 is a flow chart of yet another device registration method provided by an embodiment of the present application;
图7是本申请实施例提供的一种光网络终端实现设备的注册方法的流程图;Figure 7 is a flow chart of a method for registering an optical network terminal device provided by an embodiment of the present application;
图8是本申请实施例提供的一种光线路终端实现设备的注册方法的流程图;Figure 8 is a flow chart of a registration method for an optical line terminal implementation device provided by an embodiment of the present application;
图9是本申请实施例提供的另一种光线路终端实现设备的注册方法的流程图;Figure 9 is a flow chart of another registration method for optical line terminal implementation equipment provided by an embodiment of the present application;
图10是本申请实施例提供的另一种光网络终端的结构示意图;Figure 10 is a schematic structural diagram of another optical network terminal provided by an embodiment of the present application;
图11是本申请实施例提供的另一种光线路终端的结构示意图。Figure 11 is a schematic structural diagram of another optical line terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
图1是本申请实施例提供的一种设备的注册方法涉及的应用场景的示意图。如图1所示,该应用场景包括:光线路终端200和光网络终端300。其中,光线路终端是指提供光接入网的网络侧接口。光网络终端是无源光网络的用户侧设备,用户终端可以通过该光网络终端接入网络。光网络终端通过与光线路终端配合,能够向与其连接的用户终端提供各种宽带服务。Figure 1 is a schematic diagram of an application scenario involved in a device registration method provided by an embodiment of the present application. As shown in Figure 1, this application scenario includes: optical line terminal 200 and optical network terminal 300. Among them, the optical line terminal refers to the network side interface that provides the optical access network. The optical network terminal is the user-side device of the passive optical network, and the user terminal can access the network through the optical network terminal. By cooperating with optical line terminals, optical network terminals can provide various broadband services to user terminals connected to them.
光线路终端和光网络终端之间通过光配线网连接。包括光线路终端、光网络终端和光配线网的系统可称为无源光网络。并且,光线路终端可以通过光配线网连接多个光网络终端。此时,包括光线路终端和光网络终端的无源光网络为点到多点的无源光网络。The optical line terminal and the optical network terminal are connected through an optical distribution network. Systems including optical line terminals, optical network terminals and optical distribution networks can be called passive optical networks. Moreover, the optical line terminal can connect multiple optical network terminals through the optical distribution network. At this time, the passive optical network including the optical line terminal and the optical network terminal is a point-to-multipoint passive optical network.
在光线路终端向光网络终端发送报文的下行方向,光线路终端通过广播向与其连接的光网络终端发送报文,每个光网络终端收到报文后,可以从报文中选出属于自己的内容。在光网络终端向光线路终端发送报文的上行方向,各个光网络终端通过时分复用(time division multiplexing,TDM)的方式,在指定的时隙内以突发包的形式与光线路终端通信,从而避免各个光网络终端之间的碰撞。为了实现TDM的接入方式,在与光线路终端实现业务数据的通信之前,光网络终端需要向光线路终端注册,即完成从开机上电到注册的过程。该过程包括:光线路终端对光网络终端的终端发现过程和测距过程。为了实现光网络终端的注册,光线路终端通常会周期性地让已经完成注册的光网络终端静默,即光线路终端在指定时段内不向已经完成注册的光网络终端分配带宽,并使待注册的光网络终端在该指定时段内与光线路终端交互注册相关的报文。并且,注册相关的报文通常很短(例如几十个字节),这样在这段时间可以有多个光网络终端进行注册,进而提高注册效率。In the downstream direction where the optical line terminal sends a message to the optical network terminal, the optical line terminal sends a message to the optical network terminal connected to it through broadcast. After receiving the message, each optical network terminal can select the message belonging to the optical network terminal. own content. In the upstream direction where the optical network terminal sends messages to the optical line terminal, each optical network terminal communicates with the optical line terminal in the form of burst packets within the designated time slot through time division multiplexing (TDM). , thereby avoiding collisions between various optical network terminals. In order to implement the TDM access method, before realizing service data communication with the optical line terminal, the optical network terminal needs to register with the optical line terminal, that is, complete the process from power on to registration. This process includes: terminal discovery process and ranging process from the optical line terminal to the optical network terminal. In order to realize the registration of optical network terminals, optical line terminals usually silence optical network terminals that have completed registration periodically. That is, the optical line terminal does not allocate bandwidth to optical network terminals that have completed registration within a specified period of time, and allows the optical network terminals that have completed registration to be silent. The optical network terminal interacts with the optical line terminal to register related messages within the specified period. Moreover, registration-related messages are usually very short (for example, dozens of bytes), so that multiple optical network terminals can register during this period, thereby improving registration efficiency.
为了降低无源光网络的成本,可以在无源光网络中使用具有较低带宽的光电器件。但是,具有较低带宽的光电器件收发高速报文会出现码间串扰。In order to reduce the cost of passive optical networks, optoelectronic devices with lower bandwidth can be used in passive optical networks. However, when optoelectronic devices with lower bandwidth send and receive high-speed messages, inter-code crosstalk will occur.
为了解决码间串扰的问题,如图2所示,光线路终端200可以包括光模块201。光线路 终端200依靠该光模块201收发报文。且该光模块201包括处理器2011,该处理器2011能够根据接收到的报文,调整其报文处理参数,并利用调整后的报文处理参数实现其均衡功能,从而对报文的码间串扰进行校正。可选地,处理器2011可以为数字信号处理器(digital signal processor,DSP)。其中,调整报文处理参数的过程是将处理器2011的报文处理参数从初始状态调整至收敛的过程。完成报文处理参数的调整后,光模块201才能根据接收到的报文解析出有效的信息,否则无法解析出信息,或者无法解析出正确的信息。并且,不同光网络终端对应的报文处理参数可能不同,因此,处理器2011需要针对不同光网络终端调整报文处理参数。In order to solve the problem of inter-symbol crosstalk, as shown in Figure 2, the optical line terminal 200 may include an optical module 201. The optical line terminal 200 relies on the optical module 201 to send and receive messages. And the optical module 201 includes a processor 2011. The processor 2011 can adjust its message processing parameters according to the received message, and use the adjusted message processing parameters to realize its equalization function, thereby adjusting the inter-code of the message. Crosstalk is corrected. Optionally, the processor 2011 may be a digital signal processor (DSP). The process of adjusting the packet processing parameters is a process of adjusting the packet processing parameters of the processor 2011 from the initial state to convergence. Only after the adjustment of the message processing parameters is completed, the optical module 201 can parse the valid information according to the received message. Otherwise, the information cannot be parsed, or the correct information cannot be parsed. Moreover, the message processing parameters corresponding to different optical network terminals may be different. Therefore, the processor 2011 needs to adjust the message processing parameters for different optical network terminals.
在本申请实施例中,光线路终端200、光模块201和处理器2011可以有多种存在形态。在一种实现方式中,光模块201可以与光线路终端200互相独立,且光模块201可以外接在光线路终端200上。例如,光线路终端200可以为具有插槽的设备,光模块201可以插在该插槽中。但由于这种存在形态下的光线路终端需要依靠光模块收发报文,因此,外接有光模块的光线路终端和光模块组成的整体也可称为光线路终端。并且,在这种情况下,处理器2011可以位于光模块201内部,或者,处理器2011也可以位于光线路终端200的内部,本申请实施例对其不做具体限定。在另一种实现方式中,用于实现光模块201功能的元件可以为光线路终端200中的组件。此时,用于实现光模块201功能的元件组成的整体通常不称为光模块,但为便于描述,本文也将其称为光模块。并且,在这种情况下,处理器2011也是光线路终端200中的组件。In the embodiment of the present application, the optical line terminal 200, the optical module 201 and the processor 2011 can exist in various forms. In an implementation manner, the optical module 201 can be independent of the optical line terminal 200, and the optical module 201 can be externally connected to the optical line terminal 200. For example, the optical line terminal 200 may be a device having a slot, and the optical module 201 may be inserted into the slot. However, since the optical line terminal in this form of existence needs to rely on the optical module to send and receive messages, the optical line terminal with an external optical module and the optical module as a whole can also be called an optical line terminal. Moreover, in this case, the processor 2011 may be located inside the optical module 201, or the processor 2011 may also be located inside the optical line terminal 200, which is not specifically limited in the embodiment of this application. In another implementation manner, the components used to implement the functions of the optical module 201 may be components in the optical line terminal 200 . At this time, the entire set of components used to implement the functions of the optical module 201 is usually not called an optical module, but for convenience of description, it is also referred to as an optical module in this article. And, in this case, the processor 2011 is also a component in the optical line terminal 200.
目前,在多个光网络终端的注册过程中,每个光网络终端都需要以业务速率,向光线路终端200发送具有较长长度的训练序列,以便于处理器2011在该训练序列的时长内调整报文处理参数。但是,较长长度的训练序列会增加光网络终端注册所耗费的时长,且由于待注册的多个光网络终端的报文在静默窗口内出现在随机位置,易发生碰撞,因此会影响在同一时段向光线路终端200注册的多个光网络终端的注册效率。Currently, during the registration process of multiple optical network terminals, each optical network terminal needs to send a training sequence with a longer length to the optical line terminal 200 at a service rate, so that the processor 2011 can complete the training sequence within the duration of the training sequence. Adjust packet processing parameters. However, a longer training sequence will increase the time it takes for optical network terminals to register, and since the messages of multiple optical network terminals to be registered appear at random locations within the silent window, collisions are prone to occur, thus affecting the performance of the same optical network terminal. The registration efficiency of multiple optical network terminals registered to the optical line terminal 200 during a period.
在本申请实施例中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端200注册的多个光网络终端的注册效率,从而提高用户业务体验。In this embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the device information of the optical network terminal based on the discovery response message and completes the discovery of the optical network terminal. Terminal discovery. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively The registration efficiency of multiple optical network terminals registered to the optical line terminal 200 during the same period is guaranteed, thereby improving user service experience.
光网络终端发送报文的速率的大小,可以通过光线路终端提取出报文耗费的时长反映。例如,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,两个速率的区别可以通过以下内容表现:光线路终端提取出以小于业务速率的速率发送的该相同报文耗费的时长,小于提取出以业务速率发送的该相同报文耗费的时长。其中,光线路终端提取出报文是指光线路终端正确地提取出该报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容相同时,才能称为光线路终端提取出发送端发送的报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容不同时,不能称 为光线路终端提取出发送端发送的报文。The rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the message to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate smaller than the service rate and at the service rate, the difference between the two rates can be expressed by the following content: The optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate. Wherein, the optical line terminal extracting the message means that the optical line terminal correctly extracts the message. When the content of the message extracted by the optical line terminal is the same as the content of the message sent by the sending end, it can be said that the optical line terminal has extracted the message sent by the sending end. When the content of the message extracted by the optical line terminal is different from the content of the message sent by the sending end, it cannot be said that the optical line terminal has extracted the message sent by the sending end.
可选地,光网络终端发送发现响应报文的速率可以小于参考速率,业务速率可以大于或等于参考速率。该参考速率可以为光线路终端需要对报文进行均衡处理的临界速率。也即是,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages may be less than the reference rate, and the service rate may be greater than or equal to the reference rate. The reference rate may be the critical rate at which the optical line terminal needs to equalize packets. That is, when the transmission rate of the packets sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to equalize the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, , the optical line terminal does not need to equalize the packets.
在一种可实现方式中,均衡处理可以用于消除报文的码间串扰。此时,参考速率可以为采用光网络终端发送报文时,导致报文出现码间串扰的临界发送速率。此时,当光网络终端发送报文的发送速率小于参考速率时,光线路终端200接收的报文不会出现码间串扰,光线路终端就不需要调整报文处理参数。当光网络终端发送报文的发送速率大于或等于参考速率时,光线路终端200接收的报文会出现码间串扰,光线路终端就需要调整报文处理参数。因此,本申请实施例涉及的光网络终端可以均为业务速率大于或等于参考速率的光网络终端。In an implementation manner, equalization processing can be used to eliminate inter-code crosstalk of messages. At this time, the reference rate can be the critical sending rate that causes inter-code crosstalk in the message when the optical network terminal is used to send the message. At this time, when the transmission rate of packets sent by the optical network terminal is less than the reference rate, the packets received by the optical line terminal 200 will not cause inter-code crosstalk, and the optical line terminal does not need to adjust the packet processing parameters. When the transmission rate of packets sent by the optical network terminal is greater than or equal to the reference rate, inter-code crosstalk will occur in the packets received by the optical line terminal 200, and the optical line terminal needs to adjust packet processing parameters. Therefore, the optical network terminals involved in the embodiments of this application may all be optical network terminals with a service rate greater than or equal to the reference rate.
可选地,本申请实施例中的报文处理参数可以包括:时钟相位偏差、均衡系数和/或模拟均衡电路的参数等物理层参数。Optionally, the message processing parameters in the embodiment of the present application may include physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
并且,如图2所示,光线路终端200还可以包括接入控制器205。光线路终端200依靠接入控制器205对光网络终端的网络接入进行控制。例如,该接入控制器205可以对光网络终端进行终端发现,为光网络终端分配均衡时延,以及,对光网络终端进行业务授权等。在一种实现方式中,该接入控制器205可以为媒体接入控制器(media access controller,MAC)。Moreover, as shown in Figure 2, the optical line terminal 200 may also include an access controller 205. The optical line terminal 200 relies on the access controller 205 to control the network access of the optical network terminal. For example, the access controller 205 can perform terminal discovery on optical network terminals, allocate balanced delays to optical network terminals, and perform service authorization on optical network terminals. In one implementation, the access controller 205 may be a media access controller (media access controller, MAC).
进一步的,如图2所示,光线路终端200还可以包括处理器2011、无源光网卡、网关路由器、语音网关和上行链路卡等,本申请实施例对其不做具体限定。Further, as shown in Figure 2, the optical line terminal 200 may also include a processor 2011, a passive optical network card, a gateway router, a voice gateway, an uplink card, etc., which are not specifically limited in the embodiment of this application.
图2是本申请实施例提供的一种光线路终端的结构示意图。并且,图2为光模块201为光线路终端200中组件的示意图。如图2所示,该光线路终端200包括光模块201、存储器202、通信接口203、总线204和接入控制器205。其中,光模块201包括处理器2011。光模块201、存储器202、通信接口203通过总线204实现彼此之间的通信连接。并且,该光线路终端200可以包括多个处理器,以便于通过不同的处理器实现上述不同功能模块的功能。Figure 2 is a schematic structural diagram of an optical line terminal provided by an embodiment of the present application. Moreover, FIG. 2 is a schematic diagram of the optical module 201 being a component in the optical line terminal 200. As shown in Figure 2, the optical line terminal 200 includes an optical module 201, a memory 202, a communication interface 203, a bus 204 and an access controller 205. Among them, the optical module 201 includes a processor 2011. The optical module 201, the memory 202, and the communication interface 203 realize communication connections with each other through the bus 204. Furthermore, the optical line terminal 200 may include multiple processors, so that different processors can implement the functions of the above-mentioned different functional modules.
处理器可以包括通用处理器和/或专用硬件芯片。通用处理器可以包括:中央处理器(central processing unit,CPU)、微处理器或图形处理器(graphics processing unit,GPU)。CPU例如是一个单核处理器(single-CPU),又如是一个多核处理器(multi-CPU)。专用硬件芯片是一个高性能处理的硬件模块。专用硬件芯片包括数字信号处理器、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)或者网络处理器(network processer,NP)中的至少一项。处理器还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请的设备的注册方法的部分或全部功能,可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。Processors may include general-purpose processors and/or special-purpose hardware chips. General-purpose processors can include: central processing unit (CPU), microprocessor or graphics processing unit (GPU). The CPU is, for example, a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A dedicated hardware chip is a high-performance processing hardware module. Specialized hardware chips include at least one of a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a network processor (NP) One item. The processor can also be an integrated circuit chip with signal processing capabilities. During the implementation process, part or all of the functions of the device registration method of this application can be completed by instructions in the form of hardware integrated logic circuits or software in the processor.
存储器202用于存储计算机程序,计算机程序包括操作系统202a和可执行代码202b。存储器202例如是只读存储器或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器、只读光盘或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的可执行代码并能够由计算机存取的任何其它介质,但不限于此。 例如存储器202用于存放出端口队列等。存储器202例如是独立存在,并通过总线204与处理器相连接。或者存储器202和处理器集成在一起。存储器202可以存储可执行代码,当存储器202中存储的可执行代码被处理器执行时,处理器用于执行本申请实施例提供的设备的注册方法。存储器202中还可以包括操作系统等其他运行进程所需的软件模块和数据等。The memory 202 is used to store computer programs, including an operating system 202a and executable code 202b. The memory 202 is, for example, a read-only memory or other type of static storage device that can store static information and instructions, or a random access memory or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable memory device. Read memory, read-only disc or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store Without limitation, any other medium that represents the desired executable code in the form of instructions or data structures and can be accessed by a computer. For example, the memory 202 is used to store outbound port queues, etc. The memory 202 exists independently, for example, and is connected to the processor through a bus 204 . Or the memory 202 and the processor are integrated together. The memory 202 may store executable code. When the executable code stored in the memory 202 is executed by the processor, the processor is used to execute the device registration method provided by the embodiment of the present application. The memory 202 may also include operating systems and other software modules and data required for running processes.
通信接口203使用例如但不限于收发器一类的收发模块,来实现光线路终端200与其他设备或通信网络之间的通信。例如,通信接口203可以是以下器件的任一种或任一种组合:网络接口(如以太网接口)、无线网卡等具有网络接入功能的器件。The communication interface 203 uses a transceiver module such as but not limited to a transceiver to implement communication between the optical line terminal 200 and other devices or communication networks. For example, the communication interface 203 may be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
总线204是任何类型的,用于实现光线路终端200的内部器件(例如,存储器202、处理器、通信接口203)互连的通信总线,例如系统总线。本申请实施例以光线路终端200内部的上述器件通过总线204互连为例说明。可选地,光线路终端200内部的上述器件还可以采用除了总线204之外的其他连接方式彼此通信连接。例如光线路终端200内部的上述器件通过光线路终端200内部的逻辑接口互连。The bus 204 is any type of communication bus used to interconnect internal devices (eg, memory 202, processor, communication interface 203) of the optical line terminal 200, such as a system bus. This embodiment of the present application takes the interconnection of the above-mentioned devices inside the optical line terminal 200 through the bus 204 as an example. Optionally, the above-mentioned devices inside the optical line terminal 200 can also communicate with each other using other connection methods besides the bus 204 . For example, the above-mentioned devices inside the optical line terminal 200 are interconnected through logical interfaces inside the optical line terminal 200 .
在一种实现方式中,光网络终端可以为“光猫”等设备。图3是本申请实施例提供的一种光网络终端的结构示意图。如图3所示,该光网络终端300包括处理器301、存储器302、通信接口303以及总线304。其中,存储器302、处理器301、通信接口303通过总线304实现彼此之间的通信连接。并且,该光网络终端300可以包括多个处理器301,以便于通过不同的处理器实现上述不同功能模块的功能。In an implementation manner, the optical network terminal can be a device such as an "optical cat". Figure 3 is a schematic structural diagram of an optical network terminal provided by an embodiment of the present application. As shown in FIG. 3 , the optical network terminal 300 includes a processor 301 , a memory 302 , a communication interface 303 and a bus 304 . Among them, the memory 302, the processor 301, and the communication interface 303 implement communication connections between each other through the bus 304. Furthermore, the optical network terminal 300 may include multiple processors 301 so that different processors can implement the functions of the above-mentioned different functional modules.
处理器301可以包括通用处理器和/或专用硬件芯片。通用处理器可以包括:中央处理器、微处理器或图形处理器。CPU例如是一个单核处理器,又如是一个多核处理器。专用硬件芯片是一个高性能处理的硬件模块。专用硬件芯片包括专用集成电路、现场可编程逻辑门阵列或者网络处理器中的至少一项。处理器301还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请的设备的注册方法的部分或全部功能可以通过处理器301中的硬件的集成逻辑电路或者软件形式的指令完成。 Processor 301 may include a general-purpose processor and/or a special-purpose hardware chip. General purpose processors may include: central processing units, microprocessors, or graphics processors. The CPU is, for example, a single-core processor or a multi-core processor. A dedicated hardware chip is a high-performance processing hardware module. Special-purpose hardware chips include at least one of an application-specific integrated circuit, a field-programmable logic gate array, or a network processor. The processor 301 may also be an integrated circuit chip with signal processing capabilities. During the implementation process, part or all of the functions of the device registration method of the present application can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 301 .
存储器302用于存储计算机程序,计算机程序包括操作系统302a和可执行代码302b。存储器302例如是只读存储器或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器、只读光盘或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的可执行代码并能够由计算机存取的任何其它介质,但不限于此。例如存储器302用于存放出端口队列等。存储器302例如是独立存在,并通过总线304与处理器301相连接。或者存储器302和处理器301集成在一起。存储器302可以存储可执行代码,当存储器302中存储的可执行代码被处理器301执行时,处理器301用于执行本申请实施例提供的设备的注册方法。存储器302中还可以包括操作系统等其他运行进程所需的软件模块和数据等。The memory 302 is used to store computer programs, including an operating system 302a and executable code 302b. The memory 302 is, for example, a read-only memory or other type of static storage device that can store static information and instructions, or a random access memory or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable memory device. Read memory, read-only disc or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store Without limitation, any other medium that represents the desired executable code in the form of instructions or data structures and can be accessed by a computer. For example, the memory 302 is used to store outbound port queues, etc. The memory 302 exists independently, for example, and is connected to the processor 301 through a bus 304 . Or the memory 302 and the processor 301 are integrated together. The memory 302 can store executable code. When the executable code stored in the memory 302 is executed by the processor 301, the processor 301 is used to execute the device registration method provided by the embodiment of the present application. The memory 302 may also include operating systems and other software modules and data required for running processes.
通信接口303使用例如但不限于收发器一类的收发模块,来实现光网络终端300与其他设备或通信网络之间的通信。例如,通信接口303可以是以下器件的任一种或任一种组合:网络接口(如以太网接口)、无线网卡等具有网络接入功能的器件。The communication interface 303 uses a transceiver module such as but not limited to a transceiver to implement communication between the optical network terminal 300 and other devices or communication networks. For example, the communication interface 303 may be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
总线304是任何类型的,用于实现光网络终端300的内部器件(例如,存储器302、处理器301、通信接口303)互连的通信总线,例如系统总线。本申请实施例以光网络终端300内 部的上述器件通过总线304互连为例说明,可选地,光网络终端300内部的上述器件还可以采用除了总线304之外的其他连接方式彼此通信连接,例如光网络终端300内部的上述器件通过光网络终端300内部的逻辑接口互连。The bus 304 is any type of communication bus used to interconnect internal devices (for example, the memory 302, the processor 301, the communication interface 303) of the optical network terminal 300, such as a system bus. The embodiment of the present application takes the above-mentioned devices inside the optical network terminal 300 as being interconnected through the bus 304 as an example. Optionally, the above-mentioned devices inside the optical network terminal 300 can also communicate with each other using other connection methods besides the bus 304. For example, the above-mentioned devices inside the optical network terminal 300 are interconnected through logical interfaces inside the optical network terminal 300 .
需要说明的是,上述光网络终端和光线路终端中的多个器件可以分别设置在彼此独立的芯片上,也可以至少部分的或者全部的设置在同一块芯片上。将各个器件独立设置在不同的芯片上,还是整合设置在一个或者多个芯片上,往往取决于产品设计的需要。本申请实施例对上述器件的具体实现形式不做限定。且上述各个附图对应的流程的描述各有侧重,某个流程中没有详述的部分,可以参见其他流程的相关描述。It should be noted that the multiple devices in the above-mentioned optical network terminal and optical line terminal can be respectively provided on independent chips, or at least part or all of them can be provided on the same chip. Whether each device is independently installed on different chips or integrated on one or more chips often depends on the needs of product design. The embodiments of this application do not limit the specific implementation forms of the above devices. The descriptions of the processes corresponding to each of the above drawings have different emphases. For parts that are not detailed in a certain process, you can refer to the relevant descriptions of other processes.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。提供程序开发平台的计算机程序产品包括一个或多个计算机指令,在计算机设备上加载和执行这些计算机程序指令时,全部或部分地实现本申请实施例提供的设备的注册方法的流程或功能。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product that provides a program development platform includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer device, the process or function of the device registration method provided by the embodiment of the present application is fully or partially implemented.
并且,计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质存储有提供程序开发平台的计算机程序指令。Furthermore, computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted over a wired connection from a website, computer, server or data center. (such as coaxial cable, optical fiber, digital subscriber line or wireless (such as infrared, wireless, microwave, etc.) to transmit to another website, computer, server or data center. The computer-readable storage medium stores information that provides a program development platform Computer program instructions.
应当理解的是,以上内容是对本申请实施例提供的设备的注册方法的应用场景的示例性说明,并不构成对于设备的注册方法的应用场景的限定,本领域普通技术人员可知,随着业务需求的改变,其应用场景可以根据应用需求进行调整,本申请实施例对其不做一一列举。It should be understood that the above content is an exemplary description of the application scenarios of the device registration method provided by the embodiment of the present application, and does not constitute a limitation on the application scenarios of the device registration method. Those of ordinary skill in the art will know that with the business As the requirements change, the application scenarios can be adjusted according to the application requirements, and the embodiments of this application do not list them one by one.
在本申请实施例中,授权响应报文可以包括测试报文和业务报文中的至少一个。当该授权响应报文包括的内容不同时,本申请实施例提供的设备的注册方法的实现过程不同。下面分别对其进行说明。并且,下面以光模块外接在光线路终端上,且处理器位于光模块内部为例,对本申请实施例提供的设备的注册方法的实现过程进行说明。In this embodiment of the present application, the authorization response message may include at least one of a test message and a service message. When the content included in the authorization response message is different, the implementation process of the device registration method provided by the embodiment of the present application is different. They are explained below. Furthermore, the following describes the implementation process of the device registration method provided by the embodiment of the present application, taking an example in which the optical module is externally connected to the optical line terminal and the processor is located inside the optical module.
当授权响应报文包括测试报文时,如图4所示,该设备的注册方法的实现过程包括以下步骤:When the authorization response message includes a test message, as shown in Figure 4, the implementation process of the device's registration method includes the following steps:
步骤401、光线路终端向光网络终端发送配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文。Step 401: The optical line terminal sends a configuration message to the optical network terminal. The configuration message is used to instruct the optical network terminal to send registration-related messages to the optical line terminal.
为了实现光网络终端的注册,光线路终端通常会周期性地让已经完成注册的光网络终端静默,即光线路终端在指定时段内不为已经完成注册的光网络终端分配带宽,并使待注册的光网络终端在该指定时段内与光线路终端交互注册相关的报文,以便基于该报文完成光网络终端的注册。其中,为了完成对光网络终端的注册,光线路终端需要对光网络终端进行终端发现,并获取完成终端发现的光网络终端到光线路终端的物理距离(即对光网络终端测距)。终端发现所需的报文包括:光网络终端向光线路终端发送的发现响应报文。该发现响应报文可以携带光网络终端的设备信息。例如光网络终端的序列号(serial number,SN)。测距所需的报文包括:光线路终端向指定光网络终端发送测距指示报文,及该光网络终端向光线路终端发送的测距响应报文。并且,该指定时段通常被称作光线路终端为待注册的光网络终端提供的静默窗口。In order to realize the registration of optical network terminals, optical line terminals usually silence optical network terminals that have completed registration periodically. That is, the optical line terminal does not allocate bandwidth to optical network terminals that have completed registration within a specified period of time. The optical network terminal interacts with the optical line terminal to register relevant messages within the specified period, so as to complete the registration of the optical network terminal based on the message. Among them, in order to complete the registration of the optical network terminal, the optical line terminal needs to perform terminal discovery on the optical network terminal and obtain the physical distance from the optical network terminal to the optical line terminal after the terminal discovery is completed (that is, ranging from the optical network terminal). The messages required for terminal discovery include: discovery response messages sent by the optical network terminal to the optical line terminal. The discovery response message may carry equipment information of the optical network terminal. For example, the serial number (SN) of an optical network terminal. The messages required for ranging include: the ranging indication message sent by the optical line terminal to the designated optical network terminal, and the ranging response message sent by the optical network terminal to the optical line terminal. Moreover, this designated period is usually called a silent window provided by the optical line terminal for the optical network terminal to be registered.
通常地,一个静默窗口支持一种速率的光网络终端的注册过程。因此,在静默窗口到来之前,光线路终端可以向待注册的光网络终端发送配置报文,以指示该静默窗口内何种速率的光网络终端可以发起注册,使得对应速率的光网络终端在该静默窗口与光线路终端交互注册相关的报文。在一种实现方式中,光线路终端可以向待注册的光网络终端广播配置报文。并且,该配置报文可以为突发包配置(burst-profile)报文。其中,某种速率的光网络终端是指以该速率发送业务报文的光网络终端。例如,以10吉比特每秒(gigabit per second,Gbps)的速率发送业务报文的光网络终端可称为10Gbps的光网络终端。以50Gbps的速率发送业务报文的光网络终端可称为50Gbps的光网络终端。Typically, a silent window supports the registration process of optical network terminals at one rate. Therefore, before the silent window arrives, the optical line terminal can send a configuration message to the optical network terminal to be registered to indicate what speed optical network terminal can initiate registration within the silent window, so that the optical network terminal with the corresponding speed can initiate registration within the silent window. The silent window interacts with the optical line terminal to register messages related to it. In an implementation manner, the optical line terminal may broadcast the configuration message to the optical network terminal to be registered. Furthermore, the configuration message may be a burst-profile message. Among them, an optical network terminal with a certain rate refers to an optical network terminal that sends service packets at the rate. For example, an optical network terminal that sends service messages at a rate of 10 gigabit per second (Gbps) can be called a 10Gbps optical network terminal. An optical network terminal that sends service messages at a rate of 50Gbps can be called a 50Gbps optical network terminal.
光线路终端依靠光模块收发报文,并且,光线路终端中的接入控制器用于决策静默窗口支持何种速率的光网络终端的注册过程。因此,接入控制器可以向光模块指示静默窗口支持何种速率,并由光模块基于接入控制器的指示向光网络终端发送配置报文。在一种实现方式中,接入控制器可以在向光模块发送的报文的编码校验位中携带静默窗口支持的速率,并由光模块提取该信息及完成报文的编码。The optical line terminal relies on the optical module to send and receive messages, and the access controller in the optical line terminal is used to decide what rate the silent window supports for the registration process of the optical network terminal. Therefore, the access controller can indicate to the optical module what rate the silent window supports, and the optical module sends a configuration message to the optical network terminal based on the instruction of the access controller. In one implementation, the access controller can carry the rate supported by the silent window in the encoding check bit of the message sent to the optical module, and the optical module extracts this information and completes the encoding of the message.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤401包括:步骤4011、接入控制器向光模块发送静默窗口支持的速率。以及,步骤4012、光模块向光网络终端发送配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文,且光网络终端为具有静默窗口支持的速率的光网络终端。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 401 includes: Step 4011: The access controller sends the rate supported by the silent window to the optical module. And, step 4012, the optical module sends a configuration message to the optical network terminal. The configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal, and the optical network terminal is an optical fiber with a rate supported by the silent window. Network terminal.
步骤402、光网络终端向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。Step 402: The optical network terminal sends a discovery response message to the optical line terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
待注册的光网络终端上电后可以侦听光线路终端发送的配置报文,并在配置报文指示的速率为光网络终端发送业务报文的速率时,在光线路终端提供的静默窗口中,向光线路终端发送发现响应报文。发现响应报文携带有光网络终端的设备信息(如序列号)。After the optical network terminal to be registered is powered on, it can listen to the configuration packet sent by the optical line terminal, and when the rate indicated by the configuration packet is the rate at which the optical network terminal sends service packets, in the silent window provided by the optical line terminal , sending a discovery response message to the optical line terminal. The discovery response message carries the device information (such as serial number) of the optical network terminal.
光网络终端发送报文的速率的大小,可以通过光线路终端提取出报文耗费的时长反映。例如,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,两个速率的区别可以通过以下内容表现:光线路终端提取出以小于业务速率的速率发送的该相同报文耗费的时长,小于提取出以业务速率发送的该相同报文耗费的时长。其中,光线路终端提取出报文是指光线路终端正确地提取出该报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容相同时,才能称为光线路终端提取出发送端发送的报文。当光线路终端提取出的报文的内容与发送端发送的报文的内容不同时,不能称为光线路终端提取出发送端发送的报文。The rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the message to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate smaller than the service rate and at the service rate, the difference between the two rates can be expressed by the following content: The optical line terminal extracts the The time it takes to send the same message at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate. Wherein, the optical line terminal extracting the message means that the optical line terminal correctly extracts the message. When the content of the message extracted by the optical line terminal is the same as the content of the message sent by the sending end, it can be said that the optical line terminal has extracted the message sent by the sending end. When the content of the message extracted by the optical line terminal is different from the content of the message sent by the sending end, it cannot be said that the optical line terminal has extracted the message sent by the sending end.
可选地,光网络终端发送发现响应报文的速率可以小于参考速率,业务速率可以大于或等于参考速率。该参考速率可以为光线路终端需要对报文进行均衡处理的临界速率。也即是,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages may be less than the reference rate, and the service rate may be greater than or equal to the reference rate. The reference rate may be the critical rate at which the optical line terminal needs to equalize packets. That is, when the transmission rate of the packets sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to equalize the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, , the optical line terminal does not need to equalize the packets.
在一种可实现方式中,均衡处理可以用于消除报文的码间串扰。此时,参考速率可以为采用光网络终端发送报文时,导致报文出现码间串扰的临界发送速率。也即是,当报文的发送速率大于或等于参考速率时,光线路终端接收到的报文会出现码间串扰,当报文的发送速率小于参考速率时,光线路终端接收到的报文不会出现码间串扰。光网络终端发送发现响应 报文的速率可以为小于参考速率的任一速率,或者,可以为无源光网络的上行速率中小于参考速率的任一个。例如,对于10Gbps的无源光网络,其上行速率包括2.5Gbps和10Gbps,参考速率为10Gbps,则光网络终端发送发现响应报文的速率可以为2.5Gbps或小于10Gbps的任一速率。对于50Gbgs的无源光网络,其上行速率包括12.5Gbps、25Gbps和50Gbps,参考速率为50Gbps,则光网络终端发送发现响应报文的速率可以为12.5Gbps、25Gbps或小于50Gbps的任一速率。In an implementation manner, equalization processing can be used to eliminate inter-code crosstalk of messages. At this time, the reference rate can be the critical sending rate that causes inter-code crosstalk in the message when the optical network terminal is used to send the message. That is to say, when the message sending rate is greater than or equal to the reference rate, the message received by the optical line terminal will have inter-code crosstalk. When the message sending rate is less than the reference rate, the message received by the optical line terminal will There will be no inter-symbol crosstalk. The rate at which the optical network terminal sends the discovery response message can be any rate lower than the reference rate, or it can be any upstream rate of the passive optical network that is lower than the reference rate. For example, for a 10Gbps passive optical network, the uplink rate includes 2.5Gbps and 10Gbps, and the reference rate is 10Gbps, then the rate at which the optical network terminal sends discovery response messages can be 2.5Gbps or any rate less than 10Gbps. For a 50Gbgs passive optical network, the uplink rates include 12.5Gbps, 25Gbps and 50Gbps. The reference rate is 50Gbps. The rate at which the optical network terminal sends discovery response messages can be 12.5Gbps, 25Gbps or any rate less than 50Gbps.
通过使用小于参考速率的速率发送发现响应报文,由于该报文不会出现码间串扰,无需使用光模块的均衡功能消除码间串扰,则光模块不会在接收发现响应报文的过程中调整光线路终端的报文处理参数,能够保证光线路终端成功接收到发现响应报文,提高了对光网络终端的终端发现的成功率。并且,由于该过程中不需要调整光线路终端的报文处理参数,使得能够使用较短的帧长完成终端发现,相对于通过发送较长训练序列调整光线路终端的报文处理参数的技术,避免了在终端发现过程中发送较长的训练序列,降低了碰撞概率,能够有效保证光网络终端的注册效率。By sending the discovery response message at a rate lower than the reference rate, since the message will not cause inter-code crosstalk, there is no need to use the equalization function of the optical module to eliminate inter-code crosstalk, and the optical module will not be in the process of receiving the discovery response message. Adjusting the message processing parameters of the optical line terminal can ensure that the optical line terminal successfully receives the discovery response message and improves the success rate of terminal discovery of the optical network terminal. Moreover, since there is no need to adjust the message processing parameters of the optical line terminal in this process, it is possible to use a shorter frame length to complete terminal discovery. Compared with the technology of adjusting the message processing parameters of the optical line terminal by sending a longer training sequence, It avoids sending a long training sequence during the terminal discovery process, reduces the probability of collision, and can effectively ensure the registration efficiency of optical network terminals.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤402包括:步骤4021、光网络终端以小于业务速率的速率向光模块发送发现响应报文。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 402 includes: Step 4021: The optical network terminal sends a discovery response message to the optical module at a rate smaller than the service rate.
步骤403、光线路终端基于发现响应报文获取光网络终端的设备信息。Step 403: The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
光网络终端向光线路终端发送发现响应报文后,光线路终端可以接收该发现响应报文,并根据该发现响应报文对光网络终端进行终端发现。在一种实现方式中,对光网络终端进行终端发现包括:基于发现响应报文获取光网络终端的设备信息。例如,光线路终端从发现响应报文中提取光网络终端的序列号。并且,在完成终端发现之后,光线路终端为该光网络终端分配光网络终端标识(ONT-ID),使得光网络终端与光线路终端根据该ONT-ID进行交互。After the optical network terminal sends a discovery response message to the optical line terminal, the optical line terminal can receive the discovery response message and perform terminal discovery on the optical network terminal based on the discovery response message. In one implementation manner, performing terminal discovery on the optical network terminal includes: obtaining device information of the optical network terminal based on the discovery response message. For example, the optical line terminal extracts the serial number of the optical network terminal from the discovery response message. Moreover, after completing the terminal discovery, the optical line terminal allocates an optical network terminal identification (ONT-ID) to the optical network terminal, so that the optical network terminal and the optical line terminal interact according to the ONT-ID.
可选地,当光线路终端包括光模块和接入控制器时,光线路终端可以通过光模块接收发现响应报文。此时,光线路终端对光网络终端进行终端发现的操作,可以由接入控制器执行。相应的,光模块接收发现响应报文后,可向接入控制器转发该发现响应报文。并且,由于配置报文指示的速率为光网络终端发送业务报文的业务速率,且光网络终端发送发现响应报文的速率小于业务速率,因此,光模块在接收以小于业务速率的速率发送的发现响应报文后,需要以业务速率向接入控制器转发发现响应报文,以保证接入控制器能够接收到符合配置报文指示的发现响应报文,避免接入控制器因接收到错误速率的报文发生告警。相应的,光线路终端基于发现响应报文获取光网络终端的设备信息,包括:接入控制器基于以业务速率发送的发现响应报文,获取光网络终端的设备信息。Optionally, when the optical line terminal includes an optical module and an access controller, the optical line terminal can receive the discovery response message through the optical module. At this time, the optical line terminal's terminal discovery operation for the optical network terminal can be performed by the access controller. Correspondingly, after receiving the discovery response message, the optical module can forward the discovery response message to the access controller. Moreover, since the rate indicated by the configuration message is the service rate at which the optical network terminal sends the service message, and the rate at which the optical network terminal sends the discovery response message is less than the service rate, the optical module cannot receive the service rate sent at a rate less than the service rate. After the discovery response message is discovered, the discovery response message needs to be forwarded to the access controller at the service rate to ensure that the access controller can receive the discovery response message that meets the configuration message instructions and to avoid the access controller receiving errors. An alarm occurs for packets at a certain rate. Correspondingly, the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including: the access controller obtains the device information of the optical network terminal based on the discovery response message sent at the service rate.
在一种实现方式中,为保证向光线路终端发送准确的发现响应报文,光模块接收到终端发送报文后,可以先通过速率识别该发现响应报文为以小于业务速率的速率发送的报文,并对该发现响应报文进行时钟恢复和判决。并且,由于配置报文经过该光模块发送至光网络终端,光模块能够获知静默窗口支持的业务速率,因此,在判决发现响应报文后,该光模块可以以业务速率向接入控制器发送判决得到的发现响应报文。In one implementation, in order to ensure that accurate discovery response messages are sent to the optical line terminal, after the optical module receives the message sent by the terminal, it can first use the rate to identify that the discovery response message is sent at a rate lower than the service rate. message, and perform clock recovery and judgment on the discovery response message. Moreover, since the configuration message is sent to the optical network terminal through the optical module, the optical module can learn the service rate supported by the silent window. Therefore, after the discovery response message is judged, the optical module can send the service rate to the access controller at the service rate. The discovery response message obtained by the judgment.
可选地,在光模块以业务速率向接入控制器转发发现响应报文时,还可以向接入控制器发送类型指示。该类型指示用于指示光网络终端是否需要进行速率切换。在一种实现方式中,由于光模块接收到的发现响应报文以小于业务速率的速率发送,光模块需要以业务速率向接入控制器转发发现响应报文,使得以业务速率发送的发现响应报文的发送时间小于以小于业 务速率的速率发送的发现响应报文的发送时间,则光模块可以在向接入控制器转发发现响应报文的时段内,向接入控制器发送类型指示。该类型指示可以通过标志位实现,当该标志位携带第一参数值时,表示光网络终端需要进行速率切换,当该标志位携带第二参数值时,表示光网络终端不需要进行速率切换。并且,类型指示可以通过指示光网络终端发送发现响应报文的速率,实现对光网络终端是否需要进行速率切换的指示。例如,当类型指示指示光网络终端发送发现响应报文的速率小于业务速率时,接入控制器根据该指示可以确定光网络终端需要进行速率切换。在一种实现方式中,光模块可以在向接入控制器发送的发现响应报文的校验位中携带类型指示。Optionally, when the optical module forwards the discovery response message to the access controller at the service rate, it can also send a type indication to the access controller. This type of indication is used to indicate whether the optical network terminal needs to perform rate switching. In one implementation, since the discovery response message received by the optical module is sent at a rate less than the service rate, the optical module needs to forward the discovery response message to the access controller at the service rate, so that the discovery response message sent at the service rate If the sending time of the message is less than the sending time of the discovery response message sent at a rate less than the service rate, the optical module can send the type indication to the access controller within the period of forwarding the discovery response message to the access controller. This type indication can be implemented through a flag bit. When the flag bit carries the first parameter value, it indicates that the optical network terminal needs to perform rate switching. When the flag bit carries the second parameter value, it indicates that the optical network terminal does not need to perform rate switching. Furthermore, the type indication can indicate whether the optical network terminal needs to perform rate switching by instructing the optical network terminal at a rate at which the discovery response message is sent. For example, when the type indication indicates that the rate at which the optical network terminal sends discovery response messages is less than the service rate, the access controller may determine that the optical network terminal needs to perform rate switching based on the indication. In one implementation, the optical module may carry the type indication in the check bit of the discovery response message sent to the access controller.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤403包括:步骤4031、光模块以业务速率向接入控制器转发发现响应报文。以及,步骤4032、接入控制器基于发现响应报文获取光网络终端的设备信息。并且,如图5所示,当光模块在该步骤403中向接入控制器发送类型指示时,该步骤403还包括:步骤4033、光模块向接入控制器发送类型指示。其中,图5示出了光模块在向接入控制器转发发现响应报文后,向接入控制器发送类型指示的过程。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 403 includes: Step 4031: The optical module forwards the discovery response message to the access controller at the service rate. And, step 4032, the access controller obtains the device information of the optical network terminal based on the discovery response message. Moreover, as shown in Figure 5, when the optical module sends a type indication to the access controller in step 403, step 403 also includes: step 4033: the optical module sends a type indication to the access controller. Among them, Figure 5 shows the process in which the optical module sends a type indication to the access controller after forwarding the discovery response message to the access controller.
步骤404、光线路终端向光网络终端发送测距指示报文。Step 404: The optical line terminal sends a ranging indication message to the optical network terminal.
光线路终端在完成对光网络终端的终端发现后,就可以进入对光网络终端测距的流程。为了对光网络终端测距,光线路终端可以向光网络终端发送测距指示报文,使得光网络终端根据该测距指示报文向光线路终端反馈测距指示报文。光线路终端获得光网络终端反馈的测距响应报文后,可以根据发出测距指示报文到收到测距响应报文的时延,确定光网络终端到该光线路终端的物理距离。After the optical line terminal completes the terminal discovery of the optical network terminal, it can enter the process of ranging the optical network terminal. In order to measure the distance between the optical network terminal and the optical network terminal, the optical line terminal may send the ranging indication message to the optical network terminal, so that the optical network terminal feeds back the ranging indication message to the optical line terminal according to the ranging indication message. After the optical line terminal obtains the ranging response message fed back by the optical network terminal, it can determine the physical distance from the optical network terminal to the optical line terminal based on the delay from sending the ranging indication message to receiving the ranging response message.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤404包括:步骤4041、接入控制器指示光模块向光网络终端发送测距指示报文。以及,步骤4042、光模块向光网络终端发送测距指示报文。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 404 includes: Step 4041: The access controller instructs the optical module to send a ranging indication message to the optical network terminal. And, step 4042, the optical module sends a ranging indication message to the optical network terminal.
步骤405、光网络终端向光线路终端发送测距响应报文,光网络终端发送测距响应报文的速率小于业务速率。Step 405: The optical network terminal sends a ranging response message to the optical line terminal. The rate at which the optical network terminal sends the ranging response message is less than the service rate.
光网络终端接收到光线路终端发送的测距指示报文后,可以小于业务速率的速率向光线路终端发送测距响应报文,以便于光线路终端基于该测距响应报文对光网络终端测距。在一种实现方式中,光网络终端发送测距响应报文的速率可以小于参考速率。当发送测距响应报文的速率小于参考速率时,测距响应报文不会导致光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,提高了对光网络终端测距的效率。After receiving the ranging indication message sent by the optical line terminal, the optical network terminal can send a ranging response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal can respond to the optical network terminal based on the ranging response message. Ranging. In an implementation manner, the rate at which the optical network terminal sends ranging response messages may be less than the reference rate. When the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, which improves the accuracy of the ranging response. Efficiency of optical network terminal ranging.
其中,发送测距响应报文的速率可以为小于参考速率的任一速率,或者,可以为无源光网络的上行速率中小于参考速率的任一个。并且,发送测距响应报文的速率可以等于发送发现响应报文的速率,或者,发送测距响应报文的速率也可以不等于发送发现响应报文的速率,本申请实施例对其不做具体限定。The rate at which the ranging response message is sent may be any rate lower than the reference rate, or may be any uplink rate of the passive optical network lower than the reference rate. Furthermore, the rate at which ranging response messages are sent may be equal to the rate at which discovery response messages are sent, or the rate at which ranging response messages are sent may not be equal to the rate at which discovery response messages are sent. This is not done in the embodiments of this application. Specific limitations.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤405包括:步骤4051、光网络终端以小于业务速率的速率向光模块发送测距响应报文。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 405 includes: Step 4051: The optical network terminal sends a ranging response message to the optical module at a rate lower than the service rate.
步骤406、光线路终端基于测距响应报文,对光网络终端进行测距,并根据对多个光网络终端的测距结果,对多个光网络终端分配均衡时延。Step 406: The optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates balanced delays to the multiple optical network terminals based on the ranging results on the multiple optical network terminals.
光网络终端向光线路终端发送测距响应报文后,光线路终端可以通过光模块接收该测距 响应报文,并根据该测距响应报文对光网络终端测距。例如,根据光线路终端发出测距指示报文到收到测距响应报文的时延,确定光网络终端到该光线路终端的物理距离。After the optical network terminal sends a ranging response message to the optical line terminal, the optical line terminal can receive the ranging response message through the optical module, and measure the ranging of the optical network terminal based on the ranging response message. For example, the physical distance from the optical network terminal to the optical line terminal is determined based on the time delay between the optical line terminal sending the ranging indication message and receiving the ranging response message.
可选地,光线路终端还包括接入控制器。此时,光线路终端对光网络终端测距的操作,可以由接入控制器执行。相应的,光模块接收测距响应报文后,可以业务速率向接入控制器转发该测距响应报文。并且,在光模块以业务速率向接入控制器转发测距响应报文时,还可以向接入控制器发送类型指示。该类型指示用于指示光网络终端是否需要进行速率切换。其中,光模块向接入控制器转发测距响应报文的实现过程,和向接入控制器发送类型指示的实现过程,请相应参考步骤403中的相关描述,此处不再赘述。Optionally, the optical line terminal also includes an access controller. At this time, the optical line terminal's ranging operation for the optical network terminal can be performed by the access controller. Correspondingly, after receiving the ranging response message, the optical module can forward the ranging response message to the access controller at the service rate. Moreover, when the optical module forwards the ranging response message to the access controller at the service rate, it can also send a type indication to the access controller. This type of indication is used to indicate whether the optical network terminal needs to perform rate switching. For the implementation process of the optical module forwarding the ranging response message to the access controller and the implementation process of sending the type indication to the access controller, please refer to the relevant description in step 403 accordingly, and will not be described again here.
光线路终端完成对多个待注册的光网络终端的测距后,可以根据该多个光网络终端到该光线路终端的物理距离,对该多个光网络终端分配均衡时延(equalization delay,EqD),使得该多个光网络终端到光线路终端的逻辑距离相等,以便于该多个光网络终端在相同的逻辑距离有序地与光线路终端进行交互。当光线路终端包括接入控制器时,光线路终端对多个光网络终端分配均衡时延的操作,可以由接入控制器执行。完成对光网络终端分配均衡时延后,光网络终端即进入完成准备(ready)的状态(如O5状态),能够进行正常的业务授权。After the optical line terminal completes the ranging of multiple optical network terminals to be registered, it can allocate equalization delays to the multiple optical network terminals based on the physical distances from the multiple optical network terminals to the optical line terminal. EqD), so that the logical distances between the multiple optical network terminals and the optical line terminals are equal, so that the multiple optical network terminals interact with the optical line terminals in an orderly manner at the same logical distance. When the optical line terminal includes an access controller, the operation of allocating balanced delays by the optical line terminal to multiple optical network terminals can be performed by the access controller. After completing the equalization delay allocation to the optical network terminal, the optical network terminal enters the ready state (such as the O5 state) and can perform normal service authorization.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤406包括:步骤4061、光模块以业务速率向接入控制器转发测距响应报文。步骤4062、接入控制器基于测距响应报文,对光网络终端测距,并根据对多个光网络终端的测距结果,对该多个光网络终端做出分配均衡时延的决策。步骤4063、接入控制器指示光模块向光网络终端发送分配均衡时延的决策。以及,步骤4064、光模块向光网络终端发送分配均衡时延的决策。并且,当光模块在该步骤406中向接入控制器发送类型指示时,该步骤406还包括:步骤4065、光模块向接入控制器发送类型指示。其中,图5未示出光模块在步骤406中向接入控制器发送类型指示的过程。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 406 includes: Step 4061: The optical module forwards the ranging response message to the access controller at the service rate. Step 4062: The access controller measures the ranging of the optical network terminal based on the ranging response message, and makes a decision to allocate balanced delays to the multiple optical network terminals based on the ranging results of the multiple optical network terminals. Step 4063: The access controller instructs the optical module to send the decision to allocate the equalization delay to the optical network terminal. And, step 4064, the optical module sends the decision to allocate the equalization delay to the optical network terminal. Moreover, when the optical module sends a type indication to the access controller in step 406, step 406 also includes: step 4065: the optical module sends a type indication to the access controller. 5 does not show the process of the optical module sending the type indication to the access controller in step 406.
步骤407、光线路终端向光网络终端发送速率切换指令,并指示光网络终端向光线路终端发送测试报文,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Step 407: The optical line terminal sends a rate switching instruction to the optical network terminal, and instructs the optical network terminal to send a test message to the optical line terminal. The rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
完成对光网络终端的终端发现和测距后,光网络终端就能以业务速率与光线路终端进行通信。例如,光网络终端以业务速率向光线路终端发送测试报文和业务报文。其中,光模块可以根据测试报文调整报文处理参数。在一种实现方式中,光线路终端可以向光网络终端发送速率切换指令,光网络终端基于速率切换指令以业务速率向光线路终端发送报文。当光线路终端包括接入控制器时,向光网络终端发送速率切换指令的决策可由接入控制器做出,并由光模块发送至光网络终端。After completing the terminal discovery and ranging of the optical network terminal, the optical network terminal can communicate with the optical line terminal at the service rate. For example, the optical network terminal sends test packets and service packets to the optical line terminal at the service rate. Among them, the optical module can adjust the message processing parameters according to the test message. In an implementation manner, the optical line terminal can send a rate switching instruction to the optical network terminal, and the optical network terminal sends a message to the optical line terminal at a service rate based on the rate switching instruction. When the optical line terminal includes an access controller, the decision to send a rate switching instruction to the optical network terminal may be made by the access controller and sent to the optical network terminal by the optical module.
可选地,速率切换指令可以根据类型指示发送。例如,接入控制器若接收到类型指示,且类型指示用于指示光网络终端需要进行速率切换,则接入控制器可以通过光模块向光网络终端发送速率切换指令。并且,在向光网络终端发送速率切换指令时,可以向光网络终端连续发出多条速率切换指令,以确保光网络终端能够接收到速率切换指令。Optionally, rate switching instructions may be sent according to the type indication. For example, if the access controller receives a type indication, and the type indication is used to indicate that the optical network terminal needs to perform rate switching, the access controller can send a rate switching instruction to the optical network terminal through the optical module. Moreover, when sending a rate switching instruction to the optical network terminal, multiple rate switching instructions can be sent continuously to the optical network terminal to ensure that the optical network terminal can receive the rate switching instruction.
或者,光模块也可以不向接入控制器发送类型指示,此时,接入控制器可以不根据类型指示做出向光网络终端发送速率切换指令的决策。在一种可实现方式中,接入控制器在向光网络终端分配均衡时延后,若确定光网络终端以业务速率发送的报文不会影响光线路终端的正常功能,即可通过光模块向光网络终端发送速率切换指令。Alternatively, the optical module may not send a type indication to the access controller. In this case, the access controller may not make a decision to send a rate switching instruction to the optical network terminal based on the type indication. In an implementable manner, after the access controller allocates the balanced delay to the optical network terminal, if it determines that the messages sent by the optical network terminal at the service rate will not affect the normal functions of the optical line terminal, the access controller can use the optical module to Send rate switching instructions to the optical network terminal.
在光线路终端向光网络终端发送速率切换指令后,可以指示光网络终端向光线路终端发 送测试报文,以便于光模块基于该测试报文调整报文处理参数。由于报文处理参数主要用于对业务报文进行校正,且业务报文使用业务速率发送。因此,根据光网络终端以业务速率发送的测试报文调整报文处理参数,能够保证调整的报文处理参数的准确性,提高消除业务报文中的码间串扰的效率。After the optical line terminal sends a rate switching instruction to the optical network terminal, the optical network terminal can be instructed to send a test message to the optical line terminal so that the optical module can adjust the message processing parameters based on the test message. Because the message processing parameters are mainly used to correct the service messages, and the service messages are sent at the service rate. Therefore, adjusting the message processing parameters based on the test messages sent by the optical network terminal at the service rate can ensure the accuracy of the adjusted message processing parameters and improve the efficiency of eliminating inter-code crosstalk in the service messages.
在一种实现方式中,光线路终端可以对光网络终端分配固定带宽(如100兆),以指示光网络终端向光线路终端发送测试报文。例如,光线路终端和光网络终端可以约定在向光网络终端分配固定带宽时,光网络终端向光线路终端发送测试报文。或者,光线路终端向光网络终端分配的带宽的分配标识(Alloc-ID)等于光线路终端向光网络终端分配的ONT-ID时,光网络终端向光线路终端发送测试报文。或者,光线路终端可以向光网络终端发送突发包配置报文,该突发包配置报文指示光网络终端向光线路终端发送测试报文。并且,突发包配置报文还可以指示测试报文的类型。例如,突发包配置报文可以指示光网络终端向光线路终端发送携带空闲(idle)序列的测试报文,或者携带空闲序列的伪随机二进制序列(pseudo random binary sequence,PRBS)类型的测试报文。并且,当光线路终端包括接入控制器时,指示光网络终端发送测试报文的决策可由接入控制器做出,并由光模块发送至光网络终端。In an implementation manner, the optical line terminal can allocate a fixed bandwidth (such as 100 Mbps) to the optical network terminal to instruct the optical network terminal to send a test message to the optical line terminal. For example, the optical line terminal and the optical network terminal can agree that when allocating a fixed bandwidth to the optical network terminal, the optical network terminal sends a test message to the optical line terminal. Alternatively, when the allocation identifier (Alloc-ID) of the bandwidth allocated by the optical line terminal to the optical network terminal is equal to the ONT-ID allocated by the optical line terminal to the optical network terminal, the optical network terminal sends a test message to the optical line terminal. Alternatively, the optical line terminal may send a burst packet configuration message to the optical network terminal, and the burst packet configuration message instructs the optical network terminal to send a test packet to the optical line terminal. Moreover, the burst packet configuration message can also indicate the type of test message. For example, the burst packet configuration message can instruct the optical network terminal to send a test message carrying an idle sequence to the optical line terminal, or a pseudo-random binary sequence (PRBS) type test message carrying the idle sequence. arts. Moreover, when the optical line terminal includes an access controller, the decision to instruct the optical network terminal to send the test message can be made by the access controller and sent to the optical network terminal by the optical module.
另外,在光模块调整报文处理参数时,由于其向接入控制器发送的报文为没有完全解析出来的错误的报文,为避免因错误的报文引起告警,接入控制器做出向光网络终端发送速率切换指令的决策后,可以关闭该接入控制器的告警功能。In addition, when the optical module adjusts the packet processing parameters, because the packets it sends to the access controller are incorrect packets that have not been fully parsed, in order to avoid alarms caused by incorrect packets, the access controller makes After sending the decision of rate switching instruction to the optical network terminal, the alarm function of the access controller can be turned off.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤407包括:步骤4071、接入控制器指示光模块向光网络终端发送速率切换指令,并指示光模块向光网络终端发送指示光网络终端发送测试报文的指令。步骤4072、光模块向光网络终端发送速率切换指令和指示光网络终端发送测试报文的指令。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 407 includes: Step 4071: The access controller instructs the optical module to send a rate switching instruction to the optical network terminal, and instructs the optical module to send a rate switching instruction to the optical network terminal. The network terminal sends an instruction instructing the optical network terminal to send a test message. Step 4072: The optical module sends a rate switching instruction and an instruction instructing the optical network terminal to send a test message to the optical network terminal.
步骤408、光网络终端基于速率切换指令,以业务速率,向光线路终端发送包括测试报文的授权响应报文。Step 408: Based on the rate switching instruction, the optical network terminal sends an authorization response message including a test message to the optical line terminal at the service rate.
光网络终端接收速率切换指令后,即可切换至以业务速率发送报文的状态,并根据光线路终端的指示,以业务速率向光线路终端发送授权响应报文。当光线路终端为光网络终端分配ONT-ID时,光网络终端以业务速率,向光线路终端发送携带有光网络终端标识的授权响应报文。其中,该授权响应报文可以为测试报文,或者,为测试报文和业务报文。并且,当光线路终端向光网络终端指示测试报文的类型时,光网络终端可以按照指示发送对应类型的测试报文。例如,当指示光网络终端向光线路终端发送携带空闲序列的测试报文时,光网络终端可以将指定类型的空闲报文填充至千兆能力无源光网络封装模式(gigabit-capable-passive optical network encapsulation method,GEM)帧,并以业务速率向光线路终端发送该GEM帧。需要说明的是,执行至步骤408,若已完成对光网络终端的终端发现和测距,则该步骤408中光网络终端实际为完成终端注册的光网络终端。After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and according to the instructions of the optical line terminal, send the authorization response message to the optical line terminal at the service rate. When the optical line terminal allocates an ONT-ID to the optical network terminal, the optical network terminal sends an authorization response message carrying the optical network terminal identification to the optical line terminal at the service rate. The authorization response message may be a test message, or a test message and a service message. Moreover, when the optical line terminal indicates the type of the test message to the optical network terminal, the optical network terminal can send the test message of the corresponding type according to the instruction. For example, when instructing the optical network terminal to send a test message carrying an idle sequence to the optical line terminal, the optical network terminal can fill the specified type of idle message into the gigabit-capable-passive optical network encapsulation mode (gigabit-capable-passive optical network encapsulation method, GEM) frame, and sends the GEM frame to the optical line terminal at the service rate. It should be noted that when execution proceeds to step 408, if the terminal discovery and ranging of the optical network terminal have been completed, the optical network terminal in step 408 is actually an optical network terminal that has completed terminal registration.
如图5所示,当光线路终端包括光模块和接入控制器时,该步骤408包括:步骤4081、光网络终端以业务速率向光模块发送包括测试报文的授权响应报文。As shown in Figure 5, when the optical line terminal includes an optical module and an access controller, step 408 includes: Step 4081: The optical network terminal sends an authorization response message including a test message to the optical module at the service rate.
步骤409、光线路终端基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Step 409: The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message. The message processing parameters are used to process the messages received by the optical line terminal.
光线路终端接收到测试报文后,可以根据该测试报文,调整光线路终端的报文处理参数。可选地,光线路终端包括光模块。此时,实际是光模块基于测试报文调整光模块的报文处理 参数。当光模块包括处理器,且由处理器基于报文处理参数消除报文的码间串扰时,具体是处理器基于测试报文调整文处理参数。并且,由于报文处理参数从初始状态到收敛需要一定的时间,若光模块无法根据一次发送的测试报文完成对报文处理参数的调整,光网络终端可以向光线路终端多次发送测试报文,使得光模块根据多次发送的测试报文调整报文处理参数,即重复执行步骤407中指示光网络终端向光线路终端发送测试报文的操作,以及步骤408和步骤409中的操作,直至完成报文处理参数的调整。After the optical line terminal receives the test message, it can adjust the message processing parameters of the optical line terminal based on the test message. Optionally, the optical line terminal includes an optical module. At this time, the optical module actually adjusts the packet processing parameters of the optical module based on the test packets. When the optical module includes a processor, and the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters based on the test message. Moreover, since it takes a certain amount of time for the message processing parameters to converge from the initial state, if the optical module cannot complete the adjustment of the message processing parameters based on the test message sent once, the optical network terminal can send test messages to the optical line terminal multiple times. text, so that the optical module adjusts the message processing parameters according to the test messages sent multiple times, that is, repeats the operation of instructing the optical network terminal to send the test message to the optical line terminal in step 407, and the operations in steps 408 and 409, Until the adjustment of message processing parameters is completed.
在光模块完成对报文处理参数的调整后,光模块可以向接入控制器发送完成指令,以指示光模块已完成报文处理参数的调整,使得接入控制器能够根据该完成指令正常执行后续的操作。例如,接入控制器可以根据完成指令开启告警功能。又例如,接入控制器可以根据完成指令配置授权业务带宽,进行正常业务授权。After the optical module completes the adjustment of the packet processing parameters, the optical module can send a completion command to the access controller to indicate that the optical module has completed the adjustment of the packet processing parameters, so that the access controller can execute normally according to the completion command. Subsequent operations. For example, the access controller can enable the alarm function based on completion instructions. For another example, the access controller can configure the authorized service bandwidth according to the completion instruction and perform normal service authorization.
当授权响应报文为业务报文时,如图6所示,本申请实施例提供的设备的注册方法包括:When the authorization response message is a service message, as shown in Figure 6, the device registration method provided by the embodiment of this application includes:
步骤601、光线路终端向光网络终端发送配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文。Step 601: The optical line terminal sends a configuration message to the optical network terminal. The configuration message is used to instruct the optical network terminal to send registration-related messages to the optical line terminal.
该步骤601的实现过程,请相应参考步骤401的实现过程。For the implementation process of step 601, please refer to the implementation process of step 401 accordingly.
步骤602、光网络终端向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。Step 602: The optical network terminal sends a discovery response message to the optical line terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
该步骤602的实现过程,请相应参考步骤402的实现过程。For the implementation process of step 602, please refer to the implementation process of step 402 accordingly.
步骤603、光线路终端基于发现响应报文获取光网络终端的设备信息。Step 603: The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
该步骤603的实现过程,请相应参考步骤403的实现过程。For the implementation process of step 603, please refer to the implementation process of step 403 accordingly.
步骤604、光线路终端向光网络终端发送测距指示报文。Step 604: The optical line terminal sends a ranging indication message to the optical network terminal.
该步骤604的实现过程,请相应参考步骤404的实现过程。For the implementation process of step 604, please refer to the implementation process of step 404 accordingly.
步骤605、光网络终端以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列。Step 605: The optical network terminal sends a ranging response message to the optical line terminal at the service rate, and the ranging response message includes a test sequence.
光网络终端接收到光线路终端发送的测距指示报文后,可以业务速率向光线路终端发送测距响应报文,以便于光线路终端基于该测距响应报文对光网络终端测距。此时,测距响应报文可以包括测试序列,例如包括具有较长长度的训练序列或前导码,以便于光模块根据该具有较长长度的训练序列或前导码,调整报文处理参数。After receiving the ranging indication message sent by the optical line terminal, the optical network terminal can send a ranging response message to the optical line terminal at the service rate, so that the optical line terminal can measure the ranging of the optical network terminal based on the ranging response message. At this time, the ranging response message may include a test sequence, such as a training sequence or preamble with a longer length, so that the optical module can adjust the message processing parameters according to the training sequence or preamble with a longer length.
当光线路终端包括光模块和接入控制器时,该步骤605包括:步骤6051、光网络终端以业务速率向光模块发送测距响应报文。When the optical line terminal includes an optical module and an access controller, step 605 includes: Step 6051: The optical network terminal sends a ranging response message to the optical module at the service rate.
步骤606、光线路终端基于测试序列,调整光线路终端的报文处理参数,然后基于测距响应报文对光网络终端测距,再根据测距结果,对该光网络终端分配均衡时延。Step 606: The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, then measures the ranging of the optical network terminal based on the ranging response message, and then allocates a balanced delay to the optical network terminal based on the ranging results.
也即是,在步骤606中,可以先利用测试序列调整光线路终端的报文处理参数,待参数收敛后,解析出测距响应报文,根据测距响应报文完成对光网络终端测距,然后根据测距结果,对该光网络终端分配均衡时延。其中,该步骤606中光线路终端基于测距响应报文,对光网络终端进行测距,及根据多个光网络终端的测距结果分配均衡时延的实现过程,请相应参考步骤406中的相关描述,此处不再赘述。光线路终端调整光线路终端的报文处理参数的实现过程,请相应参考步骤409的相关描述。That is, in step 606, you can first use the test sequence to adjust the message processing parameters of the optical line terminal. After the parameters converge, the ranging response message is parsed, and the ranging of the optical network terminal is completed based on the ranging response message. , and then allocate balanced delay to the optical network terminal based on the ranging results. Among them, in step 606, the optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates the balanced delay according to the ranging results of multiple optical network terminals. Please refer to the implementation process in step 406 accordingly. The relevant description will not be repeated here. For the implementation process of the optical line terminal adjusting the message processing parameters of the optical line terminal, please refer to the relevant description of step 409 accordingly.
步骤607、光线路终端向光网络终端发送速率切换指令,速率切换指令指示光网络终端 以业务速率向光线路终端发送报文。Step 607: The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
该步骤607的实现过程,请相应参考步骤407的相关描述。For the implementation process of step 607, please refer to the relevant description of step 407 accordingly.
步骤608、光网络终端基于速率切换指令,以业务速率,向光线路终端发送业务报文。Step 608: The optical network terminal sends the service message to the optical line terminal at the service rate based on the rate switching instruction.
光网络终端接收速率切换指令后,即可切换至以业务速率发送报文的状态,并在需要向光线路终端发送业务报文时,以业务速率向光线路终端发送业务报文。After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and when it is necessary to send service messages to the optical line terminal, it can send service messages to the optical line terminal at the service rate.
综上所述,在本申请实施例提供的设备的注册方法中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于业务速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率,缩短了光网络终端完成注册所耗费的时长。To sum up, in the device registration method provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message. Device information of network terminals to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the service rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further This improves the efficiency of ranging for optical network terminals and shortens the time it takes for optical network terminals to complete registration.
需要说明的是,本申请实施例提供的设备的注册方法的步骤先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。It should be noted that the sequence of steps of the device registration method provided by the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field can easily think of changing methods within the technical scope disclosed in this application, which should be covered by the protection scope of this application, and therefore will not be described again.
本申请提供了一种设备的注册方法。该方法应用于光网络终端。如图7所示,该方法包括:This application provides a device registration method. This method is applied to optical network terminals. As shown in Figure 7, the method includes:
步骤701、光网络终端接收配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文。Step 701: The optical network terminal receives a configuration message. The configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
配置报文的实现方式请相应参考步骤401中的相关描述。Please refer to the relevant description in step 401 for how to implement the configuration message.
步骤702、光网络终端向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。Step 702: The optical network terminal sends a discovery response message to the optical line terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
该步骤702的实现过程请相应参考步骤402的相关描述。For the implementation process of step 702, please refer to the relevant description of step 402 accordingly.
步骤703、光网络终端接收测距指示报文。Step 703: The optical network terminal receives the ranging indication message.
测距指示报文的实现方式请相应参考步骤404中的相关描述。For the implementation of the ranging indication message, please refer to the relevant description in step 404 accordingly.
步骤704、光网络终端向光线路终端发送测距响应报文。Step 704: The optical network terminal sends a ranging response message to the optical line terminal.
当授权响应报文包括测试报文时,光网络终端发送测距响应报文的速率小于业务速率。此时,该步骤704的实现方式请相应参考步骤405中的相关描述。When the authorization response message includes a test message, the rate at which the optical network terminal sends ranging response messages is less than the service rate. At this time, please refer to the relevant description in step 405 for the implementation method of step 704.
当授权响应报文不包括测试报文,例如授权响应报文为业务报文时,光网络终端可以以业务速率,向光线路终端发送测距响应报文。该测距响应报文包括测试序列,以便于光线路终端基于该测试序列调整报文处理参数。此时,该步骤704的实现方式请相应参考步骤605中的相关描述。When the authorization response message does not include a test message, for example, when the authorization response message is a service message, the optical network terminal can send a ranging response message to the optical line terminal at the service rate. The ranging response message includes a test sequence, so that the optical line terminal can adjust the message processing parameters based on the test sequence. At this time, please refer to the relevant description in step 605 for the implementation method of step 704.
步骤705、光网络终端接收光线路终端发送的速率切换指令,速率切换指令指示光网络 终端以业务速率向光线路终端发送报文。Step 705: The optical network terminal receives the rate switching instruction sent by the optical line terminal. The rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
速率切换指令的实现方式请相应参考步骤407中的相关描述。For the implementation method of the rate switching instruction, please refer to the relevant description in step 407 accordingly.
步骤706、光网络终端基于速率切换指令,以业务速率,向光线路终端发送授权响应报文。Step 706: The optical network terminal sends an authorization response message to the optical line terminal at the service rate based on the rate switching instruction.
在一种实现方式中,授权响应报文可以包括测试报文。例如,光网络终端可以以业务速率发送测试报文和业务报文。此时,该步骤706的实现方式请相应参考步骤408中的相关描述。In one implementation, the authorization response message may include a test message. For example, the optical network terminal can send test packets and service packets at the service rate. At this time, please refer to the relevant description in step 408 for the implementation method of step 706.
在另一种实现方式中,授权响应报文可以为业务报文。例如,光网络终端可以以业务速率发送业务报文。In another implementation manner, the authorization response message may be a service message. For example, the optical network terminal can send service packets at the service rate.
综上所述,在本申请实施例提供的设备的注册方法中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于参考速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率。To sum up, in the device registration method provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message. Device information of network terminals to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of optical network terminal ranging is improved.
需要说明的是,本申请实施例提供的设备的注册方法的步骤先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。It should be noted that the sequence of steps of the device registration method provided by the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field can easily think of changing methods within the technical scope disclosed in this application, which should be covered by the protection scope of this application, and therefore will not be described again.
本申请提供了一种设备的注册方法。该方法应用于光线路终端。在本申请实施例中,授权响应报文可以包括测试报文和业务报文中的至少一个。当该授权响应报文包括的内容不同时,本申请实施例提供的设备的注册方法的实现过程不同。下面分别对其进行说明。当授权响应报文包括测试报文时,如图8所示,该方法包括:This application provides a device registration method. This method is applied to optical line terminals. In this embodiment of the present application, the authorization response message may include at least one of a test message and a service message. When the content included in the authorization response message is different, the implementation process of the device registration method provided by the embodiment of the present application is different. They are explained below. When the authorization response message includes a test message, as shown in Figure 8, the method includes:
步骤801、光线路终端向光网络终端发送配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文。Step 801: The optical line terminal sends a configuration message to the optical network terminal. The configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
该步骤801的实现过程请相应参考步骤401的实现过程。For the implementation process of step 801, please refer to the implementation process of step 401 accordingly.
步骤802、光线路终端接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。Step 802: The optical line terminal receives the discovery response message sent by the optical network terminal. The rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
发现响应报文的实现方式请相应参考步骤402的相关描述。For the implementation method of the discovery response message, please refer to the relevant description of step 402 accordingly.
步骤803、光线路终端基于发现响应报文获取光网络终端的设备信息。Step 803: The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
该步骤803的实现过程请相应参考步骤403的实现过程。For the implementation process of step 803, please refer to the implementation process of step 403 accordingly.
步骤804、光线路终端向光网络终端发送测距指示报文。Step 804: The optical line terminal sends a ranging indication message to the optical network terminal.
步骤804的实现过程请相应参考步骤404的相关描述。For the implementation process of step 804, please refer to the relevant description of step 404 accordingly.
步骤805、光线路终端接收光网络终端发送的测距响应报文,光网络终端发送测距响应报文的速率小于业务速率。Step 805: The optical line terminal receives the ranging response message sent by the optical network terminal. The rate at which the optical network terminal sends the ranging response message is less than the service rate.
测距响应报文的实现方式请相应参考步骤405中的相关描述。For the implementation of the ranging response message, please refer to the relevant description in step 405 accordingly.
步骤806、光线路终端基于测距响应报文,对光网络终端进行测距,并根据对多个光网络终端的测距结果,对多个光网络终端分配均衡时延。Step 806: The optical line terminal performs ranging on the optical network terminal based on the ranging response message, and allocates balanced delays to the multiple optical network terminals based on the ranging results on the multiple optical network terminals.
步骤806的实现过程请相应参考步骤406的相关描述。For the implementation process of step 806, please refer to the relevant description of step 406 accordingly.
步骤807、光线路终端向光网络终端发送速率切换指令,并指示光网络终端向光线路终端发送测试报文,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Step 807: The optical line terminal sends a rate switching instruction to the optical network terminal, and instructs the optical network terminal to send a test message to the optical line terminal. The rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
步骤808、光线路终端接收光网络终端基于速率切换指令,以业务速率发送的授权响应报文,授权响应报文包括测试报文。Step 808: The optical line terminal receives an authorization response message sent by the optical network terminal at the service rate based on the rate switching instruction. The authorization response message includes a test message.
授权响应报文和测试报文的实现方式请相应参考步骤408中的相关描述。For the implementation of the authorization response message and the test message, please refer to the relevant description in step 408 accordingly.
步骤809、光线路终端基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Step 809: The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message. The message processing parameters are used to process the messages received by the optical line terminal.
该步骤809的实现过程请相应参考步骤409的实现过程。For the implementation process of step 809, please refer to the implementation process of step 409 accordingly.
当授权响应报文为业务报文时,如图9所示,本申请实施例提供的设备的注册方法包括:When the authorization response message is a service message, as shown in Figure 9, the device registration method provided by the embodiment of this application includes:
步骤901、光线路终端向光网络终端发送配置报文,该配置报文用于指示光网络终端向光线路终端发送注册相关的报文。Step 901: The optical line terminal sends a configuration message to the optical network terminal. The configuration message is used to instruct the optical network terminal to send a registration-related message to the optical line terminal.
该步骤901的实现过程请相应参考步骤401的实现过程。For the implementation process of step 901, please refer to the implementation process of step 401 accordingly.
步骤902、光线路终端接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。Step 902: The optical line terminal receives the discovery response message sent by the optical network terminal. The rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages.
发现响应报文的实现方式请相应参考步骤402的相关描述。For the implementation method of the discovery response message, please refer to the relevant description of step 402 accordingly.
步骤903、光线路终端基于发现响应报文获取光网络终端的设备信息。Step 903: The optical line terminal obtains the device information of the optical network terminal based on the discovery response message.
该步骤903的实现过程,请相应参考步骤403的实现过程。For the implementation process of step 903, please refer to the implementation process of step 403 accordingly.
步骤904、光线路终端向光网络终端发送测距指示报文。Step 904: The optical line terminal sends a ranging indication message to the optical network terminal.
该步骤904的实现过程,请相应参考步骤404的实现过程。For the implementation process of step 904, please refer to the implementation process of step 404 accordingly.
步骤905、光线路终端接收光网络终端以业务速率,发送的测距响应报文,该测距响应报文包括测试序列。Step 905: The optical line terminal receives the ranging response message sent by the optical network terminal at the service rate. The ranging response message includes the test sequence.
测距响应报文的实现方式请相应参考步骤605的相关描述。For the implementation method of the ranging response message, please refer to the relevant description of step 605 accordingly.
步骤906、光线路终端基于测试序列,调整光线路终端的报文处理参数,然后基于测距响应报文对光网络终端测距,再根据测距结果,对该光网络终端分配均衡时延。Step 906: The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, then measures the ranging of the optical network terminal based on the ranging response message, and then allocates a balanced delay to the optical network terminal based on the ranging results.
该步骤906的实现过程,请相应参考步骤606的实现过程。For the implementation process of step 906, please refer to the implementation process of step 606 accordingly.
步骤907、光线路终端向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Step 907: The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
该步骤907的实现过程,请相应参考步骤407的相关描述。For the implementation process of step 907, please refer to the relevant description of step 407 accordingly.
步骤908、光线路终端接收光网络终端基于速率切换指令,以业务速率发送的授权响应报文。Step 908: The optical line terminal receives the authorization response message sent by the optical network terminal at the service rate based on the rate switching instruction.
光网络终端接收速率切换指令后,即可切换至以业务速率发送报文的状态,并在需要向光线路终端发送业务报文时,以业务速率向光线路终端发送业务报文。After receiving the rate switching instruction, the optical network terminal can switch to the state of sending messages at the service rate, and when it is necessary to send service messages to the optical line terminal, it can send service messages to the optical line terminal at the service rate.
可选地,光线路终端包括光模块和接入控制器时,在设备的注册方法的上述两种实现方式中,在光线路终端基于发现响应报文获取光网络终端的设备信息之前,该方法还包括:光模块接收发现响应报文,光模块以业务速率向接入控制器转发发现响应报文。相应的,光线路终端基于发现响应报文获取光网络终端的设备信息,包括:接入控制器基于发现响应报文获取光网络终端的设备信息。该过程的实现方式请相应参考步骤403中的相关描述。Optionally, when the optical line terminal includes an optical module and an access controller, in the above two implementations of the device registration method, before the optical line terminal obtains the device information of the optical network terminal based on the discovery response message, the method It also includes: the optical module receives the discovery response message, and the optical module forwards the discovery response message to the access controller at the service rate. Correspondingly, the optical line terminal obtains the equipment information of the optical network terminal based on the discovery response message, including: the access controller obtains the equipment information of the optical network terminal based on the discovery response message. Please refer to the relevant description in step 403 for how to implement this process.
可选地,光线路终端包括光模块和接入控制器时,在光线路终端基于测距响应报文,对光网络终端分配均衡时延之前,该方法还包括:光模块接收测距响应报文,光模块以业务速率向接入控制器转发测距响应报文。相应的,光线路终端基于测距响应报文,对光网络终端分配均衡时延,包括:接入控制器基于测距响应报文,对光网络终端分配均衡时延。该过程的实现方式请相应参考步骤406中的相关描述。Optionally, when the optical line terminal includes an optical module and an access controller, before the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, the method further includes: the optical module receives the ranging response message. message, the optical module forwards the ranging response message to the access controller at the service rate. Correspondingly, the optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, including: the access controller allocates a balanced delay to the optical network terminal based on the ranging response message. Please refer to the relevant description in step 406 for how to implement this process.
可选地,该方法还包括:光模块向接入控制器发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。该过程的实现方式请相应参考步骤403和步骤406中的相关描述。Optionally, the method further includes: the optical module sending a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching. For the implementation of this process, please refer to the relevant descriptions in step 403 and step 406 accordingly.
可选地,光线路终端还包括接入控制器时,在光线路终端基于测试报文调整光线路终端的报文处理参数之前,该方法还包括:接入控制器关闭告警功能。该过程的实现方式请相应参考步骤407中的相关描述。Optionally, when the optical line terminal also includes an access controller, before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message, the method further includes: the access controller turns off the alarm function. Please refer to the relevant description in step 407 for how to implement this process.
可选地,光线路终端还包括光模块,且光模块用于调整报文处理参数时,在光线路终端调整报文处理参数之后,该方法还包括:光模块向接入控制器发送完成指令,完成指令用于指示光模块已完成报文处理参数的调整。该过程的实现方式请相应参考步骤409中的相关描述。在光模块向接入控制器发送完成指令之后,该方法还包括:接入控制器基于完成指令开启告警功能。该过程的实现方式请相应参考步骤409中的相关描述。Optionally, the optical line terminal further includes an optical module, and when the optical module is used to adjust the message processing parameters, after the optical line terminal adjusts the message processing parameters, the method further includes: the optical module sends a completion instruction to the access controller. , the completion command is used to indicate that the optical module has completed the adjustment of message processing parameters. Please refer to the relevant description in step 409 for how to implement this process. After the optical module sends the completion instruction to the access controller, the method further includes: the access controller turns on the alarm function based on the completion instruction. Please refer to the relevant description in step 409 for how to implement this process.
综上所述,在本申请实施例提供的设备的注册方法中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于参考速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率。To sum up, in the device registration method provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical fiber based on the discovery response message. Device information of network terminals to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
需要说明的是,本申请实施例提供的设备的注册方法的步骤先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。It should be noted that the sequence of steps of the device registration method provided by the embodiments of the present application can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field can easily think of changing methods within the technical scope disclosed in this application, which should be covered by the protection scope of this application, and therefore will not be described again.
本申请提供了一种无源光网络。无源光网络包括:光网络终端和光线路终端。在一种实 现方式中,该无源光网络可以为点到多点的无源光网络,此时,光线路终端通过光配线网连接多个光网络终端。图1为本申请实施例提供的一种无源光网络的示意图。其中,光线路终端和光网络终端的功能如下:This application provides a passive optical network. Passive optical networks include: optical network terminals and optical line terminals. In one implementation, the passive optical network can be a point-to-multipoint passive optical network, in which case the optical line terminal connects multiple optical network terminals through an optical distribution network. Figure 1 is a schematic diagram of a passive optical network provided by an embodiment of the present application. Among them, the functions of optical line terminals and optical network terminals are as follows:
光网络终端用于向光线路终端发送发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。光线路终端用于基于发现响应报文获取光网络终端的设备信息。光网络终端用于以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。The optical network terminal is used to send discovery response messages to the optical line terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages. The optical line terminal is used to obtain the device information of the optical network terminal based on the discovery response message. The optical network terminal is used to send an authorization response message to the optical line terminal at a service rate. The authorization response message includes at least one of a test message and a service message.
其中,光网络终端发送报文的速率的大小,可以通过光线路终端提取出报文耗费的时长反映。例如,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,光线路终端提取出以小于业务速率的速率发送的相同报文耗费的时长,小于提取出以业务速率发送的相同报文耗费的时长。Among them, the rate at which the optical network terminal sends messages can be reflected by extracting the time it takes for the messages to be sent by the optical line terminal. For example, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the cost of the same message sent at a rate less than the service rate The time is less than the time it takes to extract the same message sent at the service rate.
可选地,光网络终端发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to The packets are balanced. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to balance the packets.
在一种实现方式中,授权响应报文包括测试报文,光网络终端还用于向光线路终端发送测距响应报文,光网络终端发送测距响应报文的速率小于业务速率。光线路终端还用于基于测距响应报文,对光网络终端分配均衡时延。In one implementation, the authorization response message includes a test message, and the optical network terminal is also used to send a ranging response message to the optical line terminal. The rate at which the optical network terminal sends the ranging response message is less than the service rate. The optical line terminal is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
可选的,光网络终端发送测距响应报文的速率可以小于参考速率,业务速率可以大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the optical network terminal sends ranging response messages can be less than the reference rate, and the service rate can be greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line The terminal needs to equalize the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to equalize the packets.
可选地,光线路终端还用于基于测试报文,调整光线路终端的报文处理参数,报文处理参数用于对光线路终端接收到的报文进行处理。Optionally, the optical line terminal is also used to adjust the message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process the messages received by the optical line terminal.
在另一种实现方式中,授权响应报文为业务报文,光网络终端还用于以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列;光线路终端基于测试序列,调整光线路终端的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延,报文处理参数用于对光线路终端接收到的报文进行处理。In another implementation manner, the authorization response message is a service message, and the optical network terminal is also used to send a ranging response message to the optical line terminal at the service rate. The ranging response message includes a test sequence; the optical line The terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. The message processing parameters are used to process the messages received by the optical line terminal.
在一种可实现方式中,报文处理参数包括:时钟相位偏差、均衡系数和/或模拟均衡电路的参数等物理层参数。In an implementation manner, the message processing parameters include: physical layer parameters such as clock phase deviation, equalization coefficients, and/or parameters of the analog equalization circuit.
可选地,光线路终端包括光模块。此时,光模块具体用于调整光模块的报文处理参数。并且,当由处理器基于报文处理参数消除报文的码间串扰时,具体是处理器调整报文处理参数。Optionally, the optical line terminal includes an optical module. At this time, the optical module is specifically used to adjust the packet processing parameters of the optical module. Moreover, when the processor eliminates the inter-code crosstalk of the message based on the message processing parameters, specifically the processor adjusts the message processing parameters.
可选地,光线路终端包括光模块和接入控制器时,光模块还用于接收发现响应报文。光模块还用于以业务速率,向接入控制器转发发现响应报文。接入控制器用于基于以业务速率发送的发现响应报文,获取光网络终端的设备信息。Optionally, when the optical line terminal includes an optical module and an access controller, the optical module is also used to receive a discovery response message. The optical module is also used to forward discovery response messages to the access controller at the service rate. The access controller is used to obtain the device information of the optical network terminal based on the discovery response message sent at the service rate.
可选地,光线路终端包括光模块和接入控制器时,光模块还用于接收测距响应报文。光模块还用于以业务速率,向接入控制器转发测距响应报文。接入控制器具体用于基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。Optionally, when the optical line terminal includes an optical module and an access controller, the optical module is also used to receive the ranging response message. The optical module is also used to forward ranging response messages to the access controller at the service rate. The access controller is specifically used to allocate balanced delays to optical network terminals based on ranging response messages sent at the service rate.
可选地,光模块还用于向接入控制器发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。Optionally, the optical module is also used to send a type indication to the access controller, and the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
可选地,光线路终端还用于在光网络终端以业务速率,向光线路终端发送测试报文之前,向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the optical line terminal is also used to send a rate switching instruction to the optical network terminal before the optical network terminal sends a test message to the optical line terminal at the service rate. The rate switching instruction instructs the optical network terminal to send the test message to the optical line terminal at the service rate. The terminal sends the message.
可选地,光线路终端还包括接入控制器,接入控制器还用于在光线路终端基于测试报文调整光线路终端的报文处理参数之前,关闭告警功能。Optionally, the optical line terminal further includes an access controller, and the access controller is further configured to turn off the alarm function before the optical line terminal adjusts the message processing parameters of the optical line terminal based on the test message.
可选地,光线路终端包括光模块和接入控制器,且光模块用于基于测试报文调整光线路终端的报文处理参数时,光模块还用于向接入控制器发送完成指令,完成指令用于指示光模块已完成报文处理参数的调整。Optionally, the optical line terminal includes an optical module and an access controller, and when the optical module is used to adjust the message processing parameters of the optical line terminal based on the test message, the optical module is also used to send a completion instruction to the access controller, The completion command is used to indicate that the optical module has completed the adjustment of message processing parameters.
可选地,接入控制器还用于基于完成指令开启告警功能。Optionally, the access controller is also used to enable the alarm function based on the completion instruction.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的光网络终端和光线路终端的具体工作过程,可以参考前述方法实施例中的对应内容,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the optical network terminal and optical line terminal described above can be referred to the corresponding content in the foregoing method embodiments, and will not be described again here.
综上所述,在本申请实施例提供的无源光网络中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于参考速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率。To sum up, in the passive optical network provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical signal based on the discovery response message. Device information of network terminals to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
本申请提供了一种光网络终端。如图10所示,光网络终端1000包括:This application provides an optical network terminal. As shown in Figure 10, optical network terminal 1000 includes:
发送模块1001,用于向光线路终端发送发现响应报文,发送模块1001发送发现响应报文的速率小于业务速率,业务速率为发送模块1001发送业务报文的速率。The sending module 1001 is configured to send discovery response messages to optical line terminals. The rate at which the sending module 1001 sends discovery response messages is less than the service rate, and the service rate is the rate at which the sending module 1001 sends service messages.
发送模块1001,还用于以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。The sending module 1001 is also configured to send an authorization response message to the optical line terminal at a service rate, where the authorization response message includes at least one of a test message and a service message.
可选地,在光线路终端的报文处理参数处于初始状态时,对于以小于业务速率的速率和以业务速率发送的相同报文,光线路终端提取出以小于业务速率的速率发送的相同报文耗费的时长,小于提取出以业务速率发送的相同报文耗费的时长。Optionally, when the message processing parameters of the optical line terminal are in the initial state, for the same message sent at a rate less than the service rate and the same message sent at the service rate, the optical line terminal extracts the same message sent at a rate less than the service rate. The time it takes to extract a message is less than the time it takes to extract the same message sent at the service rate.
可选地,发送模块1001发送发现响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the sending module 1001 sends discovery response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to The packets are balanced. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to balance the packets.
可选地,授权响应报文包括测试报文,发送模块1001还用于向光线路终端发送测距响应 报文,发送模块1001发送测距响应报文的速率小于业务速率。Optionally, the authorization response message includes a test message. The sending module 1001 is also configured to send a ranging response message to the optical line terminal. The rate at which the sending module 1001 sends the ranging response message is less than the service rate.
可选地,发送模块1001发送测距响应报文的速率小于参考速率,业务速率大于或等于参考速率,当向光线路终端发送的报文的发送速率大于或等于参考速率时,光线路终端需要对报文进行均衡处理,当向光线路终端发送的报文的发送速率小于参考速率时,光线路终端不需要对报文进行均衡处理。Optionally, the rate at which the sending module 1001 sends ranging response messages is less than the reference rate, and the service rate is greater than or equal to the reference rate. When the rate at which the message is sent to the optical line terminal is greater than or equal to the reference rate, the optical line terminal needs to The packets are equalized. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate, the optical line terminal does not need to perform equalization processing on the packets.
可选地,授权响应报文为业务报文,发送模块1001还用于以业务速率,向光线路终端发送测距响应报文,该测距响应报文包括测试序列。Optionally, the authorization response message is a service message, and the sending module 1001 is also configured to send a ranging response message to the optical line terminal at a service rate, where the ranging response message includes a test sequence.
可选地,光网络终端还包括:接收模块1002,用于在发送模块1001以业务速率向光线路终端发送测试报文之前,接收光线路终端发送的速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the optical network terminal also includes: a receiving module 1002, configured to receive a rate switching instruction sent by the optical line terminal before the sending module 1001 sends a test message to the optical line terminal at the service rate. The rate switching instruction instructs the optical network terminal. Send messages to the optical line terminal at the service rate.
可选地,发送模块1001,具体用于基于速率切换指令,以业务速率向光线路终端发送测试报文。Optionally, the sending module 1001 is specifically configured to send a test message to the optical line terminal at the service rate based on the rate switching instruction.
需要说明的是,光网络模块还可以包括用于实现其功能的其他元件。例如,请参考图3,光网络模块还可以包括存储器等元件。It should be noted that the optical network module may also include other components used to implement its functions. For example, please refer to Figure 3. The optical network module may also include components such as memory.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的光网络终端及其模块的具体工作过程,可以参考前述方法实施例中的对应内容,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the optical network terminal and its modules described above can be referred to the corresponding content in the foregoing method embodiments, and will not be described again here.
综上所述,在本申请实施例提供的光网络终端中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于参考速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率。To sum up, in the optical network terminal provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate lower than the service rate, so that the optical line terminal obtains the optical network information based on the discovery response message. Terminal device information to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
本申请提供了一种光线路终端。如图11所示,光线路终端1100包括:This application provides an optical line terminal. As shown in Figure 11, optical line terminal 1100 includes:
收发模块1101,用于接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率。处理模块1102,用于基于发现响应报文获取光网络终端的设备信息。收发模块1101,还用于接收光网络终端以业务速率发送的授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。The transceiver module 1101 is configured to receive discovery response messages sent by the optical network terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages. The processing module 1102 is configured to obtain the device information of the optical network terminal based on the discovery response message. The transceiver module 1101 is also configured to receive an authorization response message sent by the optical network terminal at a service rate. The authorization response message includes at least one of a test message and a service message.
可选地,授权响应报文包括测试报文,收发模块1101还用于在接收光网络终端以业务速率发送的授权响应报文之前,接收光网络终端发送的测距响应报文,光网络终端发送测距响应报文的速率小于业务速率。Optionally, the authorization response message includes a test message. The transceiver module 1101 is also configured to receive a ranging response message sent by the optical network terminal before receiving the authorization response message sent by the optical network terminal at the service rate. The optical network terminal The rate at which ranging response messages are sent is less than the service rate.
处理模块1102还用于基于测距响应报文,对光网络终端分配均衡时延。The processing module 1102 is also used to allocate balanced delay to the optical network terminal based on the ranging response message.
可选地,处理模块1102还用于基于测试报文,调整报文处理参数,报文处理参数用于对 处理模块1102接收到的报文进行处理。Optionally, the processing module 1102 is also configured to adjust message processing parameters based on the test message, and the message processing parameters are used to process the messages received by the processing module 1102.
可选地,授权响应报文为业务报文,收发模块1101还用于在接收光网络终端以业务速率发送的授权响应报文之前,接收光网络终端以业务速率发送的测距响应报文,该测距响应报文包括测试序列。Optionally, the authorization response message is a service message, and the transceiver module 1101 is also configured to receive a ranging response message sent by the optical network terminal at the service rate before receiving the authorization response message sent by the optical network terminal at the service rate, The ranging response message includes the test sequence.
处理模块1102还用于基于测试序列,调整处理模块1102的报文处理参数,并基于测距响应报文,对光网络终端分配均衡时延,报文处理参数用于对处理模块1102接收到的报文进行处理。The processing module 1102 is also used to adjust the message processing parameters of the processing module 1102 based on the test sequence, and allocate a balanced delay to the optical network terminal based on the ranging response message. The message processing parameters are used to adjust the message processing parameters received by the processing module 1102. The message is processed.
可选地,报文处理参数包括:时钟相位偏差和/或均衡系数。Optionally, the message processing parameters include: clock phase deviation and/or equalization coefficient.
可选地,收发模块1101还用于接收测距响应报文,以业务速率,向所处理模块1102转发测距响应报文。Optionally, the transceiver module 1101 is also configured to receive a ranging response message, and forward the ranging response message to the processing module 1102 at a service rate.
处理模块1102具体用于基于以业务速率发送的测距响应报文,对光网络终端分配均衡时延。The processing module 1102 is specifically configured to allocate balanced delay to the optical network terminal based on the ranging response message sent at the service rate.
可选地,收发模块1101,还用于向处理模块1102发送类型指示,类型指示用于指示光网络终端是否需要进行速率切换。Optionally, the transceiver module 1101 is also configured to send a type indication to the processing module 1102. The type indication is used to indicate whether the optical network terminal needs to perform rate switching.
可选地,处理模块1102,还用于在接收光网络终端以业务速率发送的授权响应报文之前,通过收发模块1101向光网络终端发送速率切换指令,速率切换指令指示光网络终端以业务速率向光线路终端发送报文。Optionally, the processing module 1102 is also configured to send a rate switching instruction to the optical network terminal through the transceiver module 1101 before receiving the authorization response message sent by the optical network terminal at the service rate. The rate switching instruction instructs the optical network terminal to send the authorization response message at the service rate. Send messages to optical line terminals.
可选地,处理模块1102,还用于在调整报文处理参数之前,关闭告警功能。Optionally, the processing module 1102 is also configured to turn off the alarm function before adjusting the message processing parameters.
可选地,收发模块1101,还用于在调整报文处理参数之后,向处理模块1102发送完成指令,完成指令用于指示收发模块1101已完成报文处理参数的调整。Optionally, the transceiver module 1101 is also configured to send a completion instruction to the processing module 1102 after adjusting the message processing parameters. The completion instruction is used to indicate that the transceiver module 1101 has completed the adjustment of the message processing parameters.
可选地,处理模块1102,还用于基于完成指令开启告警功能。Optionally, the processing module 1102 is also configured to enable the alarm function based on the completion instruction.
需要说明的是,光网络模块还可以包括用于实现其功能的其他元件。例如,请参考图2,光网络模块还可以包括存储器等元件。It should be noted that the optical network module may also include other components used to implement its functions. For example, please refer to Figure 2. The optical network module may also include components such as memory.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的光线路终端及其光模块和接入控制器的具体工作过程,可以参考前述方法实施例中的对应内容,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described optical line terminal, its optical module and access controller can be referred to the corresponding content in the foregoing method embodiments. This will not be described again.
综上所述,在本申请实施例提供的设备的光线路终端中,光网络终端先以小于业务速率的速率,向光线路终端发送发现响应报文,使得光线路终端基于发现响应报文获取光网络终端的设备信息,完成对光网络终端的终端发现。然后,光网络终端再以业务速率向光线路终端发送授权响应报文。由于光网络终端发送发现响应报文的速率小于业务速率,使得光线路终端接收的发现响应报文不会出现码间串扰,光线路终端就不需要调整报文处理参数,这样就能使用较短的帧长完成对光网络终端的终端发现,缩短了终端发现所耗费的时长,进而缩短了光网络终端注册所耗费的时长。相对于在光网络终端的注册过程中发送较长训练序列的技术,避免了在终端发现过程中发送较长的训练序列,降低了不同光网络终端发送的发现响应报文的碰撞概率,能够有效保证同一时段向光线路终端注册的多个光网络终端的注册效率,从而提高用户业务体验。并且,当发送测距响应报文的速率小于参考速率时,测距响应报文不会使光线路终端调整报文处理参数,使得能够使用较短的时长完成对光网络终端的测距,进一步提高了对光网络终端测距的效率。To sum up, in the optical line terminal of the device provided by the embodiment of the present application, the optical network terminal first sends a discovery response message to the optical line terminal at a rate less than the service rate, so that the optical line terminal obtains the information based on the discovery response message. Equipment information of optical network terminals to complete terminal discovery of optical network terminals. Then, the optical network terminal sends an authorization response message to the optical line terminal at the service rate. Since the rate at which the optical network terminal sends discovery response messages is less than the service rate, the discovery response messages received by the optical line terminal will not cause inter-code crosstalk. The optical line terminal does not need to adjust the message processing parameters, so that it can use shorter The frame length is used to complete the terminal discovery of the optical network terminal, shortening the time it takes for terminal discovery, and thus shortening the time it takes for optical network terminal registration. Compared with the technology of sending a longer training sequence during the registration process of the optical network terminal, it avoids sending a long training sequence during the terminal discovery process, reduces the collision probability of discovery response messages sent by different optical network terminals, and can effectively Ensure the registration efficiency of multiple optical network terminals registered to optical line terminals during the same period, thereby improving user service experience. Moreover, when the rate of sending ranging response messages is lower than the reference rate, the ranging response messages will not cause the optical line terminal to adjust the message processing parameters, so that the ranging of the optical network terminal can be completed in a shorter time, further The efficiency of ranging of optical network terminals is improved.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质为非易失性计算机可读存储介质,该计算机可读存储介质包括程序指令,当程序指令在计算机设备上运行时,使得计算机设备执行如本申请实施例提供的设备的注册方法。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are run on a computer device At this time, the computer device is caused to execute the device registration method provided by the embodiment of the present application.
本申请实施例还提供了一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行本申请实施例提供的设备的注册方法。An embodiment of the present application also provides a computer program product containing instructions. When the computer program product is run on a computer, it causes the computer to execute the device registration method provided by the embodiment of the present application.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage media mentioned can be read-only memory, magnetic disks or optical disks, etc.
在本申请实施例中,术语“第一”、“第二”和“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”是指一个或多个,术语“多个”指两个或两个以上,除非另有明确的限定。In the embodiments of the present application, the terms "first", "second" and "third" are only used for description purposes and cannot be understood as indicating or implying relative importance. The term "at least one" refers to one or more, and the term "plurality" refers to two or more, unless expressly limited otherwise.
本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is just an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, alone There are three situations B. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及报文,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and messages involved in this application , are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的构思和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concepts and principles of the present application shall be included in the protection of the present application. within the range.

Claims (38)

  1. 一种设备的注册方法,其特征在于,所述方法应用于无源光网络,所述无源光网络包括:光网络终端ONT和光线路终端OLT,所述方法包括:A device registration method, characterized in that the method is applied to a passive optical network, the passive optical network includes: an optical network terminal ONT and an optical line terminal OLT, the method includes:
    所述光网络终端向所述光线路终端发送发现响应报文,所述光网络终端发送所述发现响应报文的速率小于业务速率,所述业务速率为所述光网络终端发送业务报文的速率;The optical network terminal sends a discovery response message to the optical line terminal. The rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the speed at which the optical network terminal sends the service message. rate;
    所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息;The optical line terminal obtains the device information of the optical network terminal based on the discovery response message;
    所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文,所述授权响应报文包括测试报文和业务报文中的至少一个。The optical network terminal sends an authorization response message to the optical line terminal at the service rate, where the authorization response message includes at least one of a test message and a service message.
  2. 根据权利要求1所述的方法,其特征在于,在所述光线路终端的报文处理参数处于初始状态时,对于以小于所述业务速率的速率和以所述业务速率发送的相同报文,所述光线路终端提取出以小于所述业务速率的速率发送的所述相同报文耗费的时长,小于提取出以所述业务速率发送的所述相同报文耗费的时长。The method according to claim 1, characterized in that when the message processing parameters of the optical line terminal are in an initial state, for the same message sent at a rate less than the service rate and at the service rate, The time it takes for the optical line terminal to extract the same message sent at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate.
  3. 根据权利要求1或2所述的方法,其特征在于,所述光网络终端发送所述发现响应报文的速率小于参考速率,所述业务速率大于或等于所述参考速率,当向所述光线路终端发送的报文的发送速率大于或等于所述参考速率时,所述光线路终端对所述报文进行均衡处理,当向所述光线路终端发送的报文的发送速率小于所述参考速率时,所述光线路终端不对所述报文进行均衡处理。The method according to claim 1 or 2, characterized in that the rate at which the optical network terminal sends the discovery response message is less than a reference rate, and the service rate is greater than or equal to the reference rate. When the transmission rate of the packets sent by the line terminal is greater than or equal to the reference rate, the optical line terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate rate, the optical line terminal does not perform equalization processing on the message.
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述授权响应报文包括所述测试报文,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that the authorization response message includes the test message, and the optical network terminal sends authorization to the optical line terminal at the service rate. Before responding to the message, the method also includes:
    所述光网络终端向所述光线路终端发送测距响应报文,所述光网络终端发送所述测距响应报文的速率小于所述业务速率;The optical network terminal sends a ranging response message to the optical line terminal, and the rate at which the optical network terminal sends the ranging response message is less than the service rate;
    所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延。The optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message.
  5. 根据权利要求4所述的方法,其特征在于,所述光网络终端发送所述测距响应报文的速率小于参考速率,所述业务速率大于或等于所述参考速率,当向所述光线路终端发送的报文的发送速率大于或等于所述参考速率时,所述光线路终端对所述报文进行均衡处理,当向所述光线路终端发送的报文的发送速率小于所述参考速率时,所述光线路终端不对所述报文进行均衡处理。The method according to claim 4, characterized in that the rate at which the optical network terminal sends the ranging response message is less than a reference rate, and the service rate is greater than or equal to the reference rate. When the transmission rate of the packets sent by the terminal is greater than or equal to the reference rate, the optical line terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate When , the optical line terminal does not perform equalization processing on the message.
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, characterized in that the method further includes:
    所述光线路终端基于所述测试报文,调整所述光线路终端的报文处理参数,所述报文处理参数用于对所述光线路终端接收到的报文进行处理。The optical line terminal adjusts message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process messages received by the optical line terminal.
  7. 根据权利要求1至3任一所述的方法,其特征在于,所述授权响应报文为所述业务报文,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that the authorization response message is the service message, and the optical network terminal sends authorization to the optical line terminal at the service rate. Before responding to the message, the method also includes:
    所述光网络终端以所述业务速率,向所述光线路终端发送测距响应报文,所述测距响应报文包括测试序列;The optical network terminal sends a ranging response message to the optical line terminal at the service rate, where the ranging response message includes a test sequence;
    所述光线路终端基于所述测试序列,调整所述光线路终端的报文处理参数,并基于所述 测距响应报文,对所述光网络终端分配均衡时延,所述报文处理参数用于对所述光线路终端接收到的报文进行处理。The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. The message processing parameters Used to process messages received by the optical line terminal.
  8. 根据权利要求6或7所述的方法,其特征在于,所述报文处理参数包括:时钟相位偏差和/或均衡系数。The method according to claim 6 or 7, characterized in that the message processing parameters include: clock phase deviation and/or equalization coefficient.
  9. 根据权利要求6至8任一所述的方法,其特征在于,所述光线路终端包括光模块,所述调整所述光线路终端的报文处理参数,包括:The method according to any one of claims 6 to 8, characterized in that the optical line terminal includes an optical module, and the adjusting the message processing parameters of the optical line terminal includes:
    调整所述光模块的报文处理参数。Adjust the message processing parameters of the optical module.
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述光线路终端包括光模块和接入控制器,在所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息之前,所述方法还包括:The method according to any one of claims 1 to 9, characterized in that the optical line terminal includes an optical module and an access controller, and the optical line terminal obtains the optical network terminal based on the discovery response message. Before obtaining the device information, the method also includes:
    所述光模块接收所述发现响应报文;The optical module receives the discovery response message;
    所述光模块以所述业务速率,向所述接入控制器转发所述发现响应报文;The optical module forwards the discovery response message to the access controller at the service rate;
    所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息,包括:The optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including:
    所述接入控制器基于以所述业务速率发送的发现响应报文,获取所述光网络终端的设备信息。The access controller obtains the device information of the optical network terminal based on the discovery response message sent at the service rate.
  11. 根据权利要求4至6任一所述的方法,其特征在于,所述光线路终端包括光模块和接入控制器,在所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延之前,所述方法还包括:The method according to any one of claims 4 to 6, characterized in that the optical line terminal includes an optical module and an access controller, and the optical line terminal performs processing on the optical line based on the ranging response message. Before the network terminal allocates the equalization delay, the method further includes:
    所述光模块接收所述测距响应报文;The optical module receives the ranging response message;
    所述光模块以所述业务速率,向所述接入控制器转发所述测距响应报文;The optical module forwards the ranging response message to the access controller at the service rate;
    所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延,包括:The optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, including:
    所述接入控制器基于以所述业务速率发送的测距响应报文,对所述光网络终端分配均衡时延。The access controller allocates a balanced delay to the optical network terminal based on the ranging response message sent at the service rate.
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:The method according to claim 10 or 11, characterized in that the method further includes:
    所述光模块向所述接入控制器发送类型指示,所述类型指示用于指示所述光网络终端是否需要进行速率切换。The optical module sends a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  13. 根据权利要求1至12任一所述的方法,其特征在于,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 1 to 12, characterized in that, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method further includes:
    所述光线路终端向所述光网络终端发送速率切换指令,所述速率切换指令指示所述光网络终端以所述业务速率向所述光线路终端发送报文。The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  14. 一种设备的注册方法,其特征在于,所述方法应用于光网络终端,所述方法包括:A device registration method, characterized in that the method is applied to optical network terminals, and the method includes:
    所述光网络终端向光线路终端发送发现响应报文,所述光网络终端发送所述发现响应报文的速率小于业务速率,所述业务速率为所述光网络终端发送业务报文的速率;The optical network terminal sends a discovery response message to the optical line terminal, the rate at which the optical network terminal sends the discovery response message is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages;
    所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文,所述授权响应报文包括测试报文和业务报文中的至少一个。The optical network terminal sends an authorization response message to the optical line terminal at the service rate, where the authorization response message includes at least one of a test message and a service message.
  15. 根据权利要求14所述的方法,其特征在于,在所述光线路终端的报文处理参数处于初始状态时,对于以小于所述业务速率的速率和以所述业务速率发送的相同报文,所述光线路终端提取出以小于所述业务速率的速率发送的所述相同报文耗费的时长,小于提取出以所 述业务速率发送的所述相同报文耗费的时长。The method according to claim 14, characterized in that when the message processing parameters of the optical line terminal are in an initial state, for the same message sent at a rate less than the service rate and at the service rate, The time it takes for the optical line terminal to extract the same message sent at a rate lower than the service rate is less than the time it takes to extract the same message sent at the service rate.
  16. 根据权利要求14或15所述的方法,其特征在于,所述光网络终端发送所述发现响应报文的速率小于参考速率,所述业务速率大于或等于所述参考速率,当向所述光线路终端发送的报文的发送速率大于或等于所述参考速率时,所述光线路终端对所述报文进行均衡处理,当向所述光线路终端发送的报文的发送速率小于所述参考速率时,所述光线路终端不对所述报文进行均衡处理。The method according to claim 14 or 15, characterized in that the rate at which the optical network terminal sends the discovery response message is less than a reference rate, and the service rate is greater than or equal to the reference rate. When the transmission rate of the packets sent by the line terminal is greater than or equal to the reference rate, the optical line terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate rate, the optical line terminal does not perform equalization processing on the message.
  17. 根据权利要求14至16任一所述的方法,其特征在于,所述授权响应报文包括所述测试报文,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 14 to 16, characterized in that the authorization response message includes the test message, and the optical network terminal sends authorization to the optical line terminal at the service rate. Before responding to the message, the method also includes:
    所述光网络终端向所述光线路终端发送测距响应报文,所述光网络终端发送所述测距响应报文的速率小于所述业务速率。The optical network terminal sends a ranging response message to the optical line terminal, and the rate at which the optical network terminal sends the ranging response message is less than the service rate.
  18. 根据权利要求17所述的方法,其特征在于,所述光网络终端发送所述测距响应报文的速率小于参考速率,所述业务速率大于或等于所述参考速率,当向所述光线路终端发送的报文的发送速率大于或等于所述参考速率时,所述光线路终端对所述报文进行均衡处理,当向所述光线路终端发送的报文的发送速率小于所述参考速率时,所述光线路终端不对所述报文进行均衡处理。The method according to claim 17, characterized in that the rate at which the optical network terminal sends the ranging response message is less than a reference rate, and the service rate is greater than or equal to the reference rate. When the transmission rate of the packets sent by the terminal is greater than or equal to the reference rate, the optical line terminal performs equalization processing on the packets. When the transmission rate of the packets sent to the optical line terminal is less than the reference rate When , the optical line terminal does not perform equalization processing on the message.
  19. 根据权利要求14至16任一所述的方法,其特征在于,所述授权响应报文为所述业务报文,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 14 to 16, characterized in that the authorization response message is the service message, and the optical network terminal sends authorization to the optical line terminal at the service rate. Before responding to the message, the method also includes:
    所述光网络终端以所述业务速率,向所述光线路终端发送测距响应报文,所述测距响应报文包括测试序列。The optical network terminal sends a ranging response message to the optical line terminal at the service rate, and the ranging response message includes a test sequence.
  20. 根据权利要求14至19任一所述的方法,其特征在于,在所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文之前,所述方法还包括:The method according to any one of claims 14 to 19, characterized in that, before the optical network terminal sends an authorization response message to the optical line terminal at the service rate, the method further includes:
    所述光网络终端接收所述光线路终端发送的速率切换指令,所述速率切换指令指示所述光网络终端以所述业务速率向所述光线路终端发送报文。The optical network terminal receives a rate switching instruction sent by the optical line terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  21. 根据权利要求20所述的方法,其特征在于,所述光网络终端以所述业务速率,向所述光线路终端发送授权响应报文,包括:The method according to claim 20, characterized in that the optical network terminal sends an authorization response message to the optical line terminal at the service rate, including:
    所述光网络终端基于所述速率切换指令,以所述业务速率向所述光线路终端发送所述授权响应报文。The optical network terminal sends the authorization response message to the optical line terminal at the service rate based on the rate switching instruction.
  22. 一种设备的注册方法,其特征在于,所述方法应用于光线路终端,所述方法包括:A device registration method, characterized in that the method is applied to optical line terminals, and the method includes:
    所述光线路终端接收光网络终端发送的发现响应报文,所述光网络终端发送所述发现响应报文的速率小于业务速率,所述业务速率为所述光网络终端发送业务报文的速率;The optical line terminal receives the discovery response message sent by the optical network terminal. The rate at which the optical network terminal sends the discovery response message is less than the service rate. The service rate is the rate at which the optical network terminal sends the service message. ;
    所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息;The optical line terminal obtains the device information of the optical network terminal based on the discovery response message;
    所述光线路终端接收所述光网络终端以所述业务速率发送的授权响应报文,所述授权响应报文包括测试报文和业务报文中的至少一个。The optical line terminal receives an authorization response message sent by the optical network terminal at the service rate, where the authorization response message includes at least one of a test message and a service message.
  23. 根据权利要求22所述的方法,其特征在于,所述授权响应报文包括所述测试报文,在所述光线路终端接收所述光网络终端以所述业务速率发送的授权响应报文之前,所述方法还包括:The method of claim 22, wherein the authorization response message includes the test message before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate. , the method also includes:
    所述光线路终端接收所述光网络终端发送的测距响应报文,所述光网络终端发送所述测距响应报文的速率小于所述业务速率;The optical line terminal receives the ranging response message sent by the optical network terminal, and the rate at which the optical network terminal sends the ranging response message is less than the service rate;
    所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延。The optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message.
  24. 根据权利要求23所述的方法,其特征在于,所述方法还包括:The method of claim 23, further comprising:
    所述光线路终端基于所述测试报文,调整所述光线路终端的报文处理参数,所述报文处理参数用于对所述光线路终端接收到的报文进行处理。The optical line terminal adjusts message processing parameters of the optical line terminal based on the test message, and the message processing parameters are used to process messages received by the optical line terminal.
  25. 根据权利要求22所述的方法,其特征在于,所述授权响应报文为所述业务报文,在所述光线路终端接收所述光网络终端以所述业务速率发送的授权响应报文之前,所述方法还包括:The method of claim 22, wherein the authorization response message is the service message before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate. , the method also includes:
    所述光线路终端接收所述光网络终端以所述业务速率发送的测距响应报文,所述测距响应报文包括测试序列;The optical line terminal receives a ranging response message sent by the optical network terminal at the service rate, where the ranging response message includes a test sequence;
    所述光线路终端基于所述测试序列,调整所述光线路终端的报文处理参数,并基于所述测距响应报文,对所述光网络终端分配均衡时延,所述报文处理参数用于对所述光线路终端接收到的报文进行处理。The optical line terminal adjusts the message processing parameters of the optical line terminal based on the test sequence, and allocates a balanced delay to the optical network terminal based on the ranging response message. The message processing parameters Used to process messages received by the optical line terminal.
  26. 根据权利要求24或25所述的方法,其特征在于,所述报文处理参数包括:时钟相位偏差和/或均衡系数。The method according to claim 24 or 25, characterized in that the message processing parameters include: clock phase deviation and/or equalization coefficient.
  27. 根据权利要求24至26任一所述的方法,其特征在于,所述光线路终端包括光模块,所述调整所述光线路终端的报文处理参数,包括:The method according to any one of claims 24 to 26, wherein the optical line terminal includes an optical module, and adjusting the message processing parameters of the optical line terminal includes:
    调整所述光模块的报文处理参数。Adjust the message processing parameters of the optical module.
  28. 根据权利要求22至27任一所述的方法,其特征在于,所述光线路终端包括光模块和接入控制器,在所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息之前,所述方法还包括:The method according to any one of claims 22 to 27, characterized in that the optical line terminal includes an optical module and an access controller, and the optical line terminal obtains the optical network terminal based on the discovery response message. Before obtaining the device information, the method also includes:
    所述光模块接收所述发现响应报文;The optical module receives the discovery response message;
    所述光模块以所述业务速率,向所述接入控制器转发所述发现响应报文;The optical module forwards the discovery response message to the access controller at the service rate;
    所述光线路终端基于所述发现响应报文获取所述光网络终端的设备信息,包括:The optical line terminal obtains the device information of the optical network terminal based on the discovery response message, including:
    所述接入控制器基于以所述业务速率发送的发现响应报文,获取所述光网络终端的设备信息。The access controller obtains the device information of the optical network terminal based on the discovery response message sent at the service rate.
  29. 根据权利要求23或25所述的方法,其特征在于,所述光线路终端包括光模块和接入控制器,在所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延之前,所述方法还包括:The method according to claim 23 or 25, characterized in that the optical line terminal includes an optical module and an access controller, and the optical line terminal performs the processing of the optical network terminal on the optical network terminal based on the ranging response message. Before allocating the equalization delay, the method further includes:
    所述光模块接收所述测距响应报文;The optical module receives the ranging response message;
    所述光模块以所述业务速率,向所述接入控制器转发所述测距响应报文;The optical module forwards the ranging response message to the access controller at the service rate;
    所述光线路终端基于所述测距响应报文,对所述光网络终端分配均衡时延,包括:The optical line terminal allocates a balanced delay to the optical network terminal based on the ranging response message, including:
    所述接入控制器基于以所述业务速率发送的测距响应报文,对所述光网络终端分配均衡时延。The access controller allocates a balanced delay to the optical network terminal based on the ranging response message sent at the service rate.
  30. 根据权利要求28或29所述的方法,其特征在于,所述方法还包括:The method according to claim 28 or 29, characterized in that the method further includes:
    所述光模块向所述接入控制器发送类型指示,所述类型指示用于指示所述光网络终端是否需要进行速率切换。The optical module sends a type indication to the access controller, where the type indication is used to indicate whether the optical network terminal needs to perform rate switching.
  31. 根据权利要求22至30任一所述的方法,其特征在于,在所述光线路终端接收所述光 网络终端以所述业务速率发送的授权响应报文之前,所述方法还包括:The method according to any one of claims 22 to 30, characterized in that, before the optical line terminal receives the authorization response message sent by the optical network terminal at the service rate, the method further includes:
    所述光线路终端向所述光网络终端发送速率切换指令,所述速率切换指令指示所述光网络终端以所述业务速率向所述光线路终端发送报文。The optical line terminal sends a rate switching instruction to the optical network terminal, and the rate switching instruction instructs the optical network terminal to send a message to the optical line terminal at the service rate.
  32. 一种无源光网络,其特征在于,所述无源光网络包括:光网络终端和光线路终端;A passive optical network, characterized in that the passive optical network includes: an optical network terminal and an optical line terminal;
    所述光网络终端用于执行权利要求14至21任一所述的方法;The optical network terminal is used to perform the method described in any one of claims 14 to 21;
    所述光线路终端用于执行权利要求22至31任一所述的方法。The optical line terminal is used to perform the method described in any one of claims 22 to 31.
  33. 一种光网络终端,其特征在于,所述光网络终端包括:An optical network terminal, characterized in that the optical network terminal includes:
    发送模块,用于向光线路终端发送发现响应报文,发送模块发送发现响应报文的速率小于业务速率,业务速率为发送模块发送业务报文的速率;The sending module is used to send discovery response messages to the optical line terminal. The rate at which the sending module sends discovery response messages is less than the service rate, and the service rate is the rate at which the sending module sends service messages;
    所述发送模块,还用于以业务速率,向光线路终端发送授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。The sending module is also configured to send an authorization response message to the optical line terminal at a service rate, where the authorization response message includes at least one of a test message and a service message.
  34. 一种光线路终端,其特征在于,所述光线路终端包括收发模块和处理模块,An optical line terminal, characterized in that the optical line terminal includes a transceiver module and a processing module,
    所述收发模块,用于接收光网络终端发送的发现响应报文,光网络终端发送发现响应报文的速率小于业务速率,业务速率为光网络终端发送业务报文的速率;The transceiver module is used to receive discovery response messages sent by the optical network terminal. The rate at which the optical network terminal sends discovery response messages is less than the service rate, and the service rate is the rate at which the optical network terminal sends service messages;
    所述处理模块,用于基于发现响应报文获取光网络终端的设备信息;The processing module is used to obtain the device information of the optical network terminal based on the discovery response message;
    所述收发模块,还用于接收光网络终端以业务速率发送的授权响应报文,授权响应报文包括测试报文和业务报文中的至少一个。The transceiver module is also used to receive an authorization response message sent by the optical network terminal at a service rate. The authorization response message includes at least one of a test message and a service message.
  35. 一种光网络终端,其特征在于,包括存储器和处理器,所述存储器存储有程序指令,所述处理器运行所述程序指令以执行权利要求14至21任一所述的方法。An optical network terminal is characterized in that it includes a memory and a processor, the memory stores program instructions, and the processor runs the program instructions to execute the method described in any one of claims 14 to 21.
  36. 一种光线路终端,其特征在于,包括存储器和处理器,所述存储器存储有程序指令,所述处理器运行所述程序指令以执行权利要求22至31任一所述的方法。An optical line terminal, characterized in that it includes a memory and a processor, the memory stores program instructions, and the processor runs the program instructions to execute the method described in any one of claims 22 to 31.
  37. 一种计算机可读存储介质,其特征在于,包括程序指令,当所述程序指令在计算机设备上运行时,使得所述计算机设备执行如权利要求14至31任一所述的方法。A computer-readable storage medium, characterized by comprising program instructions that, when run on a computer device, cause the computer device to perform the method according to any one of claims 14 to 31.
  38. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求14至31任一所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method according to any one of claims 14 to 31.
PCT/CN2022/106027 2022-04-22 2022-07-15 Device registration method and apparatus WO2023201912A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210431791.8A CN116980777A (en) 2022-04-22 2022-04-22 Equipment registration method and device
CN202210431791.8 2022-04-22

Publications (1)

Publication Number Publication Date
WO2023201912A1 true WO2023201912A1 (en) 2023-10-26

Family

ID=88419009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106027 WO2023201912A1 (en) 2022-04-22 2022-07-15 Device registration method and apparatus

Country Status (2)

Country Link
CN (1) CN116980777A (en)
WO (1) WO2023201912A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120008954A1 (en) * 2009-07-30 2012-01-12 Naruto Tanaka Receiving unit, optical line terminal, and frequency calibration method for clock and data recovery circuit
CN103378979A (en) * 2012-04-13 2013-10-30 华为终端有限公司 Passive optical network management method, device and system
WO2017049429A1 (en) * 2015-09-21 2017-03-30 华为技术有限公司 Information transmission method and apparatus, and passive optical network system
CN112995802A (en) * 2019-12-12 2021-06-18 华为技术有限公司 Optical transmitter, optical network unit and optical transmission method
US20210391922A1 (en) * 2018-09-25 2021-12-16 Zte Corporation Ranging Method for Optical Network, OLT, ONU, and Optical Network System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120008954A1 (en) * 2009-07-30 2012-01-12 Naruto Tanaka Receiving unit, optical line terminal, and frequency calibration method for clock and data recovery circuit
CN103378979A (en) * 2012-04-13 2013-10-30 华为终端有限公司 Passive optical network management method, device and system
WO2017049429A1 (en) * 2015-09-21 2017-03-30 华为技术有限公司 Information transmission method and apparatus, and passive optical network system
US20210391922A1 (en) * 2018-09-25 2021-12-16 Zte Corporation Ranging Method for Optical Network, OLT, ONU, and Optical Network System
CN112995802A (en) * 2019-12-12 2021-06-18 华为技术有限公司 Optical transmitter, optical network unit and optical transmission method

Also Published As

Publication number Publication date
CN116980777A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
JP3819898B2 (en) Bandwidth allocation method for voice service in Gigabit Ethernet passive optical network
JP7444925B2 (en) OLT, ONU, PON system, and information transmission method in PON system
TWI455501B (en) Methods and apparatus for extending mac control messages in epon
US9967186B2 (en) Selective deep packet inspection
WO2009135825A1 (en) Two and three-stroke discovery process for 10g-epons
US20070201872A1 (en) IP triple play over Gigabit Ethernet passive optical network
WO2020043175A1 (en) Method and apparatus for channelizing physical layer ports
CN102594802B (en) Method and system for low-latency networking
US9479619B2 (en) Transmission apparatus, transmission system, and transmission method
CN108521343A (en) A kind of processing method and processing device of OAM message
US10798472B2 (en) Data transmission method, data receiving method, optical line terminal and optical network unit
US20220116269A1 (en) Apparatus and methods for synchronization pattern configuration in an optical network
US20230144582A1 (en) Registration method and device, method for writing registration information, optical line terminal, and optical network unit
WO2023201912A1 (en) Device registration method and apparatus
WO2017215438A1 (en) Service activating method, device and system, and storage medium
US7920465B2 (en) Method and apparatus for transmitting the control signal of resilient packet ring media access control
JP6134247B2 (en) Optical communication system, signal transmission control method, and station side optical line termination device
WO2022111114A1 (en) Timing information configuration method and related apparatus
WO2024045815A1 (en) Registration method, related device and optical communication system
WO2024078057A1 (en) Registration method for optical communication network, apparatus, communication device, and system
WO2024045814A1 (en) Data transmission method, related device and optical communication system
WO2022267543A1 (en) Data frame fragmentation method, data frame parsing method and related device
WO2015117502A1 (en) Message transceiving method and device, channel unit and communication device
JP2015082770A (en) Optical communication system, registration control method, and subscriber side optical line termination device
JP6093282B2 (en) Optical communication system, communication control method, and station side optical line terminator

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22938137

Country of ref document: EP

Kind code of ref document: A1