WO2024045815A1 - Registration method, related device and optical communication system - Google Patents

Registration method, related device and optical communication system Download PDF

Info

Publication number
WO2024045815A1
WO2024045815A1 PCT/CN2023/102552 CN2023102552W WO2024045815A1 WO 2024045815 A1 WO2024045815 A1 WO 2024045815A1 CN 2023102552 W CN2023102552 W CN 2023102552W WO 2024045815 A1 WO2024045815 A1 WO 2024045815A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication node
data stream
request message
rtt
onu1
Prior art date
Application number
PCT/CN2023/102552
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 WO2024045815A1 publication Critical patent/WO2024045815A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • the present application relates to the field of communication technology, and in particular, to a registration method, related equipment and an optical communication system.
  • the ring network includes a first central office (CO) device and a second CO device.
  • N communication nodes are connected in sequence between the first CO device and the second CO device, where N is any positive integer greater than 1.
  • the first CO device, N communication nodes and the second CO device form a ring network.
  • the ring network includes multiple registered communication nodes.
  • the multiple registered communication nodes use time division multiple access (TDMA) to communicate with the CO device (the CO device can be the first CO device or the second CO device). ) sends uplink traffic. That is, each registered communication node sends uplink services to the CO device within the time slot allocated by the CO device, and it is ensured that there will be no conflict between the uplink services of each registered communication node.
  • TDMA time division multiple access
  • each registered communication node sends uplink services to the CO device within the time slot allocated by the CO device, and it is ensured that there will be no conflict between the uplink services of each registered communication node.
  • the ring network connection has a communication node to be registered (such as communication node N)
  • the CO device completes the registration of the communication node N to be registered within the window time.
  • the CO device can provide communication Node N allocates time slots for sending uplink services.
  • each registered communication node cannot use the window opening time to send uplink services, resulting in a waste of bandwidth during the window opening time.
  • Embodiments of the present application provide a registration method, related equipment and an optical communication system, which can reduce the bandwidth and delay jitter of communication nodes registering to central office equipment.
  • the first aspect of the embodiment of the present application provides a registration method.
  • the method includes: a first communication node receives a registration request message from a second communication node, and the registration request message is used to measure central office equipment and the second communication node.
  • the first round-trip communication delay between communication nodes is RTT; the first communication node carries the registration request message on the target time slot of the upstream data stream, and the target time slot is indicated by the central office device; the The first communication node sends the uplink data stream to the central office device.
  • the central office device can receive the registration request message from the second communication node in a window-free manner.
  • the process of sending the registration request message to the central office device there is no need to occupy independent time slot resources, which reduces bandwidth waste and improves the utilization efficiency of time slot resources.
  • the first RTT is measured based on a window-free method, timely transmission of the uplink service of the registered first communication node is ensured, and delay jitter is reduced.
  • the first communication node sends an uplink Before the data flow, the method further includes: the first communication node measuring a second RTT between the first communication node and the second communication node according to the registration request message; the first communication node The second RTT is carried on the target time slot.
  • the first communication node measures the second RTT between the first communication node and the second communication node, and the first communication node directly sends the second RTT to the central device, so that the central office device determines the second RTT according to the second RTT.
  • Obtaining the first RTT effectively improves the timeliness of the central office equipment obtaining the first RTT.
  • the method before the first communication node receives the registration request message from the second communication node, the method further includes: the first communication node sends a message to the second communication node.
  • the node sends a registration trigger message, and the registration trigger message is used to instruct the second communication node to send the registration request message.
  • the first communication node triggers the second communication node to send a registration request message through the registration trigger message, which improves the success rate of registering the second communication device.
  • the method before the first communication node sends a registration trigger message to the second communication node, the method further includes: the first communication node receives a message from the center The first downlink data flow of the central office device; the first communication node copies the first downlink data flow to obtain the second downlink data flow; the first communication node sends a registration trigger message to the second communication node
  • the method includes: the first communication node sending the second downlink data stream to the second communication node, the second downlink data stream including a target downlink data frame, and the target downlink data frame is used to carry the registration trigger. information.
  • the first communication node sends a target downlink data frame to the second communication node, so that the second communication node sends a registration request message according to the target downlink data frame. It can be seen that the central office device does not need to send the registration trigger message by broadcasting, but directly sends the registration trigger message to the second communication node through the target downlink data frame, which ensures the success rate of the second communication node receiving the registration trigger message.
  • the registration trigger message is a target superframe number carried by the target downlink data frame.
  • the first communication node instructs the second communication node to send a registration request message through the target superframe number of the target downlink data frame.
  • the second communication node detects the target superframe number, it directly sends the registration request message to the first communication node.
  • the node sends the registration request message to ensure the success rate of the second communication node receiving the registration trigger message.
  • the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes: The first communication node determines a first time.
  • the first time is the time when the first communication node sends a registration trigger message to the second communication node.
  • the registration trigger message is used to instruct the second communication node to send The registration request message;
  • the first communication node determines a second time, and the second time is the time when the first communication node receives the registration request message; the first communication node determines the second time
  • the difference between and the first time is the second RTT.
  • the first communication node measures the second RTT between the first communication node and the second communication node, and the first communication node directly sends the second RTT to the central device, so that the central office device determines the second RTT according to the second RTT.
  • Obtaining the first RTT effectively improves the timeliness of the central office equipment obtaining the first RTT.
  • the method further includes: the first communication node receives a message from the center The third downlink data stream of the central office device; the first communication node copies the third downlink data stream to obtain a fourth downlink data stream; the first communication node adds the registration in the fourth downlink data stream Trigger message to obtain the fifth downstream data stream; the first communication The node sending a registration trigger message to the second communication node includes: the first communication node sending the fifth downlink data stream to the second communication node.
  • the first communication node sends the fifth downlink data stream to the second communication node, so that the second communication node sends the registration request message according to the fifth downlink data stream. It can be seen that the central office equipment does not need to send the registration trigger message by broadcasting, but directly sends the registration trigger message to the second communication node through the fifth downlink data flow, which ensures the success rate of the second communication node receiving the registration trigger message.
  • the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes: The first communication node determines a third time, which is the time when the first communication node sends the first measurement message to the second communication node; the first communication node determines a fourth time, and the third time is the time when the first communication node sends the first measurement message to the second communication node.
  • the fourth time is the time when the first communication node receives the second measurement message from the second communication node; the first communication node determines that the difference between the fourth time and the third time is the Describe the second RTT.
  • the first communication node measures the second RTT based on the first measurement message and the second measurement message, which effectively improves the accuracy of measuring the second RTT.
  • the first receiving port RX of the first communication node is connected to the central office device, and the second RX of the first communication node is connected to the second communication node.
  • the method further includes: the first communication node, in the first RX and the second RX, transfers the The second RX is switched to a receiving port for receiving the registration request message.
  • the success rate of the first communication node sending a registration request message to the central office device and sending the uplink data stream to the second communication node can be successfully guaranteed.
  • the first communication node switches the second RX to receive the registration request message among the first RX and the second RX.
  • the method further includes: the first communication node detecting that the signal quality received via the first RX is better than the signal quality received via the second RX.
  • the first communication node selects the central office device for registration based on signal quality, which improves the success rate of registration of the first communication node.
  • the first communication node switches the second RX to receive the registration request message among the first RX and the second RX.
  • the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
  • the first communication node determines that a fault event occurs in the optical signal received via the second RX
  • the first communication node chooses to register with the central office device connected to the first RX, thereby improving the efficiency of the first communication The success rate of node registration.
  • the method is applied to an optical communication system, and the optical communication system includes the central office device and a plurality of communication nodes connected to the central office device in sequence;
  • the first communication node and the second communication node are two different communication nodes among the plurality of communication nodes, and the first communication node is connected between the central office equipment and the second communication node .
  • the second aspect of the embodiment of the present application provides a registration method.
  • the method includes: a central office device receiving an uplink data stream from a first communication node; Bearer registration request message, wherein the registration request message comes from the second communication node, and the target time slot is indicated by the central office device;
  • the central office device measures a first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message.
  • the method further includes: the central office device obtains the data flow on the target time slot.
  • a round-trip communication delay RTT includes: the central office device measuring the first RTT according to the second RTT and the registration request message.
  • the method further includes: the central office device Obtain a third RTT, which is the RTT between the central office device and the first communication node; the central office device measures the first RTT according to the second RTT and the registration request message.
  • the RTT includes: the central office device determines that the sum of the second RTT and the third RTT is the first RTT.
  • the central office device obtaining the third RTT includes: the central office device obtaining the identity of the first communication node on which the uplink data stream has been carried; The central office device obtains the corresponding third RTT according to the identification of the first communication node.
  • the third aspect of the embodiment of the present application provides a registration method.
  • the method includes: a second communication node receives a registration trigger message from a first communication node; the second communication node sends a message to the third communication node according to the registration trigger message.
  • a communication node sends a registration request message, and the registration request message is used to measure the first round-trip communication delay RTT between the central office device and the second communication node.
  • the second communication node receiving the registration trigger message from the first communication node includes: the second communication node receiving a second downlink message from the first communication node. data stream, the second downlink data stream includes a target downlink data frame, and the registration trigger message is a target superframe number carried by the target downlink data frame.
  • the second communication node receiving the registration trigger message from the first communication node includes: the second communication node receiving the fifth downlink message from the first communication node. Data stream, the fifth downlink data stream has carried the registration trigger message.
  • the fourth aspect of the embodiment of the present application provides a communication node.
  • the communication node includes a transceiver and a service processor.
  • the transceiver is connected to the service processor; the transceiver is used to receive a message from another communication node.
  • Registration request message the registration request message is used to measure the first round-trip communication delay RTT between the central office equipment and the other communication node; the service processor is used to carry all the data on the target time slot of the uplink data stream.
  • the target time slot is the time slot indicated by the central office device for the communication node; the transceiver is also used to send the uplink data stream to the central office device.
  • the fifth aspect of the embodiment of the present application provides a central office device.
  • the central office device includes a transceiver and a service processor.
  • the transceiver is connected to the service processor; the transceiver is used to receive the first communication from The node’s upstream data flow;
  • the service processor is configured to obtain the registration request message carried on the target time slot of the uplink data stream, wherein, The registration request message comes from the second communication node, the target time slot is the time slot indicated by the central office device for the first communication node, and the service processor is also configured to measure the time slot according to the registration request message.
  • the sixth aspect of the embodiment of the present application provides a communication node.
  • the communication node includes a transceiver and a service processor.
  • the transceiver is connected to the service processor; the transceiver is used to receive a message from another communication node. Register trigger message;
  • the service processor is configured to send a registration request message to the other communication node according to the registration trigger message, and the registration request message is used to measure the first round-trip communication time between the central office device and the second communication node. Extended RTT.
  • the seventh aspect of the embodiment of the present application provides an optical communication system.
  • the optical communication system includes a central office device, a first communication node and a second communication node that are connected in sequence; the first communication node is used to send a signal to the third communication node.
  • the second communication node sends a registration trigger message; the second communication node is used to send a registration request message to the first communication node according to the registration trigger message; the first communication node is used to send a registration request message in the target time slot of the uplink data stream.
  • the registration request message is carried on the mobile phone, and the target time slot is the time slot indicated by the central office device to the first communication node; the first communication node is used to send the uplink data to the central office device. stream; the central office device is used to obtain the registration request message that has been carried by the uplink data stream; the central office device is used to measure the central office device and the second communication node according to the registration request message.
  • the first round-trip communication delay is RTT.
  • the eighth aspect of the embodiments of the present application provides a readable storage medium. Execution instructions are stored in the readable storage medium. When at least one service processor executes the execution instructions, any one of the first to third aspects is executed. method shown.
  • Figure 1a is an example of the structure of a ring network
  • Figure 1b is a structural example diagram of a ring network provided by an embodiment of the present application.
  • Figure 2a is an example diagram of the execution steps of ONU registration to OLT provided by existing solutions
  • Figure 2b is an example diagram of the transmission cycle indicated by the OLT
  • Figure 2c is a comparison example of the transmission cycle indicated by the OLT
  • Figure 3 is a flow chart of the first steps of the registration method provided by the embodiment of the present application.
  • Figure 4 is an example structural diagram of a downlink data frame provided by the embodiment of the present application.
  • Figure 5 is an example structural diagram of the first embodiment of the ONU provided by the embodiment of the present application.
  • Figure 6a is a timing diagram for the OLT to obtain the third RTT provided by the embodiment of the present application.
  • Figure 6b is a timing diagram for the OLT to obtain the second RTT provided by the embodiment of the present application.
  • Figure 7 is a second step flow chart of the registration method provided by the embodiment of the present application.
  • Figure 8 is a third step flow chart of the registration method provided by the embodiment of the present application.
  • Figure 9 is a first structural example diagram of ONU1 provided by the embodiment of the present application.
  • Figure 10 is a flow chart of the fourth step of the registration method provided by the embodiment of the present application.
  • Figure 11 is a flow chart of the fifth step of the registration method provided by the embodiment of the present application.
  • Figure 12 is a second structural example diagram of ONU1 provided by the embodiment of the present application.
  • Figure 13 is a structural example diagram of a communication device provided by an embodiment of the present application.
  • Figure 14 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
  • Figure 1a is an example of the structure of a ring network.
  • the ring network includes a first CO device 101, a second CO device 102, and N communication nodes sequentially connected between the first CO device 101 and the second CO device 102.
  • the first CO device 101 is also connected to the second CO device 102 .
  • N shown in this example is any positive integer greater than 1.
  • the first CO device 101 and the second CO device 102 are control centers and signal aggregation processing nodes, such as issuing commands to control various communication nodes. Each communication node needs to feed back a signal to the first CO device 101 or the second CO device 102 .
  • the first CO device 101 is used to implement data transmission between each communication node and the upper layer network.
  • the first CO device 101 can act as an intermediary between each communication node and the upper layer network.
  • the first CO device 101 can forward the downlink traffic received from the upper layer network to the corresponding communication node and receive the downlink traffic received from each communication node.
  • the uplink traffic is forwarded to the upper layer network.
  • the upper-layer network can be the Internet, public switched telephone network (PSTN), interactive Internet television (IPTV), voice over Internet protocol (VoIP) and other networks.
  • the advantage of using a ring network is that once a failure occurs between two communication nodes, it will not affect the normal communication of the ring network. For example, if a fault occurs between communication node 2 and communication node 3, communication node 2 does not need to communicate through the link between communication node 2 and communication node 3.
  • the communication node 2 communicates normally with the communication node 1, and the communication node 1 communicates normally with the first CO device 101, so as to ensure normal communication between the communication node 2 and the first CO device 101.
  • the communication node 3 communicates with the communication node N, and the communication node N communicates with the second CO device 102 to ensure normal communication between the communication node 3 and the second CO device 102.
  • the service that the communication node 2 needs to send to the second CO device 102 can be forwarded by the first CO device 101.
  • the communication node 3 needs to send it to the first CO device 102.
  • the services of the CO device 101 can be forwarded by the second CO device 102.
  • ring networking is used in optical transport networks.
  • the CO device can be a base station controller (BSC), and the communication node can be a base transciver station (BTS). ).
  • BSC base station controller
  • BTS base transciver station
  • the CO device can be a server, and the communication node can be a switch.
  • the CO device can be a baseband processing unit (building baseband unit, BBU), and the communication node can be a radio remote unit.
  • the CO device can be a server
  • the communication node can be a terminal device such as a surveillance camera.
  • the CO equipment included in the ring network may be an optical line terminal (OLT)
  • the communication node may be an optical network unit (ONU).
  • the ring networking applied in this application can be seen as shown in Figure 1b, where Figure 1b is a structural example diagram of the ring networking provided by the embodiment of this application.
  • the ring network includes OLT1, OLT2 and N ONUs connected between OLT1 and OLT2 in sequence.
  • OLT1 and OLT2 may be two communication boards included in the same OLT.
  • OLT1 and OLT2 may be two independent OLTs that have a connection relationship.
  • any two adjacent ONUs do not need to be connected through an optical splitter, and there is no need to connect the OLT1 to the adjacent ONU (that is, ONU1 shown in Figure 1b) through an optical splitter.
  • OLT2 and the adjacent ONU do not need to be connected through an optical splitter.
  • ONU1 has two communication ports. One communication port of ONU1 is directly connected to OLT1 through an optical fiber, and the other communication port of ONU1 is directly connected to ONU2 through an optical fiber.
  • the value of N is 2 as an example, and the specific value of N is not limited.
  • OLT1, N ONUs and OLT2 to form a ring network there is no limitation.
  • OLT1, N ONUs and OLT2 can also form a chain network or a tree network.
  • the registration method provided in this embodiment is used to register the ONU in the ring network to the OLT, so that the OLT can allocate time slots for transmitting uplink services to the ONU.
  • the process of how an ONU in a ring network provided by the existing solution is registered to the OLT is first described below in conjunction with Figures 2a and 2b:
  • Figure 2a is Existing solutions provide an example diagram of the execution steps for registering an ONU to an OLT.
  • Figure 2b is an example diagram of the transmission cycle indicated by the OLT.
  • Step 201 OLT1 receives a registration request message from the ONU to be registered in the first transmission cycle.
  • the first transmission cycle 220 indicated by OLT1 includes time slot 221 and time slot 222, where time slot 221 is the time slot indicated by OLT1 for ONU1, so that ONU1 sends uplink services to OLT1 in time slot 221.
  • Time slot 222 is the time slot indicated by OLT1 to ONU2, so that ONU2 sends uplink services to OLT1 in time slot 222.
  • the OLT allocates a discovery time window 223 in the first transmission cycle 220.
  • This example uses three time slots: 221, 222, and discovery time windows 223. The timing sequence between them is not limited, and this embodiment does not limit the duration of the discovery time window 223.
  • any registered ONU included in the ring network cannot occupy the discovery time window 223 to send uplink services to OLT1.
  • OLT1 indicates the first transmission cycle to each ONU through dynamic bandwidth assignment (DBA).
  • DBA dynamic bandwidth assignment
  • the ONU3 to be registered detects the discovery time window 223 of the first transmission cycle, and the ONU3 to be registered carries a registration request message in the discovery time window 223.
  • the registration request message is used by ONU3 to request registration to OLT1.
  • the registration request message is the serial number (SN) of ONU3.
  • Registered ONU2 carries the uplink service of ONU2 in time slot 222.
  • the registered ONU1 carries the uplink service of ONU1 in this time slot 221.
  • Step 202 OLT1 sends the first measurement message to the ONU to be registered.
  • OLT1 When OLT1 detects the registration request message carried by the discovery time window 223, OLT1 sends the first measurement message to ONU3 to be registered.
  • Step 203 OLT1 receives the second measurement message from the ONU to be registered.
  • the second transmission cycle 230 indicated by OLT1 includes the time slot 231 of ONU1 and the time slot 232 of ONU2.
  • the second transmission period 230 also includes a ranging time window 233.
  • any registered ONU included in the ring network cannot occupy the ranging time window 233 to send uplink services to OLT1.
  • the first measurement message shown in this example is used to indicate the measurement Time window 233.
  • the ONU3 to be registered detects the ranging time window 233 included in the second transmission period 230 according to the first measurement message, and the ONU3 to be registered carries the second measurement message in the ranging time window 233.
  • Registered ONU2 carries the uplink service of ONU2 in time slot 232.
  • the registered ONU1 carries the uplink service of ONU1 in this time slot 231.
  • Step 204 OLT1 obtains the target round-trip communication delay according to the first measurement message and the second measurement message.
  • OLT1 can calculate the round-trip time (RTT) between OLT1 and ONU3 based on the sending time when OLT1 sends the first measurement message and the receiving time when OLT1 receives the second measurement message.
  • the RTT between OLT1 and ONU3 is equal to the difference between the receiving time when OLT1 receives the second measurement message and the sending time when OLT1 sends the first measurement message.
  • Step 205 OLT1 allocates time slots to ONU3.
  • OLT1 can allocate time slots for ONU3 to transmit ONU3's uplink services based on the RTT between OLT1 and ONU3, so that ONU3 can successfully register with OLT1.
  • OLT1 determines that ONU3 has successfully registered with OLT1
  • OLT1 allocates a third transmission cycle 240, where the third transmission cycle 240 includes the time slot 241 of ONU1, the time slot 242 of ONU2 and the time slot of ONU3 243.
  • ONU3 carries the uplink service of ONU3 in the time slot 243 indicated by OLT1.
  • Time slot 241, time slot 242 and time slot 243 do not overlap in time, thereby ensuring that there will be no transmission conflict between uplink services sent by each ONU registered to OLT1.
  • the time window indicated by the OLT (such as the discovery time window or ranging time window) cannot be used for the transmission of the uplink services of the registered ONU. Therefore, the time window indicated by the OLT brings a waste of bandwidth.
  • Time t1, time t2, time t3, time t4, time t5, time t6, time t7 and time t8 shown in Figure 2c are on the time axis, increasing in sequence.
  • OLT1 does not need to allocate a time window (such as the discovery time window or ranging time window shown in Figure 2b)
  • OLT1 is the time slot indicated by ONU1 and ONU2.
  • See time slot allocation example 1 OLT1 within a transmission cycle, is ONU1 is allocated a time slot 251. The starting time of this time slot 251 is time t1 and the end time is time t2.
  • OLT1 allocates time slot 252 to ONU2.
  • the starting time of this time slot 252 is time t2 and the end time is t3.
  • OLT1 allocates time slot 253 to ONU1.
  • the starting time of this time slot 253 is time t3 and the end time is time t4.
  • the OLT allocates time slot 254 to ONU2.
  • the starting time of this time slot 254 is time t4 and the end time is t6.
  • OLT1 is the time slot indicated by ONU1 and ONU2. See time slot allocation example 2, OLT1 within a transmission cycle, is ONU1 is allocated a time slot 261. The start time of this time slot 261 is time t1 and the end time is time t2 (the same as the start and end time of time slot 251 of ONU1 shown in time slot example 1). OLT1 allocates time slot 262 to ONU2. The starting time of this time slot 262 is time t2 and the end time is t3 (the same as the starting and ending time of time slot 262 of ONU2 shown in time slot example 1).
  • OLT1 allocates a time window 263 for registration to the ONU to be registered.
  • the starting time of this time window 263 is time t3 and the end time is time t5.
  • time slot allocation example 2 is compared with time slot allocation example 1.
  • OLT1 has the time slot indicated for ONU1 and the time slot indicated for ONU2. Delays occur in all time slots.
  • OLT1 allocates time slot 264 to ONU1 in the next transmission cycle.
  • the starting time of time slot 264 is time t5 and the end time is time t7.
  • time slot allocation example 2 OLT1 allocates time slot 265 to ONU2 in the next transmission cycle.
  • the starting time of time slot 265 is time t7 and the end time is time t8.
  • ONU's time slot 255 starting Delays occur at both the moment and the end moment, causing the registered ONU's uplink services to be unable to be transmitted in time. The jitter and uncertainty of the delay increase, and it will not be able to adapt to services that require high timeliness of service transmission.
  • the embodiment of this application provides a registration method.
  • the registration method shown in this embodiment enables the ONU to be registered to be successfully registered to the OLT without opening a window on the OLT, solving the problem of ONU registration by opening a window.
  • the solution to the OLT leads to bandwidth waste, increased delay and delay jitter.
  • Figure 3 is a flow chart of the first steps of the registration method provided by the embodiment of the present application.
  • Step 301 OLT1 sends the first initial downlink data stream to ONU1.
  • ONU1 which is directly connected to OLT1 through optical fiber and has not yet registered, is taken as an example.
  • the process of ONU1 registering to OLT1 is first described:
  • the first initial downstream data stream shown in this embodiment is used for ONU1 to register to OLT1.
  • the first initial downlink data stream includes one or more continuous downlink data frames.
  • the structure of the downlink data frame can be seen in Figure 4.
  • Figure 4 is an example of the structure of the downlink data frame provided by the embodiment of the present application.
  • the initial downlink data frame 400 includes a physical synchronization block (PSBd) 401 and a physical layer frame payload (physical layer frame payload) 402.
  • PSBd physical synchronization block
  • physical layer frame payload physical layer frame payload
  • PSBd401 includes fields physical synchronization (PSync) field 411, superframe counter (superframe counter, SFC) field 412, operation control (operation control, OC) field 413 and upstream bandwidth map (upstream bandwidth map, US BWmap) field 414 .
  • PSync physical synchronization
  • superframe counter superframe counter
  • operation control operation control
  • upstream bandwidth map upstream bandwidth map, US BWmap
  • the Psync field 411 is a physical layer synchronization field, which can be used to carry downlink frame synchronization indicator symbols.
  • the SFC field 412 is used to carry the superframe number.
  • the superframe number carried by the SFC field 412 is essentially a frame cycle counter with a width of 30 bits. When the superframe number is 0, it indicates the start of a superframe.
  • US BWmap field 414 is a time slot scheduling message, which is used to indicate the target time slot occupied by ONU1. Specifically, the US BWmap field 414 is used to carry the user's bandwidth map (BWMAP) information.
  • US BWmap field 414 includes N allocation structures (Allocation Structure).
  • Each Allocation Structure includes a bandwidth allocation identifier (allocation identifier, Alloc-ID) field 421, a slot start time (start time) field 422, and a grant size (Grant size) field 423.
  • the Allocation ID field is used to carry the identifier (Identity, ID) of ONU1 authorized to send.
  • the start time field is used to indicate the start time of the time slot allocated by OLT1 for ONU1.
  • the Grant size field 423 is used to indicate the length of the time slot granted to ONU1. .
  • the initial downlink data frame 400 may include an Allocation Structure authorized to ONU1.
  • Step 302 ONU1 performs superframe synchronization according to the first initial downlink data stream.
  • ONU1 performs superframe synchronization based on the downlink data frame 400 included in the downlink data stream. Specifically, ONU1 maintains a cycle counter, which is used to implement superframe synchronization. Specifically, after receiving the downlink data frame 400 from OLT1, ONU1 uses the first superframe number carried in the SFC field 412 of the downlink data frame 400 as the value of the loop counter. It can be understood that ONU1 ensures that the value of the loop counter is consistent with each The superframe number carried by the SFC field 412 of a received downlink data frame 400 remains consistent, completing downlink superframe synchronization.
  • Step 303 ONU1 sends an initial registration request message to OLT1.
  • the initial superframe number can be pre-agreed between ONU1 and OLT1.
  • the initial superframe number is used to instruct ONU1 to send an initial registration request message to OLT1.
  • ONU1 detects the frame header of the downlink data frame carrying the initial superframe number, it sends an initial registration request message to OLT1.
  • OLT1 and ONU1 agree that if ONU1 receives the frame header of a downlink data frame carrying the target superframe number 10, ONU1 will send an initial registration request message to OLT1.
  • OLT1 and ONU1 agree that if ONU1 receives the frame header of a downlink data frame carrying an odd target superframe number, ONU1 sends an initial registration request message to OLT1.
  • OLT1 and ONU1 agree that if ONU1 receives downlink data carrying a target superframe number that is a multiple of 10 In the case of frame header, ONU1 sends an initial registration request message to OLT1. This embodiment does not limit the value of the initial superframe number.
  • the initial superframe number is 10 as an example.
  • ONU1 sends an initial registration request message to OLT1.
  • the initial registration request message carries SN of ONU1.
  • FIG. 5 is an example structural diagram of the first embodiment of the ONU provided by the embodiment of this application.
  • ONU1 includes two optical modules, namely optical module 501 and optical module 502.
  • the optical module 501 includes a first transmit port (transport, TX) and a first receive port (receive, RX).
  • the optical module 502 includes 2nd TX and 2nd RX.
  • the optical module 501 is connected to OLT1, and the optical module 502 is connected to ONU2.
  • the ONU1 also includes a service processor 503 connected to the optical module 501 and the optical module 502 respectively.
  • the service processor 503 shown in this embodiment may be one or more chips, or one or more integrated circuits.
  • the service processor 503 may be one or more field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), system on chips (SoCs), central Processor (central processor unit, CPU), network processor (network processor, NP), digital signal processing circuit (digital signal processor, DSP), microcontroller (micro controller unit, MCU), programmable logic controller (programmable logic device, PLD) or other integrated chips, or any combination of the above chips or processors, etc.
  • FPGAs field-programmable gate arrays
  • ASICs application specific integrated circuits
  • SoCs system on chips
  • central Processor central processor unit, CPU
  • network processor network processor
  • NP network processor
  • DSP digital signal processing circuit
  • microcontroller microcontroller
  • micro controller unit micro controller unit
  • PLD programmable logic controller
  • ONU1 includes two optical modules as an example. This embodiment does not limit the number of optical modules included in ONU
  • ONU1 may only include optical modules that are connected to OLT1 and ONU2 at the same time.
  • the optical module simultaneously includes a first RX, a first TX, a second RX and a second TX.
  • ONU1 may include more than two optical modules, and the two or more optical modules include the optical module 501 and the optical module 502 shown in FIG. 5 .
  • the service processor 503 When the service processor 503 detects that the first initial downlink data stream is received via the first RX of the optical module 501, it indicates that the optical module 501 is an optical module that communicates with the OLT1. The service processor 503 sends the obtained initial registration request message to OLT1 via the first TX of the optical module 501 to ensure that the initial registration request message can be successfully sent to OLT1. It should be noted that in this embodiment, ONU1 receives the first initial downlink data stream from OLT1 as an example. In other examples, ONU1 may also receive the first initial downlink data stream from OLT2.
  • the service processor 503 detects If the first initial downlink data stream is received through the second RX of the optical module 502 of ONU1, it means that the optical module 502 is an optical module that communicates with OLT2, and the service processor 503 will obtain the initial registration request message.
  • the second TX of the optical module 502 is sent to OLT2.
  • Step 304 OLT1 obtains the third RTT according to the initial registration request message.
  • OLT1 shown in this embodiment calculates the third RTT between OLT1 and ONU based on the sending time of sending the initial downlink data frame and the receiving time of receiving the initial registration request message.
  • the initial downlink data frame is a downlink data frame carrying the initial superframe number.
  • the sending time of the initial downlink data frame sent by OLT1 is the sending time TS1.
  • ONU1 receives the initial downlink data frame, ONU1 sends an initial registration request message to OLT1.
  • the initial registration request message sent by ONU1 undergoes a certain delay when transmitted via the optical fiber connected between OLT1 and ONU1, causing OLT1 to receive the initial registration request message at the receiving time TS2.
  • OLT1 determines that the third RTT between OLT1 and ONU1 is the reception time TS2 - the transmission time TS1.
  • OLT1 when OLT1 receives the initial registration request message, it can first authenticate the SN of ONU1 carried in the initial registration request message. For example, OLT1 can pre-configure multiple SNs that are allowed to be registered. If OLT1 determines If the SN of ONU1 carried in the initial registration request message is included in multiple SNs preconfigured by OLT1, then OLT1 determines to allow ONU1 to register.
  • Step 305 OLT1 sends the first downstream data stream to ONU1.
  • OLT1 shown in this embodiment allocates the ONU identification (ID) to ONU1 according to the SN of ONU1 carried in the initial registration request message, so as to complete the purpose of registering ONU1 to OLT1.
  • OLT1 configures a first downstream data stream for ONU1.
  • the first downstream data stream includes multiple downstream data frames. Please refer to Figure 4 for a description of the specific format of the downstream data frames, which will not be described in detail.
  • the Alloc-ID1 field of the downlink data frame of the first downlink data stream carries the identity of ONU1.
  • ONU1 determines the first target time slot allocated by OLT1 to ONU1 based on the US BWmap including the Alloc-ID1 field.
  • ONU1 carries the uplink service to be sent by ONU1 to OLT1 on the first target time slot of the uplink data stream.
  • ONU1 sends the uplink data stream to OLT1 to send uplink services to OLT1.
  • Steps 301 to 305 describe the process of registering ONU1 directly connected to OLT1 to OLT1.
  • the following takes ONU2 as an example to explain how an ONU indirectly connected to OLT1 (that is, the connection between OLT1 and ONU2 needs to go through ONU1) registers to OLT1.
  • ONU2 needs to meet a prerequisite to register with OLT1, that is, ONU1 has successfully registered with OLT1, and ONU2 has been successfully connected to ONU1 through optical fiber.
  • the first downlink data stream shown in this embodiment carries downlink services sent by OLT1 to ONU1.
  • Step 306 ONU1 copies the first downstream data stream to obtain the second downstream data stream.
  • ONU1 receives the first downstream data stream via the optical fiber connected between ONU1 and OLT1, and ONU1 copies the first downstream data stream to obtain the second downstream data stream. It can be understood that the first downstream data stream and the second downstream data The content carried by the stream is exactly the same.
  • Step 307 ONU1 obtains the first downlink service carried by the first downlink data stream.
  • ONU1 decapsulates the first downstream data stream to obtain the first downstream service sent to ONU1 that has been carried by the first downstream data stream.
  • Step 308 ONU1 sends the second downstream data stream to ONU2.
  • This embodiment does not limit the execution timing between step 308 and step 309.
  • ONU1 After ONU1 in this embodiment copies the first downstream data stream to obtain the second downstream data stream, ONU1 directly sends the second downstream data stream to ONU2 without parsing the first downstream data stream, thus improving This improves the timeliness of ONU2 registering to OLT1 based on the second downstream data flow, and reduces the delay of ONU2 registering to OLT1.
  • Step 309 ONU2 performs superframe synchronization according to the second downstream data stream.
  • ONU2 After receiving the second downstream data stream from ONU1, ONU2 uses the downstream data frame included in the second downstream data stream to perform superframe synchronization.
  • the structure of the downlink data frame included in the second downlink data stream please refer to the description of Figure 4, and details will not be described again.
  • the process of ONU2 performing superframe synchronization based on the second downstream data stream please refer to the description of ONU1 performing superframe synchronization based on the first initial downstream data stream shown in step 302, and details will not be described again.
  • Step 310 ONU2 sends a registration request message to ONU1.
  • the second downlink data stream received by ONU2 includes a target downlink data frame.
  • the target downlink data frame is used to carry a registration trigger message.
  • ONU2 sends the registration request message to ONU1 according to the registration trigger message.
  • the registration trigger message is the first target superframe number carried in the frame header of the target downlink data frame.
  • a first target superframe number may be pre-agreed between ONU1 and ONU2, and the first target superframe number is used to instruct ONU2 to send a registration request message to ONU1.
  • ONU2 detects the frame header carrying the first target superframe number, ONU2 sends a registration request message to ONU1.
  • the first target superframe number and the initial superframe number may be the same or different, and are not specifically limited in this embodiment.
  • the first target superframe number is 10 as an example.
  • ONU2 receives the value of SFC field 2 of the received target downlink data frame as 10, ONU2 sends a registration request message to ONU1.
  • the registration request The message carries the SN of ONU2.
  • Figure 5 For an explanation of the process of ONU2 sending a registration request message to ONU1, please refer to Figure 5 corresponding to ONU1 sending an initial registration request message to OLT1. The details will not be elaborated.
  • Step 311 ONU1 measures the second RTT according to the registration request message.
  • the ONU1 shown in this embodiment calculates the second RTT between ONU1 and ONU2 based on the first time of sending the target downlink data frame and the second time of receiving the registration request message.
  • the target downlink data frame is a downlink data frame carrying the first target superframe number.
  • Figure 6b is a timing example diagram for the OLT to obtain the second RTT provided by the embodiment of the present application.
  • OLT1 sends the first downlink data stream to ONU1 (specifically shown in step 305), ONU1 sends the second downlink data stream to ONU2, and ONU1 sends the target downlink data frame included in the second downlink data stream to ONU2 at the sending time TL1 (Specifically shown in steps 306 to 310).
  • ONU2 receives the target downlink data frame, ONU2 sends a registration request message to ONU1.
  • the registration request message sent by ONU2 undergoes a certain delay when transmitted via the optical fiber connected between ONU1 and ONU2, causing ONU1 to receive the registration request message at the reception time TL2.
  • ONU1 determines that the second RTT between ONU1 and ONU2 is the reception time TL2 - the transmission time TL1.
  • ONU1 when ONU1 receives the registration request message, it can first authenticate the SN of ONU2 carried in the registration request message. For example, ONU1 can pre-configure multiple SNs that are allowed to register. If ONU1 determines the registration request If the SN of ONU2 carried in the message is included in multiple SNs preconfigured by ONU1, then ONU1 determines to allow ONU2 to register.
  • Step 312 ONU1 sends the upstream data stream to OLT1.
  • ONU1 obtains the first target time slot indicated by the US BWmap field of the first downstream data stream. It can be understood that the first target time slot is the upstream time slot allocated by OLT1 for ONU1 and is only occupied by ONU1. gap. ONU1 carries the uplink service of ONU1 on the first target time slot. It can be understood that ONU1 sends the uplink service of ONU1 to OLT1 on the first target time slot indicated by OLT1.
  • the first target time slot shown in this embodiment carries the uplink service that ONU1 needs to send to OLT1, and the first target time slot also carries the second RTT and the registration request message from ONU2. It can be understood that in the process of sending the second RTT for ONU2 registration and the registration request message to OLT1 as shown in this embodiment, there is no need for OLT1 to allocate windows occupying independent time slot resources to ONU2. ONU2 sends the registration request message and the second RTT to OLT1 through the first target time slot allocated by OLT1 to ONU1.
  • ONU1 shown in this embodiment can send the second RTT and the second RTT from ONU2 through physical layer operation, administration and maintenance (PLOAM) messages or management control interface (ONT/ONU management and control interface, OMCI) messages. Registration request message.
  • PLOAM administration and maintenance
  • ONT/ONU management and control interface OMCI
  • Step 313 OLT1 obtains the first RTT according to the upstream data stream.
  • OLT1 shown in this embodiment does not need to directly measure the RTT between OLT1 and ONU2, but obtains the relationship between OLT1 and ONU2 based on the third RTT between OLT1 and ONU1 and the second RTT between ONU1 and ONU2. The first RTT between.
  • Step 314 OLT1 sends the sixth downstream data stream to ONU1.
  • Step 315 ONU1 sends the seventh downstream data stream to ONU2.
  • OLT1 shown in this embodiment allocates the ID of ONU2 to ONU2 based on the SN of ONU2 carried in the registration request message.
  • OLT1 The sixth downstream data stream is configured for ONU1 and ONU2.
  • the sixth downstream data stream includes multiple downlink data frames. Please refer to Figure 4 for a description of the specific format of the downlink data frames, which will not be described in detail. It can be understood that the Alloc-ID1 field of the US BWmap of the sixth downstream data stream carries the identifier of ONU1, and ONU1 obtains the first target time slot occupied by ONU1 according to the Allocation Structure1 carrying Alloc-ID1.
  • ONU1 After receiving the sixth downstream data stream, ONU1 copies the sixth downstream data stream to obtain the seventh downstream data stream. ONU1 sends the seventh downstream data stream to ONU2. Similarly, the Alloc-ID2 field of the US BWmap of the seventh downstream data stream carries the identity of ONU2. ONU2 obtains the second target time slot occupied by ONU2 based on the Allocation Structure2 carrying Alloc-ID2. Then, ONU2 can pass the second target The time slot sends the uplink service of ONU2 to OLT1.
  • OLT1 sends the seventh downstream data stream to ONU2 through the forwarding of ONU1.
  • OLT1 sends the seventh downstream data stream to ONU2 through the forwarding of ONU1.
  • OLT1 executes the registration process of the ONU to be registered as an example.
  • OLT2 may also execute the registration process of the ONU to be registered.
  • OLT1 shown performs the registration process of the ONU to be registered, and the details will not be described in detail.
  • the ring network only includes OLT1, ONU1, ONU2 and OLT2 as an example. This embodiment does not limit the number of ONUs included in the ring network. In other examples, the ring network can also include more numbers. ONU. In the case of a ring network including multiple ONUs connected in sequence between OLT1 and OLT2, OLT1 can create the corresponding relationship as shown in Table 1 below:
  • OLT1 when OLT1 measures the third RTT between OLT1 and ONU1, OLT1 creates the correspondence shown in Table 1.
  • the correspondence shown in Table 1 includes the correspondence between "OLT1—ONU1" and the third RTT. relationship, it can be understood that based on the corresponding relationship shown in Table 1, OLT1 can determine that the RTT between OLT1 and ONU1 is the third RTT.
  • the correspondence relationship shown in Table 1 includes the correspondence relationship between "OLT1-ONU2" and the first RTT. If ONU4 connected between ONU2 and OLT2 in the ring network needs to register with OLT1, ONU2 that has successfully registered can be responsible for measuring the fourth RTT between ONU2 and ONU3.
  • ONU2 measures the fourth RTT between ONU2 and ONU3
  • ONU3 multiplexes the second target time slot occupied by ONU2 to send the SN of ONU3 and the fourth RTT to OLT1.
  • RTT process please refer to the description of the process of OLT1 obtaining the first RTT shown above, and the details will not be described again. It can be understood that based on the created correspondence relationship shown in Table 1, OLT1 can register the ONU to be registered in the ring network. It should be noted that in this example, ONU2 is responsible for measuring the RTT between ONU2 and ONU3.
  • ONU1 can also be responsible for measuring the RTT between ONU1 and ONU3, and ONU2 is responsible for forwarding the RTT between ONU1 and ONU3 for registration.
  • ONU1 can also be responsible for measuring the RTT between ONU1 and ONU3
  • ONU2 is responsible for forwarding the RTT between ONU1 and ONU3 for registration.
  • ONU1 measuring the RTT between ONU1 and ONU3 please refer to the description of the process of ONU1 measuring the RTT between ONU1 and ONU2. The details will not be repeated.
  • OLT1 measures the RTT between OLT1 and each ONU without opening a window.
  • the OLT1 shown in this embodiment can measure the third RTT between OLT1 and ONU1 without opening a window.
  • OLT1 does not need to measure the second RTT between OLT1 and ONU2 based on the windowing method. Because OLT1 does not need to allocate windows occupying independent time slot resources for measuring RTT, The RTT between OLT1 and each ONU can be realized, which reduces the waste of time slot resources and improves the utilization rate of time slot resources.
  • the downstream ONU (for example, ONU2) in the ring network can send a registration request message to OLT1 through the time slot indicated by OLT1 for the upstream ONU (for example, ONU1).
  • the downstream ONU does not need to occupy independent time slot resources to send the registration request message to OLT1.
  • N ONUs included in the ring network have been registered to OLT1
  • the ONU1 to be registered does not need to occupy an independent time slot to register, then the N registered ONUs will occupy There will be no delay at the position of the N time slots, ensuring the timely transmission of the registered ONU's uplink services, reducing the delay jitter, and being able to adapt to services with high requirements on timeliness of service transmission.
  • ONU1 measures the second RTT between ONU1 and ONU2, and OLT1 measures the first RTT based on the second RTT and the third RTT.
  • OLT1 directly measures the first RTT.
  • RTT where Figure 7 is a second step flow chart of the registration method provided by the embodiment of the present application.
  • Step 701 OLT1 sends the first initial downlink data stream to ONU1.
  • Step 702 ONU1 performs superframe synchronization according to the first initial downlink data stream.
  • Step 703 ONU1 sends an initial registration request message to OLT1.
  • Step 704 OLT1 obtains the third RTT according to the initial registration request message.
  • Step 705 OLT1 sends the first downstream data stream to ONU1.
  • Step 706 ONU1 copies the first downstream data stream to obtain the second downstream data stream.
  • Step 707 ONU1 obtains the first downlink service carried by the first downlink data stream.
  • Step 708 ONU1 sends the second downstream data stream to ONU2.
  • Step 709 ONU2 performs superframe synchronization according to the second downstream data stream.
  • Step 710 ONU2 sends a registration request message to ONU1.
  • Step 711 ONU1 sends the upstream data stream to OLT1.
  • ONU1 obtains the first target time slot indicated by the US BWmap field of the first downstream data stream.
  • first target time slot For a specific description of the first target time slot, please refer to the corresponding step 312 in Figure 3. The details are not included.
  • ONU1 shown in this embodiment carries the uplink service of ONU1 on the first target time slot.
  • ONU1 also carries the registration request message from ONU2 on the first target time slot.
  • ONU1 does not need to measure the second RTT between ONU1 and ONU2, so ONU1 directly sends the registration request message from ONU2 to OLT1 through the first target time slot.
  • Step 712 OLT1 obtains the first RTT according to the upstream data stream.
  • OLT1 measures the first RTT between OLT1 and ONU2 according to the registration request message of ONU2 included in the upstream data stream.
  • OLT1 measuring the first RTT shown in this embodiment, please refer to the description of the process of OLT1 measuring the third RTT, and details will not be described again.
  • Step 713 OLT1 sends the sixth downstream data stream to ONU1.
  • Step 714 ONU1 sends the seventh downstream data stream to ONU2.
  • OLT1 directly measures the first RTT between OLT1 and ONU2, which improves the accuracy of the measured first RTT. Moreover, in the process of measuring the first RTT, OLT1 does not need to allocate independent time slots to ONU2, which reduces the waste of time slot resources, improves the utilization of time slot resources, and reduces the delay jitter of service transmission.
  • OLT1 measures the RTT between OLT1 and ONU1 based on a window-free method.
  • OLT1 can measure the RTT between OLT1 and ONU1 based on a windowing method
  • ONU1 can measure the RTT between ONU1 and ONU2 based on a windowing method.
  • FIG. 8 is a third step flow chart of the registration method provided by the embodiment of the present application.
  • Step 801 OLT1 sends the second initial downlink data stream to ONU1.
  • This embodiment takes as an example that ONU1, which is directly connected to OLT1 and has not yet registered, first describes the process of ONU1 registering on OLT1: the second initial downstream data flow shown in this embodiment is used for ONU1 to register on OLT1.
  • the second initial downlink data stream includes one or more continuous downlink data frames.
  • the structure of the downlink data frames can be seen in Figure 4 and will not be described in detail.
  • the US BWmap field of the second initial downlink data stream shown in this embodiment has carried an initial registration trigger message, and the initial registration trigger message is used to indicate the start and end time slots of the discovery time window included in the uplink data stream.
  • Step 802 ONU1 performs superframe synchronization according to the second initial downlink data stream.
  • step 802 For an explanation of the execution process of step 802 shown in this embodiment, please refer to the corresponding step 302 shown in Figure 3, and details will not be described again.
  • Step 803 ONU1 sends an initial registration request message to OLT1.
  • ONU1 if ONU1 needs to register with OLT1, ONU1 carries the initial registration request message in the discovery time window of the upstream data stream according to the instructions of the initial registration trigger message of the second initial downstream data stream.
  • instructions please refer to step 303 corresponding to Figure 3, and details will not be repeated.
  • Step 804 OLT1 sends the third initial downlink data stream to ONU1.
  • OLT1 obtains the initial registration request message of ONU1 through the discovery time window, then OLT1 allocates the ID of ONU1 to ONU1, and sends the third initial downstream data stream carrying the ID of ONU1 to ONU1.
  • the third initial downlink data stream shown in this embodiment includes one or more continuous downlink data frames. Please refer to Figure 4 for the frame format of the downlink data frames, and details will not be described again.
  • the US BWmap field included in the third initial downlink data stream shown in this embodiment has carried the first initial measurement message. The first initial measurement message is used to indicate the start and end time slots of the ranging time window included in the uplink data stream. .
  • Step 805 ONU1 sends the second initial measurement message to OLT1.
  • ONU1 when ONU1 receives the third initial downlink data stream, ONU1 can obtain the ranging time window based on the US BWmap field of the third initial downlink data stream. ONU1 carries the second initial measurement message in the ranging time window of the upstream data stream.
  • Step 806 OLT1 receives the second initial measurement message carried in the ranging time window.
  • Step 807 OLT1 measures the third RTT according to the first initial measurement message and the second initial measurement message.
  • OLT1 when OLT1 receives the initial registration request message, it can first authenticate the SN of ONU1 carried in the initial registration request message.
  • OLT1 authenticating the initial registration request message see Figure 3 The details of the corresponding embodiments will not be described again.
  • Step 808 OLT1 sends the third downstream data stream to ONU1.
  • OLT1 configures a third downstream data stream for ONU1.
  • the third downstream data stream includes multiple downlink data frames. Please refer to Figure 4 for a description of the specific format of the downlink data frames, which will not be described in detail.
  • the Alloc-ID1 field of the downstream data frame of the third downstream data stream carries the identifier of ONU1.
  • ONU1 determines the first target time slot allocated by OLT1 to ONU1 based on the US BWmap including the Alloc-ID1 field. For the description of the first target time slot, please refer to the corresponding embodiment in Figure 3, and the details will not be repeated.
  • Steps 801 to 808 describe the process of registering ONU1 directly connected to OLT1 to OLT1.
  • the following takes ONU2 as an example. Describe the process of registering to OLT1 for an ONU that is indirectly connected to OLT1 (that is, the connection between OLT1 and ONU2 needs to go through ONU1):
  • ONU2 needs to meet a prerequisite to register with OLT1, that is, ONU1 has successfully registered with OLT1, and ONU2 has successfully connected with ONU1.
  • the first downlink data stream shown in this embodiment carries downlink services sent by OLT1 to ONU1.
  • Step 809 ONU1 copies the third downstream data stream to obtain the fourth downstream data stream.
  • ONU1 receives the third downstream data stream via the optical fiber connected between ONU1 and OLT1, and ONU1 copies the third downstream data stream to obtain the fourth downstream data stream. It can be understood that the third downstream data stream and the fourth downstream data stream carry The content is exactly the same.
  • Step 810 ONU1 obtains the first downlink service carried by the third downlink data stream.
  • ONU1 decapsulates the third downstream data stream to obtain the first downstream service sent to ONU1 that has been carried by the third downstream data stream.
  • Step 811 ONU1 sends the fifth downstream data stream to ONU2.
  • This embodiment does not limit the execution timing between step 810 and step 811.
  • ONU1 shown in this embodiment adds a registration trigger message to the US BWmap field of the copied fourth downstream data stream to obtain the fifth downstream data stream.
  • the registration trigger message is used to instruct ONU2 to send a registration request message, where, registration The request message is the SN of ONU2.
  • ONU2 shown in this embodiment can send a registration request message to ONU1 when receiving the registration trigger message.
  • the registration trigger message can also indicate the start and end time slots of the discovery window.
  • ONU2 Within the start and end time slots of the discovery window indicated by the registration trigger message, a registration request message is sent to ONU1.
  • ONU1 adds a registration trigger message in the fourth downstream data stream to obtain the fifth downstream data stream as an example.
  • the registration trigger message can also be set by OLT1 in the third downstream data stream. Specifically, There are no limitations in this embodiment.
  • Step 812 ONU2 performs superframe synchronization according to the fifth downstream data stream.
  • Step 813 ONU2 sends a registration request message to ONU1.
  • ONU2 if ONU2 needs to register with OLT1, ONU2 sends a registration request message to ONU1 according to the instruction of the registration trigger message of the fifth downstream data flow.
  • the registration request message please refer to step 303 corresponding to Figure 3. shown and will not be described in details.
  • Step 814 ONU1 sends the first measurement message to ONU2.
  • Step 815 ONU1 receives the second measurement message from ONU2.
  • Step 816 ONU1 measures the second RTT according to the first measurement message and the second measurement message.
  • ONU1 when ONU1 receives the registration request message, it can first authenticate the SN of ONU2 carried in the registration request message.
  • ONU1 authenticating the registration request message please refer to the corresponding implementation in Figure 3. The description of the example will not be repeated in details.
  • Step 817 ONU1 sends the upstream data stream to OLT1.
  • Step 818 OLT1 obtains the first RTT according to the upstream data stream.
  • Step 819 OLT1 sends the sixth downstream data stream to ONU1.
  • Step 820 ONU1 sends the seventh downstream data stream to ONU2.
  • the ring network shown in this embodiment includes more than two ONUs, for the process of OLT measuring the RTT between each ONU, please refer to the description shown in Table 1 corresponding to Figure 3, and the details will not be described again.
  • OLT1 measures the RTT between OLT1 and ONU1 based on the windowing method
  • ONU1 measures the RTT between ONU1 and ONU2 based on the windowing method. If there are ONUs to be registered in the ring network, timely registration of the ONUs to be registered can be guaranteed.
  • ONU1 measures the second RTT between ONU1 and ONU2 in a window-based manner. ONU1 then sends the second RTT to OLT1, so that OLT1 can respond to the second RTT and the registration request message of ONU2. , obtaining the first RTT as an example. In other examples, ONU1 may not measure the second RTT between ONU1 and ONU2, but directly send the registration request message of ONU2 to OLT1 through the first target time slot occupied by ONU1, and OLT1 directly measures the first time slot based on the windowing method.
  • RTT (for the specific measurement process, please refer to the description of the process of measuring the third RTT based on the windowing method of OLT1 corresponding to Figure 8, which will not be described in detail).
  • OLT1 may measure the third RTT between OLT1 and ONU1 based on a windowing method (for an explanation of the process of obtaining the third RTT based on a windowing method, please refer to Figure 8 to obtain the third RTT. The process will not be described in detail).
  • ONU2 measures the second RTT between ONU1 and ONU2 based on the method without opening the window (for the description of the process of obtaining the second RTT based on the method without opening the window, please refer to the description of the process of obtaining the second RTT corresponding to Figure 3. For details No further details will be given).
  • ONU2 then sends the second RTT and the registration request message of ONU2 to OLT1 through the first target time slot.
  • OLT1 obtains the first RTT based on the second RTT and registration request message carried by the first target time slot.
  • OLT1 can measure the third RTT between OLT1 and ONU1 based on a window-free method (for an explanation of the process of obtaining the third RTT based on a window-free method, please refer to Figure 3 to obtain the third RTT. The process of RTT will not be described in detail).
  • ONU2 can measure the second RTT between ONU1 and ONU2 based on the windowing method (for an explanation of the process of obtaining the second RTT based on the windowing method, please refer to the description of the process of obtaining the second RTT corresponding to Figure 8, which is not specific. (do not elaborate).
  • ONU2 then sends the second RTT and the registration request message of ONU2 to OLT1 through the first target time slot. OLT1 obtains the first RTT based on the second RTT and registration request message carried by the first target time slot.
  • the downstream ONU (for example, ONU2) in the ring network can send a registration request message to OLT1 through the time slot indicated by OLT1 for the upstream ONU (for example, ONU1).
  • the downstream ONU does not need to occupy independent time slot resources to send the registration request message to OLT1.
  • N ONUs included in the ring network have been registered to OLT1
  • the ONU1 to be registered does not need to occupy an independent time slot to register, then the N registered ONUs will occupy There will be no delay at the position of the N time slots, ensuring timely transmission of the registered ONU's uplink services, reducing delay jitter, and being able to adapt to services with high requirements on timeliness of service transmission.
  • the port 1 of the OLT1 and the port 2 of the ONU1 are connected through the optical fiber 211. If at least one of the optical fiber 211, port 1 of OLT1 or port 2 of ONU1 fails, optical signals cannot be transmitted between OLT1 and ONU1, and the downlink service from OLT1 cannot be transmitted to ONU1 via optical fiber 211. As a result, the upstream services of ONU1 cannot be transmitted to OLT1 via optical fiber 211.
  • This embodiment can also ensure that ONU1 can normally receive downlink services when services cannot be transmitted between OLT1 and ONU1, and can ensure that ONU1 can normally send uplink services.
  • FIG. 9 is a diagram of the present application. Please provide an example structural diagram of ONU1 in the embodiment.
  • the ONU1 shown in this embodiment includes an optical module 901 and an optical module 902.
  • the optical module 901 includes a first transmit port (transport, TX) and a first receive port (receive, RX).
  • the optical module 902 includes a second TX and a first receive port. 2RX.
  • This embodiment does not limit the number of optical modules included in ONU1.
  • the first TX, the first RX, the second TX and the second RX are all different ports of the same optical module.
  • ONU1 may include any number of more than two optical modules.
  • the first RX and the first TX are the transceiver ports of one optical module included in the ONU1, and the second RX and the second TX are other optical modules included in the ONU1.
  • the ONU1 shown in this embodiment also includes a switching device.
  • the switching device includes a detector 910 and a switch array 930 connected to the detector 910 .
  • the switch array 930 includes M input ports and M output ports. M shown in this embodiment is any positive integer greater than or equal to 2.
  • ONU1 includes two optical modules as an example.
  • the switch array 930 includes four input ports, namely a first input port 911, a second input port 922, a third input port 913 and a fourth input port 924.
  • the switch array 930 includes four output ports, namely a first output port 921, a second output port 912, a third output port 923 and a fourth output port 914.
  • the number of input ports and output ports included in the switch array 930 shown in this embodiment is not limited.
  • the detector 910 shown in this embodiment is used to connect any input port included in the switch array 930 to the first output port included in the switch array 930 .
  • OLT1 shown in this embodiment is the master OLT, and OLT2 is the slave OLT.
  • the upstream data stream and the downstream data stream are transmitted between ONU1 and the master OLT1.
  • OLT1 is the master OLT
  • the detector 910 causes the switch array 903 to
  • the first input port 911 is connected to the first output port 921
  • the first output port 921 is connected to the first processing port 941 of the service processor 940 .
  • the detector 910 also connects the fourth output port 914 of the switch array to the fourth input port 924
  • the fourth input port 924 is connected to the second processing port 942 of the service processor 940 .
  • the first input port 911 and the fourth output port 914 are both connected to the optical module 901.
  • the detector 910 connects the second output port 912 of the switch array 903 to the second input port 922, and the second input port 922 is connected to the third processing port 943 of the service processor 940.
  • the detector 910 connects the third input port 913 of the switch array 930 to the third output port 923 , and the third output port 923 connects to the fourth processing port 944 of the service processor 940 .
  • the detector 910 shown in this embodiment may be one or more chips, or one or more integrated circuits.
  • the detector 910 may be one or more FPGAs, ASICs, SoCs, CPUs, NPs, DSPs, MCUs, PLDs or other integrated chips, or any combination of the above chips or processors.
  • the service processor 940 please refer to the description of the form of the detector 910, and details will not be repeated.
  • the service processor 940 and the detector 910 shown in this embodiment may be implemented in separate structures or in the same structure, and are not specifically limited in this embodiment.
  • FIG. 10 is a fourth step flow chart of the registration method provided by the embodiment of the present application.
  • Step 1001 ONU1 selects the first RX and the first TX.
  • OLTs are connected to ONU1, that is, ONU1 is connected to OLT1 through the first RX and the first TX, and ONU1 is connected to OLT2 through the second RX and the second TX.
  • ONU1 selects an OLT as the main OLT for upstream and downstream service transmission. If ONU1 is determined OLT1 serves as the main OLT, and ONU1 selects the first RX and the first TX connected to the main OLT. If ONU1 determines OLT2 as the main OLT, ONU1 selects the second RX and the second TX connected to the main OLT. In this embodiment, ONU1 selects OLT1 as the main OLT as an example, and ONU1 needs to register with OLT1.
  • ONU1 may also select OLT2 as the main OLT.
  • OLT2 For the description of ONU1 selecting OLT2 as the main OLT, please refer to the description of ONU1 selecting OLT1 as the main OLT shown in this embodiment, which will not be described again.
  • ONU1 includes two RXs as an example. In other examples, ONU1 may include any number of more than two RXs. The following describes several optional ways for ONU1 to select the first RX:
  • the service processor 940 attempts to receive the downlink data stream through both the first RX and the second RX.
  • the service processor 940 Processor 940 determines OLT1 as the primary OLT.
  • the service processor 940 attempts to receive the downlink data stream through both the first RX and the second RX.
  • the service processor 940 determines whether the signal quality of the downlink data stream received by the first RX is better than the signal quality of the downlink data stream received by the second RX. In the case where the service processor determines that the signal quality of the downlink data stream received by the first RX is better than the signal quality of the downlink data stream received by the second RX, the service processor determines OLT1 as the primary OLT.
  • the signal quality received by the first RX is better than the signal quality received by the second RX, which means at least one of the following:
  • the bit error rate of the downlink data stream received by the first RX is lower than the bit error rate of the downlink data stream received by the second RX.
  • the optical power of the downlink data stream received by the first RX is greater than the downlink data received by the second RX.
  • the optical power of the stream, the latency of the downlink data stream received by the first RX is lower than that of the downlink data stream received by the second RX, or the crosstalk of the downlink data stream received by the first RX is lower than that received by the second RX. Crosstalk of downstream data flows, etc.
  • Step 1002 The first RX of ONU1 receives the first initial downlink data stream from OLT1.
  • the optical module 901 shown in this embodiment is connected to OLT1 through optical fiber, and the first RX of ONU1 receives the first initial downlink data stream from OLT1.
  • the first initial downlink data stream please refer to step 301 corresponding to Figure 3 shown and will not be described in details.
  • Step 1003 The service processor of ONU1 performs superframe synchronization according to the first initial downlink data stream.
  • the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940 are connected in sequence. Then the optical module 901 receives the first initial signal from the first RX. The downstream data flow is transmitted to the service processor 940 via the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940 in sequence.
  • the service processor 940 processes the first initial downlink data flow to perform superframe synchronization.
  • the service processor 940 performs the process of superframe synchronization. Please refer to the corresponding step 302 in Figure 3, which will not be described in detail.
  • Step 1004 The first TX of ONU1 sends an initial registration request message to OLT1.
  • the second processing port 942, the fourth input port 924, the fourth output port 914 and the optical module 901 of the service processor 940 shown in this embodiment are connected in sequence, then the initial registration request message output by the service processor 940 is sequentially It is transmitted to the first TX via the second processing port 942, the fourth input port 924, the fourth output port 914 and the optical module 901.
  • the optical module 901 sends the initial registration request message to the OLT1 through the first TX.
  • Step 1005 OLT1 obtains the third RTT according to the initial registration request message.
  • step 1005 For description of the execution process of step 1005 shown in this embodiment, please refer to the description of step 304 corresponding to Figure 3, and details will not be described again.
  • Step 1006 The first RX of ONU1 receives the first downlink data stream from OLT1.
  • Step 1007 The service processor of ONU1 copies the first downstream data stream to obtain the second downstream data stream.
  • Step 1008 The service processor of ONU1 obtains the first downlink service carried by the first downlink data stream.
  • Step 1009 The second TX of ONU1 sends the second downstream data stream to ONU2.
  • the third processing port 940 of the service processor 940 shown in this embodiment outputs the second downlink data stream, and the third processing port 943, the second input port 922, the second output port 912 and the optical
  • the modules 902 are connected in sequence, and the second downlink data stream output by the service processor 940 is transmitted to the second TX via the third processing port 943, the second input port 922, the second output port 912 and the optical module 902 in sequence.
  • the second TX is connected to ONU2 through an optical fiber, so the second downstream data stream output by the second TX can be successfully transmitted to ONU2.
  • Step 1010 The service processor of ONU2 performs superframe synchronization according to the second downstream data stream.
  • step 1010 For description of the execution process of step 1010 shown in this embodiment, please refer to the description of step 309 corresponding to Figure 3, and details will not be described in this embodiment.
  • Step 1011 The second RX of ONU1 receives the registration request message from ONU2.
  • the registration request message please refer to the description of step 310 corresponding to Figure 3, and the details will not be repeated.
  • Step 1012 The service processor of ONU1 measures the second RTT according to the registration request message.
  • step 1012 For the execution process of step 1012 shown in this embodiment, please refer to the description of step 311 corresponding to Figure 3, and details will not be described again.
  • Step 1013 The first TX of ONU1 sends the upstream data stream to OLT1.
  • Step 1014 OLT1 obtains the first RTT according to the upstream data stream.
  • step 1014 For description of the execution process of step 1014 shown in this embodiment, please refer to the description of step 313 corresponding to Figure 3, and details will not be described again.
  • Step 1015 The first RX of ONU1 receives the sixth downlink data stream from OLT1.
  • the sixth downlink data stream received by the first RX of ONU1 can be transmitted to the service processor 940 via the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940, and the sixth downlink data stream
  • the service processor 940 For the description of the flow, please refer to step 314 corresponding to Figure 3, and the details will not be described again.
  • Step 1016 The second TX of ONU1 sends the seventh downstream data stream to ONU2.
  • the seventh downlink data stream output by the third processing port 943 of the service processor 940 is sequentially transmitted to the second TX via the second input port 922, the second output port 912 and the optical module 902, and the second TX sends the seventh downlink data stream to the ONU2.
  • Seven downstream data streams For specific description of the seventh downstream data stream, please refer to the description of step 315 corresponding to Figure 3, and the details will not be described again.
  • ONU1 shown in Figure 9 can also be used to execute the methods corresponding to Figures 7 and 8.
  • the data transmission path between ONU1 and OLT1, and the data transmission path between ONU1 and ONU2 For the description of the data flow transmission path, please refer to the corresponding description in Figure 10, and the details will not be repeated.
  • OLT1 is the master OLT and OLT2 is the slave OLT. That is, ONU1 and ONU2 shown in this embodiment are both registered to OLT1. See Figure 11.
  • Figure 11 is provided by the embodiment of the present application. Flow chart of the fifth step of the registration method.
  • OLT1 can send downlink data streams normally, but a fault event occurs between OLT2 and ONU1, causing both ONU1 and ONU2 to need to register with OLT1.
  • the optical module 902 shown in this embodiment is connected to ONU2 and OLT2 in sequence. If ONU1 registers with OLT2, the second RX of ONU1 is required to receive the downstream data stream from OLT2.
  • Figure 12 is a second structural example diagram of ONU1 provided by the embodiment of the present application. In the example shown in Figure 12, if a fault event occurs between OLT2 and the second RX, the downstream data stream of OLT2 cannot be successfully transmitted to the second RX, and thus ONU1 cannot successfully receive the downstream data stream from OLT2.
  • the detector 910 of ONU1 can be connected to the optical module 902.
  • the detector 910 detects whether the second RX of the optical module 902 can normally receive the optical signal. If the detector 910 exceeds the preset time period and continues to be unable to detect the second RX If the RX successfully receives the optical signal or the optical power of the continuously detected optical signal is less than the preset threshold, it is determined that a fault event occurs between OLT2 and the second RX of ONU1.
  • the detector 910 is connected to the line between the optical module 902 and the third input port 913. The detector 910 obtains the electrical signal output by the optical module 902 based on the line. The detector 910 detects whether the electrical signal includes consecutive valid frames.
  • the detector 910 determines that a fault event occurs between OLT2 and the second RX of ONU1. For another example, the detector 910 detects that the bit error rate of the electrical signal exceeds a preset threshold. This embodiment does not limit how the detector 910 determines that a fault event occurs between OLT2 and the second RX of ONU1. As long as there is a fault event between OLT2 and the second RX of ONU1, the downstream data flow from OLT2 cannot Successfully transferred to ONU1.
  • Step 1102 The detector of ONU1 switches the switch array from the first conduction mode to the second conduction mode.
  • ONU1 when ONU1 detects a fault event between the second RX and OLT2, in order to transmit uplink and downlink services, ONU1 needs to register with OLT1, that is, switch the main OLT from OLT2 to OLT1, so as to realize ONU1 and OLT2. Transmission of uplink and downlink services between OLT1.
  • the detector 910 of ONU1 In order to ensure that ONU1 can successfully register with OLT1, the detector 910 of ONU1 needs to switch the switch array 930 from the first conduction mode to the second conduction mode.
  • OLT1 is the master OLT and OLT2 is the slave OLT. That is, ONU1 receives the first initial downlink data stream from OLT1, and OLT1 allocates a time slot for ONU1 to send uplink services.
  • the description of the second conduction mode is shown in Figure 9 and will not be described in detail.
  • OLT2 is the master OLT and OLT1 is the slave OLT. That is, ONU1 is allocated a time slot by OLT2 for sending uplink services.
  • the first conduction mode means that the third input port 913 and the first output port 921 are connected.
  • the second output port 912 and the fourth input port 942 are connected.
  • the fourth output port 914 and the second input port 922 are connected.
  • the first input port 911 and the third output port 923 are connected.
  • ONU1 detects a fault event between the second RX and OLT2, thereby triggering the switch array to switch from the first conduction mode to the second conduction mode.
  • ONU1 also For example, a fault event may occur between the second TX and the OLT2, thereby triggering the switch array to switch from the first conduction mode to the second conduction mode.
  • ONU1 detects a fault event between the second TX and OLT2. The data sent by the second TX of ONU1 to OLT2 exceeds the time threshold but is not successfully sent. It is determined that a fault event occurs between the second TX and OLT2.
  • ONU2 shown in this embodiment determines that OLT1 is the master OLT and OLT2 is the slave OLT. Please refer to step 1102 for the description, which will not be described again.
  • Step 1103 The first RX of ONU1 receives the first initial downlink data stream from OLT1.
  • Step 1104 The service processor of ONU1 performs superframe synchronization according to the first initial downlink data stream.
  • Step 1105 The first TX of ONU1 sends an initial registration request message to OLT1.
  • Step 1106 OLT1 obtains the third RTT according to the initial registration request message.
  • Step 1107 The first RX of ONU1 receives the first downlink data stream from OLT1.
  • Step 1108 The service processor of ONU1 copies the first downstream data stream to obtain the second downstream data stream.
  • Step 1109 The service processor of ONU1 obtains the first downlink service carried by the first downlink data stream.
  • Step 1110 The second TX of ONU1 sends the second downstream data stream to ONU2.
  • Step 1111 The service processor of ONU2 performs superframe synchronization according to the second downstream data stream.
  • Step 1112 The second RX of ONU1 receives the registration request message from ONU2.
  • Step 1113 The service processor of ONU1 measures the second RTT according to the registration request message.
  • Step 1114 The first TX of ONU1 sends the upstream data stream to OLT1.
  • Step 1115 OLT1 obtains the first RTT according to the upstream data stream.
  • Step 1116 The first RX of ONU1 receives the sixth downlink data stream from OLT1.
  • Step 1117 The second TX of ONU1 sends the seventh downlink data stream to ONU2.
  • ONU1 shown in Figure 12 can also be used to execute the methods corresponding to Figures 7 and 8.
  • the data transmission path between ONU1 and OLT1, and the data transmission path between ONU1 and ONU2 For the description of the data stream transmission path, please refer to the corresponding description in Figure 12, and the details will not be repeated.
  • the switch array included in ONU1 can switch the conduction mode, so that ONU1 that has switched the conduction mode can register to another OLT (such as OLT1 shown above), so that ONU1 can communicate with OLT1, ensuring the successful transmission of uplink and downlink services of ONU1.
  • FIG. 13 is an example structural diagram of the communication device provided by an embodiment of the present application.
  • the communication device 1300 shown in this embodiment includes a transceiver 1301 and a service processor 1302, where the transceiver 1301 and the service processor 1302 are connected.
  • the communication device shown in this embodiment may be an OLT.
  • the transceiver 1301 included in the OLT is used to perform the transceiver-related functions performed by the OLT in the embodiments shown in Figures 3, 7, 8, 10 and 11. process.
  • the service processor 1302 included in the OLT is used to execute the processing-related processes executed by the OLT in the embodiments shown in FIG. 3, FIG. 7, FIG. 8, FIG. 10, and FIG. 11.
  • the communication device shown in this embodiment can be any ONU included in the ring network.
  • the transceiver 1301 included in the ONU is used to execute the processes related to transceiver and transceiver executed by the ONU in the embodiments shown in Figures 3, 7, 8, 10 and 11.
  • the service processor 1302 included in the ONU is used to execute the processing-related processes executed by the ONU in the embodiments shown in FIG. 3, FIG. 7, FIG. 8, FIG. 10, and FIG. 11.
  • the transceiver 1301 of the communication device 1300 may include the optical module 901 and the optical module 902 shown in Figure 9 or Figure 12.
  • the transceiver 1301 includes two optical modules as an example. In other examples, the transceiver 1301 may include only one optical module, or more than two optical modules.
  • a complex-structured network can be implemented. This embodiment does not limit the specific network type.
  • communication equipment including three optical modules can form a dual-ring network.
  • Figure 14 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
  • the dual-ring network 1400 includes an OLT1 and an ONU1 connected to the OLT1.
  • the service processor 1402 of the ONU1 is connected to an optical module 1401, an optical module 1403 and an optical module 1404 respectively.
  • Optical module 1401 is connected to OLT1
  • optical module 1403 is connected to ONU2
  • optical module 1401 is connected to ONU3.
  • the dual ring network 1400 also includes an ONU4 connected to the OLT2.
  • the ONU4 includes a service processor 1414.
  • the service processor 1414 Connected to the optical module 1411, the optical module 1412 and the optical module 1413 respectively.
  • the optical module 1411 is connected to ONU2.
  • the optical module 1412 is connected to ONU3.
  • the optical module 1413 is connected to the OLT2.
  • this embodiment takes the communication device including three optical modules to form a dual-ring network as an example. This embodiment does not limit the specific type of network. It can be understood that the type of optical communication network provided in this embodiment can be any type such as ring networking, dual ring networking, or tree networking, and is not specifically limited. This embodiment shows that flexible networking of any shape can be realized, which reduces the difficulty of adding subsequent communication nodes to the network and improves the subsequent scalability of the network.
  • the communication device shown in this embodiment may also include a detector and a switch array as shown in Figure 9 or Figure 12.
  • a detector and a switch array as shown in Figure 9 or Figure 12.

Abstract

Disclosed in the embodiments of the present application are a registration method, a related device and an optical communication system, which are used for reducing the bandwidth and the degree of time delay jitter in the registration of a communication node with a central office device. The method comprises: a first communication node receiving a registration request message from a second communication node, wherein the registration request message is used for measuring a first round-trip time (RTT) between a central office device and the second communication node; the first communication node carrying the registration request message in a target time slot of an uplink data stream, wherein the target time slot is indicated by the central office device; and the first communication node sending the uplink data stream to the central office device.

Description

一种注册方法,相关设备以及光通信系统Registration method, related equipment and optical communication system
本申请要求于2022年8月31日提交中国国家知识产权局、申请号202211058795.2、申请名称为“一种注册方法,相关设备以及光通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 31, 2022, with application number 202211058795.2 and the application title "A registration method, related equipment and optical communication system", the entire content of which is incorporated by reference incorporated in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种注册方法,相关设备以及光通信系统。The present application relates to the field of communication technology, and in particular, to a registration method, related equipment and an optical communication system.
背景技术Background technique
环形组网包括第一中心局(central office,CO)设备和第二CO设备,第一CO设备和第二CO设备之间依次连接N个通信节点,N为大于1的任意正整数。第一CO设备,N个通信节点以及第二CO设备组成环形网络。The ring network includes a first central office (CO) device and a second CO device. N communication nodes are connected in sequence between the first CO device and the second CO device, where N is any positive integer greater than 1. The first CO device, N communication nodes and the second CO device form a ring network.
环形组网包括多个已注册的通信节点,多个已注册的通信节点采用时分多址(time division multiple access,TDMA)方式向CO设备(该CO设备可为第一CO设备或第二CO设备)发送上行业务。即每个已注册的通信节点在CO设备分配的时隙内向CO设备发送上行业务,且要保证各个已注册的通信节点的上行业务之间不会出现冲突。若环形组网连接有待注册的通信节点(例如通信节点N),则CO设备在开窗时间内完成对待注册的通信节点N的注册,在通信节点N注册成功的情况下,CO设备能够为通信节点N分配发送上行业务的时隙。The ring network includes multiple registered communication nodes. The multiple registered communication nodes use time division multiple access (TDMA) to communicate with the CO device (the CO device can be the first CO device or the second CO device). ) sends uplink traffic. That is, each registered communication node sends uplink services to the CO device within the time slot allocated by the CO device, and it is ensured that there will be no conflict between the uplink services of each registered communication node. If the ring network connection has a communication node to be registered (such as communication node N), the CO device completes the registration of the communication node N to be registered within the window time. When the communication node N is successfully registered, the CO device can provide communication Node N allocates time slots for sending uplink services.
但是,在开窗时间内,各已注册的通信节点均不能占用该开窗时间发送上行业务,导致开窗时间会带来带宽的浪费。However, during the window opening time, each registered communication node cannot use the window opening time to send uplink services, resulting in a waste of bandwidth during the window opening time.
发明内容Contents of the invention
本申请实施例提供了一种注册方法,相关设备以及光通信系统,其能够降低通信节点注册至中心局设备的带宽以及时延抖动程度。Embodiments of the present application provide a registration method, related equipment and an optical communication system, which can reduce the bandwidth and delay jitter of communication nodes registering to central office equipment.
本申请实施例第一方面提供了一种注册方法,所述方法包括:第一通信节点接收来自第二通信节点的注册请求消息,所述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT;所述第一通信节点在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙由所述中心局设备指示;所述第一通信节点向所述中心局设备发送所述上行数据流。The first aspect of the embodiment of the present application provides a registration method. The method includes: a first communication node receives a registration request message from a second communication node, and the registration request message is used to measure central office equipment and the second communication node. The first round-trip communication delay between communication nodes is RTT; the first communication node carries the registration request message on the target time slot of the upstream data stream, and the target time slot is indicated by the central office device; the The first communication node sends the uplink data stream to the central office device.
采用本方面所示的方法,中心局设备能够基于免开窗的方式,接收来自第二通信节点的注册请求消息。该注册请求消息向中心局设备发送的过程中,无需占用独立的时隙资源,减少了带宽的浪费,提高了时隙资源的利用效率。而且因基于免开窗的方式测量第一RTT,则保证了已注册的第一通信节点的上行业务的及时传输,降低了时延抖动。Using the method shown in this aspect, the central office device can receive the registration request message from the second communication node in a window-free manner. In the process of sending the registration request message to the central office device, there is no need to occupy independent time slot resources, which reduces bandwidth waste and improves the utilization efficiency of time slot resources. Moreover, since the first RTT is measured based on a window-free method, timely transmission of the uplink service of the registered first communication node is ensured, and delay jitter is reduced.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述中心局设备发送上行 数据流之前,所述方法还包括:所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT;所述第一通信节点在所述目标时隙上承载所述第二RTT。Based on the first aspect, in an optional implementation manner, the first communication node sends an uplink Before the data flow, the method further includes: the first communication node measuring a second RTT between the first communication node and the second communication node according to the registration request message; the first communication node The second RTT is carried on the target time slot.
采用本实现方式,由第一通信节点测量第一通信节点和第二通信节点之间的第二RTT,第一通信节点直接向中心设备发送该第二RTT,以使中心局设备根据第二RTT获得第一RTT,有效地提高了中心局设备获得第一RTT的及时性。Using this implementation, the first communication node measures the second RTT between the first communication node and the second communication node, and the first communication node directly sends the second RTT to the central device, so that the central office device determines the second RTT according to the second RTT. Obtaining the first RTT effectively improves the timeliness of the central office equipment obtaining the first RTT.
基于第一方面,一种可选的实现方式中,所述第一通信节点接收来自第二通信节点的注册请求消息之前,所述方法还包括:所述第一通信节点向所述第二通信节点发送注册触发消息,所述注册触发消息用于指示所述第二通信节点发送所述注册请求消息。Based on the first aspect, in an optional implementation manner, before the first communication node receives the registration request message from the second communication node, the method further includes: the first communication node sends a message to the second communication node. The node sends a registration trigger message, and the registration trigger message is used to instruct the second communication node to send the registration request message.
采用本实现方式,由第一通信节点通过注册触发消息,触发第二通信节点发送注册请求消息,提高了对第二通信设备进行注册的成功率。With this implementation, the first communication node triggers the second communication node to send a registration request message through the registration trigger message, which improves the success rate of registering the second communication device.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述第二通信节点发送注册触发消息之前,所述方法还包括:所述第一通信节点接收来自所述中心局设备的第一下行数据流;所述第一通信节点复制所述第一下行数据流以获得第二下行数据流;所述第一通信节点向所述第二通信节点发送注册触发消息包括:所述第一通信节点向所述第二通信节点发送所述第二下行数据流,所述第二下行数据流包括目标下行数据帧,所述目标下行数据帧用于承载所述注册触发消息。Based on the first aspect, in an optional implementation manner, before the first communication node sends a registration trigger message to the second communication node, the method further includes: the first communication node receives a message from the center The first downlink data flow of the central office device; the first communication node copies the first downlink data flow to obtain the second downlink data flow; the first communication node sends a registration trigger message to the second communication node The method includes: the first communication node sending the second downlink data stream to the second communication node, the second downlink data stream including a target downlink data frame, and the target downlink data frame is used to carry the registration trigger. information.
采用本实现方式,第一通信节点通过向第二通信节点发送目标下行数据帧,以使第二通信节点根据目标下行数据帧发送注册请求消息。可见,中心局设备无需通过广播的方式发送注册触发消息,直接通过该目标下行数据帧向第二通信节点发送注册触发消息,保证了第二通信节点接收注册触发消息的成功率。In this implementation manner, the first communication node sends a target downlink data frame to the second communication node, so that the second communication node sends a registration request message according to the target downlink data frame. It can be seen that the central office device does not need to send the registration trigger message by broadcasting, but directly sends the registration trigger message to the second communication node through the target downlink data frame, which ensures the success rate of the second communication node receiving the registration trigger message.
基于第一方面,一种可选的实现方式中,所述注册触发消息为所述目标下行数据帧已承载的目标超帧号。Based on the first aspect, in an optional implementation manner, the registration trigger message is a target superframe number carried by the target downlink data frame.
采用本实现方式,第一通信节点通过目标下行数据帧的目标超帧号指示第二通信节点发送注册请求消息,在第二通信节点检测到该目标超帧号的情况下,直接向第一通信节点发送注册请求消息,保证了第二通信节点接收注册触发消息的成功率。Using this implementation, the first communication node instructs the second communication node to send a registration request message through the target superframe number of the target downlink data frame. When the second communication node detects the target superframe number, it directly sends the registration request message to the first communication node. The node sends the registration request message to ensure the success rate of the second communication node receiving the registration trigger message.
基于第一方面,一种可选的实现方式中,所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT包括:所述第一通信节点确定第一时刻,所述第一时刻为所述第一通信节点向所述第二通信节点发送注册触发消息的时刻,所述注册触发消息用于指示所述第二通信节点发送所述注册请求消息;所述第一通信节点确定第二时刻,所述第二时刻为所述第一通信节点接收所述注册请求消息的时刻;所述第一通信节点确定所述第二时刻和所述第一时刻之间的差值为所述第二RTT。Based on the first aspect, in an optional implementation manner, the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes: The first communication node determines a first time. The first time is the time when the first communication node sends a registration trigger message to the second communication node. The registration trigger message is used to instruct the second communication node to send The registration request message; the first communication node determines a second time, and the second time is the time when the first communication node receives the registration request message; the first communication node determines the second time The difference between and the first time is the second RTT.
采用本实现方式,由第一通信节点测量第一通信节点和第二通信节点之间的第二RTT,第一通信节点直接向中心设备发送该第二RTT,以使中心局设备根据第二RTT获得第一RTT,有效地提高了中心局设备获得第一RTT的及时性。Using this implementation, the first communication node measures the second RTT between the first communication node and the second communication node, and the first communication node directly sends the second RTT to the central device, so that the central office device determines the second RTT according to the second RTT. Obtaining the first RTT effectively improves the timeliness of the central office equipment obtaining the first RTT.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述第二通信节点发送注册触发消息之前,所述方法还包括:所述第一通信节点接收来自所述中心局设备的第三下行数据流;所述第一通信节点复制所述第三下行数据流以获得第四下行数据流;所述第一通信节点在所述第四下行数据流中增加所述注册触发消息以获得第五下行数据流;所述第一通信 节点向所述第二通信节点发送注册触发消息包括:所述第一通信节点向所述第二通信节点发送所述第五下行数据流。Based on the first aspect, in an optional implementation manner, before the first communication node sends a registration trigger message to the second communication node, the method further includes: the first communication node receives a message from the center The third downlink data stream of the central office device; the first communication node copies the third downlink data stream to obtain a fourth downlink data stream; the first communication node adds the registration in the fourth downlink data stream Trigger message to obtain the fifth downstream data stream; the first communication The node sending a registration trigger message to the second communication node includes: the first communication node sending the fifth downlink data stream to the second communication node.
采用本实现方式,第一通信节点通过向第二通信节点发送第五下行数据流,以使第二通信节点根据第五下行数据流发送注册请求消息。可见,中心局设备无需通过广播的方式发送注册触发消息,直接通过该第五下行数据流向第二通信节点发送注册触发消息,保证了第二通信节点接收注册触发消息的成功率。In this implementation manner, the first communication node sends the fifth downlink data stream to the second communication node, so that the second communication node sends the registration request message according to the fifth downlink data stream. It can be seen that the central office equipment does not need to send the registration trigger message by broadcasting, but directly sends the registration trigger message to the second communication node through the fifth downlink data flow, which ensures the success rate of the second communication node receiving the registration trigger message.
基于第一方面,一种可选的实现方式中,所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT包括:所述第一通信节点确定第三时刻,所述第三时刻为所述第一通信节点向所述第二通信节点发送第一测量消息的时刻;所述第一通信节点确定第四时刻,所述第四时刻为所述第一通信节点接收来自所述第二通信节点的第二测量消息的时刻;所述第一通信节点确定所述第四时刻和所述第三时刻之间的差值为所述第二RTT。Based on the first aspect, in an optional implementation manner, the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes: The first communication node determines a third time, which is the time when the first communication node sends the first measurement message to the second communication node; the first communication node determines a fourth time, and the third time is the time when the first communication node sends the first measurement message to the second communication node. The fourth time is the time when the first communication node receives the second measurement message from the second communication node; the first communication node determines that the difference between the fourth time and the third time is the Describe the second RTT.
采用本实现方式,第一通信节点基于第一测量消息和第二测量消息测量第二RTT,有效地提高了测量第二RTT的准确性。Using this implementation, the first communication node measures the second RTT based on the first measurement message and the second measurement message, which effectively improves the accuracy of measuring the second RTT.
基于第一方面,一种可选的实现方式中,所述第一通信节点的第一接收端口RX与所述中心局设备连接,所述第一通信节点的第二RX与所述第二通信节点连接,所述第一通信节点接收来自第二通信节点的注册请求消息之前,所述方法还包括:所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口。Based on the first aspect, in an optional implementation manner, the first receiving port RX of the first communication node is connected to the central office device, and the second RX of the first communication node is connected to the second communication node. Node connection, before the first communication node receives the registration request message from the second communication node, the method further includes: the first communication node, in the first RX and the second RX, transfers the The second RX is switched to a receiving port for receiving the registration request message.
采用本实现方式,能够成功的保证第一通信节点向中心局设备发送注册请求消息以及向第二通信节点发送上行数据流的成功率。Using this implementation method, the success rate of the first communication node sending a registration request message to the central office device and sending the uplink data stream to the second communication node can be successfully guaranteed.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口之前,所述方法还包括:所述第一通信节点检测到经由所述第一RX所接收到的信号质量优于经由所述第二RX所接收到的信号质量。Based on the first aspect, in an optional implementation manner, the first communication node switches the second RX to receive the registration request message among the first RX and the second RX. Before the port, the method further includes: the first communication node detecting that the signal quality received via the first RX is better than the signal quality received via the second RX.
采用本实现方式,第一通信节点基于信号质量选择用于进行注册的中心局设备,提高了第一通信节点注册的成功率。Using this implementation, the first communication node selects the central office device for registration based on signal quality, which improves the success rate of registration of the first communication node.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口之前,所述方法还包括:所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。Based on the first aspect, in an optional implementation manner, the first communication node switches the second RX to receive the registration request message among the first RX and the second RX. Before the port, the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
采用本实现方式,第一通信节点确定经由所述第二RX接收到光信号出现故障事件的情况下,第一通信节点选择注册至与第一RX连接的中心局设备上,提高了第一通信节点注册的成功率。Using this implementation, when the first communication node determines that a fault event occurs in the optical signal received via the second RX, the first communication node chooses to register with the central office device connected to the first RX, thereby improving the efficiency of the first communication The success rate of node registration.
基于第一方面,一种可选的实现方式中,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点与所述第二通信节点为所述多个通信节点中不同的两个通信节点,且所述第一通信节点连接在所述中心局设备和所述第二通信节点之间。Based on the first aspect, in an optional implementation, the method is applied to an optical communication system, and the optical communication system includes the central office device and a plurality of communication nodes connected to the central office device in sequence; The first communication node and the second communication node are two different communication nodes among the plurality of communication nodes, and the first communication node is connected between the central office equipment and the second communication node .
本申请实施例第二方面提供了一种注册方法,所述方法包括:中心局设备接收来自第一通信节点的上行数据流;所述中心局设备获得所述上行数据流的目标时隙上已承载的注册请求消息,其中,所述注册请求消息来自第二通信节点,所述目标时隙由所述中心局设备指示; 所述中心局设备根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The second aspect of the embodiment of the present application provides a registration method. The method includes: a central office device receiving an uplink data stream from a first communication node; Bearer registration request message, wherein the registration request message comes from the second communication node, and the target time slot is indicated by the central office device; The central office device measures a first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects in this aspect, please refer to the first aspect, and details will not be repeated.
基于第二方面,一种可选的实现方式中,所述中心局设备接收来自第一通信节点的上行数据流之后,所述方法还包括:所述中心局设备获得所述目标时隙上已承载的所述第一通信节点和所述第二通信节点之间的第二RTT;所述中心局设备根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT包括:所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT。Based on the second aspect, in an optional implementation manner, after the central office device receives the uplink data stream from the first communication node, the method further includes: the central office device obtains the data flow on the target time slot. The second RTT between the first communication node and the second communication node of the bearer; the central office device measures the third RTT between the central office device and the second communication node according to the registration request message. A round-trip communication delay RTT includes: the central office device measuring the first RTT according to the second RTT and the registration request message.
基于第二方面,一种可选的实现方式中,所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT之前,所述方法还包括:所述中心局设备获得第三RTT,所述第三RTT为所述中心局设备和所述第一通信节点之间的RTT;所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT包括:所述中心局设备确定所述第二RTT与所述第三RTT的和为所述第一RTT。Based on the second aspect, in an optional implementation manner, before the central office device measures the first RTT according to the second RTT and the registration request message, the method further includes: the central office device Obtain a third RTT, which is the RTT between the central office device and the first communication node; the central office device measures the first RTT according to the second RTT and the registration request message. The RTT includes: the central office device determines that the sum of the second RTT and the third RTT is the first RTT.
基于第二方面,一种可选的实现方式中,所述中心局设备获得第三RTT包括:所述中心局设备获得所述上行数据流已承载的所述第一通信节点的标识;所述中心局设备根据所述第一通信节点的标识获得对应的所述第三RTT。Based on the second aspect, in an optional implementation manner, the central office device obtaining the third RTT includes: the central office device obtaining the identity of the first communication node on which the uplink data stream has been carried; The central office device obtains the corresponding third RTT according to the identification of the first communication node.
本申请实施例第三方面提供了一种注册方法,所述方法包括:第二通信节点接收来自第一通信节点的注册触发消息;所述第二通信节点根据所述注册触发消息向所述第一通信节点发送注册请求消息,所述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The third aspect of the embodiment of the present application provides a registration method. The method includes: a second communication node receives a registration trigger message from a first communication node; the second communication node sends a message to the third communication node according to the registration trigger message. A communication node sends a registration request message, and the registration request message is used to measure the first round-trip communication delay RTT between the central office device and the second communication node.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects in this aspect, please refer to the first aspect, and details will not be repeated.
基于第三方面,一种可选的实现方式中,所述第二通信节点接收来自第一通信节点的注册触发消息包括:所述第二通信节点接收来自所述第一通信节点的第二下行数据流,所述第二下行数据流包括目标下行数据帧,所述注册触发消息为所述目标下行数据帧已承载的目标超帧号。Based on the third aspect, in an optional implementation manner, the second communication node receiving the registration trigger message from the first communication node includes: the second communication node receiving a second downlink message from the first communication node. data stream, the second downlink data stream includes a target downlink data frame, and the registration trigger message is a target superframe number carried by the target downlink data frame.
基于第三方面,一种可选的实现方式中,所述第二通信节点接收来自第一通信节点的注册触发消息包括:所述第二通信节点接收来自所述第一通信节点的第五下行数据流,所述第五下行数据流已承载所述注册触发消息。Based on the third aspect, in an optional implementation manner, the second communication node receiving the registration trigger message from the first communication node includes: the second communication node receiving the fifth downlink message from the first communication node. Data stream, the fifth downlink data stream has carried the registration trigger message.
本申请实施例第四方面提供了一种通信节点,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;所述收发器用于接收来自另一通信节点的注册请求消息,所述注册请求消息用于测量中心局设备和所述另一通信节点之间的第一来回通信时延RTT;所述业务处理器用于在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙为所述中心局设备为所述通信节点指示的时隙;所述收发器还用于向所述中心局设备发送所述上行数据流。The fourth aspect of the embodiment of the present application provides a communication node. The communication node includes a transceiver and a service processor. The transceiver is connected to the service processor; the transceiver is used to receive a message from another communication node. Registration request message, the registration request message is used to measure the first round-trip communication delay RTT between the central office equipment and the other communication node; the service processor is used to carry all the data on the target time slot of the uplink data stream. In the registration request message, the target time slot is the time slot indicated by the central office device for the communication node; the transceiver is also used to send the uplink data stream to the central office device.
本申请有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects of this application, please refer to the first aspect, and details will not be repeated.
本申请实施例第五方面提供了一种中心局设备,所述中心局设备包括收发器以及业务处理器,所述收发器与所述业务处理器连接;所述收发器用于接收来自第一通信节点的上行数据流;The fifth aspect of the embodiment of the present application provides a central office device. The central office device includes a transceiver and a service processor. The transceiver is connected to the service processor; the transceiver is used to receive the first communication from The node’s upstream data flow;
所述业务处理器用于获得所述上行数据流的目标时隙上已承载的注册请求消息,其中, 所述注册请求消息来自第二通信节点,所述目标时隙为所述中心局设备为所述第一通信节点指示的时隙,所述业务处理器还用于根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The service processor is configured to obtain the registration request message carried on the target time slot of the uplink data stream, wherein, The registration request message comes from the second communication node, the target time slot is the time slot indicated by the central office device for the first communication node, and the service processor is also configured to measure the time slot according to the registration request message. The first round-trip communication time delay RTT between the central office equipment and the second communication node.
本申请有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects of this application, please refer to the first aspect, and details will not be repeated.
本申请实施例第六方面提供了一种通信节点,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;所述收发器用于接收来自另一通信节点的注册触发消息;The sixth aspect of the embodiment of the present application provides a communication node. The communication node includes a transceiver and a service processor. The transceiver is connected to the service processor; the transceiver is used to receive a message from another communication node. Register trigger message;
所述业务处理器用于根据所述注册触发消息向所述另一通信节点发送注册请求消息,所述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The service processor is configured to send a registration request message to the other communication node according to the registration trigger message, and the registration request message is used to measure the first round-trip communication time between the central office device and the second communication node. Extended RTT.
本申请实施例第七方面提供了一种光通信系统,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;所述第一通信节点用于向所述第二通信节点发送注册触发消息;所述第二通信节点用于根据所述注册触发消息向所述第一通信节点发送注册请求消息;所述第一通信节点用于在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙为所述中心局设备为所述第一通信节点指示的时隙;所述第一通信节点用于向所述中心局设备发送所述上行数据流;所述中心局设备用于获得所述上行数据流已承载的所述注册请求消息;所述中心局设备用于根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The seventh aspect of the embodiment of the present application provides an optical communication system. The optical communication system includes a central office device, a first communication node and a second communication node that are connected in sequence; the first communication node is used to send a signal to the third communication node. The second communication node sends a registration trigger message; the second communication node is used to send a registration request message to the first communication node according to the registration trigger message; the first communication node is used to send a registration request message in the target time slot of the uplink data stream. The registration request message is carried on the mobile phone, and the target time slot is the time slot indicated by the central office device to the first communication node; the first communication node is used to send the uplink data to the central office device. stream; the central office device is used to obtain the registration request message that has been carried by the uplink data stream; the central office device is used to measure the central office device and the second communication node according to the registration request message. The first round-trip communication delay is RTT.
本申请实施例第八方面提供了一种可读存储介质,可读存储介质中存储有执行指令,当至少一个业务处理器执行该执行指令时,执行第一方面至第三方面任一项所示的方法。The eighth aspect of the embodiments of the present application provides a readable storage medium. Execution instructions are stored in the readable storage medium. When at least one service processor executes the execution instructions, any one of the first to third aspects is executed. method shown.
附图说明Description of drawings
图1a为环形组网的结构示例图;Figure 1a is an example of the structure of a ring network;
图1b为本申请实施例提供的环形组网的一种结构示例图;Figure 1b is a structural example diagram of a ring network provided by an embodiment of the present application;
图2a为已有方案提供的ONU注册至OLT的执行步骤示例图;Figure 2a is an example diagram of the execution steps of ONU registration to OLT provided by existing solutions;
图2b为OLT指示的传输周期示例图;Figure 2b is an example diagram of the transmission cycle indicated by the OLT;
图2c为OLT指示的传输周期对比示例图;Figure 2c is a comparison example of the transmission cycle indicated by the OLT;
图3为本申请实施例提供的注册方法的第一种步骤流程图;Figure 3 is a flow chart of the first steps of the registration method provided by the embodiment of the present application;
图4为本申请实施例提供的下行数据帧的结构示例图;Figure 4 is an example structural diagram of a downlink data frame provided by the embodiment of the present application;
图5为本申请实施例提供的ONU的第一种实施例结构示例图;Figure 5 is an example structural diagram of the first embodiment of the ONU provided by the embodiment of the present application;
图6a为本申请实施例提供的OLT获得第三RTT的时序示例图;Figure 6a is a timing diagram for the OLT to obtain the third RTT provided by the embodiment of the present application;
图6b为本申请实施例提供的OLT获得第二RTT的时序示例图;Figure 6b is a timing diagram for the OLT to obtain the second RTT provided by the embodiment of the present application;
图7为本申请实施例提供的注册方法的第二种步骤流程图;Figure 7 is a second step flow chart of the registration method provided by the embodiment of the present application;
图8为本申请实施例提供的注册方法的第三种步骤流程图;Figure 8 is a third step flow chart of the registration method provided by the embodiment of the present application;
图9为本申请实施例提供的ONU1的第一种结构示例图;Figure 9 is a first structural example diagram of ONU1 provided by the embodiment of the present application;
图10为本申请实施例提供的注册方法的第四种步骤流程图; Figure 10 is a flow chart of the fourth step of the registration method provided by the embodiment of the present application;
图11为本申请实施例提供的注册方法的第五种步骤流程图;Figure 11 is a flow chart of the fifth step of the registration method provided by the embodiment of the present application;
图12为本申请实施例提供的ONU1的第二种结构示例图;Figure 12 is a second structural example diagram of ONU1 provided by the embodiment of the present application;
图13为本申请实施例提供的通信设备的结构示例图;Figure 13 is a structural example diagram of a communication device provided by an embodiment of the present application;
图14为本申请实施例所提供的双环形组网结构示例图。Figure 14 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this application.
图1a为环形组网的结构示例图。环形组网包括第一CO设备101,第二CO设备102以及依次连接在第一CO设备101和第二CO设备102之间的N个通信节点。第一CO设备101还与第二CO设备102连接。本示例所示的N为大于1的任意正整数。第一CO设备101和第二CO设备102是控制中心和信号的汇聚处理节点,比如下发命令控制各个通信节点。各个通信节点需要反馈信号给第一CO设备101或第二CO设备102。以第一CO设备101为例,该第一CO设备101用于实现各通信节点与上层网络之间传输数据。具体的,第一CO设备101可以充当各通信节点与上层网络之间的媒介,第一CO设备101能够将从上层网络接收到的下行业务转发到对应的通信节点以及将从各通信节点接收到的上行业务转发到上层网络。其中,上层网络可为因特网、公共交换电话网络(public switched telephone network,PSTN),交互式网络电视(IPTV),基于IP的语音传输(voice over internet protocol,VoIP)等网络。Figure 1a is an example of the structure of a ring network. The ring network includes a first CO device 101, a second CO device 102, and N communication nodes sequentially connected between the first CO device 101 and the second CO device 102. The first CO device 101 is also connected to the second CO device 102 . N shown in this example is any positive integer greater than 1. The first CO device 101 and the second CO device 102 are control centers and signal aggregation processing nodes, such as issuing commands to control various communication nodes. Each communication node needs to feed back a signal to the first CO device 101 or the second CO device 102 . Taking the first CO device 101 as an example, the first CO device 101 is used to implement data transmission between each communication node and the upper layer network. Specifically, the first CO device 101 can act as an intermediary between each communication node and the upper layer network. The first CO device 101 can forward the downlink traffic received from the upper layer network to the corresponding communication node and receive the downlink traffic received from each communication node. The uplink traffic is forwarded to the upper layer network. Among them, the upper-layer network can be the Internet, public switched telephone network (PSTN), interactive Internet television (IPTV), voice over Internet protocol (VoIP) and other networks.
采用环形组网的优势在于,一旦两个通信节点之间出现故障,不影响环形组网的正常通信。例如,若通信节点2与通信节点3之间出现了故障,通信节点2无需通过通信节点2与通信节点3之间的链路进行通信。通信节点2正常与通信节点1通信,通信节点1正常与第一CO设备101通信,以保证通信节点2和第一CO设备101之间通信的正常。而通信节点3与通信节点N通信,通信节点N与第二CO设备102通信,以保证通信节点3与第二CO设备102之间通信的正常。因第一CO设备101和第二CO设备102之间连接,则通信节点2需要发送至第二CO设备102的业务,可由第一CO设备101转发,同样的,通信节点3需要发送至第一CO设备101的业务,可由第二CO设备102转发。The advantage of using a ring network is that once a failure occurs between two communication nodes, it will not affect the normal communication of the ring network. For example, if a fault occurs between communication node 2 and communication node 3, communication node 2 does not need to communicate through the link between communication node 2 and communication node 3. The communication node 2 communicates normally with the communication node 1, and the communication node 1 communicates normally with the first CO device 101, so as to ensure normal communication between the communication node 2 and the first CO device 101. The communication node 3 communicates with the communication node N, and the communication node N communicates with the second CO device 102 to ensure normal communication between the communication node 3 and the second CO device 102. Since the first CO device 101 and the second CO device 102 are connected, the service that the communication node 2 needs to send to the second CO device 102 can be forwarded by the first CO device 101. Similarly, the communication node 3 needs to send it to the first CO device 102. The services of the CO device 101 can be forwarded by the second CO device 102.
本示例对环形组网的应用场景不做限定,例如,环形组网用于光传送网(opticalThis example does not limit the application scenarios of ring networking. For example, ring networking is used in optical transport networks.
transport network,OTN)、工业控制、数据回传、数据中心以及监控中心等,具体不做限定。对环形组网结构的说明请参见图1的说明,具体不做赘述。本示例还对环形组网所包括的各个设备的设备类型不做限定,例如,CO设备可为基站控制器(base station controller,BSC),通信节点可为基站收发信台(base transciver station,BTS),又如,CO设备可为服务器等,而通信节点可为交换机,又如,CO设备可为基带处理单元(building baseband unit,BBU),通信节点可为射频拉远模块(radio remote unit,RRU),又如,CO设备可为服务器,而通信节点可为监控摄像头等终端设备。又如图1b所示,环形组网所包括的CO设备可为光线路终端(optical line terminal,OLT),通信节点可为光网络单元(optical network unit,ONU)。 本申请所应用的环形组网可参见图1b所示,其中,图1b为本申请实施例提供的环形组网的一种结构示例图。该环形组网包括OLT1,OLT2以及依次连接在OLT1以及OLT2之间的N个ONU。其中,OLT1和OLT2可为同一OLT所包括的两个通信单板。又如,OLT1和OLT2可为两个独立且具有连接关系的两个独立的OLT。本实施例所示的环形组网中,任意相邻的两个ONU之间无需通过分光器连接,而且OLT1与相邻的ONU(即图1b所示的ONU1)之间也无需通过分光器连接,OLT2与相邻的ONU(即ONU3)之间也无需通过分光器连接。例如,以ONU1为例,ONU1具有两个通信端口,ONU1的一个通信端口直接与OLT1之间通过光纤连接,ONU1具有的另一通信端口直接与ONU2之间通过光纤连接。在ONU1与第一OLT1直接连接的情况下,有效降低了通信时延,而且因环形组网无需布局分光器,降低了环形组网的部署难度,提高了部署效率,降低了环形组网的插损。本实施例以N的取值为2为例,对N的具体取值不做限定。以OLT1,N个ONU和OLT2组成环形组网为例,不做限定,例如,OLT1,N个ONU和OLT2也可组成链形组网或树形组网。transport network (OTN), industrial control, data backhaul, data center and monitoring center, etc. There are no specific restrictions. For the description of the ring networking structure, please refer to the description in Figure 1, and the details will not be repeated. This example also does not limit the device type of each device included in the ring network. For example, the CO device can be a base station controller (BSC), and the communication node can be a base transciver station (BTS). ). For another example, the CO device can be a server, and the communication node can be a switch. For another example, the CO device can be a baseband processing unit (building baseband unit, BBU), and the communication node can be a radio remote unit. RRU), as another example, the CO device can be a server, and the communication node can be a terminal device such as a surveillance camera. As shown in Figure 1b, the CO equipment included in the ring network may be an optical line terminal (OLT), and the communication node may be an optical network unit (ONU). The ring networking applied in this application can be seen as shown in Figure 1b, where Figure 1b is a structural example diagram of the ring networking provided by the embodiment of this application. The ring network includes OLT1, OLT2 and N ONUs connected between OLT1 and OLT2 in sequence. Among them, OLT1 and OLT2 may be two communication boards included in the same OLT. For another example, OLT1 and OLT2 may be two independent OLTs that have a connection relationship. In the ring network shown in this embodiment, any two adjacent ONUs do not need to be connected through an optical splitter, and there is no need to connect the OLT1 to the adjacent ONU (that is, ONU1 shown in Figure 1b) through an optical splitter. , OLT2 and the adjacent ONU (i.e. ONU3) do not need to be connected through an optical splitter. For example, taking ONU1 as an example, ONU1 has two communication ports. One communication port of ONU1 is directly connected to OLT1 through an optical fiber, and the other communication port of ONU1 is directly connected to ONU2 through an optical fiber. When ONU1 is directly connected to the first OLT1, the communication delay is effectively reduced, and because the ring network does not require optical splitters, the deployment difficulty of the ring network is reduced, the deployment efficiency is improved, and the insertion time of the ring network is reduced. damage. In this embodiment, the value of N is 2 as an example, and the specific value of N is not limited. Taking OLT1, N ONUs and OLT2 to form a ring network as an example, there is no limitation. For example, OLT1, N ONUs and OLT2 can also form a chain network or a tree network.
基于图1b所示的环形组网,本实施例所提供的注册方法,用于实现环形组网中的ONU注册至OLT,以使OLT能够为ONU分配用于传输上行业务的时隙。为更好的理解本申请实施例所提供的方法,以下首先结合图2a和图2b所示对已有方案所提供的环形组网的ONU如何注册至OLT的过程进行说明:其中,图2a为已有方案提供的ONU注册至OLT的执行步骤示例图。图2b为OLT指示的传输周期示例图。Based on the ring network shown in Figure 1b, the registration method provided in this embodiment is used to register the ONU in the ring network to the OLT, so that the OLT can allocate time slots for transmitting uplink services to the ONU. In order to better understand the method provided by the embodiment of the present application, the process of how an ONU in a ring network provided by the existing solution is registered to the OLT is first described below in conjunction with Figures 2a and 2b: Figure 2a is Existing solutions provide an example diagram of the execution steps for registering an ONU to an OLT. Figure 2b is an example diagram of the transmission cycle indicated by the OLT.
步骤201、OLT1在第一传输周期内接收来自待注册ONU的注册请求消息。Step 201: OLT1 receives a registration request message from the ONU to be registered in the first transmission cycle.
参见图2b所示,本示例所示以环形组网所包括的ONU1以及ONU2均已成功注册至OLT1为例。OLT1指示的第一传输周期220中包括时隙221以及时隙222,其中,时隙221为OLT1为ONU1指示的时隙,以使ONU1在时隙221内向OLT1发送上行业务。时隙222为OLT1为ONU2指示的时隙,以使ONU2在时隙222内向OLT1发送上行业务。Referring to Figure 2b, this example shows that both ONU1 and ONU2 included in the ring network have been successfully registered to OLT1. The first transmission cycle 220 indicated by OLT1 includes time slot 221 and time slot 222, where time slot 221 is the time slot indicated by OLT1 for ONU1, so that ONU1 sends uplink services to OLT1 in time slot 221. Time slot 222 is the time slot indicated by OLT1 to ONU2, so that ONU2 sends uplink services to OLT1 in time slot 222.
OLT1为使得环形组网所包括的待注册的ONU能够成功注册至OLT1,则OLT在第一传输周期220中分配发现时间窗223,本示例对时隙221,时隙222以及发现时间窗223三者之间的时序先后不做限定,且本实施例对发现时间窗223的持续时间不做限定。在该发现时间窗223的持续时间内,环形组网所包括的任意已注册的ONU不能占用该发现时间窗223向OLT1发送上行业务。OLT1通过动态带宽分配(dynamic bandwidth assignment,DBA)向各ONU指示该第一传输周期。In order for OLT1 to enable the ONUs to be registered in the ring network to successfully register to OLT1, the OLT allocates a discovery time window 223 in the first transmission cycle 220. This example uses three time slots: 221, 222, and discovery time windows 223. The timing sequence between them is not limited, and this embodiment does not limit the duration of the discovery time window 223. During the duration of the discovery time window 223, any registered ONU included in the ring network cannot occupy the discovery time window 223 to send uplink services to OLT1. OLT1 indicates the first transmission cycle to each ONU through dynamic bandwidth assignment (DBA).
可以理解,待注册的ONU3检测第一传输周期的发现时间窗223,待注册的ONU3在该发现时间窗223中承载注册请求消息,所述注册请求消息用于ONU3请求注册至OLT1。该注册请求消息为ONU3的序列号(serial number,SN)。已注册的ONU2在时隙222中承载ONU2的上行业务。已注册的ONU1在该时隙221中承载ONU1的上行业务。It can be understood that the ONU3 to be registered detects the discovery time window 223 of the first transmission cycle, and the ONU3 to be registered carries a registration request message in the discovery time window 223. The registration request message is used by ONU3 to request registration to OLT1. The registration request message is the serial number (SN) of ONU3. Registered ONU2 carries the uplink service of ONU2 in time slot 222. The registered ONU1 carries the uplink service of ONU1 in this time slot 221.
步骤202、OLT1向待注册的ONU发送第一测量消息。Step 202: OLT1 sends the first measurement message to the ONU to be registered.
OLT1检测到发现时间窗223所承载的注册请求消息的情况下,OLT1向待注册的ONU3发送第一测量消息。When OLT1 detects the registration request message carried by the discovery time window 223, OLT1 sends the first measurement message to ONU3 to be registered.
步骤203、OLT1接收来自待注册ONU的第二测量消息。Step 203: OLT1 receives the second measurement message from the ONU to be registered.
继续参见图2b所示,OLT1指示的第二传输周期230包括ONU1的时隙231以及ONU2的时隙232,具体说明请参见图2a所示的时隙221以及时隙222的说明,具体不做赘述。该第二传输周期230还包括测距时间窗233。在该测距时间窗233的持续时间内,环形组网所包括的任意已注册的ONU不能占用该测距时间窗233向OLT1发送上行业务。本示例所示的第一测量消息用于指示测 距时间窗233。Continuing to refer to Figure 2b, the second transmission cycle 230 indicated by OLT1 includes the time slot 231 of ONU1 and the time slot 232 of ONU2. For specific description, please refer to the description of time slot 221 and time slot 222 shown in Figure 2a. The details will not be given. Repeat. The second transmission period 230 also includes a ranging time window 233. During the duration of the ranging time window 233, any registered ONU included in the ring network cannot occupy the ranging time window 233 to send uplink services to OLT1. The first measurement message shown in this example is used to indicate the measurement Time window 233.
可以理解,待注册的ONU3根据第一测量消息检测第二传输周期230所包括的测距时间窗233,待注册的ONU3在该测距时间窗233中承载第二测量消息。已注册的ONU2在时隙232中承载ONU2的上行业务。已注册的ONU1在该时隙231中承载ONU1的上行业务。It can be understood that the ONU3 to be registered detects the ranging time window 233 included in the second transmission period 230 according to the first measurement message, and the ONU3 to be registered carries the second measurement message in the ranging time window 233. Registered ONU2 carries the uplink service of ONU2 in time slot 232. The registered ONU1 carries the uplink service of ONU1 in this time slot 231.
步骤204、OLT1根据第一测量消息和第二测量消息获得目标来回通信时延。Step 204: OLT1 obtains the target round-trip communication delay according to the first measurement message and the second measurement message.
具体的,OLT1根据OLT1发送该第一测量消息的发送时刻和OLT1接收该第二测量消息的接收时刻能够计算出OLT1和ONU3之间的来回通信时延(round-trip time,RTT)。其中,OLT1和ONU3之间的RTT等于OLT1接收该第二测量消息的接收时刻与OLT1发送该第一测量消息的发送时刻的差值。Specifically, OLT1 can calculate the round-trip time (RTT) between OLT1 and ONU3 based on the sending time when OLT1 sends the first measurement message and the receiving time when OLT1 receives the second measurement message. The RTT between OLT1 and ONU3 is equal to the difference between the receiving time when OLT1 receives the second measurement message and the sending time when OLT1 sends the first measurement message.
步骤205、OLT1为ONU3分配时隙。Step 205: OLT1 allocates time slots to ONU3.
OLT1在获得到OLT1和ONU3之间的RTT的情况下,OLT1能够根据OLT1和ONU3之间的RTT为ONU3分配用于传输ONU3的上行业务的时隙,以使该ONU3成功注册至OLT1,继续参见图2b所示,OLT1在确定ONU3成功注册至OLT1的情况下,OLT1分配第三传输周期240,其中,该第三传输周期240包括ONU1的时隙241,ONU2的时隙242以及ONU3的时隙243,可以理解,ONU3在OLT1指示的时隙243上,承载ONU3的上行业务。时隙241,时隙242以及时隙243在时间上不存在重叠,从而保证已注册至OLT1的各个ONU发送的上行业务之间不会发生传输冲突。When OLT1 obtains the RTT between OLT1 and ONU3, OLT1 can allocate time slots for ONU3 to transmit ONU3's uplink services based on the RTT between OLT1 and ONU3, so that ONU3 can successfully register with OLT1. Continue to see As shown in Figure 2b, when OLT1 determines that ONU3 has successfully registered with OLT1, OLT1 allocates a third transmission cycle 240, where the third transmission cycle 240 includes the time slot 241 of ONU1, the time slot 242 of ONU2 and the time slot of ONU3 243. It can be understood that ONU3 carries the uplink service of ONU3 in the time slot 243 indicated by OLT1. Time slot 241, time slot 242 and time slot 243 do not overlap in time, thereby ensuring that there will be no transmission conflict between uplink services sent by each ONU registered to OLT1.
可以理解,采用已有方案所示的待注册的ONU注册至OLT的过程中,OLT指示的时间窗(如发现时间窗或测距时间窗)不能用于已注册的ONU的上行业务的传输,所以OLT指示的时间窗带来了带宽上的浪费。It can be understood that in the process of registering the ONU to be registered to the OLT as shown in the existing solution, the time window indicated by the OLT (such as the discovery time window or ranging time window) cannot be used for the transmission of the uplink services of the registered ONU. Therefore, the time window indicated by the OLT brings a waste of bandwidth.
参见图2c所示,其中,图2c为OLT指示的传输周期对比示例图。图2c所示的时刻t1,时刻t2,时刻t3,时刻t4,时刻t5,时刻t6,时刻t7以及时刻t8在时间轴上,依次递增。若OLT1无需分配时间窗(例如图2b所示的发现时间窗或测距时间窗),则OLT1为ONU1和ONU2指示的时隙参见时隙分配示例1所示,OLT1在一个传输周期内,为ONU1分配时隙251,该时隙251的起始时刻为时刻t1,结束时刻为时刻t2。OLT1为ONU2分配时隙252,该时隙252的起始时刻为时刻t2,结束时刻为t3。OLT1在下一个传输周期内,为ONU1分配时隙253,该时隙253的起始时刻为时刻t3,结束时刻为时刻t4。OLT为ONU2分配时隙254,该时隙254的起始时刻为时刻t4,结束时刻为t6。See Figure 2c, which is a comparison example of the transmission cycle indicated by the OLT. Time t1, time t2, time t3, time t4, time t5, time t6, time t7 and time t8 shown in Figure 2c are on the time axis, increasing in sequence. If OLT1 does not need to allocate a time window (such as the discovery time window or ranging time window shown in Figure 2b), then OLT1 is the time slot indicated by ONU1 and ONU2. See time slot allocation example 1, OLT1 within a transmission cycle, is ONU1 is allocated a time slot 251. The starting time of this time slot 251 is time t1 and the end time is time t2. OLT1 allocates time slot 252 to ONU2. The starting time of this time slot 252 is time t2 and the end time is t3. In the next transmission cycle, OLT1 allocates time slot 253 to ONU1. The starting time of this time slot 253 is time t3 and the end time is time t4. The OLT allocates time slot 254 to ONU2. The starting time of this time slot 254 is time t4 and the end time is t6.
若OLT1需要分配时间窗(例如图2b所示的发现时间窗或测距时间窗),则OLT1为ONU1和ONU2指示的时隙参见时隙分配示例2所示,OLT1在一个传输周期内,为ONU1分配时隙261,该时隙261的起始时刻为时刻t1,结束时刻为时刻t2(与时隙分示例1所示的ONU1的时隙251的起止时刻相同)。OLT1为ONU2分配时隙262,该时隙262的起始时刻为时刻t2,结束时刻为t3(与时隙分示例1所示的ONU2的时隙262的起止时刻相同)。OLT1为待注册的ONU分配用于注册的时间窗263,该时间窗263的起始时刻为时刻t3,结束时刻为时刻t5。因OLT1在时隙分配示例2中分配用于注册的时间戳263,则使得时隙分配示例2相对于时隙分配示例1,OLT1在下一个传输周期,为ONU1指示的时隙和为ONU2指示的时隙均出现延时。具体的,OLT1在时隙分配示例2中,在下一个传输周期内为ONU1分配时隙264,该时隙264的起始时刻为时刻t5,结束时刻为时刻t7,可以理解,相对于时隙分配示例1的ONU的时隙253,起始时刻和结束时刻均出现了延时。OLT1在时隙分配示例2中,在下一个传输周期内为ONU2分配时隙265,该时隙265的起始时刻为时刻t7,结束时刻为时刻t8,可以理解,相对于时隙分配示例1的ONU的时隙255,起始时 刻和结束时刻均出现了延时,导致已注册的ONU的上行业务无法及时传输,时延抖动性和不确定性增加,将无法适配业务传输及时性要求高的业务。If OLT1 needs to allocate a time window (such as the discovery time window or ranging time window shown in Figure 2b), OLT1 is the time slot indicated by ONU1 and ONU2. See time slot allocation example 2, OLT1 within a transmission cycle, is ONU1 is allocated a time slot 261. The start time of this time slot 261 is time t1 and the end time is time t2 (the same as the start and end time of time slot 251 of ONU1 shown in time slot example 1). OLT1 allocates time slot 262 to ONU2. The starting time of this time slot 262 is time t2 and the end time is t3 (the same as the starting and ending time of time slot 262 of ONU2 shown in time slot example 1). OLT1 allocates a time window 263 for registration to the ONU to be registered. The starting time of this time window 263 is time t3 and the end time is time t5. Because OLT1 allocates the timestamp 263 for registration in time slot allocation example 2, then time slot allocation example 2 is compared with time slot allocation example 1. In the next transmission cycle, OLT1 has the time slot indicated for ONU1 and the time slot indicated for ONU2. Delays occur in all time slots. Specifically, in time slot allocation example 2, OLT1 allocates time slot 264 to ONU1 in the next transmission cycle. The starting time of time slot 264 is time t5 and the end time is time t7. It can be understood that relative to time slot allocation In the time slot 253 of the ONU in Example 1, both the start time and the end time are delayed. In time slot allocation example 2, OLT1 allocates time slot 265 to ONU2 in the next transmission cycle. The starting time of time slot 265 is time t7 and the end time is time t8. It can be understood that compared to time slot allocation example 1, ONU's time slot 255, starting Delays occur at both the moment and the end moment, causing the registered ONU's uplink services to be unable to be transmitted in time. The jitter and uncertainty of the delay increase, and it will not be able to adapt to services that require high timeliness of service transmission.
本申请实施例提供了一种注册方法,本实施例所示的注册方法,使得OLT无需开窗的情况下,即可使得待注册的ONU能够成功注册至OLT,解决了通过开窗实现ONU注册至OLT的方案所导致的带宽浪费,时延增加以及时延抖动的问题。具体执行过程可参见图3所示,其中,图3为本申请实施例提供的注册方法的第一种步骤流程图。The embodiment of this application provides a registration method. The registration method shown in this embodiment enables the ONU to be registered to be successfully registered to the OLT without opening a window on the OLT, solving the problem of ONU registration by opening a window. The solution to the OLT leads to bandwidth waste, increased delay and delay jitter. The specific execution process can be seen in Figure 3, where Figure 3 is a flow chart of the first steps of the registration method provided by the embodiment of the present application.
步骤301、OLT1向ONU1发送第一初始下行数据流。Step 301: OLT1 sends the first initial downlink data stream to ONU1.
本实施例以与OLT1直接通过光纤连接的ONU1尚未注册为例,则首先说明ONU1注册至OLT1的过程进行说明:本实施例所示的第一初始下行数据流用于ONU1注册至OLT1。第一初始下行数据流包括一个或多个连续的下行数据帧,下行数据帧的结构可参见图4所示,其中,图4为本申请实施例提供的下行数据帧的结构示例图。初始下行数据帧400包括物理同步块(physicalsynchronization block,PSBd)401和物理层帧有效载荷(physical layer frame payload)402。PSBd401包括字段物理同步(physical synchronization,PSync)字段411,超帧计数器(superframe counter,SFC)字段412以及操作控制(operation control,OC)字段413以及上行带宽地图(upstream bandwidth map,US BWmap)字段414。In this embodiment, ONU1, which is directly connected to OLT1 through optical fiber and has not yet registered, is taken as an example. The process of ONU1 registering to OLT1 is first described: The first initial downstream data stream shown in this embodiment is used for ONU1 to register to OLT1. The first initial downlink data stream includes one or more continuous downlink data frames. The structure of the downlink data frame can be seen in Figure 4. Figure 4 is an example of the structure of the downlink data frame provided by the embodiment of the present application. The initial downlink data frame 400 includes a physical synchronization block (PSBd) 401 and a physical layer frame payload (physical layer frame payload) 402. PSBd401 includes fields physical synchronization (PSync) field 411, superframe counter (superframe counter, SFC) field 412, operation control (operation control, OC) field 413 and upstream bandwidth map (upstream bandwidth map, US BWmap) field 414 .
其中,Psync字段411为物理层同步字段,可用于承载下行帧同步指示符号。SFC字段412用于承载超帧号,SFC字段412承载的超帧号实质为一个30比特(bit)宽度的帧循环计数器,当超帧号为0时表示一个超帧的开始。US BWmap字段414为时隙调度消息,该时隙调度消息用于指示ONU1占用的目标时隙。具体的,US BWmap字段414用于承载用户的带宽映射(bandwidth map,BWMAP)信息。US BWmap字段414包括N个分配结构(Allocation Structure)。每个Allocation Structure包括带宽分配标识(allocation identifier,Alloc-ID)字段421,时隙起始时刻(start time)字段422以及授权尺寸(Grant size)字段423。Allocation ID字段用于承载授权发送的ONU1的标识符(Identity,ID),start time字段用于指示OLT1为ONU1分配的时隙的开始时刻,Grant size字段423用于指示授权给ONU1的时隙长度。在第一初始下行数据流用于使得ONU1注册至OLT1的情况下,初始下行数据帧400可包括一个授权给ONU1的Allocation Structure。Among them, the Psync field 411 is a physical layer synchronization field, which can be used to carry downlink frame synchronization indicator symbols. The SFC field 412 is used to carry the superframe number. The superframe number carried by the SFC field 412 is essentially a frame cycle counter with a width of 30 bits. When the superframe number is 0, it indicates the start of a superframe. US BWmap field 414 is a time slot scheduling message, which is used to indicate the target time slot occupied by ONU1. Specifically, the US BWmap field 414 is used to carry the user's bandwidth map (BWMAP) information. US BWmap field 414 includes N allocation structures (Allocation Structure). Each Allocation Structure includes a bandwidth allocation identifier (allocation identifier, Alloc-ID) field 421, a slot start time (start time) field 422, and a grant size (Grant size) field 423. The Allocation ID field is used to carry the identifier (Identity, ID) of ONU1 authorized to send. The start time field is used to indicate the start time of the time slot allocated by OLT1 for ONU1. The Grant size field 423 is used to indicate the length of the time slot granted to ONU1. . In the case where the first initial downlink data flow is used to register ONU1 to OLT1, the initial downlink data frame 400 may include an Allocation Structure authorized to ONU1.
步骤302、ONU1根据第一初始下行数据流进行超帧同步。Step 302: ONU1 performs superframe synchronization according to the first initial downlink data stream.
ONU1根据下行数据流所包括的下行数据帧400进行超帧同步。具体的,ONU1维护一个循环计数器,该循环计数器用于实现超帧同步。具体的,ONU1接收到来自OLT1的下行数据帧400后,将下行数据帧400的SFC字段412承载的第一超帧号作为循环计数器的取值,可以理解,ONU1保证循环计数器的取值与每一个接收到的下行数据帧400的SFC字段412承载的超帧号保持一致,完成下行超帧同步。ONU1 performs superframe synchronization based on the downlink data frame 400 included in the downlink data stream. Specifically, ONU1 maintains a cycle counter, which is used to implement superframe synchronization. Specifically, after receiving the downlink data frame 400 from OLT1, ONU1 uses the first superframe number carried in the SFC field 412 of the downlink data frame 400 as the value of the loop counter. It can be understood that ONU1 ensures that the value of the loop counter is consistent with each The superframe number carried by the SFC field 412 of a received downlink data frame 400 remains consistent, completing downlink superframe synchronization.
步骤303、ONU1向OLT1发送初始注册请求消息。Step 303: ONU1 sends an initial registration request message to OLT1.
本实施例中,ONU1和OLT1之间可预先约定初始超帧号。该初始超帧号用于指示ONU1向OLT1发送初始注册请求消息。ONU1检测到承载该初始超帧号的下行数据帧的帧头时,向OLT1发送初始注册请求消息。例如,OLT1和ONU1约定,若ONU1接收到承载目标超帧号为10的下行数据帧的帧头情况下,ONU1向OLT1发送初始注册请求消息。又如,OLT1和ONU1约定,若ONU1接收到承载取值为奇数的目标超帧号的下行数据帧的帧头情况下,ONU1向OLT1发送初始注册请求消息。又如,OLT1和ONU1约定,若ONU1接收到承载取值为10的倍数的目标超帧号的下行数据 帧的帧头情况下,ONU1向OLT1发送初始注册请求消息。本实施例对初始超帧号的取值不做限定。In this embodiment, the initial superframe number can be pre-agreed between ONU1 and OLT1. The initial superframe number is used to instruct ONU1 to send an initial registration request message to OLT1. When ONU1 detects the frame header of the downlink data frame carrying the initial superframe number, it sends an initial registration request message to OLT1. For example, OLT1 and ONU1 agree that if ONU1 receives the frame header of a downlink data frame carrying the target superframe number 10, ONU1 will send an initial registration request message to OLT1. For another example, OLT1 and ONU1 agree that if ONU1 receives the frame header of a downlink data frame carrying an odd target superframe number, ONU1 sends an initial registration request message to OLT1. For another example, OLT1 and ONU1 agree that if ONU1 receives downlink data carrying a target superframe number that is a multiple of 10 In the case of frame header, ONU1 sends an initial registration request message to OLT1. This embodiment does not limit the value of the initial superframe number.
本实施例以初始超帧号为10为例,在ONU1所接收到的下行数据帧的SFC字段412取值为10的情况下,ONU1向OLT1发送初始注册请求消息,所述初始注册请求消息携带ONU1的SN。In this embodiment, the initial superframe number is 10 as an example. When the SFC field 412 of the downlink data frame received by ONU1 is 10, ONU1 sends an initial registration request message to OLT1. The initial registration request message carries SN of ONU1.
以下对ONU1发送初始注册请求消息的过程进行说明:The following describes the process of ONU1 sending the initial registration request message:
结合图5所示对ONU1发送初始注册请求消息的过程进行说明,其中,图5为本申请实施例提供的ONU的第一种实施例结构示例图。图5所示以ONU1包括两个光模块,即光模块501和光模块502为例,光模块501包括第一发送端口(transport,TX)和第一接收端口(receive,RX),光模块502包括第二TX和第二RX。为形成环形组网,光模块501与OLT1连接,光模块502与ONU2连接。该ONU1还包括分别与光模块501和光模块502连接的业务处理器503。本实施例所示的业务处理器503可以是一个或多个芯片,或一个或多个集成电路。例如,业务处理器503可以是一个或多个现场可编程门阵列(field-programmable gate array,FPGA)、专用集成芯片(application specific integrated circuit,ASIC)、系统芯片(system on chip,SoC)、中央处理器(central processor unit,CPU)、网络处理器(network processor,NP)、数字信号处理电路(digital signal processor,DSP)、微控制器(micro controller unit,MCU),可编程控制器(programmable logic device,PLD)或其它集成芯片,或者上述芯片或者处理器的任意组合等。需明确的是,本实施例以ONU1包括两个光模块为例,本实施例对ONU1所包括的光模块的数量不做限定,例如,ONU1可仅包括同时与OLT1和ONU2连接的光模块,该光模块同时包括第一RX,第一TX,第二RX以及第二TX。又如,ONU1可包括两个以上的光模块,两个以上的光模块中,包括图5所示的光模块501以及光模块502。The process of ONU1 sending the initial registration request message will be described with reference to FIG. 5 , where FIG. 5 is an example structural diagram of the first embodiment of the ONU provided by the embodiment of this application. As shown in Figure 5, ONU1 includes two optical modules, namely optical module 501 and optical module 502. The optical module 501 includes a first transmit port (transport, TX) and a first receive port (receive, RX). The optical module 502 includes 2nd TX and 2nd RX. To form a ring network, the optical module 501 is connected to OLT1, and the optical module 502 is connected to ONU2. The ONU1 also includes a service processor 503 connected to the optical module 501 and the optical module 502 respectively. The service processor 503 shown in this embodiment may be one or more chips, or one or more integrated circuits. For example, the service processor 503 may be one or more field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), system on chips (SoCs), central Processor (central processor unit, CPU), network processor (network processor, NP), digital signal processing circuit (digital signal processor, DSP), microcontroller (micro controller unit, MCU), programmable logic controller (programmable logic device, PLD) or other integrated chips, or any combination of the above chips or processors, etc. It should be noted that in this embodiment, ONU1 includes two optical modules as an example. This embodiment does not limit the number of optical modules included in ONU1. For example, ONU1 may only include optical modules that are connected to OLT1 and ONU2 at the same time. The optical module simultaneously includes a first RX, a first TX, a second RX and a second TX. For another example, ONU1 may include more than two optical modules, and the two or more optical modules include the optical module 501 and the optical module 502 shown in FIG. 5 .
业务处理器503检测到经由光模块501的第一RX接收到第一初始下行数据流,则说明光模块501为与OLT1进行通信的光模块。业务处理器503将所获得到的初始注册请求消息,经由该光模块501的第一TX向OLT1发送,以保证该初始注册请求消息能够成功发送至OLT1。需明确的是,本实施例所示的以ONU1从OLT1接收第一初始下行数据流为例,在其他示例中,ONU1还可从OLT2接收第一初始下行数据流,那么,业务处理器503检测到若经由ONU1的光模块502的第二RX接收到第一初始下行数据流,则说明光模块502为与OLT2进行通信的光模块,则业务处理器503将所获得到的初始注册请求消息,经由该光模块502的第二TX向OLT2发送。When the service processor 503 detects that the first initial downlink data stream is received via the first RX of the optical module 501, it indicates that the optical module 501 is an optical module that communicates with the OLT1. The service processor 503 sends the obtained initial registration request message to OLT1 via the first TX of the optical module 501 to ensure that the initial registration request message can be successfully sent to OLT1. It should be noted that in this embodiment, ONU1 receives the first initial downlink data stream from OLT1 as an example. In other examples, ONU1 may also receive the first initial downlink data stream from OLT2. Then, the service processor 503 detects If the first initial downlink data stream is received through the second RX of the optical module 502 of ONU1, it means that the optical module 502 is an optical module that communicates with OLT2, and the service processor 503 will obtain the initial registration request message. The second TX of the optical module 502 is sent to OLT2.
步骤304、OLT1根据初始注册请求消息获得第三RTT。Step 304: OLT1 obtains the third RTT according to the initial registration request message.
本实施例所示的OLT1根据发送初始下行数据帧的发送时刻,以及接收到初始注册请求消息的接收时刻,计算OLT1和ONU之间的第三RTT。其中,初始下行数据帧为承载所述初始超帧号的下行数据帧。OLT1 shown in this embodiment calculates the third RTT between OLT1 and ONU based on the sending time of sending the initial downlink data frame and the receiving time of receiving the initial registration request message. The initial downlink data frame is a downlink data frame carrying the initial superframe number.
结合图6a所示进行说明,其中,图6a为本申请实施例提供的OLT获得第三RTT的时序示例图。OLT1所发送的初始下行数据帧的发送时刻为发送时刻TS1,在ONU1接收到初始下行数据帧的情况下,ONU1向OLT1发送初始注册请求消息。ONU1发出的初始注册请求消息经由连接在OLT1和ONU1之间的光纤传输时经过一定的延时,导致OLT1在接收时刻TS2接收到该初始注册请求消息。OLT1确定OLT1和ONU1之间的第三RTT为接收时刻TS2-发送时刻TS1。The description will be made with reference to Figure 6a, which is a timing diagram for the OLT to obtain the third RTT provided by the embodiment of the present application. The sending time of the initial downlink data frame sent by OLT1 is the sending time TS1. When ONU1 receives the initial downlink data frame, ONU1 sends an initial registration request message to OLT1. The initial registration request message sent by ONU1 undergoes a certain delay when transmitted via the optical fiber connected between OLT1 and ONU1, causing OLT1 to receive the initial registration request message at the receiving time TS2. OLT1 determines that the third RTT between OLT1 and ONU1 is the reception time TS2 - the transmission time TS1.
可选的,OLT1在接收到初始注册请求消息的情况下,可首先对该初始注册请求消息所携带的ONU1的SN进行鉴权,例如,OLT1可预先配置允许注册的多个SN,若OLT1确定初始注册请求消息所携带的ONU1的SN包括于OLT1预先配置的多个SN中,则OLT1确定允许ONU1注册。 Optionally, when OLT1 receives the initial registration request message, it can first authenticate the SN of ONU1 carried in the initial registration request message. For example, OLT1 can pre-configure multiple SNs that are allowed to be registered. If OLT1 determines If the SN of ONU1 carried in the initial registration request message is included in multiple SNs preconfigured by OLT1, then OLT1 determines to allow ONU1 to register.
步骤305、OLT1向ONU1发送第一下行数据流。Step 305: OLT1 sends the first downstream data stream to ONU1.
本实施例所示的OLT1根据初始注册请求消息所携带的ONU1的SN,为ONU1分配ONU的标识(ID),以完成ONU1注册至OLT1的目的。OLT1为ONU1配置第一下行数据流,该第一下行数据流包括多个下行数据帧,下行数据帧的具体格式的说明请参见图4所示,具体不做赘述。第一下行数据流的下行数据帧的Alloc-ID1字段携带ONU1的标识。ONU1根据包括Alloc-ID1字段的US BWmap确定OLT1为ONU1分配的第一目标时隙。ONU1在上行数据流的第一目标时隙上承载ONU1待发送给OLT1的上行业务。ONU1向OLT1发送该上行数据流以向OLT1发送上行业务。OLT1 shown in this embodiment allocates the ONU identification (ID) to ONU1 according to the SN of ONU1 carried in the initial registration request message, so as to complete the purpose of registering ONU1 to OLT1. OLT1 configures a first downstream data stream for ONU1. The first downstream data stream includes multiple downstream data frames. Please refer to Figure 4 for a description of the specific format of the downstream data frames, which will not be described in detail. The Alloc-ID1 field of the downlink data frame of the first downlink data stream carries the identity of ONU1. ONU1 determines the first target time slot allocated by OLT1 to ONU1 based on the US BWmap including the Alloc-ID1 field. ONU1 carries the uplink service to be sent by ONU1 to OLT1 on the first target time slot of the uplink data stream. ONU1 sends the uplink data stream to OLT1 to send uplink services to OLT1.
步骤301至步骤305说明了与OLT1直接连接的ONU1注册至OLT1的过程,以下以ONU2为例,说明与OLT1间接连接(即OLT1和ONU2之间的连接需要经过ONU1)的ONU,注册至OLT1的过程:Steps 301 to 305 describe the process of registering ONU1 directly connected to OLT1 to OLT1. The following takes ONU2 as an example to explain how an ONU indirectly connected to OLT1 (that is, the connection between OLT1 and ONU2 needs to go through ONU1) registers to OLT1. process:
本实施例中,ONU2注册至OLT1需要满足一个前提条件,即ONU1已成功注册至OLT1,而且ONU2已与ONU1通过光纤成功连接。本实施例所示的第一下行数据流携带OLT1发送给ONU1的下行业务。In this embodiment, ONU2 needs to meet a prerequisite to register with OLT1, that is, ONU1 has successfully registered with OLT1, and ONU2 has been successfully connected to ONU1 through optical fiber. The first downlink data stream shown in this embodiment carries downlink services sent by OLT1 to ONU1.
步骤306、ONU1复制第一下行数据流以获得第二下行数据流。Step 306: ONU1 copies the first downstream data stream to obtain the second downstream data stream.
ONU1经由连接在ONU1和OLT1之间的光纤接收第一下行数据流,ONU1复制该第一下行数据流以获得第二下行数据流,可以理解,第一下行数据流和第二下行数据流所承载的内容完全相同。ONU1 receives the first downstream data stream via the optical fiber connected between ONU1 and OLT1, and ONU1 copies the first downstream data stream to obtain the second downstream data stream. It can be understood that the first downstream data stream and the second downstream data The content carried by the stream is exactly the same.
步骤307、ONU1获得第一下行数据流已承载的第一下行业务。Step 307: ONU1 obtains the first downlink service carried by the first downlink data stream.
ONU1解封装第一下行数据流以获得第一下行数据流已承载的发给ONU1的第一下行业务。ONU1 decapsulates the first downstream data stream to obtain the first downstream service sent to ONU1 that has been carried by the first downstream data stream.
步骤308、ONU1向ONU2发送第二下行数据流。Step 308: ONU1 sends the second downstream data stream to ONU2.
本实施例对步骤308和步骤309之间的执行时序不做限定。This embodiment does not limit the execution timing between step 308 and step 309.
本实施例所示的ONU1复制该第一下行数据流以获得第二下行数据流后,ONU1无需解析该第一下行数据流的情况下,直接向ONU2发送该第二下行数据流,提高了ONU2基于该第二下行数据流注册至OLT1的及时性,降低了ONU2注册至OLT1的时延。After ONU1 in this embodiment copies the first downstream data stream to obtain the second downstream data stream, ONU1 directly sends the second downstream data stream to ONU2 without parsing the first downstream data stream, thus improving This improves the timeliness of ONU2 registering to OLT1 based on the second downstream data flow, and reduces the delay of ONU2 registering to OLT1.
步骤309、ONU2根据第二下行数据流进行超帧同步。Step 309: ONU2 performs superframe synchronization according to the second downstream data stream.
ONU2接收到来自ONU1的第二下行数据流后,利用第二下行数据流所包括的下行数据帧进行超帧同步。第二下行数据流所包括的下行数据帧的结构的说明,请参见图4的说明,具体不做赘述。ONU2根据第二下行数据流进行超帧同步的过程的说明,请参见步骤302所示的ONU1根据第一初始下行数据流进行超帧同步的说明,具体不做赘述。After receiving the second downstream data stream from ONU1, ONU2 uses the downstream data frame included in the second downstream data stream to perform superframe synchronization. For a description of the structure of the downlink data frame included in the second downlink data stream, please refer to the description of Figure 4, and details will not be described again. For a description of the process of ONU2 performing superframe synchronization based on the second downstream data stream, please refer to the description of ONU1 performing superframe synchronization based on the first initial downstream data stream shown in step 302, and details will not be described again.
步骤310、ONU2向ONU1发送注册请求消息。Step 310: ONU2 sends a registration request message to ONU1.
本实施例中,ONU2所接收到的第二下行数据流包括目标下行数据帧,该目标下行数据帧用于承载注册触发消息,ONU2根据该注册触发消息向ONU1发送该注册请求消息。本实施例中,该注册触发消息为目标下行数据帧的帧头所携带的第一目标超帧号。In this embodiment, the second downlink data stream received by ONU2 includes a target downlink data frame. The target downlink data frame is used to carry a registration trigger message. ONU2 sends the registration request message to ONU1 according to the registration trigger message. In this embodiment, the registration trigger message is the first target superframe number carried in the frame header of the target downlink data frame.
具体的,ONU1和ONU2之间可预先约定第一目标超帧号,该第一目标超帧号用于指示ONU2向ONU1发送注册请求消息。ONU2检测到承载该第一目标超帧号的帧头时,向ONU1发送注册请求消息。对第一目标超帧号的说明,请参见步骤303所示的初始超帧号的说明,具体不做赘述。本实施例中,第一目标超帧号和初始超帧号可相同,也可不同,具体在本实施例中不做限定。Specifically, a first target superframe number may be pre-agreed between ONU1 and ONU2, and the first target superframe number is used to instruct ONU2 to send a registration request message to ONU1. When ONU2 detects the frame header carrying the first target superframe number, ONU2 sends a registration request message to ONU1. For the description of the first target superframe number, please refer to the description of the initial superframe number shown in step 303, and details will not be described again. In this embodiment, the first target superframe number and the initial superframe number may be the same or different, and are not specifically limited in this embodiment.
本实施例以第一目标超帧号为10为例,在ONU2接收所接收到的目标下行数据帧的SFC字段2取值为10的情况下,ONU2向ONU1发送注册请求消息,所述注册请求消息携带ONU2的SN。ONU2向ONU1发送注册请求消息的过程的说明,请参见图5对应的ONU1向OLT1发送初始注册请求消息 的说明,具体不做赘述。In this embodiment, the first target superframe number is 10 as an example. When ONU2 receives the value of SFC field 2 of the received target downlink data frame as 10, ONU2 sends a registration request message to ONU1. The registration request The message carries the SN of ONU2. For an explanation of the process of ONU2 sending a registration request message to ONU1, please refer to Figure 5 corresponding to ONU1 sending an initial registration request message to OLT1. The details will not be elaborated.
步骤311、ONU1根据注册请求消息测量第二RTT。Step 311: ONU1 measures the second RTT according to the registration request message.
本实施例所示的ONU1根据发送目标下行数据帧的第一时刻,以及接收到注册请求消息的第二时刻,计算ONU1和ONU2之间的第二RTT。其中,目标下行数据帧为承载所述第一目标超帧号的下行数据帧。ONU1 shown in this embodiment calculates the second RTT between ONU1 and ONU2 based on the first time of sending the target downlink data frame and the second time of receiving the registration request message. The target downlink data frame is a downlink data frame carrying the first target superframe number.
结合图6b所示进行说明,其中,图6b为本申请实施例提供的OLT获得第二RTT的时序示例图。The description will be made with reference to Figure 6b, which is a timing example diagram for the OLT to obtain the second RTT provided by the embodiment of the present application.
OLT1向ONU1发送第一下行数据流(具体如步骤305所示),ONU1向ONU2发送第二下行数据流,而且ONU1在发送时刻TL1向ONU2发送第二下行数据流所包括的目标下行数据帧(具体如步骤306至步骤310所示)。在ONU2接收到目标下行数据帧的情况下,ONU2向ONU1发送注册请求消息。ONU2发出的注册请求消息经由连接在ONU1和ONU2之间的光纤传输时经过一定的延时,导致ONU1在接收时刻TL2接收到该注册请求消息。ONU1确定ONU1和ONU2之间的第二RTT为接收时刻TL2-发送时刻TL1。OLT1 sends the first downlink data stream to ONU1 (specifically shown in step 305), ONU1 sends the second downlink data stream to ONU2, and ONU1 sends the target downlink data frame included in the second downlink data stream to ONU2 at the sending time TL1 (Specifically shown in steps 306 to 310). When ONU2 receives the target downlink data frame, ONU2 sends a registration request message to ONU1. The registration request message sent by ONU2 undergoes a certain delay when transmitted via the optical fiber connected between ONU1 and ONU2, causing ONU1 to receive the registration request message at the reception time TL2. ONU1 determines that the second RTT between ONU1 and ONU2 is the reception time TL2 - the transmission time TL1.
可选的,ONU1在接收到注册请求消息的情况下,可首先对该注册请求消息所携带的ONU2的SN进行鉴权,例如,ONU1可预先配置允许注册的多个SN,若ONU1确定注册请求消息所携带的ONU2的SN包括于ONU1预先配置的多个SN中,则ONU1确定允许ONU2注册。Optionally, when ONU1 receives the registration request message, it can first authenticate the SN of ONU2 carried in the registration request message. For example, ONU1 can pre-configure multiple SNs that are allowed to register. If ONU1 determines the registration request If the SN of ONU2 carried in the message is included in multiple SNs preconfigured by ONU1, then ONU1 determines to allow ONU2 to register.
步骤312、ONU1向OLT1发送上行数据流。Step 312: ONU1 sends the upstream data stream to OLT1.
本实施例中,ONU1获得第一下行数据流的US BWmap字段所指示的第一目标时隙,可以理解,该第一目标时隙为OLT1为ONU1分配的,仅被ONU1所占用的上行时隙。ONU1在该第一目标时隙上承载ONU1的上行业务。可以理解,ONU1在OLT1指示的第一目标时隙上,向OLT1发送该ONU1的上行业务。In this embodiment, ONU1 obtains the first target time slot indicated by the US BWmap field of the first downstream data stream. It can be understood that the first target time slot is the upstream time slot allocated by OLT1 for ONU1 and is only occupied by ONU1. gap. ONU1 carries the uplink service of ONU1 on the first target time slot. It can be understood that ONU1 sends the uplink service of ONU1 to OLT1 on the first target time slot indicated by OLT1.
本实施例所示的第一目标时隙承载ONU1需要发送给OLT1的上行业务,而且该第一目标时隙还携带第二RTT以及来自ONU2的注册请求消息。可以理解,本实施例所示的向OLT1发送用于ONU2注册的第二RTT以及注册请求消息的过程中,无需OLT1对ONU2分配占用独立时隙资源的开窗。ONU2通过OLT1为ONU1分配的第一目标时隙,向OLT1发送注册请求消息以及第二RTT。The first target time slot shown in this embodiment carries the uplink service that ONU1 needs to send to OLT1, and the first target time slot also carries the second RTT and the registration request message from ONU2. It can be understood that in the process of sending the second RTT for ONU2 registration and the registration request message to OLT1 as shown in this embodiment, there is no need for OLT1 to allocate windows occupying independent time slot resources to ONU2. ONU2 sends the registration request message and the second RTT to OLT1 through the first target time slot allocated by OLT1 to ONU1.
本实施例所示的ONU1可通过物理层操作维护管理(physical layer operation,administration and maintenance,PLOAM)消息或管理控制接口(ONT/ONU management and control interface,OMCI)消息发送第二RTT以及来自ONU2的注册请求消息。ONU1 shown in this embodiment can send the second RTT and the second RTT from ONU2 through physical layer operation, administration and maintenance (PLOAM) messages or management control interface (ONT/ONU management and control interface, OMCI) messages. Registration request message.
步骤313、OLT1根据上行数据流获得第一RTT。Step 313: OLT1 obtains the first RTT according to the upstream data stream.
本实施例中,OLT1接收到上行数据流的情况下,OLT1能够从上行数据流中获得携带ONU2的SN的注册请求消息以及第二RTT,由上述步骤304所示可知,OLT1已获得OLT1和ONU1之间的第三RTT。本实施例所示的OLT1确定OLT1,ONU1以及ONU2处于依次连接的状态,而且OLT1已确定OLT1和ONU1之间的第三RTT,ONU1与ONU2之间的第二RTT的情况下,OLT1即可确定OLT1与ONU2之间的第一RTT=第二RTT+第三RTT。In this embodiment, when OLT1 receives the upstream data stream, OLT1 can obtain the registration request message carrying the SN of ONU2 and the second RTT from the upstream data stream. As shown in the above step 304, OLT1 has obtained OLT1 and ONU1 between the third RTT. OLT1 shown in this embodiment determines that OLT1, ONU1 and ONU2 are connected in sequence, and OLT1 has determined the third RTT between OLT1 and ONU1 and the second RTT between ONU1 and ONU2, OLT1 can determine The first RTT between OLT1 and ONU2 = the second RTT + the third RTT.
由此可知,本实施例所示的OLT1无需直接测量OLT1与ONU2之间的RTT,而是根据OLT1与ONU1之间的第三RTT,ONU1与ONU2之间的第二RTT,获得OLT1与ONU2之间的第一RTT。It can be seen from this that OLT1 shown in this embodiment does not need to directly measure the RTT between OLT1 and ONU2, but obtains the relationship between OLT1 and ONU2 based on the third RTT between OLT1 and ONU1 and the second RTT between ONU1 and ONU2. The first RTT between.
步骤314、OLT1向ONU1发送第六下行数据流。Step 314: OLT1 sends the sixth downstream data stream to ONU1.
步骤315、ONU1向ONU2发送第七下行数据流。Step 315: ONU1 sends the seventh downstream data stream to ONU2.
本实施例所示的OLT1根据注册请求消息所携带的ONU2的SN,为ONU2分配ONU2的ID,OLT1 为ONU1和ONU2配置该第六下行数据流,该第六下行数据流包括多个下行数据帧,下行数据帧的具体格式的说明请参见图4所示,具体不做赘述。可以理解,第六下行数据流的US BWmap的Alloc-ID1字段携带ONU1的标识,ONU1根据携带Alloc-ID1的Allocation Structure1获得ONU1所占用的第一目标时隙。OLT1 shown in this embodiment allocates the ID of ONU2 to ONU2 based on the SN of ONU2 carried in the registration request message. OLT1 The sixth downstream data stream is configured for ONU1 and ONU2. The sixth downstream data stream includes multiple downlink data frames. Please refer to Figure 4 for a description of the specific format of the downlink data frames, which will not be described in detail. It can be understood that the Alloc-ID1 field of the US BWmap of the sixth downstream data stream carries the identifier of ONU1, and ONU1 obtains the first target time slot occupied by ONU1 according to the Allocation Structure1 carrying Alloc-ID1.
ONU1接收到第六下行数据流后,复制该第六下行数据流以获得第七下行数据流。ONU1向ONU2发送该第七下行数据流。同样的,第七下行数据流的US BWmap的Alloc-ID2字段携带ONU2的标识,ONU2根据携带Alloc-ID2的Allocation Structure2获得ONU2所占用的第二目标时隙,那么,ONU2能够通过该第二目标时隙向OLT1发送ONU2的上行业务。After receiving the sixth downstream data stream, ONU1 copies the sixth downstream data stream to obtain the seventh downstream data stream. ONU1 sends the seventh downstream data stream to ONU2. Similarly, the Alloc-ID2 field of the US BWmap of the seventh downstream data stream carries the identity of ONU2. ONU2 obtains the second target time slot occupied by ONU2 based on the Allocation Structure2 carrying Alloc-ID2. Then, ONU2 can pass the second target The time slot sends the uplink service of ONU2 to OLT1.
具体的,OLT1经由ONU1的转发,向ONU2发送该第七下行数据流,ONU2接收第七下行数据流的过程的说明,请参见ONU2接收第二下行数据流的过程的说明,具体不做赘述。Specifically, OLT1 sends the seventh downstream data stream to ONU2 through the forwarding of ONU1. For a description of the process of ONU2 receiving the seventh downstream data stream, please refer to the description of the process of ONU2 receiving the second downstream data stream, which will not be described again.
本实施例以OLT1执行待注册的ONU的注册流程为例,在其他示例中,也可由OLT2执行待注册的ONU的注册过程,OLT2执行待注册的ONU的注册流程的说明,请参见本实施例所示的OLT1执行待注册的ONU的注册流程,具体不做赘述。In this embodiment, OLT1 executes the registration process of the ONU to be registered as an example. In other examples, OLT2 may also execute the registration process of the ONU to be registered. For the description of OLT2 executing the registration process of the ONU to be registered, please refer to this embodiment. The OLT1 shown performs the registration process of the ONU to be registered, and the details will not be described in detail.
本实施例以环形组网仅包括OLT1,ONU1,ONU2以及OLT2为例,本实施例对环形组网所包括的ONU的数量不做限定,在其他示例中,环形组网还可包括更多数量的ONU。在环形组网包括依次连接在OLT1和OLT2之间的多个ONU的情况下,OLT1可创建如下表1所示的对应关系:In this embodiment, the ring network only includes OLT1, ONU1, ONU2 and OLT2 as an example. This embodiment does not limit the number of ONUs included in the ring network. In other examples, the ring network can also include more numbers. ONU. In the case of a ring network including multiple ONUs connected in sequence between OLT1 and OLT2, OLT1 can create the corresponding relationship as shown in Table 1 below:
表1
Table 1
例如,在OLT1测量了OLT1和ONU1之间的第三RTT的情况下,OLT1创建该表1所示的对应关系,该表1所示的对应关系包括“OLT1—ONU1”和第三RTT的对应关系,可以理解,OLT1基于该表1所示的对应关系,能够确定OLT1和ONU1之间的RTT为第三RTT。同样的,在OLT1获得到OLT1和ONU2之间的第一RTT的情况下,表1所示的对应关系包括“OLT1—ONU2”和第一RTT的对应关系。若环形组网连接在ONU2和OLT2之间的ONU4需要注册至OLT1,则已成功注册的ONU2可负责测量ONU2和ONU3之间的第四RTT,其中,ONU2测量ONU2和ONU3之间的第四RTT的过程的说明,请参见上述所示的ONU1测量ONU1和ONU2之间的第二RTT的过程的说明,具体不做赘述。ONU3复用ONU2占用的第二目标时隙向OLT1发送ONU3的SN以及第四RTT。OLT1根据表1所示的对应关系,能够确定OLT1和ONU2之间的RTT为第一RTT,则OLT1即可确定OLT1和ONU3之间的第五RTT=第一RTT+第四RTT,OLT获得第五RTT的过程的说明,请参见上述所示的OLT1获得第一RTT的过程的说明,具体不做赘述。可以理解,OLT1基于所创建的表1所示的对应关系,能够实现对环形组网出现的待注册的ONU的注册。需明确的是,本示例以ONU2负责测量ONU2和ONU3之间的RTT为例,在其他示例中,也可由ONU1负责测量ONU1和ONU3之间的RTT,ONU2负责转发ONU1和ONU3之间用于注册的数据,ONU1测量ONU1和ONU3之间的RTT的过程的说明,请参见ONU1测量ONU1和ONU2之间RTT的过程的说明,具体不做赘述。For example, when OLT1 measures the third RTT between OLT1 and ONU1, OLT1 creates the correspondence shown in Table 1. The correspondence shown in Table 1 includes the correspondence between "OLT1—ONU1" and the third RTT. relationship, it can be understood that based on the corresponding relationship shown in Table 1, OLT1 can determine that the RTT between OLT1 and ONU1 is the third RTT. Similarly, when OLT1 obtains the first RTT between OLT1 and ONU2, the correspondence relationship shown in Table 1 includes the correspondence relationship between "OLT1-ONU2" and the first RTT. If ONU4 connected between ONU2 and OLT2 in the ring network needs to register with OLT1, ONU2 that has successfully registered can be responsible for measuring the fourth RTT between ONU2 and ONU3. Among them, ONU2 measures the fourth RTT between ONU2 and ONU3 For the description of the process, please refer to the description of the process of ONU1 measuring the second RTT between ONU1 and ONU2 shown above. The details will not be described again. ONU3 multiplexes the second target time slot occupied by ONU2 to send the SN of ONU3 and the fourth RTT to OLT1. According to the corresponding relationship shown in Table 1, OLT1 can determine that the RTT between OLT1 and ONU2 is the first RTT, then OLT1 can determine the fifth RTT between OLT1 and ONU3 = first RTT + fourth RTT, and OLT obtains the fifth For the description of the RTT process, please refer to the description of the process of OLT1 obtaining the first RTT shown above, and the details will not be described again. It can be understood that based on the created correspondence relationship shown in Table 1, OLT1 can register the ONU to be registered in the ring network. It should be noted that in this example, ONU2 is responsible for measuring the RTT between ONU2 and ONU3. In other examples, ONU1 can also be responsible for measuring the RTT between ONU1 and ONU3, and ONU2 is responsible for forwarding the RTT between ONU1 and ONU3 for registration. For the data and description of the process of ONU1 measuring the RTT between ONU1 and ONU3, please refer to the description of the process of ONU1 measuring the RTT between ONU1 and ONU2. The details will not be repeated.
采用本实施例所示的方法,OLT1基于免开窗的方式测量OLT1与各个ONU之间的RTT,例如本实施例所示的OLT1无需基于开窗即可测量OLT1与ONU1之间的第三RTT,OLT1也无需基于开窗的方式测量OLT1与ONU2之间的第二RTT。因OLT1无需为测量RTT分配占用独立时隙资源的开窗, 即可实现OLT1与各ONU之间的RTT,降低了时隙资源的浪费,提高了时隙资源的利用率。Using the method shown in this embodiment, OLT1 measures the RTT between OLT1 and each ONU without opening a window. For example, the OLT1 shown in this embodiment can measure the third RTT between OLT1 and ONU1 without opening a window. , OLT1 does not need to measure the second RTT between OLT1 and ONU2 based on the windowing method. Because OLT1 does not need to allocate windows occupying independent time slot resources for measuring RTT, The RTT between OLT1 and each ONU can be realized, which reduces the waste of time slot resources and improves the utilization rate of time slot resources.
环形组网中的下游ONU(例如ONU2)能够通过OLT1为上游ONU(例如ONU1)指示的时隙,向OLT1发送注册请求消息,下游ONU无需占用独立的时隙资源向OLT1发送注册请求消息。在环形组网所包括的N个ONU已注册至OLT1的情况下,即便待注册的ONU需要注册至OLT1,待注册的ONU1无需占用独立的时隙实现注册,则N个已注册的ONU分别占用的N个时隙的位置不会出现延时,保证了已注册的ONU的上行业务的及时传输,降低时延抖动性,能够适配业务传输及时性要求高的业务。The downstream ONU (for example, ONU2) in the ring network can send a registration request message to OLT1 through the time slot indicated by OLT1 for the upstream ONU (for example, ONU1). The downstream ONU does not need to occupy independent time slot resources to send the registration request message to OLT1. In the case where N ONUs included in the ring network have been registered to OLT1, even if the ONU to be registered needs to be registered to OLT1, the ONU1 to be registered does not need to occupy an independent time slot to register, then the N registered ONUs will occupy There will be no delay at the position of the N time slots, ensuring the timely transmission of the registered ONU's uplink services, reducing the delay jitter, and being able to adapt to services with high requirements on timeliness of service transmission.
图3所示的实施例,ONU1测量ONU1和ONU2之间的第二RTT,OLT1根据第二RTT以及第三RTT测量第一RTT,图6b所示的实施例中,由OLT1直接测量该第一RTT,其中,图7为本申请实施例提供的注册方法的第二种步骤流程图。In the embodiment shown in Figure 3, ONU1 measures the second RTT between ONU1 and ONU2, and OLT1 measures the first RTT based on the second RTT and the third RTT. In the embodiment shown in Figure 6b, OLT1 directly measures the first RTT. RTT, where Figure 7 is a second step flow chart of the registration method provided by the embodiment of the present application.
步骤701、OLT1向ONU1发送第一初始下行数据流。Step 701: OLT1 sends the first initial downlink data stream to ONU1.
步骤702、ONU1根据第一初始下行数据流进行超帧同步。Step 702: ONU1 performs superframe synchronization according to the first initial downlink data stream.
步骤703、ONU1向OLT1发送初始注册请求消息。Step 703: ONU1 sends an initial registration request message to OLT1.
步骤704、OLT1根据初始注册请求消息获得第三RTT。Step 704: OLT1 obtains the third RTT according to the initial registration request message.
步骤705、OLT1向ONU1发送第一下行数据流。Step 705: OLT1 sends the first downstream data stream to ONU1.
步骤706、ONU1复制第一下行数据流以获得第二下行数据流。Step 706: ONU1 copies the first downstream data stream to obtain the second downstream data stream.
步骤707、ONU1获得第一下行数据流已承载的第一下行业务。Step 707: ONU1 obtains the first downlink service carried by the first downlink data stream.
步骤708、ONU1向ONU2发送第二下行数据流。Step 708: ONU1 sends the second downstream data stream to ONU2.
步骤709、ONU2根据第二下行数据流进行超帧同步。Step 709: ONU2 performs superframe synchronization according to the second downstream data stream.
步骤710、ONU2向ONU1发送注册请求消息。Step 710: ONU2 sends a registration request message to ONU1.
本实施例所示的步骤701至步骤710的执行过程的说明,请参见图3对应的步骤301至步骤310的执行过程的说明,具体不做赘述。For description of the execution process of steps 701 to 710 shown in this embodiment, please refer to the description of the execution process of step 301 to step 310 corresponding to Figure 3, and details will not be described again.
步骤711、ONU1向OLT1发送上行数据流。Step 711: ONU1 sends the upstream data stream to OLT1.
本实施例中,ONU1获得第一下行数据流的US BWmap字段所指示的第一目标时隙,该第一目标时隙的具体说明,请参见图3对应的步骤312所示,具体不做赘述。本实施例所示的ONU1在该第一目标时隙上承载ONU1的上行业务。ONU1还在该第一目标时隙上承载来自ONU2的注册请求消息。本实施例中,ONU1无需测量ONU1和ONU2之间的第二RTT,则ONU1直接通过第一目标时隙向OLT1发送来自ONU2的注册请求消息。In this embodiment, ONU1 obtains the first target time slot indicated by the US BWmap field of the first downstream data stream. For a specific description of the first target time slot, please refer to the corresponding step 312 in Figure 3. The details are not included. Repeat. ONU1 shown in this embodiment carries the uplink service of ONU1 on the first target time slot. ONU1 also carries the registration request message from ONU2 on the first target time slot. In this embodiment, ONU1 does not need to measure the second RTT between ONU1 and ONU2, so ONU1 directly sends the registration request message from ONU2 to OLT1 through the first target time slot.
步骤712、OLT1根据上行数据流获得第一RTT。Step 712: OLT1 obtains the first RTT according to the upstream data stream.
OLT1根据上行数据流所包括的ONU2的注册请求消息,测量OLT1和ONU2之间的第一RTT。本实施例所示的OLT1测量第一RTT的过程的说明,请参见OLT1测量第三RTT的过程的说明,具体不做赘述。OLT1 measures the first RTT between OLT1 and ONU2 according to the registration request message of ONU2 included in the upstream data stream. For description of the process of OLT1 measuring the first RTT shown in this embodiment, please refer to the description of the process of OLT1 measuring the third RTT, and details will not be described again.
步骤713、OLT1向ONU1发送第六下行数据流。Step 713: OLT1 sends the sixth downstream data stream to ONU1.
步骤714、ONU1向ONU2发送第七下行数据流。Step 714: ONU1 sends the seventh downstream data stream to ONU2.
本实施例所示的步骤713至步骤714的执行过程的说明,请参见图3对应的步骤314至步骤315所示,具体执行过程不做赘述。For an explanation of the execution process of steps 713 to 714 shown in this embodiment, please refer to the corresponding steps 314 to 315 shown in Figure 3, and the specific execution process will not be described again.
采用本实施例所示的方法,由OLT1直接测量OLT1与ONU2之间的第一RTT,提高了所测量的第一RTT的准确性。而且OLT1在测量第一RTT的过程中,无需为ONU2分配独立的时隙,降低了时隙资源的浪费,提高了时隙资源的利用率,降低了业务传输的时延抖动。 Using the method shown in this embodiment, OLT1 directly measures the first RTT between OLT1 and ONU2, which improves the accuracy of the measured first RTT. Moreover, in the process of measuring the first RTT, OLT1 does not need to allocate independent time slots to ONU2, which reduces the waste of time slot resources, improves the utilization of time slot resources, and reduces the delay jitter of service transmission.
图3以及图7所示的实施例,OLT1基于免开窗的方式测量OLT1和ONU1之间的RTT。图8所示的实施例,OLT1可基于开窗的方式测量OLT1和ONU1之间的RTT,而ONU1可基于开窗的方式测量ONU1和ONU2之间的RTT。其中,图8为本申请实施例提供的注册方法的第三种步骤流程图。In the embodiments shown in Figure 3 and Figure 7, OLT1 measures the RTT between OLT1 and ONU1 based on a window-free method. In the embodiment shown in Figure 8, OLT1 can measure the RTT between OLT1 and ONU1 based on a windowing method, and ONU1 can measure the RTT between ONU1 and ONU2 based on a windowing method. Among them, FIG. 8 is a third step flow chart of the registration method provided by the embodiment of the present application.
步骤801、OLT1向ONU1发送第二初始下行数据流。Step 801: OLT1 sends the second initial downlink data stream to ONU1.
本实施例以与OLT1直接连接的ONU1尚未注册为例,则首先说明ONU1注册至OLT1上的过程:本实施例所示的第二初始下行数据流用于ONU1注册至OLT1。第二初始下行数据流包括一个或多个连续的下行数据帧,下行数据帧的结构可参见图4所示,具体不做赘述。本实施例所示的第二初始下行数据流的US BWmap字段已承载初始注册触发消息,所述初始注册触发消息用于指示上行数据流所包括的发现时间窗的起止时隙。This embodiment takes as an example that ONU1, which is directly connected to OLT1 and has not yet registered, first describes the process of ONU1 registering on OLT1: the second initial downstream data flow shown in this embodiment is used for ONU1 to register on OLT1. The second initial downlink data stream includes one or more continuous downlink data frames. The structure of the downlink data frames can be seen in Figure 4 and will not be described in detail. The US BWmap field of the second initial downlink data stream shown in this embodiment has carried an initial registration trigger message, and the initial registration trigger message is used to indicate the start and end time slots of the discovery time window included in the uplink data stream.
步骤802、ONU1根据第二初始下行数据流进行超帧同步。Step 802: ONU1 performs superframe synchronization according to the second initial downlink data stream.
本实施例所示的步骤802的执行过程的说明,请参见图3对应的步骤302所示,具体不做赘述。For an explanation of the execution process of step 802 shown in this embodiment, please refer to the corresponding step 302 shown in Figure 3, and details will not be described again.
步骤803、ONU1向OLT1发送初始注册请求消息。Step 803: ONU1 sends an initial registration request message to OLT1.
本实施例中,若ONU1需要注册至OLT1,则ONU1根据第二初始下行数据流的初始注册触发消息的指示,在上行数据流的发现时间窗上承载初始注册请求消息,对初始注册请求消息的说明,请参见图3对应的步骤303所示,具体不做赘述。In this embodiment, if ONU1 needs to register with OLT1, ONU1 carries the initial registration request message in the discovery time window of the upstream data stream according to the instructions of the initial registration trigger message of the second initial downstream data stream. For instructions, please refer to step 303 corresponding to Figure 3, and details will not be repeated.
步骤804、OLT1向ONU1发送第三初始下行数据流。Step 804: OLT1 sends the third initial downlink data stream to ONU1.
OLT1通过发现时间窗获得ONU1的初始注册请求消息,则OLT1为ONU1分配ONU1的ID,并向ONU1发送承载ONU1的ID的第三初始下行数据流。本实施例所示的第三初始下行数据流包括一个或多个连续的下行数据帧,下行数据帧的帧格式请参见图4所示,具体不做赘述。本实施例所示的第三初始下行数据流所包括的US BWmap字段已承载第一初始测量消息,所述第一初始测量消息用于指示上行数据流所包括的测距时间窗的起止时隙。OLT1 obtains the initial registration request message of ONU1 through the discovery time window, then OLT1 allocates the ID of ONU1 to ONU1, and sends the third initial downstream data stream carrying the ID of ONU1 to ONU1. The third initial downlink data stream shown in this embodiment includes one or more continuous downlink data frames. Please refer to Figure 4 for the frame format of the downlink data frames, and details will not be described again. The US BWmap field included in the third initial downlink data stream shown in this embodiment has carried the first initial measurement message. The first initial measurement message is used to indicate the start and end time slots of the ranging time window included in the uplink data stream. .
步骤805、ONU1向OLT1发送第二初始测量消息。Step 805: ONU1 sends the second initial measurement message to OLT1.
本实施例中,ONU1接收到第三初始下行数据流的情况下,ONU1能够根据第三初始下行数据流的US BWmap字段获得测距时间窗。ONU1在上行数据流的测距时间窗上承载第二初始测量消息。In this embodiment, when ONU1 receives the third initial downlink data stream, ONU1 can obtain the ranging time window based on the US BWmap field of the third initial downlink data stream. ONU1 carries the second initial measurement message in the ranging time window of the upstream data stream.
步骤806、OLT1接收测距时间窗已承载的第二初始测量消息。Step 806: OLT1 receives the second initial measurement message carried in the ranging time window.
步骤807、OLT1根据第一初始测量消息和第二初始测量消息测量第三RTT。Step 807: OLT1 measures the third RTT according to the first initial measurement message and the second initial measurement message.
本实施例所示的OLT1已获得发送该第一初始测量消息的发送时刻TJ1,OLT1还能够获得接收第二初始测量消息的接收时刻TJ2,则OLT1确定第三RTT=接收时刻TJ2-发送时刻TJ1。OLT1 shown in this embodiment has obtained the sending time TJ1 for sending the first initial measurement message, and OLT1 can also obtain the receiving time TJ2 for receiving the second initial measurement message. Then OLT1 determines that the third RTT = receiving time TJ2 - sending time TJ1 .
可选的,OLT1在接收到初始注册请求消息的情况下,可首先对该初始注册请求消息所携带的ONU1的SN进行鉴权,OLT1鉴权初始注册请求消息的过程的说明,请参见图3对应的实施例的说明,具体不做赘述。Optionally, when OLT1 receives the initial registration request message, it can first authenticate the SN of ONU1 carried in the initial registration request message. For an explanation of the process of OLT1 authenticating the initial registration request message, see Figure 3 The details of the corresponding embodiments will not be described again.
步骤808、OLT1向ONU1发送第三下行数据流。Step 808: OLT1 sends the third downstream data stream to ONU1.
OLT1为ONU1配置第三下行数据流,该第三下行数据流包括多个下行数据帧,下行数据帧的具体格式的说明请参见图4所示,具体不做赘述。第三下行数据流的下行数据帧的Alloc-ID1字段携带ONU1的标识。ONU1根据包括Alloc-ID1字段的US BWmap确定OLT1为ONU1分配的第一目标时隙,对第一目标时隙的说明,请参见图3对应的实施例,具体不做赘述。OLT1 configures a third downstream data stream for ONU1. The third downstream data stream includes multiple downlink data frames. Please refer to Figure 4 for a description of the specific format of the downlink data frames, which will not be described in detail. The Alloc-ID1 field of the downstream data frame of the third downstream data stream carries the identifier of ONU1. ONU1 determines the first target time slot allocated by OLT1 to ONU1 based on the US BWmap including the Alloc-ID1 field. For the description of the first target time slot, please refer to the corresponding embodiment in Figure 3, and the details will not be repeated.
步骤801至步骤808说明了与OLT1直接连接的ONU1注册至OLT1的过程,以下以ONU2为例, 说明与OLT1间接连接(即OLT1和ONU2之间的连接需要经过ONU1)的ONU,注册至OLT1的过程进行说明:Steps 801 to 808 describe the process of registering ONU1 directly connected to OLT1 to OLT1. The following takes ONU2 as an example. Describe the process of registering to OLT1 for an ONU that is indirectly connected to OLT1 (that is, the connection between OLT1 and ONU2 needs to go through ONU1):
本实施例中,ONU2注册至OLT1需要满足一个前提条件,即ONU1已成功注册至OLT1,而且ONU2已与ONU1成功连接。本实施例所示的第一下行数据流携带OLT1发送给ONU1的下行业务。In this embodiment, ONU2 needs to meet a prerequisite to register with OLT1, that is, ONU1 has successfully registered with OLT1, and ONU2 has successfully connected with ONU1. The first downlink data stream shown in this embodiment carries downlink services sent by OLT1 to ONU1.
步骤809、ONU1复制第三下行数据流以获得第四下行数据流。Step 809: ONU1 copies the third downstream data stream to obtain the fourth downstream data stream.
ONU1经由连接在ONU1和OLT1之间的光纤接收第三下行数据流,ONU1复制该第三下行数据流以获得第四下行数据流,可以理解,第三下行数据流和第四下行数据流所承载的内容完全相同。ONU1 receives the third downstream data stream via the optical fiber connected between ONU1 and OLT1, and ONU1 copies the third downstream data stream to obtain the fourth downstream data stream. It can be understood that the third downstream data stream and the fourth downstream data stream carry The content is exactly the same.
步骤810、ONU1获得第三下行数据流已承载的第一下行业务。Step 810: ONU1 obtains the first downlink service carried by the third downlink data stream.
ONU1解封装第三下行数据流以获得第三下行数据流已承载的发给ONU1的第一下行业务。ONU1 decapsulates the third downstream data stream to obtain the first downstream service sent to ONU1 that has been carried by the third downstream data stream.
步骤811、ONU1向ONU2发送第五下行数据流。Step 811: ONU1 sends the fifth downstream data stream to ONU2.
本实施例对步骤810和步骤811之间的执行时序不做限定。This embodiment does not limit the execution timing between step 810 and step 811.
本实施例所示的ONU1在复制后的第四下行数据流的US BWmap字段中增加注册触发消息以获得第五下行数据流,所述注册触发消息用于指示ONU2发送注册请求消息,其中,注册请求消息为ONU2的SN。可选的,本实施例所示的ONU2可在接收到注册触发消息的情况下,即向ONU1发送注册请求消息,还可选的,该注册触发消息还可指示发现窗的起止时隙,ONU2在注册触发消息所指示的发现窗的起止时隙内,向ONU1发送注册请求消息。ONU1 shown in this embodiment adds a registration trigger message to the US BWmap field of the copied fourth downstream data stream to obtain the fifth downstream data stream. The registration trigger message is used to instruct ONU2 to send a registration request message, where, registration The request message is the SN of ONU2. Optionally, ONU2 shown in this embodiment can send a registration request message to ONU1 when receiving the registration trigger message. Optionally, the registration trigger message can also indicate the start and end time slots of the discovery window. ONU2 Within the start and end time slots of the discovery window indicated by the registration trigger message, a registration request message is sent to ONU1.
本实施例以ONU1在第四下行数据流中,增设注册触发消息以获得第五下行数据流为例,在其他示例中,该注册触发消息也可由OLT1设置在第三下行数据流中,具体在本实施例中不做限定。In this embodiment, ONU1 adds a registration trigger message in the fourth downstream data stream to obtain the fifth downstream data stream as an example. In other examples, the registration trigger message can also be set by OLT1 in the third downstream data stream. Specifically, There are no limitations in this embodiment.
步骤812、ONU2根据第五下行数据流进行超帧同步。Step 812: ONU2 performs superframe synchronization according to the fifth downstream data stream.
步骤813、ONU2向ONU1发送注册请求消息。Step 813: ONU2 sends a registration request message to ONU1.
本实施例中,若ONU2需要注册至OLT1,则ONU2根据第五下行数据流的注册触发消息的指示,向ONU1发送注册请求消息,对注册请求消息的说明,请参见图3对应的步骤303所示,具体不做赘述。In this embodiment, if ONU2 needs to register with OLT1, ONU2 sends a registration request message to ONU1 according to the instruction of the registration trigger message of the fifth downstream data flow. For the description of the registration request message, please refer to step 303 corresponding to Figure 3. shown and will not be described in details.
步骤814、ONU1向ONU2发送第一测量消息。Step 814: ONU1 sends the first measurement message to ONU2.
步骤815、ONU1接收来自ONU2的第二测量消息。Step 815: ONU1 receives the second measurement message from ONU2.
步骤816、ONU1根据第一测量消息以及第二测量消息测量第二RTT。Step 816: ONU1 measures the second RTT according to the first measurement message and the second measurement message.
本实施例所示的ONU1根据第一测量消息以及第二测量消息测量第二RTT的过程的说明,请参见步骤807所示的OLT1根据第一测量消息以及第二测量消息测量第三RTT的过程的说明,具体不做赘述。可以理解,本实施例所示的ONU1已获得发送该第一测量消息的第三时刻TK1,ONU1还能够获得接收到来自ONU2的第二测量消息的第四时刻TK2,则ONU1确定第二RTT=第四时刻TK2-第三时刻TK1。For an explanation of the process of ONU1 measuring the second RTT based on the first measurement message and the second measurement message shown in this embodiment, please refer to the process of OLT1 measuring the third RTT based on the first measurement message and the second measurement message shown in step 807. The details will not be elaborated. It can be understood that ONU1 shown in this embodiment has obtained the third time TK1 for sending the first measurement message, and ONU1 can also obtain the fourth time TK2 for receiving the second measurement message from ONU2. Then ONU1 determines that the second RTT= The fourth time TK2-the third time TK1.
可选的,ONU1在接收到注册请求消息的情况下,可首先对该注册请求消息所携带的ONU2的SN进行鉴权,ONU1鉴权注册请求消息的过程的说明,请参见图3对应的实施例的说明,具体不做赘述。Optionally, when ONU1 receives the registration request message, it can first authenticate the SN of ONU2 carried in the registration request message. For an explanation of the process of ONU1 authenticating the registration request message, please refer to the corresponding implementation in Figure 3. The description of the example will not be repeated in details.
步骤817、ONU1向OLT1发送上行数据流。Step 817: ONU1 sends the upstream data stream to OLT1.
步骤818、OLT1根据上行数据流获得第一RTT。Step 818: OLT1 obtains the first RTT according to the upstream data stream.
步骤819、OLT1向ONU1发送第六下行数据流。 Step 819: OLT1 sends the sixth downstream data stream to ONU1.
步骤820、ONU1向ONU2发送第七下行数据流。Step 820: ONU1 sends the seventh downstream data stream to ONU2.
本实施例所示的步骤817至步骤820的执行过程的说明,请参见图3对应的步骤312至315的执行过程的说明,具体不做赘述。For a description of the execution process of steps 817 to 820 shown in this embodiment, please refer to the description of the execution process of steps 312 to 315 corresponding to Figure 3, and details will not be described again.
若本实施例所示的环形组网包括两个以上的ONU,OLT测量与每个ONU之间的RTT的过程,请参见图3对应的表1所示的说明,具体不做赘述。If the ring network shown in this embodiment includes more than two ONUs, for the process of OLT measuring the RTT between each ONU, please refer to the description shown in Table 1 corresponding to Figure 3, and the details will not be described again.
采用本实施例所示的方法,OLT1基于开窗的方式测量OLT1与ONU1之间的RTT,ONU1基于开窗的方式测量ONU1与ONU2之间的RTT。若环形组网中存在待注册的ONU的情况下,能够保证待注册的ONU的及时注册。Using the method shown in this embodiment, OLT1 measures the RTT between OLT1 and ONU1 based on the windowing method, and ONU1 measures the RTT between ONU1 and ONU2 based on the windowing method. If there are ONUs to be registered in the ring network, timely registration of the ONUs to be registered can be guaranteed.
图8所示的实施例以ONU1基于开窗的方式,测量ONU1和ONU2之间的第二RTT,ONU1再向OLT1发送该第二RTT,以使OLT1根据该第二RTT以及ONU2的注册请求消息,获得第一RTT为例。在其他示例中,ONU1可不测量ONU1和ONU2之间的第二RTT,而是直接通过ONU1所占用的第一目标时隙向OLT1发送ONU2的注册请求消息,OLT1基于开窗的方式直接测量第一RTT(具体测量过程,请参见图8对应的OLT1基于开窗的方式,测量第三RTT的过程说明,具体不做赘述)。In the embodiment shown in Figure 8, ONU1 measures the second RTT between ONU1 and ONU2 in a window-based manner. ONU1 then sends the second RTT to OLT1, so that OLT1 can respond to the second RTT and the registration request message of ONU2. , obtaining the first RTT as an example. In other examples, ONU1 may not measure the second RTT between ONU1 and ONU2, but directly send the registration request message of ONU2 to OLT1 through the first target time slot occupied by ONU1, and OLT1 directly measures the first time slot based on the windowing method. RTT (for the specific measurement process, please refer to the description of the process of measuring the third RTT based on the windowing method of OLT1 corresponding to Figure 8, which will not be described in detail).
又如,在其他实施例中,OLT1可基于开窗的方式测量OLT1和ONU1之间的第三RTT(基于开窗的方式获得第三RTT的过程的说明,请参见图8获得第三RTT的过程,具体不做赘述)。而ONU2基于免开窗的方式测量ONU1和ONU2之间的第二RTT(基于免开窗的方式获得第二RTT的过程的说明,请参见图3对应的获得第二RTT的过程的说明,具体不做赘述)。ONU2再通过第一目标时隙向OLT1发送该第二RTT以及ONU2的注册请求消息,OLT1基于第一目标时隙所承载的第二RTT以及注册请求消息获得第一RTT。As another example, in other embodiments, OLT1 may measure the third RTT between OLT1 and ONU1 based on a windowing method (for an explanation of the process of obtaining the third RTT based on a windowing method, please refer to Figure 8 to obtain the third RTT. The process will not be described in detail). And ONU2 measures the second RTT between ONU1 and ONU2 based on the method without opening the window (for the description of the process of obtaining the second RTT based on the method without opening the window, please refer to the description of the process of obtaining the second RTT corresponding to Figure 3. For details No further details will be given). ONU2 then sends the second RTT and the registration request message of ONU2 to OLT1 through the first target time slot. OLT1 obtains the first RTT based on the second RTT and registration request message carried by the first target time slot.
又如,在其他实施例中,OLT1可基于免开窗的方式测量OLT1和ONU1之间的第三RTT(基于免开窗的方式获得第三RTT的过程的说明,请参见图3获得第三RTT的过程,具体不做赘述)。而ONU2可基于开窗的方式测量ONU1和ONU2之间的第二RTT(基于开窗的方式获得第二RTT的过程的说明,请参见图8对应的获得第二RTT的过程的说明,具体不做赘述)。ONU2再通过第一目标时隙向OLT1发送该第二RTT以及ONU2的注册请求消息,OLT1基于第一目标时隙所承载的第二RTT以及注册请求消息获得第一RTT。As another example, in other embodiments, OLT1 can measure the third RTT between OLT1 and ONU1 based on a window-free method (for an explanation of the process of obtaining the third RTT based on a window-free method, please refer to Figure 3 to obtain the third RTT. The process of RTT will not be described in detail). ONU2 can measure the second RTT between ONU1 and ONU2 based on the windowing method (for an explanation of the process of obtaining the second RTT based on the windowing method, please refer to the description of the process of obtaining the second RTT corresponding to Figure 8, which is not specific. (do not elaborate). ONU2 then sends the second RTT and the registration request message of ONU2 to OLT1 through the first target time slot. OLT1 obtains the first RTT based on the second RTT and registration request message carried by the first target time slot.
环形组网中的下游ONU(例如ONU2)能够通过OLT1为上游ONU(例如ONU1)指示的时隙,向OLT1发送注册请求消息,下游ONU无需占用独立的时隙资源向OLT1发送注册请求消息。在环形组网所包括的N个ONU已注册至OLT1的情况下,即便待注册的ONU需要注册至OLT1,待注册的ONU1无需占用独立的时隙实现注册,则N个已注册的ONU分别占用的N个时隙的位置不会出现延时,保证了已注册的ONU的上行业务的及时传输,降低时延抖动性,能够适配业务传输及时性要求高的业务。The downstream ONU (for example, ONU2) in the ring network can send a registration request message to OLT1 through the time slot indicated by OLT1 for the upstream ONU (for example, ONU1). The downstream ONU does not need to occupy independent time slot resources to send the registration request message to OLT1. In the case where N ONUs included in the ring network have been registered to OLT1, even if the ONU to be registered needs to be registered to OLT1, the ONU1 to be registered does not need to occupy an independent time slot to register, then the N registered ONUs will occupy There will be no delay at the position of the N time slots, ensuring timely transmission of the registered ONU's uplink services, reducing delay jitter, and being able to adapt to services with high requirements on timeliness of service transmission.
基于图1b所示的环形组网200的结构,OLT1的端口1与ONU1的端口2之间通过光纤211连接。若光纤211,OLT1的端口1或ONU1的端口2中的至少一项出现故障,则导致OLT1和ONU1之间无法进行光信号的传输,则来自OLT1的下行业务无法经由光纤211传输至ONU1,还导致ONU1的上行业务无法经由光纤211传输至OLT1。本实施例还能够在OLT1和ONU1之间无法传输业务的情况下,保证ONU1能够正常接收到下行业务,而且能保证ONU1能够正常的发送上行业务。Based on the structure of the ring network 200 shown in Figure 1b, the port 1 of the OLT1 and the port 2 of the ONU1 are connected through the optical fiber 211. If at least one of the optical fiber 211, port 1 of OLT1 or port 2 of ONU1 fails, optical signals cannot be transmitted between OLT1 and ONU1, and the downlink service from OLT1 cannot be transmitted to ONU1 via optical fiber 211. As a result, the upstream services of ONU1 cannot be transmitted to OLT1 via optical fiber 211. This embodiment can also ensure that ONU1 can normally receive downlink services when services cannot be transmitted between OLT1 and ONU1, and can ensure that ONU1 can normally send uplink services.
以下首先结合图9所示对本实施例所示的ONU1的结构进行说明,其中,图9为本申 请实施例提供的ONU1的结构示例图。The structure of the ONU1 shown in this embodiment is first described below with reference to FIG. 9 , where FIG. 9 is a diagram of the present application. Please provide an example structural diagram of ONU1 in the embodiment.
本实施例所示的ONU1包括光模块901和光模块902,其中,光模块901包括第一发送端口(transport,TX)和第一接收端口(receive,RX),光模块902包括第二TX和第二RX。本实施例对ONU1所包括的光模块的数量不做限定,例如,第一TX,第一RX,第二TX以及第二RX均为同一光模块所具有的不同的端口。又如,ONU1可包括两个以上的任意数量的光模块,在第一RX和第一TX为ONU1所包括的一个光模块的收发端口,而第二RX和第二TX为ONU1所包括的另一个光模块的收发端口。The ONU1 shown in this embodiment includes an optical module 901 and an optical module 902. The optical module 901 includes a first transmit port (transport, TX) and a first receive port (receive, RX). The optical module 902 includes a second TX and a first receive port. 2RX. This embodiment does not limit the number of optical modules included in ONU1. For example, the first TX, the first RX, the second TX and the second RX are all different ports of the same optical module. For another example, ONU1 may include any number of more than two optical modules. The first RX and the first TX are the transceiver ports of one optical module included in the ONU1, and the second RX and the second TX are other optical modules included in the ONU1. The transceiver port of an optical module.
本实施例所示的ONU1还包括开关装置,开关装置包括检测器910和与该检测器910连接的开关阵列930。开关阵列930包括M个输入端口和M个输出端口,本实施例所示的M为大于或等于2的任意正整数,本实施例以ONU1包括两个光模块为例,则本实施例所示的开关阵列930包括四个输入端口,即第一输入端口911,第二输入端口922,第三输入端口913以及第四输入端口924。开关阵列930包括四个输出端口,即第一输出端口921,第二输出端口912,第三输出端口923以及第四输出端口914。The ONU1 shown in this embodiment also includes a switching device. The switching device includes a detector 910 and a switch array 930 connected to the detector 910 . The switch array 930 includes M input ports and M output ports. M shown in this embodiment is any positive integer greater than or equal to 2. In this embodiment, ONU1 includes two optical modules as an example. The switch array 930 includes four input ports, namely a first input port 911, a second input port 922, a third input port 913 and a fourth input port 924. The switch array 930 includes four output ports, namely a first output port 921, a second output port 912, a third output port 923 and a fourth output port 914.
需明确的是,本实施例所示的开关阵列930所包括的输入端口和输出端口的数量,不做限定。本实施例所示的检测器910用于将开关阵列930所包括的任一输入端口与开关阵列930所包括的第一输出端口连接。It should be noted that the number of input ports and output ports included in the switch array 930 shown in this embodiment is not limited. The detector 910 shown in this embodiment is used to connect any input port included in the switch array 930 to the first output port included in the switch array 930 .
本实施例所示的OLT1为主OLT,OLT2为从OLT,ONU1与主OLT1之间实现上行数据流和下行数据流的传输,在OLT1为主OLT的情况下,检测器910使得开关阵列903的第一输入端口911与第一输出端口921连接,且第一输出端口921与业务处理器940的第一处理端口941连接。检测器910还使得开关阵列的第四输出端口914和第四输入端口924连接,且第四输入端口924与业务处理器940的第二处理端口942连接。而第一输入端口911和第四输出端口914均与光模块901连接。同样的,检测器910使得开关阵列903的第二输出端口912与第二输入端口922连接,且第二输入端口922与业务处理器940的第三处理端口943连接。检测器910使得开关阵列930的第三输入端口913与第三输出端口923连接,且第三输出端口923与业务处理器940的第四处理端口944连接。OLT1 shown in this embodiment is the master OLT, and OLT2 is the slave OLT. The upstream data stream and the downstream data stream are transmitted between ONU1 and the master OLT1. When OLT1 is the master OLT, the detector 910 causes the switch array 903 to The first input port 911 is connected to the first output port 921 , and the first output port 921 is connected to the first processing port 941 of the service processor 940 . The detector 910 also connects the fourth output port 914 of the switch array to the fourth input port 924 , and the fourth input port 924 is connected to the second processing port 942 of the service processor 940 . The first input port 911 and the fourth output port 914 are both connected to the optical module 901. Similarly, the detector 910 connects the second output port 912 of the switch array 903 to the second input port 922, and the second input port 922 is connected to the third processing port 943 of the service processor 940. The detector 910 connects the third input port 913 of the switch array 930 to the third output port 923 , and the third output port 923 connects to the fourth processing port 944 of the service processor 940 .
本实施例所示的检测器910可以是一个或多个芯片,或一个或多个集成电路。例如,检测器910可以是一个或多个FPGA、ASIC、SoC、CPU、NP、DSP、MCU,PLD或其它集成芯片,或者上述芯片或者处理器的任意组合等。对业务处理器940的说明,请参见对检测器910形态的说明,具体不做赘述。本实施例所示的业务处理器940和检测器910可为分立式结构以实现或为同一结构以实现,具体在本实施例中不做限定。The detector 910 shown in this embodiment may be one or more chips, or one or more integrated circuits. For example, the detector 910 may be one or more FPGAs, ASICs, SoCs, CPUs, NPs, DSPs, MCUs, PLDs or other integrated chips, or any combination of the above chips or processors. For the description of the service processor 940, please refer to the description of the form of the detector 910, and details will not be repeated. The service processor 940 and the detector 910 shown in this embodiment may be implemented in separate structures or in the same structure, and are not specifically limited in this embodiment.
结合图10所示,说明图9所示的ONU1执行注册方法的过程,其中,图10为本申请实施例提供的注册方法的第四种步骤流程图。The process of ONU1 shown in FIG. 9 executing the registration method is explained with reference to FIG. 10 , where FIG. 10 is a fourth step flow chart of the registration method provided by the embodiment of the present application.
步骤1001、ONU1选定第一RX和第一TX。Step 1001: ONU1 selects the first RX and the first TX.
在ONU1连接两个OLT,即ONU1通过第一RX和第一TX连接OLT1,ONU1通过第二RX和第二TX连接OLT2。ONU1选择一个OLT作为进行上下业务传输的主OLT。若ONU1确定 OLT1作为主OLT,则ONU1选定与主OLT连接的第一RX和第一TX。若ONU1确定OLT2作为主OLT,则ONU1选定与主OLT连接的第二RX和第二TX。本实施例以ONU1选定OLT1作为主OLT为例,则需要ONU1注册至OLT1。在其他示例中,ONU1也可选定OLT2作为主OLT,ONU1选定OLT2作为主OLT的说明,请参见本实施例所示的ONU1选定OLT1作为主OLT的说明,具体不做赘述。本实施例以ONU1包括两个RX为例,在其他示例中,ONU1可包括两个以上的任意数量的RX。以下对ONU1选定第一RX的几种可选方式进行说明:Two OLTs are connected to ONU1, that is, ONU1 is connected to OLT1 through the first RX and the first TX, and ONU1 is connected to OLT2 through the second RX and the second TX. ONU1 selects an OLT as the main OLT for upstream and downstream service transmission. If ONU1 is determined OLT1 serves as the main OLT, and ONU1 selects the first RX and the first TX connected to the main OLT. If ONU1 determines OLT2 as the main OLT, ONU1 selects the second RX and the second TX connected to the main OLT. In this embodiment, ONU1 selects OLT1 as the main OLT as an example, and ONU1 needs to register with OLT1. In other examples, ONU1 may also select OLT2 as the main OLT. For the description of ONU1 selecting OLT2 as the main OLT, please refer to the description of ONU1 selecting OLT1 as the main OLT shown in this embodiment, which will not be described again. In this embodiment, ONU1 includes two RXs as an example. In other examples, ONU1 may include any number of more than two RXs. The following describes several optional ways for ONU1 to select the first RX:
可选方式1Optional method 1
业务处理器940通过第一RX和第二RX均尝试接收下行数据流,在第一RX接收到来自OLT1的下行数据流,而第二RX未接收到来自OLT2的下行数据流的情况下,业务处理器940确定OLT1作为主OLT。The service processor 940 attempts to receive the downlink data stream through both the first RX and the second RX. When the first RX receives the downlink data stream from OLT1 and the second RX does not receive the downlink data stream from OLT2, the service processor 940 Processor 940 determines OLT1 as the primary OLT.
可选方式2Optional method 2
业务处理器940通过第一RX和第二RX均尝试接收下行数据流,在第一RX接收到来自OLT1的下行数据流,且第二RX接收到来自OLT2的下行数据流的情况下,业务处理器判断第一RX所接收到的下行数据流的信号质量是否优于第二RX所接收到的下行数据流的信号质量。在业务处理器确定第一RX接收到的下行数据流的信号质量优于第二RX接收到的下行数据流的信号质量的情况下,业务处理器确定OLT1作为主OLT。The service processor 940 attempts to receive the downlink data stream through both the first RX and the second RX. When the first RX receives the downlink data stream from OLT1 and the second RX receives the downlink data stream from OLT2, the service processor 940 The device determines whether the signal quality of the downlink data stream received by the first RX is better than the signal quality of the downlink data stream received by the second RX. In the case where the service processor determines that the signal quality of the downlink data stream received by the first RX is better than the signal quality of the downlink data stream received by the second RX, the service processor determines OLT1 as the primary OLT.
第一RX接收到的信号质量优于第二RX接收到的信号质量是指如下所示的至少一项:The signal quality received by the first RX is better than the signal quality received by the second RX, which means at least one of the following:
第一RX接收到的下行数据流的误码率低于第二RX接收到的下行数据流的误码率、第一RX接收到的下行数据流的光功率大于第二RX接收到的下行数据流的光功率、第一RX接收到的下行数据流的时延低于第二RX接收到的下行数据流的时延或第一RX接收到的下行数据流的串扰低于第二RX接收到的下行数据流的串扰等。The bit error rate of the downlink data stream received by the first RX is lower than the bit error rate of the downlink data stream received by the second RX. The optical power of the downlink data stream received by the first RX is greater than the downlink data received by the second RX. The optical power of the stream, the latency of the downlink data stream received by the first RX is lower than that of the downlink data stream received by the second RX, or the crosstalk of the downlink data stream received by the first RX is lower than that received by the second RX. Crosstalk of downstream data flows, etc.
步骤1002、ONU1的第一RX接收来自OLT1的第一初始下行数据流。Step 1002: The first RX of ONU1 receives the first initial downlink data stream from OLT1.
本实施例所示的光模块901与OLT1通过光纤连接,则ONU1的第一RX接收来自OLT1的第一初始下行数据流,对第一初始下行数据流的说明,请参见图3对应的步骤301所示,具体不做赘述。The optical module 901 shown in this embodiment is connected to OLT1 through optical fiber, and the first RX of ONU1 receives the first initial downlink data stream from OLT1. For the description of the first initial downlink data stream, please refer to step 301 corresponding to Figure 3 shown and will not be described in details.
步骤1003、ONU1的业务处理器根据第一初始下行数据流进行超帧同步。Step 1003: The service processor of ONU1 performs superframe synchronization according to the first initial downlink data stream.
本实施例所示的光模块901,第一输入端口911,第一输出端口921以及业务处理器940的第一处理端口940依次连接,则光模块901由第一RX所接收到的第一初始下行数据流依次经由第一输入端口911,第一输出端口921以及业务处理器940的第一处理端口940,传输至业务处理器940。业务处理器940处理该第一初始下行数据流以进行超帧同步,业务处理器940执行超帧同步的过程,请参见图3对应的步骤302所示,具体不做赘述。In the optical module 901 shown in this embodiment, the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940 are connected in sequence. Then the optical module 901 receives the first initial signal from the first RX. The downstream data flow is transmitted to the service processor 940 via the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940 in sequence. The service processor 940 processes the first initial downlink data flow to perform superframe synchronization. The service processor 940 performs the process of superframe synchronization. Please refer to the corresponding step 302 in Figure 3, which will not be described in detail.
步骤1004、ONU1的第一TX向OLT1发送初始注册请求消息。Step 1004: The first TX of ONU1 sends an initial registration request message to OLT1.
本实施例所示的业务处理器940的第二处理端口942,第四输入端口924,第四输出端口914以及光模块901依次连接,则业务处理器940输出的初始注册请求消息,依次 经由第二处理端口942,第四输入端口924,第四输出端口914以及光模块901传输至第一TX,光模块901通过第一TX向OLT1发送该初始注册请求消息,对该初始注册请求消息的说明,请参见图3对应的说明,具体不做赘述。The second processing port 942, the fourth input port 924, the fourth output port 914 and the optical module 901 of the service processor 940 shown in this embodiment are connected in sequence, then the initial registration request message output by the service processor 940 is sequentially It is transmitted to the first TX via the second processing port 942, the fourth input port 924, the fourth output port 914 and the optical module 901. The optical module 901 sends the initial registration request message to the OLT1 through the first TX. For instructions, please refer to the corresponding instructions in Figure 3. Details will not be repeated.
步骤1005、OLT1根据初始注册请求消息获得第三RTT。Step 1005: OLT1 obtains the third RTT according to the initial registration request message.
本实施例所示的步骤1005的执行过程的说明,请参见图3对应的步骤304的说明,具体不做赘述。For description of the execution process of step 1005 shown in this embodiment, please refer to the description of step 304 corresponding to Figure 3, and details will not be described again.
步骤1006、ONU1的第一RX接收来自OLT1的第一下行数据流。Step 1006: The first RX of ONU1 receives the first downlink data stream from OLT1.
本实施例所示的ONU1的第一RX接收来自OLT1的第一下行数据流的过程,请参见步骤1005所示的ONU1接收初始下行数据流的过程,具体在本实施例中不做赘述。For the process of the first RX of ONU1 receiving the first downlink data stream from OLT1 shown in this embodiment, please refer to the process of ONU1 receiving the initial downlink data stream shown in step 1005, which will not be described in detail in this embodiment.
步骤1007、ONU1的业务处理器复制第一下行数据流以获得第二下行数据流。Step 1007: The service processor of ONU1 copies the first downstream data stream to obtain the second downstream data stream.
步骤1008、ONU1的业务处理器获得第一下行数据流已承载的第一下行业务。Step 1008: The service processor of ONU1 obtains the first downlink service carried by the first downlink data stream.
本实施例所示的业务处理器执行步骤1007至步骤1008的过程的说明,请参见图3对应的步骤306至步骤307的执行过程的说明,具体不做赘述。For description of the process of the service processor executing steps 1007 to 1008 in this embodiment, please refer to the description of the execution process of steps 306 to 307 corresponding to Figure 3, and details will not be described again.
步骤1009、ONU1的第二TX向ONU2发送第二下行数据流。Step 1009: The second TX of ONU1 sends the second downstream data stream to ONU2.
本实施例所示的业务处理器940的第三处理端口940输出该第二下行数据流,而且本实施例所示的第三处理端口943,第二输入端口922,第二输出端口912以及光模块902依次连接,则业务处理器940输出的第二下行数据流依次经由第三处理端口943,第二输入端口922,第二输出端口912以及光模块902传输至第二TX。该第二TX通过光纤与ONU2连接,则第二TX输出的第二下行数据流能够成功传输至ONU2。The third processing port 940 of the service processor 940 shown in this embodiment outputs the second downlink data stream, and the third processing port 943, the second input port 922, the second output port 912 and the optical The modules 902 are connected in sequence, and the second downlink data stream output by the service processor 940 is transmitted to the second TX via the third processing port 943, the second input port 922, the second output port 912 and the optical module 902 in sequence. The second TX is connected to ONU2 through an optical fiber, so the second downstream data stream output by the second TX can be successfully transmitted to ONU2.
步骤1010、ONU2的业务处理器根据第二下行数据流进行超帧同步。Step 1010: The service processor of ONU2 performs superframe synchronization according to the second downstream data stream.
本实施例所示的步骤1010的执行过程的说明,请参见图3对应的步骤309的说明,具体在本实施例中不做赘述。For description of the execution process of step 1010 shown in this embodiment, please refer to the description of step 309 corresponding to Figure 3, and details will not be described in this embodiment.
步骤1011、ONU1的第二RX接收来自ONU2的注册请求消息。Step 1011: The second RX of ONU1 receives the registration request message from ONU2.
本实施例所示的ONU1的光模块902,第三输入端口913,第三输出端口923以及第四处理端口944依次连接,则第二RX所接收到的注册请求消息,能够依次经由光模块902,第三输入端口913,第三输出端口923以及第四处理端口944传输至业务处理器940。对注册请求消息的说明,请参见图3对应的步骤310的说明,具体不做赘述。The optical module 902 of ONU1 shown in this embodiment, the third input port 913, the third output port 923 and the fourth processing port 944 are connected in sequence, then the registration request message received by the second RX can be sent through the optical module 902 in sequence , the third input port 913, the third output port 923 and the fourth processing port 944 are transmitted to the service processor 940. For the description of the registration request message, please refer to the description of step 310 corresponding to Figure 3, and the details will not be repeated.
步骤1012、ONU1的业务处理器根据注册请求消息测量第二RTT。Step 1012: The service processor of ONU1 measures the second RTT according to the registration request message.
本实施例所示的步骤1012的执行过程,请参见图3对应的步骤311的说明,具体不做赘述。For the execution process of step 1012 shown in this embodiment, please refer to the description of step 311 corresponding to Figure 3, and details will not be described again.
步骤1013、ONU1的第一TX向OLT1发送上行数据流。Step 1013: The first TX of ONU1 sends the upstream data stream to OLT1.
本实施例所示的ONU1的第一TX向OLT1发送上行数据流的发送过程的说明,请参见步骤1004所示的ONU1的第一TX向OLT1发送初始注册请求消息的发送过程的说明。本 实施例所示的上行数据流的说明,请参见图3对应的步骤312的说明,具体不做赘述。For the description of the sending process of the first TX of ONU1 sending the uplink data stream to OLT1 shown in this embodiment, please refer to the description of the sending process of the first TX of ONU1 sending the initial registration request message to OLT1 shown in step 1004. Book For the description of the upstream data flow shown in the embodiment, please refer to the description of step 312 corresponding to Figure 3, and details will not be described again.
步骤1014、OLT1根据上行数据流获得第一RTT。Step 1014: OLT1 obtains the first RTT according to the upstream data stream.
本实施例所示的步骤1014的执行过程的说明,请参见图3对应的步骤313的说明,具体不做赘述。For description of the execution process of step 1014 shown in this embodiment, please refer to the description of step 313 corresponding to Figure 3, and details will not be described again.
步骤1015、ONU1的第一RX接收来自OLT1的第六下行数据流。Step 1015: The first RX of ONU1 receives the sixth downlink data stream from OLT1.
ONU1的第一RX接收到的第六下行数据流能够经由第一输入端口911,第一输出端口921以及业务处理器940的第一处理端口940,传输至业务处理器940,对第六下行数据流的说明,请参见图3对应的步骤314所示,具体不做赘述。The sixth downlink data stream received by the first RX of ONU1 can be transmitted to the service processor 940 via the first input port 911, the first output port 921 and the first processing port 940 of the service processor 940, and the sixth downlink data stream For the description of the flow, please refer to step 314 corresponding to Figure 3, and the details will not be described again.
步骤1016、ONU1的第二TX向ONU2发送第七下行数据流。Step 1016: The second TX of ONU1 sends the seventh downstream data stream to ONU2.
业务处理器940的第三处理端口943输出的第七下行数据流,依次经由第二输入端口922,第二输出端口912以及光模块902传输至第二TX,由第二TX向ONU2发送该第七下行数据流,该第七下行数据流的具体说明,请参见图3对应的步骤315的说明,具体不做赘述。The seventh downlink data stream output by the third processing port 943 of the service processor 940 is sequentially transmitted to the second TX via the second input port 922, the second output port 912 and the optical module 902, and the second TX sends the seventh downlink data stream to the ONU2. Seven downstream data streams. For specific description of the seventh downstream data stream, please refer to the description of step 315 corresponding to Figure 3, and the details will not be described again.
图9所示的ONU1也可用于执行图7和图8对应的方法,执行图7和图8所示的方法的过程中,ONU1与OLT1之间的数据传输路径,以及ONU1与ONU2之间的数据流传输路径的说明,请参见图10对应的说明,具体不做赘述。ONU1 shown in Figure 9 can also be used to execute the methods corresponding to Figures 7 and 8. During the execution of the methods shown in Figures 7 and 8, the data transmission path between ONU1 and OLT1, and the data transmission path between ONU1 and ONU2 For the description of the data flow transmission path, please refer to the corresponding description in Figure 10, and the details will not be repeated.
图10所示以OLT1为主OLT,而OLT2为从OLT为例,即本实施例所示的ONU1和ONU2均注册至OLT1为例,参见图11所示,图11为本申请实施例提供的注册方法的第五种步骤流程图。本实施例中,OLT1能够正常发出下行数据流,而OLT2和ONU1之间出现了故障事件,导致ONU1和ONU2均需要注册至OLT1。As shown in Figure 10, OLT1 is the master OLT and OLT2 is the slave OLT. That is, ONU1 and ONU2 shown in this embodiment are both registered to OLT1. See Figure 11. Figure 11 is provided by the embodiment of the present application. Flow chart of the fifth step of the registration method. In this embodiment, OLT1 can send downlink data streams normally, but a fault event occurs between OLT2 and ONU1, causing both ONU1 and ONU2 to need to register with OLT1.
步骤1101、ONU1检测到第二RX和OLT2之间出现故障事件。Step 1101. ONU1 detects a fault event between the second RX and OLT2.
本实施例所示的光模块902依次与ONU2和OLT2连接。若ONU1注册至OLT2上,则需要ONU1的第二RX接收来自OLT2的下行数据流。但是,如图12所示,图12为本申请实施例提供的ONU1的第二种结构示例图。在图12所示的示例中,若OLT2和第二RX之间出现故障事件,则导致OLT2的下行数据流无法成功传输至第二RX,进而使得ONU1无法成功接收到来自OLT2的下行数据流。The optical module 902 shown in this embodiment is connected to ONU2 and OLT2 in sequence. If ONU1 registers with OLT2, the second RX of ONU1 is required to receive the downstream data stream from OLT2. However, as shown in Figure 12, Figure 12 is a second structural example diagram of ONU1 provided by the embodiment of the present application. In the example shown in Figure 12, if a fault event occurs between OLT2 and the second RX, the downstream data stream of OLT2 cannot be successfully transmitted to the second RX, and thus ONU1 cannot successfully receive the downstream data stream from OLT2.
例如,ONU1的检测器910可与光模块902连接,检测器910检测光模块902的第二RX是否能够正常接收到光信号,若检测器910超过预设时间段内,持续无法检测到第二RX成功接收到光信号的事件或持续检测到的光信号的光功率小于预设阈值,则确定OLT2和ONU1的第二RX之间出现故障事件。又如,检测器910与光模块902和第三输入端口913之间的线路连接,检测器910基于该线路获得光模块902所输出的电信号,检测器910检测电信号是否包括连续的有效帧头,若否,则确定OLT2和ONU1的第二RX之间出现故障事件。又如,检测器910检测到该电信号的误码率超过预设阈值。本实施例对检测器910如何确定OLT2和ONU1的第二RX之间出现故障事件不做限定,只要在OLT2和ONU1的第二RX之间存在故障事件的情况下,来自OLT2的下行数据流无法成功传输至 ONU1。For example, the detector 910 of ONU1 can be connected to the optical module 902. The detector 910 detects whether the second RX of the optical module 902 can normally receive the optical signal. If the detector 910 exceeds the preset time period and continues to be unable to detect the second RX If the RX successfully receives the optical signal or the optical power of the continuously detected optical signal is less than the preset threshold, it is determined that a fault event occurs between OLT2 and the second RX of ONU1. For another example, the detector 910 is connected to the line between the optical module 902 and the third input port 913. The detector 910 obtains the electrical signal output by the optical module 902 based on the line. The detector 910 detects whether the electrical signal includes consecutive valid frames. If not, it is determined that a fault event occurs between OLT2 and the second RX of ONU1. For another example, the detector 910 detects that the bit error rate of the electrical signal exceeds a preset threshold. This embodiment does not limit how the detector 910 determines that a fault event occurs between OLT2 and the second RX of ONU1. As long as there is a fault event between OLT2 and the second RX of ONU1, the downstream data flow from OLT2 cannot Successfully transferred to ONU1.
步骤1102、ONU1的检测器将开关阵列由第一导通模式切换至第二导通模式。Step 1102: The detector of ONU1 switches the switch array from the first conduction mode to the second conduction mode.
具体的,在ONU1检测到第二RX与OLT2之间出现故障事件的情况下,ONU1为进行上下行业务的传输,则需要ONU1注册至OLT1,即将主OLT由OLT2切换至OLT1,以实现ONU1与OLT1之间上下行业务的传输。为保证ONU1能够成功注册至OLT1,则ONU1的检测器910需要将开关阵列930由第一导通模式切换至第二导通模式。Specifically, when ONU1 detects a fault event between the second RX and OLT2, in order to transmit uplink and downlink services, ONU1 needs to register with OLT1, that is, switch the main OLT from OLT2 to OLT1, so as to realize ONU1 and OLT2. Transmission of uplink and downlink services between OLT1. In order to ensure that ONU1 can successfully register with OLT1, the detector 910 of ONU1 needs to switch the switch array 930 from the first conduction mode to the second conduction mode.
本实施例所示的在开关阵列930处于第二导通模式的情况下,OLT1为主OLT,而OLT2为从OLT。即ONU1从OLT1接收第一初始下行数据流,并由OLT1为ONU1分配用于发送上行业务的时隙。其中,第二导通模式的说明,请参见图9所示,具体不做赘述。As shown in this embodiment, when the switch array 930 is in the second conduction mode, OLT1 is the master OLT and OLT2 is the slave OLT. That is, ONU1 receives the first initial downlink data stream from OLT1, and OLT1 allocates a time slot for ONU1 to send uplink services. The description of the second conduction mode is shown in Figure 9 and will not be described in detail.
本实施例所示的在开关阵列930处于第一导通模式的情况下,OLT2为主OLT,而OLT1为从OLT。即ONU1由OLT2分配用于发送上行业务的时隙。其中,第一导通模式是指,第三输入端口913和第一输出端口921连接。第二输出端口912和第四输入端口942连接。第四输出端口914和第二输入端口922连接。第一输入端口911和第三输出端口923连接。As shown in this embodiment, when the switch array 930 is in the first conduction mode, OLT2 is the master OLT and OLT1 is the slave OLT. That is, ONU1 is allocated a time slot by OLT2 for sending uplink services. The first conduction mode means that the third input port 913 and the first output port 921 are connected. The second output port 912 and the fourth input port 942 are connected. The fourth output port 914 and the second input port 922 are connected. The first input port 911 and the third output port 923 are connected.
需明确的是,本实施例以ONU1检测到第二RX与OLT2之间出现故障事件,从而触发开关阵列由第一导通模式切换至第二导通模式为例,在其他示例中,ONU1也可在检测到第二TX与OLT2之间出现故障事件,从而触发开关阵列由第一导通模式切换至第二导通模式为例。其中,ONU1检测到第二TX与OLT2之间出现故障事件可为,ONU1的第二TX向OLT2发送的数据超过时间阈值仍未发送成功,确定第二TX与OLT2之间出现故障事件。It should be noted that in this embodiment, ONU1 detects a fault event between the second RX and OLT2, thereby triggering the switch array to switch from the first conduction mode to the second conduction mode. In other examples, ONU1 also For example, a fault event may occur between the second TX and the OLT2, thereby triggering the switch array to switch from the first conduction mode to the second conduction mode. Among them, ONU1 detects a fault event between the second TX and OLT2. The data sent by the second TX of ONU1 to OLT2 exceeds the time threshold but is not successfully sent. It is determined that a fault event occurs between the second TX and OLT2.
本实施例所示的ONU2确定OLT1为主OLT,OLT2为从OLT的说明,请参见步骤1102所示,具体不做赘述。ONU2 shown in this embodiment determines that OLT1 is the master OLT and OLT2 is the slave OLT. Please refer to step 1102 for the description, which will not be described again.
步骤1103、ONU1的第一RX接收来自OLT1的第一初始下行数据流。Step 1103: The first RX of ONU1 receives the first initial downlink data stream from OLT1.
步骤1104、ONU1的业务处理器根据第一初始下行数据流进行超帧同步。Step 1104: The service processor of ONU1 performs superframe synchronization according to the first initial downlink data stream.
步骤1105、ONU1的第一TX向OLT1发送初始注册请求消息。Step 1105: The first TX of ONU1 sends an initial registration request message to OLT1.
步骤1106、OLT1根据初始注册请求消息获得第三RTT。Step 1106: OLT1 obtains the third RTT according to the initial registration request message.
步骤1107、ONU1的第一RX接收来自OLT1的第一下行数据流。Step 1107: The first RX of ONU1 receives the first downlink data stream from OLT1.
步骤1108、ONU1的业务处理器复制第一下行数据流以获得第二下行数据流。Step 1108: The service processor of ONU1 copies the first downstream data stream to obtain the second downstream data stream.
步骤1109、ONU1的业务处理器获得第一下行数据流已承载的第一下行业务。Step 1109: The service processor of ONU1 obtains the first downlink service carried by the first downlink data stream.
步骤1110、ONU1的第二TX向ONU2发送第二下行数据流。Step 1110: The second TX of ONU1 sends the second downstream data stream to ONU2.
步骤1111、ONU2的业务处理器根据第二下行数据流进行超帧同步。Step 1111: The service processor of ONU2 performs superframe synchronization according to the second downstream data stream.
步骤1112、ONU1的第二RX接收来自ONU2的注册请求消息。Step 1112: The second RX of ONU1 receives the registration request message from ONU2.
步骤1113、ONU1的业务处理器根据注册请求消息测量第二RTT。Step 1113: The service processor of ONU1 measures the second RTT according to the registration request message.
步骤1114、ONU1的第一TX向OLT1发送上行数据流。 Step 1114: The first TX of ONU1 sends the upstream data stream to OLT1.
步骤1115、OLT1根据上行数据流获得第一RTT。Step 1115: OLT1 obtains the first RTT according to the upstream data stream.
步骤1116、ONU1的第一RX接收来自OLT1的第六下行数据流。Step 1116: The first RX of ONU1 receives the sixth downlink data stream from OLT1.
步骤1117、ONU1的第二TX向ONU2发送第七下行数据流。Step 1117: The second TX of ONU1 sends the seventh downlink data stream to ONU2.
本实施例所示的步骤1103至步骤1117的执行过程的说明,请参见图10对应的步骤1002至步骤1016所示,具体执行过程不做赘述。For an explanation of the execution process of steps 1103 to 1117 shown in this embodiment, please refer to the corresponding steps 1002 to 1016 shown in Figure 10, and the specific execution process will not be described again.
图12所示的ONU1也可用于执行图7和图8对应的方法,执行图7和图8所示的方法的过程中,ONU1与OLT1之间的数据传输路径,以及ONU1与ONU2之间的数据流传输路径的说明,请参见图12对应的说明,具体不做赘述。ONU1 shown in Figure 12 can also be used to execute the methods corresponding to Figures 7 and 8. During the execution of the methods shown in Figures 7 and 8, the data transmission path between ONU1 and OLT1, and the data transmission path between ONU1 and ONU2 For the description of the data stream transmission path, please refer to the corresponding description in Figure 12, and the details will not be repeated.
采用本实施例所示的方法,在OLT2和ONU1之间的出现故障事件的情况下,ONU1所包括的开关阵列能够切换导通模式,以使切换了导通模式的ONU1能够注册至另一OLT(如上述所示的OLT1),以使ONU1能够与OLT1进行通信,保证了ONU1上下行业务的成功传输。Using the method shown in this embodiment, in the event of a fault event between OLT2 and ONU1, the switch array included in ONU1 can switch the conduction mode, so that ONU1 that has switched the conduction mode can register to another OLT (such as OLT1 shown above), so that ONU1 can communicate with OLT1, ensuring the successful transmission of uplink and downlink services of ONU1.
本申请实施例还提供了一种通信设备,所述通信设备的结构请参见图13所示,其中,图13为本申请实施例提供的通信设备的结构示例图。本实施例所示的通信设备1300包括收发器1301和业务处理器1302,其中收发器1301和业务处理器1302连接。本实施例所示的通信设备可为OLT,该OLT包括的收发器1301用于执行图3、图7、图8、图10以及图11所示的实施例中,由OLT执行的与收发相关的流程。该OLT包括的业务处理器1302用于执行图3、图7、图8、图10以及图11所示的实施例中,由OLT执行的与处理相关的流程。An embodiment of the present application also provides a communication device. The structure of the communication device is shown in FIG. 13 , where FIG. 13 is an example structural diagram of the communication device provided by an embodiment of the present application. The communication device 1300 shown in this embodiment includes a transceiver 1301 and a service processor 1302, where the transceiver 1301 and the service processor 1302 are connected. The communication device shown in this embodiment may be an OLT. The transceiver 1301 included in the OLT is used to perform the transceiver-related functions performed by the OLT in the embodiments shown in Figures 3, 7, 8, 10 and 11. process. The service processor 1302 included in the OLT is used to execute the processing-related processes executed by the OLT in the embodiments shown in FIG. 3, FIG. 7, FIG. 8, FIG. 10, and FIG. 11.
本实施例所示的通信设备可为环形组网所包括的任一ONU。该ONU包括的收发器1301用于执行图3、图7、图8、图10以及图11所示的实施例中,由ONU执行的与收发相关的流程。该ONU包括的业务处理器1302用于执行图3、图7、图8、图10以及图11所示的实施例中,由ONU执行的与处理相关的流程。The communication device shown in this embodiment can be any ONU included in the ring network. The transceiver 1301 included in the ONU is used to execute the processes related to transceiver and transceiver executed by the ONU in the embodiments shown in Figures 3, 7, 8, 10 and 11. The service processor 1302 included in the ONU is used to execute the processing-related processes executed by the ONU in the embodiments shown in FIG. 3, FIG. 7, FIG. 8, FIG. 10, and FIG. 11.
具体的,本实施例所示的ONU具体可参见图9或图12所示的ONU1。更具体的,该通信设备1300的收发器1301可包括图9或图12所示的光模块901和光模块902,对光模块901和光模块902的具体说明,请参见图9或图12所示的说明,具体不做赘述。需明确的是,本实施例以收发器1301包括两个光模块为例,在其他示例中,收发器1301也可仅包括一个光模块,或两个以上的光模块。在通信设备1300包括两个以上的光模块的情况下,能够实现复杂结构的组网,本实施例对具体组网类型不做限定。例如图14所示,包括三个光模块的通信设备能够组成双环形组网,其中,图14为本申请实施例所提供的双环形组网结构示例图。Specifically, for the ONU shown in this embodiment, see ONU1 shown in Figure 9 or Figure 12 . More specifically, the transceiver 1301 of the communication device 1300 may include the optical module 901 and the optical module 902 shown in Figure 9 or Figure 12. For a specific description of the optical module 901 and the optical module 902, please refer to Figure 9 or Figure 12. Explanation without going into details. It should be noted that in this embodiment, the transceiver 1301 includes two optical modules as an example. In other examples, the transceiver 1301 may include only one optical module, or more than two optical modules. When the communication device 1300 includes two or more optical modules, a complex-structured network can be implemented. This embodiment does not limit the specific network type. For example, as shown in Figure 14, communication equipment including three optical modules can form a dual-ring network. Figure 14 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
该双环形组网1400包括OLT1以及与OLT1连接的ONU1,其中,ONU1的业务处理器1402分别与光模块1401,光模块1403以及光模块1404连接。光模块1401与OLT1连接,光模块1403与ONU2连接,光模块1401与ONU3连接,对ONU1所包括的每个光模块以及业务处理器的说明,请参见图9或图12对应的光模块的说明,具体不做赘述。该双环形组网1400还包括与OLT2连接的ONU4,该ONU4包括业务处理器1414,业务处理器1414 分别与光模块1411,光模块1412以及光模块1413连接。光模块1411与ONU2连接。光模块1412与ONU3连接。光模块1413与OLT2连接,对ONU4所包括的每个光模块以及业务处理器的说明,请参见图9或图12对应的光模块的说明,具体不做赘述。需明确的是,本实施例以通信设备包括三个光模块以组建双环形组网为例,本实施例对组网的具体类型不做限定。可以理解,本实施例所提供的光通信网络的类型可为环形组网、双环形组网或树形组网等任意类型,具体不做限定。本实施例所示能够实现任意形状的灵活组网,降低了组网后续增设通信节点的难度,提高了组网后续的可扩展性。The dual-ring network 1400 includes an OLT1 and an ONU1 connected to the OLT1. The service processor 1402 of the ONU1 is connected to an optical module 1401, an optical module 1403 and an optical module 1404 respectively. Optical module 1401 is connected to OLT1, optical module 1403 is connected to ONU2, and optical module 1401 is connected to ONU3. For descriptions of each optical module and service processor included in ONU1, please refer to the description of the corresponding optical module in Figure 9 or Figure 12 , no details will be given. The dual ring network 1400 also includes an ONU4 connected to the OLT2. The ONU4 includes a service processor 1414. The service processor 1414 Connected to the optical module 1411, the optical module 1412 and the optical module 1413 respectively. The optical module 1411 is connected to ONU2. The optical module 1412 is connected to ONU3. The optical module 1413 is connected to the OLT2. For a description of each optical module and service processor included in the ONU4, please refer to the description of the corresponding optical module in Figure 9 or Figure 12, and the details will not be repeated. It should be noted that this embodiment takes the communication device including three optical modules to form a dual-ring network as an example. This embodiment does not limit the specific type of network. It can be understood that the type of optical communication network provided in this embodiment can be any type such as ring networking, dual ring networking, or tree networking, and is not specifically limited. This embodiment shows that flexible networking of any shape can be realized, which reduces the difficulty of adding subsequent communication nodes to the network and improves the subsequent scalability of the network.
本实施例所示的通信设备还可包括如图9或图12所示的检测器以及开关阵列,具体说明,请参见图9或图12对应的说明,具体不做赘述。The communication device shown in this embodiment may also include a detector and a switch array as shown in Figure 9 or Figure 12. For specific description, please refer to the corresponding description of Figure 9 or Figure 12, and no further details will be given.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in each embodiment of the present application.

Claims (23)

  1. 一种注册方法,其特征在于,所述方法包括:A registration method, characterized in that the method includes:
    第一通信节点接收来自第二通信节点的注册请求消息,所述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT;The first communication node receives a registration request message from the second communication node, the registration request message is used to measure the first round-trip communication delay RTT between the central office device and the second communication node;
    所述第一通信节点在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙由所述中心局设备指示;The first communication node carries the registration request message on a target time slot of the upstream data stream, the target time slot being indicated by the central office device;
    所述第一通信节点向所述中心局设备发送所述上行数据流。The first communication node sends the uplink data stream to the central office device.
  2. 根据权利要求1所述的方法,其特征在于,所述第一通信节点向所述中心局设备发送上行数据流之前,所述方法还包括:The method according to claim 1, characterized in that before the first communication node sends the uplink data stream to the central office device, the method further includes:
    所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT;The first communication node measures a second RTT between the first communication node and the second communication node according to the registration request message;
    所述第一通信节点在所述目标时隙上承载所述第二RTT。The first communication node carries the second RTT on the target time slot.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一通信节点接收来自第二通信节点的注册请求消息之前,所述方法还包括:The method according to claim 1 or 2, characterized in that before the first communication node receives the registration request message from the second communication node, the method further includes:
    所述第一通信节点向所述第二通信节点发送注册触发消息,所述注册触发消息用于指示所述第二通信节点发送所述注册请求消息。The first communication node sends a registration trigger message to the second communication node, where the registration trigger message is used to instruct the second communication node to send the registration request message.
  4. 根据权利要求3所述的方法,其特征在于,所述第一通信节点向所述第二通信节点发送注册触发消息之前,所述方法还包括:The method according to claim 3, characterized in that before the first communication node sends a registration trigger message to the second communication node, the method further includes:
    所述第一通信节点接收来自所述中心局设备的第一下行数据流;The first communication node receives a first downlink data stream from the central office device;
    所述第一通信节点复制所述第一下行数据流以获得第二下行数据流;The first communication node copies the first downlink data stream to obtain a second downlink data stream;
    所述第一通信节点向所述第二通信节点发送注册触发消息包括:The first communication node sending a registration trigger message to the second communication node includes:
    所述第一通信节点向所述第二通信节点发送所述第二下行数据流,所述第二下行数据流包括目标下行数据帧,所述目标下行数据帧用于承载所述注册触发消息。The first communication node sends the second downlink data stream to the second communication node, where the second downlink data stream includes a target downlink data frame, and the target downlink data frame is used to carry the registration trigger message.
  5. 根据权利要求4所述的方法,其特征在于,所述注册触发消息为所述目标下行数据帧已承载的目标超帧号。The method according to claim 4, characterized in that the registration trigger message is a target superframe number carried by the target downlink data frame.
  6. 根据权利要求2所述的方法,其特征在于,所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT包括:The method according to claim 2, wherein the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes:
    所述第一通信节点确定第一时刻,所述第一时刻为所述第一通信节点向所述第二通信节点发送注册触发消息的时刻,所述注册触发消息用于指示所述第二通信节点发送所述注册请求消息;The first communication node determines a first time, and the first time is the time when the first communication node sends a registration trigger message to the second communication node, and the registration trigger message is used to indicate the second communication The node sends the registration request message;
    所述第一通信节点确定第二时刻,所述第二时刻为所述第一通信节点接收所述注册请求消息的时刻;The first communication node determines a second time, and the second time is the time when the first communication node receives the registration request message;
    所述第一通信节点确定所述第二时刻和所述第一时刻之间的差值为所述第二RTT。The first communication node determines that the difference between the second time and the first time is the second RTT.
  7. 根据权利要求3所述的方法,其特征在于,所述第一通信节点向所述第二通信节点发送注册触发消息之前,所述方法还包括:The method according to claim 3, characterized in that before the first communication node sends a registration trigger message to the second communication node, the method further includes:
    所述第一通信节点接收来自所述中心局设备的第三下行数据流;The first communication node receives a third downlink data stream from the central office device;
    所述第一通信节点复制所述第三下行数据流以获得第四下行数据流;The first communication node copies the third downlink data stream to obtain a fourth downlink data stream;
    所述第一通信节点在所述第四下行数据流中增加所述注册触发消息以获得第五下行数据 流;The first communication node adds the registration trigger message to the fourth downlink data stream to obtain fifth downlink data. flow;
    所述第一通信节点向所述第二通信节点发送注册触发消息包括:The first communication node sending a registration trigger message to the second communication node includes:
    所述第一通信节点向所述第二通信节点发送所述第五下行数据流。The first communication node sends the fifth downlink data stream to the second communication node.
  8. 根据权利要求2所述的方法,其特征在于,所述第一通信节点根据所述注册请求消息测量所述第一通信节点和所述第二通信节点之间的第二RTT包括:The method according to claim 2, wherein the first communication node measuring the second RTT between the first communication node and the second communication node according to the registration request message includes:
    所述第一通信节点确定第三时刻,所述第三时刻为所述第一通信节点向所述第二通信节点发送第一测量消息的时刻;The first communication node determines a third time, and the third time is the time when the first communication node sends a first measurement message to the second communication node;
    所述第一通信节点确定第四时刻,所述第四时刻为所述第一通信节点接收来自所述第二通信节点的第二测量消息的时刻;The first communication node determines a fourth time, and the fourth time is the time when the first communication node receives the second measurement message from the second communication node;
    所述第一通信节点确定所述第四时刻和所述第三时刻之间的差值为所述第二RTT。The first communication node determines that the difference between the fourth time and the third time is the second RTT.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一通信节点的第一接收端口RX与所述中心局设备连接,所述第一通信节点的第二RX与所述第二通信节点连接,所述第一通信节点接收来自第二通信节点的注册请求消息之前,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the first receiving port RX of the first communication node is connected to the central office equipment, and the second RX of the first communication node is connected to the central office equipment. The second communication node is connected, and before the first communication node receives the registration request message from the second communication node, the method further includes:
    所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口。The first communication node switches the second RX among the first RX and the second RX as a receiving port for receiving the registration request message.
  10. 根据权利要求9所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口之前,所述方法还包括:The method according to claim 9, characterized in that, among the first RX and the second RX, the first communication node switches the second RX to a receiving port for receiving the registration request message. Previously, the method also included:
    所述第一通信节点检测到经由所述第一RX所接收到的信号质量优于经由所述第二RX所接收到的信号质量。The first communication node detects that the signal quality received via the first RX is better than the signal quality received via the second RX.
  11. 根据权利要求9所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述注册请求消息的接收端口之前,所述方法还包括:The method according to claim 9, characterized in that, among the first RX and the second RX, the first communication node switches the second RX to a receiving port for receiving the registration request message. Previously, the method also included:
    所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。The first communication node detects a failure event in the optical signal received via the second RX.
  12. 根据权利要求1至11任一项所述的方法,其特征在于,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点与所述第二通信节点为所述多个通信节点中不同的两个通信节点,且所述第一通信节点连接在所述中心局设备和所述第二通信节点之间。The method according to any one of claims 1 to 11, characterized in that the method is applied to an optical communication system, the optical communication system includes the central office device and a plurality of devices connected to the central office device in sequence. Communication node; the first communication node and the second communication node are two different communication nodes among the plurality of communication nodes, and the first communication node is connected between the central office equipment and the second communication node. between communication nodes.
  13. 一种注册方法,其特征在于,所述方法包括:A registration method, characterized in that the method includes:
    中心局设备接收来自第一通信节点的上行数据流;The central office equipment receives the uplink data stream from the first communication node;
    所述中心局设备获得所述上行数据流的目标时隙上已承载的注册请求消息,其中,所述注册请求消息来自第二通信节点,所述目标时隙由所述中心局设备指示;The central office device obtains the registration request message carried on the target time slot of the upstream data stream, wherein the registration request message comes from the second communication node, and the target time slot is indicated by the central office device;
    所述中心局设备根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The central office device measures a first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message.
  14. 根据权利要求13所述的方法,其特征在于,所述中心局设备接收来自第一通信节点的上行数据流之后,所述方法还包括:The method according to claim 13, characterized in that after the central office device receives the uplink data stream from the first communication node, the method further includes:
    所述中心局设备获得所述目标时隙上已承载的所述第一通信节点和所述第二通信节点之间的第二RTT;The central office device obtains a second RTT between the first communication node and the second communication node that has been carried on the target time slot;
    所述中心局设备根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT包括:The central office device measuring the first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message includes:
    所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT。 The central office device measures the first RTT based on the second RTT and the registration request message.
  15. 根据权利要求14所述的方法,其特征在于,所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT之前,所述方法还包括:The method according to claim 14, characterized in that before the central office device measures the first RTT according to the second RTT and the registration request message, the method further includes:
    所述中心局设备获得第三RTT,所述第三RTT为所述中心局设备和所述第一通信节点之间的RTT;The central office device obtains a third RTT, and the third RTT is the RTT between the central office device and the first communication node;
    所述中心局设备根据所述第二RTT和所述注册请求消息测量所述第一RTT包括:The central office device measuring the first RTT according to the second RTT and the registration request message includes:
    所述中心局设备确定所述第二RTT与所述第三RTT的和为所述第一RTT。The central office device determines that the sum of the second RTT and the third RTT is the first RTT.
  16. 根据权利要求15所述的方法,其特征在于,所述中心局设备获得第三RTT包括:The method of claim 15, wherein obtaining the third RTT by the central office device includes:
    所述中心局设备获得所述上行数据流已承载的所述第一通信节点的标识;The central office device obtains the identity of the first communication node on which the uplink data stream has been carried;
    所述中心局设备根据所述第一通信节点的标识获得对应的所述第三RTT。The central office device obtains the corresponding third RTT according to the identification of the first communication node.
  17. 一种注册方法,其特征在于,所述方法包括:A registration method, characterized in that the method includes:
    第二通信节点接收来自第一通信节点的注册触发消息;The second communication node receives the registration trigger message from the first communication node;
    所述第二通信节点根据所述注册触发消息向所述第一通信节点发送注册请求消息,所述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The second communication node sends a registration request message to the first communication node according to the registration trigger message. The registration request message is used to measure the first round-trip communication time between the central office device and the second communication node. Extended RTT.
  18. 根据权利要求17所述的方法,其特征在于,所述第二通信节点接收来自第一通信节点的注册触发消息包括:The method according to claim 17, wherein the second communication node receiving the registration trigger message from the first communication node includes:
    所述第二通信节点接收来自所述第一通信节点的第二下行数据流,所述第二下行数据流包括目标下行数据帧,所述注册触发消息为所述目标下行数据帧已承载的目标超帧号。The second communication node receives a second downlink data stream from the first communication node, the second downlink data stream includes a target downlink data frame, and the registration trigger message is a target carried by the target downlink data frame. Superframe number.
  19. 根据权利要求17所述的方法,其特征在于,所述第二通信节点接收来自第一通信节点的注册触发消息包括:The method according to claim 17, wherein the second communication node receiving the registration trigger message from the first communication node includes:
    所述第二通信节点接收来自所述第一通信节点的第五下行数据流,所述第五下行数据流已承载所述注册触发消息。The second communication node receives a fifth downlink data stream from the first communication node, and the fifth downlink data stream carries the registration trigger message.
  20. 一种通信节点,其特征在于,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;A communication node, characterized in that the communication node includes a transceiver and a service processor, and the transceiver is connected to the service processor;
    所述收发器用于接收来自另一通信节点的注册请求消息,所述注册请求消息用于测量中心局设备和所述另一通信节点之间的第一来回通信时延RTT;The transceiver is configured to receive a registration request message from another communication node, and the registration request message is used to measure the first round-trip communication delay RTT between the central office device and the another communication node;
    所述业务处理器用于在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙由所述中心局设备指示;The service processor is configured to carry the registration request message on a target time slot of the upstream data stream, and the target time slot is indicated by the central office device;
    所述收发器还用于向所述中心局设备发送所述上行数据流。The transceiver is also used to send the uplink data stream to the central office device.
  21. 一种中心局设备,其特征在于,所述中心局设备包括收发器以及业务处理器,所述收发器与所述业务处理器连接;A central office device, characterized in that the central office device includes a transceiver and a service processor, and the transceiver is connected to the service processor;
    所述收发器用于接收来自第一通信节点的上行数据流;The transceiver is configured to receive an uplink data stream from the first communication node;
    所述业务处理器用于获得所述上行数据流的目标时隙上已承载的注册请求消息,其中,所述注册请求消息来自第二通信节点,所述目标时隙由所述中心局设备指示,所述业务处理器还用于根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The service processor is configured to obtain the registration request message carried on the target time slot of the uplink data stream, wherein the registration request message comes from the second communication node, and the target time slot is indicated by the central office device, The service processor is further configured to measure the first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message.
  22. 一种通信节点,其特征在于,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;A communication node, characterized in that the communication node includes a transceiver and a service processor, and the transceiver is connected to the service processor;
    所述收发器用于接收来自另一通信节点的注册触发消息;The transceiver is configured to receive a registration trigger message from another communication node;
    所述业务处理器用于根据所述注册触发消息向所述另一通信节点发送注册请求消息,所 述注册请求消息用于测量中心局设备和所述第二通信节点之间的第一来回通信时延RTT。The service processor is configured to send a registration request message to the other communication node according to the registration trigger message, so The registration request message is used to measure the first round-trip communication delay RTT between the central office device and the second communication node.
  23. 一种光通信系统,其特征在于,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;An optical communication system, characterized in that the optical communication system includes a central office device, a first communication node and a second communication node connected in sequence;
    所述第一通信节点用于向所述第二通信节点发送注册触发消息;The first communication node is configured to send a registration trigger message to the second communication node;
    所述第二通信节点用于根据所述注册触发消息向所述第一通信节点发送注册请求消息;The second communication node is configured to send a registration request message to the first communication node according to the registration trigger message;
    所述第一通信节点用于在上行数据流的目标时隙上承载所述注册请求消息,所述目标时隙由所述中心局设备指示;The first communication node is configured to carry the registration request message on a target time slot of the upstream data stream, and the target time slot is indicated by the central office device;
    所述第一通信节点用于向所述中心局设备发送所述上行数据流;The first communication node is configured to send the uplink data stream to the central office device;
    所述中心局设备用于获得所述上行数据流已承载的所述注册请求消息;The central office device is configured to obtain the registration request message carried by the uplink data stream;
    所述中心局设备用于根据所述注册请求消息测量所述中心局设备和所述第二通信节点之间的第一来回通信时延RTT。 The central office device is configured to measure a first round-trip communication delay RTT between the central office device and the second communication node according to the registration request message.
PCT/CN2023/102552 2022-08-31 2023-06-27 Registration method, related device and optical communication system WO2024045815A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211058795.2 2022-08-31
CN202211058795.2A CN117676392A (en) 2022-08-31 2022-08-31 Registration method, related equipment and optical communication system

Publications (1)

Publication Number Publication Date
WO2024045815A1 true WO2024045815A1 (en) 2024-03-07

Family

ID=90075812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102552 WO2024045815A1 (en) 2022-08-31 2023-06-27 Registration method, related device and optical communication system

Country Status (2)

Country Link
CN (1) CN117676392A (en)
WO (1) WO2024045815A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018157291A1 (en) * 2017-02-28 2018-09-07 华为技术有限公司 Method for communication in passive optical network system, optical line terminal and optical network unit
CN114666684A (en) * 2020-12-23 2022-06-24 中国移动通信有限公司研究院 On-line registration method of optical network unit, optical network unit and optical line terminal
CN114938478A (en) * 2018-09-25 2022-08-23 中兴通讯股份有限公司 Data processing method and device of passive optical network system and passive optical network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018157291A1 (en) * 2017-02-28 2018-09-07 华为技术有限公司 Method for communication in passive optical network system, optical line terminal and optical network unit
CN114938478A (en) * 2018-09-25 2022-08-23 中兴通讯股份有限公司 Data processing method and device of passive optical network system and passive optical network system
CN114666684A (en) * 2020-12-23 2022-06-24 中国移动通信有限公司研究院 On-line registration method of optical network unit, optical network unit and optical line terminal

Also Published As

Publication number Publication date
CN117676392A (en) 2024-03-08

Similar Documents

Publication Publication Date Title
TWI455501B (en) Methods and apparatus for extending mac control messages in epon
US9391768B2 (en) Transparent clock for precision timing distribution
US20030137975A1 (en) Ethernet passive optical network with framing structure for native Ethernet traffic and time division multiplexed traffic having original timing
JP4558703B2 (en) Burst data reception processing method and apparatus in Ethernet passive optical network
US9793993B2 (en) Method and apparatus of delivering upstream data in ethernet passive optical network over coaxial network
JP4969473B2 (en) Optical access network and optical communication path switching control system
JP2012516587A (en) Passive optical network system time synchronization method and synchronization system thereof
WO2010022607A1 (en) A delay control method in the passive optical network, an optical line terminal and a passive optical network
US9749076B2 (en) Method and apparatus for reconfiguring wavelength of optical network unit
US20110305450A1 (en) Misconnection Avoidance on Networks
WO2019114544A1 (en) Data transport method, device and system
CN109286864B (en) Registration-based information processing method and device and storage medium
US9615153B2 (en) System and method for applying an extended multipoint protocol to wireless access systems
WO2020259261A1 (en) Message processing method and device
Pfeiffer Considerations on transport latency in passive optical networks
JP4913876B2 (en) Bandwidth allocation apparatus and bandwidth allocation method
WO2024045815A1 (en) Registration method, related device and optical communication system
JP6529063B2 (en) PON system, OLT and transmission method
US9137195B2 (en) Method, network device and user equipment for switching media access control address
WO2011157167A2 (en) Method and device for transmitting data in passive optical network
CN115209245A (en) Data transmission method, optical line terminal, optical network unit and communication system
WO2024045814A1 (en) Data transmission method, related device and optical communication system
CN114979838A (en) Communication method, optical network unit, optical line terminal and optical communication system
WO2024045812A1 (en) Data transmission method, related equipment, and optical communication system
WO2024045813A1 (en) Data transmission method, related device, and system

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: 23858853

Country of ref document: EP

Kind code of ref document: A1