Business lossless switching method and device
By performing the lossless service switching methods of FGU frame alignment and Idle code block insertion in the network node, the customer service interruption caused by cross-switching is solved, and the lossless upgrade and delay reduction of FG service is achieved.
Patent Information
- Application Number
- CN202411324860.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2044-09-23
AI Technical Summary
When cross-switching in network nodes is performed in the prior art, customer service will be interrupted and lossless switching will not be achieved.
By transmitting the fine-grained basic unit FGU frames through the fine-grained FG cross link and the FlexE cross link respectively, performing the FGU frame alignment operation and in adjacent FGU frames Insert Idle code blocks between them until the frame numbers are consistent, and the lossless switching of services is completed.
It realizes that the FG service is deployed without affecting the original customer service. The service can be built first through FlexE cross-process, and subsequent lossless switching to the FG service model, reducing latency, saving investment, and meeting the lossless upgrade needs of SPN network FG technology.
Smart Images

Figure CN119109893A_ABST
Abstract
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 is no need for FG service up / down and cross-scheduling in the network node, the FGU frame transparent transmission is generally achieved by establishing a FlexE cross-scheduling method, which can reduce latency and deployment device costs. When there is a need for FG service up / down and cross-scheduling in the future, the FlexE cross-scheduling needs to be deleted and a new FG cross-scheduling needs to be created, but this will cause the customer services originally carried by the FlexE cross-scheduling to be interrupted. 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 switching of a service, the method for lossless switching of a service comprising:
[0005] When there is a first service switching request, between the receiving end of the network element to be switched and the synchronization cache module, the fine-grained basic unit FGU frame is transmitted 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 to be received, and discard the FGU frames transmitted to the synchronization cache module through the FG cross link, until the FGU frames transmitted to the synchronization cache 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 implementation, 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 can use the shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the shared cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[0012] In combination with the first aspect, in one implementation, after the FGU frame from the FG cross link is selected and received by the synchronization buffer module and sent 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 blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the independent cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[0014] In combination with the first aspect, in an implementation manner, 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, a 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 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;
[0017] If they are not consistent, the 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] M Idle code blocks are inserted between adjacent FGU frames transmitted through the FlexE cross link and sent to the egress of the synchronization buffer module until the FGU frame transmitted through the FlexE cross link sent through the egress of the synchronization buffer module corresponds to the same multiframe number as the selected FGU frame, 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 FGU frame from the FlexE cross-link is selected by the synchronization cache module and sent to the downstream network element.
[0020] In combination 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 the demultiplexing module on the FG cross link demultiplexing the received FGU frame are transmitted backward in the form of a path 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 according to the received associated signal.
[0023] In combination with the first aspect, in one implementation, 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 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 into an independent cache;
[0025] When the export of the multiplexing module end buffer module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent buffer and sent to the multiplexing module through the export of the multiplexing module end buffer module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.
[0026] In combination with the first aspect, in one implementation, 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 into the shared cache;
[0028] 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 is taken out from the shared cache and sent to the multiplexing module through the export 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 service lossless switching device, the service lossless switching 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 cache module through the fine-grained FG cross link and the FlexE cross link respectively when there is a first service switching request;
[0031] A receiving module is used to receive FGU frames from the FlexE cross-link through the synchronization buffer module and send them to downstream network elements;
[0032] An alignment module, 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 corresponding to the same multiframe number;
[0033] A delay module is used to insert N idle code blocks between adjacent FGU frames to be received, and discard the FGU frames transmitted to the synchronization cache module through the FG cross link until the FGU frames transmitted to the synchronization cache module through 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 combination with the second aspect, in one implementation, the service lossless switching device further includes a cache setting module, which is used to:
[0036] The cache mode is set so that the FG service carried on the FG cross link can use the shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the shared cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[0037] In combination with the second aspect, in an implementation manner, the service lossless switching device further includes a cache mode switching module, which is used 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 blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the independent cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[0039] The beneficial effects brought by the technical solution 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, between the receiving end of the network element to be switched and the synchronization cache module, the fine-grained basic unit FGU frame is transmitted 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 selected adjacent FGU frames, and FGU frames transmitted to the synchronization cache module through the FG cross-link are discarded until 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, where N is a positive integer greater than 1; when corresponding 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 through the FG cross-link, the synchronization cache module selects the FGU frames from the FG cross-link and sends them to the downstream network element. Through this embodiment, when deploying FG services, network element nodes that do not contain fine-grained uplink and downlink calls and transit scheduling services can first build services through FlexE cross-link, saving investment and reducing latency; and then losslessly switching to the FG service model when there is a related service demand in the future, without affecting the original customer services, and realizing the lossless upgrade requirements 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 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 the present application;
[0043] Figure 3 This is a schematic diagram of a scenario in which the selection rate is reduced in an embodiment of the present application;
[0044] Figure 4This is a schematic diagram of selective switching in an embodiment of a 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 the present 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 A flowchart of a 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 device for lossless switching of services of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, 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 the present application are explained to facilitate those skilled in the art to understand the present application.
[0051] Flexible Ethernet (FlexE) is an improved network based on Ethernet. The Flexible Ethernet technology supports multiple flexible-rate FlexE client MACs by binding one or more Ethernet interfaces defined by the IEEE802.3 standard and channelizing them using 66b coding blocks as the basic unit.
[0052] The fine-grained (Fine Granularity, FG) service based on Flexible Ethernet adopts a hierarchical mapping mechanism, and further divides the time slot based on the fine-grained basic unit (FGU) on the basis of the 5G FlexE customer interface. The 64 / 66B encoding format is used to encode the overhead and the payload containing multiple time slots and encapsulate them into a fixed-length S block + D block + T block sequence to form an FGU frame structure.
[0053] Client service (FG-Client): client service and its data that need to be carried by the solution of this embodiment. Each client service can be allocated one or more time slots. The service data enters the periodically transmitted time slots according to the order in which they are sent.
[0054] Multiplexing (MUX): Load customer service data into the specified multiframe time slot according to the mapping relationship, form a multiframe after framing, and then transmit it.
[0055] Demultiplexing (DEMUX): Receive the data in the time slots in the multiframe into the designated customer service channel according to the mapping relationship.
[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present 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, between the receiving end of the network element to be switched and the synchronization cache module, the fine-grained basic unit FGU frame is transmitted through the fine-grained FG cross link and the FlexE cross link respectively;
[0060] Step S20, the FGU frame from the FlexE cross link is selected and received by the synchronization buffer module and sent to the downstream network element;
[0061] In this embodiment, refer to Figure 2 , Figure 2 Schematic diagram of a scenario in which a customer service is carried in an embodiment of a lossless switching method for a service of the present 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 up / down calls and cross scheduling requirements, the receiving end of the network element to be switched in the input direction sends FGU frames to both the FG cross-link and the FlexE cross-link directions, and 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 synchronous 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 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;
[0063] In this embodiment, usually, 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 they correspond to the same multiframe number, so it is necessary to perform an FGU frame alignment operation.
[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 can use the shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the shared cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[0066] In this embodiment, before performing the FGU frame alignment operation, it is necessary to make the FG service carried on the FG cross link use the shared cache. That is, the cache mode is set so that the data code blocks corresponding to the FG service pass through the cross link to reach the entrance of the cache module at the multiplexing module end, and enter the shared cache through the entrance, and the data code blocks corresponding to the FG service in the shared cache pass through the exit of the cache module at the multiplexing module end to reach the multiplexing module.
[0067] For example, the FG service occupies time slots 5 and 6, and other customer services occupy time slots 1, 2, 3, 9, and 11. When the shared cache is used, the data blocks obtained by the demultiplexing operation of the demultiplexing module (including the data blocks corresponding to the FG service and the data blocks corresponding to other customer services) arrive at the entrance of the cache module at the end of the multiplexing module through the crossover, and enter the shared cache through the entrance.
[0068] Further, 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 demultiplexing the received FGU frame are transmitted backward in a manner of following the path signal;
[0070] In this embodiment, the data code block refers to the data payload part contained in the FGU frame except the synchronization header and overhead, that is, the customer service data carried by the FG cross-link; the multi-frame number is MFI (Multi-Frame Indicator); the following 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 according to the received associated signal.
[0073] In this embodiment, the demultiplexing module performs a demultiplexing operation on 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 the data code blocks 1 to 11 is u1. Since this information is transmitted backward in a manner following the accompanying signal, the multiplexing module can multiplex the received accompanying signal to obtain an FGU frame with a multiframe number of u1, and time slots 1 to 11 in the FGU frame correspond to data code blocks 1 to 11 respectively, thereby achieving consistency between the FGU frame received by the demultiplexing module on the FG cross-link and the FGU frame sent by the multiplexing module when corresponding to the same multiframe number.
[0074] Step S40, inserting N Idle code blocks between adjacent FGU frames to be received, and discarding the FGU frames transmitted to the synchronization cache module through the FG cross link, until the FGU frames transmitted to the synchronization cache 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;
[0075] In this embodiment, continue to refer to Figure 2 , the FGU frames are not processed on the FlexE cross-link and are transparently transmitted to the synchronization cache module; on the FG cross-link, the FGU frames need to be demultiplexed, multiplexed, and processed, which will result in different multiframe numbers corresponding to the FGU frames transmitted to the synchronization cache module through the FG cross-link and the selected FGU frames, 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 required 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 FIG. 1 is a schematic diagram of a scenario in which the selection rate is reduced in an embodiment of the present application. Figure 3 As shown, 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 cache 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 sending end of the network element to be switched can select the FGU frame with the multiframe number U6 transmitted through the FlexE cross-link after selecting 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] Among them, N can be a preset value, and N is set based on the performance of the synchronization cache module. It is easy to understand that the larger the N value, the higher the performance requirement for the synchronization cache module, and the faster the FGU frame transmitted to the synchronization cache module through the FG cross link and the selected FGU frame correspond to the same multiframe number.
[0080] 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 synchronization cache module selects the FGU frame from the FG cross-link and sends it 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 an embodiment of the lossless switching method of the present 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, that is, the service is completed. Lossless switching from FlexE cross to FG cross.
[0082] It should be noted that, after step S50, the FlexE cross-connection may be deleted, that is, the customer service is transmitted only through the FG cross-connection.
[0083] Further, 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 further includes:
[0084] Step S60, switching the cache mode 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, wherein when the FG service uses an independent cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entrance of the cache module at the multiplexing module end, and the data code blocks corresponding to the FG service in the independent cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
[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 numbered 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) arrive at the entrance of the cache module at the end of the multiplexing module through the crossover, 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 arrive at the entrance of the cache module at the end of the multiplexing module through the crossover, and enter the independent cache corresponding to the FG service through the entrance, and subsequently, the data code blocks corresponding to the FG service in the independent cache arrive at the multiplexing module through the exit of the cache module at the end of the multiplexing module for multiplexing operation; the data code blocks corresponding to other customer services arrive at the entrance of the cache module at the end of the multiplexing module through the crossover, and enter the shared cache through the entrance.
[0086] In the embodiment of the present application, when there is a first service switching request, between the receiving end of the network element to be switched and the synchronization cache module, the fine-grained basic unit FGU frame is transmitted 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 selected adjacent FGU frames, and FGU frames transmitted to the synchronization cache module through the FG cross-link are discarded until 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, where N is a positive integer greater than 1; when corresponding 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 through the FG cross-link, the synchronization cache module selects the FGU frames from the FG cross-link and sends them to the downstream network element. Through this embodiment, when deploying FG services, network element nodes that do not contain fine-grained uplink and downlink calls and transit scheduling services can first build services through FlexE cross-link, saving investment and reducing latency; and then losslessly switching to the FG service model when there is a related service demand in the future, without affecting the original customer services, and realizing the lossless upgrade requirements of SPN network FG technology.
[0087] Further, in one embodiment, referring to Figure 7 , Figure 7 This is a flow chart of the third embodiment of the method for lossless switching of services in this application. Figure 7 As shown, after step S60, the following further includes:
[0088] Step S70, when there is a second service switching request, switching the cache mode 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 the FG cross-connect service has high flexibility and can realize point-to-multipoint cross-connect, its service model is more complex and the service transmission delay is higher. Therefore, when the network element to be switched does not have the FG service call up / down and cross-connect scheduling requirements, the second service switching request is triggered to switch from the FG cross-connect to the FlexE cross-connect, so that the service model is simpler and the service transmission delay is lower.
[0090] Referring to the description of step S60 above, the cache mode at this time is independent cache. When there is a second service switching request, the cache mode needs to be switched from independent cache to shared cache first. The data code blocks obtained by the demultiplexing module through the demultiplexing operation (including data code blocks corresponding to the FG service and data code blocks corresponding to other customer services) are crossed to reach the entrance of the cache module at the multiplexing module end, and enter the shared cache through the entrance. Subsequently, the data code blocks in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end for multiplexing operation.
[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 not consistent, performing FGU frame alignment operation 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;
[0093] In this embodiment, although the FGU frame alignment operation has been performed once in the above step S30, the alignment may fail due to configuration modification, device restart and other operations. Therefore, it is determined whether the FGU frame alignment operation is required. That is, it is detected 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. If not, the FGU frame alignment operation is performed. Here, the above-mentioned embodiments of steps S301 to S302 can be referred to, and no further description is given here.
[0094] It should be noted that if the judgment result of step S80 is consistent, step S100 is directly performed.
[0095] Step S100, inserting M Idle code blocks between adjacent FGU frames transmitted through the FlexE cross link and sent to the egress of the synchronization cache module, until the FGU frame transmitted through the FlexE cross link sent through the egress of the synchronization cache module corresponds to the same multiframe number as the selected FGU frame, 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 the FGU frame from the FG cross link in the synchronization cache module, the FGU frame from the FlexE cross link in the synchronization cache is also sent to the transmitting end of the network element to be switched through the synchronization cache module outlet, and the transmitting end will discard it after receiving it. Referring to the description of the embodiment of step S40, since the number of the FGU frame transmitted to the synchronization cache module through the FlexE cross link is greater than the multi-frame number of the selected FGU frame, it is necessary to insert M Idle code blocks between sending adjacent FGU frames transmitted through the FlexE cross link to the synchronization cache module outlet, so as to reduce the rate of transmitting the FGU frame from the FlexE cross link to the synchronization cache module outlet. In this way, as time goes by, the FGU frame transmitted through the FlexE cross link sent through the synchronization cache module outlet and the selected FGU frame will correspond to the same multi-frame number.
[0097] 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 to FlexE cross.
[0099] Furthermore, in one embodiment, step S60 includes:
[0100] 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 into an independent cache;
[0101] When the export of the multiplexing module end buffer module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent buffer and sent to the multiplexing module through the export of the multiplexing module end buffer 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 data code blocks of client_j obtained by demultiplexing 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 multiplexing module end cache module is in the shared cache F[i], and the exit of the multiplexing module end cache module 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 demultiplexed data code block 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 demultiplexed data code block 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 end receives the data code block with the first time slot mark PS;
[0114] E1: The entry of the buffer module at the multiplexing module end receives a data code block without the first time slot marker PS;
[0115] E2: The exit of the buffer module at the multiplexing module end sends out a data code block without the first time slot mark 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 block of client_j is sent to F[i][j], and the data block of client_j is taken out from F[i][j];
[0121] A3: The state changes to S2; 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].
[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 is A1. Then the state S0 is maintained 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 into 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 is A2. Then the state S3 is maintained 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 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, between a receiving end and a transmitting end of the network element to be switched, the fine-grained basic unit FGU frame is transmitted through the fine-grained FG cross link and the FlexE cross link respectively;
[0138] The transmitter selects and 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] Perform 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 for which the last demultiplexing process was performed;
[0143] If the format of the FGU frame complies with 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 is discarded;
[0145] Detect whether the demultiplexing processing result 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 a 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 end and the sending end of the network element to be switched, after the FGU frame alignment operation is completed, the sending end selects the FGU frame from the FG cross-link and sends it to the downstream network element. Subsequently, a legitimacy check is performed on each FGU frame received by the downstream network element. If the legitimacy check passes, subsequent processing continues; if the legitimacy check fails, the FGU frame is discarded. This embodiment realizes lossless switching of services from FlexE cross-link to FG cross-link by changing the processing logic of the downstream network element, and eliminates the cost required to set up a synchronization cache module.
[0149] In a second aspect, an embodiment of the present application also 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 the present 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 used to transmit the fine-grained basic unit FGU frame between the receiving end of the network element to be switched and the synchronization cache module 40 through the fine-grained FG cross link 10 and the FlexE cross link 20 respectively when there is a first service switching request;
[0152] The receiving module 30 is used to receive the FGU frame from the FlexE cross link 20 in the synchronization buffer module 40 and send it to the downstream network element;
[0153] The alignment module 50 is used to perform the FGU frame alignment operation so that the FGU frame received by the demultiplexing module 101 on the FG cross link 10 and the FGU frame sent by the multiplexing module 102 are consistent when corresponding to the same multiframe number;
[0154] The delay module 60 is used to insert N Idle code blocks between adjacent FGU frames to be received, and discard the FGU frame transmitted to the synchronization buffer module 40 through the FG cross link 10, until the FGU frame transmitted to the synchronization buffer module 40 through the FG cross link 10 corresponds to the same multiframe number as the received FGU frame, where N is a positive integer greater than 1;
[0155] The receiving module 30 is also used for, 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, to 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 used to:
[0157] A cache mode is set so that the FG service carried on the FG cross-link 10 uses a shared cache, wherein 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, and 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 used 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, wherein when the FG service uses an independent cache, the data code blocks corresponding to the FG service reach the entry 1021 of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entry 1021 of the cache module at the multiplexing module end, and the data code blocks corresponding to the FG service in the independent cache reach the multiplexing module 102 through the exit 1022 of the cache module at the multiplexing module end.
[0160] Further, 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 service lossless switching also 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 used to perform an FGU frame alignment operation if there is inconsistency, so that the FGU frame received by the demultiplexing module on the FG cross link and the FGU frame 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 cache module 40 through the FlexE cross link 20 and sent to the synchronization cache module egress, until the FGU frame transmitted through the FlexE cross link 20 sent through the synchronization cache module egress corresponds to the same multiframe number as the selected FGU frame, where M is a positive integer greater than 1;
[0164] The receiving module 30 is also used for, 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, to 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 used to:
[0166] The multiframe number and time slot number corresponding to each data code block obtained by the demultiplexing module 101 on the FG cross link 10 after demultiplexing the received FGU frame are transmitted backward in a manner of 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 its time slot number in the FGU frame corresponding to its multiframe number when performing multiplexing processing according to the received associated signal.
[0168] Further, in one embodiment, the cache mode switching module 80 is specifically configured to:
[0169] 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 put into the independent buffer;
[0170] When the exit 1022 of the multiplexing module end buffer module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent buffer and sent to the multiplexing module 102 through the exit 1022 of the multiplexing module end buffer module. The time slot number of the target data code block is the minimum time slot number corresponding to the FG service.
[0171] Further, 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 put 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 only for description 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 "first", "second" and "third" to different types.
[0177] In the description of the embodiments of the present application, "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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[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; the “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 that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially 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, disk, CD) as described above, and includes a number of instructions for 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 are not intended to 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 comprises: When there is a first service switching request, between the receiving end of the network element to be switched and the synchronization cache module, the fine-grained basic unit FGU frame is transmitted 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 to be received, and discard the FGU frames transmitted to the synchronization cache module through the FG cross link, until the FGU frames transmitted to the synchronization cache 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, characterized in that: 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 can use the shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the shared cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
3. The method for lossless service switching according to claim 2, wherein: After the FGU frame from the FG cross link is selected and received by the synchronization buffer module and sent 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 blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the independent cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
4. The method for lossless service switching according to claim 3, characterized in that: 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, a 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 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; If they are not consistent, the 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; M Idle code blocks are inserted between adjacent FGU frames transmitted through the FlexE cross link and sent to the egress of the synchronization buffer module until the FGU frame transmitted through the FlexE cross link sent through the egress of the synchronization buffer module corresponds to the same multiframe number as the selected FGU frame, 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 FGU frame from the FlexE cross-link is selected by the synchronization cache module and sent 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 comprises: The multiframe number and time slot number corresponding to each data code block obtained by the demultiplexing module on the FG cross link demultiplexing the received FGU frame are transmitted backward in the form of a path 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 according to the received associated signal.
6. The method for lossless service switching according to claim 3, characterized in that: 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 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 into an independent cache; When the export of the multiplexing module end buffer module sends out the target data code block, the data code block corresponding to the FG service is taken out from the independent buffer and sent to the multiplexing module through the export of the multiplexing module end buffer 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, characterized in that: 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 into the shared cache; 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 is taken out from the shared cache and sent to the multiplexing module through the export 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 comprises: 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 cache module through the fine-grained FG cross link and the FlexE cross link respectively when there is a first service switching request; A receiving module is used to receive FGU frames from the FlexE cross-link through the synchronization buffer module and send them to downstream network elements; An alignment module, 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 corresponding to the same multiframe number; A delay module is used to insert N idle code blocks between adjacent FGU frames to be received, and discard the FGU frames transmitted to the synchronization cache module through the FG cross link until the FGU frames transmitted to the synchronization cache module through 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 also 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 can use the shared cache. When the FG service uses the shared cache, the data code blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the shared cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the shared cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
10. The service lossless switching device according to claim 8, characterized in that: 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 blocks corresponding to the FG service reach the entrance of the cache module at the multiplexing module end through the cross, and enter the independent cache through the entrance of the cache module at the multiplexing module end. The data code blocks corresponding to the FG service in the independent cache reach the multiplexing module through the exit of the cache module at the multiplexing module end.
Citation Information
Patent Citations
Network service establishment method, cooperation control centre and network system
CN106233679A
Communication link negotiation method and system
CN114337952A
Service processing method and device
CN114615142A
Communication method, device and chip system
CN114915366A
Method and device for optimizing network delay in flexible Ethernet
CN115189811A
