Service lossless switching method and device

By using fine-grained FG cross-links and FlexE cross-links in network nodes to transmit FGU frames and performing FGU frame alignment operations, the problem of customer service interruption caused by cross-switching is solved, lossless switching and latency reduction are achieved, and the upgrade requirements of the SPN network are met.

CN119109893BActive Publication Date: 2025-09-09FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411324860.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-09-09
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

In the prior art, there is a problem that customer services are interrupted when network nodes perform cross-switching.

Method used

The fine-grained basic unit FGU frame is transmitted through the fine-grained FG cross-link and the FlexE cross-link respectively between the receiving end of the network element to be switched and the synchronization cache module, and the FGU frame from the FlexE cross-link is selected by the synchronization cache module, and the FGU frame alignment operation is performed. The idle code block is inserted to ensure that the FGU frame received by the demultiplexing module on the FG cross-link is consistent with the FGU frame sent by the multiplexing module when corresponding to the same multiframe number, thereby achieving lossless switching.

Benefits of technology

It achieves lossless switching to the FG business model without affecting the original customer business, reduces latency and saves investment, and meets the lossless upgrade requirements of SPN network FG technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109893B_ABST
    Figure CN119109893B_ABST
Patent Text Reader

Abstract

A method and device for lossless service switching. The method includes: when switching from FlexE cross-link to FG cross-link is required, first performing an FGU frame alignment operation; then, reducing the selection rate by inserting N Idle code blocks between adjacent FGU frames, so that the FGU frames transmitted to the synchronization cache module through the FG cross-link correspond to the same multi-frame number as the selected FGU frames, thereby switching from selecting the FGU frames from the FlexE cross-link through the synchronization cache module to selecting the FGU frames from the FG cross-link and sending them to the downstream network element. Through this application, services can be built first through FlexE cross-link, saving investment and reducing latency; and then switching to the FG service model losslessly when there is a related service demand, without affecting the original customer service, and realizing the demand for lossless upgrade of SPN network FG technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for lossless service switching. Background Art

[0002] When there's no need for FG service add / drop and cross-connect scheduling between network nodes, a FlexE cross-connect is typically established to implement FGU frame transparent transmission, reducing latency and equipment deployment costs. If FG service add / drop and cross-connect scheduling is subsequently required, the FlexE cross-connect must be deleted and a new FG cross-connect must be created. However, this will disrupt customer services originally carried by the FlexE cross-connect. Summary of the Invention

[0003] The present application provides a method and device for lossless business switching, which can solve the technical problem in the prior art that cross switching may cause customer business interruption.

[0004] In a first aspect, an embodiment of the present application provides a method for lossless service switching, the method comprising:

[0005] When there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end of the network element to be switched and the synchronization buffer module through the fine-grained FG cross link and the FlexE cross link respectively;

[0006] The synchronization buffer module selects and receives FGU frames from the FlexE cross-link and sends them to the downstream network element.

[0007] Perform FGU frame alignment operations so that the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when they correspond to the same multiframe number;

[0008] Insert N idle code blocks between adjacent FGU frames and discard FGU frames transmitted to the synchronization buffer module through the FG cross link until the FGU frames transmitted to the synchronization buffer module through the FG cross link correspond to the same multiframe number as the selected FGU frames, where N is a positive integer greater than 1.

[0009] When corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module through the FG cross-link, the FGU frame from the FG cross-link is selected by the synchronization cache module and sent to the downstream network element.

[0010] In combination with the first aspect, in one embodiment, before performing the FGU frame alignment operation, the method further includes:

[0011] The cache mode is set so that the FG service carried on the FG cross link uses a shared cache. When the FG service uses the shared cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the shared cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the shared cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0012] In combination with the first aspect, in one embodiment, after the synchronization buffer module selects and receives the FGU frame from the FG cross link and sends it to the downstream network element, the method further includes:

[0013] The cache mode is switched based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the independent cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0014] In conjunction with the first aspect, in one embodiment, after the cache mode switching is performed based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache, the method further includes:

[0015] When there is a second service switching request, cache mode switching is performed based on the state machine, so that the FG service carried on the FG cross link switches from using an independent cache to using a shared cache;

[0016] Check whether the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when corresponding to the same multiframe number;

[0017] If they are inconsistent, an FGU frame alignment operation is performed so that the FGU frames received by the demultiplexing module on the FG cross link and the FGU frames sent by the multiplexing module are consistent when corresponding to the same multiframe number;

[0018] Insert M idle code blocks between adjacent FGU frames transmitted over the FlexE cross link and sent to the synchronization buffer module egress until the FGU frames transmitted over the FlexE cross link sent from the synchronization buffer module egress and the selected FGU frames have the same multiframe number, where M is a positive integer greater than 1.

[0019] When corresponding to the same multiframe number B, after completing sending the FGU frame with multiframe number B from the FG cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number B transmitted to the synchronization cache module through the FlexE cross-link, the synchronization cache module selects and receives the FGU frame from the FlexE cross-link and sends it to the downstream network element.

[0020] In conjunction with the first aspect, in one implementation, performing the FGU frame alignment operation includes:

[0021] The multiframe number and time slot number corresponding to each data code block obtained by demultiplexing the received FGU frame by the demultiplexing module on the FG cross link are transmitted backward in the form of a channel signal following;

[0022] The multiplexing module on the FG cross link puts each data code block in the shared buffer into the time slot corresponding to its time slot number in the FGU frame corresponding to its multiframe number when performing multiplexing processing based on the received associated signal.

[0023] In conjunction with the first aspect, in one embodiment, the state machine-based cache mode switching, so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache, includes:

[0024] When the target data block is received at the entry of the cache module at the multiplexing module end, the data block corresponding to the FG service is placed into an independent cache;

[0025] When the exit of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent cache and sent to the multiplexing module through the exit of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0026] In conjunction with the first aspect, in one embodiment, the state machine-based cache mode switching, so that the FG service carried on the fine-grained FG cross-link switches from using an independent cache to using a shared cache, includes:

[0027] When the entry of the cache module at the multiplexing module end receives the target data code block, the data code block corresponding to the FG service is placed in the shared cache;

[0028] When the exit of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the shared cache and sent to the multiplexing module through the exit of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0029] In a second aspect, an embodiment of the present application provides a device for lossless service switching, the device comprising:

[0030] The fine-grained FG cross link and the FlexE cross link are used to transmit the fine-grained basic unit FGU frame between the receiving end of the network element to be switched and the synchronization buffer module through the fine-grained FG cross link and the FlexE cross link respectively when there is a first service switching request;

[0031] The receiving module is used to select FGU frames from the FlexE cross-link through the synchronization buffer module and send them to the downstream network element;

[0032] An alignment module is used to perform FGU frame alignment operations so that the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when they correspond to the same multiframe number;

[0033] A delay module is configured to insert N idle code blocks between adjacent FGU frames to be received, and discard FGU frames transmitted to the synchronization buffer module via the FG cross link until the FGU frames transmitted to the synchronization buffer module via the FG cross link correspond to the same multiframe number as the received FGU frames, where N is a positive integer greater than 1;

[0034] The selection module is also used to, when corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module through the FG cross link, select the FGU frame from the FG cross link through the synchronization cache module and send it to the downstream network element.

[0035] In conjunction with the second aspect, in one embodiment, the service lossless switching device further includes a cache setting module, configured to:

[0036] The cache mode is set so that the FG service carried on the FG cross link uses a shared cache. When the FG service uses the shared cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the shared cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the shared cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0037] In conjunction with the second aspect, in one embodiment, the service lossless switching device further includes a cache mode switching module, configured to:

[0038] The cache mode is switched based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the independent cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0039] The beneficial effects of the technical solutions provided in the embodiments of the present application include:

[0040] In the embodiment of the present application, when there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end of the network element to be switched and the synchronization cache module through the fine-grained FG cross link and the FlexE cross link respectively; the FGU frame from the FlexE cross link is selected by the synchronization cache module and sent to the downstream network element; the FGU frame alignment operation is performed so that the FGU frame received by the demultiplexing module on the FG cross link is consistent with the FGU frame sent by the multiplexing module when corresponding to the same multiframe number; N Idle code blocks are inserted between the adjacent FGU frames selected, and The FGU frames transmitted to the synchronization cache module via the FG cross-link are discarded until the FGU frames transmitted to the synchronization cache module via the FG cross-link correspond to the same multi-frame number as the selected FGU frames, where N is a positive integer greater than 1. When they correspond to the same multi-frame number A, after completing sending the FGU frames with multi-frame number A from the FlexE cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frames with multi-frame number A transmitted to the synchronization cache module via the FG cross-link, the FGU frames from the FG cross-link are selected and sent to the downstream network element through the synchronization cache module. Through this embodiment, when deploying FG services, network element nodes that do not include fine-grained uplink and downlink calls and transit scheduling services can first build services through FlexE cross-link, saving investment and reducing latency. Subsequently, when there is a related service demand, they can be switched to the FG service model without affecting the original customer services, thus meeting the requirements for lossless upgrade of SPN network FG technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a flow chart of the first embodiment of the method for lossless switching of services of the present application;

[0042] Figure 2 This is a schematic diagram of a scenario in which customer services are carried in accordance with an embodiment of a lossless switching method for services of this application;

[0043] Figure 3 This is a schematic diagram of a scenario in which the selection rate is reduced in one embodiment of the present application;

[0044] Figure 4This is a schematic diagram of selective switching in an embodiment of the lossless switching method for services of this application;

[0045] Figure 5 This is a flow chart of the second embodiment of the method for lossless switching of services of this application;

[0046] Figure 6 This is a schematic diagram of a scenario in which a shared cache is switched to an independent cache in an embodiment of a lossless switching method for a service of the present application;

[0047] Figure 7 This is a flowchart of the third embodiment of the method for lossless switching of services of the present application;

[0048] Figure 8 This is a schematic diagram of the functional modules of an embodiment of a lossless service switching device of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] First, some technical terms in this application are explained to facilitate those skilled in the art to understand this application.

[0051] Flexible Ethernet (FlexE) is an improved Ethernet-based network. It supports multiple flexible-rate FlexE client MACs by bundling one or more Ethernet interfaces defined by the IEEE 802.3 standard and channelizing them using 66-bit code blocks as the basic unit.

[0052] Fine Granularity (FG) services based on Flexible Ethernet adopt a hierarchical mapping mechanism. Based on the 5G FlexE customer interface, they further divide timeslots into Fine Granularity Units (FGUs). Using the 64 / 66B encoding format, they encode the overhead and payload containing multiple timeslots into a fixed-length sequence of S blocks, D blocks, and T blocks to form the FGU frame structure.

[0053] Client service (FG-Client): The client service and its data that need to be carried by this embodiment. Each client service can be allocated one or more time slots. Service data is sent in the order in which it is sent.

[0054] Multiplexing (MUX): Loads customer service data into designated multiframe time slots according to the mapping relationship, frames them into a multiframe, and then transmits them.

[0055] Demultiplexing (DEMUX): The data in the time slots of the multiframe are received and sent to the designated customer service channel according to the mapping relationship.

[0056] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0057] In a first aspect, an embodiment of the present application provides a method for lossless switching of services.

[0058] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the lossless switching method for services of this application. Figure 1 As shown, the service lossless switching method includes:

[0059] Step S10: When there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end of the network element to be switched and the synchronization buffer module through the fine-grained FG cross link and the FlexE cross link respectively;

[0060] Step S20: The synchronization buffer module selects and receives FGU frames from the FlexE cross link and sends them to the downstream network element.

[0061] In this embodiment, refer to Figure 2 , Figure 2 This is a schematic diagram of a scenario in which a customer service is carried in an embodiment of a lossless switching method for a service of this application. Figure 2 As shown, when there is a first service switching request, that is, when the network element to be switched has FG service call up / down and cross scheduling requirements, the receiving end of the network element to be switched in the input direction sends FGU frames in both the FG cross-link and the FlexE cross-link directions. The sending end of the network element to be switched in the output direction identifies the FGU frames from the FG cross-link and the FlexE cross-link through the synchronization cache module, and only receives the FGU frames from the FlexE cross-link and sends them to the downstream network element.

[0062] Step S30, performing an FGU frame alignment operation so that the FGU frames received by the demultiplexing module on the FG cross link and the FGU frames sent by the multiplexing module are consistent when corresponding to the same multiframe number;

[0063] In this embodiment, under normal circumstances, the FGU frame received by the demultiplexing module on the FG cross link and the FGU frame sent by the multiplexing module are inconsistent when corresponding to the same multiframe number, so an FGU frame alignment operation needs to be performed.

[0064] Furthermore, in one embodiment, before step S30, the method further includes:

[0065] The cache mode is set so that the FG service carried on the FG cross link uses a shared cache. When the FG service uses the shared cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the shared cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the shared cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0066] In this embodiment, before performing the FGU frame alignment operation, it is necessary to enable the FG services carried on the FG cross-link to use a shared cache. Specifically, the cache mode is set so that the data code blocks corresponding to the FG services pass through the cross-link to the inlet of the multiplexing module-side cache module and then enter the shared cache through the inlet. The data code blocks corresponding to the FG services in the shared cache then pass through the outlet of the multiplexing module-side cache module to reach the multiplexing module.

[0067] For example, FG services occupy time slots 5 and 6, and other customer services occupy time slots 1, 2, 3, 9, and 11. When using a shared cache, the data blocks obtained by the demultiplexing operation of the demultiplexing module (including the data blocks corresponding to the FG services and the data blocks corresponding to other customer services) are connected to the entry of the cache module at the multiplexing module end through the crossbar and enter the shared cache through the entry.

[0068] Furthermore, in one embodiment, performing the FGU frame alignment operation includes:

[0069] Step S301: The multiframe number and time slot number corresponding to each data code block obtained by the demultiplexing module on the FG cross link after demultiplexing the received FGU frame are transmitted backward in a manner following the channel signal;

[0070] In this embodiment, the data code block refers to the data payload portion contained in the FGU frame except the synchronization header and overhead, that is, the customer service data carried by the FG cross-link; the multiframe number is the MFI (Multi-Frame Indicator); the accompanying signal means that in the chip logic design, the MFI and time slot number and data information are passed backward together, so that the subsequent data processing module can obtain the MFI number and time slot number information of the data code block when receiving the data code block, so as to perform step S302.

[0071] In addition, the number of customer services on the demultiplexing side of the node to be switched and the time slots they occupy are the same as the number of customer services on the demultiplexing side and the time slots they occupy. By using a shared cache for different customer services, the demultiplexed data code blocks are stored in the shared cache in ascending order of time slot numbers.

[0072] Step S302 : The multiplexing module on the FG cross link puts each data code block in the shared buffer into the time slot corresponding to its time slot number in the FGU frame corresponding to its multiframe number when performing multiplexing processing based on the received associated signal.

[0073] In this embodiment, the demultiplexing module demultiplexes the received FGU frame to obtain data code blocks 1 to 11, which correspond to time slots 1 to 11, respectively. The multiframe number corresponding to the FGU frame received by the demultiplexing module is u1, that is, the multiframe number corresponding to data code blocks 1 to 11 is u1. Since this information is transmitted backward in a manner following the associated signal, the multiplexing module can multiplex the received associated signal to obtain an FGU frame with multiframe number u1, and time slots 1 to 11 in this FGU frame correspond to data code blocks 1 to 11, respectively. This ensures that the FGU frame received by the demultiplexing module on the FG cross-link is consistent with the FGU frame sent by the multiplexing module when corresponding to the same multiframe number.

[0074] Step S40: insert N idle code blocks between adjacent FGU frames to be received, and discard FGU frames transmitted to the synchronization buffer module via the FG cross link until the FGU frames transmitted to the synchronization buffer module via the FG cross link and the received FGU frames have the same multiframe number, where N is a positive integer greater than 1.

[0075] In this embodiment, continue to refer to Figure 2 , FGU frames are not processed on the FlexE cross-link and are transparently transmitted to the synchronization cache module; however, FGU frames need to be demultiplexed and multiplexed on the FG cross-link. This will result in the FGU frames transmitted to the synchronization cache module through the FG cross-link and the selected FGU frames corresponding to different multiframe numbers, and the multiframe number of the FGU frames transmitted to the synchronization cache module through the FG cross-link is smaller than the multiframe number of the selected FGU frames.

[0076] The action of the sending end of the network element to be switched selecting the FGU frames from the FlexE cross-link through the synchronization cache module and sending them to the downstream network element is continuous, that is, each time the selection action is performed, data must be obtained and sent to the downstream network element, and N Idle code blocks are inserted between the adjacent FGU frames selected, that is, the data selected N times are Idle code blocks. In this way, as time goes by, the FGU frames transmitted to the synchronization cache module through the FG cross-link and the selected FGU frames will correspond to the same multi-frame number. For example, without inserting N Idle code blocks, the time interval for selecting adjacent FGU frames is a. Assuming that the time taken to select N Idle code blocks is b, the time interval for selecting adjacent FGU frames is changed to a+b through this embodiment, thereby reducing the selection rate.

[0077] Reference Figure 3 , Figure 3 This is a schematic diagram of a scenario in which the selection rate is reduced in one embodiment of the present application. Figure 3 As shown in the figure, when the FGU frame with the multiframe number U5 transmitted through the FlexE cross link is selected, the multiframe number of the FGU frame transmitted to the synchronization buffer module through the FG cross link is U2, then U2 is discarded and after the FGU frame with the multiframe number U5 is selected, N Idle code blocks are inserted, so that the transmitting end of the network element to be switched can select and receive the FGU frame with the multiframe number U6 transmitted through the FlexE cross link after selecting and receiving the N Idle code blocks, and so on.

[0078] Normally, there is only one Idle code block between the selected FGU frames. This embodiment inserts N Idle code blocks to reduce the selection rate.

[0079] N can be a preset value, which is set based on the performance of the synchronization cache module. It is easy to understand that a larger N value places higher demands on the performance of the synchronization cache module and more quickly ensures that the FGU frames transmitted to the synchronization cache module via the FG cross-link and the selected FGU frames have the same multiframe number.

[0080] In step S50, when corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module through the FG cross link, the FGU frame from the FG cross link is selected by the synchronization cache module and sent to the downstream network element.

[0081] In this embodiment, refer to Figure 4 , Figure 4 This is a schematic diagram of the selective switching in one embodiment of the lossless switching method for the service of this application. Figure 4As shown, through the processing of step S40, when the FGU frame with the multiframe number U10 transmitted through the FlexE cross-link is selected, the multiframe number of the FGU frame transmitted to the synchronization cache module through the FG cross-link is U10, then after completing sending the FGU frame with the multiframe number U10 from the FlexE cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with the multiframe number U10 transmitted to the synchronization cache module through the FG cross-link, it is switched to selecting the FGU frame from the FG cross-link through the synchronization cache module and sending it to the downstream network element, that is, starting from the multiframe number U11, the FGU frame from the FG cross link in the synchronization cache is selected and sent to the downstream network element, and the service is completed. Lossless switching from FlexE cross-link to FG cross-link is completed.

[0082] It should be noted that, after step S50, the FlexE cross-connection may be deleted, that is, customer services are transmitted only through the FG cross-connection.

[0083] Furthermore, in one embodiment, referring to Figure 5 , Figure 5 This is a flow chart of the second embodiment of the lossless switching method for services of this application. Figure 5 As shown, after step S50, the following steps are further included:

[0084] Step S60, the cache mode is switched based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the independent cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

[0085] In this embodiment, refer to Figure 6 , Figure 6 This is a schematic diagram of a scenario in which a shared cache is switched to an independent cache in an embodiment of a lossless switching method for a service of this application. Figure 6As shown, the FG service occupies time slots 5 and 6, and other customer services occupy time slots 1, 2, 3, 9, and 11. When using a shared cache, the data code blocks obtained by the demultiplexing operation of the demultiplexing module (including the data code blocks corresponding to the FG service and the data code blocks corresponding to other customer services) pass through the crossbar to reach the entrance of the multiplexing module-side cache module, and enter the shared cache through the entrance; after switching from the shared cache to the independent cache, the data code blocks corresponding to the FG service pass through the crossbar to reach the entrance of the multiplexing module-side cache module, and pass through the entrance to enter the independent cache corresponding to the FG service. Subsequently, the data code blocks corresponding to the FG service in the independent cache pass through the exit of the multiplexing module-side cache module to reach the multiplexing module for multiplexing operation; the data code blocks corresponding to other customer services pass through the crossbar to reach the entrance of the multiplexing module-side cache module, and enter the shared cache through the entrance.

[0086] In the embodiment of the present application, when there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end of the network element to be switched and the synchronization cache module through the fine-grained FG cross link and the FlexE cross link respectively; the FGU frame from the FlexE cross link is selected by the synchronization cache module and sent to the downstream network element; the FGU frame alignment operation is performed so that the FGU frame received by the demultiplexing module on the FG cross link is consistent with the FGU frame sent by the multiplexing module when corresponding to the same multiframe number; N Idle code blocks are inserted between the adjacent FGU frames selected, and The FGU frames transmitted to the synchronization cache module via the FG cross-link are discarded until the FGU frames transmitted to the synchronization cache module via the FG cross-link correspond to the same multi-frame number as the selected FGU frames, where N is a positive integer greater than 1. When they correspond to the same multi-frame number A, after completing sending the FGU frames with multi-frame number A from the FlexE cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frames with multi-frame number A transmitted to the synchronization cache module via the FG cross-link, the FGU frames from the FG cross-link are selected and sent to the downstream network element through the synchronization cache module. Through this embodiment, when deploying FG services, network element nodes that do not include fine-grained uplink and downlink calls and transit scheduling services can first build services through FlexE cross-link, saving investment and reducing latency. Subsequently, when there is a related service demand, they can be switched to the FG service model without affecting the original customer services, thus meeting the requirements for lossless upgrade of SPN network FG technology.

[0087] Furthermore, in one embodiment, referring to Figure 7 , Figure 7 This is a flow chart of the third embodiment of the lossless switching method for services of this application. Figure 7 As shown, after step S60, the following steps are further included:

[0088] Step S70 , when there is a second service switching request, performing cache mode switching based on the state machine, so that the FG service carried on the fine-grained FG cross link switches from using an independent cache to using a shared cache;

[0089] In this embodiment, although FG cross-connect services offer high flexibility and can implement point-to-multipoint cross-connection, their service model is more complex and service transmission latency is higher. Therefore, when the network element to be switched does not require FG service call addition and drop and cross-connection scheduling, a second service switching request is triggered to switch from FG cross-connection to FlexE cross-connection. This simplifies the service model and reduces service transmission latency.

[0090] Referring to the description of step S60 above, the cache mode at this time is independent cache. When a second service switching request is received, the cache mode must first be switched from independent cache to shared cache. This allows the data code blocks obtained by the demultiplexing operation of the demultiplexing module (including data code blocks corresponding to the FG service and data code blocks corresponding to other client services) to pass through the crossbar and reach the entrance of the multiplexing module-side cache module, and then enter the shared cache through the entrance. Subsequently, the data code blocks in the shared cache pass through the exit of the multiplexing module-side cache module to reach the multiplexing module for multiplexing operations.

[0091] Step S80, detecting whether the FGU frame received by the demultiplexing module on the FG cross link is consistent with the FGU frame sent by the multiplexing module when corresponding to the same multiframe number;

[0092] Step S90 , if they are not consistent, performing an FGU frame alignment operation so that the FGU frames received by the demultiplexing module on the FG cross link and the FGU frames sent by the multiplexing module are consistent when corresponding to the same multiframe number;

[0093] In this embodiment, although an FGU frame alignment operation has already been performed in step S30, configuration changes, device restarts, and other operations may cause alignment to fail. Therefore, a determination is made as to whether FGU frame alignment is necessary. Specifically, the FGU frame received by the demultiplexing module on the FG cross-link is checked to see if it matches the FGU frame sent by the multiplexing module when corresponding to the same multiframe number. If not, FGU frame alignment is performed. This is similar to the embodiment described above with respect to steps S301 and S302, and will not be further elaborated here.

[0094] It should be noted that if the judgment result of step S80 is consistent, step S100 is directly performed.

[0095] Step S100: insert M idle code blocks between adjacent FGU frames transmitted via the FlexE cross link and sent to the egress of the synchronization buffer module until the FGU frames transmitted via the FlexE cross link sent from the egress of the synchronization buffer module and the selected FGU frames have the same multiframe number, where M is a positive integer greater than 1.

[0096] In this embodiment, although the transmitting end of the network element to be switched currently selects to receive FGU frames from the FG cross-link in the synchronization cache module, the FGU frames from the FlexE cross-link in the synchronization cache must also be sent to the transmitting end of the network element to be switched via the synchronization cache module egress and will be discarded after receiving them. Referring to the description of the embodiment of step S40, since the number of the FGU frame transmitted to the synchronization cache module via the FlexE cross-link is greater than the multiframe number of the selected FGU frame, it is necessary to insert M Idle code blocks between the adjacent FGU frames transmitted via the FlexE cross-link to the synchronization cache module egress to reduce the rate at which the FGU frames from the FlexE cross-link are transmitted to the synchronization cache module egress. In this way, over time, the FGU frames transmitted via the FlexE cross-link and the selected FGU frames sent via the synchronization cache module egress will correspond to the same multiframe number.

[0097] In step S110, when corresponding to the same multiframe number B, after completing sending the FGU frame with multiframe number B from the FG cross link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number B transmitted to the synchronization cache module through the FlexE cross link, the FGU frame from the FlexE cross link is selected by the synchronization cache module and sent to the downstream network element.

[0098] In this embodiment, assuming that through the processing of step S100, when the FGU frame with the multiframe number U10 transmitted through the FG cross-link is selected, the FGU frame transmitted to the exit of the synchronization cache module through the FlexE cross-link is also U10, then after completing sending the FGU frame with the multiframe number U10 from the FG cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with the multiframe number U10 transmitted to the synchronization cache module through the FlexE cross-link, it is switched to selecting the FGU frame from the FlexE cross-link through the synchronization cache module and sending it to the downstream network element, that is, starting from the multiframe number U11, the FGU frame from the FlexE cross link in the synchronization cache is selected and sent to the downstream network element, and the service is completed. Lossless switching from FG cross-link to FlexE cross-link is completed.

[0099] Furthermore, in one embodiment, step S60 includes:

[0100] When the target data block is received at the entry of the cache module at the multiplexing module end, the data block corresponding to the FG service is placed into an independent cache;

[0101] When the exit of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent cache and sent to the multiplexing module through the exit of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0102] In this embodiment, the FG service is defined as client_j;

[0103] The shared cache is defined as F[i] and the independent cache is defined as F[i][j];

[0104] When the cache mode switching starts, the demultiplexed data code blocks of client_j cross into the multiplexing side, and the data code block with the smallest occupied time slot number (ie, the target data code block) is marked with the first time slot mark PS.

[0105] The state machine states are defined as follows:

[0106] S0: The entry of the cache module at the multiplexing module end is in the shared cache F[i], and the exit of the cache module at the multiplexing module end is in the shared cache F[i];

[0107] S1: The entry of the cache module at the multiplexing module end is in the independent cache F[i][j], and the exit of the cache module at the multiplexing module end is in the shared cache F[i];

[0108] S2: The entry of the cache module at the multiplexing module end is in the shared cache F[i], and the exit of the cache module at the multiplexing module end is in the independent cache F[i][j];

[0109] S3: The entry of the cache module at the multiplexing module end is in the independent cache F[i][j], and the exit of the cache module at the multiplexing module end is in the independent cache F[i][j].

[0110] Among them, the entry of the cache module at the multiplexing module end is in the shared cache F[i], that is, the data code block obtained by demultiplexing enters the shared cache F[i] through cross-linking; the entry of the cache module at the multiplexing module end is in the independent cache F[i][j], that is, the data code block obtained by demultiplexing enters the independent cache F[i][j] through cross-linking.

[0111] The exit of the cache module at the multiplexing module end is in the shared cache F[i], that is, the multiplexing module obtains data from the shared cache F[i] for multiplexing processing; the exit of the cache module at the multiplexing module end is in the independent cache F[i][j], that is, the multiplexing module obtains data from the independent cache F[i][j] for multiplexing processing.

[0112] The state machine events are defined as follows:

[0113] E0: The entry of the buffer module at the multiplexing module side receives the data code block with the first time slot mark PS;

[0114] E1: The entry of the buffer module at the multiplexing module side receives the data code block without the first time slot marker PS;

[0115] E2: The exit of the buffer module at the multiplexing module side sends out a data code block without the first time slot marker PS;

[0116] E3: The exit of the buffer module at the multiplexing module end sends out a data code block with a first time slot mark PS.

[0117] The state machine actions are defined as follows:

[0118] A0: The state changes to S1; the data code block of client_j is sent to F[i][j], and the data code block of client_j is taken out from F[i];

[0119] A1: The state changes to S0; the data code block of client_j is sent to F[i], and the data code block of client_j is taken out from F[i];

[0120] A2: The state changes to S3; the data code block of client_j is sent to F[i][j], and the data code block of client_j is taken out from F[i][j].

[0121] A3: Change the state to S2; send client_j's data code block to F[i], and take client_j's data code block from F[i][j].

[0122] The state machine truth table is defined as follows:

[0123] E0 E1 E2 E3 S0 A0 A1 A1 - S1 - A0 A0 A2 S2 - A3 A3 A1 S3 A3 A2 A2 -

[0124] In the table, “-” means that it will not occur, or there will be no response even if it occurs.

[0125] Referring to the above definition, the process of switching from shared cache to independent cache is as follows:

[0126] 1. The initial state is S0, the initial events are E1 and E2, and the corresponding state maneuver is A1. Then the state S0 remains unchanged. At this time, the data code block of client_j is sent to F[i] and the data code block of client_j is taken out from F[i].

[0127] 2. When the state is S0, event E0 occurs, and the corresponding state is automatically changed to A0, that is, the state changes from S0 to S1. At this time, the data code block of client_j is sent to F[i][j], and the data code block of client_j is taken out from F[i];

[0128] 3. When the state is S1, event E3 occurs, and the corresponding state is automatically changed to A2, that is, the state changes from S1 to S3. At this time, the data code block of client_j is sent to F[i][j], and the data code block of client_j is taken out from F[i][j]. At this point, the switch from shared cache to independent cache is completed.

[0129] Furthermore, in one embodiment, step S80 includes:

[0130] When the entry of the cache module at the multiplexing module end receives the target data code block, the data code block corresponding to the FG service is placed in the shared cache;

[0131] When the export of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service of the multiplexing module end cache module is taken out from the shared cache and sent to the multiplexing module through the export. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0132] In this embodiment, referring to the above definition, the process of switching from independent cache to shared cache is as follows:

[0133] 1. The initial state is S3, the initial events are E1 and E2, and the corresponding state maneuver is A2. Then the state S3 remains unchanged. At this time, the data code block of client_j is sent to F[i][j], and the data code block of client_j is taken out from F[i][j].

[0134] 2. When the state is S3, event E0 occurs, and the corresponding state is automatically changed to A3, that is, the state changes from S3 to S2. At this time, the data code block of client_j is sent to F[i], and the data code block of client_j is taken out from F[i][j].

[0135] 3. When the state is S2, event E3 occurs, and the corresponding state is automatically changed to A1, that is, the state changes from S2 to S0. At this time, the data code block of client_j is sent to F[i], and the data code block of client_j is taken out from F[i]. At this point, the switch from independent cache to shared cache is completed.

[0136] Furthermore, in one embodiment, the service lossless switching method further includes:

[0137] When there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end and the transmitting end of the network element to be switched through the fine-grained FG cross link and the FlexE cross link respectively;

[0138] The transmitter receives FGU frames from the FlexE cross-link and sends them to the downstream network element.

[0139] Perform FGU frame alignment operations so that the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when they correspond to the same multiframe number;

[0140] After the FGU frame alignment operation is completed, the transmitter selects and receives the FGU frame from the FG cross link and sends it to the downstream network element;

[0141] Performs a validity check on each FGU frame received by the downstream network element, including:

[0142] Check whether the format of the FGU frame complies with the standard and whether the multiframe number of the FGU frame is P+1, where P is the number of the FGU frame targeted by the last demultiplexing process;

[0143] If the format of the FGU frame conforms to the standard and the multiframe number is P+1, the FGU frame is demultiplexed and the demultiplexing result is placed in the cache module;

[0144] If the format of the FGU frame does not conform to the standard or the multiframe number is not P+1, the FGU frame will be discarded;

[0145] Detect whether the demultiplexing processing results in the cache module can form a standard Ethernet data packet;

[0146] If the demultiplexing processing result in the cache module can form a standard Ethernet data packet, the demultiplexing processing result in the cache module is sent to the subsequent module of the cache module;

[0147] If the demultiplexing result in the cache module cannot form a standard Ethernet data packet, the Idle code block is sent to the subsequent module of the cache module until the demultiplexing result in the cache module can form a standard Ethernet data packet.

[0148] In this embodiment, when there is no synchronization cache module between the receiving and transmitting ends of the network element to be switched, after the FGU frame alignment operation is completed, the transmitting end selects and receives FGU frames from the FG cross-link and sends them to the downstream network element. Subsequently, a validity check is performed on each FGU frame received by the downstream network element. If the validity check passes, subsequent processing continues; if the validity check fails, the FGU frame is discarded. This embodiment achieves lossless service switching from FlexE cross-link to FG cross-link by modifying the processing logic of the downstream network element, eliminating the cost of setting up a synchronization cache module.

[0149] In a second aspect, an embodiment of the present application further provides a device for lossless switching of services.

[0150] In one embodiment, referring to Figure 8 , Figure 8This is a functional module diagram of an embodiment of a lossless switching device for services of this application. Figure 8 As shown, the service lossless switching device includes:

[0151] The fine-grained FG cross-link 10 and the FlexE cross-link 20 are configured to transmit the fine-grained basic unit FGU frame between the receiving end of the network element to be switched and the synchronization buffer module 40 through the fine-grained FG cross-link 10 and the FlexE cross-link 20 respectively when a first service switching request is present;

[0152] The receiving module 30 is configured to receive the FGU frames from the FlexE cross-link 20 in the synchronization buffer module 40 and send them to the downstream network element;

[0153] an alignment module 50 for performing an FGU frame alignment operation so that the FGU frames received by the demultiplexing module 101 on the FG cross-link 10 and the FGU frames sent by the multiplexing module 102 are consistent when corresponding to the same multiframe number;

[0154] The delay module 60 is configured to insert N idle code blocks between adjacent FGU frames and discard FGU frames transmitted to the synchronization buffer module 40 via the FG cross link 10 until the FGU frames transmitted to the synchronization buffer module 40 via the FG cross link 10 have the same multiframe number as the received FGU frames, where N is a positive integer greater than 1.

[0155] The receiving module 30 is further configured to, when corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross-link 20 in the synchronization cache module 40 to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module 40 through the FG cross-link 10, select and send the FGU frame from the FG cross-link 10 in the synchronization cache module 40 to the downstream network element.

[0156] Furthermore, in one embodiment, the service lossless switching device further includes a cache setting module 70, which is configured to:

[0157] A cache mode is set so that the FG service carried on the FG cross link 10 uses a shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service pass through the cross to reach the entry 1021 of the cache module at the multiplexing module end, and enter the shared cache through the entry 1021 of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache pass through the exit 1022 of the cache module at the multiplexing module end to reach the multiplexing module 102.

[0158] Furthermore, in one embodiment, the service lossless switching device further includes a cache mode switching module 80, which is configured to:

[0159] The cache mode is switched based on the state machine so that the FG service carried on the FG cross link 10 switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entry 1021 of the cache module at the multiplexing module end, and enters the independent cache through the entry 1021 of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit 1022 of the cache module at the multiplexing module end to reach the multiplexing module 102.

[0160] Furthermore, in one embodiment, the switching module 80 is further configured to switch the cache mode based on the state machine when there is a second service switching request, so that the FG service carried on the FG cross-link 10 switches from using an independent cache to using a shared cache;

[0161] The lossless switching of services further includes a detection module 90 for detecting whether the FGU frame received by the demultiplexing module 101 on the FG cross link 10 is consistent with the FGU frame sent by the multiplexing module 102 when corresponding to the same multiframe number;

[0162] The alignment module 50 is further configured to perform an FGU frame alignment operation if there is any inconsistency, so that the FGU frames received by the demultiplexing module on the FG cross link and the FGU frames sent by the multiplexing module are consistent when corresponding to the same multiframe number;

[0163] The delay module 60 is further configured to insert M idle code blocks between adjacent FGU frames transmitted to the synchronization buffer module 40 via the FlexE cross link 20 and sent to the synchronization buffer module egress, until the FGU frame transmitted via the FlexE cross link 20 and the selected FGU frame sent via the synchronization buffer module egress have the same multiframe number, where M is a positive integer greater than 1.

[0164] The receiving module 30 is further configured to, when corresponding to the same multiframe number B, after completing sending the FGU frame with multiframe number B from the FG cross-link 10 in the synchronization cache module 40 to the downstream network element and completing discarding the FGU frame with multiframe number B transmitted to the synchronization cache module 40 through the FlexE cross-link 20, select and send the FGU frame from the FlexE cross-link 20 in the synchronization cache module 40 to the downstream network element.

[0165] Furthermore, in one embodiment, the alignment module 50 is configured to:

[0166] The multiframe number and time slot number corresponding to each data code block obtained by demultiplexing the received FGU frame by the demultiplexing module 101 on the FG cross link 10 are transmitted backward in a manner following the path signal;

[0167] The multiplexing module 102 on the FG cross link 10 puts each data code block in the shared buffer into the time slot corresponding to the time slot number in the FGU frame corresponding to the multiframe number when performing multiplexing processing based on the received associated signal.

[0168] Furthermore, in one embodiment, the cache mode switching module 80 is specifically configured to:

[0169] When the entry 1021 of the buffer module at the multiplexing module side receives the target data code block, the data code block corresponding to the FG service is placed into an independent buffer;

[0170] When the exit 1022 of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent cache and sent to the multiplexing module 102 through the exit 1022 of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0171] Furthermore, in one embodiment, the cache mode switching module 80 is specifically configured to:

[0172] When the entry 1021 of the multiplexing module end buffer module receives the target data code block, the data code block corresponding to the FG service is placed into the shared buffer;

[0173] When the exit 1022 of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the shared cache and sent to the multiplexing module 102 through the exit 1022 of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

[0174] Among them, the functional implementation of each module in the above-mentioned service lossless switching device corresponds to each step in the above-mentioned service lossless switching method embodiment, and its functions and implementation processes are no longer repeated here.

[0175] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0176] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.

[0177] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0178] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0179] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.

[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of the present application.

[0181] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for lossless service switching, characterized in that: The service lossless switching method includes: When there is a first service switching request, the fine-grained basic unit FGU frame is transmitted between the receiving end of the network element to be switched and the synchronization buffer module through the fine-grained FG cross link and the FlexE cross link respectively; The synchronization buffer module selects and receives FGU frames from the FlexE cross-link and sends them to the downstream network element. Perform FGU frame alignment operations so that the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when they correspond to the same multiframe number; Insert N idle code blocks between adjacent FGU frames and discard FGU frames transmitted to the synchronization buffer module through the FG cross link until the FGU frames transmitted to the synchronization buffer module through the FG cross link correspond to the same multiframe number as the selected FGU frames, where N is a positive integer greater than 1. When corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module through the FG cross-link, the FGU frame from the FG cross-link is selected by the synchronization cache module and sent to the downstream network element.

2. The method for lossless service switching according to claim 1, wherein: Before performing the FGU frame alignment operation, the method further includes: The cache mode is set so that the FG service carried on the FG cross link uses a shared cache. When the FG service uses the shared cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the shared cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the shared cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

3. The method for lossless service switching according to claim 2, wherein: After the synchronization buffer module selects and receives the FGU frame from the FG cross link and sends it to the downstream network element, the method further includes: The cache mode is switched based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the independent cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

4. The method for lossless service switching according to claim 3, wherein: After the cache mode switching is performed based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache, the method further includes: When there is a second service switching request, cache mode switching is performed based on the state machine, so that the FG service carried on the FG cross link switches from using an independent cache to using a shared cache; Check whether the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when corresponding to the same multiframe number; If they are inconsistent, an FGU frame alignment operation is performed so that the FGU frames received by the demultiplexing module on the FG cross link and the FGU frames sent by the multiplexing module are consistent when corresponding to the same multiframe number; Insert M idle code blocks between adjacent FGU frames transmitted over the FlexE cross link and sent to the synchronization buffer module egress until the FGU frames transmitted over the FlexE cross link sent from the synchronization buffer module egress and the selected FGU frames have the same multiframe number, where M is a positive integer greater than 1. When corresponding to the same multiframe number B, after completing sending the FGU frame with multiframe number B from the FG cross-link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number B transmitted to the synchronization cache module through the FlexE cross-link, the synchronization cache module selects and receives the FGU frame from the FlexE cross-link and sends it to the downstream network element.

5. The method for lossless service switching according to claim 2, wherein: The performing of the FGU frame alignment operation includes: The multiframe number and time slot number corresponding to each data code block obtained by demultiplexing the received FGU frame by the demultiplexing module on the FG cross link are transmitted backward in the form of a channel signal following; The multiplexing module on the FG cross link puts each data code block in the shared buffer into the time slot corresponding to its time slot number in the FGU frame corresponding to its multiframe number when performing multiplexing processing based on the received associated signal.

6. The method for lossless service switching according to claim 3, wherein: The state machine-based cache mode switching, so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache, includes: When the target data block is received at the entry of the cache module at the multiplexing module end, the data block corresponding to the FG service is placed into an independent cache; When the exit of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent cache and sent to the multiplexing module through the exit of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

7. The method for lossless service switching according to claim 4, wherein: The state machine-based cache mode switching, so that the FG service carried on the fine-grained FG cross link switches from using an independent cache to using a shared cache, includes: When the entry of the cache module at the multiplexing module end receives the target data code block, the data code block corresponding to the FG service is placed in the shared cache; When the exit of the multiplexing module end cache module sends out the target data code block, the data code block corresponding to the FG service is taken out from the shared cache and sent to the multiplexing module through the exit of the multiplexing module end cache module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.

8. A service lossless switching device, characterized in that: The service lossless switching device includes: The fine-grained FG cross link and the FlexE cross link are used to transmit the fine-grained basic unit FGU frame between the receiving end of the network element to be switched and the synchronization buffer module through the fine-grained FG cross link and the FlexE cross link respectively when there is a first service switching request; The receiving module is used to select FGU frames from the FlexE cross-link through the synchronization buffer module and send them to the downstream network element; An alignment module is used to perform FGU frame alignment operations so that the FGU frames received by the demultiplexing module on the FG cross link are consistent with the FGU frames sent by the multiplexing module when they correspond to the same multiframe number; A delay module is configured to insert N idle code blocks between adjacent FGU frames to be received, and discard FGU frames transmitted to the synchronization buffer module via the FG cross link until the FGU frames transmitted to the synchronization buffer module via the FG cross link correspond to the same multiframe number as the received FGU frames, where N is a positive integer greater than 1; The selection module is also used to, when corresponding to the same multiframe number A, after completing sending the FGU frame with multiframe number A from the FlexE cross link in the synchronization cache module to the downstream network element and completing discarding the FGU frame with multiframe number A transmitted to the synchronization cache module through the FG cross link, select the FGU frame from the FG cross link through the synchronization cache module and send it to the downstream network element.

9. The service lossless switching device according to claim 8, characterized in that: The service lossless switching device further includes a cache setting module, which is used to: The cache mode is set so that the FG service carried on the FG cross link uses a shared cache. When the FG service uses the shared cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the shared cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the shared cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

10. The service lossless switching device according to claim 8, wherein: The service lossless switching device further includes a cache mode switching module, which is used to: The cache mode is switched based on the state machine so that the FG service carried on the FG cross link switches from using a shared cache to using an independent cache. When the FG service uses an independent cache, the data code block corresponding to the FG service passes through the cross to reach the entrance of the cache module at the multiplexing module end, and enters the independent cache through the entrance of the cache module at the multiplexing module end. The data code block corresponding to the FG service in the independent cache passes through the exit of the cache module at the multiplexing module end to reach the multiplexing module.

Citation Information

Patent Citations

  • Variable-bandwidth multi-granularity optical add / drop network

    US20050053325A1

  • Communication method, related apparatus and computer-readable storage medium

    WO2024032269A1