[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2024045814A1 - Data transmission method, related device and optical communication system - Google Patents

Data transmission method, related device and optical communication system Download PDF

Info

Publication number
WO2024045814A1
WO2024045814A1 PCT/CN2023/102548 CN2023102548W WO2024045814A1 WO 2024045814 A1 WO2024045814 A1 WO 2024045814A1 CN 2023102548 W CN2023102548 W CN 2023102548W WO 2024045814 A1 WO2024045814 A1 WO 2024045814A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication node
time slot
data stream
uplink
onu1
Prior art date
Application number
PCT/CN2023/102548
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 WO2024045814A1 publication Critical patent/WO2024045814A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • H04B10/275Ring-type networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/009Topology aspects
    • H04Q2011/0092Ring

Definitions

  • This application relates to the field of optical fiber communications, and in particular to a data transmission method, related equipment and optical communication systems.
  • 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.
  • Each communication node sends uplink data to the CO device based on a competition mechanism. For example, communication node 1 needs to send the first uplink data to the first CO device, and communication node 2 needs to send the second uplink data to the first CO device. The first CO device, communication node 1 and communication node 2 are connected in sequence. Communication node 2 sends the second uplink data to communication node 1. If the time slot occupied by the first uplink data in the data stream overlaps with the time slot occupied by the second uplink data in the data stream, the communication node 1 needs to determine the time slot occupied by the first uplink data in the data stream. The time slots and the time slots occupied by the second uplink data in the data stream are rearranged. For another example, the communication node 1 discards at least part of the first uplink data and/or discards at least part of the second uplink data.
  • the communication node 1 rearranges the time slots of the first upstream data stream and the second upstream data stream or discards the data to ensure that the data stream sent by the communication node 1 to the CO device is not occupied by the first upstream data.
  • the time slot coincides with the time slot occupied by the second uplink data.
  • time slot rearrangement will increase the delay of data transmission and worsen delay jitter, and lost data will trigger data retransmission, reducing the efficiency of data transmission.
  • Embodiments of the present application provide a data transmission method, related equipment and an optical communication system, which are used to reduce the delay and delay jitter of network transmission data and improve the efficiency of data transmission.
  • the first aspect of the embodiment of the present application provides a data transmission method.
  • the method includes: a first communication node receives a first uplink data stream from a second communication node, and the uplink service of the second communication node occupies the first communication node.
  • a first time slot of the upstream data stream the first time slot is indicated by the central office equipment; the first communication node carries the first communication node’s message on the second time slot of the first upstream data stream.
  • For uplink services a second uplink data stream is obtained, the second time slot is indicated by the central office equipment, the first time slot is different from the second time slot; the first communication node transmits data to the central office The device sends the second upstream data stream.
  • the time slots for each communication node included in the network to send uplink services are determined by the central office equipment. Instruction and control, there is no time overlap between the time slots indicated by the central office equipment, which avoids the possibility of conflicts in the time slots indicated by the central office equipment for different communication nodes. Since each communication node does not need to rearrange the time slots carrying uplink services from different communication nodes or delete the uplink services, it is ensured that the delay jitter of the uplink services sent by each communication node will not deteriorate. It reduces the probability of retransmission of uplink services sent by each communication node, effectively ensuring the transmission quality and transmission bandwidth of the ring network.
  • the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data
  • the method further includes: the first communication node receiving a first time slot scheduling message from the central office device, the first time slot scheduling message being used to indicate the first time slot and the the second time slot; the first communication node copies the first time slot scheduling message to obtain the second time slot scheduling message; the first communication node sends the second time slot scheduling message to the second communication node information.
  • the first communication node can send the time slot scheduling message to the downstream second communication node in time, which reduces the delay of the first communication node sending the time slot scheduling message to the second communication node.
  • the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data
  • the flow includes: the first communication node replaces the filling information carried on the second time slot with the uplink service of the first communication node to obtain a second uplink data stream.
  • the uplink data stream carrying the uplink service is a data stream with continuous signals, which enables the first communication node to directly carry its own uplink service in the uplink data stream from the second communication node, reducing the impact on each communication node.
  • the power and performance requirements of the optical signals processed by the optical modules of the communication nodes reduce the complexity of each optical module processing the upstream data flow and improve the efficiency of the optical module in processing the upstream data flow.
  • the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data
  • the method further includes: the first communication node determining that the third time slot of the first uplink data flow has carried valid uplink service, and the valid uplink service is the uplink service from another communication node, The third time slot is at least part of the second time slot; the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream.
  • obtaining the second uplink data stream includes: the first communication node replaces the effective uplink service with the uplink service of the first communication node, and obtains the second uplink data stream.
  • At least part of the second time slot indicated by the central office device to the first communication node is occupied by valid uplink services, and the first communication node can replace the valid uplink services carried on the third time slot with the first
  • the uplink service of the communication node is to ensure that the first communication node successfully sends the uplink service of the first communication node to the central office equipment.
  • the method before the first communication node sends the second uplink data stream to the central office device, the method further includes: the first communication node The third time slot carries a first indication message, and the first indication message is used to indicate that the first communication node has replaced the effective uplink service with the uplink service of the first communication node.
  • the first communication node determines that the third time slot has carried valid uplink services
  • the first communication node sends the first indication message to the central office device, so that the central office device can determine that the first communication node has carried
  • the valid uplink service carried on the third time slot is replaced with the uplink service of the first communication node.
  • the central office equipment can detect whether an error occurs in the second time slot indicated by the central office equipment for the first communication node based on the first indication message, thereby avoiding each communication node included in the ring network from sending uplink service occupation errors to the central office equipment. The probability of the time slot.
  • the third time slot is part of the second time slot
  • the first communication node Carrying the uplink service of the first communication node on the time slot, and obtaining the second uplink data stream includes: the first communication node carries the first communication node's service on the fourth time slot of the first uplink data stream.
  • the uplink service obtains the second uplink data stream
  • the fourth time slot is a time slot in the second time slot that is not occupied by the effective uplink service.
  • the first communication node can carry the first communication node on the fourth time slot of the first uplink data stream. uplink service to ensure that the first communication node successfully sends the uplink service of the first communication node to the central office equipment.
  • the method before the first communication node sends the second uplink data stream to the central office device, the method further includes: the first communication node The fourth time slot carries a second indication message, and the second indication message is used to indicate that the first communication node has carried the uplink service of the first communication node on the fourth time slot.
  • the first communication node if the first communication node has carried the uplink service of the first communication node on the fourth time slot, the first communication node sends the second indication message to the central office equipment, so that the central office equipment can determine the first The communication node has carried the uplink service of the first communication node on the fourth time slot.
  • the central office equipment can detect whether an error occurs in the second time slot indicated by the central office equipment for the first communication node based on the second indication message, thereby avoiding each communication node included in the ring network from sending uplink service occupation errors to the central office equipment. The probability of the time slot.
  • the first communication node sending the second uplink data stream to the central office device includes: the first communication node obtains the second uplink data stream The first time slot corresponding relationship includes the corresponding relationship between the first time slot and the communication node identifier carried by the first time slot; the first communication node obtains the second time slot Slot correspondence, the second time slot correspondence is the correspondence between the first time slot indicated by the central office equipment and the second communication node identifier; if the first communication node determines the first If the time slot corresponding relationship is the same as the second time slot corresponding relationship, the first communication node sends the second uplink data stream to the central office device.
  • the first communication node can detect whether the time slots occupied by the uplink services of each communication node included in the ring network in the second uplink data stream are accurate, and determine the uplink service of any communication node at the first communication node.
  • the first communication node can notify the central office device of the time slot occupancy error event to ensure that each communication node in the ring network transmits the upstream data stream.
  • Each communication node can send uplink services according to the time slot indicated by the central office equipment, effectively ensuring the transmission quality and efficiency of the ring network.
  • the method further includes: if the first communication node determines that the first time slot correspondence is If the second time slot correspondence is different, the first communication node sends the first time slot correspondence to the central office device.
  • the first communication node can detect an error in the time slot occupied by the uplink service of at least one communication node included in the ring network in the second uplink data stream, and determine the time slot of any communication node at the first communication node.
  • the first communication node may send the first time slot correspondence to the central office device to notify the occurrence of the time slot occupancy error.
  • 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 first uplink data stream from the second communication node, the method further includes: the first communication node Among the first RX and the second RX, the second RX is switched to a receiving port for receiving the first upstream data stream.
  • the first communication node can select one central office device to transmit uplink and downlink services among two or more connected central office devices, thereby improving the success rate of uplink and downlink service transmission.
  • the first communication node switches the second RX to receive the first uplink data stream among the first RX and the second RX. Before the receiving port, the method further includes: 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.
  • the first communication node selects central office equipment for uplink and downlink service transmission based on signal quality, which improves the quality of communication between the communication node and the central office equipment.
  • the first communication node switches the second RX between the first RX and the second RX to receive the first uplink data stream.
  • the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
  • the communication node when the second RX of the communication node fails, the communication node can switch to a state of performing uplink and downlink services with the central office equipment, which improves the successful transmission of uplink and downlink services.
  • 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 is connected between the central office equipment and the second communication node.
  • the second aspect of the embodiment of the present application provides a data transmission method.
  • the method includes: the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and obtains the first uplink service. Data flow, the first time slot is indicated by the central office equipment; the second communication node sends the first uplink data flow to the first communication node.
  • the method further includes: the second communication node receiving the initial upstream data flow.
  • the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream,
  • the method also includes:
  • the second communication node receives the initial upstream data stream.
  • the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream,
  • the method also includes:
  • the second communication node generates the initial upstream data stream.
  • the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream,
  • the method also includes:
  • the second communication node receives a second time slot scheduling message from the first communication node, and the second time slot scheduling message is used to indicate the first time slot.
  • 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 is connected between the central office equipment and the second communication node.
  • the third aspect of the embodiments of the present application provides a data transmission method.
  • the method includes: a first communication node receives a first downlink data stream from a central office device, and the first downlink data stream has carried downlink services; the first communication node Copy the first downlink data stream to obtain a second downlink data stream; the first communication node obtains the downlink service carried by the first downlink data stream; the first communication node sends a message to the second communication node The second downstream data stream.
  • the first communication node when the first communication node receives the first downlink data stream, it first copies the first downlink data stream to obtain the second downlink data stream, because the first communication node does not need to execute the process from the first downlink data stream.
  • the related operations of obtaining downlink services for a downlink data stream effectively reduce the delay of the first communication node sending the second downlink data stream to the second communication node, ensuring that each communication node included in the ring network obtains downlink services. Timeliness.
  • the method further includes: the first communication node obtains the first A first time slot scheduling message that has been carried by a downlink data stream.
  • the first time slot scheduling message is used to indicate a first time slot.
  • the uplink service of the first communication node occupies the first time slot of the uplink data stream. gap.
  • 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 first communication node receives the first downlink data stream from the central office equipment, and before the first downlink data stream has carried downlink services, the method further includes: the first communication node Among the first RX and the second RX, the first RX is switched to a receiving port for receiving the first downlink data stream.
  • the first communication node switches the first RX to receive the first downlink data 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 switches the first RX to receive the first downlink data among the first RX and the second RX. Before the receiving port of the flow, the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
  • 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.
  • the first uplink data stream, the uplink service of the second communication node occupies the first time slot of the first uplink data stream, and the first time slot is indicated by the central office equipment;
  • the service processor is configured to The second time slot of the first uplink data stream carries the uplink service of the communication node to obtain the second uplink data stream.
  • the second time slot is indicated by the central office equipment, and the first time slot is different from the first time slot. the second time slot; the transceiver is also used to send the second upstream data stream to the central office equipment.
  • the fifth 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 service processor is used to perform initial processing of the upstream data flow.
  • the first time slot carries the uplink service of the communication node to obtain the first uplink data stream.
  • the first time slot is indicated by the central office equipment; the transceiver is used to send the first time slot to another communication node. Upstream data flow.
  • 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 third signal from a central office device.
  • a downlink data stream, the first downlink data stream has carried downlink services; the service processor is used to copy the first downlink data stream to obtain a second downlink data stream; the service processor is used to obtain the The downlink service carried by the first downlink data flow; the receiving The transmitter is used to send the second downlink data stream to the other communication node.
  • 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 connected in sequence; the second communication node is used for initial uplink data processing.
  • the first time slot of the stream carries the uplink service of the second communication node to obtain a first uplink data stream; the second communication node is used to send the first uplink data stream to the first communication node;
  • the first communication node is configured to carry the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink data stream, the first time slot and the second
  • the time slots are respectively indicated by the central office equipment, and the first time slot is different from the second time slot; the first communication node is used to send the second upstream data stream to the central office equipment.
  • the eighth 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 connected in sequence; the central office device is configured to provide a signal to the first communication node.
  • the communication node sends a first downlink data stream, and the first downlink data stream has carried downlink services; the first communication node is used to copy the first downlink data stream to obtain a second downlink data stream; The first communication node is used to obtain the downlink service carried by the first downlink data flow; the first communication node is used to send the second downlink data flow to the second communication node.
  • a ninth 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 diagram of the first structure of a ring network provided by existing solutions
  • Figure 1b is a transmission example diagram of summarized uplink data provided by existing solutions
  • Figure 1c shows another example of transmission of aggregated uplink data provided by existing solutions
  • Figure 2 is a structural example diagram of a ring network provided by an embodiment of the present application.
  • Figure 3 is a first step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 4 is an example diagram of the transmission of the first time slot scheduling message provided by the embodiment of the present application.
  • Figure 5 is an example structural diagram of a downlink data frame provided by the embodiment of the present application.
  • Figure 6 is a first structural example diagram of an uplink data flow provided by the application embodiment
  • Figure 7a is a second step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 7b is a third step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 8a is an example diagram of the second structure of the uplink data flow provided by the embodiment of the present application.
  • Figure 8b is a third structural example diagram of the uplink data flow provided by the embodiment of the present application.
  • Figure 8c is a fourth structural example diagram of the uplink data flow provided by the embodiment of the present application.
  • Figure 9 is a fourth step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 10 is an example diagram of the structure of the downlink data flow provided by the embodiment of the present application.
  • Figure 11 is a transmission example diagram of a downlink data stream provided by an embodiment of the present application.
  • Figure 12 is an example diagram of the second structure of ring networking provided by existing solutions.
  • Figure 13 is a first structural example diagram of ONU1 provided by the embodiment of the present application.
  • Figure 14 is a fifth step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 15 is a sixth step flow chart of the data transmission method provided by the embodiment of the present application.
  • Figure 16 is a second structural example diagram of ONU1 provided by the embodiment of the present application.
  • Figure 17 is a structural example diagram of a communication device provided by an embodiment of the present application.
  • Figure 18 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
  • Figure 1a is an example diagram of the first structure of a ring network provided by existing solutions.
  • 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 information to the first CO device 101 or the second CO device 102.
  • the first CO device 101 is used to transmit data between each communication node and the upper layer network.
  • the first CO device 101 can act as a mediator between each communication node and the upper layer network.
  • the first CO device 101 can forward downlink traffic received from the upper layer network to the corresponding communication node and forward uplink traffic received from each communication node 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.
  • PSTN public switched telephone network
  • IPTV interactive Internet television
  • VoIP voice over Internet protocol
  • the following describes the workflow of ring networking: taking the data sent by the first CO1 device 101 to the communication node as downlink data as an example, if the first CO device 101 sends downlink data to the communication node 2, such as sending a control command, etc., the first CO device 101 sends downlink data to the communication node 2.
  • Device 101 sends downlink data to communication node 1 for communication node 2.
  • the communication node 1 receives the downlink data from the first CO device 101
  • the communication node 1 parses the downlink data and determines that the downlink data is sent to the communication node 2, then the communication node 1 continues to send the downlink data to the node 2. .
  • the communication node N sends uplink data to the first CO device 101
  • the communication node N is connected between the communication node N and the first CO device 101 via The communication nodes send the uplink data in sequence.
  • communication node N sends uplink data to communication node N-1, and by analogy, communication node 1 sends the uplink data to the first CO device 101.
  • each communication node sending uplink data to the CO device is based on a competition mechanism. Specifically, the communication node N-1 sends an uplink data stream to the first CO device, which aggregates the uplink data N sent by the communication node N to the first CO device 101 and the uplink data N- sent by the communication node N-1 to the first CO device 101. 1.
  • 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 N-1, communication node 2 does not need to communicate through the link between communication node 2 and communication node N-1.
  • Communication node 2 communicates with communication node 1 normally, The communication node 1 communicates with the first CO device 101 to ensure normal communication between the communication node 2 and the first CO device 101.
  • the communication node N-1 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 N-1 and the second CO device 102.
  • the traffic 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 N-1 needs to send The traffic to the first CO device 101 can be forwarded by the second CO device 102 .
  • Figure 1b is a transmission example diagram of summarized uplink data provided by existing solutions.
  • the uplink service N sent by communication node N to communication node N-1 occupies time slot T1 in the uplink data stream.
  • the starting time of time slot T1 is time t1
  • the end time of time slot T1 is time t3.
  • the uplink service N-1 that the communication node N-1 needs to send locally to the first CO device occupies the time slot T2.
  • the starting time of the time slot T2 is time t2 and the end time is time t4.
  • time t2 is greater than time t1 and less than time t3, and time t4 is greater than time t3.
  • time slot T1 and time slot T2 overlap (that is, they overlap from time t2 to time t3).
  • the communication node N-1 performs time slot rearrangement on the time slot T1 occupied by the uplink service N and the time slot T2 occupied by the uplink service N-1.
  • the starting time of time slot T3 is time t1, and the end time is time t3.
  • the starting time of time slot T4 is time t3, and the end time is time t5.
  • Time t3 is greater than time t2 and less than time t4, and time t5 is greater than time t4. It can be seen that there is no overlap in time slots between time slots T3 and T4 after time slot rearrangement, so as to ensure that there is no conflict between the transmission of uplink service N and the transmission of uplink service N-1.
  • the delay of the uplink service changes after the time slots are rearranged, which leads to the deterioration of service transmission delay and delay jitter.
  • uplink service N and uplink service N-1 occupy time slots from time t1 to time t4.
  • uplink service N and uplink service N-1 occupy time slots from time t1 to time t4.
  • time t5 it can be seen that the time slot rearrangement has led to the deterioration of the uplink service delay after the rearrangement.
  • Figure 1c shows another example of transmission of aggregated uplink data provided by existing solutions.
  • the uplink service N sent by the communication node N to the communication node N-1 occupies the time slot T1 in the uplink data stream, and the uplink service N-1 that the communication node N-1 needs to send locally to the first CO device occupies the time slot T2.
  • slot T1 and time slot T2 please refer to the above-mentioned method 1, and details will not be repeated.
  • the communication node N-1 deletes part of the data of the uplink service N and/or deletes part of the data of the uplink service N-1.
  • Communication node N-1 deletes part of the data of uplink service N-1, and the deleted uplink service N-1 Time slot T5 is occupied.
  • the starting time of time slot T5 is time t3 and the end time is time t4.
  • Time t4 is greater than time t3. It can be seen that there is no overlap in time slots between the uplink service N and the deleted uplink service N-1, so as to ensure that there is no conflict between the transmission of the uplink service N and the transmission of the uplink service N-1.
  • deleting the data will lead to retransmission of the data. For example, deleting part of the data of the uplink service N-1 will cause the communication node N-1 to retransmit the deleted data to the first CO device 101. data. If the number of communication nodes included in the ring network increases, the data transmission quality and transmission bandwidth will be greatly degraded.
  • This application provides a data transmission method that can reduce the delay and delay jitter of the communication node sending services to the CO device, and can also reduce the probability of service retransmission.
  • the method shown in this embodiment is applied to ring networking.
  • This embodiment does not limit the application scenarios of ring networking.
  • ring networking is used for optical transport network (OTN), industrial control, and data return. Transmission, data center and monitoring center, etc., there are no specific restrictions.
  • OTN optical transport network
  • Transmission, data center and monitoring center, etc. there are no specific restrictions.
  • the description of the ring networking structure please refer to the description of Figure 1a, and the details will not be repeated.
  • This embodiment does not limit the device types of each device included in the ring network.
  • the CO device can be a base station controller (BSC)
  • the communication node can be a base transciver station (BTS). ).
  • the CO device can be a server, etc., 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. RRU), as another example, the CO device can be a switch, and the communication node can be a terminal device such as a surveillance camera.
  • the CO equipment included in the ring network can be an optical line terminal (OLT), and the communication node can be an optical network unit (ONU).
  • OLT optical line terminal
  • ONU optical network unit
  • the ring networking applied in this application can be seen in Figure 2, where Figure 2 is a structural example diagram of the ring networking provided by the embodiment of this application.
  • the ring network 200 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 use an optical splitter between OLT1 and the adjacent ONU (ie, ONU1 shown in Figure 2).
  • 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. 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, etc.
  • Step 301 OLT1 sends the first time slot scheduling message to ONU1.
  • the OLT1 shown in this embodiment sends the first time slot scheduling message to the ONU1 directly connected to the OLT1 based on dynamic bandwidth assignment (DBA).
  • DBA dynamic bandwidth assignment
  • Step 302 ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
  • Figure 4 is an example diagram of the transmission of the first time slot scheduling message provided by the embodiment of the present application.
  • ONU1 After ONU1 receives the first time slot scheduling message from OLT1, ONU1 performs photoelectric conversion on the first time slot scheduling message and obtains the first time slot scheduling message in the form of an electrical signal. ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
  • the first time slot scheduling message is the same as the second time slot scheduling message.
  • the first time slot scheduling message is processed by ONU1.
  • ONU1 performs electro-optical conversion on the second time slot scheduling message, and obtains the converted second time slot scheduling message in the form of an optical signal.
  • ONU1 sends the second time slot scheduling message to ONU2 via the optical fiber connected between ONU1 and ONU2.
  • the first time slot scheduling message and the second time slot scheduling message shown in this embodiment are two identical time slot scheduling messages.
  • the first time slot scheduling message and the second time slot scheduling message are only the same.
  • the distinction between the two time slot scheduling messages is not limited.
  • ONU1 may also process the second time slot scheduling message, and ONU1 sends the first time slot scheduling message to ONU2.
  • FIG. 5 is an example structural diagram of a downlink data frame provided by an embodiment of the present application.
  • the downlink data frame 500 includes a physical synchronization block (PSBd) 501 and a physical layer frame payload (physical layer frame payload) 502.
  • PSBd501 includes fields physical synchronization (PSync) field 511, superframe counter (superframe counter, SFC) field 512, operation control (operation control, OC) field 513 and upstream bandwidth map (upstream bandwidth map, US BWmap) field 514 .
  • PSync physical synchronization
  • SFC superframe counter
  • operation control operation control
  • OC operation control
  • upstream bandwidth map upstream bandwidth map
  • US BWmap upstream bandwidth map
  • the Psync field 511 is a physical layer synchronization field, which can be used to carry downlink frame synchronization indicator symbols.
  • the SFC field 512 is used to carry the superframe number.
  • the superframe number carried by the SFC field 512 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 514 is the first time slot scheduling message shown in this embodiment. Specifically, the US BWmap field 514 includes N allocation structures (Allocation Structure).
  • Each Allocation Structure includes a bandwidth allocation identifier (allocation identifier, Alloc-ID) field 521, a slot start time (start time) field 522, and a grant size (Grant size) field 523.
  • Allocation ID1 field is used to carry the identifier (Identity, ID) of ONU1 authorized to send.
  • the start time field is used to indicate the starting time of the time slot allocated by OLT1 to ONU1.
  • the Grant size field 523 is used to Indicates the length of the time slot granted to ONU1.
  • the Allocation ID2 field is used to indicate the field allocated to ONU2 for OLT1, and so on.
  • the Allocation IDN field is the field allocated by OLT1 to ONUN. For the description of each Allocation ID field, please refer to the description of the Allocation ID1 field. The details will not be repeated.
  • the Alloc-ID1 field carries the identification (ID) of ONU1, and ONU1 obtains Allocation Structure1 including Alloc-ID1 from the downlink data frame 500.
  • ONU1 performs a cyclic redundancy check (CRC) check on the received Allocation Structure1. If the verification result is correct, ONU1 obtains the second time slot.
  • the starting time of the second time slot is the start time included in the Allocation Structure1 field that ONU1 has obtained, and the duration of the second time slot is the Grant size included in the Allocation Structure1 field.
  • each ONU In order to enable each ONU to send services to OLT1 If no conflict occurs, there is no overlap between the time slots indicated by OLT1 for each ONU (that is, there is no overlap between time slots as shown in Figure 1a and Figure 1b). For example, among the multiple time slots indicated by OLT1, there is a guard time between any two adjacent time slots.
  • the description of the downlink data frame 500 in this embodiment is optional and not limiting, as long as each ONU included in the ring network can obtain the corresponding time slot according to the downlink data frame 500 .
  • each Allocation Structure1 field may include an end time, and the end time is used to indicate the end time of the second time slot.
  • Step 303 ONU1 sends the second time slot scheduling message to ONU2.
  • ONU2 receives the second time slot scheduling message and processes the second time slot scheduling message.
  • For the process of ONU2 processing the second time slot scheduling message please refer to the process of ONU1 processing the first time slot scheduling message. The details will not be repeated.
  • ONU2 is connected to ONU3, ONU2 copies the second time slot scheduling message and obtains the third time slot scheduling message, and ONU2 sends the third time slot scheduling message to ONU3.
  • each ONU copies the time slot scheduling message from the upstream and forwards it to the downstream ONU until each ONU included in the ring network receives the time slot scheduling message from OLT1 time slot scheduling message.
  • each ONU sends uplink services to OLT1 based on the time division multiple access (TDMA) mechanism.
  • TDMA time division multiple access
  • the time slot scheduling message received by each ONU included in the ring network is taken as an example.
  • the time slot scheduling message received by each ONU included in the ring network comes from OLT1.
  • the time slot scheduling message received by each ONU included in the ring network can also come from OLT2.
  • the time slot scheduling messages received by some ONUs come from OLT1, while the time slot scheduling messages received by other ONUs come from OLT2.
  • OLT1 the time slot scheduling messages received by some ONUs come from OLT1
  • the time slot scheduling messages received by other ONUs come from OLT2.
  • Step 304 ONU2 sends the first upstream data stream to ONU1.
  • ONU2 needs to obtain the initial upstream data flow.
  • the initial upstream data flow is from the downstream ONU connected to ONU2. For example, if ONU3 is also connected between ONU2 and OLT2, ONU2 receives the initial upstream data stream from ONU3. ONU3 shown in this embodiment receives the above-mentioned third time slot scheduling message from ONU2. The third time slot scheduling message is used to indicate the time slot occupied by the uplink service for carrying ONU3.
  • the initial upstream data flow shown in this embodiment is a continuous data flow. If ONU3 does not need to send uplink services to OLT1, the initial upstream data flow is a continuous data flow that already carries filling information.
  • the initial upstream data stream includes time slots that carry filling information and time slots that carry ONU3's uplink services.
  • the filling information can be a regular or random byte string.
  • the third time slot scheduling message includes an Allocation Structure1 field, an Allocation Structure2 field, and an Allocation Structure3 field.
  • the start time included in the Allocation Structure1 field is TS1 and the Grant size is L1.
  • the start time included in the Allocation Structure2 field is TS2 and the Grant size is L2.
  • the Allocation Structure3 field includes a start time of TS3 and a Grant size of L3.
  • time TS1 is the earliest time among TS1, TS2, and TS3. It can be understood that each ONU included in the ring network (i.e. The upstream services that ONU1, ONU2 and ONU3 shown in this example need to be sent to OLT1 can all be carried in this initial upstream data stream.
  • This initial upstream data flow can also come from OLT2.
  • OLT2 For example, if ONU3 is also connected between ONU2 and OLT2, OLT2 generates the initial upstream data stream, and OLT2 sends the initial upstream data stream to ONU3. The details will not be described again.
  • the last ONU that interacts with OLT1 in uplink and downlink services is ONU2, then ONU2 generates the initial upstream data flow.
  • ONU3 For the description of the initial upstream data flow, please refer to ONU3 shown above. The instructions for generating the initial upstream data stream will not be described in detail.
  • ONU2 determines the first time slot according to the second time slot scheduling message.
  • the start time of the time slot indicated by Allocation Structure1 is time t1
  • the end time of the time slot is time t2.
  • the starting time of the time slot indicated by Allocation Structure2 is time t3, and the end time of the time slot is time t4.
  • time t1, time t2, time t3 and time t4 increase in sequence.
  • Alloc-ID2 included in Allocation Structure2 corresponds to ONU2, and ONU2 determines the first time slot based on Allocation Structure2.
  • the starting time of the first time slot is the starting time of the time slot included in Allocation Structure2
  • the end time of the first time slot is the end time of the time slot indicated by Allocation Structure2. It can be understood that in the example shown in Figure 6, the starting time of the first time slot is time t3, and the end time of the first time slot is time t4.
  • time t2 and time t3 there is a certain time interval between time t2 and time t3 as an example, and the time between time t2 and time t3 is the protection time shown in step 302. In other examples, time t2 and time t3 may also be the same time, which is not limited in this embodiment. It can be understood that in order to avoid overlapping of time slots in the uplink services sent by different ONUs to OLT1, there is no time overlap between time slots corresponding to different ONUs in the second time slot scheduling message.
  • ONU2 carries the uplink service of ONU2 on the first time slot of the initial upstream data stream 601, and obtains the first upstream data stream 602.
  • the first upstream data stream shown in this embodiment is a data stream with continuous signals.
  • ONU2 carries filling information on the idle time slots of the first upstream data stream.
  • the idle time slots are different from the first time slots. .
  • the starting time of the idle time slot is time t1 and the end time is time t3.
  • ONU2 can perform forward error correction (FEC) encoding on the first upstream data stream to send it to ONU1
  • FEC forward error correction
  • FEC encoding encodes the first upstream data stream so that the receiving end (ONU1) can directly detect errors in data transmission from the FEC-encoded first upstream data stream and correct transmission errors to a certain extent.
  • Using FEC coding can reduce the bit error rate and save the transmission power of ONU2 in sending the first upstream data stream to ONU1 under the same reception result.
  • ONU2 After ONU2 in this embodiment obtains the first upstream data stream, ONU2 performs electro-optical conversion on the first upstream data stream to send the first upstream data stream to ONU1 via the optical fiber connected between ONU2 and ONU1.
  • Step 305 ONU1 sends the second upstream data stream to OLT1.
  • ONU1 obtains the second time slot according to the first time slot scheduling message.
  • the second time slot is the time slot occupied by the uplink service of ONU1.
  • Alloc-ID1 of Allocation Structure1 carrying the first time slot scheduling message corresponds to ONU1.
  • ONU1 determines the second time slot based on Allocation Structure1.
  • the start time of the second time slot moment is the start time of the time slot included in Allocation Structure1
  • the end time of the second time slot is the end time of the time slot indicated by Allocation Structure1. It can be understood that in the example shown in Figure 6, the starting time of the second time slot is time t1, and the end time of the second time slot is time t2.
  • ONU1 After receiving the first upstream data stream 602, ONU1 performs photoelectric conversion on the first upstream data stream to obtain the first upstream data stream 602 in the form of an electrical signal. It can be seen from step 304 that ONU2 has carried filling information on the second time slot in the first upstream data stream. For this reason, when ONU1 detects that OLT1 has carried filling information on the second time slot indicated by ONU1 , ONU1 replaces the filling information carried on the second time slot with the uplink service of ONU1, and obtains the second uplink data stream 603.
  • the first upstream data stream is the FEC-encoded upstream data stream of ONU2
  • ONU1 first performs FEC decoding on the first upstream data stream
  • ONU1 performs FEC decoding on the first upstream data stream based on the FEC decoding of the first upstream data stream can detect errors occurring in data transmission in the first upstream data stream, and can correct transmission errors.
  • ONU1 obtains the second upstream data stream based on the FEC-decoded first upstream data stream.
  • ONU1 in this embodiment obtains the second upstream data stream, it performs electro-optical conversion on the second upstream data stream to send the second upstream data stream to OLT1 via the optical fiber connected between ONU1 and OLT1.
  • Step 306 OLT1 receives the second upstream data stream.
  • OLT1 When OLT1 receives the second upstream data stream, OLT1 can obtain the upstream service of ONU1 from the second time slot of the second upstream data stream. OLT1 can also obtain the upstream service of ONU2 from the first time slot of the second upstream data stream.
  • the optical module of OLT1 shown in this embodiment receives the second upstream data stream. Since the second upstream data stream shown in this embodiment is a data stream with continuous signals, the optical module of OLT1 is an optical module that can receive continuous signals. , there is no need to receive uplink data frames that are transmitted in bursts, which effectively reduces the performance requirements of the optical module of OLT1. Moreover, the optical module of OLT1 performs photoelectric conversion on the continuous second upstream data stream, which greatly reduces the complexity of OLT1's optical module processing the second upstream data stream and improves the efficiency of OLT1's optical module processing the second upstream data stream. . OLT1 can process the second upstream data stream of the electrical signal to obtain the upstream services of ONU1 and the upstream services of ONU2 carried in the second upstream data stream.
  • each ONU in the ring network carries its own uplink service on the time slot indicated by OLT1.
  • ONU2 shown above carries the uplink service of ONU2 on the first time slot allocated by OLT1.
  • each ONU included in the ring network sends uplink services based on TDMA transmission, that is, the time slots for each ONU to send uplink services are allocated and controlled by OLT1.
  • it avoids the uncertainty of time slots carrying each uplink service caused by each ONU in the ring network sending uplink services based on the competition mechanism.
  • each ONU Since each ONU sends its own uplink services based on TDMA, each ONU does not need to rearrange the time slots carrying uplink services from different ONUs or delete the uplink services, ensuring that the delay jitter of the uplink services sent by each ONU will not Deterioration occurs. It reduces the probability of retransmission of the uplink services sent by each ONU, effectively ensuring the transmission quality and transmission bandwidth of the ring network.
  • Each ONU transmits uplink services based on the time slot indicated by OLT1, which improves the controllability and transmission efficiency of uplink service transmission.
  • the upstream ONU (for example, ONU1) can directly carry its own upstream service on the upstream data stream from the downstream ONU (for example, ONU2). It reduces the power and performance requirements for the optical signals processed by the optical modules of each ONU and the OLT, reduces the complexity of each optical module processing the upstream data flow, and improves the efficiency of the optical module in processing the upstream data flow.
  • Figure 7a is a second step flow chart of the data transmission method provided by the embodiment of the present application.
  • the data transmission method shown in this embodiment illustrates the process of how ONU1 sends the uplink service of ONU1 to OLT1 when the time slot indicated by OLT1 for ONU1 has been occupied by other valid uplink services.
  • Step 701 OLT1 sends the first time slot scheduling message to ONU1.
  • Step 702 ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
  • Step 703 ONU1 sends the second time slot scheduling message to ONU2.
  • Step 704 ONU2 sends the first upstream data stream to ONU1.
  • Step 705 ONU1 detects whether the third time slot has been occupied by valid uplink services.
  • ONU1 determines the second time slot according to the first time slot scheduling message, and the process of ONU1 determining the second time slot according to the first time slot scheduling message is shown in corresponding step 305 in Figure 3, and details will not be described again.
  • ONU1 detects whether the third time slot in the first upstream data stream has been occupied by valid upstream services. Wherein, the third time slot is at least part of the second time slot.
  • Figure 8a is a second structural example diagram of an uplink data flow provided by an embodiment of the present application.
  • Figure 8b is a diagram showing a third structural example of an uplink data flow provided by an embodiment of the present application.
  • the effective uplink service is the uplink service from any ONU in the ring network.
  • the first uplink data stream 800 is an example in which all second time slots are occupied by valid uplink services. It can be understood that in the example shown in Figure 8a, the second time slot and the third time slot are the same, that is, the starting time is time t1 and the end time is time t3.
  • the first uplink data stream 810 is an example in which part of the second time slot is occupied by valid uplink services. Specifically, in the second time slot, valid uplink services have been carried from time t1 to time t2. From time t2 to time t3, the filling information has been carried. It can be understood that in the example shown in Figure 8b, the starting time of the second time slot is time t1 and the ending time is time t3, while the starting time of the third time slot is time t1 and the ending time is time t2.
  • the effective uplink service is the uplink service from ONU2. If the ring network also includes ONU3 connected between ONU2 and OLT2, the effective uplink service can also be the uplink service from ONU3, and the details will not be described again.
  • Step 706 ONU1 obtains the second upstream data stream.
  • ONU1 can send the second upstream data stream in different ways according to different situations where ONU1 detects whether the second time slot has been occupied by valid upstream services.
  • the following describes several ways in which ONU1 sends the second upstream data stream.
  • step 705 when ONU1 determines according to the first time slot scheduling message that the second time slot in the first upstream data stream is not occupied by valid uplink services, ONU1 carries ONU1's traffic on the second time slot of the first upstream data stream.
  • the uplink service obtains the second uplink data stream.
  • step 705 ONU1 determines that the second time slot has been fully occupied by valid uplink services. For example, as shown in Figure 8a, if the second time slot (the starting time is time t1 and the end time is time t3) has been completely occupied by valid uplink services, in this example the third time slot is the same as the second time slot, so The ONU1 replaces the valid uplink service occupying the second time slot with the uplink service of ONU1, and obtains the second uplink data stream 802.
  • ONU1 also carries the first indication message on the second time slot of the first upstream data stream 800 .
  • the first indication message is used to indicate that ONU1 has replaced the valid uplink service carried on the second time slot with the uplink service of ONU1.
  • the start time of the second time slot shown in Figure 8a is time t1
  • the end time is t3.
  • ONU1 carries the first indication message on the second time slot included in the first upstream data stream 800, and obtains the second upstream data stream 802.
  • the first indication message may include the start time t1 of the second time slot, the end time t3 and the identification of the ONU1 occupying the second time slot.
  • OLT1 can detect whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the first indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2.
  • step 705 ONU1 determines that the second time slot has been fully occupied by valid uplink services. For example, as shown in Figure 8a, if the second time slot (the starting time is time t1 and the end time is time t3) has been completely occupied by valid uplink services, in this example the third time slot is the same as the second time slot, so The ONU1 may temporarily not send the uplink services of ONU1 to OLT1. It can be understood that ONU1 shown in this optional method suspends the transmission of upstream services this time, thereby avoiding conflicts between the upstream services of ONU1 and the upstream services of other ONUs.
  • ONU1 carries a third indication message on the second time slot, and the third indication message is used to indicate that the second time slot has been fully occupied by valid uplink services.
  • the start time of the second time slot shown in Figure 8a is time t1
  • the end time is t3.
  • ONU1 carries the third indication message on the second time slot of the first upstream data stream 800 to obtain the second upstream data stream 801.
  • the third indication message may include the starting time t1, the ending time t3 of the second time slot, and the ONU identification of the valid uplink service occupying the second time slot.
  • OLT1 can detect whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the third indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2.
  • the second time slot is completely occupied by valid uplink services.
  • the second time slot is partially occupied by valid uplink services.
  • the second time slot includes a third time slot and a fourth time slot, where the third time slot is occupied by valid uplink services, and the fourth time slot already carries filling information.
  • the ONU1 replaces the effective uplink service occupying the third time slot with the uplink service of ONU1, and carries the uplink service of ONU1 on the fourth time slot.
  • the third time slot (the starting time is time t1, the ending time is time t2) in the second time slot (the starting time is time t1, the ending time is time t3) has been effectively uplinked, occupied.
  • the fourth time slot (the starting time is time t2 and the end time is time t3) already carries filling information.
  • ONU1 replaces the valid uplink service carried on the third time slot of the first upstream data stream 810 with the uplink service of ONU1, and ONU1 also replaces the filling information carried on the fourth time slot of the first upstream data stream 810
  • the second upstream data stream 811 is obtained.
  • ONU1 may also carry a first indication message in the second time slot, where the first indication message is used to indicate that ONU1 has replaced the valid uplink service carried on the third time slot with the uplink service of ONU1.
  • the second time slot is partially occupied by valid uplink traffic.
  • the second time slot includes a third time slot and a fourth time slot, where the third time slot is occupied by valid uplink services, and the fourth time slot already carries filling information.
  • the ONU1 suspends the transmission of uplink services this time, thereby avoiding conflicts between the uplink services of ONU1 and the uplink services of other ONUs.
  • ONU1 carries a third indication message on the second time slot. This third indication message is used to indicate that the second time slot has been fully occupied by valid uplink services.
  • optional method 3. shown and will not be described in details.
  • ONU1 determines the third time slot and the fourth time slot according to the first time slot scheduling message.
  • ONU1 shown in this example carries the uplink service of ONU1 on the fourth time slot.
  • the effective uplink service occupies the third time slot (the starting time is time t1 and the end time is time t2), while the fourth time slot (the starting time is time t2 t2, the end time is time t3) has carried filling information.
  • ONU1 replaces the filling information on the fourth time slot of the first upstream data stream 810 with the upstream service of ONU1, and obtains the second upstream data stream 812.
  • the ONU1 shown in this embodiment can carry the second indication message on the fourth time slot, and the second indication message is used to indicate that the ONU1 has carried the uplink service of the ONU1 on the fourth time slot.
  • Step 707 ONU1 sends the second upstream data stream to OLT1.
  • Step 708 OLT1 receives the second upstream data stream.
  • OLT1 When OLT1 receives the second upstream data stream, OLT1 obtains the upstream services of each ONU from the second upstream data stream. If the second upstream data stream has carried the first indication message, OLT1 detects whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the first indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2. If OLT1 determines that the ONU indicated by the second time slot has an error, OLT1 reconfigures the first time slot scheduling message to ensure that in the first time slot scheduling message, different time slots correspond to different ONU identities. OLT1 then sends the configured first time slot scheduling message to ONU1. For the specific sending process, please refer to step 701, which will not be described in detail.
  • ONU1 and OLT1 are directly connected as an example. If in other examples, one or more ONUs are connected between ONU1 and OLT1, then each ONU connected between OLT1 and ONU1 will execute the above execution by ONU1. The steps and specific execution process will not be described in detail.
  • ONU1 can detect whether the time slot indicated by OLT1 by ONU1 in the second upstream data stream is occupied by an error.
  • ONU1 determines that the time slot indicated by OLT1 is occupied by the valid uplink services of other ONUs, ONU1 can send an indication message to OLT1 to indicate the occurrence of a time slot occupation error, so that OLT1 can promptly detect whether the time slot indicated by ONU1 occurs. Allocation error. If an allocation error occurs, OLT1 can promptly adjust to the time slot indicated by ONU1, ensuring that ONU1 can subsequently send ONU1's uplink services to OLT1 in a timely manner.
  • Figure 7b is a third step flow chart of the data transmission method provided by the embodiment of the present application.
  • the data transmission method shown in this embodiment can detect whether each ONU in the ring network transmits uplink services according to the time slot indicated by OLT1.
  • Step 711 OLT1 sends the first time slot scheduling message to ONU1.
  • Step 712 ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
  • Step 713 ONU1 sends the second time slot scheduling message to ONU2.
  • Step 714 ONU2 sends the first upstream data stream to ONU1.
  • Step 715 ONU1 obtains the second upstream data stream.
  • step 715 For an explanation of the execution process of step 715 shown in this embodiment, please refer to step 305 in Figure 3 , and details will not be described again.
  • Step 716 ONU1 sends the second upstream data stream after time slot conflict detection to OLT1.
  • the ONU1 shown in this embodiment can detect whether the second upstream data stream passes the time slot conflict detection.
  • the time slot conflict detection means that the ONU1 detects whether the time slot actually used by each ONU in the ring network to carry the uplink service matches the time slot.
  • the timeslot indicated by OLT1 is the same for each ONU. The following describes the process of time slot conflict detection by ONU1 on the second upstream data stream:
  • ONU1 obtains the first time slot correspondence according to the second upstream data stream.
  • the first time slot correspondence includes the correspondence between each time slot and the downstream ONU identification carried by the time slot. It can be understood that ONU1 determines the identity of the downstream ONU that actually occupies each time slot according to the second upstream data stream.
  • the first time slot correspondence relationship can be shown in combination with Figure 8c and Table 1, where Figure 8c is a fourth structural example diagram of an uplink data stream provided by an embodiment of the present application.
  • ONU1 shown in this example obtains the second upstream data stream 820 as shown in Figure 8c.
  • the second upstream data stream 820 includes the second time slot and the identity of ONU1 carried by the second time slot.
  • the starting time of the first time slot is time t1 and the end time is time t2.
  • the second upstream data stream 820 includes the first time slot and the identity of ONU2 carried by the first time slot.
  • the starting time of the first time slot is time t3, and the end time is time t4.
  • the second upstream data stream 820 also includes a third time slot and an identification of ONU3 carried by the third time slot.
  • the starting time of the third time slot is time t5, the end time is time t6, and so on.
  • the second upstream data stream 820 also includes the Nth time slot and the Nth time slot. The identifier of the ONUN carried by the timeslot.
  • ONU1 obtains the second time slot correspondence according to the first time slot scheduling message.
  • the second time slot correspondence includes the identification of each ONU in the ring network and the correspondence between the time slots indicated by OLT1 for each ONU. It can be understood that ONU1 determines the time slot indicated by OLT1 for each ONU according to the first time slot scheduling message. The corresponding relationship of the second time slot can be seen in Table 2:
  • ONU1 creates the second time slot corresponding relationship as shown in Table 2 based on the N Allocation Structures included in the first time slot scheduling message. For example, ONU1 obtains the Alloc-ID1 corresponding to ONU1 and the corresponding second time slot based on Allocation Structure1. ONU1 obtains the Alloc-ID2 corresponding to ONU2 and the corresponding first time slot according to Allocation Structure2. Similarly, ONU1 obtains the Alloc-ID3 corresponding to ONU3 and the corresponding third time slot based on Allocation Structure3.
  • ONUN is also connected between ONU1 and OLT2
  • ONU1 obtains the Alloc-IDN corresponding to ONUN and the corresponding Nth time slot based on Allocation StructureN.
  • ONU1 determines whether the time slot for each ONU in the ring network to send uplink services is accurate based on the first time slot correspondence shown in Table 1 and the second time slot correspondence shown in Table 2. That is, ONU1 determines whether the time slot used by each ONU in the ring network to send uplink services is accurate.
  • the slot correspondence and the second time slot correspondence determine whether the time slot actually occupied by each ONU for sending uplink services is the same as the time slot indicated by OLT1. Specifically, if ONU1 determines that the corresponding relationship between the first time slot and the second time slot is the same, ONU1 determines that the time slot occupied by the uplink service sent by ONU1 is accurate.
  • the time slot actually occupied by ONU1 in the first upstream data stream (that is, the time slot carrying the upstream service of ONU1) is the same as the time slot indicated by OLT1 for ONU1 through the first time slot scheduling message.
  • ONU1 determines that the time slot occupied by the uplink service sent by ONU2 is accurate. That is, ONU2 is in the The time slot actually occupied in an uplink data stream (that is, the time slot carrying the uplink service of ONU2) is the same as the time slot indicated by OLT1 to ONU2 through the first time slot scheduling message.
  • the time slot actually occupied by ONU3 in the uplink data stream (that is, the time slot carrying the uplink service of ONU3) is the same as the time slot that OLT1 passes through the first time slot.
  • the time slot indicated by the scheduling message for ONU3 is the same.
  • the time slot actually occupied by ONUN in the upstream data stream (that is, the time slot carrying ONUN's upstream service) is the same as the time slot that OLT1 passes through the third time slot.
  • a time slot scheduling message indicates the same time slot as ONUN.
  • ONU1 determines that the corresponding relationship between the first time slot and the second time slot is the same, ONU1 determines that the second upstream data stream has passed the time slot conflict detection. Then ONU1 sends the second upstream data stream that passes the time slot conflict detection to OLT1.
  • ONU1 determines that the first time slot correspondence is different from the second time slot correspondence, ONU1 sends the first time slot correspondence to OLT1, and OLT1 detects that OLT1 is included in the ring network based on the first time slot correspondence. Whether there is an error in the time slot indicated by each ONU, ONU1 sends the first time slot correspondence to OLT1 for description, please refer to the description of ONU1 sending the first indication message to OLT1, and the details will not be repeated.
  • ONU1 detects whether the second upstream data stream passes the time slot conflict detection as an example. In other examples, ONU1 can also detect whether the first upstream data stream passes the time slot conflict detection when receiving the first upstream data stream from ONU2. For the process of detecting whether the first upstream data stream passes the time slot conflict detection through time slot conflict detection, please refer to the description of the process of detecting whether the second upstream data stream passes the time slot conflict detection, which will not be described in detail.
  • Step 717 OLT1 receives the second upstream data stream.
  • OLT1 receiving the second upstream data stream shown in this embodiment please refer to the description of OLT1 receiving the second upstream data stream shown in step 305 corresponding to Figure 3, and details will not be described again.
  • ONU1 and OLT1 are directly connected as an example. If in other examples, one or more ONUs are connected between ONU1 and OLT1, then each ONU connected between OLT1 and ONU1 will execute the above execution by ONU1. The steps and specific execution process will not be described in detail.
  • ONU1 can detect whether the time slots occupied by the upstream services of each ONU included in the ring network in the second upstream data stream are accurate, and ONU1 determines whether the upstream services of any ONU are in the second upstream data stream.
  • ONU1 can notify OLT1 of the time slot occupancy error event to ensure that when each ONU in the ring network transmits the upstream data stream, each ONU can follow the time slot indicated by OLT1
  • Sending uplink services effectively ensures the transmission quality of the ring network and the transmission bandwidth of each ONU for transmitting uplink services, and improves the controllability and transmission efficiency of transmitting uplink services.
  • Figure 9 is a flow chart of the fourth step of the data transmission method provided by the embodiment of the present application. .
  • Step 901 OLT1 sends the first downstream data stream to ONU1.
  • This embodiment takes OLT1 sending downlink services to ONU1 and ONU2 as an example.
  • OLT1 can send downlink services to a larger number of ONUs.
  • For the specific sending process please refer to OLT1 sending downlink services to ONU1 and ONU2 shown in this embodiment. Description of business.
  • OLT2 can also send downlink services to each ONU. Specifically, the For the process, please refer to the description of OLT1 sending downlink services to each ONU shown in this embodiment.
  • the structure of the first downlink data flow shown in this embodiment can be seen in Figure 10 , where Figure 10 is an example diagram of the structure of the downlink data flow provided by this embodiment of the present application.
  • the first downlink data stream 1000 shown in this embodiment includes M downlink data frames. That is, the first downlink data stream 1000 includes the first downlink data frame, the second downlink data frame to the M-th downlink data frame, where M is any positive integer greater than 1.
  • M is any positive integer greater than 1.
  • the payload of each downlink data frame carries downlink services. Taking the payload of the Mth downlink data frame as an example, the payload of the Mth downlink data frame has carried at least one of the downlink service sent to ONU1 or the downlink service sent to ONU2.
  • FIG. 11 is a transmission example diagram of a downlink data flow provided by an embodiment of the present application.
  • OLT1 obtains the first downlink service to be sent to ONU1 and the second downlink service to be sent to ONU2.
  • OLT1 encapsulates the first downlink service and the second downlink service to obtain the first downlink data stream 1000.
  • the first downstream data stream may also carry broadcast services sent to all connected ONUs, which are not limited in this embodiment.
  • OLT1 obtains the first downstream data stream shown in this embodiment, OLT1 performs electro-optical conversion on the first downstream data stream to obtain the first downstream data stream in the form of an optical signal.
  • OLT1 is connected to OLT1 based on The optical fiber between ONU1 and ONU1 sends the first downstream data stream in the form of optical signals to ONU1.
  • OLT1 in this embodiment obtains the first downstream data stream
  • OLT1 can perform FEC encoding on the first downstream data stream to send the FEC-encoded first downstream data stream to ONU1.
  • data flow For detailed description of FEC encoding, please refer to the description of the embodiment corresponding to Figure 3, and no further details will be given.
  • Step 902 ONU1 copies the first downstream data stream and obtains the second downstream data stream.
  • ONU1 receives the first downstream data stream 1001 through the optical fiber connected between ONU1 and OLT1. ONU1 performs photoelectric conversion on the first downstream data stream 1001 to obtain an electrical signal.
  • the first downstream data flow. As shown in Figure 10, ONU1 obtains the first downstream data stream 1001 after photoelectric conversion. ONU1 copies the first downstream data stream 1001 and obtains the second downstream data stream 1002. It can be understood that the first downstream data stream 1001 It is exactly the same as the content carried by the second downstream data stream 1002.
  • ONU1 can perform FEC decoding on the first downstream data stream before ONU1 copies the first downstream data stream, and ONU1 can decode the FEC on the first downstream data stream.
  • the subsequent first downstream data stream is copied to obtain the second downstream data stream.
  • Step 903 ONU1 obtains the first downlink service carried by the first downlink data stream.
  • ONU1 processes the first downstream data stream 1001 and obtains the first downstream service carried by the first downstream data stream 1001. Specifically, ONU1 obtains the downlink data frame carrying the ONU1 identification from the first downstream data stream based on the ONU1 identification, and ONU1 obtains the first downlink service from the payload of the downlink data frame carrying the ONU1 identification.
  • Step 904 ONU1 sends the second downstream data stream to ONU2.
  • This embodiment does not limit the execution timing between step 903 and step 904.
  • the ONU1 of ONU1 can perform FEC encoding on the second downstream data stream before performing electro-optical conversion on the second downstream data stream.
  • ONU1 then performs electro-optical conversion on the FEC-encoded second downstream data stream so as to pass through the connection between ONU1 and ONU2.
  • the optical fiber between ONU2 sends the second downstream data stream in the form of optical signal to ONU2.
  • Step 905 ONU2 obtains the second downlink service carried by the second downlink data stream.
  • ONU2 processes the second downlink data flow and obtains the second downlink service carried by the second downlink data flow. Specifically, ONU2 obtains the downlink data frame carrying the ONU2 identification from the second downstream data stream based on the ONU2 identification, and ONU2 obtains the second downlink service from the payload of the downlink data frame carrying the ONU2 identification.
  • ONU2 obtaining the second downlink service please refer to the process of ONU1 obtaining the first downlink service shown in step 903, which will not be described again.
  • ONU1 when ONU1 receives the first downstream data stream, it first copies the first downstream data stream to obtain the second downstream data stream, because ONU1 does not need to execute the first downstream data stream.
  • the related operations of obtaining the service for the second downstream data stream effectively reduce the delay of ONU1 sending the second downstream data stream to ONU2 and ensure the timeliness of each ONU included in the ring network obtaining the downstream service.
  • Figure 12 is an example diagram of the second structure of a ring network provided by an existing solution.
  • Figure 12 shows a ring network including ONU1, ONU2, ONU3 to ONUN.
  • ONU1 is connected to the first port of optical splitter 1201
  • the second port of optical splitter 1201 is connected to optical splitter 1202
  • the third port of optical splitter 1201 is connected to OLT1.
  • the connection of the optical splitter 1202, the optical splitter 1203 and the optical splitter 1204 please refer to the description of the optical splitter 1201, and the details will not be repeated.
  • OLT1 sends the first downlink data stream to the optical splitter 1201.
  • the optical splitter 1201 splits the first downlink data stream to obtain the first split data stream and the second split data stream.
  • the services carried by the first split data stream and the second split data stream are consistent.
  • the optical data of the first split data stream is the same.
  • the power is less than the optical power of the second split optical data stream.
  • the optical splitter 1201 sends the first split data stream to ONU1.
  • the optical splitter 1201 sends the second optical split data stream to the optical splitter 1202.
  • the optical splitter 1202 also splits the second optical data stream again.
  • each optical splitter 1202 in order to send downlink services to each ONU (such as ONU1), OLT1 needs to split the light through an optical splitter, resulting in a loss of optical power.
  • OLT1 in order to send downlink services to each ONU (such as ONU1), OLT1 needs to split the light through an optical splitter, resulting in a loss of optical power.
  • the optical power of the downlink data stream received by ONU2, Part of the light has been split to ONU1.
  • the loss of optical power makes it difficult and accurate for each ONU to obtain downlink services.
  • each optical splitter shown in Figure 12 is an unequal ratio optical splitter. If a larger number of optical splitters are connected to a ring network, the insertion loss of the ring network will be increased.
  • any two adjacent nodes included in the ring network shown in this embodiment are directly connected through optical fibers.
  • OLT1 and ONU1 are directly connected through optical fibers
  • ONU1 and ONU2 are directly connected through optical fibers.
  • the optical device is connected to reduce the insertion loss of the ring network.
  • each ONU performs photoelectric conversion on the downstream data stream and processes the downstream data stream in the form of electrical signals (as shown in the above copy), which reduces the efficiency of the downstream data stream received by each ONU. loss of optical power.
  • FIG. 13 is a first structural example diagram of the ONU1 provided by the embodiment of the present application.
  • the ONU1 shown in this embodiment includes an optical module 1301 and an optical module 1302.
  • the optical module 1301 includes the A transmitting port (transport, TX) and a first receiving port (receive, RX).
  • the optical module 1302 includes a second TX and a second RX.
  • 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 optical module 1301 can be a single-fiber bidirectional (BiDi) optical module or a dual-fiber optical module, and is not specifically limited.
  • the ONU1 shown in this embodiment also includes a switching device.
  • the switching device includes a detector 1310 and a switch array 1330 connected to the detector 1310 .
  • the switch array 1330 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 1330 includes four input ports, namely a first input port 1311, a second input port 1322, a third input port 1313 and a fourth input port 1324.
  • the switch array 1330 includes four output ports, namely a first output port 1321, a second output port 1312, a third output port 1323 and a fourth output port 1314.
  • the number of input ports and output ports included in the switch array 1330 shown in this embodiment is not limited.
  • the detector 1310 shown in this embodiment is used to connect any input port included in the switch array 1330 to the first output port included in the switch array 1330 .
  • 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 1310 causes the switch array 1303 to
  • the first input port 1311 is connected to the first output port 1321, and the first output port 1321 is connected to the first processing port 1341 of the service processor 1340.
  • the detector 1310 also connects the fourth output port 1314 of the switch array and the fourth input port 1324 , and the fourth input port 1324 is connected to the second processing port 1342 of the service processor 1340 .
  • the first input port 1311 and the fourth output port 1314 are both connected to the optical module 1301.
  • the detector 1310 connects the second output port 1312 of the switch array 1303 to the second input port 1322, and the second input port 1322 is connected to the third processing port 1343 of the service processor 1340.
  • the detector 1310 connects the third input port 1313 of the switch array 1330 to the third output port 1323, and the third output port 1323 is connected to the fourth processing port 1344 of the service processor 1340.
  • the detector 1310 shown in this embodiment may be one or more chips, or one or more integrated circuits.
  • the detector 1310 may be one or more field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), system on chips (SoCs), central processing units Central processor unit (CPU), network processor (NP), digital signal processing circuit (digital signal processor, DSP), microcontroller unit (MCU), 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
  • CPU Central processor unit
  • NP network processor
  • DSP digital signal processing circuit
  • MCU microcontroller unit
  • PLD programmable logic device
  • FIG. 14 is a fifth step flow chart of the data transmission method provided by the embodiment of the present application.
  • Step 1401 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 determines OLT1 as the main OLT, 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. In other examples, ONU1 can also select OLT2 as the main OLT.
  • ONU1 For instructions on ONU1 selecting OLT2 as the main OLT, please refer to the selection of ONU1 shown in this embodiment. The description of OLT1 as the main OLT will not be described in detail.
  • 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 1340 attempts to receive the downlink data stream through both the first RX and the second RX.
  • the service processor 1340 Processor 1340 determines OLT1 as the primary OLT.
  • the service processor 1340 attempts to receive the downlink data stream through both the first RX and the second RX.
  • the service processor 1340 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 1402 ONU1 receives the first downlink data stream through the first RX.
  • the service processor 1340 controls each input port and each output port included in the switch array 1330 to be in the first conduction mode through the detector 1310 .
  • the first conduction mode refers to that the first input port 1311 of the switch array 1303 is connected to the first output port 1321.
  • the fourth output port 1314 and the fourth input port 1324 of the switch array are connected.
  • the second output port 1312 of the switch array 1303 is connected to the second input port 1322.
  • the third input port 1313 of the switch array 1330 is connected to the third output port 1323.
  • the first RX of ONU1 receives the first downstream data stream from OLT1.
  • the optical module 1301 performs photoelectric conversion on the first downstream data stream to obtain a first downstream data stream in the form of an electrical signal.
  • the first downstream data flow is sequentially transmitted to the first processing port 1341 of the service processor 1340 via the first input port 1311 and the first output port 1321.
  • Industry The service processor 1340 is configured to obtain the downlink service from OLT1 for the first downlink data flow from the first processing port 1341.
  • the service processor 1340 obtains the first downlink service sent to ONU1 from the downlink time slot of the first downlink data stream.
  • ONU1 obtains a downlink data frame used to carry the first downlink service sent to ONU1 from the plurality of downlink data frames included in the first downlink data stream.
  • the destination address of the downlink data frame used to carry the first downlink service is the address or identification of ONU1.
  • ONU1 obtains the first downlink service from the downlink data frame.
  • the downlink data frame please refer to Figure 9, and the details will not be repeated.
  • Step 1403 ONU1 sends the second downlink data stream through the second TX.
  • ONU1 obtains the second downstream data stream to be sent to ONU2 according to the first downstream data stream.
  • OLT1 also uses OLT1 as the main OLT
  • ONU1 When ONU1 extracts the first downstream service sent to ONU1 from the downstream time slot of the first downstream data stream, ONU1 carries filling information in the downstream time slot to obtain the second downstream data stream.
  • ONU1 extracts the second downstream service from the first downstream data stream.
  • the second downlink service is the downlink service already carried by the first downlink data flow.
  • ONU1 determines that the second downlink service also needs to be sent to ONU2. For example, if ONU1 determines that the second downlink service is a service broadcast by OLT1.
  • the identifier included in the second downlink service is the identifier of ONU2, etc.
  • ONU1 re-carries the second downlink service on the first downlink data flow to obtain the second downlink data flow.
  • ONU1 After ONU1 receives the first downstream data stream, ONU1 copies the first downstream data stream to obtain the second downstream data stream. ONU1 extracts the first downlink service sent to ONU1 from the first downlink data stream. ONU1 directly sends the second downstream data stream to ONU2, which reduces the delay for ONU1 to send the second downstream data stream to ONU2.
  • the third processing port 1343 of the service processor 1340 outputs the second downstream data stream, and the second downstream data stream is sequentially transmitted to the optical module 1302 via the second input port 1343 and the second output port 1312 .
  • the optical module 1302 performs electro-optical conversion on the second downstream data stream to obtain a second downstream data stream in the form of an optical signal.
  • the optical module 1302 sends the second downlink data stream to ONU2 through the second TX.
  • Step 1404 ONU1 receives the first upstream data stream through the second RX.
  • ONU2 when ONU2 also uses OLT1 as the main OLT, ONU2 obtains that the second downstream data stream carries the time slot scheduling message from OLT1.
  • This time slot scheduling message is used to indicate the first time slot allocated by OLT1 to ONU2.
  • ONU2 carries the uplink services that ONU2 needs to send to OLT1 in the first uplink time slot of the first uplink data stream.
  • the time slot scheduling message please refer to the description of the corresponding embodiment in Figure 3, and details will not be described again.
  • Step 1405 ONU1 sends the second upstream data stream through the first TX.
  • ONU1 obtains that the first downstream data stream has carried the time slot scheduling message from OLT1. This time slot scheduling message is used to Indicates the second time slot allocated by OLT1 to ONU1. On the first upstream time slot of the first upstream data stream, ONU1 carries the upstream services that ONU1 needs to send to OLT1 to obtain the second upstream data stream.
  • This time slot scheduling message is used to Indicates the second time slot allocated by OLT1 to ONU1.
  • ONU1 On the first upstream time slot of the first upstream data stream, ONU1 carries the upstream services that ONU1 needs to send to OLT1 to obtain the second upstream data stream.
  • the first upstream data stream received by the second RX is sent to the optical module 1302 .
  • the optical module 1302 performs photoelectric conversion on the first upstream data stream to obtain a first upstream data stream in the form of an electrical signal.
  • the first upstream data stream is transmitted to the fourth processing port 1344 via the third input port 1313 and the third output port 1323 in sequence.
  • the service processor 1340 processes the first upstream data stream from the fourth processing port 1344 to obtain the second upstream data stream.
  • the service processor 1340 transmits to the optical module 1301 via the second processing port 1342, the fourth input port 1324, and the fourth output port 1314 in sequence.
  • the optical module 1301 performs electro-optical conversion on the first upstream data stream to obtain a first upstream data stream in the form of an optical signal.
  • ONU1 sends the first upstream data stream to OLT1 through the first TX.
  • FIG. 15 is a sixth step flow chart of the data transmission method provided by the embodiment of the present application.
  • OLT1 can normally send downlink data streams, but a fault event occurs between OLT2 and ONU1, resulting in the inability to perform normal uplink and downlink service transmission between OLT2 and ONU1.
  • Step 1501 ONU1 detects a fault event between the second RX and OLT2.
  • Figure 16 is a second structural example diagram of ONU1 provided by the embodiment of the present application.
  • the detector 1310 of ONU1 can be connected to the optical module 1302, and the detector 1310 detects whether the second RX of the optical module 1302 can receive the optical signal normally. If the detector 1310 continues to be unable to detect the event that the second RX successfully receives the optical signal beyond the preset time period or the optical power of the continuously detected optical signal is less than the preset threshold, then determine whether the second RX of OLT2 and ONU1 A fault event occurred during the period.
  • the detector 1310 is connected to the line between the optical module 1302 and the third input port 1313 .
  • the detector 1310 obtains the electrical signal output by the optical module 1302 based on the line.
  • the detector 1310 detects whether the electrical signal includes a continuous valid frame header. If not, it is determined that a fault event occurs between the OLT2 and the second RX of the ONU1. For another example, the detector 1310 detects that the bit error rate of the electrical signal exceeds a preset threshold.
  • This embodiment does not limit how the detector 1310 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 transmitted to ONU1. It can be understood that when ONU1 determines that a fault event occurs between the second RX and OLT2, ONU1 determines that OLT1 is the primary OLT.
  • Step 1502 The detector of ONU1 switches the switch array from the second conduction mode to the first conduction mode.
  • the switch array 1330 When the switch array 1330 is in the second conduction mode, the first input port 1311 of the switch array 1330 is connected to the third output port 1323, and the third output port 1323 is connected to the fourth processing port 1344.
  • the fourth output port 1314 of the switch array 1330 is connected to the second input port 1322, and the second input port 1322 is connected to the third processing port 1343.
  • the second output port 1312 of the switch array 1330 is connected to the fourth input port 1324, and the fourth input port 1324 is connected to the second processing port 1342.
  • the second input port 1313 of the switch array 1330 is connected to the first output port 1321, and the first output port 1321 is connected to the first processing port 1341.
  • the switch array 1330 is in the second conduction mode, the downlink data flow from the OLT2 can be transmitted to the service processor 1340 via the second RX, the third input port 1313 and the first output port 1321 of the optical module 1302, so as to make the business process
  • the processor 1340 processes the downlink traffic from OLT2.
  • the detector 1310 When the detector 1310 detects a fault event between OLT2 and the second RX, the detector 1310 switches the conduction mode of the switch array from that shown in Figure 16 to that shown in Figure 13, so that OLT1 is the main OLT and OLT2 is from OLT. After switching, ONU1 can receive the first downstream data stream from OLT1.
  • This example uses passive switching based on a fault event between OLT2 and ONU1.
  • OLT1 and OLT2 can also negotiate active switching, so that OLT1 switches to the master OLT and OLT2 switches to the slave OLT.
  • Step 1503 ONU1 selects the first RX and the first TX.
  • ONU1 determines the first RX as the receiving port that receives the downstream data stream of the main OLT (that is, OLT1).
  • Step 1504 ONU1 receives the first downlink data stream through the first RX.
  • step 1504 For an explanation of the execution process of step 1504 shown in this embodiment, please refer to the corresponding step 1402 shown in Figure 14, and details will not be described again.
  • Step 1505 ONU1 sends the second downlink data stream through the second TX.
  • ONU1 when ONU1 detects a fault event between OLT2 and ONU1, ONU1 can send the second downstream data stream to ONU2 to ensure that ONU2 can Successfully transmitted uplink and downlink services with OLT1.
  • step 1505 For the execution process of step 1505 shown in this embodiment, please refer to the corresponding step 1403 in Figure 14, and details will not be described again.
  • Step 1506 ONU1 receives the first upstream data stream through the second RX.
  • Step 1507 ONU1 sends the second upstream data stream through the first TX.
  • steps 1506 to 1507 For an explanation of the execution process of steps 1506 to 1507 shown in this embodiment, please refer to the corresponding steps 1404 to 1405 shown in Figure 14, and details will not be described again.
  • the switch array included in ONU1 can switch the conduction mode, so that the ONU1 that has switched the conduction mode can communicate with another OLT ( OLT1) as shown above transmits uplink and downlink services, so that ONU1 can perform data communication with another OLT, ensuring the successful transmission of uplink and downlink services of ONU1.
  • OLT1 another OLT
  • the switch array of the ONU can switch the conduction mode, so that the ONU that has switched the conduction mode of the switch array can communicate with
  • the transmission of upstream services between new main OLTs ensures the successful transmission of upstream services of each ONU in the ring network.
  • FIG. 17 is an example structural diagram of the communication device provided by an embodiment of the present application.
  • the communication device 1700 shown in this embodiment includes a transceiver 1701 and a service processor 1702, where the transceiver 1701 and the service processor 1702 are connected.
  • the communication device shown in this embodiment may be an OLT.
  • the transceiver 1701 included in the OLT is used to perform the tasks performed by the OLT in the embodiments shown in Figures 3, 7a, 7b, 9, 14 and 15. Processes related to sending and receiving.
  • the service processor 1702 included in the OLT is used to execute the processing-related processes executed by the OLT in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15.
  • the communication device shown in this embodiment can be any ONU included in the ring network.
  • the ONU includes a transceiver 1701 for Execute the processes related to transmission and reception performed by the ONU in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15.
  • the service processor 1702 included in the ONU is used to execute the processing-related processes executed by the ONU in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15.
  • the transceiver 1701 of the communication device 1700 may include the optical module 1301 and the optical module 1302 shown in Figure 13 or Figure 16.
  • the transceiver 1701 includes two optical modules as an example. In other examples, the transceiver 1701 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 networking type.
  • communication equipment including three optical modules can form a dual-ring network.
  • Figure 18 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
  • the dual-ring network 1800 includes OLT1 and ONU1 connected to OLT1.
  • the service processor 1802 of ONU1 is connected to the optical module 1801, the optical module 1803 and the optical module 1804 respectively.
  • Optical module 1801 is connected to OLT1
  • optical module 1803 is connected to ONU2
  • optical module 1801 is connected to ONU3.
  • the dual ring network 1800 also includes an ONU4 connected to the OLT2.
  • the ONU4 includes a service processor 1814.
  • the service processor 1814 is connected to the optical module 1811, the optical module 1812 and the optical module 1813 respectively.
  • the optical module 1811 is connected to ONU2.
  • the optical module 1812 is connected to ONU3.
  • the optical module 1813 is connected to the OLT2.
  • each optical module and service processor included in the ONU4 please refer to the description of the corresponding optical module in Figure 13 or Figure 16, and the details will not be repeated.
  • 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 the 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 13 or Figure 16.
  • a detector and a switch array as shown in Figure 13 or Figure 16.
  • Figure 13 or Figure 16 For specific description, please refer to the corresponding description of Figure 13 or Figure 16, and no further details will be given.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed in the present application are a data transmission method, a related device and an optical communication system, which are used for reducing the time delay and time delay jitter of data transmission in networking and increasing the efficiency of data transmission. The method comprises: a first communication node receiving a first uplink data stream from a second communication node, wherein an uplink service of the second communication node occupies a first time slot of the first uplink data stream, and the first time slot is indicated by a central office device; the first communication node carrying an uplink service of the first communication node in a second time slot of the first uplink data stream to obtain a second uplink data stream, wherein the second time slot is indicated by the central office device, and the first time slot is different from the second time slot; and the first communication node sending the second uplink data stream to the central office device.

Description

一种数据传输方法,相关设备以及光通信系统A data transmission method, related equipment and optical communication system
本申请要求于2022年8月31日提交中国国家知识产权局、申请号202211058808.6、申请名称为“一种数据传输方法,相关设备以及光通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application submitted to the State Intellectual Property Office of China on August 31, 2022, with application number 202211058808.6 and the application title "A data transmission method, related equipment and optical communication system", and its entire content has been approved This reference is incorporated into this application.
技术领域Technical field
本申请涉及光纤通信领域,尤其涉及一种数据传输方法,相关设备以及光通信系统。This application relates to the field of optical fiber communications, and in particular to a data transmission method, related equipment and optical communication systems.
背景技术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.
各个通信节点基于竞争机制向CO设备发送上行数据,例如,通信节点1需要向第一CO设备发送第一上行数据,通信节点2需要向第一CO设备发送第二上行数据。第一CO设备,通信节点1以及通信节点2依次连接。通信节点2向通信节点1发送该第二上行数据。若该第一上行数据在数据流中所占用的时隙与第二上行数据在数据流中所占用的时隙之间出现重合,则通信节点1需要对第一上行数据在数据流中所占用的时隙和第二上行数据在数据流中所占用的时隙进行重排。又如,通信节点1丢弃至少部分第一上行数据和/或丢弃至少部分第二上行数据。Each communication node sends uplink data to the CO device based on a competition mechanism. For example, communication node 1 needs to send the first uplink data to the first CO device, and communication node 2 needs to send the second uplink data to the first CO device. The first CO device, communication node 1 and communication node 2 are connected in sequence. Communication node 2 sends the second uplink data to communication node 1. If the time slot occupied by the first uplink data in the data stream overlaps with the time slot occupied by the second uplink data in the data stream, the communication node 1 needs to determine the time slot occupied by the first uplink data in the data stream. The time slots and the time slots occupied by the second uplink data in the data stream are rearranged. For another example, the communication node 1 discards at least part of the first uplink data and/or discards at least part of the second uplink data.
可见,通过通信节点1对第一上行数据流和第二上行数据流的时隙重排或丢弃数据的方式,以保证通信节点1向CO设备发送的数据流中不存在第一上行数据所占用的时隙与第二上行数据所占用的时隙的重合。但是,时隙重排会增大数据传输的时延以及带来延时抖动的恶化,而丢失数据会触发数据的重传,降低了数据传输的效率。It can be seen that the communication node 1 rearranges the time slots of the first upstream data stream and the second upstream data stream or discards the data to ensure that the data stream sent by the communication node 1 to the CO device is not occupied by the first upstream data. The time slot coincides with the time slot occupied by the second uplink data. However, time slot rearrangement will increase the delay of data transmission and worsen delay jitter, and lost data will trigger data retransmission, reducing the efficiency of data transmission.
发明内容Contents of the invention
本申请实施例提供了一种数据传输方法,相关设备以及光通信系统,其用于降低组网传输数据的时延以及时延抖动,提高数据传输的效率。Embodiments of the present application provide a data transmission method, related equipment and an optical communication system, which are used to reduce the delay and delay jitter of network transmission data and improve the efficiency of data transmission.
本申请实施例第一方面提供了一种数据传输方法,所述方法包括:第一通信节点接收来自第二通信节点的第一上行数据流,所述第二通信节点的上行业务占用所述第一上行数据流的第一时隙,所述第一时隙由中心局设备指示;所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流,所述第二时隙由所述中心局设备指示,所述第一时隙不同于所述第二时隙;所述第一通信节点向所述中心局设备发送所述第二上行数据流。The first aspect of the embodiment of the present application provides a data transmission method. The method includes: a first communication node receives a first uplink data stream from a second communication node, and the uplink service of the second communication node occupies the first communication node. A first time slot of the upstream data stream, the first time slot is indicated by the central office equipment; the first communication node carries the first communication node’s message on the second time slot of the first upstream data stream. For uplink services, a second uplink data stream is obtained, the second time slot is indicated by the central office equipment, the first time slot is different from the second time slot; the first communication node transmits data to the central office The device sends the second upstream data stream.
采用本方面所示的方法,组网所包括的各个通信节点发送上行业务的时隙由中心局设备 指示和控制,中心局设备所指示的各个时隙之间无时间上的重叠,避免了中心局设备为不同的通信节点所指示的时隙出现冲突的可能。因各个通信节点无需对承载来自不同通信节点的上行业务的时隙进行重排或上行业务的删除,保证了各通信节点所发送的上行业务的时延抖动不会出现恶化等情况。降低了各通信节点所发送的上行业务重传的概率,有效的保证了环形组网的传输质量以及传输带宽。Using the method shown in this aspect, the time slots for each communication node included in the network to send uplink services are determined by the central office equipment. Instruction and control, there is no time overlap between the time slots indicated by the central office equipment, which avoids the possibility of conflicts in the time slots indicated by the central office equipment for different communication nodes. Since each communication node does not need to rearrange the time slots carrying uplink services from different communication nodes or delete the uplink services, it is ensured that the delay jitter of the uplink services sent by each communication node will not deteriorate. It reduces the probability of retransmission of uplink services sent by each communication node, effectively ensuring the transmission quality and transmission bandwidth of the ring network.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流之前,所述方法还包括:所述第一通信节点接收来自所述中心局设备的第一时隙调度消息,所述第一时隙调度消息用于指示所述第一时隙以及所述第二时隙;所述第一通信节点复制所述第一时隙调度消息,获得第二时隙调度消息;所述第一通信节点向所述第二通信节点发送所述第二时隙调度消息。Based on the first aspect, in an optional implementation manner, the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data Before the flow, the method further includes: the first communication node receiving a first time slot scheduling message from the central office device, the first time slot scheduling message being used to indicate the first time slot and the the second time slot; the first communication node copies the first time slot scheduling message to obtain the second time slot scheduling message; the first communication node sends the second time slot scheduling message to the second communication node information.
采用本实现方式,第一通信节点能够及时向下游的第二通信节点发送时隙调度消息,降低了第一通信节点向第二通信节点发送时隙调度消息的时延。Using this implementation method, the first communication node can send the time slot scheduling message to the downstream second communication node in time, which reduces the delay of the first communication node sending the time slot scheduling message to the second communication node.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:所述第一通信节点将所述第二时隙上已承载的填充信息替换为所述第一通信节点的上行业务,获得第二上行数据流。Based on the first aspect, in an optional implementation manner, the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data The flow includes: the first communication node replaces the filling information carried on the second time slot with the uplink service of the first communication node to obtain a second uplink data stream.
采用本实现方式,承载上行业务的上行数据流为信号连续的数据流,则使得第一通信节点能够将自身的上行业务,直接承载于来自第二通信节点的上行数据流中,降低了对各通信节点的光模块所处理的光信号的功率以及性能要求,降低了各光模块处理上行数据流的复杂度,提高了光模块处理上行数据流的效率。Using this implementation method, the uplink data stream carrying the uplink service is a data stream with continuous signals, which enables the first communication node to directly carry its own uplink service in the uplink data stream from the second communication node, reducing the impact on each communication node. The power and performance requirements of the optical signals processed by the optical modules of the communication nodes reduce the complexity of each optical module processing the upstream data flow and improve the efficiency of the optical module in processing the upstream data flow.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流之前,所述方法还包括:所述第一通信节点确定所述第一上行数据流的第三时隙上已承载有效上行业务,所述有效上行业务为来自另一通信节点的上行业务,所述第三时隙为所述第二时隙中的至少部分时隙;所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:所述第一通信节点将所述有效上行业务替换为所述第一通信节点的上行业务,获得所述第二上行数据流。Based on the first aspect, in an optional implementation manner, the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtains the second uplink data Before the flow, the method further includes: the first communication node determining that the third time slot of the first uplink data flow has carried valid uplink service, and the valid uplink service is the uplink service from another communication node, The third time slot is at least part of the second time slot; the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream. , obtaining the second uplink data stream includes: the first communication node replaces the effective uplink service with the uplink service of the first communication node, and obtains the second uplink data stream.
采用本实现方式,在中心局设备为第一通信节点所指示的第二时隙至少部分被有效上行业务占用,第一通信节点能够将第三时隙上已承载的有效上行业务替换为第一通信节点的上行业务,以保证第一通信节点成功向中心局设备发送第一通信节点的上行业务。With this implementation, at least part of the second time slot indicated by the central office device to the first communication node is occupied by valid uplink services, and the first communication node can replace the valid uplink services carried on the third time slot with the first The uplink service of the communication node is to ensure that the first communication node successfully sends the uplink service of the first communication node to the central office equipment.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述中心局设备发送所述第二上行数据流之前,所述方法还包括:所述第一通信节点在所述第三时隙上承载第一指示消息,所述第一指示消息用于指示所述第一通信节点已将所述有效上行业务替换为所述第一通信节点的上行业务。Based on the first aspect, in an optional implementation manner, before the first communication node sends the second uplink data stream to the central office device, the method further includes: the first communication node The third time slot carries a first indication message, and the first indication message is used to indicate that the first communication node has replaced the effective uplink service with the uplink service of the first communication node.
采用本实现方式,第一通信节点确定第三时隙上已承载有效上行业务,则第一通信节点向中心局设备发送该第一指示消息,以使中心局设备能够确定第一通信节点已将第三时隙上已承载的有效上行业务替换为第一通信节点的上行业务。中心局设备能够基于该第一指示消息检测中心局设备为第一通信节点所指示的第二时隙是否出现错误,避免了环形组网所包括的各个通信节点向中心局设备发送上行业务占用错误时隙的概率。 Using this implementation, if the first communication node determines that the third time slot has carried valid uplink services, the first communication node sends the first indication message to the central office device, so that the central office device can determine that the first communication node has carried The valid uplink service carried on the third time slot is replaced with the uplink service of the first communication node. The central office equipment can detect whether an error occurs in the second time slot indicated by the central office equipment for the first communication node based on the first indication message, thereby avoiding each communication node included in the ring network from sending uplink service occupation errors to the central office equipment. The probability of the time slot.
基于第一方面,一种可选的实现方式中,所述第三时隙为所述第二时隙中的部分时隙,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:所述第一通信节点在所述第一上行数据流的第四时隙上承载所述第一通信节点的上行业务,获得所述第二上行数据流,所述第四时隙为所述第二时隙中未被所述有效上行业务占用的时隙。Based on the first aspect, in an optional implementation manner, the third time slot is part of the second time slot, and the first communication node Carrying the uplink service of the first communication node on the time slot, and obtaining the second uplink data stream includes: the first communication node carries the first communication node's service on the fourth time slot of the first uplink data stream. The uplink service obtains the second uplink data stream, and the fourth time slot is a time slot in the second time slot that is not occupied by the effective uplink service.
采用本实现方式,在中心局设备为第一通信节点所指示的第二时隙部分被有效上行业务占用,第一通信节点能够在第一上行数据流的第四时隙上承载第一通信节点的上行业务,以保证第一通信节点成功向中心局设备发送第一通信节点的上行业务。Using this implementation, when the central office equipment indicates that the part of the second time slot indicated by the first communication node is occupied by effective uplink services, the first communication node can carry the first communication node on the fourth time slot of the first uplink data stream. uplink service to ensure that the first communication node successfully sends the uplink service of the first communication node to the central office equipment.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述中心局设备发送所述第二上行数据流之前,所述方法还包括:所述第一通信节点在所述第四时隙上承载第二指示消息,所述第二指示消息用于指示所述第一通信节点已在所述第四时隙上承载所述第一通信节点的上行业务。Based on the first aspect, in an optional implementation manner, before the first communication node sends the second uplink data stream to the central office device, the method further includes: the first communication node The fourth time slot carries a second indication message, and the second indication message is used to indicate that the first communication node has carried the uplink service of the first communication node on the fourth time slot.
采用本实现方式,第一通信节点已在第四时隙上承载第一通信节点的上行业务,则第一通信节点向中心局设备发送该第二指示消息,以使中心局设备能够确定第一通信节点已在第四时隙上承载第一通信节点的上行业务。中心局设备能够基于该第二指示消息检测中心局设备为第一通信节点所指示的第二时隙是否出现错误,避免了环形组网所包括的各个通信节点向中心局设备发送上行业务占用错误时隙的概率。Using this implementation, if the first communication node has carried the uplink service of the first communication node on the fourth time slot, the first communication node sends the second indication message to the central office equipment, so that the central office equipment can determine the first The communication node has carried the uplink service of the first communication node on the fourth time slot. The central office equipment can detect whether an error occurs in the second time slot indicated by the central office equipment for the first communication node based on the second indication message, thereby avoiding each communication node included in the ring network from sending uplink service occupation errors to the central office equipment. The probability of the time slot.
基于第一方面,一种可选的实现方式中,所述第一通信节点向所述中心局设备发送所述第二上行数据流包括:所述第一通信节点获得所述第二上行数据流的第一时隙对应关系,所述第一时隙对应关系包括所述第一时隙与所述第一时隙所承载的通信节点标识的对应关系;所述第一通信节点获得第二时隙对应关系,所述第二时隙对应关系由所述中心局设备指示的所述第一时隙与所述第二通信节点标识的对应关系;若所述第一通信节点确定所述第一时隙对应关系与所述第二时隙对应关系相同,则所述第一通信节点向所述中心局设备发送所述第二上行数据流。Based on the first aspect, in an optional implementation manner, the first communication node sending the second uplink data stream to the central office device includes: the first communication node obtains the second uplink data stream The first time slot corresponding relationship includes the corresponding relationship between the first time slot and the communication node identifier carried by the first time slot; the first communication node obtains the second time slot Slot correspondence, the second time slot correspondence is the correspondence between the first time slot indicated by the central office equipment and the second communication node identifier; if the first communication node determines the first If the time slot corresponding relationship is the same as the second time slot corresponding relationship, the first communication node sends the second uplink data stream to the central office device.
采用本实现方式,第一通信节点能够检测第二上行数据流中,环形组网所包括的各通信节点的上行业务所占用的时隙是否准确,在第一通信节点确定任一通信节点的上行业务在第二上行数据流中占用错误的情况下,第一通信节点可向中心局设备通知出现时隙占用错误的事件,以保证环形组网的各个通信节点传输上行数据流的过程中,每个通信节点均能够按照中心局设备所指示的时隙发送上行业务,有效的保证了环形组网的传输质量和传输效率。Using this implementation, the first communication node can detect whether the time slots occupied by the uplink services of each communication node included in the ring network in the second uplink data stream are accurate, and determine the uplink service of any communication node at the first communication node. When the service occupies errors in the second upstream data stream, the first communication node can notify the central office device of the time slot occupancy error event to ensure that each communication node in the ring network transmits the upstream data stream. Each communication node can send uplink services according to the time slot indicated by the central office equipment, effectively ensuring the transmission quality and efficiency of the ring network.
基于第一方面,一种可选的实现方式中,所述第一通信节点获得第二时隙对应关系之后,所述方法还包括:若所述第一通信节点确定第一时隙对应关系与所述第二时隙对应关系不同,则所述第一通信节点向所述中心局设备发送所述第一时隙对应关系。Based on the first aspect, in an optional implementation manner, after the first communication node obtains the second time slot correspondence, the method further includes: if the first communication node determines that the first time slot correspondence is If the second time slot correspondence is different, the first communication node sends the first time slot correspondence to the central office device.
采用本实现方式,第一通信节点能够检测第二上行数据流中,环形组网所包括的至少一个通信节点的上行业务所占用的时隙出现错误,在第一通信节点确定任一通信节点的上行业务在第二上行数据流中占用错误的情况下,第一通信节点可向中心局设备发送第一时隙对应关系,以通知出现时隙占用错误的事件。Using this implementation, the first communication node can detect an error in the time slot occupied by the uplink service of at least one communication node included in the ring network in the second uplink data stream, and determine the time slot of any communication node at the first communication node. When the uplink service occupies an error in the second uplink data stream, the first communication node may send the first time slot correspondence to the central office device to notify the occurrence of the time slot occupancy error.
基于第一方面,一种可选的实现方式中,所述第一通信节点的第一接收端口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 first uplink data stream from the second communication node, the method further includes: the first communication node Among the first RX and the second RX, the second RX is switched to a receiving port for receiving the first upstream data stream.
采用本实现方式,第一通信节点能够在所连接的两个或两个以上中心局设备中,选择一个中心局设备进行上下行业务的传输,提高上下行业务传输的成功率。Using this implementation method, the first communication node can select one central office device to transmit uplink and downlink services among two or more connected central office devices, thereby improving the success rate of uplink and downlink service transmission.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一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 first uplink data stream among the first RX and the second RX. Before the receiving port, the method further includes: 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.
采用本实现方式,第一通信节点基于信号质量选择用于进行上下行业务传输的中心局设备,提高了通信节点与中心局设备通信的质量。Using this implementation, the first communication node selects central office equipment for uplink and downlink service transmission based on signal quality, which improves the quality of communication between the communication node and the central office equipment.
基于第一方面,一种可选的实现方式中,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述第一上行数据流的接收端口之前,所述方法还包括:所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。Based on the first aspect, in an optional implementation manner, the first communication node switches the second RX between the first RX and the second RX to receive the first uplink data stream. Before the receiving port, the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
采用本实现方式,在通信节点的第二RX出现故障事件的情况下,通信节点能够切换至与中心局设备进行上下行业务的状态,提高了上下行业务的成功传输。Using this implementation method, when the second RX of the communication node fails, the communication node can switch to a state of performing uplink and downlink services with the central office equipment, which improves the successful transmission of uplink and downlink services.
基于第一方面,一种可选的实现方式中,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点连接于所述中心局设备和所述第二通信节点之间。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 is connected between the central office equipment and the second communication node.
本申请实施例第二方面提供了一种数据传输方法,所述方法包括:第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流,所述第一时隙由中心局设备指示;所述第二通信节点向第一通信节点发送所述第一上行数据流。The second aspect of the embodiment of the present application provides a data transmission method. The method includes: the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and obtains the first uplink service. Data flow, the first time slot is indicated by the central office equipment; the second communication node sends the first uplink data flow to the first 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 second aspect, in an optional implementation manner, before the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data flow according to the second time slot scheduling message, The method further includes: the second communication node receiving the initial upstream data flow.
基于第二方面,一种可选的实现方式中,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:Based on the second aspect, in an optional implementation manner, the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream, The method also includes:
所述第二通信节点接收所述初始上行数据流。The second communication node receives the initial upstream data stream.
基于第二方面,一种可选的实现方式中,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:Based on the second aspect, in an optional implementation manner, the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream, The method also includes:
所述第二通信节点生成所述初始上行数据流。The second communication node generates the initial upstream data stream.
基于第二方面,一种可选的实现方式中,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:Based on the second aspect, in an optional implementation manner, the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream, The method also includes:
所述第二通信节点接收来自所述第一通信节点的第二时隙调度消息,所述第二时隙调度消息用于指示所述第一时隙。The second communication node receives a second time slot scheduling message from the first communication node, and the second time slot scheduling message is used to indicate the first time slot.
基于第二方面,一种可选的实现方式中,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点连接于所述中心局设备和所述第二通信节点之间。Based on the second 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 is connected between the central office equipment and the second communication node.
本申请实施例第三方面提供了一种数据传输方法,所述方法包括:第一通信节点接收来自中心局设备的第一下行数据流,所述第一下行数据流已承载下行业务;所述第一通信节点 复制所述第一下行数据流,获得第二下行数据流;所述第一通信节点获得所述第一下行数据流已承载的下行业务;所述第一通信节点向第二通信节点发送所述第二下行数据流。The third aspect of the embodiments of the present application provides a data transmission method. The method includes: a first communication node receives a first downlink data stream from a central office device, and the first downlink data stream has carried downlink services; the first communication node Copy the first downlink data stream to obtain a second downlink data stream; the first communication node obtains the downlink service carried by the first downlink data stream; the first communication node sends a message to the second communication node The second downstream data stream.
采用本方面所示的方法,第一通信节点接收到第一下行数据流的情况下,先复制该第一下行数据流以获得第二下行数据流,因第一通信节点无需执行从第一下行数据流获得下行业务的相关操作,有效的降低了第一通信节点向第二通信节点发送第二下行数据流的时延,保证了环形组网所包括的各个通信节点获得下行业务的及时性。Using the method shown in this aspect, when the first communication node receives the first downlink data stream, it first copies the first downlink data stream to obtain the second downlink data stream, because the first communication node does not need to execute the process from the first downlink data stream. The related operations of obtaining downlink services for a downlink data stream effectively reduce the delay of the first communication node sending the second downlink data stream to the second communication node, ensuring that each communication node included in the ring network obtains downlink services. Timeliness.
基于第三方面,一种可选的实现方式中,所述第一通信节点接收来自中心局设备的第一下行数据流之后,所述方法还包括:所述第一通信节点获得所述第一下行数据流已承载的第一时隙调度消息,所述第一时隙调度消息用于指示第一时隙,所述第一通信节点的上行业务占用上行数据流的所述第一时隙。Based on the third aspect, in an optional implementation manner, after the first communication node receives the first downlink data stream from the central office device, the method further includes: the first communication node obtains the first A first time slot scheduling message that has been carried by a downlink data stream. The first time slot scheduling message is used to indicate a first time slot. The uplink service of the first communication node occupies the first time slot of the uplink data stream. gap.
基于第三方面,一种可选的实现方式中,所述第一通信节点的第一接收端口RX与所述中心局设备连接,所述第一通信节点的第二RX与所述第二通信节点连接,所述第一通信节点接收来自中心局设备的第一下行数据流,所述第一下行数据流已承载下行业务之前,所述方法还包括:所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口。Based on the third 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, the first communication node receives the first downlink data stream from the central office equipment, and before the first downlink data stream has carried downlink services, the method further includes: the first communication node Among the first RX and the second RX, the first RX is switched to a receiving port for receiving the first downlink data stream.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects in this aspect, please refer to the first aspect, and details will not be repeated.
基于第三方面,一种可选的实现方式中,所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口之前,所述方法还包括:所述第一通信节点检测到经由所述第一RX所接收到的信号质量优于经由所述第二RX所接收到的信号质量。Based on the third aspect, in an optional implementation manner, the first communication node switches the first RX to receive the first downlink data among the first RX and the second RX. Before the receiving port of the flow, 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.
基于第三方面,一种可选的实现方式中,所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口之前,所述方法还包括:所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。Based on the third aspect, in an optional implementation manner, the first communication node switches the first RX to receive the first downlink data among the first RX and the second RX. Before the receiving port of the flow, the method further includes: the first communication node detects a failure event in the optical signal received via the second RX.
本申请实施例第四方面提供了一种通信节点,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;所述收发器用于接收来自另一通信节点的第一上行数据流,所述第二通信节点的上行业务占用所述第一上行数据流的第一时隙,所述第一时隙由中心局设备指示;所述业务处理器用于在所述第一上行数据流的第二时隙上承载所述通信节点的上行业务,获得第二上行数据流,所述第二时隙由所述中心局设备指示,所述第一时隙不同于所述第二时隙;所述收发器还用于向所述中心局设备发送所述第二上行数据流。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. The first uplink data stream, the uplink service of the second communication node occupies the first time slot of the first uplink data stream, and the first time slot is indicated by the central office equipment; the service processor is configured to The second time slot of the first uplink data stream carries the uplink service of the communication node to obtain the second uplink data stream. The second time slot is indicated by the central office equipment, and the first time slot is different from the first time slot. the second time slot; the transceiver is also used to send the second upstream data stream to the central office equipment.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects in this aspect, please refer to the first aspect, and details will not be repeated.
本申请实施例第五方面提供了一种通信节点,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;所述业务处理器用于在初始上行数据流的第一时隙上承载所述通信节点的上行业务,获得第一上行数据流,所述第一时隙由中心局设备指示;所述收发器用于向另一通信节点发送所述所述第一上行数据流。The fifth 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 service processor is used to perform initial processing of the upstream data flow. The first time slot carries the uplink service of the communication node to obtain the first uplink data stream. The first time slot is indicated by the central office equipment; the transceiver is used to send the first time slot to another communication node. Upstream data flow.
本方面有益效果的说明,请参见第二方面所示,具体不做赘述。For an explanation of the beneficial effects in this aspect, please refer to the second aspect, and the 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 third signal from a central office device. A downlink data stream, the first downlink data stream has carried downlink services; the service processor is used to copy the first downlink data stream to obtain a second downlink data stream; the service processor is used to obtain the The downlink service carried by the first downlink data flow; the receiving The transmitter is used to send the second downlink data stream to the other communication node.
本方面有益效果的说明,请参见第三方面所示,具体不做赘述。For an explanation of the beneficial effects in this aspect, please refer to the third aspect, and the details will not be repeated.
本申请实施例第七方面提供了一种光通信系统,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;所述第二通信节点用于在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流;所述第二通信节点用于向所述第一通信节点发送所述第一上行数据流;所述第一通信节点用于在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流,所述第一时隙和所述第二时隙分别由所述中心局设备指示,所述第一时隙不同于所述第二时隙;所述第一通信节点用于向所述中心局设备发送所述第二上行数据流。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 connected in sequence; the second communication node is used for initial uplink data processing. The first time slot of the stream carries the uplink service of the second communication node to obtain a first uplink data stream; the second communication node is used to send the first uplink data stream to the first communication node; The first communication node is configured to carry the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink data stream, the first time slot and the second The time slots are respectively indicated by the central office equipment, and the first time slot is different from the second time slot; the first communication node is used to send the second upstream data stream to the central office equipment.
本方面有益效果的说明,请参见第一方面所示,具体不做赘述。For description of the beneficial effects in this aspect, please refer to the first aspect, and details will not be repeated.
本申请实施例第八方面提供了一种光通信系统,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;所述中心局设备用于向所述第一通信节点发送第一下行数据流,所述第一下行数据流已承载下行业务;所述第一通信节点用于复制所述第一下行数据流,获得第二下行数据流;所述第一通信节点用于获得所述第一下行数据流已承载的下行业务;所述第一通信节点用于向所述第二通信节点发送所述第二下行数据流。The eighth 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 connected in sequence; the central office device is configured to provide a signal to the first communication node. The communication node sends a first downlink data stream, and the first downlink data stream has carried downlink services; the first communication node is used to copy the first downlink data stream to obtain a second downlink data stream; The first communication node is used to obtain the downlink service carried by the first downlink data flow; the first communication node is used to send the second downlink data flow to the second communication node.
本方面有益效果的说明,请参见第三方面所示,具体不做赘述。For an explanation of the beneficial effects in this aspect, please refer to the third aspect, and the details will not be repeated.
本申请实施例第九方面提供了一种可读存储介质,可读存储介质中存储有执行指令,当至少一个业务处理器执行该执行指令时,执行第一方面至第三方面任一项所示的方法。A ninth 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 diagram of the first structure of a ring network provided by existing solutions;
图1b为已有方案提供的汇总上行数据的一种传输示例图;Figure 1b is a transmission example diagram of summarized uplink data provided by existing solutions;
图1c为已有方案提供的汇总上行数据的另一种传输示例图;Figure 1c shows another example of transmission of aggregated uplink data provided by existing solutions;
图2为本申请实施例提供的环形组网的一种结构示例图;Figure 2 is a structural example diagram of a ring network provided by an embodiment of the present application;
图3为本申请实施例提供的数据传输方法的第一种步骤流程图;Figure 3 is a first step flow chart of the data transmission method provided by the embodiment of the present application;
图4为本申请实施例提供的第一时隙调度消息的传输示例图;Figure 4 is an example diagram of the transmission of the first time slot scheduling message provided by the embodiment of the present application;
图5为本申请实施例提供的下行数据帧的结构示例图;Figure 5 is an example structural diagram of a downlink data frame provided by the embodiment of the present application;
图6为申请实施例提供的上行数据流的第一种结构示例图;Figure 6 is a first structural example diagram of an uplink data flow provided by the application embodiment;
图7a为本申请实施例提供的数据传输方法的第二种步骤流程图;Figure 7a is a second step flow chart of the data transmission method provided by the embodiment of the present application;
图7b为本申请实施例提供的数据传输方法的第三种步骤流程图;Figure 7b is a third step flow chart of the data transmission method provided by the embodiment of the present application;
图8a为本申请实施例提供的上行数据流的第二种结构示例图;Figure 8a is an example diagram of the second structure of the uplink data flow provided by the embodiment of the present application;
图8b为本申请实施例提供的上行数据流的第三种结构示例图;Figure 8b is a third structural example diagram of the uplink data flow provided by the embodiment of the present application;
图8c为本申请实施例提供的上行数据流的第四种结构示例图;Figure 8c is a fourth structural example diagram of the uplink data flow provided by the embodiment of the present application;
图9为本申请实施例提供的数据传输方法的第四种步骤流程图; Figure 9 is a fourth step flow chart of the data transmission method provided by the embodiment of the present application;
图10为本申请实施例提供的下行数据流的结构示例图;Figure 10 is an example diagram of the structure of the downlink data flow provided by the embodiment of the present application;
图11为本申请实施例提供的下行数据流的传输示例图;Figure 11 is a transmission example diagram of a downlink data stream provided by an embodiment of the present application;
图12为已有方案提供的环形组网的第二种结构示例图;Figure 12 is an example diagram of the second structure of ring networking provided by existing solutions;
图13为本申请实施例提供的ONU1的第一种结构示例图;Figure 13 is a first structural example diagram of ONU1 provided by the embodiment of the present application;
图14为本申请实施例提供的数据传输方法的第五种步骤流程图;Figure 14 is a fifth step flow chart of the data transmission method provided by the embodiment of the present application;
图15为本申请实施例提供的数据传输方法的第六种步骤流程图;Figure 15 is a sixth step flow chart of the data transmission method provided by the embodiment of the present application;
图16为本申请实施例提供的ONU1的第二种结构示例图;Figure 16 is a second structural example diagram of ONU1 provided by the embodiment of the present application;
图17为本申请实施例提供的通信设备的结构示例图;Figure 17 is a structural example diagram of a communication device provided by an embodiment of the present application;
图18为本申请实施例所提供的双环形组网结构示例图。Figure 18 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)等网络。以下说明环形组网的工作流程:以第一CO1设备101向通信节点发送的数据为下行数据为例,若第一CO设备101向通信节点2发送下行数据,例如发送控制命令等,第一CO设备101向通信节点1发送用于给通信节点2的下行数据。通信节点1接收到来自第一CO设备101的下行数据的情况下,通信节点1解析该下行数据,确定该下行数据是发送给通信节点2的,则通信节点1继续向节点2发送该下行数据。Figure 1a is an example diagram of the first structure of a ring network provided by existing solutions. 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 information 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 transmit data between each communication node and the upper layer network. Specifically, the first CO device 101 can act as a mediator between each communication node and the upper layer network. The first CO device 101 can forward downlink traffic received from the upper layer network to the corresponding communication node and forward uplink traffic received from each communication node 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. The following describes the workflow of ring networking: taking the data sent by the first CO1 device 101 to the communication node as downlink data as an example, if the first CO device 101 sends downlink data to the communication node 2, such as sending a control command, etc., the first CO device 101 sends downlink data to the communication node 2. Device 101 sends downlink data to communication node 1 for communication node 2. When the communication node 1 receives the downlink data from the first CO device 101, the communication node 1 parses the downlink data and determines that the downlink data is sent to the communication node 2, then the communication node 1 continues to send the downlink data to the node 2. .
以通信节点向第一CO设备101发送的数据为上行数据为例,若通信节点N向第一CO设备101发送上行数据,则通信节点N经由连接在通信节点N和第一CO设备101之间的通信节点依次发送该上行数据。具体的,通信节点N向通信节点N-1发送上行数据,依次类推,通信节点1向第一CO设备101发送该上行数据。Taking the data sent by the communication node to the first CO device 101 as uplink data as an example, if the communication node N sends uplink data to the first CO device 101, the communication node N is connected between the communication node N and the first CO device 101 via The communication nodes send the uplink data in sequence. Specifically, communication node N sends uplink data to communication node N-1, and by analogy, communication node 1 sends the uplink data to the first CO device 101.
各个通信节点向CO设备发送上行数据的过程是基于竞争机制的,具体的,通信节点 N-1向第一CO设备发送上行数据流,该上行数据流汇总通信节点N向第一CO设备101发送的上行数据N以及通信节点N-1向第一CO设备101发送的上行数据N-1。The process of each communication node sending uplink data to the CO device is based on a competition mechanism. Specifically, the communication node N-1 sends an uplink data stream to the first CO device, which aggregates the uplink data N sent by the communication node N to the first CO device 101 and the uplink data N- sent by the communication node N-1 to the first CO device 101. 1.
采用环形组网的优势在于,一旦两个通信节点之间出现故障,不影响环形组网的正常通信。例如,若通信节点2与通信节点N-1之间出现了故障,通信节点2无需通过通信节点2与通信节点N-1之间的链路进行通信,通信节点2正常与通信节点1通信,通信节点1与第一CO设备101通信,以保证通信节点2和第一CO设备101之间通信的正常。而通信节点N-1与通信节点N通信,通信节点N与第二CO设备102通信,以保证通信节点N-1与第二CO设备102之间通信的正常。而且因第一CO设备101和第二CO设备102之间连接,则通信节点2需要发送至第二CO设备102的业务,可由第一CO设备101转发,同样的,通信节点N-1需要发送至第一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 N-1, communication node 2 does not need to communicate through the link between communication node 2 and communication node N-1. Communication node 2 communicates with communication node 1 normally, The communication node 1 communicates with the first CO device 101 to ensure normal communication between the communication node 2 and the first CO device 101. The communication node N-1 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 N-1 and the second CO device 102. Moreover, since the first CO device 101 and the second CO device 102 are connected, the traffic 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 N-1 needs to send The traffic to the first CO device 101 can be forwarded by the second CO device 102 .
以下已有方案对通信节点N-1向第一CO设备101发送上行数据流的两种方式进行说明:The following existing solutions illustrate two ways for the communication node N-1 to send the uplink data stream to the first CO device 101:
已有方式1Existing method 1
图1b为已有方案提供的汇总上行数据的一种传输示例图。通信节点N发送给通信节点N-1的上行业务N在上行数据流中占用时隙T1,该时隙T1的起始时刻为时刻t1,时隙T1的结束时刻为时刻t3。而通信节点N-1本地需要向第一CO设备发送的上行业务N-1占用时隙T2,该时隙T2的起始时刻为时刻t2,结束时刻为时刻t4。其中,时刻t2大于时刻t1且小于时刻t3,时刻t4大于时刻t3。可见时隙T1和时隙T2存在重叠(即在时刻t2至时刻t3重叠)。通信节点N-1对上行业务N所占用的时隙T1和上行业务N-1所占用的时隙T2进行时隙重排。Figure 1b is a transmission example diagram of summarized uplink data provided by existing solutions. The uplink service N sent by communication node N to communication node N-1 occupies time slot T1 in the uplink data stream. The starting time of time slot T1 is time t1, and the end time of time slot T1 is time t3. The uplink service N-1 that the communication node N-1 needs to send locally to the first CO device occupies the time slot T2. The starting time of the time slot T2 is time t2 and the end time is time t4. Among them, time t2 is greater than time t1 and less than time t3, and time t4 is greater than time t3. It can be seen that time slot T1 and time slot T2 overlap (that is, they overlap from time t2 to time t3). The communication node N-1 performs time slot rearrangement on the time slot T1 occupied by the uplink service N and the time slot T2 occupied by the uplink service N-1.
时隙重排后的上行业务N占用时隙T3,而时隙重排后的上行业务N-1占用时隙T4。时隙T3的起始时刻为时刻t1,结束时刻为时刻t3。时隙T4的起始时刻为时刻t3,结束时刻为时刻t5。时刻t3大于时刻t2且小于时刻t4,时刻t5大于时刻t4。可见,时隙重排后的时隙T3和时隙T4不存在时隙上的重叠,以保证上行业务N的传输和上行业务N-1的传输不存在冲突。The uplink service N after the time slot rearrangement occupies the time slot T3, and the uplink service N-1 after the time slot rearrangement occupies the time slot T4. The starting time of time slot T3 is time t1, and the end time is time t3. The starting time of time slot T4 is time t3, and the end time is time t5. Time t3 is greater than time t2 and less than time t4, and time t5 is greater than time t4. It can be seen that there is no overlap in time slots between time slots T3 and T4 after time slot rearrangement, so as to ensure that there is no conflict between the transmission of uplink service N and the transmission of uplink service N-1.
但是,采用该已有方式1,时隙重排后的上行业务的时延出现了变化,带来了业务传输的时延以及时延抖动的恶化。例如,若不进行时隙重排,则上行业务N和上行业务N-1占用时刻t1至时刻t4的时隙,而时隙重排后,上行业务N和上行业务N-1占用时刻t1至时刻t5,可见,时隙重排导致了重排后的上行业务时延的恶化。However, using the existing method 1, the delay of the uplink service changes after the time slots are rearranged, which leads to the deterioration of service transmission delay and delay jitter. For example, if time slot rearrangement is not performed, uplink service N and uplink service N-1 occupy time slots from time t1 to time t4. After time slot rearrangement, uplink service N and uplink service N-1 occupy time slots from time t1 to time t4. At time t5, it can be seen that the time slot rearrangement has led to the deterioration of the uplink service delay after the rearrangement.
已有方式2Already have method 2
图1c为已有方案提供的汇总上行数据的另一种传输示例图。通信节点N发送给通信节点N-1的上行业务N在上行数据流中占用时隙T1,通信节点N-1本地需要向第一CO设备发送的上行业务N-1占用时隙T2,对时隙T1和时隙T2的说明,请参见上述已有方式1所示,具体不做赘述。通信节点N-1删除上行业务N的部分数据和/或删除上行业务N-1的部分数据。通信节点N-1删除了上行业务N-1的部分数据,删除后的上行业务N-1 占用时隙T5,时隙T5的起始时刻为时刻t3,结束时刻为时刻t4。时刻t4大于时刻t3。可见,上行业务N和删除后的上行业务N-1之间的不存在时隙上的重叠,以保证上行业务N的传输和上行业务N-1的传输不存在冲突。Figure 1c shows another example of transmission of aggregated uplink data provided by existing solutions. The uplink service N sent by the communication node N to the communication node N-1 occupies the time slot T1 in the uplink data stream, and the uplink service N-1 that the communication node N-1 needs to send locally to the first CO device occupies the time slot T2. For descriptions of slot T1 and time slot T2, please refer to the above-mentioned method 1, and details will not be repeated. The communication node N-1 deletes part of the data of the uplink service N and/or deletes part of the data of the uplink service N-1. Communication node N-1 deletes part of the data of uplink service N-1, and the deleted uplink service N-1 Time slot T5 is occupied. The starting time of time slot T5 is time t3 and the end time is time t4. Time t4 is greater than time t3. It can be seen that there is no overlap in time slots between the uplink service N and the deleted uplink service N-1, so as to ensure that there is no conflict between the transmission of the uplink service N and the transmission of the uplink service N-1.
但是,采用该已有方式2,删除数据后会导致数据的重传,例如,删除了上行业务N-1的部分数据,会导致通信节点N-1向第一CO设备101重传已删除的数据。若环形组网所包括的通信节点的数量增多,会使得数据传输质量以及传输带宽出现极大的劣化。However, using the existing method 2, deleting the data will lead to retransmission of the data. For example, deleting part of the data of the uplink service N-1 will cause the communication node N-1 to retransmit the deleted data to the first CO device 101. data. If the number of communication nodes included in the ring network increases, the data transmission quality and transmission bandwidth will be greatly degraded.
本申请提供了一种数据传输方法,能够降低通信节点向CO设备发送业务的时延以及时延抖动,还能够降低业务重传的概率。本实施例所示的方法应用于环形组网,本实施例对环形组网的应用场景不做限定,例如,环形组网用于光传送网(optical transport network,OTN)、工业控制、数据回传、数据中心以及监控中心等,具体不做限定。对环形组网结构的说明请参见图1a的说明,具体不做赘述。本实施例对环形组网所包括的各个设备的设备类型不做限定,例如,CO设备可为基站控制器(base station controller,BSC),通信节点可为基站收发信台(base transciver station,BTS),又如,CO设备可为服务器等,而通信节点可为交换机,又如,CO设备可为基带处理单元(building baseband unit,BBU),通信节点可为射频拉远模块(radio remote unit,RRU),又如,CO设备可为交换机,而通信节点可为监控摄像头等终端设备。又如,环形组网所包括的CO设备可为光线路终端(optical line terminal,OLT),通信节点可为光网络单元(optical network unit,ONU)。This application provides a data transmission method that can reduce the delay and delay jitter of the communication node sending services to the CO device, and can also reduce the probability of service retransmission. The method shown in this embodiment is applied to ring networking. This embodiment does not limit the application scenarios of ring networking. For example, ring networking is used for optical transport network (OTN), industrial control, and data return. Transmission, data center and monitoring center, etc., there are no specific restrictions. For the description of the ring networking structure, please refer to the description of Figure 1a, and the details will not be repeated. This embodiment does not limit the device types 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, etc., 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 switch, and the communication node can be a terminal device such as a surveillance camera. For another example, the CO equipment included in the ring network can be an optical line terminal (OLT), and the communication node can be an optical network unit (ONU).
本申请所应用的环形组网可参见图2所示,其中,图2为本申请实施例提供的环形组网的一种结构示例图。该环形组网200包括OLT1,OLT2以及依次连接在OLT1以及OLT2之间的N个ONU。其中,OLT1和OLT2可为同一OLT所包括的两个通信单板。又如,OLT1和OLT2可为两个独立且具有连接关系的两个独立的OLT。本实施例所示的环形组网200中,任意相邻的两个ONU之间无需通过分光器连接,而且OLT1与相邻的ONU(即图2所示的ONU1)之间也无需通过分光器连接,OLT2与相邻的ONU(即图2所示的ONU2)之间也无需通过分光器连接。例如,以ONU1为例,ONU1具有两个通信端口,ONU1的一个通信端口与OLT1之间直接通过光纤连接,ONU1具有的另一通信端口与ONU2之间直接通过光纤连接。The ring networking applied in this application can be seen in Figure 2, where Figure 2 is a structural example diagram of the ring networking provided by the embodiment of this application. The ring network 200 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 200 shown in this embodiment, any two adjacent ONUs do not need to be connected through an optical splitter, and there is no need to use an optical splitter between OLT1 and the adjacent ONU (ie, ONU1 shown in Figure 2). connection, OLT2 and the adjacent ONU (that is, ONU2 shown in Figure 2) 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.
在ONU1与OLT1直接连接的情况下,有效降低了OLT1与ONU1之间的通信时延,而且因环形组网无需布局分光器,降低了环形组网的部署难度,提高了部署效率,降低了环形组网的插损。本实施例以N的取值为2为例,对N的具体取值不做限定。以OLT1,N个ONU和OLT2组成环形组网为例,不做限定,例如,OLT1,N个ONU和OLT2也可组成链形组网或树形组网等。When ONU1 and OLT1 are directly connected, the communication delay between OLT1 and ONU1 is effectively reduced. Moreover, since the ring network does not require the layout of optical splitters, the deployment difficulty of the ring network is reduced, the deployment efficiency is improved, and the ring network cost is reduced. Insertion loss of the network. 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, etc.
基于图2所示的环形组网,以下结合图3所示对本申请实施例提供的数据传输方法的执行过程进行说明,其中,图3为本申请实施例提供的数据传输方法的第一种步骤流程图。Based on the ring networking shown in Figure 2, the execution process of the data transmission method provided by the embodiment of the present application will be described below in conjunction with Figure 3, where Figure 3 is the first step of the data transmission method provided by the embodiment of the present application. flow chart.
步骤301、OLT1向ONU1发送第一时隙调度消息。 Step 301: OLT1 sends the first time slot scheduling message to ONU1.
本实施例所示的OLT1基于动态带宽分配(dynamic bandwidth assignment,DBA)向与OLT1直接连接的ONU1发送第一时隙调度消息。The OLT1 shown in this embodiment sends the first time slot scheduling message to the ONU1 directly connected to the OLT1 based on dynamic bandwidth assignment (DBA).
步骤302、ONU1复制第一时隙调度消息,获得第二时隙调度消息。Step 302: ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
图4为本申请实施例提供的第一时隙调度消息的传输示例图。ONU1接收到来自OLT1的第一时隙调度消息后,ONU1对该第一时隙调度消息进行光电转换,获得呈电信号的第一时隙调度消息。ONU1复制该第一时隙调度消息,获得第二时隙调度消息。Figure 4 is an example diagram of the transmission of the first time slot scheduling message provided by the embodiment of the present application. After ONU1 receives the first time slot scheduling message from OLT1, ONU1 performs photoelectric conversion on the first time slot scheduling message and obtains the first time slot scheduling message in the form of an electrical signal. ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
其中,第一时隙调度消息与第二时隙调度消息相同。第一时隙调度消息由ONU1进行处理。ONU1对第二时隙调度消息进行电光转换,获得转换后呈光信号的第二时隙调度消息。ONU1经由连接在ONU1和ONU2之间的光纤,向ONU2发送该第二时隙调度消息。需明确的是,本实施例所示的第一时隙调度消息和第二时隙调度消息为两路相同的时隙调度消息,第一时隙调度消息和第二时隙调度消息仅为相同的两路时隙调度消息的区分,不做限定,例如,也可由ONU1处理第二时隙调度消息,ONU1向ONU2发送第一时隙调度消息。以下对ONU1处理第一时隙调度消息的过程进行说明:The first time slot scheduling message is the same as the second time slot scheduling message. The first time slot scheduling message is processed by ONU1. ONU1 performs electro-optical conversion on the second time slot scheduling message, and obtains the converted second time slot scheduling message in the form of an optical signal. ONU1 sends the second time slot scheduling message to ONU2 via the optical fiber connected between ONU1 and ONU2. It should be noted that the first time slot scheduling message and the second time slot scheduling message shown in this embodiment are two identical time slot scheduling messages. The first time slot scheduling message and the second time slot scheduling message are only the same. The distinction between the two time slot scheduling messages is not limited. For example, ONU1 may also process the second time slot scheduling message, and ONU1 sends the first time slot scheduling message to ONU2. The following describes the process of ONU1 processing the first time slot scheduling message:
图5为本申请实施例提供的下行数据帧的结构示例图。下行数据帧500包括物理同步块(physicalsynchronization block,PSBd)501和物理层帧有效载荷(physical layer frame payload)502。PSBd501包括字段物理同步(physical synchronization,PSync)字段511,超帧计数器(superframe counter,SFC)字段512以及操作控制(operation control,OC)字段513以及上行带宽地图(upstream bandwidth map,US BWmap)字段514。Figure 5 is an example structural diagram of a downlink data frame provided by an embodiment of the present application. The downlink data frame 500 includes a physical synchronization block (PSBd) 501 and a physical layer frame payload (physical layer frame payload) 502. PSBd501 includes fields physical synchronization (PSync) field 511, superframe counter (superframe counter, SFC) field 512, operation control (operation control, OC) field 513 and upstream bandwidth map (upstream bandwidth map, US BWmap) field 514 .
其中,Psync字段511为物理层同步字段,可用于承载下行帧同步指示符号。SFC字段512用于承载超帧号,SFC字段512承载的超帧号实质为一个30比特(bit)宽度的帧循环计数器,当超帧号为0时表示一个超帧的开始。US BWmap字段514为本实施例所示的第一时隙调度消息。具体的,US BWmap字段514包括N个分配结构(Allocation Structure)。每个Allocation Structure包括带宽分配标识(allocation identifier,Alloc-ID)字段521,时隙起始时刻(start time)字段522以及授权尺寸(Grant size)字段523。以Allocation ID1字段为例,Allocation ID1字段用于承载授权发送的ONU1的标识符(Identity,ID),start time字段用于指示OLT1为ONU1分配的时隙的起始时刻,Grant size字段523用于指示授权给ONU1的时隙长度。Allocation ID2字段用于指示为OLT1分配给ONU2的字段,依次类推,Allocation IDN字段为OLT1分配给ONUN的字段,对各Allocation ID字段的说明,请参见Allocation ID1字段的说明,具体不做赘述。Among them, the Psync field 511 is a physical layer synchronization field, which can be used to carry downlink frame synchronization indicator symbols. The SFC field 512 is used to carry the superframe number. The superframe number carried by the SFC field 512 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 514 is the first time slot scheduling message shown in this embodiment. Specifically, the US BWmap field 514 includes N allocation structures (Allocation Structure). Each Allocation Structure includes a bandwidth allocation identifier (allocation identifier, Alloc-ID) field 521, a slot start time (start time) field 522, and a grant size (Grant size) field 523. Take the Allocation ID1 field as an example. The Allocation ID1 field is used to carry the identifier (Identity, ID) of ONU1 authorized to send. The start time field is used to indicate the starting time of the time slot allocated by OLT1 to ONU1. The Grant size field 523 is used to Indicates the length of the time slot granted to ONU1. The Allocation ID2 field is used to indicate the field allocated to ONU2 for OLT1, and so on. The Allocation IDN field is the field allocated by OLT1 to ONUN. For the description of each Allocation ID field, please refer to the description of the Allocation ID1 field. The details will not be repeated.
当ONU1接收到下行数据帧500时,Alloc-ID1字段承载了ONU1的标识(ID),ONU1从下行数据帧500获得包括Alloc-ID1的Allocation Structure1。ONU1对接收到的Allocation Structure1进行循环冗余校验(cyclic redundancy check,CRC)校验。如果校验结果正确,ONU1获得第二时隙。其中,第二时隙的起始时刻为ONU1已获得的Allocation Structure1字段所包括的start time,第二时隙的持续时间长度为Allocation Structure1字段所包括的Grant size。为使得各个ONU向OLT1发送业务的 情况下,不会发生冲突,则OLT1为各个ONU所指示的时隙之间,不存在重叠(即不存在如图1a和图1b所示的时隙之间的重叠)。例如,OLT1所指示的多个时隙中,任意相邻的两个时隙之间存在保护时间(Guard time)。本实施例对下行数据帧500的说明为可选的说明,不做限定,只要环形组网所包括的各个ONU能够根据该下行数据帧500获得到对应的时隙即可。例如,各Allocation Structure1字段可包括结束时刻,该结束时刻用于指示第二时隙的结束时刻。When ONU1 receives the downlink data frame 500, the Alloc-ID1 field carries the identification (ID) of ONU1, and ONU1 obtains Allocation Structure1 including Alloc-ID1 from the downlink data frame 500. ONU1 performs a cyclic redundancy check (CRC) check on the received Allocation Structure1. If the verification result is correct, ONU1 obtains the second time slot. The starting time of the second time slot is the start time included in the Allocation Structure1 field that ONU1 has obtained, and the duration of the second time slot is the Grant size included in the Allocation Structure1 field. In order to enable each ONU to send services to OLT1 If no conflict occurs, there is no overlap between the time slots indicated by OLT1 for each ONU (that is, there is no overlap between time slots as shown in Figure 1a and Figure 1b). For example, among the multiple time slots indicated by OLT1, there is a guard time between any two adjacent time slots. The description of the downlink data frame 500 in this embodiment is optional and not limiting, as long as each ONU included in the ring network can obtain the corresponding time slot according to the downlink data frame 500 . For example, each Allocation Structure1 field may include an end time, and the end time is used to indicate the end time of the second time slot.
步骤303、ONU1向ONU2发送第二时隙调度消息。Step 303: ONU1 sends the second time slot scheduling message to ONU2.
ONU2接收第二时隙调度消息,并对该第二时隙调度消息进行处理,ONU2处理该第二时隙调度消息的过程,请参见ONU1处理第一时隙调度消息的过程,具体不做赘述。若ONU2连接ONU3,则ONU2复制该第二时隙调度消息,获得第三时隙调度消息,ONU2向ONU3发送第三时隙调度消息。ONU2向ONU3发送该第三时隙调度消息的说明,请参见ONU1向ONU2发送第二时隙调度消息的过程,具体不做赘述。可以理解,在环形组网包括N个ONU的情况下,每个ONU将来自上游的时隙调度消息复制后,转发至下游的ONU,直至环形组网所包括的每个ONU均接收到来自OLT1的时隙调度消息。在每个ONU均接收到该时隙调度消息的情况下,各个ONU基于时分多址(time division multiple access,TDMA)的机制向OLT1发送上行业务。ONU2 receives the second time slot scheduling message and processes the second time slot scheduling message. For the process of ONU2 processing the second time slot scheduling message, please refer to the process of ONU1 processing the first time slot scheduling message. The details will not be repeated. . If ONU2 is connected to ONU3, ONU2 copies the second time slot scheduling message and obtains the third time slot scheduling message, and ONU2 sends the third time slot scheduling message to ONU3. For instructions on how ONU2 sends the third time slot scheduling message to ONU3, please refer to the process of ONU1 sending the second time slot scheduling message to ONU2, which will not be described in detail. It can be understood that when the ring network includes N ONUs, each ONU copies the time slot scheduling message from the upstream and forwards it to the downstream ONU until each ONU included in the ring network receives the time slot scheduling message from OLT1 time slot scheduling message. When each ONU receives the time slot scheduling message, each ONU sends uplink services to OLT1 based on the time division multiple access (TDMA) mechanism.
本实施例以环形组网所包括的各ONU接收到的时隙调度消息来源于OLT1为例,在其他示例中,环形组网所包括的各ONU接收到的时隙调度消息也可来源于OLT2。又如,环形组网所包括的N个ONU中,部分ONU接收到的时隙调度消息来源于OLT1,而另一部分ONU接收到的时隙调度消息来源于OLT2,具体不做限定,只要保证环形组网所包括的每个ONU均接收到时隙调度消息即可。In this embodiment, the time slot scheduling message received by each ONU included in the ring network is taken as an example. The time slot scheduling message received by each ONU included in the ring network comes from OLT1. In other examples, the time slot scheduling message received by each ONU included in the ring network can also come from OLT2. . For another example, among the N ONUs included in a ring network, the time slot scheduling messages received by some ONUs come from OLT1, while the time slot scheduling messages received by other ONUs come from OLT2. There is no specific limit, as long as the ring is ensured It is sufficient that each ONU included in the network receives the time slot scheduling message.
步骤304、ONU2向ONU1发送第一上行数据流。Step 304: ONU2 sends the first upstream data stream to ONU1.
首先,ONU2需要获得初始上行数据流。First, ONU2 needs to obtain the initial upstream data flow.
该初始上行数据流为来自与ONU2连接的下游ONU。例如,若ONU2与OLT2之间还连接ONU3,则ONU2从ONU3接收该初始上行数据流。本实施例所示的ONU3从ONU2接收上述所示的第三时隙调度消息,该第三时隙调度消息用于指示用于承载ONU3的上行业务所占用的时隙。本实施例所示的初始上行数据流为连续的数据流。若ONU3没有需要向OLT1发送的上行业务,则该初始上行数据流为已承载填充信息的连续数据流。若ONU3有需要向OLT1发送的上行业务,则该初始上行数据流包括已承载填充信息的时隙以及已承载ONU3的上行业务的时隙。其中,填充信息可为一段规律或随机的字节串。The initial upstream data flow is from the downstream ONU connected to ONU2. For example, if ONU3 is also connected between ONU2 and OLT2, ONU2 receives the initial upstream data stream from ONU3. ONU3 shown in this embodiment receives the above-mentioned third time slot scheduling message from ONU2. The third time slot scheduling message is used to indicate the time slot occupied by the uplink service for carrying ONU3. The initial upstream data flow shown in this embodiment is a continuous data flow. If ONU3 does not need to send uplink services to OLT1, the initial upstream data flow is a continuous data flow that already carries filling information. If ONU3 has uplink services that need to be sent to OLT1, the initial upstream data stream includes time slots that carry filling information and time slots that carry ONU3's uplink services. Among them, the filling information can be a regular or random byte string.
例如,在环形组网包括三个ONU,即ONU1,ONU2以及ONU3的示例下,第三时隙调度消息包括Allocation Structure1字段、Allocation Structure2字段以及Allocation Structure3字段。Allocation Structure1字段包括的start time为TS1,Grant size为L1。Allocation Structure2字段包括的start time为TS2,Grant size为L2。Allocation Structure3字段包括的start time为TS3,Grant size为L3。而且时刻TS1在TS1,TS2以及TS3中为最早的时刻。可以理解,环形组网所包括的各个ONU(即 本示例所示的ONU1,ONU2以及ONU3)需要发送至OLT1的上行业务,均能承载于该初始上行数据流中。For example, in the case where the ring network includes three ONUs, namely ONU1, ONU2, and ONU3, the third time slot scheduling message includes an Allocation Structure1 field, an Allocation Structure2 field, and an Allocation Structure3 field. The start time included in the Allocation Structure1 field is TS1 and the Grant size is L1. The start time included in the Allocation Structure2 field is TS2 and the Grant size is L2. The Allocation Structure3 field includes a start time of TS3 and a Grant size of L3. Furthermore, time TS1 is the earliest time among TS1, TS2, and TS3. It can be understood that each ONU included in the ring network (i.e. The upstream services that ONU1, ONU2 and ONU3 shown in this example need to be sent to OLT1 can all be carried in this initial upstream data stream.
该初始上行数据流也可来自OLT2。例如,若ONU2与OLT2之间还连接ONU3,则OLT2生成该初始上行数据流,OLT2向ONU3发送该初始上行数据流,具体不做赘述。若本实施例所示的环形组网中,与OLT1进行上下行业务交互的最后一个ONU为ONU2,则ONU2生成该初始上行数据流,对初始上行数据流的说明,请参见上述所示的ONU3生成初始上行数据流的说明,具体不做赘述。This initial upstream data flow can also come from OLT2. For example, if ONU3 is also connected between ONU2 and OLT2, OLT2 generates the initial upstream data stream, and OLT2 sends the initial upstream data stream to ONU3. The details will not be described again. If in the ring network shown in this embodiment, the last ONU that interacts with OLT1 in uplink and downlink services is ONU2, then ONU2 generates the initial upstream data flow. For the description of the initial upstream data flow, please refer to ONU3 shown above. The instructions for generating the initial upstream data stream will not be described in detail.
其次,ONU2根据第二时隙调度消息确定第一时隙。本实施例所示的ONU2根据第二时隙调度消息获得第一时隙的过程的说明,请参见上述所示的ONU1根据第一时隙调度消息获得第二时隙的过程,具体不做赘述。图6为申请实施例提供的上行数据流的第一种结构示例图。例如,Allocation Structure1指示的时隙起始时刻为时刻t1,时隙结束时刻为时刻t2。Allocation Structure2指示的时隙起始时刻为时刻t3,时隙结束时刻为时刻t4。其中,时刻t1,时刻t2,时刻t3以及时刻t4依次递增。Allocation Structure2所包括的Alloc-ID2与ONU2对应,ONU2根据Allocation Structure2确定第一时隙。其中,第一时隙的起始时刻为Allocation Structure2所包括的时隙起始时刻,第一时隙的结束时刻为Allocation Structure2所指示的时隙结束时刻。可以理解,在图6所示的示例中,第一时隙的起始时刻为时刻t3,第一时隙的结束时刻为时刻t4。本实施例以时刻t2和时刻t3之间具有一定的时间间隔为例,时刻t2和时刻t3之间为步骤302所示的保护时间。在其他示例中,时刻t2和时刻t3也可为同一时刻,具体在本实施例中不做限定。可以理解,为避免不同的ONU向OLT1发送的上行业务出现时隙上的重叠,则第二时隙调度消息中,与不同的ONU对应的时隙之间不存在时间上的重叠。Secondly, ONU2 determines the first time slot according to the second time slot scheduling message. For an explanation of the process of ONU2 obtaining the first time slot according to the second time slot scheduling message in this embodiment, please refer to the process of ONU1 obtaining the second time slot according to the first time slot scheduling message shown above. The details will not be described again. . Figure 6 is a diagram illustrating a first structural example of an uplink data flow provided by an embodiment of the application. For example, the start time of the time slot indicated by Allocation Structure1 is time t1, and the end time of the time slot is time t2. The starting time of the time slot indicated by Allocation Structure2 is time t3, and the end time of the time slot is time t4. Among them, time t1, time t2, time t3 and time t4 increase in sequence. Alloc-ID2 included in Allocation Structure2 corresponds to ONU2, and ONU2 determines the first time slot based on Allocation Structure2. Among them, the starting time of the first time slot is the starting time of the time slot included in Allocation Structure2, and the end time of the first time slot is the end time of the time slot indicated by Allocation Structure2. It can be understood that in the example shown in Figure 6, the starting time of the first time slot is time t3, and the end time of the first time slot is time t4. In this embodiment, there is a certain time interval between time t2 and time t3 as an example, and the time between time t2 and time t3 is the protection time shown in step 302. In other examples, time t2 and time t3 may also be the same time, which is not limited in this embodiment. It can be understood that in order to avoid overlapping of time slots in the uplink services sent by different ONUs to OLT1, there is no time overlap between time slots corresponding to different ONUs in the second time slot scheduling message.
再次,ONU2在初始上行数据流601的第一时隙上承载ONU2的上行业务,获得第一上行数据流602。本实施例所示的第一上行数据流为信号连续的数据流,为此,ONU2在第一上行数据流的空闲时隙上承载填充信息,所述空闲时隙不同于所述第一时隙。图6所示的示例中,空闲时隙的起始时刻为时刻t1,结束时刻为时刻t3。可选的,本实施例所示的ONU2获得到该第一上行数据流的情况下,ONU2可对该第一上行数据流进行前向纠错(forward error correction,FEC)编码,以向ONU1发送FEC编码后的第一上行数据流。FEC编码是通过对第一上行数据流进行编码,使接收端(ONU1)能够直接从FEC编码后的第一上行数据流中检查出数据传输发生的错误,并能够一定程度的纠正传输误码。采用FEC编码能降低误码率,可以在同样的接收结果下节省ONU2向ONU1发送该第一上行数据流的发送功率。Again, ONU2 carries the uplink service of ONU2 on the first time slot of the initial upstream data stream 601, and obtains the first upstream data stream 602. The first upstream data stream shown in this embodiment is a data stream with continuous signals. To this end, ONU2 carries filling information on the idle time slots of the first upstream data stream. The idle time slots are different from the first time slots. . In the example shown in Figure 6, the starting time of the idle time slot is time t1 and the end time is time t3. Optionally, when ONU2 in this embodiment obtains the first upstream data stream, ONU2 can perform forward error correction (FEC) encoding on the first upstream data stream to send it to ONU1 The first upstream data stream after FEC encoding. FEC encoding encodes the first upstream data stream so that the receiving end (ONU1) can directly detect errors in data transmission from the FEC-encoded first upstream data stream and correct transmission errors to a certain extent. Using FEC coding can reduce the bit error rate and save the transmission power of ONU2 in sending the first upstream data stream to ONU1 under the same reception result.
本实施例所示的ONU2获得到该第一上行数据流后,ONU2对该第一上行数据流进行电光转换以经由ONU2和ONU1之间所连接的光纤,向ONU1发送该第一上行数据流。After ONU2 in this embodiment obtains the first upstream data stream, ONU2 performs electro-optical conversion on the first upstream data stream to send the first upstream data stream to ONU1 via the optical fiber connected between ONU2 and ONU1.
步骤305、ONU1向OLT1发送第二上行数据流。Step 305: ONU1 sends the second upstream data stream to OLT1.
首先,ONU1根据第一时隙调度消息获得第二时隙。其中,第二时隙为ONU1的上行业务所占用的时隙。携带第一时隙调度消息的Allocation Structure1的Alloc-ID1与ONU1对应。ONU1根据Allocation Structure1确定第二时隙。其中,第二时隙的起始时 刻为Allocation Structure1所包括的时隙起始时刻,第二时隙的结束时刻为Allocation Structure1所指示的时隙结束时刻。可以理解,在图6所示的示例中,第二时隙的起始时刻为时刻t1,第二时隙的结束时刻为时刻t2。First, ONU1 obtains the second time slot according to the first time slot scheduling message. Among them, the second time slot is the time slot occupied by the uplink service of ONU1. Alloc-ID1 of Allocation Structure1 carrying the first time slot scheduling message corresponds to ONU1. ONU1 determines the second time slot based on Allocation Structure1. Among them, the start time of the second time slot moment is the start time of the time slot included in Allocation Structure1, and the end time of the second time slot is the end time of the time slot indicated by Allocation Structure1. It can be understood that in the example shown in Figure 6, the starting time of the second time slot is time t1, and the end time of the second time slot is time t2.
其次,ONU1接收到该第一上行数据流602后,将该第一上行数据流进行光电转换,获得呈电信号的第一上行数据流602。由步骤304所示可知,ONU2在第一上行数据流中的第二时隙上已承载填充信息,为此,在ONU1检测到OLT1为ONU1指示的第二时隙上已承载填充信息的情况下,ONU1将所述第二时隙上已承载的填充信息替换为ONU1的上行业务,获得第二上行数据流603。Secondly, after receiving the first upstream data stream 602, ONU1 performs photoelectric conversion on the first upstream data stream to obtain the first upstream data stream 602 in the form of an electrical signal. It can be seen from step 304 that ONU2 has carried filling information on the second time slot in the first upstream data stream. For this reason, when ONU1 detects that OLT1 has carried filling information on the second time slot indicated by ONU1 , ONU1 replaces the filling information carried on the second time slot with the uplink service of ONU1, and obtains the second uplink data stream 603.
可选的,若第一上行数据流为经由ONU2的FEC编码后的上行数据流,则ONU1在获得第二上行数据流603之前,ONU1先对该第一上行数据流进行FEC解码,ONU1基于对第一上行数据流的FEC解码能够检查出第一上行数据流中数据传输所发生的错误,并能够纠正传输误码。ONU1基于FEC解码后的第一上行数据流获得该第二上行数据流。Optionally, if the first upstream data stream is the FEC-encoded upstream data stream of ONU2, before ONU1 obtains the second upstream data stream 603, ONU1 first performs FEC decoding on the first upstream data stream, and ONU1 performs FEC decoding on the first upstream data stream based on the FEC decoding of the first upstream data stream can detect errors occurring in data transmission in the first upstream data stream, and can correct transmission errors. ONU1 obtains the second upstream data stream based on the FEC-decoded first upstream data stream.
本实施例所示的ONU1获得到该第二上行数据流后,对该第二上行数据流进行电光转换以经由ONU1和OLT1之间所连接的光纤,向OLT1发送该第二上行数据流。After ONU1 in this embodiment obtains the second upstream data stream, it performs electro-optical conversion on the second upstream data stream to send the second upstream data stream to OLT1 via the optical fiber connected between ONU1 and OLT1.
步骤306、OLT1接收第二上行数据流。Step 306: OLT1 receives the second upstream data stream.
OLT1接收到第二上行数据流的情况下,OLT1能够从第二上行数据流的第二时隙中,获得ONU1的上行业务。OLT1还能够从第二上行数据流的第一时隙中,获得ONU2的上行业务。When OLT1 receives the second upstream data stream, OLT1 can obtain the upstream service of ONU1 from the second time slot of the second upstream data stream. OLT1 can also obtain the upstream service of ONU2 from the first time slot of the second upstream data stream.
本实施例所示的OLT1的光模块接收该第二上行数据流,因本实施例所示的第二上行数据流为信号连续的数据流,则OLT1的光模块为能够接收连续信号的光模块,无需为接收呈突发传输的上行数据帧,有效的降低了OLT1的光模块性能的要求。而且OLT1的光模块对连续的第二上行数据流进行光电转换,极大的降低了OLT1的光模块处理第二上行数据流的复杂度,提高了OLT1的光模块处理第二上行数据流的效率。OLT1即可对呈电信号的第二上行数据流进行处理,获得第二上行数据流中所承载的ONU1的上行业务以及ONU2的上行业务。The optical module of OLT1 shown in this embodiment receives the second upstream data stream. Since the second upstream data stream shown in this embodiment is a data stream with continuous signals, the optical module of OLT1 is an optical module that can receive continuous signals. , there is no need to receive uplink data frames that are transmitted in bursts, which effectively reduces the performance requirements of the optical module of OLT1. Moreover, the optical module of OLT1 performs photoelectric conversion on the continuous second upstream data stream, which greatly reduces the complexity of OLT1's optical module processing the second upstream data stream and improves the efficiency of OLT1's optical module processing the second upstream data stream. . OLT1 can process the second upstream data stream of the electrical signal to obtain the upstream services of ONU1 and the upstream services of ONU2 carried in the second upstream data stream.
采用本实施例所示的方法,环形组网中各ONU在OLT1指示的时隙上承载自身的上行业务,例如上述所示的ONU2在OLT1分配的第一时隙上承载ONU2的上行业务。可以理解,环形组网所包括的各个ONU发送上行业务是基于TDMA发送,即各个ONU发送上行业务的时隙由OLT1分配和控制,OLT1指示的各个时隙之间无时间上的重叠,避免了OLT为不同的ONU指示的时隙出现冲突的可能。而且避免了环形组网的各个ONU基于竞争机制发送上行业务所带来的承载各个上行业务的时隙的不确定性。因各个ONU基于TDMA发送各自的上行业务,使得各ONU无需对承载来自不同ONU的上行业务的时隙进行重排或上行业务的删除,保证了各ONU所发送的上行业务的时延抖动不会出现恶化等情况。降低了各ONU所发送的上行业务重传的概率,有效的保证了环形组网的传输质量以及传输带宽。各个ONU基于OLT1指示的时隙进行上行业务的传输,提高了传输上行业务的可控性和传输效率。 Using the method shown in this embodiment, each ONU in the ring network carries its own uplink service on the time slot indicated by OLT1. For example, ONU2 shown above carries the uplink service of ONU2 on the first time slot allocated by OLT1. It can be understood that each ONU included in the ring network sends uplink services based on TDMA transmission, that is, the time slots for each ONU to send uplink services are allocated and controlled by OLT1. There is no time overlap between the various time slots indicated by OLT1, which avoids The time slots indicated by the OLT for different ONUs may conflict. Moreover, it avoids the uncertainty of time slots carrying each uplink service caused by each ONU in the ring network sending uplink services based on the competition mechanism. Since each ONU sends its own uplink services based on TDMA, each ONU does not need to rearrange the time slots carrying uplink services from different ONUs or delete the uplink services, ensuring that the delay jitter of the uplink services sent by each ONU will not Deterioration occurs. It reduces the probability of retransmission of the uplink services sent by each ONU, effectively ensuring the transmission quality and transmission bandwidth of the ring network. Each ONU transmits uplink services based on the time slot indicated by OLT1, which improves the controllability and transmission efficiency of uplink service transmission.
因本实施例所示的承载上行业务的上行数据流为信号连续的数据流,则使得上游ONU(例如ONU1)能够将自身的上行业务,直接承载于来自下游ONU(例如ONU2)的上行数据流中,降低了对各ONU的光模块以及OLT的光模块所处理的光信号的功率以及性能要求,降低了各光模块处理上行数据流的复杂度,提高了光模块处理上行数据流的效率。Since the upstream data stream carrying the uplink service shown in this embodiment is a data stream with continuous signals, the upstream ONU (for example, ONU1) can directly carry its own upstream service on the upstream data stream from the downstream ONU (for example, ONU2). It reduces the power and performance requirements for the optical signals processed by the optical modules of each ONU and the OLT, reduces the complexity of each optical module processing the upstream data flow, and improves the efficiency of the optical module in processing the upstream data flow.
因本实施例所示的方法应用于环形组网,若需要扩展环形组网,则可在环形组网所包括的任意两个节点之间增设新的节点,降低了扩展环形组网的难度,提高了环形组网的可扩展性。Since the method shown in this embodiment is applied to a ring network, if the ring network needs to be expanded, a new node can be added between any two nodes included in the ring network, which reduces the difficulty of expanding the ring network. Improved the scalability of ring networking.
图7a为本申请实施例提供的数据传输方法的第二种步骤流程图。本实施例所示的数据传输方法,说明在OLT1为ONU1指示的时隙已被其他有效上行业务占用的情况下,ONU1如何向OLT1发送ONU1的上行业务的过程。Figure 7a is a second step flow chart of the data transmission method provided by the embodiment of the present application. The data transmission method shown in this embodiment illustrates the process of how ONU1 sends the uplink service of ONU1 to OLT1 when the time slot indicated by OLT1 for ONU1 has been occupied by other valid uplink services.
步骤701、OLT1向ONU1发送第一时隙调度消息。Step 701: OLT1 sends the first time slot scheduling message to ONU1.
步骤702、ONU1复制第一时隙调度消息,获得第二时隙调度消息。Step 702: ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
步骤703、ONU1向ONU2发送第二时隙调度消息。Step 703: ONU1 sends the second time slot scheduling message to ONU2.
步骤704、ONU2向ONU1发送第一上行数据流。Step 704: ONU2 sends the first upstream data stream to ONU1.
本实施例所示的步骤701至步骤704的执行过程的说明,请参见图3对应的步骤301至步骤304所示,具体执行过程不做赘述。For an explanation of the execution process of steps 701 to 704 shown in this embodiment, please refer to the corresponding steps 301 to 304 shown in Figure 3, and the specific execution process will not be described again.
步骤705、ONU1检测第三时隙是否已被有效上行业务占用。Step 705: ONU1 detects whether the third time slot has been occupied by valid uplink services.
ONU1根据第一时隙调度消息确定第二时隙,ONU1根据第一时隙调度消息确定第二时隙的过程,请参见图3对应的步骤305所示,具体不做赘述。ONU1检测第一上行数据流中的第三时隙是否已被有效上行业务占用。其中,第三时隙为所述第二时隙中的至少部分时隙。例如图8a和图8b所示,图8a为本申请实施例提供的上行数据流的第二种结构示例图。图8b为本申请实施例提供的上行数据流的第三种结构示例图。在ONU1根据第一时隙调度消息确定第二时隙的起始时刻为时刻t1,第二时隙的结束时刻为时刻t3的情况下,ONU1检测第二时隙是否已被有效上行业务占用。其中,有效上行业务为来自环形组网的任一ONU的上行业务。图8a所示的示例,第一上行数据流800为第二时隙全部被有效上行业务占用的示例。可以理解,图8a所示的示例中,第二时隙和第三时隙相同,即起始时刻均为时刻t1,结束时刻均为时刻t3。图8b所示的示例,第一上行数据流810为第二时隙部分被有效上行业务占用的示例。具体的,第二时隙内,在时刻t1至时刻t2内已承载有效上行业务。而在时刻t2至时刻t3已承载填充信息。可以理解,图8b所示的示例中,第二时隙的起始时刻为时刻t1,结束时刻为时刻t3,而第三时隙的起始时刻为时刻t1,结束时刻为时刻t2。ONU1 determines the second time slot according to the first time slot scheduling message, and the process of ONU1 determining the second time slot according to the first time slot scheduling message is shown in corresponding step 305 in Figure 3, and details will not be described again. ONU1 detects whether the third time slot in the first upstream data stream has been occupied by valid upstream services. Wherein, the third time slot is at least part of the second time slot. For example, as shown in Figures 8a and 8b, Figure 8a is a second structural example diagram of an uplink data flow provided by an embodiment of the present application. Figure 8b is a diagram showing a third structural example of an uplink data flow provided by an embodiment of the present application. When ONU1 determines that the start time of the second time slot is time t1 and the end time of the second time slot is time t3 according to the first time slot scheduling message, ONU1 detects whether the second time slot has been occupied by valid uplink services. Among them, the effective uplink service is the uplink service from any ONU in the ring network. In the example shown in Figure 8a, the first uplink data stream 800 is an example in which all second time slots are occupied by valid uplink services. It can be understood that in the example shown in Figure 8a, the second time slot and the third time slot are the same, that is, the starting time is time t1 and the end time is time t3. In the example shown in Figure 8b, the first uplink data stream 810 is an example in which part of the second time slot is occupied by valid uplink services. Specifically, in the second time slot, valid uplink services have been carried from time t1 to time t2. From time t2 to time t3, the filling information has been carried. It can be understood that in the example shown in Figure 8b, the starting time of the second time slot is time t1 and the ending time is time t3, while the starting time of the third time slot is time t1 and the ending time is time t2.
其中,在本实施例以环形组网包括ONU1和ONU2的情况下,该有效上行业务为来自ONU2的上行业务。若环形组网还包括连接在ONU2和OLT2之间的ONU3,则该有效上行业务也可为来自ONU3的上行业务,具体不做赘述。Wherein, in the case where the ring network in this embodiment includes ONU1 and ONU2, the effective uplink service is the uplink service from ONU2. If the ring network also includes ONU3 connected between ONU2 and OLT2, the effective uplink service can also be the uplink service from ONU3, and the details will not be described again.
步骤706、ONU1获得第二上行数据流。 Step 706: ONU1 obtains the second upstream data stream.
本实施例中,ONU1可根据ONU1检测到第二时隙是否已被有效上行业务占用的不同情况,采用不同的方式发送该第二上行数据流,以下说明ONU1发送第二上行数据流的几种可选方式:In this embodiment, ONU1 can send the second upstream data stream in different ways according to different situations where ONU1 detects whether the second time slot has been occupied by valid upstream services. The following describes several ways in which ONU1 sends the second upstream data stream. Optional methods:
可选方式1Optional method 1
经由步骤705,ONU1根据第一时隙调度消息确定第一上行数据流中第二时隙上未被有效上行业务占用的情况下,ONU1在第一上行数据流的第二时隙上承载ONU1的上行业务,获得第二上行数据流,具体说明请参见图3对应的步骤305所示,具体不做赘述。Through step 705, when ONU1 determines according to the first time slot scheduling message that the second time slot in the first upstream data stream is not occupied by valid uplink services, ONU1 carries ONU1's traffic on the second time slot of the first upstream data stream. The uplink service obtains the second uplink data stream. For specific instructions, please refer to step 305 corresponding to Figure 3, which will not be described in detail.
可选方式2Optional method 2
若经由步骤705,ONU1判断第二时隙已被有效上行业务完全占用。例如图8a所示,若第二时隙(起始时刻为时刻t1,结束时刻为时刻t3)已被有效上行业务完全占用,此示例中第三时隙与所述第二时隙相同,所述ONU1将占用第二时隙的有效上行业务替换为ONU1的上行业务,获得第二上行数据流802。If step 705 is passed, ONU1 determines that the second time slot has been fully occupied by valid uplink services. For example, as shown in Figure 8a, if the second time slot (the starting time is time t1 and the end time is time t3) has been completely occupied by valid uplink services, in this example the third time slot is the same as the second time slot, so The ONU1 replaces the valid uplink service occupying the second time slot with the uplink service of ONU1, and obtains the second uplink data stream 802.
ONU1还在第一上行数据流800的第二时隙上承载第一指示消息。所述第一指示消息用于指示ONU1已将所述第二时隙上已承载的有效上行业务替换为ONU1的上行业务。例如图8a所示的第二时隙的起始时刻为时刻t1,而结束时刻t3。ONU1在所述第一上行数据流800包括的第二时隙上承载第一指示消息,获得第二上行数据流802。该第一指示消息可包括第二时隙的起始时刻t1,结束时刻t3以及占用第二时隙的ONU1的标识。OLT1可根据该第一指示消息检测OLT1为第二时隙指示的ONU是否出现错误,例如,OLT1将同一第二时隙分配给了ONU1和ONU2。ONU1 also carries the first indication message on the second time slot of the first upstream data stream 800 . The first indication message is used to indicate that ONU1 has replaced the valid uplink service carried on the second time slot with the uplink service of ONU1. For example, the start time of the second time slot shown in Figure 8a is time t1, and the end time is t3. ONU1 carries the first indication message on the second time slot included in the first upstream data stream 800, and obtains the second upstream data stream 802. The first indication message may include the start time t1 of the second time slot, the end time t3 and the identification of the ONU1 occupying the second time slot. OLT1 can detect whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the first indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2.
可选方式3Optional method 3
若经由步骤705,ONU1判断第二时隙已被有效上行业务完全占用。例如图8a所示,若第二时隙(起始时刻为时刻t1,结束时刻为时刻t3)已被有效上行业务完全占用,此示例中第三时隙与所述第二时隙相同,所述ONU1可暂时不向OLT1发送ONU1的上行业务。可以理解,本可选方式所示的ONU1本次暂停上行业务的发送,从而避免ONU1的上行业务和其他ONU的上行业务出现冲突。ONU1在第二时隙上承载第三指示消息,该第三指示消息用于指示该第二时隙已被有效上行业务完全占用。例如图8a所示的第二时隙的起始时刻为时刻t1,而结束时刻t3。ONU1在所述第一上行数据流800的第二时隙上承载第三指示消息,获得第二上行数据流801。例如,该第三指示消息可包括第二时隙的起始时刻t1,结束时刻t3以及占用第二时隙的有效上行业务的ONU标识。OLT1可根据该第三指示消息检测OLT1为第二时隙指示的ONU是否出现错误,例如,OLT1将同一第二时隙分配给了ONU1和ONU2。If step 705 is passed, ONU1 determines that the second time slot has been fully occupied by valid uplink services. For example, as shown in Figure 8a, if the second time slot (the starting time is time t1 and the end time is time t3) has been completely occupied by valid uplink services, in this example the third time slot is the same as the second time slot, so The ONU1 may temporarily not send the uplink services of ONU1 to OLT1. It can be understood that ONU1 shown in this optional method suspends the transmission of upstream services this time, thereby avoiding conflicts between the upstream services of ONU1 and the upstream services of other ONUs. ONU1 carries a third indication message on the second time slot, and the third indication message is used to indicate that the second time slot has been fully occupied by valid uplink services. For example, the start time of the second time slot shown in Figure 8a is time t1, and the end time is t3. ONU1 carries the third indication message on the second time slot of the first upstream data stream 800 to obtain the second upstream data stream 801. For example, the third indication message may include the starting time t1, the ending time t3 of the second time slot, and the ONU identification of the valid uplink service occupying the second time slot. OLT1 can detect whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the third indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2.
可选方式4Optional method 4
在可选方式2至可选方式3中,以第二时隙被有效上行业务完全占用为例,在本示例中,第二时隙被有效上行业务部分占用。具体的,第二时隙包括第三时隙和第四时隙,其中,第三时隙被有效上行业务占用,而第四时隙已承载填充信息。所述ONU1将占用第三时隙的有效上行业务替换为ONU1的上行业务,并在第四时隙上承载ONU1的上行业务。 例如图8b所示,若第二时隙(起始时刻为时刻t1,结束时刻为时刻t3)中的第三时隙(起始时刻为时刻t1,结束时刻为时刻t2)已被有效上行业务占用。第四时隙(起始时刻为时刻t2,结束时刻为时刻t3)已承载填充信息。ONU1将所述第一上行数据流810的第三时隙上承载的有效上行业务替换为ONU1的上行业务,ONU1还将所述第一上行数据流810的第四时隙上承载的填充信息替换为ONU1的上行业务,获得第二上行数据流811。ONU1还可在第二时隙中承载第一指示消息,所述第一指示消息用于指示ONU1已将第三时隙上已承载的有效上行业务替换为ONU1的上行业务。In optional methods 2 to 3, it is assumed that the second time slot is completely occupied by valid uplink services. In this example, the second time slot is partially occupied by valid uplink services. Specifically, the second time slot includes a third time slot and a fourth time slot, where the third time slot is occupied by valid uplink services, and the fourth time slot already carries filling information. The ONU1 replaces the effective uplink service occupying the third time slot with the uplink service of ONU1, and carries the uplink service of ONU1 on the fourth time slot. For example, as shown in Figure 8b, if the third time slot (the starting time is time t1, the ending time is time t2) in the second time slot (the starting time is time t1, the ending time is time t3) has been effectively uplinked, occupied. The fourth time slot (the starting time is time t2 and the end time is time t3) already carries filling information. ONU1 replaces the valid uplink service carried on the third time slot of the first upstream data stream 810 with the uplink service of ONU1, and ONU1 also replaces the filling information carried on the fourth time slot of the first upstream data stream 810 For the upstream service of ONU1, the second upstream data stream 811 is obtained. ONU1 may also carry a first indication message in the second time slot, where the first indication message is used to indicate that ONU1 has replaced the valid uplink service carried on the third time slot with the uplink service of ONU1.
可选方式5Optional method 5
在本示例中,第二时隙被有效上行业务部分占用。具体的,第二时隙包括第三时隙和第四时隙,其中,第三时隙被有效上行业务占用,而第四时隙已承载填充信息。所述ONU1本次暂停上行业务的发送,从而避免ONU1的上行业务和其他ONU的上行业务出现冲突。ONU1在第二时隙上承载第三指示消息,该第三指示消息用于指示该第二时隙已被有效上行业务完全占用,ONU1暂停发送ONU1的上行业务的说明,请参见可选方式3所示,具体不做赘述。In this example, the second time slot is partially occupied by valid uplink traffic. Specifically, the second time slot includes a third time slot and a fourth time slot, where the third time slot is occupied by valid uplink services, and the fourth time slot already carries filling information. The ONU1 suspends the transmission of uplink services this time, thereby avoiding conflicts between the uplink services of ONU1 and the uplink services of other ONUs. ONU1 carries a third indication message on the second time slot. This third indication message is used to indicate that the second time slot has been fully occupied by valid uplink services. For instructions on how ONU1 suspends sending ONU1's uplink services, please refer to optional method 3. shown and will not be described in details.
可选方式6Optional method 6
ONU1根据第一时隙调度消息确定第三时隙和第四时隙,第三时隙和第四时隙的说明,请参见可选方式4所示,具体不做赘述。本示例所示的ONU1在第四时隙上承载ONU1的上行业务。例如图8b所示的示例中,在第二时隙中,有效上行业务占用第三时隙(起始时刻为时刻t1,结束时刻为时刻t2),而第四时隙(起始时刻为时刻t2,结束时刻为时刻t3)已承载填充信息。ONU1将第一上行数据流810的第四时隙上的填充信息替换为ONU1的上行业务,获得第二上行数据流812。本实施例所示的ONU1可在第四时隙上承载第二指示消息,所述第二指示消息用于指示ONU1已在第四时隙上承载所述ONU1的上行业务。ONU1 determines the third time slot and the fourth time slot according to the first time slot scheduling message. For descriptions of the third time slot and the fourth time slot, please refer to optional mode 4, and the details will not be described again. ONU1 shown in this example carries the uplink service of ONU1 on the fourth time slot. For example, in the example shown in Figure 8b, in the second time slot, the effective uplink service occupies the third time slot (the starting time is time t1 and the end time is time t2), while the fourth time slot (the starting time is time t2 t2, the end time is time t3) has carried filling information. ONU1 replaces the filling information on the fourth time slot of the first upstream data stream 810 with the upstream service of ONU1, and obtains the second upstream data stream 812. The ONU1 shown in this embodiment can carry the second indication message on the fourth time slot, and the second indication message is used to indicate that the ONU1 has carried the uplink service of the ONU1 on the fourth time slot.
步骤707、ONU1向OLT1发送第二上行数据流。Step 707: ONU1 sends the second upstream data stream to OLT1.
步骤708、OLT1接收第二上行数据流。Step 708: OLT1 receives the second upstream data stream.
本实施例所示的步骤707至步骤708的执行过程的说明,请参见图3对应的步骤305至步骤306所示,具体执行过程不做赘述。For an explanation of the execution process of steps 707 to 708 shown in this embodiment, please refer to the corresponding steps 305 to 306 shown in Figure 3, and the specific execution process will not be described again.
OLT1接收到第二上行数据流的情况下,OLT1从第二上行数据流获得各个ONU的上行业务。若第二上行数据流已承载第一指示消息,则OLT1根据该第一指示消息检测OLT1为第二时隙指示的ONU是否出现错误。例如,OLT1将同一第二时隙分配给了ONU1和ONU2。若OLT1确定为第二时隙指示的ONU出现错误,则OLT1重新配置第一时隙调度消息,以保证在第一时隙调度消息中,不同的时隙对应不同的ONU的标识。OLT1再向ONU1发送配置后的第一时隙调度消息,具体发送过程,请参见步骤701所示,具体不做赘述。When OLT1 receives the second upstream data stream, OLT1 obtains the upstream services of each ONU from the second upstream data stream. If the second upstream data stream has carried the first indication message, OLT1 detects whether an error occurs in the ONU indicated by OLT1 for the second time slot according to the first indication message. For example, OLT1 allocates the same second time slot to ONU1 and ONU2. If OLT1 determines that the ONU indicated by the second time slot has an error, OLT1 reconfigures the first time slot scheduling message to ensure that in the first time slot scheduling message, different time slots correspond to different ONU identities. OLT1 then sends the configured first time slot scheduling message to ONU1. For the specific sending process, please refer to step 701, which will not be described in detail.
本实施例以ONU1和OLT1直接连接为例,若在其他示例中,ONU1和OLT1之间还连接一个或多个ONU,则连接在OLT1和ONU1之间的每个ONU均执行上述由ONU1所执行的步骤,具体执行过程,不做赘述。 In this embodiment, ONU1 and OLT1 are directly connected as an example. If in other examples, one or more ONUs are connected between ONU1 and OLT1, then each ONU connected between OLT1 and ONU1 will execute the above execution by ONU1. The steps and specific execution process will not be described in detail.
采用本实施例所示的方法,ONU1能够检测第二上行数据流中,OLT1为ONU1指示的时隙,是否出现占用错误的情况。在ONU1确定OLT1为ONU1指示的时隙被其他ONU的有效上行业务占用,ONU1可向OLT1发送用于指示出现时隙占用错误的指示消息,以使OLT1能够及时检测为ONU1指示的时隙是否出现分配错误。若出现了分配错误,则OLT1可及时调整为ONU1指示的时隙,保证了ONU1后续能够及时向OLT1发送ONU1的上行业务。Using the method shown in this embodiment, ONU1 can detect whether the time slot indicated by OLT1 by ONU1 in the second upstream data stream is occupied by an error. When ONU1 determines that the time slot indicated by OLT1 is occupied by the valid uplink services of other ONUs, ONU1 can send an indication message to OLT1 to indicate the occurrence of a time slot occupation error, so that OLT1 can promptly detect whether the time slot indicated by ONU1 occurs. Allocation error. If an allocation error occurs, OLT1 can promptly adjust to the time slot indicated by ONU1, ensuring that ONU1 can subsequently send ONU1's uplink services to OLT1 in a timely manner.
图7b为本申请实施例提供的数据传输方法的第三种步骤流程图。本实施例所示的数据传输方法,能够检测环形组网的各个ONU是否按照OLT1指示的时隙进行上行业务的传输。Figure 7b is a third step flow chart of the data transmission method provided by the embodiment of the present application. The data transmission method shown in this embodiment can detect whether each ONU in the ring network transmits uplink services according to the time slot indicated by OLT1.
步骤711、OLT1向ONU1发送第一时隙调度消息。Step 711: OLT1 sends the first time slot scheduling message to ONU1.
步骤712、ONU1复制第一时隙调度消息,获得第二时隙调度消息。Step 712: ONU1 copies the first time slot scheduling message and obtains the second time slot scheduling message.
步骤713、ONU1向ONU2发送第二时隙调度消息。Step 713: ONU1 sends the second time slot scheduling message to ONU2.
步骤714、ONU2向ONU1发送第一上行数据流。Step 714: ONU2 sends the first upstream data stream to ONU1.
本实施例所示的步骤711至步骤714的执行过程的说明,请参见图7a所示的步骤701至步骤704的执行过程的说明,具体执行过程不做赘述。For description of the execution process of steps 711 to 714 shown in this embodiment, please refer to the description of the execution process of step 701 to step 704 shown in Figure 7a, and the specific execution process will not be described again.
步骤715、ONU1获得第二上行数据流。Step 715: ONU1 obtains the second upstream data stream.
本实施例所示的步骤715的执行过程的说明,请参见图3的步骤305所示,具体不做赘述。For an explanation of the execution process of step 715 shown in this embodiment, please refer to step 305 in Figure 3 , and details will not be described again.
步骤716、ONU1将时隙冲突检测后的第二上行数据流发送至OLT1。Step 716: ONU1 sends the second upstream data stream after time slot conflict detection to OLT1.
本实施例所示的ONU1可检测第二上行数据流是否通过时隙冲突检测,该时隙冲突检测是指,ONU1检测环形组网的每个ONU实际用于承载上行业务的时隙,是否与OLT1为每个ONU指示的时隙相同。以下说明ONU1对第二上行数据流进行时隙冲突检测的过程:The ONU1 shown in this embodiment can detect whether the second upstream data stream passes the time slot conflict detection. The time slot conflict detection means that the ONU1 detects whether the time slot actually used by each ONU in the ring network to carry the uplink service matches the time slot. The timeslot indicated by OLT1 is the same for each ONU. The following describes the process of time slot conflict detection by ONU1 on the second upstream data stream:
首先,ONU1根据第二上行数据流获得第一时隙对应关系,所述第一时隙对应关系包括每个时隙和该时隙所承载的下游ONU标识的对应关系。可以理解,ONU1根据第二上行数据流确定实际占用每个时隙的下游ONU的标识。First, ONU1 obtains the first time slot correspondence according to the second upstream data stream. The first time slot correspondence includes the correspondence between each time slot and the downstream ONU identification carried by the time slot. It can be understood that ONU1 determines the identity of the downstream ONU that actually occupies each time slot according to the second upstream data stream.
该第一时隙对应关系可结合图8c和表1所示,其中,图8c为本申请实施例提供的上行数据流的第四种结构示例图。The first time slot correspondence relationship can be shown in combination with Figure 8c and Table 1, where Figure 8c is a fourth structural example diagram of an uplink data stream provided by an embodiment of the present application.
表1

Table 1

本示例所示以OLT1和OLT2之间,依次连接ONU1、ONU2以及ONU3为例,本示例所示的ONU1获得到如图8c所示的第二上行数据流820。该第二上行数据流820包括第二时隙以及该第二时隙已承载的ONU1的标识。该第一时隙的起始时刻为时刻t1,结束时刻为时刻t2。该第二上行数据流820包括第一时隙以及该第一时隙已承载的ONU2的标识。该第一时隙的起始时刻为时刻t3,结束时刻为时刻t4。该第二上行数据流820还包括第三时隙以及该第三时隙已承载的ONU3的标识。该第三时隙的起始时刻为时刻t5,结束时刻为时刻t6,依次类推,若ONU1与OLT2之间还连接ONUN,则该第二上行数据流820还包括第N时隙以及该第N时隙已承载的ONUN的标识。This example shows that ONU1, ONU2 and ONU3 are connected in sequence between OLT1 and OLT2. ONU1 shown in this example obtains the second upstream data stream 820 as shown in Figure 8c. The second upstream data stream 820 includes the second time slot and the identity of ONU1 carried by the second time slot. The starting time of the first time slot is time t1 and the end time is time t2. The second upstream data stream 820 includes the first time slot and the identity of ONU2 carried by the first time slot. The starting time of the first time slot is time t3, and the end time is time t4. The second upstream data stream 820 also includes a third time slot and an identification of ONU3 carried by the third time slot. The starting time of the third time slot is time t5, the end time is time t6, and so on. If ONUN is also connected between ONU1 and OLT2, the second upstream data stream 820 also includes the Nth time slot and the Nth time slot. The identifier of the ONUN carried by the timeslot.
再次,ONU1根据第一时隙调度消息获得第二时隙对应关系,所述第二时隙对应关系包括环形组网的每个ONU的标识以及OLT1为每个ONU指示的时隙的对应关系。可以理解,ONU1根据第一时隙调度消息确定OLT1为每个ONU指示的时隙。该第二时隙对应关系可参见表2所示:Again, ONU1 obtains the second time slot correspondence according to the first time slot scheduling message. The second time slot correspondence includes the identification of each ONU in the ring network and the correspondence between the time slots indicated by OLT1 for each ONU. It can be understood that ONU1 determines the time slot indicated by OLT1 for each ONU according to the first time slot scheduling message. The corresponding relationship of the second time slot can be seen in Table 2:
表2
Table 2
可以理解,ONU1根据第一时隙调度消息所包括的N个Allocation Structure创建如表2所示的第二时隙对应关系。例如,ONU1根据Allocation Structure1获得ONU1对应的Alloc-ID1以及对应的第二时隙。ONU1根据Allocation Structure2获得ONU2对应的Alloc-ID2以及对应的第一时隙。同样的,ONU1根据Allocation Structure3获得ONU3对应的Alloc-ID3以及对应的第三时隙。依次类推,若ONU1与OLT2之间还连接ONUN,则ONU1根据Allocation StructureN获得ONUN对应的Alloc-IDN以及对应的第N时隙。It can be understood that ONU1 creates the second time slot corresponding relationship as shown in Table 2 based on the N Allocation Structures included in the first time slot scheduling message. For example, ONU1 obtains the Alloc-ID1 corresponding to ONU1 and the corresponding second time slot based on Allocation Structure1. ONU1 obtains the Alloc-ID2 corresponding to ONU2 and the corresponding first time slot according to Allocation Structure2. Similarly, ONU1 obtains the Alloc-ID3 corresponding to ONU3 and the corresponding third time slot based on Allocation Structure3. By analogy, if ONUN is also connected between ONU1 and OLT2, ONU1 obtains the Alloc-IDN corresponding to ONUN and the corresponding Nth time slot based on Allocation StructureN.
ONU1根据表1所示的第一时隙对应关系以及表2所示的第二时隙对应关系确定,环形组网的每个ONU发送上行业务的时隙是否准确,即,ONU1根据第一时隙对应关系和第二时隙对应关系确定,每个ONU发送上行业务实际占用的时隙,是否与OLT1指示的时隙相同。具体的,若ONU1确定所述第一时隙对应关系与所述第二时隙对应关系相同,则ONU1确定ONU1所发送的上行业务占用的时隙准确。即ONU1在第一上行数据流中实际占用的时隙(即承载ONU1的上行业务的时隙)与OLT1通过第一时隙调度消息为ONU1指示的时隙相同。同样的,ONU1确定ONU2所发送的上行业务占用的时隙准确。即ONU2在第 一上行数据流中实际占用的时隙(即承载ONU2的上行业务的时隙)与OLT1通过第一时隙调度消息为ONU2指示的时隙相同。在第一时隙对应关系与第二时隙对应关系相同的情况下,还说明ONU3在上行数据流中实际占用的时隙(即承载ONU3的上行业务的时隙)与OLT1通过第一时隙调度消息为ONU3指示的时隙相同。依次类推,在第一时隙对应关系与第二时隙对应关系相同的情况下,还说明ONUN在上行数据流中实际占用的时隙(即承载ONUN的上行业务的时隙)与OLT1通过第一时隙调度消息为ONUN指示的时隙相同。ONU1 determines whether the time slot for each ONU in the ring network to send uplink services is accurate based on the first time slot correspondence shown in Table 1 and the second time slot correspondence shown in Table 2. That is, ONU1 determines whether the time slot used by each ONU in the ring network to send uplink services is accurate. The slot correspondence and the second time slot correspondence determine whether the time slot actually occupied by each ONU for sending uplink services is the same as the time slot indicated by OLT1. Specifically, if ONU1 determines that the corresponding relationship between the first time slot and the second time slot is the same, ONU1 determines that the time slot occupied by the uplink service sent by ONU1 is accurate. That is, the time slot actually occupied by ONU1 in the first upstream data stream (that is, the time slot carrying the upstream service of ONU1) is the same as the time slot indicated by OLT1 for ONU1 through the first time slot scheduling message. Similarly, ONU1 determines that the time slot occupied by the uplink service sent by ONU2 is accurate. That is, ONU2 is in the The time slot actually occupied in an uplink data stream (that is, the time slot carrying the uplink service of ONU2) is the same as the time slot indicated by OLT1 to ONU2 through the first time slot scheduling message. When the corresponding relationship between the first time slot and the second time slot is the same, it also means that the time slot actually occupied by ONU3 in the uplink data stream (that is, the time slot carrying the uplink service of ONU3) is the same as the time slot that OLT1 passes through the first time slot. The time slot indicated by the scheduling message for ONU3 is the same. By analogy, when the corresponding relationship between the first time slot and the second time slot is the same, it also means that the time slot actually occupied by ONUN in the upstream data stream (that is, the time slot carrying ONUN's upstream service) is the same as the time slot that OLT1 passes through the third time slot. A time slot scheduling message indicates the same time slot as ONUN.
若ONU1确定第一时隙对应关系与第二时隙对应关系相同的情况下,ONU1确定第二上行数据流通过了时隙冲突检测。则ONU1向OLT1发送通过了时隙冲突检测的第二上行数据流。If ONU1 determines that the corresponding relationship between the first time slot and the second time slot is the same, ONU1 determines that the second upstream data stream has passed the time slot conflict detection. Then ONU1 sends the second upstream data stream that passes the time slot conflict detection to OLT1.
若ONU1确定第一时隙对应关系与第二时隙对应关系不相同,则ONU1向OLT1发送所述第一时隙对应关系,OLT1根据该第一时隙对应关系检测OLT1为环形组网所包括的各个ONU指示的时隙是否出现错误,ONU1向OLT1发送第一时隙对应关系的说明,请参见ONU1向OLT1发送第一指示消息的说明,具体不做赘述。If ONU1 determines that the first time slot correspondence is different from the second time slot correspondence, ONU1 sends the first time slot correspondence to OLT1, and OLT1 detects that OLT1 is included in the ring network based on the first time slot correspondence. Whether there is an error in the time slot indicated by each ONU, ONU1 sends the first time slot correspondence to OLT1 for description, please refer to the description of ONU1 sending the first indication message to OLT1, and the details will not be repeated.
本实施例以ONU1检测第二上行数据流是否通过时隙冲突检测为例,在其他示例中,ONU1也可在接收到来自ONU2的第一上行数据流的情况下,检测第一上行数据流是否通过时隙冲突检测,检测第一上行数据流是否通过时隙冲突检测的过程,请参见检测第二上行数据流是否通过时隙冲突检测的过程的说明,具体不做赘述。In this embodiment, ONU1 detects whether the second upstream data stream passes the time slot conflict detection as an example. In other examples, ONU1 can also detect whether the first upstream data stream passes the time slot conflict detection when receiving the first upstream data stream from ONU2. For the process of detecting whether the first upstream data stream passes the time slot conflict detection through time slot conflict detection, please refer to the description of the process of detecting whether the second upstream data stream passes the time slot conflict detection, which will not be described in detail.
步骤717、OLT1接收第二上行数据流。Step 717: OLT1 receives the second upstream data stream.
本实施例所示的OLT1接收第二上行数据流的说明,请参见图3对应的步骤305所示的OLT1接收第二上行数据流的说明,具体不做赘述。For the description of OLT1 receiving the second upstream data stream shown in this embodiment, please refer to the description of OLT1 receiving the second upstream data stream shown in step 305 corresponding to Figure 3, and details will not be described again.
本实施例以ONU1和OLT1直接连接为例,若在其他示例中,ONU1和OLT1之间还连接一个或多个ONU,则连接在OLT1和ONU1之间的每个ONU均执行上述由ONU1所执行的步骤,具体执行过程,不做赘述。In this embodiment, ONU1 and OLT1 are directly connected as an example. If in other examples, one or more ONUs are connected between ONU1 and OLT1, then each ONU connected between OLT1 and ONU1 will execute the above execution by ONU1. The steps and specific execution process will not be described in detail.
采用本实施例所示的方法,ONU1能够检测第二上行数据流中,环形组网所包括的各ONU的上行业务所占用的时隙是否准确,在ONU1确定任一ONU的上行业务在第二上行数据流中占用错误的情况下,ONU1可向OLT1通知出现时隙占用错误的事件,以保证环形组网的各个ONU传输上行数据流的过程中,每个ONU均能够按照OLT1指示的时隙发送上行业务,有效的保证了环形组网的传输质量以及各个ONU传输上行业务的传输带宽,而且提高了传输上行业务的可控性和传输效率。Using the method shown in this embodiment, ONU1 can detect whether the time slots occupied by the upstream services of each ONU included in the ring network in the second upstream data stream are accurate, and ONU1 determines whether the upstream services of any ONU are in the second upstream data stream. When there is an occupancy error in the upstream data stream, ONU1 can notify OLT1 of the time slot occupancy error event to ensure that when each ONU in the ring network transmits the upstream data stream, each ONU can follow the time slot indicated by OLT1 Sending uplink services effectively ensures the transmission quality of the ring network and the transmission bandwidth of each ONU for transmitting uplink services, and improves the controllability and transmission efficiency of transmitting uplink services.
以下结合图9所示的示例,对OLT1向环形组网所包括的各个ONU发送下行数据流的过程进行说明,其中,图9为本申请实施例提供的数据传输方法的第四种步骤流程图。The following describes the process of OLT1 sending downlink data streams to each ONU included in the ring network with reference to the example shown in Figure 9. Figure 9 is a flow chart of the fourth step of the data transmission method provided by the embodiment of the present application. .
步骤901、OLT1向ONU1发送第一下行数据流。Step 901: OLT1 sends the first downstream data stream to ONU1.
本实施例以OLT1向ONU1和ONU2发送下行业务为例,在其他示例中,OLT1可向更多数量的ONU发送下行业务,具体发送过程请参见本实施例所示的OLT1向ONU1以及ONU2发送下行业务的说明。在其他示例中,也可由OLT2向各ONU发送下行业务,具体发送过 程请参见本实施例所示的OLT1向各ONU发送下行业务的说明。This embodiment takes OLT1 sending downlink services to ONU1 and ONU2 as an example. In other examples, OLT1 can send downlink services to a larger number of ONUs. For the specific sending process, please refer to OLT1 sending downlink services to ONU1 and ONU2 shown in this embodiment. Description of business. In other examples, OLT2 can also send downlink services to each ONU. Specifically, the For the process, please refer to the description of OLT1 sending downlink services to each ONU shown in this embodiment.
本实施例所示的第一下行数据流的结构可参见图10所示,其中,图10为本申请实施例提供的下行数据流的结构示例图。本实施例所示的第一下行数据流1000包括M个下行数据帧。即第一下行数据流1000包括第一下行数据帧,第二下行数据帧至第M下行数据帧,M为大于1的任意正整数。每个下行数据帧的结构的说明,请参见图5所示,具体不做赘述。每个下行数据帧的payload承载下行业务。以第M下行数据帧的payload为例,第M下行数据帧的payload已承载发送给ONU1的下行业务或发送给ONU2的下行业务中的至少一项。The structure of the first downlink data flow shown in this embodiment can be seen in Figure 10 , where Figure 10 is an example diagram of the structure of the downlink data flow provided by this embodiment of the present application. The first downlink data stream 1000 shown in this embodiment includes M downlink data frames. That is, the first downlink data stream 1000 includes the first downlink data frame, the second downlink data frame to the M-th downlink data frame, where M is any positive integer greater than 1. For a description of the structure of each downlink data frame, please refer to Figure 5, which will not be described in detail. The payload of each downlink data frame carries downlink services. Taking the payload of the Mth downlink data frame as an example, the payload of the Mth downlink data frame has carried at least one of the downlink service sent to ONU1 or the downlink service sent to ONU2.
结合图10和图11所示,其中,图11为本申请实施例提供的下行数据流的传输示例图。OLT1获得待发送至ONU1的第一下行业务,以及待发送至ONU2的第二下行业务。OLT1将第一下行业务以及第二下行业务进行封装,获得第一下行数据流1000。在其他示例中,第一下行数据流也可承载发送给所连接的所有ONU的广播业务,具体在本实施例中不做限定。在OLT1获得到本实施例所示的第一下行数据流的情况下,OLT1对该第一下行数据流进行电光转换,获得呈光信号的第一下行数据流,OLT1基于连接在OLT1和ONU1之间的光纤向ONU1发送呈光信号的第一下行数据流。As shown in FIG. 10 and FIG. 11 , FIG. 11 is a transmission example diagram of a downlink data flow provided by an embodiment of the present application. OLT1 obtains the first downlink service to be sent to ONU1 and the second downlink service to be sent to ONU2. OLT1 encapsulates the first downlink service and the second downlink service to obtain the first downlink data stream 1000. In other examples, the first downstream data stream may also carry broadcast services sent to all connected ONUs, which are not limited in this embodiment. When OLT1 obtains the first downstream data stream shown in this embodiment, OLT1 performs electro-optical conversion on the first downstream data stream to obtain the first downstream data stream in the form of an optical signal. OLT1 is connected to OLT1 based on The optical fiber between ONU1 and ONU1 sends the first downstream data stream in the form of optical signals to ONU1.
可选的,本实施例所示的OLT1获得到该第一下行数据流的情况下,OLT1可对该第一下行数据流进行FEC编码,以向ONU1发送FEC编码后的第一下行数据流。FEC编码的具体说明请参见图3对应的实施例的说明,具体不做赘述。Optionally, when OLT1 in this embodiment obtains the first downstream data stream, OLT1 can perform FEC encoding on the first downstream data stream to send the FEC-encoded first downstream data stream to ONU1. data flow. For detailed description of FEC encoding, please refer to the description of the embodiment corresponding to Figure 3, and no further details will be given.
步骤902、ONU1复制第一下行数据流,获得第二下行数据流。Step 902: ONU1 copies the first downstream data stream and obtains the second downstream data stream.
继续结合图10以及图11所示,ONU1经由连接在ONU1和OLT1之间的光纤接收到第一下行数据流1001,ONU1对该第一下行数据流1001进行光电转换,获得呈电信号的第一下行数据流。参加图10所示,ONU1获得到光电转换后的第一下行数据流1001,ONU1复制该第一下行数据流1001,获得第二下行数据流1002,可以理解,第一下行数据流1001和第二下行数据流1002所承载的内容完全相同。Continuing to combine Figures 10 and 11, ONU1 receives the first downstream data stream 1001 through the optical fiber connected between ONU1 and OLT1. ONU1 performs photoelectric conversion on the first downstream data stream 1001 to obtain an electrical signal. The first downstream data flow. As shown in Figure 10, ONU1 obtains the first downstream data stream 1001 after photoelectric conversion. ONU1 copies the first downstream data stream 1001 and obtains the second downstream data stream 1002. It can be understood that the first downstream data stream 1001 It is exactly the same as the content carried by the second downstream data stream 1002.
可选的,若OLT1已对第一下行数据流进行了FEC编码,则ONU1在对第一下行数据流进行复制之前,ONU1可对第一下行数据流进行FEC解码,ONU1对FEC解码后的第一下行数据流进行复制,获得第二下行数据流,FEC解码的说明,请参见图3对应的实施例,具体不做赘述。Optionally, if OLT1 has performed FEC encoding on the first downstream data stream, ONU1 can perform FEC decoding on the first downstream data stream before ONU1 copies the first downstream data stream, and ONU1 can decode the FEC on the first downstream data stream. The subsequent first downstream data stream is copied to obtain the second downstream data stream. For instructions on FEC decoding, please refer to the corresponding embodiment in Figure 3, which will not be described in detail.
步骤903、ONU1获得第一下行数据流已承载的第一下行业务。Step 903: ONU1 obtains the first downlink service carried by the first downlink data stream.
继续参见图11所示,ONU1处理第一下行数据流1001,获得该第一下行数据流1001已承载的第一下行业务。具体的,ONU1基于ONU1的标识,从第一下行数据流中获得承载ONU1标识的下行数据帧帧,ONU1从承载ONU1标识的下行数据帧帧的payload中获得第一下行业务。Continuing to refer to Figure 11, ONU1 processes the first downstream data stream 1001 and obtains the first downstream service carried by the first downstream data stream 1001. Specifically, ONU1 obtains the downlink data frame carrying the ONU1 identification from the first downstream data stream based on the ONU1 identification, and ONU1 obtains the first downlink service from the payload of the downlink data frame carrying the ONU1 identification.
步骤904、ONU1向ONU2发送第二下行数据流。Step 904: ONU1 sends the second downstream data stream to ONU2.
本实施例对步骤903和步骤904之间的执行时序不做限定。可选的,本实施例所示 的ONU1在对第二下行数据流进行电光转换之前,可对该第二下行数据流进行FEC编码,ONU1再对FEC编码后的第二下行数据流进行电光转换,以经由连接在ONU1和ONU2之间的光纤,向ONU2发送呈光信号的第二下行数据流。This embodiment does not limit the execution timing between step 903 and step 904. Optional, as shown in this embodiment The ONU1 of ONU1 can perform FEC encoding on the second downstream data stream before performing electro-optical conversion on the second downstream data stream. ONU1 then performs electro-optical conversion on the FEC-encoded second downstream data stream so as to pass through the connection between ONU1 and ONU2. The optical fiber between ONU2 sends the second downstream data stream in the form of optical signal to ONU2.
步骤905、ONU2获得第二下行数据流已承载的第二下行业务。Step 905: ONU2 obtains the second downlink service carried by the second downlink data stream.
ONU2处理第二下行数据流,获得第二下行数据流已承载的第二下行业务。具体的,ONU2基于ONU2的标识,从第二下行数据流中获得承载ONU2标识的下行数据帧,ONU2从承载ONU2标识的下行数据帧的payload中获得第二下行业务。对ONU2获得第二下行业务的具体过程的说明,请参见步骤903所示的ONU1获得第一下行业务的过程,具体不做赘述。ONU2 processes the second downlink data flow and obtains the second downlink service carried by the second downlink data flow. Specifically, ONU2 obtains the downlink data frame carrying the ONU2 identification from the second downstream data stream based on the ONU2 identification, and ONU2 obtains the second downlink service from the payload of the downlink data frame carrying the ONU2 identification. For a description of the specific process of ONU2 obtaining the second downlink service, please refer to the process of ONU1 obtaining the first downlink service shown in step 903, which will not be described again.
采用本实施例所示的方法,以ONU1为例,ONU1接收到第一下行数据流的情况下,先复制该第一下行数据流,获得第二下行数据流,因ONU1无需执行从第二下行数据流获得业务的相关操作,有效的降低了ONU1向ONU2发送第二下行数据流的时延,保证了环形组网所包括的各个ONU获得下行业务的及时性。Using the method shown in this embodiment, taking ONU1 as an example, when ONU1 receives the first downstream data stream, it first copies the first downstream data stream to obtain the second downstream data stream, because ONU1 does not need to execute the first downstream data stream. The related operations of obtaining the service for the second downstream data stream effectively reduce the delay of ONU1 sending the second downstream data stream to ONU2 and ensure the timeliness of each ONU included in the ring network obtaining the downstream service.
结合图12说明图9所示的实施例的有益效果。其中,图12为已有方案提供的环形组网的第二种结构示例图。图12所示以环形组网包括ONU1,ONU2,ONU3至ONUN。以分光器1201为例,ONU1与分光器1201的第一端口连接,分光器1201的第二端口与分光器1202连接,分光器1201的第三端口与OLT1连接。对分光器1202,分光器1203以及分光器1204的连接的说明,请参见分光器1201的说明,具体不做赘述。若需要OLT1向各个ONU发送下行业务,则OLT1将第一下行数据流发送给分光器1201。分光器1201对第一下行数据流进行分光,获得第一分光数据流和第二分光数据流,第一分光数据流和第二分光数据流所承载的业务一致,第一分光数据流的光功率小于第二分光数据流的光功率。分光器1201向ONU1发送第一分光数据流。分光器1201向分光器1202发送第二分光数据流。分光器1202也对第二分光数据流再次进行分光,分光器1202分光的说明,请参见分光器1201分光的说明,具体不做赘述。可知,已有的环形组网,OLT1为向各ONU(例如ONU1)发送下行业务,需要经由分光器的分光,造成了光功率的损失,例如,ONU2所接收到的下行数据流的光功率,已分出一部分分光给了ONU1,光功率的损失导致各ONU获得下行业务的难度以及准确性。而且图12所示的各分光器为不等比分光器,若环形组网连接了较多数量的分光器,则提高了环形组网的插损。The beneficial effects of the embodiment shown in Fig. 9 will be described with reference to Fig. 12. Among them, Figure 12 is an example diagram of the second structure of a ring network provided by an existing solution. Figure 12 shows a ring network including ONU1, ONU2, ONU3 to ONUN. Taking optical splitter 1201 as an example, ONU1 is connected to the first port of optical splitter 1201, the second port of optical splitter 1201 is connected to optical splitter 1202, and the third port of optical splitter 1201 is connected to OLT1. For the description of the connection of the optical splitter 1202, the optical splitter 1203 and the optical splitter 1204, please refer to the description of the optical splitter 1201, and the details will not be repeated. If OLT1 is required to send downlink services to each ONU, OLT1 sends the first downlink data stream to the optical splitter 1201. The optical splitter 1201 splits the first downlink data stream to obtain the first split data stream and the second split data stream. The services carried by the first split data stream and the second split data stream are consistent. The optical data of the first split data stream is the same. The power is less than the optical power of the second split optical data stream. The optical splitter 1201 sends the first split data stream to ONU1. The optical splitter 1201 sends the second optical split data stream to the optical splitter 1202. The optical splitter 1202 also splits the second optical data stream again. For the description of the optical splitting by the optical splitter 1202, please refer to the description of the optical splitting by the optical splitter 1201, and the details will not be described again. It can be seen that in the existing ring network, in order to send downlink services to each ONU (such as ONU1), OLT1 needs to split the light through an optical splitter, resulting in a loss of optical power. For example, the optical power of the downlink data stream received by ONU2, Part of the light has been split to ONU1. The loss of optical power makes it difficult and accurate for each ONU to obtain downlink services. Moreover, each optical splitter shown in Figure 12 is an unequal ratio optical splitter. If a larger number of optical splitters are connected to a ring network, the insertion loss of the ring network will be increased.
而本实施例所示的环形组网所包括的任意相邻的两个节点之间直接通过光纤连接,例如,OLT1与ONU1直接通过光纤连接,ONU1与ONU2直接通过光纤连接,无需采用不等比分光器进行连接,降低了环形组网的插损。OLT1所发送的下行数据流,各ONU将下行数据流进行光电转换,并对呈电信号的下行数据流进行处理(如上述所示的复制),降低了各ONU所接收到的下行数据流的光功率的损失。However, any two adjacent nodes included in the ring network shown in this embodiment are directly connected through optical fibers. For example, OLT1 and ONU1 are directly connected through optical fibers, and ONU1 and ONU2 are directly connected through optical fibers. There is no need to use unequal ratios. The optical device is connected to reduce the insertion loss of the ring network. For the downstream data stream sent by OLT1, each ONU performs photoelectric conversion on the downstream data stream and processes the downstream data stream in the form of electrical signals (as shown in the above copy), which reduces the efficiency of the downstream data stream received by each ONU. loss of optical power.
以下结合图13所示对本实施例所示的ONU1的结构进行说明,其中,图13为本申请实施例提供的ONU1的第一种结构示例图。The structure of the ONU1 shown in this embodiment will be described below with reference to FIG. 13 , where FIG. 13 is a first structural example diagram of the ONU1 provided by the embodiment of the present application.
本实施例所示的ONU1包括光模块1301和光模块1302。其中,光模块1301包括第 一发送端口(transport,TX)和第一接收端口(receive,RX)。光模块1302包括第二TX和第二RX。本实施例对ONU1所包括的光模块的数量不做限定,例如,第一TX,第一RX,第二TX以及第二RX均为同一光模块所具有的不同的端口。又如,ONU1可包括两个以上的任意数量的光模块,在第一RX和第一TX为ONU1所包括的一个光模块的收发端口,而第二RX和第二TX为ONU1所包括的另一个光模块的收发端口。以光模块1301为例,该光模块1301可为单纤双向(Bidirectional,BiDi)光模块或双纤光模块,具体不做限定。ONU1 shown in this embodiment includes an optical module 1301 and an optical module 1302. Among them, the optical module 1301 includes the A transmitting port (transport, TX) and a first receiving port (receive, RX). The optical module 1302 includes a second TX and a second RX. 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. Taking the optical module 1301 as an example, the optical module 1301 can be a single-fiber bidirectional (BiDi) optical module or a dual-fiber optical module, and is not specifically limited.
本实施例所示的ONU1还包括开关装置。开关装置包括检测器1310和与该检测器1310连接的开关阵列1330。开关阵列1330包括M个输入端口和M个输出端口,本实施例所示的M为大于或等于2的任意正整数,本实施例以ONU1包括两个光模块为例,则本实施例所示的开关阵列1330包括四个输入端口,即第一输入端口1311,第二输入端口1322,第三输入端口1313以及第四输入端口1324。开关阵列1330包括四个输出端口,即第一输出端口1321,第二输出端口1312,第三输出端口1323以及第四输出端口1314。The ONU1 shown in this embodiment also includes a switching device. The switching device includes a detector 1310 and a switch array 1330 connected to the detector 1310 . The switch array 1330 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. Then, as shown in this embodiment The switch array 1330 includes four input ports, namely a first input port 1311, a second input port 1322, a third input port 1313 and a fourth input port 1324. The switch array 1330 includes four output ports, namely a first output port 1321, a second output port 1312, a third output port 1323 and a fourth output port 1314.
需明确的是,本实施例所示的开关阵列1330所包括的输入端口和输出端口的数量,不做限定。本实施例所示的检测器1310用于将开关阵列1330所包括的任一输入端口与开关阵列1330所包括的第一输出端口连接。It should be noted that the number of input ports and output ports included in the switch array 1330 shown in this embodiment is not limited. The detector 1310 shown in this embodiment is used to connect any input port included in the switch array 1330 to the first output port included in the switch array 1330 .
本实施例所示的OLT1为主OLT,OLT2为从OLT,ONU1与主OLT1之间实现上行数据流和下行数据流的传输,在OLT1为主OLT的情况下,检测器1310使得开关阵列1303的第一输入端口1311与第一输出端口1321连接,且第一输出端口1321与业务处理器1340的第一处理端口1341连接。检测器1310还使得开关阵列的第四输出端口1314和第四输入端口1324连接,且第四输入端口1324与业务处理器1340的第二处理端口1342连接。而第一输入端口1311和第四输出端口1314均与光模块1301连接。同样的,检测器1310使得开关阵列1303的第二输出端口1312与第二输入端口1322连接,且第二输入端口1322与业务处理器1340的第三处理端口1343连接。检测器1310使得开关阵列1330的第三输入端口1313与第三输出端口1323连接,且第三输出端口1323与业务处理器1340的第四处理端口1344连接。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 1310 causes the switch array 1303 to The first input port 1311 is connected to the first output port 1321, and the first output port 1321 is connected to the first processing port 1341 of the service processor 1340. The detector 1310 also connects the fourth output port 1314 of the switch array and the fourth input port 1324 , and the fourth input port 1324 is connected to the second processing port 1342 of the service processor 1340 . The first input port 1311 and the fourth output port 1314 are both connected to the optical module 1301. Similarly, the detector 1310 connects the second output port 1312 of the switch array 1303 to the second input port 1322, and the second input port 1322 is connected to the third processing port 1343 of the service processor 1340. The detector 1310 connects the third input port 1313 of the switch array 1330 to the third output port 1323, and the third output port 1323 is connected to the fourth processing port 1344 of the service processor 1340.
本实施例所示的检测器1310可以是一个或多个芯片,或一个或多个集成电路。例如,检测器1310可以是一个或多个现场可编程门阵列(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)或其它集成芯片,或者上述芯片或者处理器的任意组合等。对业务处理器1340的说明,请参见对检测器1310形态的说明,具体不做赘述。本实施例所示的检测器检测器1310和业务处理器1340可为分立式结构以实现或为同一结构以实现,具体在本实施例中不做限定。The detector 1310 shown in this embodiment may be one or more chips, or one or more integrated circuits. For example, the detector 1310 may be one or more field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), system on chips (SoCs), central processing units Central processor unit (CPU), network processor (NP), digital signal processing circuit (digital signal processor, DSP), microcontroller unit (MCU), programmable logic device , PLD) or other integrated chips, or any combination of the above chips or processors, etc. For the description of the service processor 1340, please refer to the description of the form of the detector 1310, and details will not be described again. The detector 1310 and the service processor 1340 shown in this embodiment may be implemented in separate structures or in the same structure, which are not limited in this embodiment.
基于图13所示的ONU1的结构,结合图14所示说明ONU向OLT1发送上行业务的过 程进行说明,其中,图14为本申请实施例提供的数据传输方法的第五种步骤流程图。Based on the structure of ONU1 shown in Figure 13, the process of ONU sending uplink services to OLT1 is explained in conjunction with Figure 14. The process will be described, where FIG. 14 is a fifth step flow chart of the data transmission method provided by the embodiment of the present application.
步骤1401、ONU1选定第一RX和第一TX。Step 1401: 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也可选定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 determines OLT1 as the main OLT, 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. In other examples, ONU1 can also select OLT2 as the main OLT. For instructions on ONU1 selecting OLT2 as the main OLT, please refer to the selection of ONU1 shown in this embodiment. The description of OLT1 as the main OLT will not be described in detail. 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
业务处理器1340通过第一RX和第二RX均尝试接收下行数据流,在第一RX接收到来自OLT1的下行数据流,而第二RX未接收到来自OLT2的下行数据流的情况下,业务处理器1340确定OLT1作为主OLT。The service processor 1340 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 1340 Processor 1340 determines OLT1 as the primary OLT.
可选方式2Optional method 2
业务处理器1340通过第一RX和第二RX均尝试接收下行数据流,在第一RX接收到来自OLT1的下行数据流,且第二RX接收到来自OLT2的下行数据流的情况下,业务处理器判断第一RX所接收到的下行数据流的信号质量是否优于第二RX所接收到的下行数据流的信号质量。在业务处理器确定第一RX接收到的下行数据流的信号质量优于第二RX接收到的下行数据流的信号质量的情况下,业务处理器确定OLT1作为主OLT。The service processor 1340 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 1340 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.
步骤1402、ONU1通过第一RX接收第一下行数据流。Step 1402: ONU1 receives the first downlink data stream through the first RX.
本实施例中,在业务处理器确定OLT1作为主OLT的情况下,业务处理器1340通过检测器1310控制开关阵列1330所包括的各个输入端口和各个输出端口处于第一导通模式。其中,第一导通模式是指,开关阵列1303的第一输入端口1311与第一输出端口1321连接。开关阵列的第四输出端口1314和第四输入端口1324连接。开关阵列1303的第二输出端口1312与第二输入端口1322连接。开关阵列1330的第三输入端口1313与第三输出端口1323连接。In this embodiment, when the service processor determines that OLT1 is the main OLT, the service processor 1340 controls each input port and each output port included in the switch array 1330 to be in the first conduction mode through the detector 1310 . The first conduction mode refers to that the first input port 1311 of the switch array 1303 is connected to the first output port 1321. The fourth output port 1314 and the fourth input port 1324 of the switch array are connected. The second output port 1312 of the switch array 1303 is connected to the second input port 1322. The third input port 1313 of the switch array 1330 is connected to the third output port 1323.
ONU1的第一RX接收来自OLT1的第一下行数据流。光模块1301将该第一下行数据流进行光电转换以获得呈电信号的第一下行数据流。该第一下行数据流依次经由第一输入端口1311以及第一输出端口1321传输至业务处理器1340的第一处理端口1341。业 务处理器1340用于对来自第一处理端口1341的第一下行数据流获得来自OLT1的下行业务。The first RX of ONU1 receives the first downstream data stream from OLT1. The optical module 1301 performs photoelectric conversion on the first downstream data stream to obtain a first downstream data stream in the form of an electrical signal. The first downstream data flow is sequentially transmitted to the first processing port 1341 of the service processor 1340 via the first input port 1311 and the first output port 1321. Industry The service processor 1340 is configured to obtain the downlink service from OLT1 for the first downlink data flow from the first processing port 1341.
具体的,业务处理器1340从第一下行数据流的下行时隙中,获得发送给ONU1的第一下行业务。ONU1在第一下行数据流所包括的多个下行数据帧中,获得用于承载发送给ONU1的第一下行业务的下行数据帧。其中,用于承载该第一下行业务的下行数据帧的目的地址是ONU1的地址或标识。ONU1从该下行数据帧中获得该第一下行业务。对下行数据帧的具体说明,请参见图9所示,具体不做赘述。Specifically, the service processor 1340 obtains the first downlink service sent to ONU1 from the downlink time slot of the first downlink data stream. ONU1 obtains a downlink data frame used to carry the first downlink service sent to ONU1 from the plurality of downlink data frames included in the first downlink data stream. Wherein, the destination address of the downlink data frame used to carry the first downlink service is the address or identification of ONU1. ONU1 obtains the first downlink service from the downlink data frame. For the specific description of the downlink data frame, please refer to Figure 9, and the details will not be repeated.
步骤1403、ONU1通过第二TX发送第二下行数据流。Step 1403: ONU1 sends the second downlink data stream through the second TX.
可选的,在ONU2也以OLT1为主OLT的情况下,则ONU1根据第一下行数据流获得待发送给ONU2的第二下行数据流。以下对ONU1获得第二下行数据流的几种可选方式进行说明:Optionally, in the case where ONU2 also uses OLT1 as the main OLT, ONU1 obtains the second downstream data stream to be sent to ONU2 according to the first downstream data stream. The following describes several optional ways for ONU1 to obtain the second downstream data stream:
可选方式1Optional method 1
ONU1从第一下行数据流的下行时隙中,提取出发送给ONU1的第一下行业务的情况下,ONU1在该下行时隙中承载填充信息以获得该第二下行数据流。When ONU1 extracts the first downstream service sent to ONU1 from the downstream time slot of the first downstream data stream, ONU1 carries filling information in the downstream time slot to obtain the second downstream data stream.
可选方式2Optional method 2
ONU1从第一下行数据流中提取第二下行业务。该第二下行业务为第一下行数据流已承载的下行业务。ONU1判断出该第二下行业务也需要发送给ONU2。例如,若ONU1判断出该第二下行业务为OLT1广播发送的业务。又如,该第二下行业务包括的标识为ONU2的标识等。ONU1重新在第一下行数据流上承载第二下行业务以获得该第二下行数据流。ONU1 extracts the second downstream service from the first downstream data stream. The second downlink service is the downlink service already carried by the first downlink data flow. ONU1 determines that the second downlink service also needs to be sent to ONU2. For example, if ONU1 determines that the second downlink service is a service broadcast by OLT1. For another example, the identifier included in the second downlink service is the identifier of ONU2, etc. ONU1 re-carries the second downlink service on the first downlink data flow to obtain the second downlink data flow.
可选方式3Optional method 3
ONU1接收到第一下行数据流后,ONU1复制该第一下行数据流以获得第二下行数据流。ONU1从该第一下行数据流中提取发送给ONU1的第一下行业务。ONU1直接向ONU2发送该第二下行数据流,降低了ONU1向ONU2发送第二下行数据流的时延。After ONU1 receives the first downstream data stream, ONU1 copies the first downstream data stream to obtain the second downstream data stream. ONU1 extracts the first downlink service sent to ONU1 from the first downlink data stream. ONU1 directly sends the second downstream data stream to ONU2, which reduces the delay for ONU1 to send the second downstream data stream to ONU2.
参见图13所示,业务处理器1340的第三处理端口1343输出该第二下行数据流,该第二下行数据流依次经由第二输入端口1343以及第二输出端口1312传输至光模块1302。光模块1302对该第二下行数据流进行电光转换以获得呈光信号的第二下行数据流。光模块1302通过第二TX向ONU2发送该第二下行数据流。Referring to FIG. 13 , the third processing port 1343 of the service processor 1340 outputs the second downstream data stream, and the second downstream data stream is sequentially transmitted to the optical module 1302 via the second input port 1343 and the second output port 1312 . The optical module 1302 performs electro-optical conversion on the second downstream data stream to obtain a second downstream data stream in the form of an optical signal. The optical module 1302 sends the second downlink data stream to ONU2 through the second TX.
步骤1404、ONU1通过第二RX接收第一上行数据流。Step 1404: ONU1 receives the first upstream data stream through the second RX.
可选的,在ONU2也以OLT1为主OLT的情况下,ONU2获得第二下行数据流已承载来自OLT1的时隙调度消息。该时隙调度消息用于指示OLT1为ONU2分配的第一时隙。ONU2在第一上行数据流的第一上行时隙上,承载ONU2需要发送给OLT1的上行业务。对时隙调度消息的说明,请参见图3对应的实施例的说明,具体不做赘述。Optionally, when ONU2 also uses OLT1 as the main OLT, ONU2 obtains that the second downstream data stream carries the time slot scheduling message from OLT1. This time slot scheduling message is used to indicate the first time slot allocated by OLT1 to ONU2. ONU2 carries the uplink services that ONU2 needs to send to OLT1 in the first uplink time slot of the first uplink data stream. For the description of the time slot scheduling message, please refer to the description of the corresponding embodiment in Figure 3, and details will not be described again.
步骤1405、ONU1通过第一TX发送第二上行数据流。Step 1405: ONU1 sends the second upstream data stream through the first TX.
ONU1获得第一下行数据流已承载来自OLT1的时隙调度消息。该时隙调度消息用于 指示OLT1为ONU1分配的第二时隙。ONU1在第一上行数据流的第一上行时隙上,承载ONU1需要发送给OLT1的上行业务以获得第二上行数据流。具体过程的说明,请参见图3对应的实施例的说明,具体不做赘述。ONU1 obtains that the first downstream data stream has carried the time slot scheduling message from OLT1. This time slot scheduling message is used to Indicates the second time slot allocated by OLT1 to ONU1. On the first upstream time slot of the first upstream data stream, ONU1 carries the upstream services that ONU1 needs to send to OLT1 to obtain the second upstream data stream. For a description of the specific process, please refer to the description of the embodiment corresponding to Figure 3, and details will not be described again.
结合图13所示,第二RX所接收到的第一上行数据流发送至光模块1302。该光模块1302对该第一上行数据流进行光电转换以获得呈电信号的第一上行数据流。该第一上行数据流依次经由第三输入端口1313以及第三输出端口1323,传输至第四处理端口1344。业务处理器1340对来自第四处理端口1344的第一上行数据流进行处理以获得该第二上行数据流。业务处理器1340依次经由第二处理端口1342、第四输入端口1324以及第四输出端口1314传输至光模块1301。光模块1301对该第一上行数据流进行电光转换以获得呈光信号的第一上行数据流。ONU1通过第一TX向OLT1发送该第一上行数据流。As shown in FIG. 13 , the first upstream data stream received by the second RX is sent to the optical module 1302 . The optical module 1302 performs photoelectric conversion on the first upstream data stream to obtain a first upstream data stream in the form of an electrical signal. The first upstream data stream is transmitted to the fourth processing port 1344 via the third input port 1313 and the third output port 1323 in sequence. The service processor 1340 processes the first upstream data stream from the fourth processing port 1344 to obtain the second upstream data stream. The service processor 1340 transmits to the optical module 1301 via the second processing port 1342, the fourth input port 1324, and the fourth output port 1314 in sequence. The optical module 1301 performs electro-optical conversion on the first upstream data stream to obtain a first upstream data stream in the form of an optical signal. ONU1 sends the first upstream data stream to OLT1 through the first TX.
结合图15所示说明ONU1进行上下行业务传输的过程进行说明,其中,图15为本申请实施例提供的数据传输方法的第六种步骤流程图。本实施例中,OLT1能够正常发出下行数据流,而OLT2和ONU1之间出现了故障事件,导致OLT2和ONU1之间无法正常进行上下行业务传输。The process of uplink and downlink service transmission by ONU1 will be described with reference to Figure 15 , where Figure 15 is a sixth step flow chart of the data transmission method provided by the embodiment of the present application. In this embodiment, OLT1 can normally send downlink data streams, but a fault event occurs between OLT2 and ONU1, resulting in the inability to perform normal uplink and downlink service transmission between OLT2 and ONU1.
步骤1501、ONU1检测到第二RX和OLT2之间出现故障事件。Step 1501: ONU1 detects a fault event between the second RX and OLT2.
例如图16所示,其中,图16为本申请实施例提供的ONU1的第二种结构示例图。ONU1的检测器1310可与光模块1302连接,检测器1310检测光模块1302的第二RX是否能够正常接收到光信号。若检测器1310超过预设时间段内,持续无法检测到第二RX成功接收到光信号的事件或持续检测到的光信号的光功率小于预设阈值,则确定OLT2和ONU1的第二RX之间出现故障事件。又如,检测器1310连接于光模块1302和第三输入端口1313之间的线路。检测器1310基于该线路获得光模块1302所输出的电信号,检测器1310检测电信号是否包括连续的有效帧头,若否,则确定OLT2和ONU1的第二RX之间出现故障事件。又如,检测器1310检测到该电信号的误码率超过预设阈值。本实施例对检测器1310如何确定OLT2和ONU1的第二RX之间出现故障事件不做限定,只要在OLT2和ONU1的第二RX之间存在故障事件的情况下,来自OLT2的下行数据流无法成功传输至ONU1。可以理解,ONU1在确定第二RX和OLT2之间出现故障事件的情况下,ONU1确定OLT1为主OLT。For example, as shown in Figure 16, Figure 16 is a second structural example diagram of ONU1 provided by the embodiment of the present application. The detector 1310 of ONU1 can be connected to the optical module 1302, and the detector 1310 detects whether the second RX of the optical module 1302 can receive the optical signal normally. If the detector 1310 continues to be unable to detect the event that the second RX successfully receives the optical signal beyond the preset time period or the optical power of the continuously detected optical signal is less than the preset threshold, then determine whether the second RX of OLT2 and ONU1 A fault event occurred during the period. For another example, the detector 1310 is connected to the line between the optical module 1302 and the third input port 1313 . The detector 1310 obtains the electrical signal output by the optical module 1302 based on the line. The detector 1310 detects whether the electrical signal includes a continuous valid frame header. If not, it is determined that a fault event occurs between the OLT2 and the second RX of the ONU1. For another example, the detector 1310 detects that the bit error rate of the electrical signal exceeds a preset threshold. This embodiment does not limit how the detector 1310 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 transmitted to ONU1. It can be understood that when ONU1 determines that a fault event occurs between the second RX and OLT2, ONU1 determines that OLT1 is the primary OLT.
步骤1502、ONU1的检测器将开关阵列由第二导通模式切换至第一导通模式。Step 1502: The detector of ONU1 switches the switch array from the second conduction mode to the first conduction mode.
开关阵列1330处于第一导通模式的说明,请参见图13所示,具体不做赘述。在开关阵列1330处于第二导通模式的情况下,则开关阵列1330的第一输入端口1311与第三输出端口1323连接,且第三输出端口1323与第四处理端口1344连接。开关阵列1330的第四输出端口1314与第二输入端口1322连接,且第二输入端口1322与第三处理端口1343连接。开关阵列1330的第二输出端口1312与第四输入端口1324连接,且第四输入端口1324与第二处理端口1342连接。开关阵列1330的第二输入端口1313与第一输出端口1321连接,且第一输出端口1321与第一处理端口1341连接。在开关阵列1330处于第二导通模式的情况下,来自OLT2的下行数据流能够经由光模块1302的第二RX、第三输入端口1313以及第一输出端口1321,传输至业务处理器1340,以使该业务处理 器1340对来自OLT2的下行业务进行处理。For an explanation of the switch array 1330 being in the first conduction mode, please refer to FIG. 13 , and details will not be described again. When the switch array 1330 is in the second conduction mode, the first input port 1311 of the switch array 1330 is connected to the third output port 1323, and the third output port 1323 is connected to the fourth processing port 1344. The fourth output port 1314 of the switch array 1330 is connected to the second input port 1322, and the second input port 1322 is connected to the third processing port 1343. The second output port 1312 of the switch array 1330 is connected to the fourth input port 1324, and the fourth input port 1324 is connected to the second processing port 1342. The second input port 1313 of the switch array 1330 is connected to the first output port 1321, and the first output port 1321 is connected to the first processing port 1341. When the switch array 1330 is in the second conduction mode, the downlink data flow from the OLT2 can be transmitted to the service processor 1340 via the second RX, the third input port 1313 and the first output port 1321 of the optical module 1302, so as to make the business process The processor 1340 processes the downlink traffic from OLT2.
在检测器1310检测到OLT2和第二RX之间出现故障事件,则检测器1310将开关阵列的导通模式由图16所示切换至图13所示,以使OLT1为主OLT,而OLT2为从OLT。切换后的ONU1能够接收来自OLT1的第一下行数据流。When the detector 1310 detects a fault event between OLT2 and the second RX, the detector 1310 switches the conduction mode of the switch array from that shown in Figure 16 to that shown in Figure 13, so that OLT1 is the main OLT and OLT2 is from OLT. After switching, ONU1 can receive the first downstream data stream from OLT1.
本示例以基于OLT2和ONU1之间出现故障事件以被动倒换为例,在其他示例中,也可由OLT1和OLT2协商进行主动倒换,以使OLT1切换为主OLT,OLT2切换为从OLT。This example uses passive switching based on a fault event between OLT2 and ONU1. In other examples, OLT1 and OLT2 can also negotiate active switching, so that OLT1 switches to the master OLT and OLT2 switches to the slave OLT.
步骤1503、ONU1选定第一RX和第一TX。Step 1503: ONU1 selects the first RX and the first TX.
在开关阵列1330处于第一导通模式的情况下,则ONU1确定第一RX为接收主OLT(即OLT1)的下行数据流的接收端口。When the switch array 1330 is in the first conduction mode, ONU1 determines the first RX as the receiving port that receives the downstream data stream of the main OLT (that is, OLT1).
步骤1504、ONU1通过第一RX接收第一下行数据流。Step 1504: ONU1 receives the first downlink data stream through the first RX.
本实施例所示的步骤1504的执行过程的说明,请参见图14对应的步骤1402所示,具体不做赘述。For an explanation of the execution process of step 1504 shown in this embodiment, please refer to the corresponding step 1402 shown in Figure 14, and details will not be described again.
步骤1505、ONU1通过第二TX发送第二下行数据流。Step 1505: ONU1 sends the second downlink data stream through the second TX.
本实施例中,在ONU1检测到OLT2和ONU1之间出现故障事件的情况下,ONU1可向ONU2发送第二下行数据流,以保证在ONU1和ONU2之间未出现故障事件的情况下,ONU2能够成功与OLT1进行上下行业务传输。本实施例所示的步骤1505的执行过程,请参见图14对应的步骤1403所示,具体不做赘述。In this embodiment, when ONU1 detects a fault event between OLT2 and ONU1, ONU1 can send the second downstream data stream to ONU2 to ensure that ONU2 can Successfully transmitted uplink and downlink services with OLT1. For the execution process of step 1505 shown in this embodiment, please refer to the corresponding step 1403 in Figure 14, and details will not be described again.
步骤1506、ONU1通过第二RX接收第一上行数据流。Step 1506: ONU1 receives the first upstream data stream through the second RX.
步骤1507、ONU1通过第一TX发送第二上行数据流。Step 1507: ONU1 sends the second upstream data stream through the first TX.
本实施例所示的步骤1506至步骤1507的执行过程的说明,请参见图14对应的步骤1404至步骤1405所示,具体不做赘述。For an explanation of the execution process of steps 1506 to 1507 shown in this embodiment, please refer to the corresponding steps 1404 to 1405 shown in Figure 14, and details will not be described again.
采用本实施例所示的方法,在OLT2和ONU1之间的出现故障事件的情况下,ONU1所包括的开关阵列能够切换导通模式,以使切换了导通模式的ONU1能够与另一OLT(如上述所示的OLT1)进行上下行业务的传输,以使ONU1能够与另一OLT进行数据通信,保证了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 the ONU1 that has switched the conduction mode can communicate with another OLT ( OLT1) as shown above transmits uplink and downlink services, so that ONU1 can perform data communication with another OLT, ensuring the successful transmission of uplink and downlink services of ONU1.
采用本实施例所示的方法,ONU与主OLT(如OLT1)之间出现故障事件的情况下,ONU的开关阵列能够切换导通模式,以使切换了开关阵列导通模式的ONU,能够与新的主OLT(如OLT2)之间进行上行业务的传输,保证了环形组网各ONU上行业务的成功传输。Using the method shown in this embodiment, when a fault event occurs between the ONU and the main OLT (such as OLT1), the switch array of the ONU can switch the conduction mode, so that the ONU that has switched the conduction mode of the switch array can communicate with The transmission of upstream services between new main OLTs (such as OLT2) ensures the successful transmission of upstream services of each ONU in the ring network.
本申请实施例还提供了一种通信设备,所述通信设备的结构请参见图17所示,其中,图17为本申请实施例提供的通信设备的结构示例图。本实施例所示的通信设备1700包括收发器1701和业务处理器1702,其中收发器1701和业务处理器1702连接。本实施例所示的通信设备可为OLT,该OLT包括的收发器1701用于执行图3、图7a、图7b、图9、图14以及图15所示的实施例中,由OLT执行的与收发相关的流程。该OLT包括的业务处理器1702用于执行图3、图7a、图7b、图9、图14以及图15所示的实施例中,由OLT执行的与处理相关的流程。An embodiment of the present application also provides a communication device. The structure of the communication device is shown in FIG. 17 , where FIG. 17 is an example structural diagram of the communication device provided by an embodiment of the present application. The communication device 1700 shown in this embodiment includes a transceiver 1701 and a service processor 1702, where the transceiver 1701 and the service processor 1702 are connected. The communication device shown in this embodiment may be an OLT. The transceiver 1701 included in the OLT is used to perform the tasks performed by the OLT in the embodiments shown in Figures 3, 7a, 7b, 9, 14 and 15. Processes related to sending and receiving. The service processor 1702 included in the OLT is used to execute the processing-related processes executed by the OLT in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15.
本实施例所示的通信设备可为环形组网所包括的任一ONU。该ONU包括的收发器1701用于 执行图3、图7a、图7b、图9、图14以及图15所示的实施例中,由ONU执行的与收发相关的流程。该ONU包括的业务处理器1702用于执行图3、图7a、图7b、图9、图14以及图15所示的实施例中,由ONU执行的与处理相关的流程。The communication device shown in this embodiment can be any ONU included in the ring network. The ONU includes a transceiver 1701 for Execute the processes related to transmission and reception performed by the ONU in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15. The service processor 1702 included in the ONU is used to execute the processing-related processes executed by the ONU in the embodiments shown in FIG. 3, FIG. 7a, FIG. 7b, FIG. 9, FIG. 14, and FIG. 15.
具体的,本实施例所示的ONU具体可参见图13或图16所示的ONU1。更具体的,该通信设备1700的收发器1701可包括图13或图16所示的光模块1301和光模块1302,对光模块1301和光模块1302的具体说明,请参见图13或图16所示的说明,具体不做赘述。需明确的是,本实施例以收发器1701包括两个光模块为例,在其他示例中,收发器1701也可仅包括一个光模块,或两个以上的光模块。在通信设备1700包括两个以上的光模块的情况下,能够实现复杂结构的组网,本实施例对具体组网类型不做限定。例如图18所示,包括三个光模块的通信设备能够组成双环形组网,其中,图18为本申请实施例所提供的双环形组网结构示例图。Specifically, for the ONU shown in this embodiment, see ONU1 shown in Figure 13 or Figure 16 . More specifically, the transceiver 1701 of the communication device 1700 may include the optical module 1301 and the optical module 1302 shown in Figure 13 or Figure 16. For a specific description of the optical module 1301 and the optical module 1302, please refer to Figure 13 or Figure 16. Explanation without going into details. It should be noted that in this embodiment, the transceiver 1701 includes two optical modules as an example. In other examples, the transceiver 1701 may include only one optical module, or more than two optical modules. When the communication device 1700 includes two or more optical modules, a complex-structured network can be implemented. This embodiment does not limit the specific networking type. For example, as shown in Figure 18, communication equipment including three optical modules can form a dual-ring network. Figure 18 is an example diagram of a dual-ring network structure provided by an embodiment of the present application.
该双环形组网1800包括OLT1以及与OLT1连接的ONU1,其中,ONU1的业务处理器1802分别与光模块1801,光模块1803以及光模块1804连接。光模块1801与OLT1连接,光模块1803与ONU2连接,光模块1801与ONU3连接,对ONU1所包括的每个光模块以及业务处理器的说明,请参见图13或图16对应的光模块的说明,具体不做赘述。该双环形组网1800还包括与OLT2连接的ONU4,该ONU4包括业务处理器1814,业务处理器1814分别与光模块1811,光模块1812以及光模块1813连接。光模块1811与ONU2连接。光模块1812与ONU3连接。光模块1813与OLT2连接,对ONU4所包括的每个光模块以及业务处理器的说明,请参见图13或图16对应的光模块的说明,具体不做赘述。需明确的是,本实施例以通信设备包括三个光模块以组建双环形组网为例,本实施例对组网的具体类型不做限定。可以理解,本实施例所提供的光通信网络的类型可为环形组网、双环形组网或树形组网等任意类型,具体不做限定。本实施例所示能够实现任意形状的灵活组网,降低了组网后续增设通信节点的难度,提高了组网后续的可扩展性。The dual-ring network 1800 includes OLT1 and ONU1 connected to OLT1. The service processor 1802 of ONU1 is connected to the optical module 1801, the optical module 1803 and the optical module 1804 respectively. Optical module 1801 is connected to OLT1, optical module 1803 is connected to ONU2, and optical module 1801 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 13 or Figure 16 , no details will be given. The dual ring network 1800 also includes an ONU4 connected to the OLT2. The ONU4 includes a service processor 1814. The service processor 1814 is connected to the optical module 1811, the optical module 1812 and the optical module 1813 respectively. The optical module 1811 is connected to ONU2. The optical module 1812 is connected to ONU3. The optical module 1813 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 13 or Figure 16, 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 the 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.
本实施例所示的通信设备还可包括如图13或图16所示的检测器以及开关阵列,具体说明,请参见图13或图16对应的说明,具体不做赘述。The communication device shown in this embodiment may also include a detector and a switch array as shown in Figure 13 or Figure 16. For specific description, please refer to the corresponding description of Figure 13 or Figure 16, 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 (28)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    第一通信节点接收来自第二通信节点的第一上行数据流,所述第二通信节点的上行业务占用所述第一上行数据流的第一时隙,所述第一时隙由中心局设备指示;The first communication node receives the first uplink data stream from the second communication node. The uplink service of the second communication node occupies the first time slot of the first uplink data stream. The first time slot is used by the central office equipment. instruct;
    所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流,所述第二时隙由所述中心局设备指示,所述第一时隙不同于所述第二时隙;The first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink data stream, and the second time slot is used by the central office equipment Indicate that the first time slot is different from the second time slot;
    所述第一通信节点向所述中心局设备发送所述第二上行数据流。The first communication node sends the second upstream data stream to the central office device.
  2. 根据权利要求1所述的方法,其特征在于,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流之前,所述方法还包括:The method according to claim 1, characterized in that the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink data stream. Previously, the method also included:
    所述第一通信节点接收来自所述中心局设备的第一时隙调度消息,所述第一时隙调度消息用于指示所述第一时隙以及所述第二时隙;The first communication node receives a first time slot scheduling message from the central office device, where the first time slot scheduling message is used to indicate the first time slot and the second time slot;
    所述第一通信节点复制所述第一时隙调度消息,获得第二时隙调度消息;The first communication node copies the first time slot scheduling message to obtain a second time slot scheduling message;
    所述第一通信节点向所述第二通信节点发送所述第二时隙调度消息。The first communication node sends the second time slot scheduling message to the second communication node.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:The method according to claim 1 or 2, characterized in that the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink service. Data flows include:
    所述第一通信节点将所述第二时隙上已承载的填充信息替换为所述第一通信节点的上行业务,获得第二上行数据流。The first communication node replaces the filling information carried on the second time slot with the uplink service of the first communication node to obtain a second uplink data stream.
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流之前,所述方法还包括:The method according to claim 1 or 2, characterized in that the first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink service. Before data flow, the method also includes:
    所述第一通信节点确定所述第一上行数据流的第三时隙上已承载有效上行业务,所述有效上行业务为来自另一通信节点的上行业务,所述第三时隙为所述第二时隙中的至少部分时隙;The first communication node determines that the third time slot of the first uplink data stream has carried valid uplink service, the valid uplink service is the uplink service from another communication node, and the third time slot is the at least some of the second time slots;
    所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:The first communication node carries the uplink service of the first communication node on the second time slot of the first uplink data stream, and obtaining the second uplink data stream includes:
    所述第一通信节点将所述有效上行业务替换为所述第一通信节点的上行业务,获得所述第二上行数据流。The first communication node replaces the effective uplink service with the uplink service of the first communication node to obtain the second uplink data stream.
  5. 根据权利要求4所述的方法,其特征在于,所述第一通信节点向所述中心局设备发送所述第二上行数据流之前,所述方法还包括:The method according to claim 4, characterized in that before the first communication node sends the second uplink data stream to the central office device, the method further includes:
    所述第一通信节点在所述第三时隙上承载第一指示消息,所述第一指示消息用于指示所述第一通信节点已将所述有效上行业务替换为所述第一通信节点的上行业务。The first communication node carries a first indication message on the third time slot, and the first indication message is used to indicate that the first communication node has replaced the effective uplink service with the first communication node. Upward business.
  6. 根据权利要求4或5所述的方法,其特征在于,所述第三时隙为所述第二时隙中的部分时隙,所述第一通信节点在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流包括:The method according to claim 4 or 5, characterized in that the third time slot is a part of the second time slot, and the first communication node is in the first upstream data stream. Carrying the uplink service of the first communication node on the second time slot, obtaining the second uplink data stream includes:
    所述第一通信节点在所述第一上行数据流的第四时隙上承载所述第一通信节点的上行业务,获得所述第二上行数据流,所述第四时隙为所述第二时隙中未被所述有效上行业务占用 的时隙。The first communication node carries the uplink service of the first communication node on the fourth time slot of the first uplink data stream to obtain the second uplink data stream, and the fourth time slot is the first time slot of the first uplink data stream. The second time slot is not occupied by the effective uplink service. time slot.
  7. 根据权利要求6所述的方法,其特征在于,所述第一通信节点向所述中心局设备发送所述第二上行数据流之前,所述方法还包括:The method according to claim 6, characterized in that before the first communication node sends the second uplink data stream to the central office device, the method further includes:
    所述第一通信节点在所述第四时隙上承载第二指示消息,所述第二指示消息用于指示所述第一通信节点已在所述第四时隙上承载所述第一通信节点的上行业务。The first communication node carries a second indication message on the fourth time slot, and the second indication message is used to indicate that the first communication node has carried the first communication on the fourth time slot. Node’s upstream services.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述第一通信节点向所述中心局设备发送所述第二上行数据流包括:The method according to any one of claims 1 to 7, wherein the first communication node sending the second uplink data stream to the central office device includes:
    所述第一通信节点获得所述第二上行数据流的第一时隙对应关系,所述第一时隙对应关系包括所述第一时隙与所述第一时隙所承载的通信节点标识的对应关系;The first communication node obtains a first time slot correspondence relationship of the second uplink data stream, and the first time slot correspondence relationship includes the first time slot and the communication node identification carried by the first time slot. corresponding relationship;
    所述第一通信节点获得第二时隙对应关系,所述第二时隙对应关系由所述中心局设备指示的所述第一时隙与所述第二通信节点标识的对应关系;The first communication node obtains a second time slot correspondence, and the second time slot correspondence is a correspondence between the first time slot and the second communication node identification indicated by the central office device;
    若所述第一通信节点确定所述第一时隙对应关系与所述第二时隙对应关系相同,则所述第一通信节点向所述中心局设备发送所述第二上行数据流。If the first communication node determines that the first time slot corresponding relationship is the same as the second time slot corresponding relationship, the first communication node sends the second uplink data stream to the central office device.
  9. 根据权利要求8所述的方法,其特征在于,所述第一通信节点获得第二时隙对应关系之后,所述方法还包括:The method according to claim 8, characterized in that after the first communication node obtains the second time slot correspondence, the method further includes:
    若所述第一通信节点确定第一时隙对应关系与所述第二时隙对应关系不同,则所述第一通信节点向所述中心局设备发送所述第一时隙对应关系。If the first communication node determines that the first time slot correspondence is different from the second time slot correspondence, the first communication node sends the first time slot correspondence to the central office device.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述第一通信节点的第一接收端口RX与所述中心局设备连接,所述第一通信节点的第二RX与所述第二通信节点连接,所述第一通信节点接收来自第二通信节点的第一上行数据流之前,所述方法还包括:The method according to any one of claims 1 to 9, 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 first upstream data stream from the second communication node, the method further includes:
    所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述第一上行数据流的接收端口。The first communication node switches the second RX to a receiving port for receiving the first upstream data stream among the first RX and the second RX.
  11. 根据权利要求10所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述第一上行数据流的接收端口之前,所述方法还包括:The method according to claim 10, characterized in that, among the first RX and the second RX, the first communication node switches the second RX to receive the first uplink data stream. Before receiving the port, the method further includes:
    所述第一通信节点检测到经由所述第一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.
  12. 根据权利要求10所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第二RX切换为接收所述第一上行数据流的接收端口之前,所述方法还包括:The method according to claim 10, characterized in that, among the first RX and the second RX, the first communication node switches the second RX to receive the first uplink data stream. Before receiving the port, the method further includes:
    所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。The first communication node detects a failure event in the optical signal received via the second RX.
  13. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流,所述第一时隙由中心局设备指示;The second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream to obtain the first uplink data stream, and the first time slot is indicated by the central office device;
    所述第二通信节点向第一通信节点发送所述第一上行数据流。The second communication node sends the first uplink data stream to the first communication node.
  14. 根据权利要求13所述的方法,其特征在于,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:The method according to claim 13, characterized in that the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream, the The above methods also include:
    所述第二通信节点接收所述初始上行数据流。 The second communication node receives the initial upstream data stream.
  15. 根据权利要求13所述的方法,其特征在于,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:The method according to claim 13, characterized in that the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and before obtaining the first uplink data stream, the The above methods also include:
    所述第二通信节点生成所述初始上行数据流。The second communication node generates the initial upstream data stream.
  16. 根据权利要求13至15任一项所述的方法,其特征在于,所述第二通信节点在初始上行数据流的第一时隙上承载所述第二通信节点的上行业务,获得第一上行数据流之前,所述方法还包括:The method according to any one of claims 13 to 15, characterized in that the second communication node carries the uplink service of the second communication node on the first time slot of the initial uplink data stream, and obtains the first uplink service. Before the data flow, the method also includes:
    所述第二通信节点接收来自所述第一通信节点的第二时隙调度消息,所述第二时隙调度消息用于指示所述第一时隙。The second communication node receives a second time slot scheduling message from the first communication node, and the second time slot scheduling message is used to indicate the first time slot.
  17. 根据权利要求13至16任一项所述的方法,其特征在于,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点连接于所述中心局设备和所述第二通信节点之间。The method according to any one of claims 13 to 16, 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 is connected between the central office equipment and the second communication node.
  18. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    第一通信节点接收来自中心局设备的第一下行数据流,所述第一下行数据流已承载下行业务;The first communication node receives the first downlink data flow from the central office equipment, and the first downlink data flow has carried downlink services;
    所述第一通信节点复制所述第一下行数据流,获得第二下行数据流;The first communication node copies the first downlink data stream to obtain a second downlink data stream;
    所述第一通信节点获得所述第一下行数据流已承载的下行业务;The first communication node obtains the downlink service carried by the first downlink data flow;
    所述第一通信节点向第二通信节点发送所述第二下行数据流。The first communication node sends the second downlink data stream to the second communication node.
  19. 根据权利要求18所述的方法,其特征在于,所述第一通信节点接收来自中心局设备的第一下行数据流之后,所述方法还包括:The method according to claim 18, characterized in that after the first communication node receives the first downlink data stream from the central office device, the method further includes:
    所述第一通信节点获得所述第一下行数据流已承载的第一时隙调度消息,所述第一时隙调度消息用于指示第一时隙,所述第一通信节点的上行业务占用上行数据流的所述第一时隙。The first communication node obtains the first time slot scheduling message that has been carried by the first downlink data stream. The first time slot scheduling message is used to indicate the first time slot. The uplink service of the first communication node Occupy the first time slot of the upstream data stream.
  20. 根据权利要求18或19所述的方法,其特征在于,所述第一通信节点的第一接收端口RX与所述中心局设备连接,所述第一通信节点的第二RX与所述第二通信节点连接,所述第一通信节点接收来自中心局设备的第一下行数据流,所述第一下行数据流已承载下行业务之前,所述方法还包括:The method according to claim 18 or 19, 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 second Communication nodes are connected, and the first communication node receives the first downlink data stream from the central office equipment. Before the first downlink data stream has carried downlink services, the method further includes:
    所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口。The first communication node switches the first RX to a receiving port for receiving the first downlink data stream among the first RX and the second RX.
  21. 根据权利要求20所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口之前,所述方法还包括:The method according to claim 20, wherein the first communication node switches the first RX to receive the first downlink data stream among the first RX and the second RX. Before the receiving port, the method also includes:
    所述第一通信节点检测到经由所述第一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.
  22. 根据权利要求20所述的方法,其特征在于,所述第一通信节点在所述第一RX和所述第二RX中,将所述第一RX切换为接收所述第一下行数据流的接收端口之前,所述方法还包括:The method according to claim 20, wherein the first communication node switches the first RX to receive the first downlink data stream among the first RX and the second RX. Before the receiving port, the method also includes:
    所述第一通信节点检测到经由所述第二RX接收到光信号出现故障事件。The first communication node detects a failure event in the optical signal received via the second RX.
  23. 根据权利要求18至22任一项所述的方法,其特征在于,所述方法应用于光通信系统,所述光通信系统包括所述中心局设备以及依次与所述中心局设备连接的多个通信节点;所述第一通信节点连接于所述中心局设备和所述第二通信节点之间。 The method according to any one of claims 18 to 22, 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 is connected between the central office equipment and the second communication node.
  24. 一种通信节点,其特征在于,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;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 first uplink data stream from another communication node. The uplink service of the second communication node occupies a first time slot of the first uplink data stream. The first time slot is provided by the central office. Equipment Instructions;
    所述业务处理器用于在所述第一上行数据流的第二时隙上承载所述通信节点的上行业务,获得第二上行数据流,所述第二时隙由所述中心局设备指示,所述第一时隙不同于所述第二时隙;The service processor is configured to carry the uplink service of the communication node on the second time slot of the first uplink data stream, and obtain the second uplink data stream, where the second time slot is indicated by the central office device, the first time slot is different from the second time slot;
    所述收发器还用于向所述中心局设备发送所述第二上行数据流。The transceiver is further configured to send the second upstream data stream to the central office device.
  25. 一种通信节点,其特征在于,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;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 service processor is configured to carry the uplink service of the communication node on the first time slot of the initial uplink data flow, and obtain the first uplink data flow, where the first time slot is indicated by the central office device;
    所述收发器用于向另一通信节点发送所述所述第一上行数据流。The transceiver is configured to send the first upstream data stream to another communication node.
  26. 一种通信节点,其特征在于,所述通信节点包括收发器以及业务处理器,所述收发器与所述业务处理器连接;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 used to receive the first downlink data stream from the central office equipment, and the first downlink data stream has carried downlink services;
    所述业务处理器用于复制所述第一下行数据流,获得第二下行数据流;The service processor is configured to copy the first downlink data flow and obtain a second downlink data flow;
    所述业务处理器用于获得所述第一下行数据流已承载的下行业务;The service processor is configured to obtain the downlink service carried by the first downlink data flow;
    所述收发器用于向所述另一通信节点发送所述第二下行数据流。The transceiver is configured to send the second downlink data stream to the other communication node.
  27. 一种光通信系统,其特征在于,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;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 second communication node is configured to carry the uplink service of the second communication node on the first time slot of the initial uplink data stream to obtain the first uplink data stream;
    所述第二通信节点用于向所述第一通信节点发送所述第一上行数据流;The second communication node is configured to send the first uplink data stream to the first communication node;
    所述第一通信节点用于在所述第一上行数据流的第二时隙上承载所述第一通信节点的上行业务,获得第二上行数据流,所述第一时隙和所述第二时隙分别由所述中心局设备指示,所述第一时隙不同于所述第二时隙;The first communication node is configured to carry the uplink service of the first communication node on the second time slot of the first uplink data stream to obtain the second uplink data stream, the first time slot and the third Two time slots are respectively indicated by the central office equipment, and the first time slot is different from the second time slot;
    所述第一通信节点用于向所述中心局设备发送所述第二上行数据流。The first communication node is configured to send the second uplink data stream to the central office device.
  28. 一种光通信系统,其特征在于,所述光通信系统包括依次连接的中心局设备,第一通信节点以及第二通信节点;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 central office equipment is configured to send a first downlink data stream to the first communication node, and the first downlink data stream already carries downlink services;
    所述第一通信节点用于复制所述第一下行数据流,获得第二下行数据流;The first communication node is used to copy the first downlink data stream to obtain a second downlink data stream;
    所述第一通信节点用于获得所述第一下行数据流已承载的下行业务;The first communication node is used to obtain the downlink service carried by the first downlink data flow;
    所述第一通信节点用于向所述第二通信节点发送所述第二下行数据流。 The first communication node is configured to send the second downlink data stream to the second communication node.
PCT/CN2023/102548 2022-08-31 2023-06-27 Data transmission method, related device and optical communication system WO2024045814A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211058808.6A CN117676394A (en) 2022-08-31 2022-08-31 Data transmission method, related equipment and optical communication system
CN202211058808.6 2022-08-31

Publications (1)

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

Family

ID=90075787

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102548 WO2024045814A1 (en) 2022-08-31 2023-06-27 Data transmission method, related device and optical communication system

Country Status (2)

Country Link
CN (1) CN117676394A (en)
WO (1) WO2024045814A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484898A (en) * 2000-11-17 2004-03-24 Point-to-multipoint passive optica network that utilizes variable length packets
CN101436916A (en) * 2007-11-15 2009-05-20 华为技术有限公司 Method, apparatus and system for processing bandwidth of passive optical network
JP2019103045A (en) * 2017-12-06 2019-06-24 日本電信電話株式会社 Burst relay system and program
WO2022059181A1 (en) * 2020-09-18 2022-03-24 三菱電機株式会社 Single-core bidirectional optical ring system, control method of single-core bidirectional optical ring system, and central station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484898A (en) * 2000-11-17 2004-03-24 Point-to-multipoint passive optica network that utilizes variable length packets
CN101436916A (en) * 2007-11-15 2009-05-20 华为技术有限公司 Method, apparatus and system for processing bandwidth of passive optical network
JP2019103045A (en) * 2017-12-06 2019-06-24 日本電信電話株式会社 Burst relay system and program
WO2022059181A1 (en) * 2020-09-18 2022-03-24 三菱電機株式会社 Single-core bidirectional optical ring system, control method of single-core bidirectional optical ring system, and central station

Also Published As

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

Similar Documents

Publication Publication Date Title
US7813271B2 (en) Aggregated link traffic protection
US20200014610A1 (en) Ethernet signal transport method and scheduling method, and apparatus and system thereof
CN1298122C (en) Point-to-multipoint passive optica network that utilizes variable length packets
JP4466589B2 (en) PON system and terminal device registration method
US20030137975A1 (en) Ethernet passive optical network with framing structure for native Ethernet traffic and time division multiplexed traffic having original timing
CN111095860B (en) Method and device for clock synchronization
US9178713B1 (en) Optical line termination in a passive optical network
US20120070147A1 (en) Communication system and communication apparatus
US8200088B2 (en) Optical communication system, and optical communication method and communication unit therefor
US8086104B2 (en) System, method and computer readable medium for providing dual rate transmission on a gigabit passive optical network
CN107222404B (en) Parallel path forwarding method with redundant coding in WOBAN
US20160028474A1 (en) Method of resizing a protected oduflex connection in an optical transport network
CN109286864B (en) Registration-based information processing method and device and storage medium
WO2010091556A1 (en) Method for burst transmission on a passive optical network, method and device for receiver resetting
WO2019114544A1 (en) Data transport method, device and system
CN100388742C (en) Flow control method for Ether net passive light network and device used in said method
US8428034B2 (en) Encoding for efficient use of an upstream channel in burst mode
WO2012020450A1 (en) Station-side apparatus and pon system
EP4322546A1 (en) Data frame fragmentation method, data frame parsing method and related device
WO2024045814A1 (en) Data transmission method, related device and optical communication system
WO2023246416A1 (en) Data transmission method and apparatus
JP5200381B2 (en) PON system station side device, receiving unit, clock and data recovery unit, and PON system upstream communication method
JP2006014228A (en) Communication method, communication system, station side communication apparatus and subscriber side communication apparatus
JP2007281979A (en) Pon (passive optical network) system
WO2024045812A1 (en) Data transmission method, related equipment, and optical communication 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: 23858852

Country of ref document: EP

Kind code of ref document: A1