Method and apparatus for automatic protection switching in flexible ethernet, storage medium
By copying the target data into two copies in Flexible Ethernet and sending them through a protection channel and a working channel, automatic protection switching for Flexible Ethernet clients is achieved, solving the problem that existing technologies cannot be applied.
Patent Information
- Application Number
- CN202111670380.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing Automatic Protection Switching (APS) technology cannot be applied to flexible Ethernet clients.
In Flexible Ethernet, automatic protection switching is achieved by acquiring target data, copying it into two copies, and sending them to the peer device through the protection channel and the working channel respectively.
It enables automatic protection switching for flexible Ethernet clients, solving the problem that APS technology cannot be applied.
Smart Images

Figure CN116418463B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to an automatic protection switching method and device in a flexible Ethernet, and a storage medium. BACKGROUND
[0002] Currently, the flexible Ethernet (FlexE) technology binds one or more 100G, 200G, and 400G Ethernet interfaces defined in the IEEE 802.3 standard, and supports a multi-rate flexible Ethernet client by channelizing processing based on 66B coding as a basic unit.
[0003] However, the existing automatic protection switching (APS) technology is based on a service level and is a kind of redundancy protection for a service, and thus cannot be applied to the flexible Ethernet client.
[0004] There is no effective solution to the technical problem that the APS technology cannot be applied to the flexible Ethernet client in the related art. SUMMARY
[0005] Embodiments of the present application provide an automatic protection switching method and device in a flexible Ethernet, and a storage medium, to at least solve the technical problem that the APS technology cannot be applied to the flexible Ethernet client in the related art.
[0006] According to one embodiment of an embodiment of the present application, an automatic protection switching method in a flexible Ethernet is provided, including: obtaining target data sent by a first chip logical forwarding module on a first device; in a case where a first automatic protection switching module on the first device is in a first sending mode, copying the obtained target data twice to obtain two copies of the target data; and sending the two copies of the target data to a second device through a target protection channel and a target working channel in the flexible Ethernet respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0007] In an example embodiment, the transmitting the two pieces of target data to the second device via the target protection channel and the target working channel in the FlexE respectively comprises: allocating a first time slot to a first piece of the two pieces of target data, and transmitting the first piece of target data to the second device via the target protection channel on the first time slot; allocating a second time slot to a second piece of the two pieces of target data, and transmitting the second piece of target data to the second device via the target working channel on the second time slot.
[0008] In an example embodiment, the transmitting the target data to the second device via the target protection channel or the target working channel comprises: in a case where the first APSM on the first device is in a second transmission mode, transmitting the target data to the second device via the target protection channel or the target working channel.
[0009] In an example embodiment, the transmitting the target data to the second device via the target protection channel or the target working channel comprises: in a case where the state of the first APSM is in a protection state, transmitting the target data to the second device via the target protection channel; in a case where the state of the first APSM is in a working state, transmitting the target data to the second device via the target working channel.
[0010] In an example embodiment, after the transmitting the two pieces of target data to the second device via the target protection channel and the target working channel in the FlexE respectively, the method further comprises: in a case where the second device receives the two pieces of target data transmitted by the first device via the target protection channel and the target working channel, transmitting a piece of the two pieces of target data to a second chip logical forwarding module on the second device according to a state of a second APSM on the second device.
[0011] In an example embodiment, the sending one of the two target data to the second chip logical forwarding module on the second device according to the state of the second automatic protection switching module on the second device comprises: in a case that the state of the second automatic protection switching module is in a protection state, sending a first one of the two target data to the second chip logical forwarding module on the second device, wherein the first one of the target data is one of the target data sent by the first device through the target protection channel and received by the second device; and / or in a case that the state of the second automatic protection switching module is in a working state, sending a second one of the two target data to the second chip logical forwarding module on the second device, wherein the second one of the target data is one of the target data sent by the first device through the target working channel and received by the second device.
[0012] According to another embodiment of the embodiment of the present application, an automatic protection switching method in a flexible Ethernet is provided, comprising: receiving two target data sent by a first device through a target protection channel and a target working channel in a flexible Ethernet FlexE; sending one of the two target data to a second chip logical forwarding module on a second device according to the state of a second automatic protection switching module on the second device; wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by a first chip logical forwarding module on the first device through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to a same service port.
[0013] In one example embodiment, the sending one of the two target data to the second chip logical forwarding module on the second device according to the state of the second automatic protection switching module on the second device comprises: in the case that the state of the second automatic protection switching module is in a protection state, sending a first one of the two target data to the second chip logical forwarding module on the second device, wherein the first one of the target data is one of the target data sent by the first device through the target protection channel and received by the second device; in the case that the state of the second automatic protection switching module is in a working state, sending a second one of the two target data to the second chip logical forwarding module on the second device, wherein the second one of the target data is one of the target data sent by the first device through the target working channel and received by the second device.
[0014] According to another embodiment of the embodiment of the application, an automatic protection switching device in a flexible Ethernet is further provided, comprising: an obtaining module, configured to obtain target data sent by a first chip logical forwarding module on a first device; a duplicating module, configured to duplicate the obtained target data into two target data in the case that a first automatic protection switching module on the first device is in a first sending mode; and a sending module, configured to send the two target data to a second device through a target protection channel and a target working channel in a flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0015] According to another embodiment of the present application, there is also provided an apparatus for automatic protection switching in a flexible Ethernet, comprising: a receiving module configured to receive two copies of target data sent by a first device through a target protection channel and a target working channel in a flexible Ethernet (FlexE); and a sending module configured to send one of the two copies of target data to a second chip logical forwarding module on a second device according to a state of a second automatic protection switching module on the second device; wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by a first chip logical forwarding module on the first device through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to a same service port.
[0016] According to yet another aspect of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the method for automatic protection switching in a flexible Ethernet when executed.
[0017] According to yet another aspect of the present application, there is also provided an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor performs the method for automatic protection switching in a flexible Ethernet through the computer program.
[0018] In the embodiment of the present application, the target data sent by the first chip logical forwarding module on the first device is acquired; in the case that the first automatic protection switching module on the first device is in a first sending mode, the acquired target data is copied twice to obtain two copies of the target data; and the two copies of the target data are sent to the second device through a target protection channel and a target working channel in the flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between the first FlexE protection client on the first device and the second FlexE protection client on the second device, the target working channel is a working channel between the first FlexE working client on the first device and the second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to the same service port, the target data is the data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. By using the above technical scheme, the target data acquired is copied twice and sent to the opposite device through the protection channel and the working channel respectively, so that the automatic protection switching of the flexible Ethernet client is realized, and the technical problem that the APS technology cannot be applied to the flexible Ethernet client is solved. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
[0020] Figure 1 is a schematic diagram of an application scene of an optional automatic protection switching method in a flexible Ethernet according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of an optional automatic protection switching method in a flexible Ethernet according to an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of an optional automatic protection switching method in a flexible Ethernet according to an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of another optional automatic protection switching method in a flexible Ethernet according to an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of another optional automatic protection switching method in a flexible Ethernet according to an embodiment of the present application;
[0025] Figure 6is a schematic diagram of another optional automatic protection switching method in a flexible Ethernet network according to an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of another optional automatic protection switching method in a flexible Ethernet network according to an embodiment of the present application;
[0027] Figure 8 is a flow chart of another optional automatic protection switching method in a flexible Ethernet network according to an embodiment of the present application;
[0028] Figure 9 is a structural block diagram of an optional automatic protection switching device in a flexible Ethernet network according to an embodiment of the present application;
[0029] Figure 10 is a structural block diagram of another optional automatic protection switching device in a flexible Ethernet network according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the personnel in the art without creative labor should belong to the protection scope of the present application.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to the clearly listed steps or units, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0032] In the embodiments of the present application, an embodiment of the above-mentioned automatic protection switching method in a flexible Ethernet network is provided. As an optional implementation, the automatic protection switching method in a flexible Ethernet network can be applied in the application environment as shown in Figure 1 , but is not limited thereto.
[0033] Optionally, in the embodiment, the first device 101 comprises a working client 105 and a protection client 106, wherein the working client 105 and the protection client 106 correspond to the same service port 103; the second device 102 comprises a working client 109 and a protection client 110, wherein the working client 109 and the protection client 110 correspond to the same service port 104; the port 103 and the port 104 can be the same or different; the working client 105 and the working client 109 transmit data through a working channel 107, and the protection client 106 and the protection client 110 transmit data through a protection channel 108.
[0034] Optionally, in the embodiment, the APS based on the FlexE client is not aware of the service, and the FlexE APS technology can be superimposed and deployed without affecting the existing service.
[0035] In the embodiment, an automatic protection switching method in a flexible Ethernet is provided, which is applied to Figure 1 as shown in the application environment, Figure 2 is a flowchart of the automatic protection switching method in the flexible Ethernet according to the embodiment of the application, and the flowchart comprises the following steps:
[0036] In step S202, target data transmitted by a first chip logic forwarding module on a first device is acquired.
[0037] In step S204, in a case where a first automatic protection switching module on the first device is in a first transmission mode, the acquired target data is copied twice to obtain two copies of the target data.
[0038] In step S206, the two copies of the target data are transmitted to a second device through a target protection channel and a target working channel in the flexible Ethernet FlexE, respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to the same service port, the target data is data transmitted by the first chip logic forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0039] Optionally, in the embodiment, the first device is a device for sending data, and the second device is a device for receiving data, and the first device and the second device each comprise a FlexE working client and a FlexE protection client; the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port; the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. The above execution subject can be but is not limited to a first automatic protection switching module on the first device, wherein the first automatic protection switching module can include but is not limited to an APS control module, and the APS control module can include but is not limited to a copying module.
[0040] Optionally, in the embodiment, after the first automatic protection switching module obtains the target data, it is necessary to determine the sending mode in which the first automatic protection switching module is located, wherein the target data is data sent by the first chip logic forwarding module through the same service port on the first device, the sending mode can include but is not limited to a working mode, a protection mode, or a mode of being in the working mode and the protection mode at the same time, the working mode or the protection mode does not need to copy the data, and the mode of being in the working mode and the protection mode at the same time needs to copy the data; and whether the target data needs to be copied is determined according to the sending mode in which the first automatic protection switching module is located; wherein the first sending mode can be but is not limited to the mode of being in the working mode and the protection mode at the same time.
[0041] Optionally, in the embodiment, in the case that it is determined that the first automatic protection switching module is in the first sending mode, i.e., the target data needs to be copied, the obtained target data is copied twice to obtain two target data; the two target data are sent to the second FlexE working client and the second FlexE protection client of the second device through the working channel and the protection channel by the first FlexE working client and the first FlexE protection client, respectively.
[0042] Optionally, in the embodiment, the APS based on the FlexE client is not aware of the service, and the FlexE APS technology can be deployed on the premise of not affecting the existing service.
[0043] For example, as shown in FIG. 1, a FlexE network is deployed in a network, and the FlexE network comprises a first device and a second device. Figure 3As shown, the data sent by the chip logic forwarding module 300 reaches the replication module 302 in the APS via the port 301, and the replication module 302 replicates the received data in the case that the APS is in both the working mode and the protection mode, one copy of the data is transmitted to the logical link layer 305, the working client 307, and the partial physical coding sublayer (PCS) 309 in turn via the working link 303, and the other copy of the data is transmitted to the logical link layer 306, the working client 308, and the partial PCS 310 in turn via the protection link 304, and the partial PCS 309 and the partial PCS 310 send the data to the FlexE pad layer 311 and the partial PCS 312 in turn, and send the data out via the physical medium 313.
[0044] Through the scheme provided by the embodiment of the present application, the target data sent by the first chip logic forwarding module on the first device is acquired; in the case that the first automatic protection switching module on the first device is in the first sending mode, the acquired target data is copied twice to obtain two copies of the target data; and the two copies of the target data are sent to the second device through a target protection channel and a target working channel in the flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between the first FlexE protection client on the first device and the second FlexE protection client on the second device, the target working channel is a working channel between the first FlexE working client on the first device and the second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to the same service port, the target data is data sent by the first chip logic forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. By using the above technical scheme, the automatic protection switching of the flexible Ethernet client is realized by adding the data replication function and the replicated data can be sent to the opposite device through the working channel and the protection channel, and the technical problem that the APS technology cannot be applied to the flexible Ethernet client is solved.
[0045] In one example embodiment, sending the two copies of the target data to the second device through the target protection channel and the target working channel in the flexible Ethernet FlexE respectively includes: allocating a first time slot to a first copy of the two copies of the target data, and sending the first copy to the second device through the target protection channel on the first time slot; and allocating a second time slot to a second copy of the two copies of the target data, and sending the second copy to the second device through the target working channel on the second time slot.
[0046] It should be noted that the FlexE pad layer divides each 100GE PHY in the FlexE group into a data bearing channel of 20 slots, and the bandwidth corresponding to each slot is 5Gbps. Therefore, each data in FlexE is transmitted on the time slot allocated to it.
[0047] Through the scheme provided in the embodiments of the present application, different data is allocated different transmission time slots, which facilitates the receiving end to identify different data, and thus avoids conflicts between data.
[0048] In one example embodiment, the target data is transmitted to the second device through the target protection channel or the target working channel when the first automatic protection switching module on the first device is in the second transmission mode.
[0049] Optionally, the second transmission mode can include but is not limited to a working mode and a protection mode; the target data is transmitted to the second device through the working channel when the first automatic protection switching module is in the working mode; and the target data is transmitted to the second device through the protection channel when the first automatic protection switching module is in the protection mode.
[0050] Through the scheme provided in the embodiments of the present application, different transmission channels are determined according to different transmission modes, thereby realizing automatic protection switching of the flexible Ethernet client.
[0051] In one example embodiment, transmitting the target data to the second device through the target protection channel or the target working channel includes: transmitting the target data to the second device through the target protection channel when the state of the first automatic protection switching module is in a protection state; and transmitting the target data to the second device through the target working channel when the state of the first automatic protection switching module is in a working state.
[0052] Optionally, in the present embodiment, the protection state can include but is not limited to a working state of a protection link; and the working state can include but is not limited to a working state of a working link.
[0053] For example, as shown in FIG. 4, the first automatic protection switching module is in a working state, and after the chip logic forwarding module 400 transmits data via the port 401, the data is transmitted to the opposite device via the working link 403 by the copying module 402, without transmitting the data via the protection link 404. Figure 4
[0054] As shown in FIG. 4, the first automatic protection switching module is in a working state, and after the chip logic forwarding module 400 transmits data via the port 401, the data is transmitted to the opposite device via the working link 403 by the copying module 402, without transmitting the data via the protection link 404. Figure 5 As shown, the first automatic protection switching module is in a protection state, after receiving the data sent by the chip logic forwarding module 500 via the port 501, the copy module 502 sends the data to the opposite device via the protection link 504, without sending the data via the working link 503.
[0055] Through the scheme provided by the embodiment of the present application, different transmission channels are determined according to different transmission modes, so that automatic protection switching of the flexible Ethernet client is realized.
[0056] In one example embodiment, after sending the two target data to the second device through the target protection channel and the target working channel in the flexible Ethernet FlexE respectively, the method further comprises: in the case that the second device receives the two target data sent by the first device through the target protection channel and the target working channel, according to the state of the second automatic protection switching module on the second device, sending one of the two target data to the second chip logic forwarding module on the second device.
[0057] Optionally, in the present embodiment, the second automatic protection switching module can include but is not limited to an APS control module, and the APS control module can include but is not limited to a selection module; the state of the second automatic protection switching module can include but is not limited to a working state and a protection state.
[0058] Through the scheme provided by the embodiment of the present application, according to the state of the automatic protection switching module, the received data is determined, so that only one way of data enters the chip logic forwarding module.
[0059] In one example embodiment, according to the state of the second automatic protection switching module on the second device, sending one of the two target data to the second chip logic forwarding module on the second device comprises: in the case that the state of the second automatic protection switching module is in a protection state, sending the first target data of the two target data to the second chip logic forwarding module on the second device, wherein the first target data is one of the target data sent by the first device through the target protection channel and received by the second device; and / or in the case that the state of the second automatic protection switching module is in a working state, sending the second target data of the two target data to the second chip logic forwarding module on the second device, wherein the second target data is one of the target data sent by the first device through the target working channel and received by the second device.
[0060] Optionally, in the embodiment, when the second automatic protection switching module works in the working state, only the data transmitted by the working link is received, and the data transmitted by the protection link is discarded; when the second automatic protection switching module works in the protection state, only the data transmitted by the protection link is received, and the data transmitted by the working link is discarded.
[0061] For example, as shown in FIG. 6, the second automatic protection switching module is in the working state, the selection module 603 in the APS transmits the data transmitted by the working link 601 to the chip logical forwarding module 605 via the port 604, and discards the data transmitted by the protection link 602. Figure 6
[0062] As shown in FIG. 7, the second automatic protection switching module is in the protection state, the selection module 703 in the APS transmits the data transmitted by the protection link 702 to the chip logical forwarding module 705 via the port 704, and discards the data transmitted by the working link 701. Figure 7
[0063] Through the scheme provided in the embodiment, the received data is determined according to the state of the automatic protection switching module, so that only one way of data enters the chip logical forwarding module.
[0064] In the embodiment, another automatic protection switching method in a flexible Ethernet is provided, Figure 8 is a flowchart of the automatic protection switching method in the flexible Ethernet according to the embodiment of the application, and the flowchart includes the following steps:
[0065] In step S802, two target data transmitted by a first device through a target protection channel and a target working channel in a flexible Ethernet (FlexE) are received.
[0066] In step S804, according to the state of a second automatic protection switching module on a second device, one of the two target data is transmitted to a second chip logical forwarding module on the second device.
[0067] The target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data transmitted by a first chip logical forwarding module on the first device through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to a same service port.
[0068] Optionally, in the embodiment, the first device is a device that transmits data, the second device is a device that receives data, and the first device and the second device each include a FlexE working client and a FlexE protection client; the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port; the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. The above execution subject can be, but is not limited to, a first automatic protection switching module on the first device, wherein the first automatic protection switching module can include, but is not limited to, an APS control module, and the APS control module can include, but is not limited to, a copying module.
[0069] Optionally, in the embodiment, the second automatic protection switching module can include, but is not limited to, an APS control module, and the APS control module can include, but is not limited to, a selection module; the state of the second automatic protection switching module can include, but is not limited to, a working state and a protection state.
[0070] Optionally, in the embodiment, the FlexE client-based APS is not aware of services, and the FlexE APS technology can be superimposed and deployed without affecting existing services.
[0071] Through the scheme provided in the embodiments of the present application, target data transmitted by a first chip logic forwarding module on a first device is acquired; in a case where a first automatic protection switching module on the first device is in a first transmission mode, the acquired target data is copied twice to obtain two copies of the target data; and the two copies of the target data are transmitted to a second device through a target protection channel and a target working channel in a flexible Ethernet (FlexE), wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, and the target data is data transmitted by the first chip logic forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. By using the above technical scheme, the data copying function is added, and the copied data can be transmitted to a peer device through the working channel and the protection channel, thereby realizing automatic protection switching of the FlexE client and solving the technical problem that the APS technology cannot be applied to the FlexE client.
[0072] In one example embodiment, sending one of the two pieces of target data to the second chip logical forwarding module on the second device according to the state of the second automatic protection switching module on the second device comprises: in the case that the state of the second automatic protection switching module is in a protection state, sending a first piece of target data of the two pieces of target data to the second chip logical forwarding module on the second device, wherein the first piece of target data is one piece of target data sent by the first device through a target protection channel and received by the second device; in the case that the state of the second automatic protection switching module is in a working state, sending a second piece of target data of the two pieces of target data to the second chip logical forwarding module on the second device, wherein the second piece of target data is one piece of target data sent by the first device through a target working channel and received by the second device.
[0073] Optionally, in the example embodiment, in the case that the second automatic protection switching module works in the working state, only data sent by the working link is received and data sent by the protection link is discarded; in the case that the second automatic protection switching module works in the protection state, only data sent by the protection link is received and data sent by the working link is discarded.
[0074] For example, as shown in FIG. 6, the second automatic protection switching module is in the working state, the selection module 603 in the APS sends data sent by the working link 601 to the chip logical forwarding module 605 via the port 604, and discards data sent by the protection link 602. Figure 6
[0075] As shown in FIG. 7, the second automatic protection switching module is in the protection state, the selection module 703 in the APS sends data sent by the protection link 702 to the chip logical forwarding module 705 via the port 704, and discards data sent by the working link 701. Figure 7
[0076] Through the scheme provided by the example embodiment of the present application, the received data is determined according to the state of the automatic protection switching module, so that only one piece of data enters the chip logical forwarding module.
[0077] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software on a general hardware platform required, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or in the form of a part of the prior art that makes a contribution, and the computer software product is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk), and includes a plurality of instructions for causing an end device (which can be a mobile phone, a computer, a server, or a network device) to execute the method of each embodiment of the present application.
[0078] Figure 9 is a structural block diagram of an automatic protection switching device in a flexible Ethernet according to an embodiment of the present application; as shown in Figure 9 , comprising:
[0079] The acquisition module 901 is configured to acquire target data sent by a first chip logical forwarding module on a first device.
[0080] The duplication module 902 is configured to, in a case where a first automatic protection switching module on the first device is in a first sending mode, duplicate the acquired target data twice to obtain two copies of the target data.
[0081] The sending module 903 is configured to send the two copies of the target data to a second device through a target protection channel and a target working channel in a flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0082] The scheme provided by the embodiment of the application is used for obtaining target data sent by a first chip logical forwarding module on a first device; in the case that a first automatic protection switching module on the first device is in a first sending mode, copying the obtained target data twice to obtain two copies of the target data; and sending the two copies of the target data to a second device through a target protection channel and a target working channel in flexible Ethernet (FlexE) respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by the first chip logical forwarding module on the first device through the same service port, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. By using the technical scheme, the data copying function is added, and the copied data can be sent to a peer device through the working channel and the protection channel, automatic protection switching of the FlexE client is realized, and the technical problem that the APS technology cannot be applied to the FlexE client is solved.
[0083] Figure 10 is a structural block diagram of an automatic protection switching device in flexible Ethernet according to the embodiment of the application; as shown in Figure 10 , comprising:
[0084] The receiving module 1001 is configured to receive two copies of target data sent by a first device through a target protection channel and a target working channel in flexible Ethernet (FlexE);
[0085] The sending module 1002 is configured to send one of the two copies of the target data to a second chip logical forwarding module on a second device according to the state of a second automatic protection switching module on the second device.
[0086] The target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data sent by a first chip logical forwarding module on the first device through the same service port, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0087] By the scheme provided by the embodiment of the application, target data transmitted by a first chip logical forwarding module on a first device is acquired; in a case where a first automatic protection switching module on the first device is in a first transmission mode, the acquired target data is copied twice to obtain two copies of the target data; and the two copies of the target data are transmitted to a second device through a target protection channel and a target working channel in a flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to a same service port, the target data is data transmitted by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port. By using the technical scheme, the data copying function is added, and the copied data can be transmitted to a peer device through a working channel and a protection channel, automatic protection switching of a flexible Ethernet client is realized, and the technical problem that the APS technology cannot be applied to a flexible Ethernet client is solved.
[0088] The embodiment of the application further provides a storage medium including a stored program, wherein the program performs any of the above methods when running.
[0089] Optionally, in the embodiment, the storage medium can be configured to store program code for performing the following steps:
[0090] S1, acquiring target data transmitted by a first chip logical forwarding module on a first device;
[0091] S2, in a case where a first automatic protection switching module on the first device is in a first transmission mode, copying the acquired target data twice to obtain two copies of the target data;
[0092] S3, send the two copies of the target data to the second device through a target protection channel and a target working channel in flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to the same service port, the target data is data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0093] Embodiments of the present application also provide an electronic device comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the above method embodiments.
[0094] Optionally, the electronic device can further comprise a transmission device connected to the processor and an input / output device connected to the processor.
[0095] Optionally, in the present embodiment, the processor can be configured to perform the following steps through the computer program:
[0096] S1, obtaining target data sent by a first chip logical forwarding module on a first device;
[0097] S2, in the case that a first automatic protection switching module on the first device is in a first sending mode, copying the obtained target data into two copies to obtain two copies of target data;
[0098] S3, sending the two copies of the target data to the second device through a target protection channel and a target working channel in flexible Ethernet FlexE respectively, wherein the target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device, the target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device, the first FlexE protection client and the first FlexE working client on the first device correspond to the same service port, the target data is data sent by the first chip logical forwarding module through the same service port on the first device, and the second FlexE protection client and the second FlexE working client on the second device correspond to the same service port.
[0099] Optionally, in the embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various storage medium capable of storing program codes.
[0100] Optionally, the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and the embodiment will not be described herein.
[0101] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by the computing devices, so that they can be stored in the storage devices and executed by the computing devices, and in some cases, the steps shown or described herein can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps thereof can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0102] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various modifications and changes to the present application. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. An automatic protection switching method in a flexible Ethernet network, characterized in that, include: Obtain the target data sent by the first chip logic forwarding module on the first device; When the first automatic protection switching module on the first device is in the first transmission mode, the acquired target data is copied twice to obtain two copies of the target data. The two copies of the target data are then sent to the second device through the target protection channel and the target working channel in Flexible Ethernet (FlexE), respectively. The target protection channel is the protection channel between the first FlexE protection client on the first device and the second FlexE protection client on the second device. The target working channel is the working channel between the first FlexE working client on the first device and the second FlexE working client on the second device. On the first device, the first FlexE protection client and the first FlexE working client correspond to the same service port. The target data is the data sent by the first chip logic forwarding module through the same service port on the first device. On the second device, the second FlexE protection client and the second FlexE working client correspond to the same service port.
2. The automatic protection switching method in flexible Ethernet according to claim 1, characterized in that, The step of sending the two sets of target data to the second device via the target protection channel and the target working channel in Flexible Ethernet (FlexE) includes: The first of the two sets of target data is allocated to a first time slot, and then sent to the second device through the target protection channel in the first time slot; The second set of target data is assigned to a second time slot and sent to the second device through the target working channel in the second time slot.
3. The automatic protection switching method in flexible Ethernet according to claim 1, characterized in that, The method further includes: When the first automatic protection switching module on the first device is in the second transmission mode, the target data is transmitted to the second device through the target protection channel or the target working channel.
4. The automatic protection switching method in flexible Ethernet according to claim 3, characterized in that, The step of sending the target data to the second device through the target protection channel or the target working channel includes: When the first automatic protection switching module is in a protected state, the target data is sent to the second device through the target protection channel; When the first automatic protection switching module is in the working state, the target data is sent to the second device through the target working channel.
5. The automatic protection switching method in flexible Ethernet according to claim 1, characterized in that, After sending the two sets of target data to the second device via the target protection channel and the target working channel in Flexible Ethernet (FlexE), the method further includes: When the second device receives the two sets of target data sent by the first device through the target protection channel and the target working channel, it sends one of the two sets of target data to the second chip logic forwarding module on the second device according to the status of the second automatic protection switching module on the second device.
6. The automatic protection switching method in flexible Ethernet according to claim 5, characterized in that, The step of sending one of the two sets of target data to the second chip logic forwarding module on the second device according to the status of the second automatic protection switching module on the second device includes: When the second automatic protection switching module is in a protected state, the first of the two sets of target data is sent to the second chip logic forwarding module on the second device, wherein the first set of target data is a set of target data received by the second device and sent by the first device through the target protection channel; and / or When the second automatic protection switching module is in the working state, the second set of target data is sent to the second chip logic forwarding module on the second device. The second set of target data is a set of target data sent by the first device through the target working channel and received by the second device.
7. An automatic protection switching method in a flexible Ethernet network, characterized in that, include: Receive two sets of target data sent by the first device through the target protection channel and the target working channel in Flexible Ethernet (FlexE); Based on the status of the second automatic protection switching module on the second device, one of the two sets of target data is sent to the second chip logic forwarding module on the second device; The target protection channel is the protection channel between the first FlexE protection client on the first device and the second FlexE protection client on the second device. The target working channel is the working channel between the first FlexE working client on the first device and the second FlexE working client on the second device. On the first device, the first FlexE protection client and the first FlexE working client correspond to the same service port. The target data is the data sent by the first chip logic forwarding module on the first device through the same service port on the first device. On the second device, the second FlexE protection client and the second FlexE working client correspond to the same service port.
8. The automatic protection switching method in flexible Ethernet according to claim 7, characterized in that, The step of sending one of the two sets of target data to the second chip logic forwarding module on the second device according to the status of the second automatic protection switching module on the second device includes: When the second automatic protection switching module is in the protection state, the first of the two sets of target data is sent to the second chip logic forwarding module on the second device. The first set of target data is a set of target data sent by the first device through the target protection channel and received by the second device. When the second automatic protection switching module is in the working state, the second set of target data is sent to the second chip logic forwarding module on the second device. The second set of target data is a set of target data sent by the first device through the target working channel and received by the second device.
9. An automatic protection switching device in a flexible Ethernet network, characterized in that, include: The acquisition module is used to acquire the target data sent by the first chip logic forwarding module on the first device; The copying module is used to copy the acquired target data twice when the first automatic protection switching module on the first device is in the first transmission mode, so as to obtain two copies of the target data. The sending module is used to send two sets of target data to a second device via a target protection channel and a target working channel in Flexible Ethernet (FlexE), respectively. The target protection channel is a protection channel between a first FlexE protection client on the first device and a second FlexE protection client on the second device. The target working channel is a working channel between a first FlexE working client on the first device and a second FlexE working client on the second device. On the first device, the first FlexE protection client and the first FlexE working client correspond to the same service port. The target data is data sent by the first chip logic forwarding module through the same service port on the first device. On the second device, the second FlexE protection client and the second FlexE working client correspond to the same service port.
10. An automatic protection switching device in a flexible Ethernet network, characterized in that, include: The receiving module is used to receive two sets of target data sent by the first device through the target protection channel and the target working channel in Flexible Ethernet (FlexE). The sending module is used to send one of the two sets of target data to the second chip logic forwarding module on the second device according to the status of the second automatic protection switching module on the second device; The target protection channel is the protection channel between the first FlexE protection client on the first device and the second FlexE protection client on the second device. The target working channel is the working channel between the first FlexE working client on the first device and the second FlexE working client on the second device. On the first device, the first FlexE protection client and the first FlexE working client correspond to the same service port. The target data is the data sent by the first chip logic forwarding module on the first device through the same service port on the first device. On the second device, the second FlexE protection client and the second FlexE working client correspond to the same service port.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 8.
12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.
Citation Information
Patent Citations
Flexible Ethernet 1+1 protection switching realization method
CN107395425A
Protection switching method, network device and system
CN108156074A