A method of transmitting a data stream, an optical communication system and related apparatus

By sharing hardware and bandwidth resources in optical communication systems, the problem of idle backup transmission path resources is solved, enabling more efficient data stream transmission and backup, and reducing costs.

CN116456224BActive Publication Date: 2026-11-20HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210009362.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-05
Publication Date
2026-11-20
Estimated Expiration
2042-01-05

AI Technical Summary

Technical Problem

In optical communication systems, the bandwidth and hardware resources of backup transmission paths are idle when the primary transmission path is functioning normally, resulting in low resource utilization.

Method used

By utilizing the same hardware resources to transmit backup data streams when the primary transmission path fails, and negotiating bandwidth resources between optical communication devices, the primary and backup transmission paths can share the same link, thus achieving mutual backup of data streams.

Benefits of technology

It improves the utilization rate of hardware and bandwidth resources, reduces backup costs, and enables mutual backup between terminal devices, thereby improving data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116456224B_ABST
    Figure CN116456224B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a data stream transmission method, an optical communication system and related devices. The method is used for improving the utilization of bandwidth resources and hardware resources in the process of backup data transmission. The method comprises the following steps: first, a first device acquires a first data stream. Second, the first device receives a second data stream from a second device. The second data stream is a backup of at least part of the data stream carried by a first transmission frame sent by the second device. Third, the first device sends a second transmission frame to an optical communication device. The second transmission frame is used for carrying the first data stream and the second data stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical communication technology, and in particular to a data stream transmission method, an optical communication system, and related devices. Background Technology

[0002] In an optical communication system, a convergence device connects multiple terminal devices. Between the convergence device and the terminal devices, there are primary and backup transmission paths. The primary and backup transmission paths transmit the same data. When the primary transmission path is functioning normally, the convergence device and terminal devices process data from the primary transmission path. However, if the primary transmission path fails, the convergence device and terminal devices process data from the backup transmission path.

[0003] The backup transmission path is used solely to back up data transmitted by the primary transmission path. The backup transmission path consumes independent bandwidth and hardware resources. When the primary transmission path is functioning normally, the bandwidth and hardware resources used by the backup transmission path are idle. Therefore, this approach is wasteful and results in low utilization of bandwidth and hardware resources. Summary of the Invention

[0004] This application provides a data stream transmission method, an optical communication system, and related apparatus. These are used to improve the utilization rate of bandwidth and hardware resources during backup data transmission.

[0005] A first aspect of the present invention provides a method for transmitting a data stream. The method includes: first, a first device acquiring a first data stream; second, the first device receiving a second data stream from a second device. The second data stream is a backup of at least a portion of the data stream carried by a first transmission frame sent by the second device; and third, the first device sending a second transmission frame to an optical communication device. The second transmission frame is used to carry both the first and second data streams.

[0006] As shown in this aspect, the hardware resources for transmitting the second data stream used for backup are multiplexed with the hardware resources for transmitting the first data stream. This improves the utilization rate of the hardware resources of the first device. Furthermore, the link between the first device and the first optical communication device is used not only for transmitting the second data stream used for backup, but also for transmitting the first data stream. This improves the utilization rate of bandwidth resources.

[0007] Based on the first aspect, in one optional implementation, after the first device acquires the first data stream, the method further includes: the first device sending a third data stream to the second device. The third data stream is a backup of the first data stream. This implementation enables mutual backup between the first device and the second device, improving backup efficiency.

[0008] Based on the first aspect, in one optional implementation, before the first device sends the third data stream to the second device, the method further includes: the first device acquiring multiple data streams. The first device determines a first data stream from the multiple data streams based on a backup identifier. The first device copies the first data stream to obtain the third data stream. In this implementation, the first device can back up a portion of the data streams from the multiple data streams based on the backup identifier, effectively improving the backup efficiency.

[0009] Based on the first aspect, in one optional implementation, before the first device receives the second data stream from the second device, the method further includes: the first device establishing a connection with the second device; the first device sending a first negotiation message to the second device through the connection; and the first device receiving a second negotiation message from the second device through the connection. The first and second negotiation messages are used to negotiate the transmission of data streams between the first and second devices through the connection. The data streams are used for backup. In this implementation, based on the connection, the first and second devices can interact with the data streams used for backup to achieve data stream backup.

[0010] Based on the first aspect, in one optional implementation, 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 sending a bandwidth request message to the optical communication device. The bandwidth request message is used to request access to transmission bandwidth. 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. The bandwidth allocation message is used to indicate the transmission bandwidth. In this implementation, the first device can send the second transmission frame according to the bandwidth allocation message from the optical communication device. This effectively ensures that the first device successfully sends the second data stream for backup to the optical communication device.

[0011] Based on the first aspect, in one optional implementation, the bandwidth allocation message is used to indicate the position of the first data stream within the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream within the transmission bandwidth. This ensures that the optical communication device can accurately distinguish between the first and second data streams within the second transmission frame.

[0012] Based on the first aspect, in one optional implementation, the first device is a aggregation device. The first device sends a bandwidth allocation message to the optical communication device. The bandwidth allocation message indicates the position of the first data stream within the transmission bandwidth. The bandwidth allocation message also indicates the position of the second data stream within the transmission bandwidth. This implementation effectively ensures that the first device successfully sends the second data stream for backup to the optical communication device.

[0013] A second aspect of this invention provides a method for transmitting a data stream. The method includes: firstly, a first optical communication device receiving a second transmission frame from the first device. The first optical communication device acquires a first data stream and a second data stream carried by the second transmission frame. The first data stream originates from the first device. The second data stream is a backup of at least a portion of the data stream carried by the first transmission frame sent by the second device. The first optical communication device then transmits the second data stream to the second optical communication device. For a description of the relevant execution flow and beneficial effects of this aspect, please refer to the first aspect; specific details will not be repeated here.

[0014] Based on the second aspect, in an optional implementation, the method further includes: a first optical communication device receiving a third data stream from a second optical communication device. The third data stream is a backup of the first data stream. The first optical communication device processes either the first data stream or the third data stream.

[0015] Based on the second aspect, in one optional implementation, the first optical communication device processes the first data stream or the third data stream by: the first optical communication device acquiring a first bit error rate (BER) of the first data stream; the first optical communication device acquiring a second BER of the third data stream; if the first BER is greater than the second BER, the first optical communication device processes the third data stream; if the first BER is less than or equal to the second BER, the first optical communication device processes the first data stream. In this implementation, the first optical communication device determines the data stream to be processed based on the BER, thereby improving the success rate of acquiring the services carried by the processor.

[0016] Based on the second aspect, in one optional implementation, the first optical communication device is a aggregation 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 receiving a bandwidth request message from the first device. The bandwidth request message is used to request access to transmission bandwidth. The transmission bandwidth is used to transmit the first data stream and the second data stream. 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.

[0017] Based on the second aspect, in one optional implementation, the bandwidth allocation message is used to indicate the position of the first data stream within the transmission bandwidth. The bandwidth allocation message is also used to indicate the position of the second data stream within the transmission bandwidth.

[0018] Based on the second aspect, in one optional implementation, the first optical communication device acquiring the first data stream and the second data stream carried by the second transmission frame includes: the first optical communication device acquiring the first data stream and the second data stream from the second transmission frame according to the bandwidth allocation message.

[0019] Based on the second aspect, in one optional implementation, 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 receiving a bandwidth allocation message from itself. 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.

[0020] A third aspect of this invention provides a method for transmitting a data stream. This method is applied to 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. The first optical communication device is connected to both the second optical communication device and the first device. The first device is connected to the second device. For an explanation of the data stream transmission method performed by the optical communication system shown in this aspect, as well as its beneficial effects, please refer to the first and second aspects.

[0021] A fourth aspect of this invention provides an apparatus. The apparatus includes a processor and a transceiver. The processor and transceiver are interconnected via a line. The processor is configured to acquire a first data stream. The transceiver is configured to receive a second data stream from a second device. The second data stream is a backup of at least a portion of the data stream carried by a first transmission frame sent by the second device. The transceiver is further configured to send a second transmission frame to an optical communication device. The second transmission frame carries both the first and second data streams. For a description of the data stream transmission method performed by the apparatus shown in this aspect and its beneficial effects, please refer to the first aspect; specific details will not be repeated here.

[0022] A fifth aspect of this invention provides an optical communication device. The optical communication device includes a processor and a transceiver. The processor and transceiver are interconnected via a line. The transceiver receives a second transmission frame from a first device. The processor is used to acquire a first data stream and a second data stream carried by the second transmission frame. The first data stream originates from the first device. The second data stream is a backup of at least a portion 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 a second optical communication device. The optical communication device shown in this aspect is used to perform a data stream transmission method. For a detailed explanation of the execution process and beneficial effects, please refer to the first aspect; further details are omitted here.

[0023] A sixth aspect of this 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. For an explanation of the execution process and beneficial effects of the data stream transmission method of the optical communication system shown in this aspect, please refer to the third aspect. Attached Figure Description

[0024] Figure 1This is a structural example diagram of the optical communication system provided in this application;

[0025] Figure 2 This is a structural example diagram of the first optical communication system provided in the embodiments of this application;

[0026] Figure 3 A flowchart illustrating the execution steps of the first data stream transmission method provided in this application embodiment;

[0027] Figure 4 A flowchart illustrating the execution steps of the second data stream transmission method provided in this application embodiment;

[0028] Figure 5 This is a structural example diagram of the second optical communication system provided in the embodiments of this application;

[0029] Figure 6 A flowchart illustrating the execution steps of the third data stream transmission method provided in this application embodiment;

[0030] Figure 7 A flowchart illustrating the execution steps of the fourth data stream transmission method provided in this application embodiment;

[0031] Figure 8 This is a structural example diagram of a communication device provided in an embodiment of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0033] Figure 1 This is a structural example diagram of the optical communication system provided in this application. The optical communication system includes at least one aggregation device. Figure 1 The illustration uses an optical communication system comprising two aggregation devices as an example. This optical communication system also includes multiple terminal devices. Taking a passive optical network (PON) as an example, aggregation devices 101 and 102 are optical line terminals (OLTs). Terminal device 130 is an optical network unit (ONU). Figure 1The aggregation device 101 shown is connected to at least one terminal device 130 via an optical distribution network (ODN) 111. Aggregation device 102 is connected to at least one terminal device 130 via ODN 112. It should be noted that, taking aggregation device 101 as an example, the direction of optical signal transmission from aggregation device 101 to terminal device 130 is called the downlink direction. The direction of optical signal transmission from terminal device 130 to aggregation device 101 is called the uplink direction.

[0034] Figure 1 The illustration uses an ODN connection between the aggregation device and the terminal devices as an example. When the optical communication system is of other network types, the aggregation device and the terminal devices can be directly connected or connected through a point-to-multipoint splitter or another aggregation device; the specific connection is not limited. This application does not limit the specific type of optical communication system. It is sufficient that the aggregation device 101 can interact with multiple terminal devices 130. For example, in other examples, the network type of the optical communication system could also be an industrial optical network, a data center network, a wavelength division multiplexing network, or an optical transport network (OTN), etc.

[0035] based on Figure 1 The optical communication system shown in this application provides a method for a terminal device to send an uplink data stream to an aggregation device. Firstly, in conjunction with... Figure 2 The diagram illustrates the various execution entities involved in this embodiment. Among them, Figure 2 This is a structural example diagram of a first optical communication system provided in an embodiment of this application. Figure 2 The first optical communication device 201 and the second optical communication device 202 shown can be either of the following examples.

[0036] Example 1, the first optical communication device 201 and the second optical communication device 202 can be Figure 1 The two shown are different aggregation devices. In this example, the first optical communication device 201 and the second optical communication device 202 can be connected via a network cable or wirelessly. Example 2: The first optical communication device 201 and the second optical communication device 202 can also be... Figure 1 The example shows two different circuit boards within the same aggregation device. In this example, the first optical communication device 201 and the second optical communication device 202 can be connected via traces on the two circuit boards. In Example 3, the first optical communication device 201 and the second optical communication device 202 can be on the same circuit board within the same aggregation device. The first optical communication device 201 and the second optical communication device 202 on the same circuit board interact with the terminal device based on different optical transmission channels. The first optical communication device 201 and the second optical communication device 202 can be connected via traces on this circuit board.

[0037] Figure 2 The first device 203 and the second device 204 shown can be Figure 1 The two devices shown can be different terminal devices, two different circuit boards within the same terminal device, or the same circuit board within the same terminal device. For detailed explanations, please refer to the descriptions of the first optical communication device 201 and the second optical communication device 202; further details will not be elaborated here.

[0038] Figure 3 This is a flowchart illustrating the execution steps of a first data stream transmission method provided in an embodiment of this application. Figure 3 For descriptions of the various implementing entities shown, please refer to [link / reference]. Figure 2 As shown, details will not be elaborated further. In this embodiment, the first optical communication device and the second optical communication device are two different aggregation devices.

[0039] Step 301: The first device and the second device establish a first connection.

[0040] To achieve uplink data backup, a first connection needs to be established between the first device and the second device. This first connection is an electrical channel connecting the first and second devices. This electrical channel is used to transmit electrical signals between the first and second devices. For example, the first connection can be a network cable connecting the first and second devices. Alternatively, the first connection can be a wireless channel connecting the wireless modules of the first and second devices. This wireless channel can be based on technologies such as Wi-Fi, Bluetooth, Narrowband Internet of Things (NB-IoT), Zigbee, Ultra Wide Bandwidth (UWB), Radio Frequency Identification (RFID), or Near Field Communication (NFC).

[0041] If the first connection is a network cable connecting the first device and the second device, then the first device can send probe information to the network cable. The probe information is transmitted to the second device via the network cable. The second device sends a response message to the first device based on the probe information. The first device determines that the first device and the second device are connected via the network cable based on the response message.

[0042] Step 302: The first device sends a first negotiation message to the second device through the first connection.

[0043] Step 303: The second device sends a second negotiation message to the first device through the first connection.

[0044] This embodiment does not limit the execution timing between steps 302-303. The first device and the second device negotiate the backup of the uplink data stream sent by the first device for the second device through interactive 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 addresses of the first device, the second device, the first optical communication device, and the second optical communication device are all Media Access Control (MAC) addresses. The first backup bandwidth is the bandwidth of the uplink data stream from the second device that needs to be backed up. Optionally, if the second device determines that the uplink data stream from the network node is the 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.

[0045] If the second device successfully sends a second negotiation message to the first device and receives a first negotiation message from the first device, the second device determines that the first device is capable of backing up the uplink data stream sent by the second device. If the first device successfully sends a first negotiation message to the second device and receives a second negotiation message from the second device, the first device determines that the first device is capable of backing up the uplink data stream sent by the second device.

[0046] Steps 301-303 shown in this embodiment are optional and not limited. In other examples, the first device and the second device may also determine, according to the instructions of the network management device, that the first device can back up the uplink data stream sent by the second device.

[0047] Step 304: The first device sends a first bandwidth request message to the first optical communication device.

[0048] 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 uplink data stream is the 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 a second uplink transmission frame from the first device. The second uplink transmission frame is used to carry the first uplink data stream and the uplink data stream from the second device that needs to be backed up.

[0049] Step 305: The second device sends a second bandwidth request message to the second optical communication device.

[0050] 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 uplink data stream sent by the first device to the first optical communication device. This second bandwidth request message is used to request a second transmission bandwidth. This second transmission bandwidth is used to transmit the first uplink transmission frame from the second device.

[0051] Step 306: The first optical communication device sends a first bandwidth allocation message to the first device.

[0052] Step 307: The second optical communication device sends a second bandwidth allocation message to the second device.

[0053] A first optical communication device and a second optical communication device negotiate whether the first device is allowed to back up the uplink data stream sent by the second device. For example, the first optical communication device determines that its bandwidth resources can be allocated to the second uplink data stream based on the first backup bandwidth carried in the first bandwidth request message. 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 indication message to the first optical communication device. This second backup indication message indicates that the first device is allowed to back up the uplink data stream sent by the second device. The first and second optical communication devices determine whether the first device is allowed to back up the uplink data stream sent by the second device based on the first backup indication message and the second backup indication message, respectively.

[0054] A first bandwidth allocation message indicates a first transmission bandwidth. The first device transmits a second uplink transmission frame to the first optical communication device via this first transmission bandwidth. A second bandwidth allocation message indicates a second transmission bandwidth. The second device transmits a first uplink transmission frame to the second optical communication device via this second transmission bandwidth. The first and second bandwidth allocation messages also respectively indicate that the first device is permitted to back up the uplink data stream transmitted by the second device.

[0055] 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.

[0056] Step 308: The first device acquires the first uplink data stream.

[0057] The first device receives a first uplink data stream from a network node. This network node can be a switch, router, broadband remote access server (BRAS), broadband network gateway (BNG), or Internet Protocol (IP) node, etc., and is not specifically limited thereto. The first device is capable of transmitting this first uplink data stream to a first optical communication device.

[0058] Step 309: The second device acquires the fourth uplink data stream.

[0059] The second device determines the fourth uplink data stream that needs to be backed up. Specifically, the second device receives N uplink data streams. The second device determines that each of the N uplink data streams is an uplink data stream that needs to be backed up. For example, the second device can determine that the fourth uplink data stream is a high-priority data stream among the N uplink data streams. N is any positive integer greater than 1. Specifically, the second device determines the fourth uplink data stream from the N uplink data streams based on a backup identifier. For example, the second device determines that the uplink data stream carrying the backup identifier among the N uplink data streams is the high-priority fourth uplink data stream. The high-priority fourth uplink data stream can be an uplink data stream with a bit error rate below a threshold. For example, the high-priority fourth uplink data stream can also be an uplink data stream carrying services that cannot be retransmitted, etc., which is not limited in this embodiment. For example, the backup identifier can also be the port number of the second device. The second device determines that the data stream input from the port with the backup identifier is the fourth uplink data stream that needs to be backed up.

[0060] Step 310: The second device sends a second uplink data stream to the first device.

[0061] The second device determines, based on a second bandwidth allocation message from the second optical communication device, that the first device is capable of backing up the fourth uplink data stream for the second device. Therefore, after obtaining 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 then send the second uplink data stream to the first device based on the established first connection.

[0062] The second uplink data stream sent by the second device to the first device can be one of the following possibilities: Possibility 1: The second device determines a fourth uplink data stream from N uplink data streams. 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 an 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 method, 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 an encoded fourth uplink data stream. Then, the second device maps the encoded fourth uplink data stream into a second uplink transmission frame. For example... Figure 2 As shown, the second device maps the encoded fourth uplink data stream into the first uplink transmission frame 222. The second device copies the first uplink transmission frame 222 to obtain the second uplink transmission frame 212. It can be seen that in this method, the first device receives the second uplink transmission frame 212 which already carries the second uplink data stream. 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.

[0063] Step 311: The second device sends the first uplink transmission frame to the second optical communication device.

[0064] 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 carries the fourth and fifth uplink data streams. The fifth uplink data stream is a data stream that does not require backup. The frame type of the first uplink transmission frame can be a GPON encapsulation mode (GEM) frame with gigabit capability or a 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.

[0065] The second bandwidth allocation message sent by the second optical communication device to the second device can 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 stream in the second transmission bandwidth.

[0066] For example, the second bandwidth allocation message is used to indicate a first timeslot and a second timeslot. The first timeslot is the timeslot occupied in the second transmission bandwidth by the first uplink transmission frame carrying the fourth uplink data stream. The second timeslot is the timeslot occupied in the second transmission bandwidth by the first uplink transmission frame carrying the fifth uplink data stream. As another example, the second bandwidth allocation message is used to indicate a first frequency band and a second frequency band. The first frequency band is the frequency band occupied in the second transmission bandwidth by the first uplink transmission frame carrying the fourth uplink data stream. The second frequency band is the frequency band occupied in the second transmission bandwidth by the first uplink transmission frame carrying the fifth uplink data stream. As another example, the second bandwidth allocation message is used to indicate a first frame number and a second frame number. The first frame number is the frame number of the first uplink transmission frame carrying the fourth uplink data stream among multiple 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 multiple first uplink transmission frames. As yet another example, the second bandwidth allocation message is used to indicate a first codeword and a second codeword. The first codeword is the codeword occupied by the first uplink transmission frame used to carry the fourth uplink data stream in the second transmission bandwidth. The second codeword is the codeword occupied by the first uplink transmission frame used to carry the fifth uplink data stream in the second transmission bandwidth.

[0067] Combination Figure 2 In the example shown, 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 a fourth uplink data stream and a first uplink transmission frame 222 for carrying a fifth uplink data stream. Figure 2 The example shown illustrates a sequence where multiple first uplink transmission frames 221 and multiple first uplink transmission frames 222 are consecutively positioned. In other examples, the positions of the first uplink transmission frames 221 and 222 can be alternated; no specific limitation is imposed.

[0068] Step 312: The first device sends a second uplink transmission frame to the first optical communication device.

[0069] 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. This second uplink transmission frame is used to carry the first uplink data stream and the second uplink data stream. (Combined with...) Figure 2 In the example shown, 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 stream and a second uplink transmission frame 212 for carrying the second uplink data stream. For a 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; further details will not be repeated here.

[0070] The first device acquires a second uplink transmission frame 211 for carrying the first uplink data stream. The first device can sequentially encode, frame, and perform electro-optical conversion on the first uplink data stream. For an explanation of encoding and framing the first uplink data stream, please refer to the explanation of encoding and framing the fourth uplink data stream shown in step 310, which will not be repeated here.

[0071] Step 313: The first optical communication device sends a second uplink data stream to the second optical communication device.

[0072] The first optical communication device shown in this embodiment can obtain the address of the second optical communication device through a first bandwidth request message from the first device. The first optical communication device then sends the second uplink data stream to the second optical communication device based on the address of the second optical communication device. Combined with... Figure 2 As shown, the first optical communication device identifies a second uplink transmission frame 211 carrying a first uplink data stream within the first transmission bandwidth based on a first bandwidth allocation message. The first optical communication device can also identify a second uplink transmission frame 212 carrying a second uplink data stream within the first transmission bandwidth based on the first bandwidth allocation message.

[0073] The first optical communication device is capable of processing a second uplink transmission frame carrying a first uplink data stream to obtain the service carried by the first uplink data stream. For example... Figure 2 As shown, the first optical communication device sequentially performs photoelectric conversion, decapsulation, and decoding on the second uplink transmission frame 211 to obtain the service carried by the first uplink data stream. The first optical communication device sequentially performs photoelectric conversion, decapsulation, and decoding 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 this example uses the first optical communication device sending the decoded second uplink data stream to the second optical communication device. 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; the specific method is not limited.

[0074] The first optical communication device sends a second uplink data stream to the second optical communication device through the established second connection. In this embodiment, the second connection is an electrical domain channel connecting the first and second optical communication devices. For an explanation of how the first and second optical communication devices create the second connection, please refer to the explanation of creating the first connection between the first and second devices in step 301; details will not be repeated here. This embodiment uses the example of the first optical communication device sending the second uplink data stream to the second optical communication device based on the electrical domain channel for illustrative purposes. In other examples, the first optical communication device identifies a second uplink transmission frame that already carries the second uplink data stream. The first optical communication device directly sends the second uplink transmission frame, which is 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 to obtain the second uplink data stream.

[0075] Step 314: The second optical communication device processes the uplink data stream of the first target.

[0076] In this embodiment, the first target uplink data stream is either the second uplink data stream or the fourth uplink data stream. The second optical communication device obtains the fourth uplink data stream based on the received first uplink transmission frame. For the process of the second optical communication device obtaining the fourth uplink data stream, please refer to step 313, which describes the process of the first optical communication device obtaining the first uplink data stream; details will not be repeated here. The following describes several possible scenarios for the second optical communication device to determine the first target uplink data stream.

[0077] In scenario 1, 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 uplink data stream from the first device cannot be successfully transmitted to the second optical communication device via the first optical communication device. Furthermore, the optical path between the second device and the second optical communication device is normal. Therefore, the fourth uplink data stream from the second device can be successfully transmitted to the second optical communication device. If the second optical communication device has successfully received the fourth uplink data stream but not the second uplink data stream, the second optical communication device determines that the first target uplink data stream is the second uplink data stream. The second optical communication device processes the second uplink data stream to obtain the service carried by the second uplink data stream.

[0078] Scenario 2: In this scenario, the optical path between the second device and the second optical communication device fails. Therefore, the fourth uplink data stream from the second device cannot be successfully transmitted to the second optical communication device. In this scenario, the optical path between the first device and the first optical communication device is normal, and the second connection between the first and second optical communication devices is also normal. Therefore, the second uplink data stream from the first device can be successfully transmitted to the second optical communication device via the first optical communication device. If the second optical communication device successfully receives the second uplink data stream but does not receive the fourth uplink data stream, the second optical communication device determines that the first target uplink data stream is the fourth uplink data stream. The second optical communication device processes the fourth uplink data stream to obtain the service carried by the fourth uplink data stream.

[0079] Scenario 3: In this scenario, the second optical communication device has successfully received both the fourth and second uplink data streams. The second optical communication device selects one of the four uplink data streams or the second uplink data stream for processing to obtain the service. For example, the second optical communication device defaults to processing the fourth uplink data stream from the second device. Alternatively, the second optical communication device can obtain a third bit error rate and a 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 bit error rate is greater than the fourth bit error rate, the second optical communication device determines that the first target uplink data stream is the second uplink data stream. If the third bit error rate is less than or equal to the fourth bit error rate, the second optical communication device determines that the first target uplink data stream is the fourth uplink data stream.

[0080] This embodiment illustrates an example where a second uplink data stream for backup is sent to only one first device. In other examples, the second device may send the second uplink data stream to multiple different first devices. For details on the backup process implemented by each first device, please refer to [link to example]. Figure 3 The corresponding implementation examples are not described in detail here.

[0081] Using the method shown in this embodiment, at least one second uplink transmission frame sent by the first device includes a first uplink data stream that the first device itself needs to transmit, and a second uplink data stream from the second device. Hardware resources (e.g., encoders, lasers, or processors) used for sending the backup second uplink data stream are multiplexed from the hardware resources used for sending the first uplink data stream. That is, the hardware resources used for sending the first uplink data stream and the hardware resources used for sending the second uplink data stream are the same. No separate hardware resources are allocated for sending the backup second uplink data stream. This improves the utilization rate of the hardware resources of the first device.

[0082] Because the first device does not require dedicated hardware resources for sending the second uplink data stream, the backup process requires minimal modifications to the existing network, thus reducing backup costs.

[0083] Furthermore, the link between the first device and the first optical communication device is not only used to transmit the second uplink data stream for backup, but also for transmitting the first uplink data stream. Because there is no need to configure dedicated bandwidth resources solely for transmitting the second uplink data stream, bandwidth waste is avoided, and bandwidth utilization is improved.

[0084] The method provided in this application can also achieve mutual backup on the terminal device side. Here, mutual backup on the terminal device side refers to the first device backing up the uplink data stream sent by the second device, and the second device backing up the uplink data stream sent by the first device. The following is combined with... Figure 4 The diagram illustrates the mutual backup on the terminal side. Figure 4 For descriptions of the various implementing entities shown, please refer to [link / reference]. Figure 2 As shown, details will not be elaborated further. Among them, Figure 4 This is a flowchart illustrating the execution steps of the second data stream transmission method provided in this application embodiment.

[0085] Step 401: The first device and the second device establish a first connection.

[0086] Step 402: The first device sends a first negotiation message to the second device through the first connection.

[0087] Step 403: The second device sends a second negotiation message to the first device through the first connection.

[0088] The first and second negotiation messages shown in this embodiment are used to negotiate the backup of the data stream sent by the first device for the second device. For detailed explanation, please refer to [link to documentation]. Figure 3 The corresponding steps 302-303 are shown below and will not be elaborated upon. The first and second negotiation messages 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 a second backup bandwidth. This second backup bandwidth is the uplink data stream from the first device that needs to be backed up.

[0089] Step 404: The first device sends a first bandwidth request message to the first optical communication device.

[0090] Step 405: The second device sends a second bandwidth request message to the second optical communication device.

[0091] The first bandwidth request message and the second bandwidth request message shown in this embodiment are used to request backup of the uplink data stream sent by the first device to the second device. For detailed explanation, please refer to [link to documentation]. Figure 3The corresponding steps 304-305 are shown and will not be repeated. The first bandwidth request message and the second bandwidth request message shown in this embodiment are also used to request backup of the uplink data stream sent by the first device through the second device. Specifically, the second bandwidth request message also carries a second backup bandwidth.

[0092] Step 406: The first optical communication device sends a first bandwidth allocation message to the first device.

[0093] Step 407: The second optical communication device sends a second bandwidth allocation message to the second device.

[0094] The first optical communication device and the second optical communication device negotiate with each other on whether the first device is allowed to back up the uplink data stream sent by the second device, and whether the second device is allowed to back up the uplink data stream sent by the first device. See [link to negotiation process] for details. Figure 3 The corresponding step 307 is shown below, and will not be elaborated further.

[0095] Step 408: The first device acquires the first uplink data stream.

[0096] For the execution process of step 408, please refer to [link / reference]. Figure 3 The corresponding step 308 is shown below, and will not be elaborated further.

[0097] Step 409: The first device sends a third uplink data stream to the second device.

[0098] The first device determines a first uplink data stream that needs to be backed up. The first device copies the first uplink data stream to obtain a third uplink data stream. It is understood that the third uplink data stream is a backup of the first uplink data stream. The first device sends the third uplink data stream to the second device through a first connection. The process of the first device obtaining the third uplink data stream shown in this embodiment can be found in [reference needed]. Figure 3 The process of the second device acquiring the second uplink data stream, as shown in step 310, will not be described in detail here.

[0099] Step 410: The second device acquires the fourth uplink data stream.

[0100] Step 411: The second device sends a second uplink data stream to the first device.

[0101] For a description of the execution process of steps 410-411, please refer to [link / reference needed]. Figure 3 The corresponding steps 309-310 are shown below, and will not be elaborated further.

[0102] Step 412: The second device sends the first uplink transmission frame to the second optical communication device.

[0103] The first uplink transmission frame sent by the second device to the second optical communication device includes a first uplink transmission frame carrying a fourth uplink data stream and a first uplink transmission frame carrying a fifth uplink data stream. For details, please refer to [link to documentation]. Figure 3 The corresponding step 311 is shown, and will not be elaborated further. The first uplink transmission frame shown in this embodiment is relative to... Figure 3 The difference in the first uplink transmission frame is that the second device also sends a first uplink transmission frame carrying the third uplink data stream to the second optical communication device. For an explanation of the process of the first uplink transmission frame carrying the third uplink data stream, please refer to [link to documentation / reference]. Figure 3 The description of the second uplink transmission frame carrying the second uplink data stream shown in step 312 will not be repeated here.

[0104] Step 413: The first device sends a second uplink transmission frame to the first optical communication device.

[0105] For a description of the execution process of step 413, please refer to [link / reference]. Figure 3 The corresponding step 312 is shown below, and will not be elaborated further.

[0106] Step 414: The first optical communication device sends a second uplink data stream to the second optical communication device.

[0107] Step 415: The second optical communication device processes the uplink data stream of the first target.

[0108] For a description of the execution process of steps 414-415, please refer to [link / reference needed]. Figure 3 The corresponding steps 313-314 are shown, and will not be elaborated further.

[0109] Step 416: The second optical communication device sends a third uplink data stream to the first optical communication device.

[0110] For instructions on how the second optical communication device sends a third uplink data stream to the first optical communication device, please refer to [link to documentation]. Figure 3 The process of the first optical communication device sending the second uplink data stream to the second optical communication device, as shown in step 313, will not be described in detail.

[0111] Step 417: The first optical communication device processes the uplink data stream of the second target.

[0112] The second target uplink data stream is either the first uplink data stream or the third uplink data stream. For a description of the process by which the first optical communication device in this embodiment processes the second target uplink data stream, please refer to [link to documentation]. Figure 3 The description of the second optical communication device processing the uplink data stream of the first target shown in step 314 is not detailed here.

[0113] The method shown in this embodiment utilizes the hardware resources of the first uplink data stream to send a second uplink data stream for backup, eliminating the need to configure separate hardware resources for the second uplink data stream used for backup. Similarly, the method utilizes the hardware resources for sending a fourth uplink data stream to send a third uplink data stream for backup. This effectively improves resource utilization.

[0114] Figure 3 and Figure 4 The corresponding embodiments all describe how uplink data streams from terminal devices are backed up, and how the backed-uplink data streams are sent to the aggregation device. This application also provides a transmission method describing how downlink data streams from the aggregation device are backed up, and how the backed-uplink data streams are sent to the terminal device. The following, in conjunction with... Figure 5 The following describes the various execution processes involved in this embodiment. Among them, Figure 5 This is a structural example diagram of a second optical communication system provided in an embodiment of this application.

[0115] Figure 5 The first optical communication device 502 and the second optical communication device 503 shown are located on the terminal equipment side. See details below. Figure 2 The specific descriptions of the corresponding first and second devices are omitted. The first device 501 and the second device 504 are located on the converging equipment side. For detailed explanations, please refer to [link to relevant documentation]. Figure 2 The specific descriptions of the corresponding first and second optical communication devices are omitted. Figure 6 This is a flowchart illustrating the execution steps of the third data stream transmission method provided in this application embodiment. Figure 6 For descriptions of the various implementing entities shown, please refer to [link / reference]. Figure 5 As shown, the specifics will not be elaborated further.

[0116] Step 601: The first device and the second device establish a first connection.

[0117] Step 602: The first device sends a first negotiation message to the second device through the first connection.

[0118] Step 603: The second device sends a second negotiation message to the first device through the first connection.

[0119] For the execution process of steps 601-603, please refer to [link / reference]. Figure 3 The corresponding steps 301-303 are shown below, and will not be elaborated further.

[0120] Step 604: The first device sends a third bandwidth allocation message to the first optical communication device.

[0121] Step 605: The second device sends a fourth bandwidth allocation message to the second optical communication device.

[0122] The first device and the second device negotiate with each other on whether the first device is allowed to back up the downlink data stream sent by the second device. For details of the negotiation process, please refer to [link to relevant documentation]. Figure 3 The corresponding step 307 is shown below and will not be elaborated further. 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.

[0123] Step 606: The first device acquires the first downlink data stream.

[0124] Step 607: The second device acquires the fourth downlink data stream.

[0125] Step 608: The second device sends a second downlink data stream to the first device.

[0126] As shown in steps 606-608, please refer to [link / reference]. Figure 3 The corresponding steps 308-310 are shown below, and will not be elaborated further.

[0127] Step 609: The second device sends the first downlink transmission frame to the second optical communication device.

[0128] The first uplink transmission frame sent by the second device to the second optical communication device in this embodiment is a first downlink transmission frame that already carries the fourth downlink data stream and a first downlink transmission frame that already carries the fifth downlink data stream. For a description of the fourth and fifth downlink data streams, please refer to... Figure 3 The descriptions of the fourth and fifth uplink data streams shown in step 311 are not detailed here.

[0129] like Figure 5 In the example shown, the first downlink transmission frame sent by the second device 504 to the second optical communication device 503 includes a first downlink transmission frame 521 carrying a fourth downlink data stream and a first downlink transmission frame 522 carrying a fifth downlink data stream. For a description of the first downlink transmission frame 521 and the first downlink transmission frame 522, please refer to... Figure 2 The specific descriptions of the corresponding first downlink transmission frame 221 and first downlink transmission frame 222 are not detailed here.

[0130] Step 610: The first device sends a second downlink transmission frame to the first optical communication device.

[0131] The second downlink transmission frame includes a second downlink transmission frame for carrying the first downlink data stream and a second downlink transmission frame for carrying the second downlink data stream. For example Figure 5As shown, the first device 501 sends a second downlink frame 511 carrying the first downlink data stream and a second downlink transmission frame 512 carrying the second downlink data stream to the first optical communication device 502. For an explanation of the positional relationship between the second downlink transmission frame 511 and the second downlink frame 512, please refer to... Figure 2 The specific location of the second downlink transmission frame 211 and the second downlink transmission frame 212 shown will not be elaborated further.

[0132] Step 611: The first optical communication device sends a second downlink data stream to the second optical communication device.

[0133] The third bandwidth allocation message sent by the first device to the first optical communication device 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 stream in the second downlink transmission frame. Therefore, based on the third bandwidth allocation message from the first device, the first optical communication device can determine the second downlink transmission frame carrying the first downlink data stream and the second downlink transmission frame carrying the second downlink data stream within the second downlink transmission frame. For detailed explanation, please refer to [link to detailed explanation]. Figure 3 Step 311 will not be elaborated upon here.

[0134] Step 612: The second optical communication device processes the downlink data stream of the first target.

[0135] The first target downlink data stream shown in this embodiment is either the second downlink data stream or the fourth downlink data stream. For details, please refer to [link to documentation]. Figure 3 The corresponding step 314 is shown below, and will not be elaborated further.

[0136] This embodiment can be implemented in combination with the above. Figure 3 or Figure 6 The corresponding implementation is to achieve backup of downlink data streams on the aggregation device side and backup of uplink data streams on the terminal device side.

[0137] Using the method shown in this embodiment, the hardware resources for sending the second downlink data stream used for backup are reused from the hardware resources for sending the first downlink data stream. That is, the hardware resources for sending the first downlink data stream and the hardware resources for sending the second downlink data stream are the same. No separate hardware resources are allocated for sending the second downlink data stream used for backup. This improves the utilization rate of the hardware resources of the first device.

[0138] Because the first device does not require dedicated hardware resources for sending the second downlink data stream, the backup process requires minimal modifications to the existing network, thus reducing backup costs.

[0139] Furthermore, the link between the first device and the first optical communication device is not only used to transmit the second downlink data stream for backup, but also for transmitting the first downlink data stream. Because there is no need to configure dedicated bandwidth resources solely for transmitting the second downlink data stream, bandwidth waste is avoided, and bandwidth utilization is improved.

[0140] The method provided in this application can also achieve mutual backup on the aggregation device side. Specifically, mutual backup on the aggregation device side means that the first device backs up the downlink data stream sent by the second device, and the second device backs up the downlink data stream sent by the first device. Figure 7 This is a flowchart illustrating the execution steps of the fourth downlink data stream transmission method provided in this application embodiment. Figure 7 For descriptions of the various implementing entities shown, please refer to [link / reference]. Figure 5 As shown, the specifics will not be elaborated further.

[0141] Step 701: The first device and the second device establish a first connection.

[0142] Step 702: The first device sends a first negotiation message to the second device through the first connection.

[0143] Step 703: The second device sends a second negotiation message to the first device through the first connection.

[0144] Step 704: The first device sends a third bandwidth allocation message to the first optical communication device.

[0145] Step 705: The second device sends a fourth bandwidth allocation message to the second optical communication device.

[0146] Step 706: The first device acquires the first downlink data stream.

[0147] For the execution process of steps 701-706, please refer to [link / reference]. Figure 6 The corresponding steps 601-606 are shown in detail, and will not be elaborated further.

[0148] Step 707: The first device sends a third downlink data stream to the second device.

[0149] The first device determines a first downlink data stream that needs to be backed up. The first device copies the first downlink data stream to obtain a third downlink data stream. It is understood that the third downlink data stream is a backup of the first downlink data stream. The first device sends the third downlink data stream to the second device through a first connection. The process of the first device obtaining the third downlink data stream shown in this embodiment can be found in [reference needed]. Figure 4 The process of the first device acquiring the third downlink data stream, as shown in step 409, will not be described in detail.

[0150] Step 708: The second device acquires the fourth downlink data stream.

[0151] Step 709: The second device sends a second downlink data stream to the first device.

[0152] For a description of the execution process of steps 708-709, please refer to [link / reference needed]. Figure 6 The corresponding steps 607-608 are shown below, and will not be elaborated further.

[0153] Step 710: The second device sends the first downlink transmission frame to the second optical communication device.

[0154] The first downlink transmission frame sent by the second device to the second optical communication device includes a first downlink transmission frame carrying a fourth downlink data stream and a first downlink transmission frame carrying a fifth downlink data stream. For details, please refer to [link to documentation]. Figure 6 The corresponding step 609 is shown below, and will not be elaborated further.

[0155] The first downlink transmission frame shown in this embodiment is relative to Figure 6 The difference in the first downlink transmission frame is that the second device also sends the first downlink transmission frame, which already carries the third downlink data stream, to the second optical communication device. For an explanation of the process of the first downlink transmission frame carrying the third downlink data stream, please refer to [link to documentation / reference]. Figure 6 The description of the second downlink transmission frame carrying the second downlink data stream shown in step 610 is not repeated here.

[0156] Step 711: The first device sends a second downlink transmission frame to the first optical communication device.

[0157] Step 712: The first optical communication device sends a second downlink data stream to the second optical communication device.

[0158] Step 713: The second optical communication device processes the downlink data stream of the first target.

[0159] For a description of the execution process of steps 711-713, please refer to [link / reference needed]. Figure 6 The corresponding steps 610-612 are shown in detail, and will not be elaborated further.

[0160] Step 714: The second optical communication device sends a third downlink data stream to the first optical communication device.

[0161] For instructions on how the second optical communication device sends a third downlink data stream to the first optical communication device, please refer to [link to instructions]. Figure 6 The process of the first optical communication device sending the second downlink data stream to the second optical communication device, as shown in step 611, will not be described in detail.

[0162] Step 715: The first optical communication device processes the downlink data stream of the second target.

[0163] The second target downlink data stream is either the first downlink data stream or the third downlink data stream. For a description of the process by which the first optical communication device in this embodiment processes the second target downlink data stream, please refer to [link to documentation]. Figure 6 The description of the second optical communication device processing the downlink data stream of the first target shown in step 612 is not detailed here.

[0164] The method shown in this embodiment utilizes the hardware resources for sending the first downlink data stream to send the second downlink data stream for backup, eliminating the need to configure separate hardware resources for the second downlink data stream used for backup. Similarly, the method utilizes the hardware resources for sending the fourth downlink data stream to send the third downlink data stream used for backup. This effectively improves hardware resource and bandwidth utilization.

[0165] Figure 8 This is a structural example diagram of a communication device provided in an embodiment of this application. The communication device 800 includes a processor 801, a transceiver 802, and a memory 803. The processor 801 is interconnected with the memory 803 and the transceiver 802 via lines. The processor 801 reads and executes a computer program stored in the memory 803 to perform corresponding processing. The functionality of the processor 801 can be partially or entirely implemented in hardware. The processor 801 can be one or more chips, or one or more integrated circuits. For example, the processor 801 can be one or more field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), system-on-chips (SoCs), central processing units (CPUs), network processors (NPs), digital signal processors (DSPs), microcontroller units (MCUs), programmable logic devices (PLDs), or other integrated chips, or any combination of the above chips or processors. It should be understood that when the processor is implemented in hardware, the memory is an optional component.

[0166] Communication equipment 800 can be used for, for example Figure 3 The first device is shown. If the first device is used to perform... Figure 3 In the corresponding embodiment, processor 801 is used to execute steps 301 and 308. Transceiver 802 is used to execute steps 302, 304, and 312. If the first device is used to execute... Figure 4 In the corresponding embodiment, processor 801 is used to execute steps 401 and 408. Transceiver 802 is used to execute steps 402, 404, 409, and 413. If the first device is used to execute... Figure 6 In the corresponding embodiment, processor 801 is used to execute steps 601 and 606. Transceiver 802 is used to execute steps 602, 604, and 610. If the first device is used to execute... Figure 7 In the corresponding embodiment, the processor 701 is used to execute steps 701 and 706. The transceiver 802 is used to execute steps 703, 704, 707, and 711.

[0167] Communication equipment 800 can be used for, for example Figure 3 The second device is shown. If the second device is used to perform... Figure 3 In the corresponding embodiment, processor 801 is used to execute steps 301 and 309. Transceiver 802 is used to execute steps 303, 305, 310, and 311. If the second device is used to execute... Figure 4 In the corresponding embodiment, processor 801 is used to execute steps 401 and 410. Transceiver 802 is used to execute steps 403, 405, and 412. If the second device is used to execute... Figure 6 In the corresponding embodiment, processor 801 is used to execute steps 601 and 607. Transceiver 802 is used to execute steps 603, 605, and 609. If the second device is used to execute... Figure 7 In the corresponding embodiment, the processor 701 is used to execute steps 701 and 708. The transceiver 802 is used to execute steps 703, 705, and 710.

[0168] Communication equipment 800 can be used for, for example Figure 3 The first optical communication device is shown. If the first optical communication device is used to perform... Figure 3 In the corresponding embodiment, transceiver 802 is used to execute steps 306 and 313. If the first optical communication device is used to execute... Figure 4 In the corresponding embodiment, transceiver 802 is used to execute steps 406 and 414. Processor 801 is used to execute step 417. If the first optical communication device is used to execute... Figure 6 In the corresponding embodiment, transceiver 802 is used to execute step 611. If the first optical communication device is used to execute... Figure 7 In the corresponding embodiment, the transceiver is used to perform step 712, and the processor 801 is used to perform step 715.

[0169] Communication equipment 800 can be used for, for example Figure 3 The second optical communication device is shown. If the second optical communication device is used to perform... Figure 3 In the corresponding embodiment, transceiver 802 is used to execute step 307. Processor 801 is used to execute step 314. If the second optical communication device is used to execute... Figure 4 In the corresponding embodiment, transceiver 802 is used to execute steps 407 and 416. Processor 801 is used to execute step 415. If the second optical communication device is used to execute... Figure 6 In a corresponding embodiment, processor 801 is used to execute step 612. If the second optical communication device is used to execute... Figure 7 In a corresponding embodiment, processor 801 is used to execute step 713. Transceiver 802 is used to execute step 714.

[0170] This application provides an optical communication system. The structure of a first embodiment of this optical communication system can be found [link to previous description]. Figure 2 As shown. This optical communication system is used to perform... Figure 3 or Figure 4 The embodiment shown is illustrated. A second embodiment of this optical communication system is shown in Figure 5. This optical communication system is used to perform… Figure 6 or Figure 7 The example shown.

[0171] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended 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 modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for transmitting a data stream, characterized in that, The method includes: The first device acquires the first data stream; The first device receives a second data stream from the second device. The second data stream is a backup of the fourth data stream carried by the first transmission frame sent by the second device. The fourth data stream is the data stream that the second device needs to back up. The second data stream is the data stream obtained by copying the fourth data stream. The first device sends a second transmission frame to the optical communication device, the second transmission frame being used to carry the first data stream and the second data stream.

2. The method according to claim 1, characterized in that, After the first device acquires the first data stream, the method further includes: 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. The method according to claim 2, characterized in that, 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 plurality of data streams based on the backup identifier; The first device copies the first data stream to obtain the third data stream.

4. The method according to any one of claims 1 to 3, characterized in that, 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 to negotiate the transmission of a data stream between the first device and the second device through the connection. The data stream is used for backup.

5. The method according to any one of claims 1 to 3, characterized in that, 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 the acquisition of transmission bandwidth, which 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, the bandwidth allocation message being used to indicate the transmission bandwidth.

6. The method according to claim 5, characterized in that, 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.

7. The method according to any one of claims 1 to 3, characterized in that, The first device is a convergence 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 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.

8. A method for transmitting a data stream, characterized in that, The method includes: The first optical communication device receives a second transmission frame from the first device. The first optical communication device acquires a first data stream and a second data stream carried by the second transmission frame. The first data stream comes from the first device. The second data stream is a backup of the fourth data stream carried by the first transmission frame sent by the second device. The fourth data stream is the data stream that the second device needs to back up. The second data stream is the data stream obtained by copying the fourth data stream. The first optical communication device sends the second data stream to the second optical communication device.

9. The method according to claim 8, characterized in that, The method further includes: 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. The method according to claim 9, characterized in that, The first optical communication device processes the first data stream or the third data stream including: The first optical communication device acquires the first bit error rate of the first data stream; The first optical communication device acquires the 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. The method according to any one of claims 8 to 10, characterized in that, The first optical communication device is a convergence 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 being used to request a transmission bandwidth, the transmission bandwidth being used to transmit the first data stream and the second data stream; The first optical communication device sends a bandwidth allocation message to the first device, the bandwidth allocation message being used to indicate the transmission bandwidth.

12. The method according to claim 11, characterized in that, 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.

13. The method according to claim 11, characterized in that, The first optical communication device acquires the first data stream and the second data stream carried by the second transmission frame, including: The first optical communication device obtains the first data stream and the second data stream from the second transmission frame according to the bandwidth allocation message.

14. The method according to any one of claims 8 to 10, characterized in that, 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 being used to indicate the position of the first data stream in the transmission bandwidth, and the bandwidth allocation message also being used to indicate the position of the second data stream in the transmission bandwidth.

15. A method for transmitting a data stream, characterized in that, The method is applied to an optical communication system, which includes a first optical communication device, a second optical communication device, a first device, and a second device. The first optical communication device is connected to both the second optical communication device and the first device, and the first device is connected to the second device. The method includes: The first device acquires the first data stream; The first device receives a second data stream from the second device. The second data stream is a backup of the fourth data stream carried by the first transmission frame sent by the second device. The fourth data stream is the data stream that the second device needs to back up. The second data stream is the data stream obtained by copying the fourth data stream. The first device sends a second transmission frame to the first optical communication device, the second transmission frame being 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 data stream carried by the second transmission frame; The first optical communication device sends the second data stream to the second optical communication device.

16. The method according to claim 15, characterized in that, The second optical communication device is connected to the second device. After the first device acquires the first data stream, the method further includes: 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 acquires 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, the first transmission frame being 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 acquires the third data stream and the fourth data stream carried by the first transmission frame; The second optical communication device sends the third data stream to the first optical communication device.

17. An apparatus, characterized in that, The device is used to communicate with an optical communication device, and the device includes: a processor and a transceiver, the processor and the transceiver being interconnected via a line; The processor is used to acquire the first data stream; The transceiver is used for: Receive a second data stream from the second device, the second data stream being a backup of the fourth data stream carried by the first transmission frame sent by the second device; A second transmission frame is sent to the optical communication device. The second transmission frame is used to carry the first data stream and the second data stream. The fourth data stream is the data stream that the second device needs to back up. The second data stream is the data stream obtained by copying the fourth data stream.

18. The apparatus according to claim 17, characterized in that, The transceiver is also 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, wherein the processor and the transceiver are interconnected via a line. The transceiver receives a second transmission frame from the first device; The processor is used to acquire a first data stream and a second data stream carried by the second transmission frame. The first data stream comes from the first device, and the second data stream is a backup of the fourth data stream carried by the first transmission frame sent by the second device. The fourth data stream is the data stream that the second device needs to back up, and the second data stream is the data stream acquired by copying the fourth data stream. The transceiver is also used to send the second data stream to the second optical communication device.

20. The optical communication device according to claim 19, characterized in that, The transceiver is also configured to receive a third data stream from the second optical communication device, the third data stream being a backup of the first data stream; The processor is also 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, and the first device and the second device, wherein: The first optical communication device is connected to the second optical communication device and the first device, respectively; the first device is connected to the second device. The first device is used to acquire the first data stream; The first device is used to receive a second data stream from the second device. The second data stream is a backup of the fourth data stream carried by the first transmission frame sent by the second device. The fourth data stream is the data stream that the second device needs to back up. The second data stream is the data stream obtained by copying the fourth data stream. The first device is used to send a second transmission frame to the first optical communication device, the second transmission frame being used to carry the first data stream and the second data stream; The first optical communication device is used to receive the second transmission frame from the first device, and the first optical communication device is also used to acquire the first data stream and the second data stream carried by the second transmission frame; The first optical communication device is used to send the second data stream to the second optical communication device.

Citation Information

Patent Citations

  • Passive optical network communication method, device and system

    CN109937545A

  • System and methods for message redundancy

    US20160277348A1