WO2023131138A1 - Data stream transmission method, optical communication system, and related apparatus - Google Patents

Data stream transmission method, optical communication system, and related apparatus Download PDF

Info

Publication number
WO2023131138A1
WO2023131138A1 PCT/CN2023/070247 CN2023070247W WO2023131138A1 WO 2023131138 A1 WO2023131138 A1 WO 2023131138A1 CN 2023070247 W CN2023070247 W CN 2023070247W WO 2023131138 A1 WO2023131138 A1 WO 2023131138A1
Authority
WO
WIPO (PCT)
Prior art keywords
data stream
optical communication
communication device
transmission frame
bandwidth
Prior art date
Application number
PCT/CN2023/070247
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 WO2023131138A1 publication Critical patent/WO2023131138A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • 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/03Arrangements for fault recovery
    • H04B10/032Arrangements for fault recovery using working and protection systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Definitions

  • the present application relates to the technical field of optical communication, and in particular to a data stream transmission method, an optical communication system and related devices.
  • an aggregation device connects multiple terminal devices.
  • a main transmission path and a standby transmission path are included between the convergence device and the terminal device.
  • the data transmitted by the primary transmission path and the standby transmission path are the same.
  • the aggregation device and the terminal device process the data from the main transmission path.
  • the main transmission path fails, then the aggregation device and the terminal device process the data from the backup transmission path.
  • the backup transmission path is only used to back up the data transmitted by the primary transmission path.
  • the backup transmission path occupies independent bandwidth resources and independent hardware resources.
  • the bandwidth resources and hardware resources occupied by the standby transmission path are in an idle state. It can be seen that doing so wastes resources, making the utilization of bandwidth resources and hardware resources not high.
  • Embodiments of the present application provide a data stream transmission method, an optical communication system, and related devices. It is used to improve the utilization rate of bandwidth resources and hardware resources during backup data transmission.
  • a first aspect of the embodiments of the present invention provides a data stream transmission method.
  • the method includes: first, the first device acquires a first data stream. Second, the first device receives a second data stream from the second device. The second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device. Again, the first device sends the second transmission frame to the optical communication device. The second transmission frame is used to carry the first data stream and the second data stream.
  • the hardware resource for sending the second data stream used for backup is multiplexed with the hardware resource for sending the first data stream.
  • the utilization rate of the hardware resources of the first device is improved.
  • the link between the first device and the first optical communication device is not only used to transmit the second data stream for backup, but also used to transmit the first data stream. Improved utilization of bandwidth resources.
  • the method further includes: the first device sends the third data stream to the second device.
  • the third data stream is a backup of the first data stream.
  • mutual backup between the first device and the second device can be realized. Improved backup efficiency.
  • the method before the first device sends the third data stream to the second device, the method further includes: the first device acquires multiple data streams.
  • the first device determines the first data stream from the multiple data streams according to the backup identifier.
  • the first device copies the first data stream to obtain a third data stream.
  • the first device can back up part of the data streams among multiple data streams based on the backup identifier. Effectively improve the efficiency of backup.
  • the method before the first device receives the second data stream from the second device, the method further includes: the first device establishes a connection with the second device.
  • the first device sends a first negotiation message to the second device through the connection.
  • the first device receives a second negotiation message from the second device through the connection.
  • the first negotiation message and the second negotiation message are used for negotiating the data flow transmitted by the first device and the second device through the connection.
  • This data stream is used for backup.
  • the first device and the second device can exchange data streams for backup, so as to implement data stream backup.
  • the first device is a terminal device. Before the first device sends the second transmission frame to the optical communication device, the method further includes: the first device sends a bandwidth request message to the optical communication device.
  • the bandwidth request message is used to request for transmission bandwidth.
  • the transmission bandwidth is used to transmit the first data flow and the second data flow.
  • the first device receives a bandwidth allocation message from the optical communication device.
  • the bandwidth allocation message is used to indicate the transmission bandwidth.
  • the first device can send the second transmission frame according to the bandwidth allocation message from the optical communication device. It is effectively ensured that the first device successfully sends the second data stream for backup to the optical communication device.
  • the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth.
  • the bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth. Doing so can ensure that the optical communication device can accurately distinguish the first data stream from the second data stream in the second transmission frame.
  • the first device is a convergence device.
  • the first device sends a bandwidth allocation message to the optical communication device.
  • the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth.
  • the bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth. In this implementation manner, it is effectively guaranteed that the first device successfully sends the second data stream for backup to the optical communication device.
  • a second aspect of the embodiments of the present invention provides a data stream transmission method.
  • the method includes: firstly, the first optical communication device receives the second transmission frame from the first device.
  • the first optical communication device acquires the first data stream and the second data stream carried by the second transmission frame.
  • the first data stream is from the first device.
  • the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device.
  • the first optical communication device sends the second data stream to the second optical communication device.
  • the method further includes: the first optical communication device receives the third data stream from the second optical communication device.
  • the third data stream is a backup of the first data stream.
  • the first optical communication device processes the first data stream or the third data stream.
  • the processing the first data stream or the third data stream by the first optical communication device includes: acquiring, by the first optical communication device, a first bit error rate of the first data stream.
  • the first optical communication device acquires a second bit error rate of the third data stream. If the first bit error rate is greater than the second bit error rate, the first optical communication device processes the third data stream. If the first bit error rate is less than or equal to the second bit error rate.
  • the first optical communication device processes the first data stream.
  • the first optical communication device determines the data stream to be processed based on the bit error rate, thereby improving the success rate of acquiring services carried by the processor.
  • the first optical communication device is a converging device. Before the first optical communication device receives the second transmission frame from the first device, the method further includes: the first optical communication device receives a bandwidth request message from the first device. The bandwidth request message is used to request for transmission bandwidth. The transmission bandwidth is used to transmit the first data flow and the second data flow. The first optical communication device sends a bandwidth allocation message to the first device. The bandwidth allocation message is used to indicate the transmission bandwidth.
  • the bandwidth allocation message is used to indicate a position of the first data stream in the transmission bandwidth.
  • the bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth.
  • the acquisition by the first optical communication device of the first data stream and the second data stream carried by the second transmission frame includes: the first optical communication device allocates The message obtains the first data stream and the second data stream from the second transmission frame.
  • the first optical communication device is a terminal device. Before the first optical communication device acquires the first data stream and the second data stream carried by the second transmission frame, the method further includes: the first optical communication device receives a bandwidth allocation message from the first device.
  • the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth.
  • the bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth.
  • a third aspect of the embodiments of the present invention provides a data stream transmission method.
  • the method is applied to optical communication systems.
  • the optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device.
  • the first optical communication device is respectively connected to the second optical communication device and the first device.
  • the first device is connected with the second device.
  • a fourth aspect of the embodiments of the present invention provides a device.
  • the device includes: a processor and a transceiver.
  • the processor and transceiver are interconnected by wires.
  • the processor is used to obtain the first data stream.
  • the transceiver is used for: receiving the second data stream from the second device.
  • the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device.
  • the transceiver is also used for sending the second transmission frame to the optical communication device.
  • the second transmission frame is used to carry the first data stream and the second data stream.
  • a fifth aspect of the embodiments of the present invention provides an optical communication device.
  • the optical communication device includes: a processor and a transceiver.
  • the processor and transceiver are interconnected by wires.
  • the transceiver receives the second transmission frame from the first device.
  • the processor is configured to obtain the first data stream and the second data stream carried by the second transmission frame.
  • the first data stream is from the first device.
  • the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device.
  • the transceiver is also used to send the second data stream to the second optical communication device.
  • the optical communication device shown in this aspect is used to implement the method for transmitting data streams. For the description of the specific execution process and beneficial effects, please refer to the first aspect, and details will not be repeated.
  • a sixth aspect of the embodiments of the present invention provides an optical communication system.
  • the optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device. Please refer to the description in the third aspect for the execution process and beneficial effects of the optical communication system execution data stream transmission method shown in this aspect.
  • FIG. 1 is a structural example diagram of an optical communication system provided by the present application.
  • FIG. 2 is a structural example diagram of the first optical communication system provided by the embodiment of the present application.
  • FIG. 3 is a flowchart of execution steps of the first data stream transmission method provided by the embodiment of the present application.
  • FIG. 4 is a flow chart of execution steps of the second data stream transmission method provided by the embodiment of the present application.
  • FIG. 5 is a structural example diagram of a second optical communication system provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of execution steps of the third data stream transmission method provided by the embodiment of the present application.
  • FIG. 7 is a flowchart of execution steps of the fourth data stream transmission method provided by the embodiment of the present application.
  • FIG. 8 is a structural example diagram of a communication device provided by an embodiment of the present application.
  • FIG. 1 is a structural example diagram of an optical communication system provided by the present application.
  • the optical communication system includes at least one aggregation device. As shown in FIG. 1 , the optical communication system includes two converging devices as an example for illustration.
  • the optical communication system also includes a plurality of terminal devices. Take the optical communication system as an example of a passive optical network (PON). Then, the convergence device 101 and the convergence device 102 are respectively optical line terminals (optical line terminals, OLTs).
  • the terminal device 130 is an optical network unit (optical network unit, ONU).
  • the convergence device 101 shown in FIG. 1 is connected to at least one terminal device 130 through an optical distribution network (ODN) 111.
  • the converging device 102 is connected to at least one terminal device 130 through the ODN 112 .
  • ODN optical distribution network
  • the transmission direction of the optical signal from the convergence device 101 to the terminal device 130 is called a downlink direction.
  • the direction in which the optical signal is transmitted from the terminal device 130 to the aggregation device 101 is called an uplink direction.
  • the ODN connection between the convergence device and the terminal device is taken as an example for illustration.
  • the converging device and the terminal device may be directly connected or connected through a point-to-multipoint optical splitting device or another converging device, which is not specifically limited.
  • the present application does not limit the specific type of the optical communication system.
  • the converging device 101 can perform data interaction with multiple terminal devices 130 .
  • the network type of the optical communication system may also be an industrial optical network, a data center network, a wavelength division multiplexing network, or an optical transport network (optical transport network, OTN).
  • FIG. 2 is a structural example diagram of the first optical communication system provided by the embodiment of the present application.
  • the first optical communication device 201 and the second optical communication device 202 shown in FIG. 2 may be any of the following examples.
  • Example 1 the first optical communication device 201 and the second optical communication device 202 may be two different aggregation devices as shown in FIG. 1 .
  • the first optical communication device 201 and the second optical communication device 202 in this example may be connected through a network cable or wirelessly.
  • Example 2 the first optical communication device 201 and the second optical communication device 202 may also be two different circuit boards in the same aggregation device shown in FIG. 1 .
  • the first optical communication device 201 and the second optical communication device 202 may be connected through wiring on two circuit boards.
  • Example 3 the first optical communication device 201 and the second optical communication device 202 may be the same circuit board in the same convergence device.
  • the first optical communication device 201 and the second optical communication device 202 on the same circuit board respectively perform data interaction with the terminal device based on different optical transmission channels.
  • the first optical communication device 201 and the second optical communication device 202 may be connected through wiring on the circuit board.
  • the first device 203 and the second device 204 shown in FIG. 2 may be two different terminal devices as shown in FIG. 1 , two different circuit boards in the same terminal device, or the same circuit board in the same terminal device.
  • the first optical communication device 201 and the second optical communication device 202 may be two different terminal devices as shown in FIG. 1 , two different circuit boards in the same terminal device, or the same circuit board in the same terminal device.
  • FIG. 3 is a flowchart of execution steps of the first data stream transmission method provided by the embodiment of the present application. For the description of each execution subject shown in FIG. 3 , refer to FIG. 2 , and details are not repeated here.
  • the first optical communication device and the second optical communication device are two different converging devices.
  • Step 301 the first device and the second device establish a first connection.
  • the first connection is an electrical domain connection between the first device and the second device.
  • the electrical channel is used to transmit electrical signals between the first device and the second device.
  • the first connection is a network cable connected between the first device and the second device.
  • the first connection is a wireless channel connected between the wireless module of the first device and the wireless module of the second device.
  • the wireless channel can be based on wireless fidelity (wireless fidelity, Wi-Fi), Bluetooth technology, narrow band Internet of things (narrow band internet of things, NB-IoT), Zigbee (Zigbee), ultra wide band (ultra wide band, UWB ), radio frequency identification (RFID), or near field communication (near field communication, NFC), etc.
  • wireless fidelity wireless fidelity, Wi-Fi
  • Bluetooth technology narrow band Internet of things (narrow band internet of things, NB-IoT), Zigbee (Zigbee), ultra wide band (ultra wide band, UWB ), radio frequency identification (RFID), or near field communication (near field communication, NFC), etc.
  • the first device may send detection information to the network cable.
  • the detection information is transmitted to the second device via the network cable.
  • the second device sends a response message to the first device according to the detection information.
  • the first device determines according to the response message that the first device and the second device have been connected through a network cable.
  • Step 302 the first device sends a first negotiation message to the second device through the first connection.
  • Step 303 the second device sends a second negotiation message to the first device through the first connection.
  • the first device and the second device negotiate the backup of the uplink data flow sent by the second device through the first device by exchanging negotiation messages.
  • the first negotiation message carries the address of the first device, the address of the first optical communication device and the address of the second optical communication device.
  • the second negotiation message carries the address of the second device, the first backup bandwidth and the address of the second optical communication device.
  • the address of the first device, the address of the second device, the address of the first optical communication device and the address of the second optical communication device are all media access control (MAC) addresses.
  • the first backup bandwidth is the bandwidth of the upstream data flow from the second device that needs to be backed up.
  • the second device determines that the upstream data stream from the network node is a data stream that needs to be backed up, then the second device obtains the address of the network node.
  • the second negotiation message sent by the second device to the first device carries the address of the network node.
  • the second device When the second device successfully sends the second negotiation message to the first device and receives the first negotiation message from the first device, the second device determines that the first device can back up the upstream data flow sent by the second device . When the first device successfully sends the first negotiation message to the second device and receives the second negotiation message from the second device, the first device determines that the first device can back up the upstream data flow sent by the second device .
  • Steps 301-303 shown in this embodiment are optional steps and are not limited. In other examples, it may also be determined between the first device and the second device that the first device can back up the upstream data flow sent by the second device according to an instruction of the network management device.
  • Step 304 the first device sends a first bandwidth request message to the first optical communication device.
  • the first bandwidth request message carries the address of the first device, the bandwidth of the first uplink data stream, the first backup bandwidth and the address of the second optical communication device.
  • the first upstream data stream is a data stream that the first device needs to send to the first optical communication device.
  • the first bandwidth request message is used to request the first transmission bandwidth.
  • the first transmission bandwidth is used to transmit the second uplink transmission frame from the first device.
  • the second uplink transmission frame is used to carry the first uplink data flow and the uplink data flow from the second device that needs to be backed up.
  • Step 305 the second device sends a second bandwidth request message to the second optical communication device.
  • the second bandwidth request message carries the address of the second device, the requested bandwidth and the address of the first optical communication device.
  • the requested bandwidth is the bandwidth of the upstream data flow sent by the first device to the first optical communication device.
  • the second bandwidth request message is used to request a second transmission bandwidth.
  • the second transmission bandwidth is used to transmit the first uplink transmission frame from the second device.
  • Step 306 the first optical communication device sends a first bandwidth allocation message to the first device.
  • Step 307 the second optical communication device sends a second bandwidth allocation message to the second device.
  • the first optical communication device and the second optical communication device negotiate with each other whether to allow the first device to back up the upstream data flow sent by the second device. For example, the first optical communication device determines according to the first backup bandwidth carried in the first bandwidth request message that the bandwidth resources of the first optical communication device can be allocated for the second uplink data flow.
  • the first optical communication device sends a first backup indication message to the second optical communication device.
  • the second optical communication device sends a second backup instruction message to the first optical communication device.
  • the second backup instruction message is used to indicate that the first device is allowed to back up the upstream data flow sent by the second device.
  • the first optical communication device and the second optical communication device determine, according to the first backup indication message and the second backup indication message, that the first device backs up the upstream data flow sent by the second device.
  • the first bandwidth allocation message is used to indicate the first transmission bandwidth.
  • the first device sends the second uplink transmission frame to the first optical communication device through the first transmission bandwidth.
  • the second bandwidth allocation message is used to indicate the second transmission bandwidth.
  • the second device sends the first uplink transmission frame to the second optical communication device through the second transmission bandwidth.
  • the first bandwidth allocation message and the second bandwidth allocation message are also respectively used to indicate that the first device is allowed to back up the upstream data flow sent by the second device.
  • Steps 304-307 shown in this embodiment are optional examples and are not limited, as long as the first device can determine the first transmission bandwidth and the second device can determine the second transmission bandwidth.
  • Step 308 the first device acquires the first uplink data stream.
  • the first device receives a first upstream data stream from a network node.
  • the network node may be a switch, a router, a broadband remote access server (broadband remote access server, BRAS), a broadband network gateway (broadband network gateway, BNG) or an internet protocol (internet protocol, IP) node, etc. limited.
  • the first device can send the first upstream data stream to the first optical communication device.
  • Step 309 the second device obtains the fourth uplink data stream.
  • the second device determines the fourth upstream data flow that needs to be backed up. Specifically, the second device receives N channels of uplink data streams. The second device determines that each of the N upstream data flows is an upstream data flow that needs to be backed up. In another example, the second device may determine that the fourth uplink data flow is a high-priority data flow among the N uplink data flows. The N is any positive integer greater than 1. Specifically, the second device determines the fourth uplink data flow from the N uplink data flows according to the backup identifier. For example, the second device determines that among the N paths of uplink data flows, the uplink data flow carrying the backup identifier is the fourth uplink data flow with high priority.
  • the fourth uplink data flow with high priority may be an uplink data flow with a bit error rate lower than a threshold.
  • the fourth uplink data flow with high priority may also be an uplink data flow carrying services that cannot be retransmitted, etc., which is not specifically limited in this embodiment.
  • the backup identifier may also be a port number of the second device. The second device determines that the data flow input from the port with the backup identifier is the fourth uplink data flow that needs to be backed up.
  • Step 310 the second device sends a second uplink data stream to the first device.
  • the second device determines according to the second bandwidth allocation message from the second optical communication device that the first device can back up the fourth uplink data flow of the second device. To this end, after the second device obtains the fourth uplink data stream that needs to be backed up, the second device copies the fourth uplink data stream to obtain the second uplink data stream. The second device can send the second uplink data stream to the first device based on the established first connection.
  • the second uplink data stream sent by the second device to the first device may be as follows. Possibility 1. The second device determines the fourth uplink data flow from the N uplink data flows. The second device directly copies the fourth uplink data stream to obtain the second uplink data stream. Possibility 2, the second device encodes the fourth uplink data stream to obtain the encoded fourth uplink data stream. The second device copies the encoded fourth uplink data stream to obtain the second uplink data stream. It can be seen that in this manner, the second uplink data stream received by the first device is an encoded uplink data stream. Possibility 3, the second device encodes the fourth uplink data stream to obtain the encoded fourth uplink data stream. Then, the second device maps the encoded fourth uplink data stream into the second uplink transmission frame.
  • the second device maps the encoded fourth uplink data stream into the first uplink transmission frame 222 .
  • the second device duplicates the first uplink transmission frame 222 to obtain the second uplink transmission frame 212 . It can be seen that in this way, what the first device receives is the second uplink transmission frame 212 that has carried the second uplink data flow.
  • the description of the second uplink data stream sent by the second device in this embodiment is an optional example and is not limited. As long as the second device sends the second uplink data stream to the first device, the first device can continue to process the second uplink data stream until it is sent to the first optical communication device.
  • Step 311 the second device sends the first uplink transmission frame to the second optical communication device.
  • the second device shown in this embodiment sends the first uplink transmission frame to the second optical communication device according to the second bandwidth allocation message.
  • the first uplink transmission frame is used to carry the fourth uplink data flow and the fifth uplink data flow.
  • the fifth uplink data stream is a data stream that does not need to be backed up.
  • the frame type of the first uplink transmission frame may be a passive optical network encapsulation mode (GPON encapsulation mode, GEM) frame with a Gigabit function or a transmission container (transmission container, T-CONT).
  • GEM passive optical network encapsulation mode
  • T-CONT transmission container
  • the description of the frame type of the first uplink transmission frame in this embodiment is an optional example and is not limited.
  • the second bandwidth allocation message sent by the second optical communication device to the second device may be used to indicate the position of the fourth uplink data stream in the second transmission bandwidth.
  • the second bandwidth allocation message is also used to indicate the position of the fifth uplink data flow in the second transmission bandwidth.
  • the second bandwidth allocation message is used to indicate the first time slot and the second time slot.
  • the first time slot is a time slot occupied by the first uplink transmission frame for carrying the fourth uplink data stream in the second transmission bandwidth.
  • the second time slot is a time slot occupied by the first uplink transmission frame for carrying the fifth uplink data stream in the second transmission bandwidth.
  • the second bandwidth allocation message is used to indicate the first frequency band and the second frequency band.
  • the first frequency band is a frequency band occupied by the first uplink transmission frame carrying the fourth uplink data stream in the second transmission bandwidth.
  • the second frequency band is a frequency band occupied by the first uplink transmission frame carrying the fifth uplink data stream in the second transmission bandwidth.
  • the second bandwidth allocation message is used to indicate the first frame number and the second frame number.
  • the first frame number is the frame number of the first uplink transmission frame carrying the fourth uplink data flow among the plurality of first uplink transmission frames.
  • the second frame number is the frame number of the first uplink transmission frame carrying the fifth uplink data stream among the plurality of first uplink transmission frames.
  • the second bandwidth allocation message is used to indicate the first codeword and the second codeword.
  • the first codeword is a codeword occupied by the first uplink transmission frame for carrying the fourth uplink data stream in the second transmission bandwidth.
  • the second codeword is a codeword occupied by the first uplink transmission frame for carrying the fifth uplink data stream in the second transmission bandwidth.
  • the multiple first uplink transmission frames sent by the second device to the second optical communication device include a first uplink transmission frame 221 for carrying the fourth uplink data stream and a first uplink transmission frame 221 for carrying the fifth uplink data flow.
  • the first uplink transmission frame 222 of the data stream As shown in FIG. 2 , the positions between multiple first uplink transmission frames 221 are continuous and the positions between multiple first uplink transmission frames 222 are continuous as an example. In other examples, the positions of the first uplink transmission frame 221 and the first uplink transmission frame 222 may also be arranged at intervals, which is not specifically limited.
  • Step 312 the first device sends the second uplink transmission frame to the first optical communication device.
  • the first device shown in this embodiment sends the second uplink transmission frame to the first optical communication device according to the first bandwidth allocation message.
  • the second uplink transmission frame is used to carry the first uplink data flow and the second uplink data flow.
  • the multiple second uplink transmission frames sent by the first device to the first optical communication device include a second uplink transmission frame 211 for carrying the first uplink data flow and a second uplink transmission frame for carrying the second uplink data flow.
  • the second uplink transmission frame 212 of the data flow for the description of the second uplink transmission frame 211 and the second uplink transmission frame 212, please refer to the above description of the first uplink transmission frame 221 and the first uplink transmission frame 222, and details are not repeated here.
  • the first device may sequentially encode the first uplink data stream, map it into a frame, perform electro-optic conversion and other processing.
  • the description of encoding and mapping the first uplink data stream into a frame please refer to the description of encoding and mapping the fourth uplink data stream into a frame shown in step 310 , and details are not repeated here.
  • Step 313 the first optical communication device sends the second uplink data stream to the second optical communication device.
  • the first optical communication device shown in this embodiment can obtain the address of the second optical communication device through the first bandwidth request message from the first device.
  • the first optical communication device sends the second upstream data stream to the second optical communication device according to the address of the second optical communication device.
  • the first optical communication device identifies the second uplink transmission frame 211 carrying the first uplink data stream in the first transmission bandwidth according to the first bandwidth allocation message.
  • the first optical communication device can also identify the second uplink transmission frame 212 carrying the second uplink data stream in the first transmission bandwidth according to the first bandwidth allocation message.
  • the first optical communication device is capable of processing the second uplink transmission frame carrying the first uplink data flow, so as to acquire the service carried by the first uplink data flow. As shown in FIG. 2 , the first optical communication device sequentially performs photoelectric conversion, decapsulation and decoding processing on the second uplink transmission frame 211 to obtain services carried by the first uplink data stream. The first optical communication device sequentially performs photoelectric conversion, decapsulation and decoding processing on the second uplink transmission frame 212 to obtain the second uplink data stream carried by the second uplink transmission frame 212 . It should be noted that, in this example, the first optical communication device sends the decoded second uplink data stream to the second optical communication device as an example. In other examples, the first optical communication device may directly send the second uplink transmission frame 212 to the second optical communication device. The first optical communication device may also send the photoelectrically converted or decapsulated second uplink data stream to the second optical communication device, which is not specifically limited.
  • the first optical communication device sends the second uplink data flow to the second optical communication device through the established second connection.
  • the second connection shown in this manner is an electrical domain channel connected between the first optical communication device and the second optical communication device.
  • the first optical communication device sends the second uplink data stream to the second optical communication device based on the electrical domain channel as an example for illustration. In other examples, the first optical communication device identifies the second uplink transmission frame that has carried the second uplink data stream.
  • the first optical communication device directly sends the second uplink transmission frame in an optical signal state to the second optical communication device.
  • the second optical communication device performs photoelectric conversion, decapsulation and decoding processing on the received second uplink transmission frame, so as to obtain the second uplink data stream.
  • Step 314 the second optical communication device processes the first target uplink data flow.
  • the first target uplink data flow shown in this embodiment is the second uplink data flow or the fourth uplink data flow.
  • the second optical communication device acquires the fourth uplink data stream according to the received first uplink transmission frame.
  • For a process for the second optical communication device to obtain the fourth uplink data stream please refer to the process for the first optical communication device to obtain the first uplink data stream shown in step 313 , which will not be described in detail.
  • the second optical communication device determines the first target uplink data flow are described below.
  • Case 1 in this case, at least one of the optical path between the first device and the first optical communication device, or the second connection between the first optical communication device and the second optical communication device fails.
  • the second upstream data stream from the first device cannot be successfully transmitted to the second optical communication device via the first optical communication device.
  • the optical path between the second device and the second optical communication device shown in this situation is normal.
  • the fourth uplink data stream from the second device can be successfully transmitted to the second optical communication device.
  • the second optical communication device determines that the first target uplink data flow is the second uplink data flow.
  • the second optical communication device processes the second uplink data flow to acquire services carried by the second uplink data flow.
  • the optical path between the second device and the second optical communication device shown in this case fails. It can be seen that in this case, the fourth uplink data stream from the second device cannot be successfully transmitted to the second optical communication device. In this case, the optical path between the first device and the first optical communication device is normal, and the second connection between the first optical communication device and the second optical communication device is also normal. Then, the second upstream data stream from the first device can be successfully transmitted to the second optical communication device via the first optical communication device. In a case where the second optical communication device successfully receives the second uplink data flow but fails to receive the fourth uplink data flow, the second optical communication device determines that the first target uplink data flow is the fourth uplink data flow. The second optical communication device processes the fourth uplink data flow to obtain services carried by the fourth uplink data flow.
  • the second optical communication device in this case has successfully received the fourth uplink data stream and the second uplink data stream.
  • the second optical communication device selects one of the fourth uplink data flow and the second uplink data flow to process to obtain the service.
  • the second optical communication device processes the fourth uplink data stream from the second device by default.
  • the second optical communication device may obtain the third bit error rate and the fourth bit error rate.
  • the third bit error rate is the bit error rate of the fourth uplink data stream.
  • the fourth bit error rate is the bit error rate of the second uplink data stream. If the third BER is greater than the fourth BER, the second optical communication device determines that the first target uplink data flow is the second uplink data flow. If the third BER is less than or equal to the fourth BER, the second optical communication device determines that the first target uplink data flow is the fourth uplink data flow.
  • the second uplink data stream used for backup is sent to only one first device as an example for illustration.
  • the second device may respectively send the second uplink data stream to multiple different first devices. Refer to the embodiment corresponding to FIG. 3 for the process of implementing backup by each first device, and details are not repeated here.
  • the at least one second uplink transmission frame sent by the first device includes the first uplink data stream to be transmitted by the first device itself and the second uplink data stream from the second device.
  • the hardware resource for example, encoder, laser or processor, etc.
  • the hardware resource for sending the second uplink data stream used for backup is multiplexed with the hardware resource for sending the first uplink data stream. That is, the hardware resource for sending the first uplink data flow is the same as the hardware resource for sending the second uplink data flow. No separate hardware resources are provided for sending the second upstream data stream for backup. The utilization rate of the hardware resources of the first device is improved.
  • the backup process requires little change to the live network, reducing backup costs.
  • the link between the first device and the first optical communication device is not only used for transmitting the second upstream data flow for backup.
  • the link is also used to transmit the first upstream data flow. Since there is no need to configure independent bandwidth resources only for the transmission of the second uplink data stream, the waste of bandwidth resources is avoided, and the utilization rate of bandwidth resources is improved.
  • the method provided in this application can also realize mutual backup at the terminal device side.
  • the mutual backup at the terminal device side refers to that the first device backs up the uplink data stream sent by the second device. And the second device backs up the upstream data flow sent by the first device.
  • the mutual backup at the terminal side will be described below with reference to FIG. 4 .
  • FIG. 4 is a flowchart of execution steps of the second data stream transmission method provided by the embodiment of the present application.
  • Step 401 the first device and the second device establish a first connection.
  • Step 402 the first device sends a first negotiation message to the second device through the first connection.
  • Step 403 the second device sends a second negotiation message to the first device through the first connection.
  • the first negotiation message and the second negotiation message shown in this embodiment are used to negotiate the data stream backup sent by the first device for the second device. For specific instructions, please refer to the corresponding steps 302-303 shown in FIG. 3 , and details are not repeated here.
  • the first negotiation message and the second negotiation message shown in this embodiment are also used to negotiate the backup of the data stream sent by the second device for the first device. It can be seen that the first negotiation message also carries the second backup bandwidth.
  • the second backup bandwidth is the upstream data flow from the first device that needs to be backed up.
  • Step 404 the first device sends a first bandwidth request message to the first optical communication device.
  • Step 405 the second device sends a second bandwidth request message to the second optical communication device.
  • the first bandwidth request message and the second bandwidth request message shown in this embodiment are used to request backup of the upstream data flow sent by the second device through the first device. For specific description, please refer to the corresponding steps 304-305 shown in FIG. 3 , and details are not repeated here.
  • the first bandwidth request message and the second bandwidth request message shown in this embodiment are also used to request that the second device back up the upstream data flow sent by the first device. Specifically, the second bandwidth request message also carries the second backup bandwidth.
  • Step 406 the first optical communication device sends a first bandwidth allocation message to the first device.
  • Step 407 the second optical communication device sends a second bandwidth allocation message to the second device.
  • the first optical communication device and the second optical communication device negotiate with each other whether to allow the first device to back up the upstream data flow sent by the second device, and whether to allow the second device to back up the upstream data flow sent by the first device.
  • the first optical communication device and the second optical communication device negotiate with each other whether to allow the first device to back up the upstream data flow sent by the second device, and whether to allow the second device to back up the upstream data flow sent by the first device. Refer to the corresponding step 307 shown in FIG. 3 for the specific negotiation process, and details are not repeated here.
  • Step 408 the first device acquires the first uplink data stream.
  • step 408 For the execution process of step 408, please refer to the corresponding step 308 shown in FIG. 3 , which will not be described in detail.
  • Step 409 the first device sends the third uplink data stream to the second device.
  • the first device determines the first upstream data flow that needs to be backed up.
  • the first device duplicates the first upstream data stream to obtain a third upstream data stream. It can be seen that the third uplink data flow is a backup of the first uplink data flow.
  • the first device sends the third uplink data stream to the second device through the first connection.
  • the process of obtaining the third uplink data stream by the first device shown in this embodiment refer to the process of obtaining the second uplink data stream by the second device shown in step 310 corresponding to FIG. 3 , which will not be described in detail.
  • Step 410 the second device acquires the fourth uplink data stream.
  • Step 411 the second device sends a second uplink data stream to the first device.
  • steps 410-411 For the description of the execution process of steps 410-411, please refer to the corresponding steps 309-310 shown in FIG. 3, and details are not repeated here.
  • Step 412 the second device sends the first uplink transmission frame to the second optical communication device.
  • the first uplink transmission frame sent by the second device to the second optical communication device includes the first uplink transmission frame carrying the fourth uplink data flow and the first uplink transmission frame carrying the fifth uplink data flow.
  • the difference between the first uplink transmission frame shown in this embodiment and the first uplink transmission frame in FIG. 3 is that the second device also sends the first uplink transmission frame carrying the third uplink data stream to the second optical communication device.
  • the process of carrying the third uplink data flow in the first uplink transmission frame please refer to the description of carrying the second uplink data flow in the second uplink transmission frame shown in step 312 corresponding to FIG. 3 , and details are not repeated here.
  • Step 413 the first device sends the second uplink transmission frame to the first optical communication device.
  • step 413 For the description of the execution process of step 413, please refer to the corresponding step 312 shown in FIG. 3 , and details are not repeated here.
  • Step 414 the first optical communication device sends the second uplink data stream to the second optical communication device.
  • Step 415 the second optical communication device processes the first target uplink data flow.
  • steps 414-415 For the description of the execution process of steps 414-415, please refer to the corresponding steps 313-314 shown in FIG. 3, and details are not repeated here.
  • Step 416 the second optical communication device sends the third uplink data stream to the first optical communication device.
  • the second optical communication device sending the third uplink data stream to the first optical communication device please refer to the process of the first optical communication device sending the second uplink data stream to the second optical communication device shown in step 313 corresponding to FIG. 3 , without going into details.
  • Step 417 the first optical communication device processes the second target uplink data flow.
  • the second target uplink is the first uplink or the third uplink.
  • the description of the process of processing the second target upstream data stream by the first optical communication device shown in this embodiment please refer to the description of the second optical communication device processing the first target upstream data stream shown in step 314 corresponding to FIG. 3 . I won't go into details.
  • the method shown in this embodiment utilizes the hardware resources of the first upstream data flow to send the second upstream data flow for backup, without configuring independent hardware resources for the second upstream data flow for backup. Similarly, the method utilizes hardware resources for sending the fourth upstream data stream to send the third upstream data stream for backup. Doing so effectively improves resource utilization.
  • FIG. 5 is a structural example diagram of the second optical communication system provided by the embodiment of the present application.
  • the first optical communication device 502 and the second optical communication device 503 shown in FIG. 5 are located on the terminal device side. For specific descriptions, refer to descriptions of the first device and the second device corresponding to FIG. 2 , and details are not repeated here.
  • the first device 501 and the second device 504 are located at the converging device side. For specific descriptions, please refer to descriptions of the first optical communication device and the second optical communication device corresponding to FIG. 2 , and details are not repeated here.
  • FIG. 6 is a flow chart of execution steps of a third data stream transmission method provided by an embodiment of the present application. For the description of each execution subject shown in FIG. 6 , please refer to FIG. 5 , and details are not repeated here.
  • Step 601 the first device and the second device establish a first connection.
  • Step 602 the first device sends a first negotiation message to the second device through the first connection.
  • Step 603 the second device sends a second negotiation message to the first device through the first connection.
  • steps 601-603 For the execution process of steps 601-603, please refer to the corresponding steps 301-303 shown in FIG. 3 , which will not be described in detail.
  • Step 604 the first device sends a third bandwidth allocation message to the first optical communication device.
  • Step 605 the second device sends a fourth bandwidth allocation message to the second optical communication device.
  • the first device and the second device negotiate with each other whether to allow the first device to back up the downstream data flow sent by the second device.
  • the third bandwidth allocation message is used to indicate the third transmission bandwidth.
  • the second bandwidth allocation message is used to indicate the fourth transmission bandwidth.
  • the third transmission bandwidth is used to transmit the second downlink transmission frame from the first device.
  • the fourth transmission bandwidth is used to transmit the first downlink transmission frame from the second device.
  • Step 606 the first device acquires the first downlink data stream.
  • Step 607 the second device acquires the fourth downlink data stream.
  • Step 608 the second device sends the second downlink data stream to the first device.
  • steps 606-608 please refer to the corresponding steps 308-310 shown in FIG. 3, and details are not repeated here.
  • Step 609 the second device sends the first downlink transmission frame to the second optical communication device.
  • the first uplink transmission frame sent by the second device to the second optical communication device shown in this embodiment is the first downlink transmission frame that has carried the fourth downlink data flow and the first downlink transmission frame that has carried the fifth downlink data flow. line transmission frame.
  • the fourth downlink data flow and the fifth downlink data flow refer to the description of the fourth uplink data flow and the fifth uplink data flow shown in step 311 corresponding to FIG. 3 , and details are not repeated here.
  • the first downlink transmission frame sent by the second device 504 to the second optical communication device 503 includes the first downlink transmission frame 521 carrying the fourth downlink data flow and the first downlink transmission frame 521 carrying the fifth downlink data flow.
  • the first downlink transmission frame 522 of the data stream For the description of the first downlink transmission frame 521 and the first downlink transmission frame 522, please refer to the description of the first downlink transmission frame 221 and the first downlink transmission frame 222 corresponding to FIG.
  • Step 610 the first device sends a second downlink transmission frame to the first optical communication device.
  • the second downlink transmission frame includes a second downlink transmission frame for carrying the first downlink data flow and a second downlink transmission frame for carrying the second downlink data flow.
  • the first device 501 sends to the first optical communication device 502 a second downlink frame 511 carrying the first downlink data flow and a second downlink transmission frame 512 used to carry the second downlink data flow.
  • the positional relationship between the second downlink transmission frame 511 and the second downlink transmission frame 512 refer to the description of the position between the second downlink transmission frame 211 and the second downlink transmission frame 212 shown in FIG. Do repeat.
  • Step 611 the first optical communication device sends a second downlink data stream to the second optical communication device.
  • the third bandwidth allocation message sent by the first device to the first optical communication device shown in this embodiment is also used to indicate the position of the first downlink data stream in the second downlink transmission frame.
  • the third bandwidth allocation message is also used to indicate the position of the second downlink data flow in the second downlink transmission frame. It can be seen that, according to the third bandwidth allocation message from the first device, the first optical communication device can determine in the second downlink transmission frame that the second downlink transmission frame that has carried the first downlink data flow and the second downlink transmission frame that has carried the second downlink data flow of the second downlink transmission frame.
  • step 311 in FIG. 3 please refer to step 311 in FIG. 3 , and details are not repeated here.
  • Step 612 the second optical communication device processes the first target downlink data flow.
  • the first target downlink data flow shown in this embodiment is the second downlink data flow or the fourth downlink data flow.
  • This embodiment may be executed in combination with the embodiment corresponding to FIG. 3 or FIG. 6 , so as to realize the backup of the downlink data flow on the converging device side and the backup of the uplink data flow on the terminal device side.
  • the hardware resource for sending the second downlink data stream used for backup is multiplexed with the hardware resource for sending the first downlink data stream. That is, the hardware resource for sending the first downlink data flow is the same as the hardware resource for sending the second downlink data flow. No separate hardware resources are provided for sending the second downstream data stream for backup. The utilization rate of the hardware resources of the first device is improved.
  • the backup process requires little change to the existing network, reducing backup costs.
  • the link between the first device and the first optical communication device is not only used for transmitting the second downstream data flow for backup.
  • the link is also used to transmit the first downstream data flow. Since there is no need to configure independent bandwidth resources only for the transmission of the second downlink data flow, waste of bandwidth resources is avoided, and the utilization rate of bandwidth resources is improved.
  • FIG. 7 is a flow chart of execution steps of a fourth downlink data stream transmission method provided by an embodiment of the present application. For the description of each execution subject shown in FIG. 7 , please refer to FIG. 5 , and details are not repeated here.
  • Step 701 the first device and the second device establish a first connection.
  • Step 702 the first device sends a first negotiation message to the second device through the first connection.
  • Step 703 the second device sends a second negotiation message to the first device through the first connection.
  • Step 704 the first device sends a third bandwidth allocation message to the first optical communication device.
  • Step 705 the second device sends a fourth bandwidth allocation message to the second optical communication device.
  • Step 706 the first device acquires the first downlink data stream.
  • steps 701-706 For the execution process of steps 701-706, refer to the corresponding steps 601-606 shown in FIG. 6 , which will not be described in detail.
  • Step 707 the first device sends the third downlink data stream to the second device.
  • the first device determines the first downlink data flow that needs to be backed up.
  • the first device duplicates the first downlink data stream to obtain a third downlink data stream. It can be seen that the third downlink data flow is a backup of the first downlink data flow.
  • the first device sends the third downlink data stream to the second device through the first connection.
  • the process of obtaining the third downlink data stream by the first device shown in this embodiment refer to the process of obtaining the third downlink data stream by the first device shown in step 409 corresponding to FIG. 4 , which will not be described in detail.
  • Step 708 the second device obtains the fourth downlink data stream.
  • Step 709 the second device sends the second downlink data stream to the first device.
  • steps 708-709 For the description of the execution process of steps 708-709, refer to the corresponding steps 607-608 shown in FIG. 6, and details are not repeated here.
  • Step 710 the second device sends the first downlink transmission frame to the second optical communication device.
  • the first downlink transmission frame sent by the second device to the second optical communication device includes the first downlink transmission frame carrying the fourth downlink data flow and the first downlink transmission frame carrying the fifth downlink data flow.
  • the first downlink transmission frame sent by the second device to the second optical communication device includes the first downlink transmission frame carrying the fourth downlink data flow and the first downlink transmission frame carrying the fifth downlink data flow.
  • the difference between the first downlink transmission frame shown in this embodiment and the first downlink transmission frame shown in FIG. transmit frame For the description of the process of carrying the third downlink data flow in the first downlink transmission frame, please refer to the description of carrying the second downlink data flow in the second downlink transmission frame shown in step 610 corresponding to FIG. 6 , and details are not repeated here.
  • Step 711 the first device sends a second downlink transmission frame to the first optical communication device.
  • Step 712 the first optical communication device sends the second downlink data stream to the second optical communication device.
  • Step 713 the second optical communication device processes the first target downlink data flow.
  • steps 711-713 For the description of the execution process of steps 711-713, please refer to the corresponding steps 610-612 shown in FIG. 6, and details are not repeated here.
  • Step 714 the second optical communication device sends the third downlink data stream to the first optical communication device.
  • the second optical communication device sending the third downlink data stream to the first optical communication device please refer to the process of the first optical communication device sending the second downlink data stream to the second optical communication device shown in step 611 corresponding to FIG. 6 , without going into details.
  • Step 715 the first optical communication device processes the second target downlink data flow.
  • the second target downlink data flow is the first downlink data flow or the third downlink data flow.
  • the process of processing the second target downstream data stream by the first optical communication device shown in this embodiment please refer to the description of the second optical communication device processing the first target downstream data stream shown in step 612 corresponding to FIG. 6 . I won't go into details.
  • the hardware resource for sending the first downlink data flow is used to send the second downlink data flow for backup, and there is no need to separately configure independent hardware resources for the second downlink data flow for backup.
  • the method utilizes the hardware resource for sending the fourth downlink data flow to send the third downlink data flow for backup. This effectively improves hardware resource and bandwidth utilization.
  • FIG. 8 is a structural example diagram of a communication device provided by an embodiment of the present application.
  • the communication device 800 includes a processor 801 , a transceiver 802 and a memory 803 .
  • the processor 801 is connected to the memory 803 and the transceiver 802 respectively through lines.
  • the processor 801 reads and executes the computer program stored in the memory 803 to perform corresponding processing.
  • the functions of the processor 801 may be partially or completely implemented by hardware.
  • Processor 801 may be one or more chips, or one or more integrated circuits.
  • the processor 801 may be one or more field-programmable gate arrays (field-programmable gate array, FPGA), application specific integrated circuit (ASIC), system chip (system on chip, SoC), central processing (central processor unit, CPU), network processor (network processor, NP), digital signal processing circuit (digital signal processor, DSP), microcontroller (micro controller unit, MCU), programmable controller (programmable logic device , PLD) or other integrated chips, or any combination of the above chips or processors, etc.
  • FPGA field-programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processing
  • network processor network processor
  • NP network processor
  • DSP digital signal processing circuit
  • microcontroller microcontroller
  • programmable controller programmable logic device , PLD
  • the communication device 800 may be the first apparatus as shown in FIG. 3 . If the first device is used to execute the embodiment corresponding to FIG. 3 , then the processor 801 is used to execute step 301 and step 308 . The transceiver 802 is used to perform step 302 , step 304 and step 312 . If the first device is configured to execute the embodiment corresponding to FIG. 4 , then the processor 801 is configured to execute step 401 and step 408 . The transceiver 802 is used to perform step 402 , step 404 , step 409 and step 413 . If the first device is configured to execute the embodiment corresponding to FIG. 6 , then the processor 801 is configured to execute step 601 and step 606 .
  • the transceiver 802 is used to perform step 602, step 604 and step 610. If the first device is used to execute the embodiment corresponding to FIG. 7 , then the processor 701 is used to execute step 701 and step 706 . The transceiver 802 is used to perform step 703 , step 704 , step 707 and step 711 .
  • the communication device 800 may be the second apparatus as shown in FIG. 3 . If the second device is used to execute the embodiment corresponding to FIG. 3 , then the processor 801 is configured to execute step 301 and step 309 . The transceiver 802 is used to perform step 303 , step 305 , step 310 and step 311 . If the second device is used to execute the embodiment corresponding to FIG. 4 , then the processor 801 is configured to execute step 401 and step 410 . The transceiver 802 is used to perform step 403 , step 405 and step 412 . If the second device is used to execute the embodiment corresponding to FIG. 6 , then the processor 801 is configured to execute step 601 and step 607 .
  • the transceiver 802 is used to perform step 603 , step 605 and step 609 . If the second device is used to execute the embodiment corresponding to FIG. 7 , then the processor 701 is configured to execute step 701 and step 708 . The transceiver 802 is used to perform step 703 , step 705 and step 710 .
  • the communication device 800 may be a first optical communication device as shown in FIG. 3 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 3 , then the transceiver 802 is used to perform step 306 and step 313 . If the first optical communication device is used to execute the embodiment corresponding to FIG. 4 , then the transceiver 802 is used to execute step 406 and step 414 . The processor 801 is configured to execute step 417 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 6 , then the transceiver 802 is used to perform step 611 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 7 , then the transceiver is used to perform step 712 . The processor 801 is configured to execute step 715 .
  • the communication device 800 may be a second optical communication device as shown in FIG. 3 . If the second optical communication device is used to implement the embodiment corresponding to FIG. 3 , then the transceiver 802 is used to perform step 307 .
  • the processor 801 is configured to execute step 314 . If the second optical communication device is used to implement the embodiment corresponding to FIG. 4 , then the transceiver 802 is used to perform step 407 and step 416 .
  • the processor 801 is configured to execute step 415 . If the second optical communication device is used to execute the embodiment corresponding to FIG. 6 , the processor 801 is configured to execute step 612 . If the second optical communication device is used to execute the embodiment corresponding to FIG. 7 , the processor 801 is configured to execute step 713 .
  • the transceiver 802 is used to perform step 714 .
  • the present application provides an optical communication system.
  • the structure of the first embodiment of the optical communication system may be shown in FIG. 2 .
  • the optical communication system is used to implement the embodiment shown in FIG. 3 or FIG. 4 .
  • the optical communication system is used to implement the embodiment shown in FIG. 6 or FIG. 7 .

Abstract

Disclosed in the embodiments of the present invention are a data stream transmission method, an optical communication system, and a related apparatus, which are used for improving the utilization rate of bandwidth resources and hardware resources during a backup data transmission process. The method comprises: first, a first apparatus acquiring a first data stream; second, the first apparatus receiving a second data stream from a second apparatus, wherein the second data stream is a backup of at least some of the data streams borne by a first transmission frame that is sent by the second apparatus; and next, the first apparatus sending a second transmission frame to an optical communication apparatus, wherein the second transmission frame is used for bearing the first data stream and the second data stream.

Description

一种数据流的传输方法,光通信系统以及相关装置A data stream transmission method, an optical communication system and related devices
本申请要求于2022年1月5日提交中国国家知识产权局、申请号202210009362.1、申请名称为“一种数据流的传输方法,光通信系统以及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on January 5, 2022, with the application number 202210009362.1, and the title of the application is "A transmission method for data streams, an optical communication system and related devices", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及光通信技术领域,尤其涉及一种数据流的传输方法,光通信系统以及相关装置。The present application relates to the technical field of optical communication, and in particular to a data stream transmission method, an optical communication system and related devices.
背景技术Background technique
光通信系统中,汇聚设备连接多个终端设备。汇聚设备和终端设备之间包括主用传输路径和备用传输路径。主用传输路径和备用传输路径所传输的数据相同。在主用传输路径正常的情况下,汇聚设备和终端设备处理来自主用传输路径的数据。但是,若主用传输路径出现故障,那么,汇聚设备和终端设备处理来自备用传输路径的数据。In an optical communication system, an aggregation device connects multiple terminal devices. A main transmission path and a standby transmission path are included between the convergence device and the terminal device. The data transmitted by the primary transmission path and the standby transmission path are the same. When the main transmission path is normal, the aggregation device and the terminal device process the data from the main transmission path. However, if the main transmission path fails, then the aggregation device and the terminal device process the data from the backup transmission path.
备用传输路径仅用于备份主用传输路径所传输的数据。备用传输路径占用独立的带宽资源以及独立的硬件资源。在主用传输路径处于正常的状态下,备用传输路径所占用的带宽资源以及硬件资源处于闲置的状态。可见,这么做浪费资源,使得带宽资源以及硬件资源的利用率不高。The backup transmission path is only used to back up the data transmitted by the primary transmission path. The backup transmission path occupies independent bandwidth resources and independent hardware resources. When the main transmission path is in a normal state, the bandwidth resources and hardware resources occupied by the standby transmission path are in an idle state. It can be seen that doing so wastes resources, making the utilization of bandwidth resources and hardware resources not high.
发明内容Contents of the invention
本申请实施例提供了一种数据流的传输方法,光通信系统以及相关装置。其用于提高备份数据传输过程中的带宽资源以及硬件资源的利用率。Embodiments of the present application provide a data stream transmission method, an optical communication system, and related devices. It is used to improve the utilization rate of bandwidth resources and hardware resources during backup data transmission.
本发明实施例第一方面提供了一种数据流的传输方法。该方法包括:首先,第一装置获取第一数据流。其次,第一装置接收来自第二装置的第二数据流。第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份。再次,第一装置向光通信装置发送第二传输帧。第二传输帧用于承载第一数据流和第二数据流。A first aspect of the embodiments of the present invention provides a data stream transmission method. The method includes: first, the first device acquires a first data stream. Second, the first device receives a second data stream from the second device. The second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device. Again, the first device sends the second transmission frame to the optical communication device. The second transmission frame is used to carry the first data stream and the second data stream.
本方面所示,发送用于备份的第二数据流的硬件资源,复用于发送第一数据流的硬件资源。提高了第一装置的硬件资源的利用率。而且第一装置和第一光通信装置之间的链路,不仅仅用于传输用于备份的第二数据流,该链路还用于传输第一数据流。提高了带宽资源的利用率。As shown in this aspect, the hardware resource for sending the second data stream used for backup is multiplexed with the hardware resource for sending the first data stream. The utilization rate of the hardware resources of the first device is improved. Moreover, the link between the first device and the first optical communication device is not only used to transmit the second data stream for backup, but also used to transmit the first data stream. Improved utilization of bandwidth resources.
基于第一方面,一种可选的实现方式中,第一装置获取第一数据流之后,该方法还包括:第一装置向第二装置发送第三数据流。第三数据流为第一数据流的备份。本实现方式中,能够实现第一装置和第二装置之间的互备份。提高了备份的效率。Based on the first aspect, in an optional implementation manner, after the first device acquires the first data stream, the method further includes: the first device sends the third data stream to the second device. The third data stream is a backup of the first data stream. In this implementation manner, mutual backup between the first device and the second device can be realized. Improved backup efficiency.
基于第一方面,一种可选的实现方式中,第一装置向第二装置发送第三数据流之前,该方法还包括:第一装置获取多个数据流。第一装置根据备份标识,从多个数据流中确定第一数据流。第一装置复制第一数据流以获取第三数据流。本实现方式中,第一装置能够基于备份标识在多个数据流中,备份部分数据流。有效的提高了备份的效率。Based on the first aspect, in an optional implementation manner, before the first device sends the third data stream to the second device, the method further includes: the first device acquires multiple data streams. The first device determines the first data stream from the multiple data streams according to the backup identifier. The first device copies the first data stream to obtain a third data stream. In this implementation manner, the first device can back up part of the data streams among multiple data streams based on the backup identifier. Effectively improve the efficiency of backup.
基于第一方面,一种可选的实现方式中,第一装置接收来自第二装置的第二数据流之前,该方法还包括:该第一装置建立和该第二装置之间的连接。该第一装置通过该连接向该第二装置发送第一协商消息。该第一装置通过该连接接收来自该第二装置的第二协商消息。该第一协商消息和该第二协商消息用于协商该第一装置和该第二装置通过该连接传输数据流。该数据流用于备份。本实现方式中,基于该连接,第一装置和第二装置之间能够交互用于备份的数据流,以实现数据流的备份。Based on the first aspect, in an optional implementation manner, before the first device receives the second data stream from the second device, the method further includes: the first device establishes a connection with the second device. The first device sends a first negotiation message to the second device through the connection. The first device receives a second negotiation message from the second device through the connection. The first negotiation message and the second negotiation message are used for negotiating the data flow transmitted by the first device and the second device through the connection. This data stream is used for backup. In this implementation manner, based on the connection, the first device and the second device can exchange data streams for backup, so as to implement data stream backup.
基于第一方面,一种可选的实现方式中,该第一装置为终端设备。该第一装置向光通信装置发送第二传输帧之前,该方法还包括:该第一装置向该光通信装置发送带宽请求消息。该带宽请求消息用于请求获取传输带宽。该传输带宽用于传输该第一数据流和该第二数据流。该第一装置接收来自该光通信装置的带宽分配消息。该带宽分配消息用于指示该传输带宽。本实现方式中,第一装置能够根据来自光通信装置的带宽分配消息发送第二传输帧。有效的保证了第一装置向光通信装置成功的发送用于备份的第二数据流。Based on the first aspect, in an optional implementation manner, the first device is a terminal device. Before the first device sends the second transmission frame to the optical communication device, the method further includes: the first device sends a bandwidth request message to the optical communication device. The bandwidth request message is used to request for transmission bandwidth. The transmission bandwidth is used to transmit the first data flow and the second data flow. The first device receives a bandwidth allocation message from the optical communication device. The bandwidth allocation message is used to indicate the transmission bandwidth. In this implementation manner, the first device can send the second transmission frame according to the bandwidth allocation message from the optical communication device. It is effectively ensured that the first device successfully sends the second data stream for backup to the optical communication device.
基于第一方面,一种可选的实现方式中,该带宽分配消息用于指示该第一数据流在传输带宽中的位置。该带宽分配消息还用于指示该第二数据流在该传输带宽中的位置。这么做能够保证光通信装置能够在第二传输帧中精确地区分第一数据流和第二数据流。Based on the first aspect, in an optional implementation manner, the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth. Doing so can ensure that the optical communication device can accurately distinguish the first data stream from the second data stream in the second transmission frame.
基于第一方面,一种可选的实现方式中,第一装置为汇聚设备。该第一装置向该光通信装置发送带宽分配消息。该带宽分配消息用于指示该第一数据流在该传输带宽中的位置。该带宽分配消息还用于指示该第二数据流在该传输带宽中的位置。本实现方式中,有效的保证了第一装置向光通信装置成功的发送用于备份的第二数据流。Based on the first aspect, in an optional implementation manner, the first device is a convergence device. The first device sends a bandwidth allocation message to the optical communication device. The bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth. In this implementation manner, it is effectively guaranteed that the first device successfully sends the second data stream for backup to the optical communication device.
本发明实施例第二方面提供了一种数据流的传输方法。该方法包括:首先,第一光通信装置接收来自第一装置的第二传输帧。该第一光通信装置获取该第二传输帧所承载的第一数据流和第二数据流。该第一数据流来自该第一装置。第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份。该第一光通信装置向第二光通信装置发送该第二数据流。本方面相关执行流程和有益效果的说明,请参见第一方面所示,具体不做赘述。A second aspect of the embodiments of the present invention provides a data stream transmission method. The method includes: firstly, the first optical communication device receives the second transmission frame from the first device. The first optical communication device acquires the first data stream and the second data stream carried by the second transmission frame. The first data stream is from the first device. The second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device. The first optical communication device sends the second data stream to the second optical communication device. For the description of the implementation process and beneficial effects of this aspect, please refer to the first aspect, and details will not be repeated.
基于第二方面,一种可选的实现方式中,该方法还包括:第一光通信装置接收来自第二光通信装置的第三数据流。第三数据流为第一数据流的备份。第一光通信装置处理第一数据流或第三数据流。Based on the second aspect, in an optional implementation manner, the method further includes: the first optical communication device receives the third data stream from the second optical communication device. The third data stream is a backup of the first data stream. The first optical communication device processes the first data stream or the third data stream.
基于第二方面,一种可选的实现方式中,第一光通信装置处理第一数据流或第三数据流包括:第一光通信装置获取第一数据流的第一误码率。第一光通信装置获取第三数据流的第二误码率。若第一误码率大于第二误码率,第一光通信装置处理第三数据流。若第一误码率小于或等于第二误码率。第一光通信装置处理第一数据流。本实现方式中,第一光通信装置基于误码率确定处理的数据流,提高了获取处理器所承载的业务的成功率。Based on the second aspect, in an optional implementation manner, the processing the first data stream or the third data stream by the first optical communication device includes: acquiring, by the first optical communication device, a first bit error rate of the first data stream. The first optical communication device acquires a second bit error rate of the third data stream. If the first bit error rate is greater than the second bit error rate, the first optical communication device processes the third data stream. If the first bit error rate is less than or equal to the second bit error rate. The first optical communication device processes the first data stream. In this implementation manner, the first optical communication device determines the data stream to be processed based on the bit error rate, thereby improving the success rate of acquiring services carried by the processor.
基于第二方面,一种可选的实现方式中,该第一光通信装置为汇聚设备。该第一光通信装置接收来自第一装置的第二传输帧之前,该方法还包括:该第一光通信装置接收来自该第一装置的带宽请求消息。该带宽请求消息用于请求获取传输带宽。该传输带宽用于传输该第一数据流和该第二数据流。该第一光通信装置向该第一装置发送带宽分配消息。该带宽分配消息用于指示该传输带宽。Based on the second aspect, in an optional implementation manner, the first optical communication device is a converging device. Before the first optical communication device receives the second transmission frame from the first device, the method further includes: the first optical communication device receives a bandwidth request message from the first device. The bandwidth request message is used to request for transmission bandwidth. The transmission bandwidth is used to transmit the first data flow and the second data flow. The first optical communication device sends a bandwidth allocation message to the first device. The bandwidth allocation message is used to indicate the transmission bandwidth.
基于第二方面,一种可选的实现方式中,该带宽分配消息用于指示该第一数据流在该传输带宽中的位置。该带宽分配消息还用于指示该第二数据流在该传输带宽中的位置。Based on the second aspect, in an optional implementation manner, the bandwidth allocation message is used to indicate a position of the first data stream in the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth.
基于第二方面,一种可选的实现方式中,该第一光通信装置获取该第二传输帧所承载的第一数据流和第二数据流包括:该第一光通信装置根据该带宽分配消息从该第二传输帧中获取该第一数据流和该第二数据流。Based on the second aspect, in an optional implementation manner, the acquisition by the first optical communication device of the first data stream and the second data stream carried by the second transmission frame includes: the first optical communication device allocates The message obtains the first data stream and the second data stream from the second transmission frame.
基于第二方面,一种可选的实现方式中,该第一光通信装置为终端设备。该第一光通信装置获取该第二传输帧所承载的第一数据流和第二数据流之前,该方法还包括:该第一光通信装置接收来自该第一装置的带宽分配消息。该带宽分配消息用于指示该第一数据流在传输带宽中的位置。该带宽分配消息还用于指示该第二数据流在该传输带宽中的位置。Based on the second aspect, in an optional implementation manner, the first optical communication device is a terminal device. Before the first optical communication device acquires the first data stream and the second data stream carried by the second transmission frame, the method further includes: the first optical communication device receives a bandwidth allocation message from the first device. The bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth.
本发明实施例第三方面提供了一种数据流的传输方法。该方法应用于光通信系统。光通信系统包括第一光通信装置,第二光通信装置,第一装置以及第二装置。第一光通信装置分别与第二光通信装置和第一装置连接。第一装置与第二装置连接。本方面所示的光通信系统执行的数据流传输方法过程以及有益效果的说明,请参见第一至第二方面所示。A third aspect of the embodiments of the present invention provides a data stream transmission method. The method is applied to optical communication systems. The optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device. The first optical communication device is respectively connected to the second optical communication device and the first device. The first device is connected with the second device. For the description of the process of the data stream transmission method and beneficial effects performed by the optical communication system shown in this aspect, please refer to the first to second aspects.
本发明实施例第四方面提供了一种装置。装置包括:处理器以及收发器。处理器和收发器通过线路互联。处理器用于获取第一数据流。收发器用于:接收来自第二装置的第二数据流。第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份。收发器还用于,向光通信装置发送第二传输帧。第二传输帧用于承载第一数据流和第二数据流。本方面所示的装置执行的数据流传输方法过程以及有益效果的说明,参见第一方面所示,具体不做赘述。A fourth aspect of the embodiments of the present invention provides a device. The device includes: a processor and a transceiver. The processor and transceiver are interconnected by wires. The processor is used to obtain the first data stream. The transceiver is used for: receiving the second data stream from the second device. The second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device. The transceiver is also used for sending the second transmission frame to the optical communication device. The second transmission frame is used to carry the first data stream and the second data stream. For the description of the process of the data stream transmission method performed by the device in this aspect and the beneficial effects, refer to the description in the first aspect, and details will not be repeated.
本发明实施例第五方面提供了一种光通信装置。光通信装置包括:处理器以及收发器。处理器和收发器通过线路互联。收发器接收来自第一装置的第二传输帧。处理器用于获取第二传输帧所承载的第一数据流和第二数据流。第一数据流来自第一装置。第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份。收发器还用于向第二光通信装置发送第二数据流。本方面所示的光通信装置用于执行数据流的传输方法,具体执行过程以及有益效果的说明,请参见第一方面所示,具体不做赘述。A fifth aspect of the embodiments of the present invention provides an optical communication device. The optical communication device includes: a processor and a transceiver. The processor and transceiver are interconnected by wires. The transceiver receives the second transmission frame from the first device. The processor is configured to obtain the first data stream and the second data stream carried by the second transmission frame. The first data stream is from the first device. The second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device. The transceiver is also used to send the second data stream to the second optical communication device. The optical communication device shown in this aspect is used to implement the method for transmitting data streams. For the description of the specific execution process and beneficial effects, please refer to the first aspect, and details will not be repeated.
本发明实施例第六方面提供了一种光通信系统。光通信系统包括第一光通信装置,第二光通信装置,第一装置以及第二装置。本方面所示的光通信系统执行数据流的传输方法的执行过程以及有益效果的说明,请参见第三方面所示。A sixth aspect of the embodiments of the present invention provides an optical communication system. The optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device. Please refer to the description in the third aspect for the execution process and beneficial effects of the optical communication system execution data stream transmission method shown in this aspect.
附图说明Description of drawings
图1为本申请所提供的光通信系统的结构示例图;FIG. 1 is a structural example diagram of an optical communication system provided by the present application;
图2为本申请实施例所提供的第一种光通信系统的结构示例图;FIG. 2 is a structural example diagram of the first optical communication system provided by the embodiment of the present application;
图3为本申请实施例所提供的第一种数据流的传输方法的执行步骤流程图;FIG. 3 is a flowchart of execution steps of the first data stream transmission method provided by the embodiment of the present application;
图4为本申请实施例所提供的第二种数据流的传输方法的执行步骤流程图;FIG. 4 is a flow chart of execution steps of the second data stream transmission method provided by the embodiment of the present application;
图5为本申请实施例所提供的第二种光通信系统的结构示例图;FIG. 5 is a structural example diagram of a second optical communication system provided by an embodiment of the present application;
图6为本申请实施例所提供的第三种数据流的传输方法的执行步骤流程图;FIG. 6 is a flow chart of execution steps of the third data stream transmission method provided by the embodiment of the present application;
图7为本申请实施例所提供的第四种数据流的传输方法的执行步骤流程图;FIG. 7 is a flowchart of execution steps of the fourth data stream transmission method provided by the embodiment of the present application;
图8为本申请实施例所提供的一种通信设备的结构示例图。FIG. 8 is a structural example diagram of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属 于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the protection scope of the present invention.
图1为本申请所提供的光通信系统的结构示例图。光通信系统包括至少一个汇聚设备。图1所示以光通信系统包括两个汇聚设备为例进行示例性说明。该光通信系统还包括多个终端设备。以光通信系统为无源光网络(passive optical network,PON)为例。那么,汇聚设备101和汇聚设备102分别为光线路终端(optical line terminal,OLT)。终端设备130为光网络单元(optical network unit,ONU)。图1所示的汇聚设备101通过光分配网络(optical distribution network,ODN)111与至少一个终端设备130连接。汇聚设备102通过ODN112与至少一个终端设备130连接。需要说明的是,以汇聚设备101为例,光信号从汇聚设备101传输至终端设备130的传输方向称为下行方向。光信号从终端设备130传输至汇聚设备101的方向称为上行方向。FIG. 1 is a structural example diagram of an optical communication system provided by the present application. The optical communication system includes at least one aggregation device. As shown in FIG. 1 , the optical communication system includes two converging devices as an example for illustration. The optical communication system also includes a plurality of terminal devices. Take the optical communication system as an example of a passive optical network (PON). Then, the convergence device 101 and the convergence device 102 are respectively optical line terminals (optical line terminals, OLTs). The terminal device 130 is an optical network unit (optical network unit, ONU). The convergence device 101 shown in FIG. 1 is connected to at least one terminal device 130 through an optical distribution network (ODN) 111. The converging device 102 is connected to at least one terminal device 130 through the ODN 112 . It should be noted that, taking the convergence device 101 as an example, the transmission direction of the optical signal from the convergence device 101 to the terminal device 130 is called a downlink direction. The direction in which the optical signal is transmitted from the terminal device 130 to the aggregation device 101 is called an uplink direction.
图1所示以汇聚设备和终端设备之间通过ODN连接为例进行示例性说明。在光通信系统为其他网络类型时,汇聚设备和终端设备可直接连接或通过点到多点分光设备或者另一汇聚设备连接,具体不做限定。本申请对光通信系统的具体类型不做限定。只要该汇聚设备101能够与多个终端设备130进行数据交互即可。例如,在其他示例中,该光通信系统的网络类型还可为工业光网络,数据中心网络,波分复用网络,或光传送网(optical transport network,OTN)等。As shown in FIG. 1 , the ODN connection between the convergence device and the terminal device is taken as an example for illustration. When the optical communication system is another type of network, the converging device and the terminal device may be directly connected or connected through a point-to-multipoint optical splitting device or another converging device, which is not specifically limited. The present application does not limit the specific type of the optical communication system. As long as the converging device 101 can perform data interaction with multiple terminal devices 130 . For example, in other examples, the network type of the optical communication system may also be an industrial optical network, a data center network, a wavelength division multiplexing network, or an optical transport network (optical transport network, OTN).
基于图1所示的光通信系统,本申请实施例提供了一种终端设备向汇聚设备发送上行数据流的方法。首先结合图2所示对本实施例所涉及的各个执行主体进行说明。其中,图2为本申请实施例所提供的第一种光通信系统的结构示例图。图2所示的第一光通信装置201和第二光通信装置202可为如下所示的任一示例。Based on the optical communication system shown in FIG. 1 , an embodiment of the present application provides a method for a terminal device to send an uplink data stream to a converging device. Firstly, each execution subject involved in this embodiment will be described with reference to FIG. 2 . Wherein, FIG. 2 is a structural example diagram of the first optical communication system provided by the embodiment of the present application. The first optical communication device 201 and the second optical communication device 202 shown in FIG. 2 may be any of the following examples.
示例1,第一光通信装置201和第二光通信装置202可为图1所示的两个不同的汇聚设备。此示例的第一光通信装置201和第二光通信装置202可通过网线或无线连接。示例2,第一光通信装置201和第二光通信装置202还可为图1所示的同一汇聚设备内的两个不同的电路板。此示例的第一光通信装置201和第二光通信装置202之间可通过两个电路板的走线连接。示例3,第一光通信装置201和第二光通信装置202可为同一汇聚设备内的同一电路板。同一电路板上的第一光通信装置201和第二光通信装置202分别基于不同的光传输通道与终端设备进行数据交互。第一光通信装置201和第二光通信装置202之间可通过该电路板的走线连接。Example 1, the first optical communication device 201 and the second optical communication device 202 may be two different aggregation devices as shown in FIG. 1 . The first optical communication device 201 and the second optical communication device 202 in this example may be connected through a network cable or wirelessly. Example 2, the first optical communication device 201 and the second optical communication device 202 may also be two different circuit boards in the same aggregation device shown in FIG. 1 . In this example, the first optical communication device 201 and the second optical communication device 202 may be connected through wiring on two circuit boards. Example 3, the first optical communication device 201 and the second optical communication device 202 may be the same circuit board in the same convergence device. The first optical communication device 201 and the second optical communication device 202 on the same circuit board respectively perform data interaction with the terminal device based on different optical transmission channels. The first optical communication device 201 and the second optical communication device 202 may be connected through wiring on the circuit board.
图2所示的第一装置203和第二装置204可为图1所示的两个不同的终端设备、同一终端设备内的两个不同的电路板,或同一终端设备内的同一电路板。具体说明,请参见第一光通信装置201和第二光通信装置202的说明,具体不做赘述。The first device 203 and the second device 204 shown in FIG. 2 may be two different terminal devices as shown in FIG. 1 , two different circuit boards in the same terminal device, or the same circuit board in the same terminal device. For specific descriptions, please refer to the descriptions of the first optical communication device 201 and the second optical communication device 202 , and details are not repeated here.
图3为本申请实施例所提供的第一种数据流的传输方法的执行步骤流程图。图3所示的各个执行主体的说明参见图2所示,具体不做赘述。本实施例以第一光通信装置和第二光通信装置为两个不同的汇聚设备。FIG. 3 is a flowchart of execution steps of the first data stream transmission method provided by the embodiment of the present application. For the description of each execution subject shown in FIG. 3 , refer to FIG. 2 , and details are not repeated here. In this embodiment, the first optical communication device and the second optical communication device are two different converging devices.
步骤301、第一装置和第二装置创建第一连接。Step 301, the first device and the second device establish a first connection.
为实现上行数据的备份,需要在第一装置和第二装置之间创建第一连接。该第一连接为连接在第一装置和第二装置之间的电域通道。该电域通道用于在第一装置和第二装置之间传输电信号。例如,该第一连接为连接在第一装置和第二装置之间的网线。又如,该第一连接为连接在第一装置的无线模块和第二装置的无线模块之间的无线通道。该无线通道可基于无 线保真技术(wireless fidelity,Wi-Fi),蓝牙技术,窄带物联网(narrow band internet of things,NB-IoT),紫蜂(Zigbee),超宽带(ultra wide band,UWB),射频识别(radio frequency identification,RFID),或近场通信(near field communication,NFC)等。In order to realize the backup of uplink data, a first connection needs to be established between the first device and the second device. The first connection is an electrical domain connection between the first device and the second device. The electrical channel is used to transmit electrical signals between the first device and the second device. For example, the first connection is a network cable connected between the first device and the second device. In another example, the first connection is a wireless channel connected between the wireless module of the first device and the wireless module of the second device. The wireless channel can be based on wireless fidelity (wireless fidelity, Wi-Fi), Bluetooth technology, narrow band Internet of things (narrow band internet of things, NB-IoT), Zigbee (Zigbee), ultra wide band (ultra wide band, UWB ), radio frequency identification (RFID), or near field communication (near field communication, NFC), etc.
若第一连接为连接在第一装置和第二装置之间的网线,那么,第一装置可向该网线发送探测信息。探测信息经由网线传输至第二装置。第二装置根据该探测信息向第一装置发送响应消息。第一装置根据该响应消息确定第一装置和第二装置已通过网线连接。If the first connection is a network cable connected between the first device and the second device, then the first device may send detection information to the network cable. The detection information is transmitted to the second device via the network cable. The second device sends a response message to the first device according to the detection information. The first device determines according to the response message that the first device and the second device have been connected through a network cable.
步骤302、第一装置通过第一连接向第二装置发送第一协商消息。Step 302, the first device sends a first negotiation message to the second device through the first connection.
步骤303、第二装置通过第一连接向第一装置发送第二协商消息。Step 303, the second device sends a second negotiation message to the first device through the first connection.
本实施例对步骤302-303之间的执行时序不做限定。第一装置和第二装置通过交互协商消息的方式,以协商通过第一装置为第二装置所发送的上行数据流备份。其中,第一协商消息携带第一装置的地址,第一光通信装置的地址以及第二光通信装置的地址。第二协商消息携带第二装置的地址,第一备份带宽以及第二光通信装置的地址。其中,该第一装置的地址,第二装置的地址,第一光通信装置的地址以及第二光通信装置的地址均为媒体介入控制层(media access control,MAC)地址。该第一备份带宽为来自第二装置且需要备份的上行数据流的带宽。可选的,第二装置若确定来自网络节点的上行数据流为需要进行备份的数据流,那么,第二装置获取该网络节点的地址。第二装置向第一装置所发送的第二协商消息携带该网络节点的地址。This embodiment does not limit the execution sequence between steps 302-303. The first device and the second device negotiate the backup of the uplink data flow sent by the second device through the first device by exchanging negotiation messages. Wherein, the first negotiation message carries the address of the first device, the address of the first optical communication device and the address of the second optical communication device. The second negotiation message carries the address of the second device, the first backup bandwidth and the address of the second optical communication device. Wherein, the address of the first device, the address of the second device, the address of the first optical communication device and the address of the second optical communication device are all media access control (MAC) addresses. The first backup bandwidth is the bandwidth of the upstream data flow from the second device that needs to be backed up. Optionally, if the second device determines that the upstream data stream from the network node is a data stream that needs to be backed up, then the second device obtains the address of the network node. The second negotiation message sent by the second device to the first device carries the address of the network node.
在第二装置成功向第一装置发送了第二协商消息且接收到来自第一装置的第一协商消息的情况下,第二装置确定第一装置能够为第二装置所发送的上行数据流备份。在第一装置成功向第二装置发送了第一协商消息且接收到来自第二装置的第二协商消息的情况下,第一装置确定第一装置能够为第二装置所发送的上行数据流备份。When the second device successfully sends the second negotiation message to the first device and receives the first negotiation message from the first device, the second device determines that the first device can back up the upstream data flow sent by the second device . When the first device successfully sends the first negotiation message to the second device and receives the second negotiation message from the second device, the first device determines that the first device can back up the upstream data flow sent by the second device .
本实施例所示的步骤301-303为可选执行的步骤,不做限定。在其他示例中,第一装置和第二装置之间也可根据网管设备的指示,确定第一装置能够为第二装置所发送的上行数据流备份。Steps 301-303 shown in this embodiment are optional steps and are not limited. In other examples, it may also be determined between the first device and the second device that the first device can back up the upstream data flow sent by the second device according to an instruction of the network management device.
步骤304、第一装置向第一光通信装置发送第一带宽请求消息。Step 304, the first device sends a first bandwidth request message to the first optical communication device.
该第一带宽请求消息携带该第一装置的地址,第一上行数据流的带宽,第一备份带宽以及第二光通信装置的地址。该第一上行数据流为第一装置需要向第一光通信装置所发送的数据流。第一带宽请求消息用于请求第一传输带宽。该第一传输带宽用于传输来自第一装置的第二上行传输帧。该第二上行传输帧用于承载第一上行数据流和来自第二装置的需要备份的上行数据流。The first bandwidth request message carries the address of the first device, the bandwidth of the first uplink data stream, the first backup bandwidth and the address of the second optical communication device. The first upstream data stream is a data stream that the first device needs to send to the first optical communication device. The first bandwidth request message is used to request the first transmission bandwidth. The first transmission bandwidth is used to transmit the second uplink transmission frame from the first device. The second uplink transmission frame is used to carry the first uplink data flow and the uplink data flow from the second device that needs to be backed up.
步骤305、第二装置向第二光通信装置发送第二带宽请求消息。Step 305, the second device sends a second bandwidth request message to the second optical communication device.
该第二带宽请求消息携带第二装置的地址,请求带宽以及第一光通信装置的地址。请求带宽为第一装置向第一光通信装置所发送的上行数据流的带宽。该第二带宽请求消息用于请求第二传输带宽。该第二传输带宽用于传输来自第二装置的第一上行传输帧。The second bandwidth request message carries the address of the second device, the requested bandwidth and the address of the first optical communication device. The requested bandwidth is the bandwidth of the upstream data flow sent by the first device to the first optical communication device. The second bandwidth request message is used to request a second transmission bandwidth. The second transmission bandwidth is used to transmit the first uplink transmission frame from the second device.
步骤306、第一光通信装置向第一装置发送第一带宽分配消息。Step 306, the first optical communication device sends a first bandwidth allocation message to the first device.
步骤307、第二光通信装置向第二装置发送第二带宽分配消息。Step 307, the second optical communication device sends a second bandwidth allocation message to the second device.
第一光通信装置和第二光通信装置相互协商,是否允许第一装置为第二装置所发送的上行数据流备份。例如,第一光通信装置根据第一带宽请求消息所携带的第一备份带宽确定第一光通信装置的带宽资源能够为第二上行数据流分配。第一光通信装置向第二光通信装置发 送第一备份指示消息。第二光通信装置向第一光通信装置发送第二备份指示消息。该第二备份指示消息用于指示允许第一装置为第二装置所发送的上行数据流备份。第一光通信装置和第二光通信装置分别根据该第一备份指示消息以及第二备份指示消息,确定第一装置为第二装置所发送的上行数据流备份。The first optical communication device and the second optical communication device negotiate with each other whether to allow the first device to back up the upstream data flow sent by the second device. For example, the first optical communication device determines according to the first backup bandwidth carried in the first bandwidth request message that the bandwidth resources of the first optical communication device can be allocated for the second uplink data flow. The first optical communication device sends a first backup indication message to the second optical communication device. The second optical communication device sends a second backup instruction message to the first optical communication device. The second backup instruction message is used to indicate that the first device is allowed to back up the upstream data flow sent by the second device. The first optical communication device and the second optical communication device determine, according to the first backup indication message and the second backup indication message, that the first device backs up the upstream data flow sent by the second device.
第一带宽分配消息用于指示第一传输带宽。第一装置通过该第一传输带宽向第一光通信装置发送第二上行传输帧。第二带宽分配消息用于指示第二传输带宽。第二装置通过该第二传输带宽向第二光通信装置发送第一上行传输帧。该第一带宽分配消息和第二带宽分配消息,还分别用于指示允许第一装置为第二装置所发送的上行数据流备份。The first bandwidth allocation message is used to indicate the first transmission bandwidth. The first device sends the second uplink transmission frame to the first optical communication device through the first transmission bandwidth. The second bandwidth allocation message is used to indicate the second transmission bandwidth. The second device sends the first uplink transmission frame to the second optical communication device through the second transmission bandwidth. The first bandwidth allocation message and the second bandwidth allocation message are also respectively used to indicate that the first device is allowed to back up the upstream data flow sent by the second device.
本实施例所示的步骤304-307所示为可选地示例,不做限定,只要第一装置能够确定第一传输带宽,第二装置能够确定第二传输带宽即可。Steps 304-307 shown in this embodiment are optional examples and are not limited, as long as the first device can determine the first transmission bandwidth and the second device can determine the second transmission bandwidth.
步骤308、第一装置获取第一上行数据流。Step 308, the first device acquires the first uplink data stream.
第一装置接收来自网络节点的第一上行数据流。该网络节点可为交换机,路由器,宽带远程接入服务器(broadband remote access server,BRAS),宽带网络网关(broadband network gateway,BNG)或网际互连协议(internet protocol,IP)节点等,具体不做限定。第一装置能够将该第一上行数据流发送至第一光通信装置。The first device receives a first upstream data stream from a network node. The network node may be a switch, a router, a broadband remote access server (broadband remote access server, BRAS), a broadband network gateway (broadband network gateway, BNG) or an internet protocol (internet protocol, IP) node, etc. limited. The first device can send the first upstream data stream to the first optical communication device.
步骤309、第二装置获取第四上行数据流。Step 309, the second device obtains the fourth uplink data stream.
该第二装置确定需要进行备份的第四上行数据流。具体的,第二装置接收N路上行数据流。第二装置确定N路上行数据流中的每路上行数据流均为需要备份的上行数据流。又如,第二装置可确定第四上行数据流为N路上行数据流中的高优先级的数据流。该N为大于1的任意正整数。具体的,第二装置根据备份标识,从N个上行数据流中确定第四上行数据流。例如,第二装置确定N路上行数据流中,携带该备份标识的上行数据流为高优先级的第四上行数据流。其中,高优先级的第四上行数据流可为误码率低于阈值的上行数据流。又如,高优先级的第四上行数据流还可为承载不能重传的业务的上行数据流等,具体在本实施例中不做限定。又如,该备份标识还可为第二装置的端口号。第二装置确定从具有该备份标识的端口输入的数据流为需要备份的第四上行数据流。The second device determines the fourth upstream data flow that needs to be backed up. Specifically, the second device receives N channels of uplink data streams. The second device determines that each of the N upstream data flows is an upstream data flow that needs to be backed up. In another example, the second device may determine that the fourth uplink data flow is a high-priority data flow among the N uplink data flows. The N is any positive integer greater than 1. Specifically, the second device determines the fourth uplink data flow from the N uplink data flows according to the backup identifier. For example, the second device determines that among the N paths of uplink data flows, the uplink data flow carrying the backup identifier is the fourth uplink data flow with high priority. Wherein, the fourth uplink data flow with high priority may be an uplink data flow with a bit error rate lower than a threshold. As another example, the fourth uplink data flow with high priority may also be an uplink data flow carrying services that cannot be retransmitted, etc., which is not specifically limited in this embodiment. As another example, the backup identifier may also be a port number of the second device. The second device determines that the data flow input from the port with the backup identifier is the fourth uplink data flow that needs to be backed up.
步骤310、第二装置向第一装置发送第二上行数据流。Step 310, the second device sends a second uplink data stream to the first device.
第二装置根据来自第二光通信装置的第二带宽分配消息确定第一装置能够为第二装置的第四上行数据流备份。为此,第二装置获取到需要备份的第四上行数据流后,第二装置复制该第四上行数据流以获取该第二上行数据流。该第二装置能够基于已创建的第一连接,向第一装置发送该第二上行数据流。The second device determines according to the second bandwidth allocation message from the second optical communication device that the first device can back up the fourth uplink data flow of the second device. To this end, after the second device obtains the fourth uplink data stream that needs to be backed up, the second device copies the fourth uplink data stream to obtain the second uplink data stream. The second device can send the second uplink data stream to the first device based on the established first connection.
第二装置向第一装置所发送的第二上行数据流可为如下几种可能。可能1,第二装置从N路上行数据流中确定第四上行数据流。第二装置直接复制该第四上行数据流以获取该第二上行数据流。可能2,第二装置对第四上行数据流进行编码以获取编码后的第四上行数据流。第二装置复制编码后的第四上行数据流以获取该第二上行数据流。可知,此方式中,第一装置所接收到的第二上行数据流为经过编码后的上行数据流。可能3,第二装置对第四上行数据流进行编码以获取编码后的第四上行数据流。然后,第二装置再将该编码后的第四上行数据流映射至第二上行传输帧中。例如图2所示,第二装置将编码后的第四上行数据流映射至第一上行传输帧222中。第二装置复制该第一上行传输帧222以获取第二上行传输帧212。可知,此方式中,第一装置所接收到的为已承载第二上行数据流的第二上行传输帧212。本 实施例对第二装置所发送的第二上行数据流的说明为可选的示例,不做限定。只要第二装置向第一装置发送了该第二上行数据流后,第一装置能够继续处理该第二上行数据流直至发送至第一光通信装置即可。The second uplink data stream sent by the second device to the first device may be as follows. Possibility 1. The second device determines the fourth uplink data flow from the N uplink data flows. The second device directly copies the fourth uplink data stream to obtain the second uplink data stream. Possibility 2, the second device encodes the fourth uplink data stream to obtain the encoded fourth uplink data stream. The second device copies the encoded fourth uplink data stream to obtain the second uplink data stream. It can be seen that in this manner, the second uplink data stream received by the first device is an encoded uplink data stream. Possibility 3, the second device encodes the fourth uplink data stream to obtain the encoded fourth uplink data stream. Then, the second device maps the encoded fourth uplink data stream into the second uplink transmission frame. For example, as shown in FIG. 2 , the second device maps the encoded fourth uplink data stream into the first uplink transmission frame 222 . The second device duplicates the first uplink transmission frame 222 to obtain the second uplink transmission frame 212 . It can be seen that in this way, what the first device receives is the second uplink transmission frame 212 that has carried the second uplink data flow. The description of the second uplink data stream sent by the second device in this embodiment is an optional example and is not limited. As long as the second device sends the second uplink data stream to the first device, the first device can continue to process the second uplink data stream until it is sent to the first optical communication device.
步骤311、第二装置向第二光通信装置发送第一上行传输帧。Step 311, the second device sends the first uplink transmission frame to the second optical communication device.
本实施例所示的第二装置根据第二带宽分配消息向第二光通信装置发送该第一上行传输帧。该第一上行传输帧用于承载第四上行数据流和第五上行数据流。其中,该第五上行数据流为无需备份的数据流。该第一上行传输帧的帧类型可为具有千兆位功能的无源光网络封装模式(GPON encapsulation mode,GEM)帧或传输容器(transmission container,T-CONT)。本实施例对第一上行传输帧的帧类型的说明,为可选的示例,不做限定。The second device shown in this embodiment sends the first uplink transmission frame to the second optical communication device according to the second bandwidth allocation message. The first uplink transmission frame is used to carry the fourth uplink data flow and the fifth uplink data flow. Wherein, the fifth uplink data stream is a data stream that does not need to be backed up. The frame type of the first uplink transmission frame may be a passive optical network encapsulation mode (GPON encapsulation mode, GEM) frame with a Gigabit function or a transmission container (transmission container, T-CONT). The description of the frame type of the first uplink transmission frame in this embodiment is an optional example and is not limited.
第二光通信装置向第二装置所发送的第二带宽分配消息可用于指示第四上行数据流在第二传输带宽中的位置。第二带宽分配消息还用于指示第五上行数据流在第二传输带宽中的位置。The second bandwidth allocation message sent by the second optical communication device to the second device may be used to indicate the position of the fourth uplink data stream in the second transmission bandwidth. The second bandwidth allocation message is also used to indicate the position of the fifth uplink data flow in the second transmission bandwidth.
例如,该第二带宽分配消息用于指示第一时隙和第二时隙。其中,第一时隙为用于承载第四上行数据流的第一上行传输帧在第二传输带宽中所占用的时隙。第二时隙为用于承载第五上行数据流的第一上行传输帧在第二传输带宽中所占用的时隙。又如,该第二带宽分配消息用于指示第一频段和第二频段。其中,第一频段为承载第四上行数据流的第一上行传输帧在第二传输带宽中所占用的频段。第二频段为承载第五上行数据流的第一上行传输帧在第二传输带宽中所占用的频段。又如,该第二带宽分配消息用于指示第一帧号以及第二帧号。其中,第一帧号为多个第一上行传输帧中,承载第四上行数据流的第一上行传输帧的帧号。第二帧号为多个第一上行传输帧中,承载第五上行数据流的第一上行传输帧的帧号。又如,第二带宽分配消息用于指示第一码字和第二码字。其中,第一码字为用于承载第四上行数据流的第一上行传输帧在所述第二传输带宽中所占用的码字。第二码字为用于承载第五上行数据流的第一上行传输帧在所述第二传输带宽中所占用的码字。For example, the second bandwidth allocation message is used to indicate the first time slot and the second time slot. Wherein, the first time slot is a time slot occupied by the first uplink transmission frame for carrying the fourth uplink data stream in the second transmission bandwidth. The second time slot is a time slot occupied by the first uplink transmission frame for carrying the fifth uplink data stream in the second transmission bandwidth. In another example, the second bandwidth allocation message is used to indicate the first frequency band and the second frequency band. Wherein, the first frequency band is a frequency band occupied by the first uplink transmission frame carrying the fourth uplink data stream in the second transmission bandwidth. The second frequency band is a frequency band occupied by the first uplink transmission frame carrying the fifth uplink data stream in the second transmission bandwidth. In another example, the second bandwidth allocation message is used to indicate the first frame number and the second frame number. Wherein, the first frame number is the frame number of the first uplink transmission frame carrying the fourth uplink data flow among the plurality of first uplink transmission frames. The second frame number is the frame number of the first uplink transmission frame carrying the fifth uplink data stream among the plurality of first uplink transmission frames. In another example, the second bandwidth allocation message is used to indicate the first codeword and the second codeword. Wherein, the first codeword is a codeword occupied by the first uplink transmission frame for carrying the fourth uplink data stream in the second transmission bandwidth. The second codeword is a codeword occupied by the first uplink transmission frame for carrying the fifth uplink data stream in the second transmission bandwidth.
结合图2所示的示例,第二装置向第二光通信装置所发送的多个第一上行传输帧包括用于承载第四上行数据流的第一上行传输帧221以及用于承载第五上行数据流的第一上行传输帧222。图2所示以多个第一上行传输帧221之间的位置连续且多个第一上行传输帧222之间的位置连续为例。在其他示例中,第一上行传输帧221和第一上行传输帧222的位置也可间隔排列,具体不做限定。With reference to the example shown in FIG. 2 , the multiple first uplink transmission frames sent by the second device to the second optical communication device include a first uplink transmission frame 221 for carrying the fourth uplink data stream and a first uplink transmission frame 221 for carrying the fifth uplink data flow. The first uplink transmission frame 222 of the data stream. As shown in FIG. 2 , the positions between multiple first uplink transmission frames 221 are continuous and the positions between multiple first uplink transmission frames 222 are continuous as an example. In other examples, the positions of the first uplink transmission frame 221 and the first uplink transmission frame 222 may also be arranged at intervals, which is not specifically limited.
步骤312、第一装置向第一光通信装置发送第二上行传输帧。Step 312, the first device sends the second uplink transmission frame to the first optical communication device.
本实施例所示的第一装置根据第一带宽分配消息向第一光通信装置发送该第二上行传输帧。该第二上行传输帧用于承载第一上行数据流和第二上行数据流。结合图2所示的示例,第一装置向第一光通信装置所发送的多个第二上行传输帧包括用于承载第一上行数据流的第二上行传输帧211以及用于承载第二上行数据流的第二上行传输帧212。对第二上行传输帧211和第二上行传输帧212的说明,请参见上述对第一上行传输帧221和第一上行传输帧222的说明,具体不做赘述。The first device shown in this embodiment sends the second uplink transmission frame to the first optical communication device according to the first bandwidth allocation message. The second uplink transmission frame is used to carry the first uplink data flow and the second uplink data flow. With reference to the example shown in FIG. 2 , the multiple second uplink transmission frames sent by the first device to the first optical communication device include a second uplink transmission frame 211 for carrying the first uplink data flow and a second uplink transmission frame for carrying the second uplink data flow. The second uplink transmission frame 212 of the data flow. For the description of the second uplink transmission frame 211 and the second uplink transmission frame 212, please refer to the above description of the first uplink transmission frame 221 and the first uplink transmission frame 222, and details are not repeated here.
第一装置为获取用于承载第一上行数据流的第二上行传输帧211,第一装置可依次对第一上行数据流进行编码,映射成帧以及电光转换等处理。对第一上行数据流进行编码以及映射成帧的说明,请参见步骤310所示的对第四上行数据流进行编码以及映射成帧的说明,具体不做赘述。In order to obtain the second uplink transmission frame 211 used to carry the first uplink data stream, the first device may sequentially encode the first uplink data stream, map it into a frame, perform electro-optic conversion and other processing. For the description of encoding and mapping the first uplink data stream into a frame, please refer to the description of encoding and mapping the fourth uplink data stream into a frame shown in step 310 , and details are not repeated here.
步骤313、第一光通信装置向第二光通信装置发送第二上行数据流。Step 313, the first optical communication device sends the second uplink data stream to the second optical communication device.
本实施例所示的第一光通信装置通过来自第一装置的第一带宽请求消息,能够获取第二光通信装置的地址。第一光通信装置根据第二光通信装置的地址,向第二光通信装置发送该第二上行数据流。结合图2所示,第一光通信装置根据第一带宽分配消息在第一传输带宽中,识别出承载第一上行数据流的第二上行传输帧211。第一光通信装置还能够根据第一带宽分配消息在第一传输带宽中,识别出承载第二上行数据流的第二上行传输帧212。The first optical communication device shown in this embodiment can obtain the address of the second optical communication device through the first bandwidth request message from the first device. The first optical communication device sends the second upstream data stream to the second optical communication device according to the address of the second optical communication device. As shown in FIG. 2 , the first optical communication device identifies the second uplink transmission frame 211 carrying the first uplink data stream in the first transmission bandwidth according to the first bandwidth allocation message. The first optical communication device can also identify the second uplink transmission frame 212 carrying the second uplink data stream in the first transmission bandwidth according to the first bandwidth allocation message.
该第一光通信装置能够处理承载第一上行数据流的第二上行传输帧,以获取第一上行数据流所承载的业务。如图2所示,第一光通信装置对第二上行传输帧211依次进行光电转换,解封装以及解码处理,以获取第一上行数据流所承载的业务。第一光通信装置对第二上行传输帧212依次进行光电转换,解封装以及解码处理,以获取第二上行传输帧212所承载的第二上行数据流。需明确的是,本示例以第一光通信装置将解码处理后的第二上行数据流发送给第二光通信装置为例。在其他示例中,第一光通信装置以可直接向第二光通信装置发送第二上行传输帧212。第一光通信装置还可将光电转换后的,或解封装之后的第二上行数据流发送给第二光通信装置,具体不做限定。The first optical communication device is capable of processing the second uplink transmission frame carrying the first uplink data flow, so as to acquire the service carried by the first uplink data flow. As shown in FIG. 2 , the first optical communication device sequentially performs photoelectric conversion, decapsulation and decoding processing on the second uplink transmission frame 211 to obtain services carried by the first uplink data stream. The first optical communication device sequentially performs photoelectric conversion, decapsulation and decoding processing on the second uplink transmission frame 212 to obtain the second uplink data stream carried by the second uplink transmission frame 212 . It should be noted that, in this example, the first optical communication device sends the decoded second uplink data stream to the second optical communication device as an example. In other examples, the first optical communication device may directly send the second uplink transmission frame 212 to the second optical communication device. The first optical communication device may also send the photoelectrically converted or decapsulated second uplink data stream to the second optical communication device, which is not specifically limited.
第一光通信装置通过已创建的第二连接向第二光通信装置发送第二上行数据流。本方式所示的第二连接为连接在第一光通信装置和第二光通信装置之间的电域通道。第一光通信装置和第二光通信装置创建第二连接的说明,请参见步骤301中的第一装置和第二装置之间创建第一连接的说明,具体不做赘述。本实施例以第一光通信装置基于电域通道向第二光通信装置发送该第二上行数据流为例进行示例性说明。在其他示例中,第一光通信装置识别出已承载第二上行数据流的第二上行传输帧。第一光通信装置直接向第二光通信装置发送处于光信号状态的第二上行传输帧。由第二光通信装置对所接收到的第二上行传输帧进行光电转换,解封装以及解码处理,以获取该第二上行数据流。The first optical communication device sends the second uplink data flow to the second optical communication device through the established second connection. The second connection shown in this manner is an electrical domain channel connected between the first optical communication device and the second optical communication device. For the description of establishing the second connection between the first optical communication device and the second optical communication device, please refer to the description of establishing the first connection between the first device and the second device in step 301, and details are not repeated here. In this embodiment, the first optical communication device sends the second uplink data stream to the second optical communication device based on the electrical domain channel as an example for illustration. In other examples, the first optical communication device identifies the second uplink transmission frame that has carried the second uplink data stream. The first optical communication device directly sends the second uplink transmission frame in an optical signal state to the second optical communication device. The second optical communication device performs photoelectric conversion, decapsulation and decoding processing on the received second uplink transmission frame, so as to obtain the second uplink data stream.
步骤314、第二光通信装置处理第一目标上行数据流。Step 314, the second optical communication device processes the first target uplink data flow.
本实施例所示的第一目标上行数据流为第二上行数据流或第四上行数据流。第二光通信装置根据已接收的第一上行传输帧获取该第四上行数据流。第二光通信装置获取第四上行数据流的过程,请参见步骤313所示的第一光通信装置获取第一上行数据流的过程,具体不做赘述。以下对第二光通信装置确定第一目标上行数据流的几种可选情况进行说明。The first target uplink data flow shown in this embodiment is the second uplink data flow or the fourth uplink data flow. The second optical communication device acquires the fourth uplink data stream according to the received first uplink transmission frame. For a process for the second optical communication device to obtain the fourth uplink data stream, please refer to the process for the first optical communication device to obtain the first uplink data stream shown in step 313 , which will not be described in detail. Several optional situations in which the second optical communication device determines the first target uplink data flow are described below.
情况1,本情况所示的第一装置和第一光通信装置之间的光路,或第一光通信装置和第二光通信装置之间的第二连接中的至少一个出现故障。此情况下,来自第一装置的第二上行数据流无法经由第一光通信装置成功传输至第二光通信装置。且本情况所示的第二装置和第二光通信装置之间的光路正常。可知,来自第二装置的第四上行数据流能够成功传输至第二光通信装置。在第二光通信装置已成功接收第四上行数据流而未接收第二上行数据流的情况下,第二光通信装置确定该第一目标上行数据流为该第二上行数据流。第二光通信装置处理该第二上行数据流,以获取第二上行数据流所承载的业务。Case 1, in this case, at least one of the optical path between the first device and the first optical communication device, or the second connection between the first optical communication device and the second optical communication device fails. In this case, the second upstream data stream from the first device cannot be successfully transmitted to the second optical communication device via the first optical communication device. And the optical path between the second device and the second optical communication device shown in this situation is normal. It can be known that the fourth uplink data stream from the second device can be successfully transmitted to the second optical communication device. In the case that the second optical communication device has successfully received the fourth uplink data flow but not the second uplink data flow, the second optical communication device determines that the first target uplink data flow is the second uplink data flow. The second optical communication device processes the second uplink data flow to acquire services carried by the second uplink data flow.
情况2,本情况所示的第二装置和第二光通信装置之间的光路出现故障。可知,此情况来自第二装置的第四上行数据流无法成功传输至第二光通信装置。本情况所示的第一装置和第一光通信装置之间的光路正常,且第一光通信装置和第二光通信装置之间的第二连接也正常。那么,来自第一装置的第二上行数据流能够经由第一光通信装置成功传输至第二光通信装置。在第二光通信装置成功接收到第二上行数据流而未接收到第四上行数据流的情况下, 第二光通信装置确定该第一目标上行数据流为第四上行数据流。第二光通信装置处理该第四上行数据流,以获取第四上行数据流所承载的业务。In case 2, the optical path between the second device and the second optical communication device shown in this case fails. It can be seen that in this case, the fourth uplink data stream from the second device cannot be successfully transmitted to the second optical communication device. In this case, the optical path between the first device and the first optical communication device is normal, and the second connection between the first optical communication device and the second optical communication device is also normal. Then, the second upstream data stream from the first device can be successfully transmitted to the second optical communication device via the first optical communication device. In a case where the second optical communication device successfully receives the second uplink data flow but fails to receive the fourth uplink data flow, the second optical communication device determines that the first target uplink data flow is the fourth uplink data flow. The second optical communication device processes the fourth uplink data flow to obtain services carried by the fourth uplink data flow.
情况3,本情况所示第二光通信装置已成功接收到第四上行数据流以及第二上行数据流。第二光通信装置在第四上行数据流和第二上行数据流中,选择一个处理以获取业务。例如,第二光通信装置默认处理来自第二装置的第四上行数据流。又如,第二光通信装置可获取第三误码率和第四误码率。其中,第三误码率为第四上行数据流的误码率。第四误码率为第二上行数据流的误码率。若第三误码率大于第四误码率,第二光通信装置确定该第一目标上行数据流为第二上行数据流。若第三误码率小于或等于第四误码率,第二光通信装置确定该第一目标上行数据流为第四上行数据流。In case 3, the second optical communication device in this case has successfully received the fourth uplink data stream and the second uplink data stream. The second optical communication device selects one of the fourth uplink data flow and the second uplink data flow to process to obtain the service. For example, the second optical communication device processes the fourth uplink data stream from the second device by default. In another example, the second optical communication device may obtain the third bit error rate and the fourth bit error rate. Wherein, the third bit error rate is the bit error rate of the fourth uplink data stream. The fourth bit error rate is the bit error rate of the second uplink data stream. If the third BER is greater than the fourth BER, the second optical communication device determines that the first target uplink data flow is the second uplink data flow. If the third BER is less than or equal to the fourth BER, the second optical communication device determines that the first target uplink data flow is the fourth uplink data flow.
本实施例所示以用于备份的第二上行数据流,仅向一个第一装置发送为例进行示例性说明。在其他示例中,第二装置可向多个不同的第一装置分别发送该第二上行数据流。每个第一装置实现备份的过程请参见图3对应的实施例,具体不做赘述。In this embodiment, the second uplink data stream used for backup is sent to only one first device as an example for illustration. In other examples, the second device may respectively send the second uplink data stream to multiple different first devices. Refer to the embodiment corresponding to FIG. 3 for the process of implementing backup by each first device, and details are not repeated here.
采用本实施例所示的方法,第一装置所发送的至少一个第二上行传输帧包括第一装置本身需要传输的第一上行数据流以及来自第二装置的第二上行数据流。发送用于备份的第二上行数据流的硬件资源(例如编码器,激光器或处理器等),复用于发送第一上行数据流的硬件资源。即发送第一上行数据流的硬件资源和发送第二上行数据流的硬件资源相同。不会为发送用于备份的第二上行数据流设置独立的硬件资源。提高了第一装置的硬件资源的利用率。Using the method shown in this embodiment, the at least one second uplink transmission frame sent by the first device includes the first uplink data stream to be transmitted by the first device itself and the second uplink data stream from the second device. The hardware resource (for example, encoder, laser or processor, etc.) for sending the second uplink data stream used for backup is multiplexed with the hardware resource for sending the first uplink data stream. That is, the hardware resource for sending the first uplink data flow is the same as the hardware resource for sending the second uplink data flow. No separate hardware resources are provided for sending the second upstream data stream for backup. The utilization rate of the hardware resources of the first device is improved.
因第一装置不会为发送该第二上行数据流设置独立的硬件资源,导致备份的过程对现网的改动较小,降低了备份的成本。Since the first device does not set independent hardware resources for sending the second uplink data flow, the backup process requires little change to the live network, reducing backup costs.
而且第一装置和第一光通信装置之间的链路,不仅仅用于传输用于备份的第二上行数据流。该链路还用于传输第一上行数据流。因无需配置独立的带宽资源仅用于传输第二上行数据流,避免了带宽资源的浪费,提高了带宽资源的利用率。Moreover, the link between the first device and the first optical communication device is not only used for transmitting the second upstream data flow for backup. The link is also used to transmit the first upstream data flow. Since there is no need to configure independent bandwidth resources only for the transmission of the second uplink data stream, the waste of bandwidth resources is avoided, and the utilization rate of bandwidth resources is improved.
本申请所提供的方法,还能够实现终端设备侧的互备份。其中,终端设备侧的互备份是指,第一装置为第二装置所发送的上行数据流备份。且第二装置为第一装置所发送的上行数据流备份。以下结合图4所示对终端侧互备份进行说明。图4所示的各个执行主体的说明,请参见图2所示,具体不做赘述。其中,图4为本申请实施例所提供的第二种数据流的传输方法的执行步骤流程图。The method provided in this application can also realize mutual backup at the terminal device side. Wherein, the mutual backup at the terminal device side refers to that the first device backs up the uplink data stream sent by the second device. And the second device backs up the upstream data flow sent by the first device. The mutual backup at the terminal side will be described below with reference to FIG. 4 . For the description of each execution subject shown in FIG. 4 , please refer to FIG. 2 , and details will not be repeated. Wherein, FIG. 4 is a flowchart of execution steps of the second data stream transmission method provided by the embodiment of the present application.
步骤401、第一装置和第二装置创建第一连接。Step 401, the first device and the second device establish a first connection.
步骤402、第一装置通过第一连接向第二装置发送第一协商消息。Step 402, the first device sends a first negotiation message to the second device through the first connection.
步骤403、第二装置通过第一连接向第一装置发送第二协商消息。Step 403, the second device sends a second negotiation message to the first device through the first connection.
本实施例所示的第一协商消息和第二协商消息用于协商第一装置为第二装置所发送的数据流备份。具体说明,请参见图3对应的步骤302-303所示,具体不做赘述。本实施例所示的第一协商消息和第二协商消息还用于协商第二装置为第一装置所发送的数据流备份。可知,该第一协商消息还携带第二备份带宽。该第二备份带宽为来自第一装置且需要备份的上行数据流。The first negotiation message and the second negotiation message shown in this embodiment are used to negotiate the data stream backup sent by the first device for the second device. For specific instructions, please refer to the corresponding steps 302-303 shown in FIG. 3 , and details are not repeated here. The first negotiation message and the second negotiation message shown in this embodiment are also used to negotiate the backup of the data stream sent by the second device for the first device. It can be seen that the first negotiation message also carries the second backup bandwidth. The second backup bandwidth is the upstream data flow from the first device that needs to be backed up.
步骤404、第一装置向第一光通信装置发送第一带宽请求消息。Step 404, the first device sends a first bandwidth request message to the first optical communication device.
步骤405、第二装置向第二光通信装置发送第二带宽请求消息。Step 405, the second device sends a second bandwidth request message to the second optical communication device.
本实施例所示的第一带宽请求消息和第二带宽请求消息用于请求通过第一装置为第二装置发送的上行数据流备份。具体说明,请参见图3对应的步骤304-305所示,不做赘述。本 实施例所示的第一带宽请求消息和第二带宽请求消息还用于请求通过第二装置为第一装置所发送的上行数据流备份。具体的,该第二带宽请求消息还携带第二备份带宽。The first bandwidth request message and the second bandwidth request message shown in this embodiment are used to request backup of the upstream data flow sent by the second device through the first device. For specific description, please refer to the corresponding steps 304-305 shown in FIG. 3 , and details are not repeated here. The first bandwidth request message and the second bandwidth request message shown in this embodiment are also used to request that the second device back up the upstream data flow sent by the first device. Specifically, the second bandwidth request message also carries the second backup bandwidth.
步骤406、第一光通信装置向第一装置发送第一带宽分配消息。Step 406, the first optical communication device sends a first bandwidth allocation message to the first device.
步骤407、第二光通信装置向第二装置发送第二带宽分配消息。Step 407, the second optical communication device sends a second bandwidth allocation message to the second device.
第一光通信装置和第二光通信装置相互协商,是否允许第一装置为第二装置所发送的上行数据流备份,以及是否允许第二装置为第一装置所发送的上行数据流备份。具体协商过程参见图3对应的步骤307所示,具体不做赘述。The first optical communication device and the second optical communication device negotiate with each other whether to allow the first device to back up the upstream data flow sent by the second device, and whether to allow the second device to back up the upstream data flow sent by the first device. Refer to the corresponding step 307 shown in FIG. 3 for the specific negotiation process, and details are not repeated here.
步骤408、第一装置获取第一上行数据流。Step 408, the first device acquires the first uplink data stream.
步骤408的执行过程,请参见图3对应的步骤308所示,具体不做赘述。For the execution process of step 408, please refer to the corresponding step 308 shown in FIG. 3 , which will not be described in detail.
步骤409、第一装置向第二装置发送第三上行数据流。Step 409, the first device sends the third uplink data stream to the second device.
该第一装置确定需要备份的第一上行数据流。该第一装置复制该第一上行数据流以获取第三上行数据流。可知,该第三上行数据流为第一上行数据流的备份。第一装置通过第一连接向该第二装置发送该第三上行数据流。本实施例所示的第一装置获取第三上行数据流的过程,可参见图3对应的步骤310所示的第二装置获取第二上行数据流的过程,具体不做赘述。The first device determines the first upstream data flow that needs to be backed up. The first device duplicates the first upstream data stream to obtain a third upstream data stream. It can be seen that the third uplink data flow is a backup of the first uplink data flow. The first device sends the third uplink data stream to the second device through the first connection. For the process of obtaining the third uplink data stream by the first device shown in this embodiment, refer to the process of obtaining the second uplink data stream by the second device shown in step 310 corresponding to FIG. 3 , which will not be described in detail.
步骤410、第二装置获取第四上行数据流。Step 410, the second device acquires the fourth uplink data stream.
步骤411、第二装置向第一装置发送第二上行数据流。Step 411, the second device sends a second uplink data stream to the first device.
步骤410-411的执行过程的说明,请参见图3对应的步骤309-310所示,具体不做赘述。For the description of the execution process of steps 410-411, please refer to the corresponding steps 309-310 shown in FIG. 3, and details are not repeated here.
步骤412、第二装置向第二光通信装置发送第一上行传输帧。Step 412, the second device sends the first uplink transmission frame to the second optical communication device.
第二装置向第二光通信装置所发送的第一上行传输帧包括已承载第四上行数据流的第一上行传输帧以及已承载第五上行数据流的第一上行传输帧。具体说明,请参见图3对应的步骤311所示,具体不做赘述。本实施例所示的第一上行传输帧相对于图3的第一上行传输帧的区别在于,第二装置还向第二光通信装置发送已承载第三上行数据流的第一上行传输帧。第一上行传输帧承载第三上行数据流的过程的说明,请参见图3对应的步骤312所示的第二上行传输帧承载第二上行数据流的说明,具体不做赘述。The first uplink transmission frame sent by the second device to the second optical communication device includes the first uplink transmission frame carrying the fourth uplink data flow and the first uplink transmission frame carrying the fifth uplink data flow. For specific description, please refer to the corresponding step 311 shown in FIG. 3 , and details are not repeated here. The difference between the first uplink transmission frame shown in this embodiment and the first uplink transmission frame in FIG. 3 is that the second device also sends the first uplink transmission frame carrying the third uplink data stream to the second optical communication device. For the description of the process of carrying the third uplink data flow in the first uplink transmission frame, please refer to the description of carrying the second uplink data flow in the second uplink transmission frame shown in step 312 corresponding to FIG. 3 , and details are not repeated here.
步骤413、第一装置向第一光通信装置发送第二上行传输帧。Step 413, the first device sends the second uplink transmission frame to the first optical communication device.
步骤413的执行过程的说明,请参见图3对应的步骤312所示,具体不做赘述。For the description of the execution process of step 413, please refer to the corresponding step 312 shown in FIG. 3 , and details are not repeated here.
步骤414、第一光通信装置向第二光通信装置发送第二上行数据流。Step 414, the first optical communication device sends the second uplink data stream to the second optical communication device.
步骤415、第二光通信装置处理第一目标上行数据流。Step 415, the second optical communication device processes the first target uplink data flow.
步骤414-415的执行过程的说明,请参见图3对应的步骤313-314所示,具体不做赘述。For the description of the execution process of steps 414-415, please refer to the corresponding steps 313-314 shown in FIG. 3, and details are not repeated here.
步骤416、第二光通信装置向第一光通信装置发送第三上行数据流。Step 416, the second optical communication device sends the third uplink data stream to the first optical communication device.
第二光通信装置向第一光通信装置发送第三上行数据流的说明,请参见图3对应的步骤313所示的第一光通信装置向第二光通信装置发送第二上行数据流的过程,具体不做赘述。For the description of the second optical communication device sending the third uplink data stream to the first optical communication device, please refer to the process of the first optical communication device sending the second uplink data stream to the second optical communication device shown in step 313 corresponding to FIG. 3 , without going into details.
步骤417、第一光通信装置处理第二目标上行数据流。Step 417, the first optical communication device processes the second target uplink data flow.
该第二目标上行数据流为第一上行数据流或第三上行数据流。本实施例所示的第一光通信装置处理第二目标上行数据流的过程的说明,请参见图3对应的步骤314所示的第二光通信装置处理第一目标上行数据流的说明,具体不做赘述。The second target uplink is the first uplink or the third uplink. For the description of the process of processing the second target upstream data stream by the first optical communication device shown in this embodiment, please refer to the description of the second optical communication device processing the first target upstream data stream shown in step 314 corresponding to FIG. 3 . I won't go into details.
本实施例所示的方法利用第一上行数据流的硬件资源来发送用于备份的第二上行数据流,无需为用于备份的第二上行数据流配置独立的硬件资源。类似地,该方法利用发送第四上行数据流的硬件资源来发送用于备份的第三上行数据流。这么做有效地提高了资源利用率。The method shown in this embodiment utilizes the hardware resources of the first upstream data flow to send the second upstream data flow for backup, without configuring independent hardware resources for the second upstream data flow for backup. Similarly, the method utilizes hardware resources for sending the fourth upstream data stream to send the third upstream data stream for backup. Doing so effectively improves resource utilization.
图3和图4对应的实施例说明的均是来自终端设备的上行数据流如何备份,以及备份后的上行数据流是如何发送至汇聚设备的。本申请实施例还提供了一种说明来自汇聚设备的下行数据流如何备份,以及备份后的下行数据流是如何发送至终端设备的传输方法。以下结合图5所示对本实施例所涉及的各个执行过程进行说明。其中,图5为本申请实施例所提供的第二种光通信系统的结构示例图。The embodiments corresponding to FIG. 3 and FIG. 4 illustrate how the uplink data flow from the terminal device is backed up, and how the backed up uplink data flow is sent to the aggregation device. The embodiment of the present application also provides a transmission method illustrating how to back up the downlink data stream from the converging device and how to send the backed up downlink data stream to the terminal device. Each execution process involved in this embodiment will be described below with reference to FIG. 5 . Wherein, FIG. 5 is a structural example diagram of the second optical communication system provided by the embodiment of the present application.
图5所示的第一光通信装置502和第二光通信装置503位于终端设备侧。具体说明参见图2对应的第一装置和第二装置的说明,具体不做赘述。第一装置501和第二装置504位于汇聚设备侧。具体说明,请参见图2对应的第一光通信装置和第二光通信装置的说明,具体不做赘述。图6为本申请实施例所提供的第三种数据流的传输方法的执行步骤流程图。图6所示的各个执行主体的说明,请参见图5所示,具体不做赘述。The first optical communication device 502 and the second optical communication device 503 shown in FIG. 5 are located on the terminal device side. For specific descriptions, refer to descriptions of the first device and the second device corresponding to FIG. 2 , and details are not repeated here. The first device 501 and the second device 504 are located at the converging device side. For specific descriptions, please refer to descriptions of the first optical communication device and the second optical communication device corresponding to FIG. 2 , and details are not repeated here. FIG. 6 is a flow chart of execution steps of a third data stream transmission method provided by an embodiment of the present application. For the description of each execution subject shown in FIG. 6 , please refer to FIG. 5 , and details are not repeated here.
步骤601、第一装置和第二装置创建第一连接。Step 601, the first device and the second device establish a first connection.
步骤602、第一装置通过第一连接向第二装置发送第一协商消息。Step 602, the first device sends a first negotiation message to the second device through the first connection.
步骤603、第二装置通过第一连接向第一装置发送第二协商消息。Step 603, the second device sends a second negotiation message to the first device through the first connection.
步骤601-603的执行过程,请参见图3对应的步骤301-303所示,具体不做赘述。For the execution process of steps 601-603, please refer to the corresponding steps 301-303 shown in FIG. 3 , which will not be described in detail.
步骤604、第一装置向第一光通信装置发送第三带宽分配消息。Step 604, the first device sends a third bandwidth allocation message to the first optical communication device.
步骤605、第二装置向第二光通信装置发送第四带宽分配消息。Step 605, the second device sends a fourth bandwidth allocation message to the second optical communication device.
第一装置和第二装置相互协商,是否允许第一装置为第二装置所发送的下行数据流备份。具体协商过程,可参见图3对应的步骤307所示,具体不做赘述。在协商成功的情况下,该第三带宽分配消息用于指示第三传输带宽。第二带宽分配消息用于指示第四传输带宽。第三传输带宽用于传输来自第一装置的第二下行传输帧。第四传输带宽用于传输来自第二装置的第一下行传输帧。The first device and the second device negotiate with each other whether to allow the first device to back up the downstream data flow sent by the second device. For the specific negotiation process, refer to the corresponding step 307 shown in FIG. 3 , which will not be described in detail. If the negotiation is successful, the third bandwidth allocation message is used to indicate the third transmission bandwidth. The second bandwidth allocation message is used to indicate the fourth transmission bandwidth. The third transmission bandwidth is used to transmit the second downlink transmission frame from the first device. The fourth transmission bandwidth is used to transmit the first downlink transmission frame from the second device.
步骤606、第一装置获取第一下行数据流。Step 606, the first device acquires the first downlink data stream.
步骤607、第二装置获取第四下行数据流。Step 607, the second device acquires the fourth downlink data stream.
步骤608、第二装置向第一装置发送第二下行数据流。Step 608, the second device sends the second downlink data stream to the first device.
步骤606-608所示,请参见图3对应的步骤308-310所示,具体不做赘述。As shown in steps 606-608, please refer to the corresponding steps 308-310 shown in FIG. 3, and details are not repeated here.
步骤609、第二装置向第二光通信装置发送第一下行传输帧。Step 609, the second device sends the first downlink transmission frame to the second optical communication device.
本实施例所示的第二装置向第二光通信装置所发送的第一上行传输帧为已承载第四下行数据流的第一下行传输帧以及已承载第五下行数据流的第一下行传输帧。对第四下行数据流和第五下行数据流的说明,可参见图3对应的步骤311所示的第四上行数据流和第五上行数据流的说明,具体不做赘述。The first uplink transmission frame sent by the second device to the second optical communication device shown in this embodiment is the first downlink transmission frame that has carried the fourth downlink data flow and the first downlink transmission frame that has carried the fifth downlink data flow. line transmission frame. For the description of the fourth downlink data flow and the fifth downlink data flow, refer to the description of the fourth uplink data flow and the fifth uplink data flow shown in step 311 corresponding to FIG. 3 , and details are not repeated here.
如图5所示的示例,第二装置504向第二光通信装置503所发送的第一下行传输帧包括已承载第四下行数据流的第一下行传输帧521以及已承载第五下行数据流的第一下行传输帧522。第一下行传输帧521和第一下行传输帧522的说明,请图2对应的第一下行传输帧221和第一下行传输帧222的说明,具体不做赘述。As shown in the example in FIG. 5 , the first downlink transmission frame sent by the second device 504 to the second optical communication device 503 includes the first downlink transmission frame 521 carrying the fourth downlink data flow and the first downlink transmission frame 521 carrying the fifth downlink data flow. The first downlink transmission frame 522 of the data stream. For the description of the first downlink transmission frame 521 and the first downlink transmission frame 522, please refer to the description of the first downlink transmission frame 221 and the first downlink transmission frame 222 corresponding to FIG.
步骤610、第一装置向第一光通信装置发送第二下行传输帧。Step 610, the first device sends a second downlink transmission frame to the first optical communication device.
该第二下行传输帧包括用于承载第一下行数据流的第二下行传输帧以及用于承载第二下行数据流的第二下行传输帧。例如图5所示,第一装置501向第一光通信装置502发送已承载第一下行数据流的第二下行帧511以及用于承载第二下行数据流的第二下行传输帧512。对第二下行传输帧511和第二下行帧512之间的位置关系的说明,可参见图2所示的第二下 行传输帧211以及第二下行传输帧212之间的位置的说明,具体不做赘述。The second downlink transmission frame includes a second downlink transmission frame for carrying the first downlink data flow and a second downlink transmission frame for carrying the second downlink data flow. For example, as shown in FIG. 5 , the first device 501 sends to the first optical communication device 502 a second downlink frame 511 carrying the first downlink data flow and a second downlink transmission frame 512 used to carry the second downlink data flow. For the description of the positional relationship between the second downlink transmission frame 511 and the second downlink transmission frame 512, refer to the description of the position between the second downlink transmission frame 211 and the second downlink transmission frame 212 shown in FIG. Do repeat.
步骤611、第一光通信装置向第二光通信装置发送第二下行数据流。Step 611, the first optical communication device sends a second downlink data stream to the second optical communication device.
本实施例所示的第一装置向第一光通信装置所发送的第三带宽分配消息还用于指示第一下行数据流在第二下行传输帧中的位置。第三带宽分配消息还用于指示第二下行数据流在第二下行传输帧中的位置。可知,第一光通信装置根据来自第一装置的第三带宽分配消息,能够在第二下行传输帧中确定已承载第一下行数据流的第二下行传输帧和已承载第二下行数据流的第二下行传输帧。具体说明请参见图3的步骤311,具体不做赘述。The third bandwidth allocation message sent by the first device to the first optical communication device shown in this embodiment is also used to indicate the position of the first downlink data stream in the second downlink transmission frame. The third bandwidth allocation message is also used to indicate the position of the second downlink data flow in the second downlink transmission frame. It can be seen that, according to the third bandwidth allocation message from the first device, the first optical communication device can determine in the second downlink transmission frame that the second downlink transmission frame that has carried the first downlink data flow and the second downlink transmission frame that has carried the second downlink data flow of the second downlink transmission frame. For specific description, please refer to step 311 in FIG. 3 , and details are not repeated here.
步骤612、第二光通信装置处理第一目标下行数据流。Step 612, the second optical communication device processes the first target downlink data flow.
本实施例所示的第一目标下行数据流为第二下行数据流或第四下行数据流。具体过程,请参见图3对应的步骤314所示,具体不做赘述。The first target downlink data flow shown in this embodiment is the second downlink data flow or the fourth downlink data flow. For the specific process, please refer to the corresponding step 314 shown in FIG. 3 , which will not be described in detail.
本实施例可结合执行图3或图6对应的实施例,以实现汇聚设备侧的下行数据流的备份以及终端设备侧的上行数据流的备份。This embodiment may be executed in combination with the embodiment corresponding to FIG. 3 or FIG. 6 , so as to realize the backup of the downlink data flow on the converging device side and the backup of the uplink data flow on the terminal device side.
采用本实施例所示的方法,发送用于备份的第二下行数据流的硬件资源,复用于发送第一下行数据流的硬件资源。即发送第一下行数据流的硬件资源和发送第二下行数据流的硬件资源相同。不会为发送用于备份的第二下行数据流设置独立的硬件资源。提高了第一装置的硬件资源的利用率。By adopting the method shown in this embodiment, the hardware resource for sending the second downlink data stream used for backup is multiplexed with the hardware resource for sending the first downlink data stream. That is, the hardware resource for sending the first downlink data flow is the same as the hardware resource for sending the second downlink data flow. No separate hardware resources are provided for sending the second downstream data stream for backup. The utilization rate of the hardware resources of the first device is improved.
因第一装置不会为发送该第二下行数据流设置独立的硬件资源,导致备份的过程对现网的改动较小,降低了备份的成本。Since the first device does not set independent hardware resources for sending the second downlink data stream, the backup process requires little change to the existing network, reducing backup costs.
而且第一装置和第一光通信装置之间的链路,不仅仅用于传输用于备份的第二下行数据流。该链路还用于传输第一下行数据流。因无需配置独立的带宽资源仅用于传输第二下行数据流,避免了带宽资源的浪费,提高了带宽资源的利用率。Moreover, the link between the first device and the first optical communication device is not only used for transmitting the second downstream data flow for backup. The link is also used to transmit the first downstream data flow. Since there is no need to configure independent bandwidth resources only for the transmission of the second downlink data flow, waste of bandwidth resources is avoided, and the utilization rate of bandwidth resources is improved.
本申请所提供的方法还能够实现汇聚设备侧的互备份。其中,汇聚设备侧的互备份是指,第一装置为第二装置所发送的下行数据流进行备份。且第二装置为第一装置所发送的下行数据流进行备份。图7为本申请实施例所提供的第四种下行数据流的传输方法的执行步骤流程图。图7所示的各个执行主体的说明,请参见图5所示,具体不做赘述。The method provided in this application can also realize mutual backup on the aggregation device side. Wherein, the mutual backup at the converging device side refers to that the first device backs up the downlink data stream sent by the second device. And the second device backs up the downstream data stream sent by the first device. FIG. 7 is a flow chart of execution steps of a fourth downlink data stream transmission method provided by an embodiment of the present application. For the description of each execution subject shown in FIG. 7 , please refer to FIG. 5 , and details are not repeated here.
步骤701、第一装置和第二装置创建第一连接。Step 701, the first device and the second device establish a first connection.
步骤702、第一装置通过第一连接向第二装置发送第一协商消息。Step 702, the first device sends a first negotiation message to the second device through the first connection.
步骤703、第二装置通过第一连接向第一装置发送第二协商消息。Step 703, the second device sends a second negotiation message to the first device through the first connection.
步骤704、第一装置向第一光通信装置发送第三带宽分配消息。Step 704, the first device sends a third bandwidth allocation message to the first optical communication device.
步骤705、第二装置向第二光通信装置发送第四带宽分配消息。Step 705, the second device sends a fourth bandwidth allocation message to the second optical communication device.
步骤706、第一装置获取第一下行数据流。Step 706, the first device acquires the first downlink data stream.
步骤701-706的执行过程,参见图6对应的步骤601-606所示,具体不做赘述。For the execution process of steps 701-706, refer to the corresponding steps 601-606 shown in FIG. 6 , which will not be described in detail.
步骤707、第一装置向第二装置发送第三下行数据流。Step 707, the first device sends the third downlink data stream to the second device.
该第一装置确定需要备份的第一下行数据流。该第一装置复制该第一下行数据流以获取第三下行数据流。可知,该第三下行数据流为第一下行数据流的备份。第一装置通过第一连接向该第二装置发送该第三下行数据流。本实施例所示的第一装置获取第三下行数据流的过程,可参见图4对应的步骤409所示的第一装置获取第三下行数据流的过程,具体不做赘述。The first device determines the first downlink data flow that needs to be backed up. The first device duplicates the first downlink data stream to obtain a third downlink data stream. It can be seen that the third downlink data flow is a backup of the first downlink data flow. The first device sends the third downlink data stream to the second device through the first connection. For the process of obtaining the third downlink data stream by the first device shown in this embodiment, refer to the process of obtaining the third downlink data stream by the first device shown in step 409 corresponding to FIG. 4 , which will not be described in detail.
步骤708、第二装置获取第四下行数据流。Step 708, the second device obtains the fourth downlink data stream.
步骤709、第二装置向第一装置发送第二下行数据流。Step 709, the second device sends the second downlink data stream to the first device.
步骤708-709的执行过程的说明可参见图6对应的步骤607-608所示,具体不做赘述。For the description of the execution process of steps 708-709, refer to the corresponding steps 607-608 shown in FIG. 6, and details are not repeated here.
步骤710、第二装置向第二光通信装置发送第一下行传输帧。Step 710, the second device sends the first downlink transmission frame to the second optical communication device.
第二装置向第二光通信装置所发送的第一下行传输帧包括已承载第四下行数据流的第一下行传输帧以及已承载第五下行数据流的第一下行传输帧。具体说明,请参见图6对应的步骤609所示,具体不做赘述。The first downlink transmission frame sent by the second device to the second optical communication device includes the first downlink transmission frame carrying the fourth downlink data flow and the first downlink transmission frame carrying the fifth downlink data flow. For specific description, please refer to the corresponding step 609 shown in FIG. 6 , and details are not repeated here.
本实施例所示的第一下行传输帧相对于图6的第一下行传输帧的区别在于,第二装置还向第二光通信装置发送已承载第三下行数据流的第一下行传输帧。第一下行传输帧承载第三下行数据流的过程的说明,请参见图6对应的步骤610所示的第二下行传输帧承载第二下行数据流的说明,具体不做赘述。The difference between the first downlink transmission frame shown in this embodiment and the first downlink transmission frame shown in FIG. transmit frame. For the description of the process of carrying the third downlink data flow in the first downlink transmission frame, please refer to the description of carrying the second downlink data flow in the second downlink transmission frame shown in step 610 corresponding to FIG. 6 , and details are not repeated here.
步骤711、第一装置向第一光通信装置发送第二下行传输帧。Step 711, the first device sends a second downlink transmission frame to the first optical communication device.
步骤712、第一光通信装置向第二光通信装置发送第二下行数据流。Step 712, the first optical communication device sends the second downlink data stream to the second optical communication device.
步骤713、第二光通信装置处理第一目标下行数据流。Step 713, the second optical communication device processes the first target downlink data flow.
步骤711-713的执行过程的说明,请参见图6对应的步骤610-612所示,具体不做赘述。For the description of the execution process of steps 711-713, please refer to the corresponding steps 610-612 shown in FIG. 6, and details are not repeated here.
步骤714、第二光通信装置向第一光通信装置发送第三下行数据流。Step 714, the second optical communication device sends the third downlink data stream to the first optical communication device.
第二光通信装置向第一光通信装置发送第三下行数据流的说明,请参见图6对应的步骤611所示的第一光通信装置向第二光通信装置发送第二下行数据流的过程,具体不做赘述。For the description of the second optical communication device sending the third downlink data stream to the first optical communication device, please refer to the process of the first optical communication device sending the second downlink data stream to the second optical communication device shown in step 611 corresponding to FIG. 6 , without going into details.
步骤715、第一光通信装置处理第二目标下行数据流。Step 715, the first optical communication device processes the second target downlink data flow.
该第二目标下行数据流为第一下行数据流或第三下行数据流。本实施例所示的第一光通信装置处理第二目标下行数据流的过程的说明,请参见图6对应的步骤612所示的第二光通信装置处理第一目标下行数据流的说明,具体不做赘述。The second target downlink data flow is the first downlink data flow or the third downlink data flow. For the description of the process of processing the second target downstream data stream by the first optical communication device shown in this embodiment, please refer to the description of the second optical communication device processing the first target downstream data stream shown in step 612 corresponding to FIG. 6 . I won't go into details.
本实施例所示的方法利用发送第一下行数据流的硬件资源来发送用于备份的第二下行数据流,无需单独为用于备份的第二下行数据流配置独立的硬件资源。类似地,该方法利用发送第四下行数据流的硬件资源来发送用于备份的第三下行数据流。这有效地提高了硬件资源和带宽利用率。In the method shown in this embodiment, the hardware resource for sending the first downlink data flow is used to send the second downlink data flow for backup, and there is no need to separately configure independent hardware resources for the second downlink data flow for backup. Similarly, the method utilizes the hardware resource for sending the fourth downlink data flow to send the third downlink data flow for backup. This effectively improves hardware resource and bandwidth utilization.
图8为本申请实施例所提供的一种通信设备的结构示例图。通信设备800包括处理器801,收发器802和存储器803。处理器801通过线路分别与存储器803以及收发器802互联。处理器801读取并执行存储器803中存储的计算机程序,以执行相应处理。处理器801的功能可以部分或全部通过硬件实现。处理器801可以是一个或多个芯片,或一个或多个集成电路。例如,处理器801可以是一个或多个现场可编程门阵列(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)或其它集成芯片,或者上述芯片或者处理器的任意组合等。应理解,当处理器为硬件实现时,存储器是可选的组件。FIG. 8 is a structural example diagram of a communication device provided by an embodiment of the present application. The communication device 800 includes a processor 801 , a transceiver 802 and a memory 803 . The processor 801 is connected to the memory 803 and the transceiver 802 respectively through lines. The processor 801 reads and executes the computer program stored in the memory 803 to perform corresponding processing. The functions of the processor 801 may be partially or completely implemented by hardware. Processor 801 may be one or more chips, or one or more integrated circuits. For example, the processor 801 may be one or more field-programmable gate arrays (field-programmable gate array, FPGA), application specific integrated circuit (ASIC), system chip (system on chip, SoC), central processing (central processor unit, CPU), network processor (network processor, NP), digital signal processing circuit (digital signal processor, DSP), microcontroller (micro controller unit, MCU), programmable controller (programmable logic device , PLD) or other integrated chips, or any combination of the above chips or processors, etc. It should be understood that memory is an optional component when the processor is implemented in hardware.
通信设备800可以为如图3所示的第一装置。若第一装置用于执行图3对应的实施例,那么,处理器801用于执行步骤301以及步骤308。收发器802用于执行步骤302,步骤304以及步骤312。若第一装置用于执行图4对应的实施例,那么,处理器801用于执行步骤401以及步骤408。收发器802用于执行步骤402,步骤404,步骤409以及步骤413。若第一装置用于执行图6对应的实施例,那么,处理器801用于执行步骤601以及步骤606。收发器 802用于执行步骤602,步骤604以及步骤610。若第一装置用于执行图7对应的实施例,那么,处理器701用于执行步骤701以及步骤706。收发器802用于执行步骤703,步骤704,步骤707以及步骤711。The communication device 800 may be the first apparatus as shown in FIG. 3 . If the first device is used to execute the embodiment corresponding to FIG. 3 , then the processor 801 is used to execute step 301 and step 308 . The transceiver 802 is used to perform step 302 , step 304 and step 312 . If the first device is configured to execute the embodiment corresponding to FIG. 4 , then the processor 801 is configured to execute step 401 and step 408 . The transceiver 802 is used to perform step 402 , step 404 , step 409 and step 413 . If the first device is configured to execute the embodiment corresponding to FIG. 6 , then the processor 801 is configured to execute step 601 and step 606 . The transceiver 802 is used to perform step 602, step 604 and step 610. If the first device is used to execute the embodiment corresponding to FIG. 7 , then the processor 701 is used to execute step 701 and step 706 . The transceiver 802 is used to perform step 703 , step 704 , step 707 and step 711 .
通信设备800可以为如图3所示的第二装置。若第二装置用于执行图3对应的实施例,那么,处理器801用于执行步骤301以及步骤309。收发器802用于执行步骤303,步骤305,步骤310以及步骤311。若第二装置用于执行图4对应的实施例,那么,处理器801用于执行步骤401以及步骤410。收发器802用于执行步骤403,步骤405以及步骤412。若第二装置用于执行图6对应的实施例,那么,处理器801用于执行步骤601以及步骤607。收发器802用于执行步骤603,步骤605以及步骤609。若第二装置用于执行图7对应的实施例,那么,处理器701用于执行步骤701以及步骤708。收发器802用于执行步骤703,步骤705以及步骤710。The communication device 800 may be the second apparatus as shown in FIG. 3 . If the second device is used to execute the embodiment corresponding to FIG. 3 , then the processor 801 is configured to execute step 301 and step 309 . The transceiver 802 is used to perform step 303 , step 305 , step 310 and step 311 . If the second device is used to execute the embodiment corresponding to FIG. 4 , then the processor 801 is configured to execute step 401 and step 410 . The transceiver 802 is used to perform step 403 , step 405 and step 412 . If the second device is used to execute the embodiment corresponding to FIG. 6 , then the processor 801 is configured to execute step 601 and step 607 . The transceiver 802 is used to perform step 603 , step 605 and step 609 . If the second device is used to execute the embodiment corresponding to FIG. 7 , then the processor 701 is configured to execute step 701 and step 708 . The transceiver 802 is used to perform step 703 , step 705 and step 710 .
通信设备800可以为如图3所示的第一光通信装置。若第一光通信装置用于执行图3对应的实施例,那么,收发器802用于执行步骤306以及步骤313。若第一光通信装置用于执行图4对应的实施例,那么,收发器802用于执行步骤406以及步骤414。处理器801用于执行步骤417。若第一光通信装置用于执行图6对应的实施例,那么,收发器802用于执行步骤611。若第一光通信装置用于执行图7对应的实施例,那么,收发器用于执行步骤712。处理器801用于执行步骤715。The communication device 800 may be a first optical communication device as shown in FIG. 3 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 3 , then the transceiver 802 is used to perform step 306 and step 313 . If the first optical communication device is used to execute the embodiment corresponding to FIG. 4 , then the transceiver 802 is used to execute step 406 and step 414 . The processor 801 is configured to execute step 417 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 6 , then the transceiver 802 is used to perform step 611 . If the first optical communication device is used to implement the embodiment corresponding to FIG. 7 , then the transceiver is used to perform step 712 . The processor 801 is configured to execute step 715 .
通信设备800可以为如图3所示的第二光通信装置。若第二光通信装置用于执行图3对应的实施例,那么,收发器802用于执行步骤307。处理器801用于执行步骤314。若第二光通信装置用于执行图4对应的实施例,那么,收发器802用于执行步骤407以及步骤416。处理器801用于执行步骤415。若第二光通信装置用于执行图6对应的实施例,处理器801用于执行步骤612。若第二光通信装置用于执行图7对应的实施例,处理器801用于执行步骤713。收发器802用于执行步骤714。The communication device 800 may be a second optical communication device as shown in FIG. 3 . If the second optical communication device is used to implement the embodiment corresponding to FIG. 3 , then the transceiver 802 is used to perform step 307 . The processor 801 is configured to execute step 314 . If the second optical communication device is used to implement the embodiment corresponding to FIG. 4 , then the transceiver 802 is used to perform step 407 and step 416 . The processor 801 is configured to execute step 415 . If the second optical communication device is used to execute the embodiment corresponding to FIG. 6 , the processor 801 is configured to execute step 612 . If the second optical communication device is used to execute the embodiment corresponding to FIG. 7 , the processor 801 is configured to execute step 713 . The transceiver 802 is used to perform step 714 .
本申请提供了一种光通信系统。该光通信系统的第一种实施例的结构可参见图2所示。该光通信系统用于执行图3或图4所示的实施例。该光通信系统的第二种实施例的结构可参见5所示。该光通信系统用于执行图6或图7所示的实施例。The present application provides an optical communication system. The structure of the first embodiment of the optical communication system may be shown in FIG. 2 . The optical communication system is used to implement the embodiment shown in FIG. 3 or FIG. 4 . Refer to 5 for the structure of the second embodiment of the optical communication system. The optical communication system is used to implement the embodiment shown in FIG. 6 or FIG. 7 .
以上实施例仅用以说明本发明的技术方案,而非对其限制。尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solution of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions described in the foregoing embodiments can still be modified, or some technical features thereof can be equivalently replaced. However, these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (21)

  1. 一种数据流的传输方法,其特征在于,所述方法包括:A data stream transmission method, characterized in that the method comprises:
    第一装置获取第一数据流;the first device acquires the first data stream;
    所述第一装置接收来自第二装置的第二数据流,所述第二数据流为所述第二装置发送的第一传输帧所承载的至少部分数据流的备份;The first device receives a second data stream from the second device, and the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device;
    所述第一装置向光通信装置发送第二传输帧,所述第二传输帧用于承载所述第一数据流和所述第二数据流。The first device sends a second transmission frame to the optical communication device, and the second transmission frame is used to carry the first data stream and the second data stream.
  2. 根据权利要求1所述的方法,其特征在于,所述第一装置获取第一数据流之后,所述方法还包括:The method according to claim 1, wherein after the first device obtains the first data stream, the method further comprises:
    所述第一装置向所述第二装置发送第三数据流,所述第三数据流为所述第一数据流的备份。The first device sends a third data stream to the second device, the third data stream being a backup of the first data stream.
  3. 根据权利要求2所述的方法,其特征在于,所述第一装置向所述第二装置发送第三数据流之前,所述方法还包括:The method according to claim 2, wherein before the first device sends the third data stream to the second device, the method further comprises:
    所述第一装置获取多个数据流;the first device acquires a plurality of data streams;
    所述第一装置根据备份标识,从所述多个数据流中确定所述第一数据流;The first device determines the first data stream from the multiple data streams according to the backup identifier;
    所述第一装置复制所述第一数据流以获取所述第三数据流。The first device copies the first data stream to obtain the third data stream.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述第一装置接收来自第二装置的第二数据流之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the first device receives the second data stream from the second device, the method further comprises:
    所述第一装置建立和所述第二装置之间的连接;the first device establishes a connection with the second device;
    所述第一装置通过所述连接向所述第二装置发送第一协商消息;the first device sends a first negotiation message to the second device through the connection;
    所述第一装置通过所述连接接收来自所述第二装置的第二协商消息,所述第一协商消息和所述第二协商消息用于协商所述第一装置和所述第二装置通过所述连接传输数据流,所述数据流用于备份。The first device receives a second negotiation message from the second device through the connection, and the first negotiation message and the second negotiation message are used to negotiate the communication between the first device and the second device through the connection. The connection transmits a data stream, which is used for backup.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一装置为终端设备,所述第一装置向光通信装置发送第二传输帧之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein the first device is a terminal device, and before the first device sends the second transmission frame to the optical communication device, the method further includes:
    所述第一装置向所述光通信装置发送带宽请求消息,所述带宽请求消息用于请求获取传输带宽,所述传输带宽用于传输所述第一数据流和所述第二数据流;The first device sends a bandwidth request message to the optical communication device, where the bandwidth request message is used to request acquisition of a transmission bandwidth, and the transmission bandwidth is used to transmit the first data stream and the second data stream;
    所述第一装置接收来自所述光通信装置的带宽分配消息,所述带宽分配消息用于指示所述传输带宽。The first device receives a bandwidth allocation message from the optical communication device, where the bandwidth allocation message is used to indicate the transmission bandwidth.
  6. 根据权利要求5所述的方法,其特征在于,所述带宽分配消息用于指示所述第一数据流在传输带宽中的位置,所述带宽分配消息还用于指示所述第二数据流在所述传输带宽中的位置。The method according to claim 5, wherein the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth, and the bandwidth allocation message is also used to indicate the position of the second data stream in the transmission bandwidth. The position in the transmission bandwidth.
  7. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一装置为汇聚设备,所述第一装置向光通信装置发送第二传输帧之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein the first device is a converging device, and before the first device sends the second transmission frame to the optical communication device, the method further includes:
    所述第一装置向所述光通信装置发送带宽分配消息,所述带宽分配消息用于指示所述第一数据流在所述传输带宽中的位置,所述带宽分配消息还用于指示所述第二数据流在所述传输带宽中的位置。The first device sends a bandwidth allocation message to the optical communication device, the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth, and the bandwidth allocation message is also used to indicate the The position of the second data stream in the transmission bandwidth.
  8. 一种数据流的传输方法,其特征在于,所述方法包括:A data stream transmission method, characterized in that the method comprises:
    第一光通信装置接收来自第一装置的第二传输帧,所述第一光通信装置获取所述第二传输帧所承载的第一数据流和第二数据流,所述第一数据流来自所述第一装置,所述第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份;The first optical communication device receives the second transmission frame from the first device, the first optical communication device obtains the first data stream and the second data stream carried by the second transmission frame, and the first data stream comes from In the first device, the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device;
    所述第一光通信装置向所述第二光通信装置发送所述第二数据流。The first optical communication device sends the second data stream to the second optical communication device.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, characterized in that the method further comprises:
    所述第一光通信装置接收来自所述第二光通信装置的第三数据流,所述第三数据流为所述第一数据流的备份;The first optical communication device receives a third data stream from the second optical communication device, the third data stream being a backup of the first data stream;
    所述第一光通信装置处理所述第一数据流或所述第三数据流。The first optical communication device processes the first data stream or the third data stream.
  10. 根据权利要求9所述的方法,其特征在于,所述第一光通信装置处理所述第一数据流或所述第三数据流包括:The method according to claim 9, wherein processing the first data stream or the third data stream by the first optical communication device comprises:
    所述第一光通信装置获取所述第一数据流的第一误码率;The first optical communication device acquires a first bit error rate of the first data stream;
    所述第一光通信装置获取所述第三数据流的第二误码率;The first optical communication device acquires a second bit error rate of the third data stream;
    若所述第一误码率大于所述第二误码率,所述第一光通信装置处理所述第三数据流;If the first bit error rate is greater than the second bit error rate, the first optical communication device processes the third data stream;
    若所述第一误码率小于或等于所述第二误码率,所述第一光通信装置处理所述第一数据流。If the first bit error rate is less than or equal to the second bit error rate, the first optical communication device processes the first data stream.
  11. 根据权利要求8至10任一项所述的方法,其特征在于,所述第一光通信装置为汇聚设备,所述第一光通信装置接收来自第一装置的第二传输帧之前,所述方法还包括:The method according to any one of claims 8 to 10, wherein the first optical communication device is a converging device, and before the first optical communication device receives the second transmission frame from the first device, the Methods also include:
    所述第一光通信装置接收来自所述第一装置的带宽请求消息,所述带宽请求消息用于请求获取传输带宽,所述传输带宽用于传输所述第一数据流和所述第二数据流;The first optical communication device receives a bandwidth request message from the first device, where the bandwidth request message is used to request acquisition of a transmission bandwidth, and the transmission bandwidth is used to transmit the first data stream and the second data stream flow;
    所述第一光通信装置向所述第一装置发送带宽分配消息,所述带宽分配消息用于指示所述传输带宽。The first optical communication device sends a bandwidth allocation message to the first device, where the bandwidth allocation message is used to indicate the transmission bandwidth.
  12. 根据权利要求11所述的方法,其特征在于,所述带宽分配消息用于指示所述第一数据流在所述传输带宽中的位置,所述带宽分配消息还用于指示所述第二数据流在所述传输带宽中的位置。The method according to claim 11, wherein the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth, and the bandwidth allocation message is also used to indicate the position of the second data stream The position of the stream within the transmission bandwidth.
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一光通信装置获取所述第二传输帧所承载的第一数据流和第二数据流包括:The method according to claim 11 or 12, wherein the acquiring, by the first optical communication device, the first data stream and the second data stream carried by the second transmission frame comprises:
    所述第一光通信装置根据所述带宽分配消息从所述第二传输帧中获取所述第一数据流和所述第二数据流。The first optical communication device acquires the first data stream and the second data stream from the second transmission frame according to the bandwidth allocation message.
  14. 根据权利要求8至10任一项所述的方法,其特征在于,所述第一光通信装置为终端设备,所述第一光通信装置获取所述第二传输帧所承载的第一数据流和第二数据流之前,所述方法还包括:The method according to any one of claims 8 to 10, wherein the first optical communication device is a terminal device, and the first optical communication device acquires the first data stream carried by the second transmission frame and before the second data stream, the method also includes:
    所述第一光通信装置接收来自所述第一装置的带宽分配消息,所述带宽分配消息用于指示所述第一数据流在传输带宽中的位置,所述带宽分配消息还用于指示所述第二数据流在所述传输带宽中的位置。The first optical communication device receives a bandwidth allocation message from the first device, the bandwidth allocation message is used to indicate the position of the first data stream in the transmission bandwidth, and the bandwidth allocation message is also used to indicate the The position of the second data stream in the transmission bandwidth.
  15. 一种数据流的传输方法,其特征在于,所述方法应用于光通信系统,所述光通信系统包括第一光通信装置,第二光通信装置,第一装置以及第二装置,所述第一光通信装置分别与所述第二光通信装置和所述第一装置连接,所述第一装置与所述第二装置连接,所述方法包括:A data stream transmission method, characterized in that the method is applied to an optical communication system, and the optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device, and the first optical communication device An optical communication device is respectively connected to the second optical communication device and the first device, the first device is connected to the second device, and the method includes:
    所述第一装置获取第一数据流;The first device obtains a first data stream;
    所述第一装置接收来自所述第二装置的第二数据流,所述第二数据流为所述第二装置发送的第一传输帧所承载的至少部分数据流的备份;The first device receives a second data stream from the second device, and the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device;
    所述第一装置向所述第一光通信装置发送第二传输帧,所述第二传输帧用于承载所述第一数据流和所述第二数据流;The first device sends a second transmission frame to the first optical communication device, and the second transmission frame is used to carry the first data stream and the second data stream;
    所述第一光通信装置接收来自所述第一装置的所述第二传输帧,所述第一光通信装置获取所述第二传输帧所承载的所述第一数据流和所述第二数据流;The first optical communication device receives the second transmission frame from the first device, and the first optical communication device acquires the first data stream and the second transmission frame carried by the second transmission frame data flow;
    所述第一光通信装置向所述第二光通信装置发送所述第二数据流。The first optical communication device sends the second data stream to the second optical communication device.
  16. 根据权利要求15所述的方法,其特征在于,所述第二光通信装置与所述第二装置连接,所述第一装置获取第一数据流之后,所述方法还包括:The method according to claim 15, wherein the second optical communication device is connected to the second device, and after the first device acquires the first data stream, the method further comprises:
    所述第一装置向所述第二装置发送第三数据流,所述第三数据流为所述第一数据流的备份;the first device sends a third data stream to the second device, the third data stream being a backup of the first data stream;
    所述第二装置获取第四数据流,所述第二数据流为所述第四数据流的备份;The second device obtains a fourth data stream, and the second data stream is a backup of the fourth data stream;
    所述第二装置向所述第二光通信装置发送所述第一传输帧,所述第一传输帧用于承载所述第三数据流和所述第四数据流;The second device sends the first transmission frame to the second optical communication device, and the first transmission frame is used to carry the third data stream and the fourth data stream;
    所述第二光通信装置接收来自所述第二装置的所述第一传输帧,所述第二光通信装置获取所述第一传输帧所承载的所述第三数据流和所述第四数据流;The second optical communication device receives the first transmission frame from the second device, and the second optical communication device obtains the third data stream and the fourth data stream carried by the first transmission frame. data flow;
    所述第二光通信装置向所述第一光通信装置发送所述第三数据流。The second optical communication device sends the third data stream to the first optical communication device.
  17. 一种装置,其特征在于,所述装置包括:处理器以及收发器,所述处理器和所述收发器通过线路互联;A device, characterized in that the device includes: a processor and a transceiver, and the processor and the transceiver are interconnected through a line;
    所述处理器用于获取第一数据流;The processor is configured to obtain a first data stream;
    所述收发器用于:The transceiver is used for:
    接收来自第二装置的第二数据流,所述第二数据流为所述第二装置发送的第一传输帧所承载的至少部分数据流的备份;receiving a second data stream from a second device, the second data stream being a backup of at least part of the data stream carried by the first transmission frame sent by the second device;
    向光通信装置发送第二传输帧,所述第二传输帧用于承载所述第一数据流和所述第二数据流。sending a second transmission frame to the optical communication device, where the second transmission frame is used to carry the first data stream and the second data stream.
  18. 根据权利要求17所述的装置,其特征在于,所述收发器还用于,向所述第二装置发送第三数据流,所述第三数据流为所述第一数据流的备份。The device according to claim 17, wherein the transceiver is further configured to send a third data stream to the second device, the third data stream being a backup of the first data stream.
  19. 一种光通信装置,其特征在于,所述光通信装置包括:处理器以及收发器,所述处理器和所述收发器通过线路互联;An optical communication device, characterized in that the optical communication device includes: a processor and a transceiver, and the processor and the transceiver are interconnected through a line;
    所述收发器接收来自第一装置的第二传输帧;the transceiver receives a second transmission frame from the first device;
    所述处理器用于获取所述第二传输帧所承载的第一数据流和第二数据流,所述第一数据流来自所述第一装置,所述第二数据流为第二装置发送的第一传输帧所承载的至少部分数据流的备份;The processor is configured to acquire a first data stream and a second data stream carried by the second transmission frame, the first data stream is from the first device, and the second data stream is sent by the second device backup of at least part of the data stream carried by the first transmission frame;
    所述收发器还用于向第二光通信装置发送所述第二数据流。The transceiver is further configured to send the second data stream to a second optical communication device.
  20. 根据权利要求19所述的光通信装置,其特征在于,所述收发器还用于,接收来自所述第二光通信装置的第三数据流,所述第三数据流为所述第一数据流的备份;The optical communication device according to claim 19, wherein the transceiver is further configured to receive a third data stream from the second optical communication device, the third data stream being the first data stream backup;
    所述处理器还用于,处理所述第一数据流或所述第三数据流。The processor is further configured to process the first data stream or the third data stream.
  21. 一种光通信系统,其特征在于,所述光通信系统包括第一光通信装置,第二光通信装置,第一装置和第二装置,其中:An optical communication system, characterized in that the optical communication system includes a first optical communication device, a second optical communication device, a first device and a second device, wherein:
    所述第一光通信装置分别与所述第二光通信装置和所述第一装置连接,所述第一装置与所述第二装置连接;The first optical communication device is respectively connected to the second optical communication device and the first device, and the first device is connected to the second device;
    所述第一装置用于获取第一数据流;The first device is configured to obtain a first data stream;
    所述第一装置用于接收来自所述第二装置的第二数据流,所述第二数据流为所述第二装置发送的第一传输帧所承载的至少部分数据流的备份;The first device is configured to receive a second data stream from the second device, and the second data stream is a backup of at least part of the data stream carried by the first transmission frame sent by the second device;
    所述第一装置用于向所述第一光通信装置发送第二传输帧,所述第二传输帧用于承载所述第一数据流和所述第二数据流;The first device is configured to send a second transmission frame to the first optical communication device, and the second transmission frame is used to carry the first data stream and the second data stream;
    所述第一光通信装置用于接收来自所述第一装置的所述第二传输帧,所述第一光通信装置还用于获取所述第二传输帧所承载的所述第一数据流和所述第二数据流;The first optical communication device is configured to receive the second transmission frame from the first device, and the first optical communication device is also configured to obtain the first data stream carried by the second transmission frame and said second data stream;
    所述第一光通信装置用于向所述第二光通信装置发送所述第二数据流。The first optical communication device is configured to send the second data stream to the second optical communication device.
PCT/CN2023/070247 2022-01-05 2023-01-04 Data stream transmission method, optical communication system, and related apparatus WO2023131138A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210009362.1A CN116456224A (en) 2022-01-05 2022-01-05 Data stream transmission method, optical communication system and related device
CN202210009362.1 2022-01-05

Publications (1)

Publication Number Publication Date
WO2023131138A1 true WO2023131138A1 (en) 2023-07-13

Family

ID=87073208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070247 WO2023131138A1 (en) 2022-01-05 2023-01-04 Data stream transmission method, optical communication system, and related apparatus

Country Status (2)

Country Link
CN (1) CN116456224A (en)
WO (1) WO2023131138A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317368A1 (en) * 2012-11-22 2014-10-23 Huawei Technologies Co., Ltd. Device information backup method, device, and system
US20160277348A1 (en) * 2015-03-20 2016-09-22 Royal Bank Of Canada System and methods for message redundancy
CN107404404A (en) * 2017-07-29 2017-11-28 深圳市盛路物联通讯技术有限公司 A kind of terminal route selection method and internet-of-things terminal based on Internet of Things
CN107465609A (en) * 2017-07-31 2017-12-12 深圳市盛路物联通讯技术有限公司 A kind of terminal route selection method and internet-of-things terminal based on Internet of Things
WO2020001204A1 (en) * 2018-06-28 2020-01-02 中兴通讯股份有限公司 Link backup method and device, and computer readable storage medium
WO2021244500A1 (en) * 2020-05-30 2021-12-09 华为技术有限公司 Backup state determination method, apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317368A1 (en) * 2012-11-22 2014-10-23 Huawei Technologies Co., Ltd. Device information backup method, device, and system
US20160277348A1 (en) * 2015-03-20 2016-09-22 Royal Bank Of Canada System and methods for message redundancy
CN107404404A (en) * 2017-07-29 2017-11-28 深圳市盛路物联通讯技术有限公司 A kind of terminal route selection method and internet-of-things terminal based on Internet of Things
CN107465609A (en) * 2017-07-31 2017-12-12 深圳市盛路物联通讯技术有限公司 A kind of terminal route selection method and internet-of-things terminal based on Internet of Things
WO2020001204A1 (en) * 2018-06-28 2020-01-02 中兴通讯股份有限公司 Link backup method and device, and computer readable storage medium
WO2021244500A1 (en) * 2020-05-30 2021-12-09 华为技术有限公司 Backup state determination method, apparatus and system

Also Published As

Publication number Publication date
CN116456224A (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US8885652B2 (en) Hybrid orthogonal frequency division multiplexing time domain multiplexing passive optical network
CN107104832B (en) Method and equipment for automatically discovering cross-node service topology on transoceanic multiplexing section ring network
US11309967B2 (en) Communications network and related device
US20160080842A1 (en) Data transmission method, apparatus, and system
WO2019114544A1 (en) Data transport method, device and system
Bonk et al. New use cases for PONs beyond residential services
US10972309B2 (en) Method and device for automatically discovering cross-node service topology on transoceanic multiple section shared protection ring
WO2023131138A1 (en) Data stream transmission method, optical communication system, and related apparatus
US8897242B2 (en) Method and system for configuring enhanced dedicated channel transmission bearer mode
WO2022001540A1 (en) Configuration method and apparatus, binding method and apparatus, and device, sending node, receiving node and medium
US20210234729A1 (en) Methods, systems, and devices for steering packets across multiple access technologies
JP4964105B2 (en) Communication system and media converter
WO2022242171A1 (en) Processing apparatus, optical communication system and method, processing chip, and storage medium
WO2024045815A1 (en) Registration method, related device and optical communication system
CN220798284U (en) Multi-multiplexing quantum classical fusion network system
EP3258649A1 (en) Signal processing method and apparatus, and passive optical fibre concentrator
RU2809182C1 (en) Service data transmission method, corresponding device and digital processing chip
WO2022222620A1 (en) Communication method and apparatus and optical bus network
WO2023005378A1 (en) Method for processing cascaded onts, and apparatus and system
WO2024078104A1 (en) Communication system and related device
WO2019205136A1 (en) Message processing method and device
CN114629851A (en) Service message sending method and equipment
久野大介 Studies on Bandwidth Allocation Scheme in Time
CN117676391A (en) Data transmission method, related equipment and system
CN115842974A (en) Message transmission method and related equipment

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

Country of ref document: EP

Kind code of ref document: A1