Method and device for adjusting physical interface in flexible Ethernet group

By adjusting the reading speed of the cache queue and discarding code blocks in the FlexE group, the delay alignment of the physical interface is achieved, which solves the problem of mismatch between the Ethernet interface rate and the service traffic bandwidth, and achieves lossless adjustment of the physical interface in the FlexE group. Improved user experience and data transmission efficiency.

CN116057865BActive Publication Date: 2024-09-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080102324.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2024-09-17
Estimated Expiration
2040-07-31

AI Technical Summary

Technical Problem

The existing Ethernet interface standard is a fixed rate, which results in a mismatch between the service traffic bandwidth and the interface rate, affecting data transmission efficiency. When adding or deleting physical interfaces, the FlexE group needs to be deleted and rebuilt, affecting business continuity and user experience.

Method used

Without deleting the established FlexE group, by adjusting the reading speed of the cache queue and discarding code blocks, the delay alignment of the physical interface is achieved, allowing the addition or deletion of physical interfaces in the FlexE group, and maintaining the continuity of business data transmission. sex.

Benefits of technology

It achieves lossless adjustment of physical interfaces in the FlexE group, improves user communication experience, avoids interruption and delay of data transmission services, and improves the matching between interface rate and business traffic bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116057865B
    Figure CN116057865B
Patent Text Reader

Abstract

The present application relates to the field of communications, and in particular to a method and device for adjusting a physical interface in a flexible Ethernet group. The method includes: writing a code block received through a first physical interface into a first cache queue; reading the code blocks in the first cache queue at a first reading speed; receiving information for indicating the addition of a second physical interface to transmit service data in the first flexible Ethernet group; when it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, slowing down the reading of the code blocks in the first cache queue until the number of code blocks in the first cache queue increases by K, and then restoring the normal reading speed; starting from receiving a specific overhead code block of a first overhead frame through the first physical interface, writing the first overhead header and subsequent code blocks subsequently received through the second physical interface into a second cache queue; when the overhead header of the second overhead frame is read from the first cache queue, starting to read the code blocks in the second cache queue at the first reading speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for adjusting a physical interface in a flexible Ethernet group. Background Art

[0002] In the history of Ethernet development, it is often necessary to resolve the contradiction between the growth of Ethernet interface rate and the growth of service traffic bandwidth. The interface rate growth is 10 Gigabit Ethernet (GE), 40GE, 100GE, etc. The growth of service traffic bandwidth is from 100GE to 400GE, 1 Terabit Ethernet (TE), etc. Since the industry is step-by-step in the formulation of Ethernet interface standards and product development, there is bound to be a gap between the service data transmission requirements and the actual device interface capabilities. In addition, the current Ethernet interface standards are all fixed rates, which inevitably lead to the inability to effectively utilize optical fiber bandwidth resources when docking with optical interface devices.

[0003] In order to solve the problem of matching service traffic bandwidth and interface, the Optical Internet Forum (OIF) Flexible Ethernet (FlexE) standard technology creates an adaptation layer of medium access control (MAC) and physical coding sublayer (PCS), which bundles multiple low-speed (such as 100GE) physical interfaces (physical, PHY) into a flexible Ethernet group (FlexE group) to achieve greater transmission performance of the device, so that multiple service data streams can be aggregated to one or more PHYs for transmission, so that the Ethernet interface rate and service traffic bandwidth can be flexibly matched.

[0004] When you need to add or delete PHY in an established FlexE group, you need to delete the established FlexE group and then form a new FlexE group. The corresponding PHY is added or deleted in the new FlexE group. In this way, the solution of adding or deleting PHY by deleting the established FlexE group and re-forming a new FlexE group will affect the ongoing data transmission service of the established FlexE group; and the deletion and reconstruction of the FlexE group takes a long time (on the order of 50ms), affecting the user's communication experience. Summary of the invention

[0005] The embodiments of the present application provide a method and device for adjusting physical interfaces in a flexible Ethernet group, which can adjust the physical interfaces in the flexible Ethernet group without affecting the transmission of service data in the flexible Ethernet group.

[0006] In a first aspect, an embodiment of the present application provides a method for adjusting a physical interface in a flexible Ethernet group, which is used to receive a data service through a first flexible Ethernet group, the method comprising: receiving a code block through a first physical interface, and writing the code block of the first physical interface into a first cache queue at a first write speed, wherein the first flexible Ethernet group comprises a first physical interface; reading the code block in the first cache queue at a first read speed, the first read speed being equal to the first write speed; receiving first indication information, the first indication information being used to indicate adding a second physical interface to transmit service data in the first flexible Ethernet group; discarding the code block received through the second physical interface; determining the relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface; and when it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, discarding the code block received through the second physical interface; The reading speed of the cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed, where K is a positive integer; after the number of code blocks in the first cache queue increases by K, starting from the specific overhead code block of the first overhead frame received through the first physical interface, the first overhead header and subsequent code blocks subsequently received through the second physical interface are written into the second cache queue, wherein the first overhead frame is the first overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K; when the overhead header of the second overhead frame is read from the first cache queue, the code blocks in the second cache queue are read at the first reading speed, wherein the second overhead frame is the second overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K.

[0007] That is, PHY can be added to the FlexE group without deleting the established FlexE group, and the overhead alignment of the added PHY and the existing PHY in the FlexE group on the receiving side can be achieved.

[0008] The method of discarding the code blocks received through the second physical interface may specifically refer to not writing the code blocks into the cache.

[0009] In one possible implementation, the relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface can be determined by judging whether the overhead header transmitted by the first physical interface or the overhead header transmitted by the second physical interface is received first; if the overhead header transmitted by the first physical interface is received first, it can be determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface; if the overhead header transmitted by the second physical interface is received first, it can be determined that the transmission delay of the first physical interface is greater than the transmission delay of the second physical interface.

[0010] That is to say, in this implementation, the magnitude relationship of the transmission delays of the two physical interfaces can be determined by simply judging which physical interface transmission overhead header reaches the receiving side first.

[0011] In one possible implementation, the method also includes: determining the delay difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface; determining the value of K based on the delay difference, the rate of the first physical interface, and the bit length of the code block transmitted by the first physical interface; wherein the value of K is proportional to the delay difference, proportional to the rate of the first physical interface, and inversely proportional to the bit length of the code block transmitted by the first physical interface.

[0012] That is to say, in this implementation, when the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, that is, when the overhead header transmitted by the second physical interface arrives late, it is possible to determine the number of code blocks that need to be accumulated in the cache queue used to cache the code blocks transmitted by the first physical interface, so as to subsequently achieve read alignment between the second physical interface and the first physical interface.

[0013] In one possible implementation, when it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed, including: when it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, and it is determined that the difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface is less than a preset threshold, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed.

[0014] That is to say, in this implementation method, when it is determined that the latency difference between the second physical interface and the first physical interface meets the latency requirement between different physical interfaces in the same FlexE group, the reading speed of the first cache queue can be reduced to the second reading speed to achieve subsequent read alignment.

[0015] In a possible implementation, a difference between the first reading speed and the second reading speed is less than a clock jitter requirement.

[0016] That is, in this implementation, the reduction in reading speed is less than the clock jitter requirement, thereby avoiding interruption of data transmission services being transmitted by the first flexible Ethernet group, thereby improving user communication experience.

[0017] In one possible implementation, the method also includes: when it is determined that the transmission delay of the second physical interface is less than the transmission delay of the first physical interface, writing the first overhead header and subsequent code blocks received through the second physical interface into the second cache queue; when the second overhead header is read from the first cache queue, starting to read the code blocks in the second cache queue at the first reading speed, and the second overhead header is the first overhead header received through the first physical interface after receiving the first overhead header.

[0018] In a possible implementation manner, the first indication information is a message generated after the sending side overheads of the first physical interface and the second physical interface are aligned.

[0019] That is, in this implementation, after the overhead alignment of the first physical interface and the second physical interface on the sending side is performed, the receiving device is notified to add the second physical interface to the first flexible Ethernet group, thereby facilitating the overhead alignment on the receiving side.

[0020] In a possible implementation, the first indication message is a message sent by a sending device, and the first indication message is information in a FlexE group number field in an overhead frame transmitted by the second physical interface.

[0021] That is, in this implementation, the sending device can instruct the receiving device to add a physical interface to the flexible Ethernet group by changing the content in the FlexE group number field.

[0022] In a possible implementation, the first indication message is a message sent by a sending device, and the first indication message is information in a PHY map field in an overhead frame transmitted by the second physical interface.

[0023] That is, in this implementation, the sending device can instruct the receiving device to add a physical interface to the flexible Ethernet group by changing the content in the PHY map field.

[0024] In a possible implementation manner, the first indication message is a message sent by a network management device, and the first indication message includes an identifier of the second physical interface.

[0025] That is, in this implementation, the network management device can instruct the receiving device to add a physical interface to the flexible Ethernet group.

[0026] In one possible implementation, determining the size relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface includes: determining the size relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface based on a first moment of receiving the overhead header transmitted by the first physical interface and a second moment of receiving the overhead header transmitted by the second physical interface within a first time period; the starting point of the first time period is the moment of receiving the i-th overhead code block of the fourth overhead frame, and the end point is the moment of receiving the j-th overhead code block of the fifth overhead frame; the fourth overhead frame and the fifth overhead frame are two adjacent overhead frames transmitted by the first physical interface, and the fifth overhead frame is located after the fourth overhead frame; wherein, when the first moment is greater than the second moment, it is determined that the transmission delay of the first physical interface is greater than the transmission delay of the second physical interface; when the first moment is less than the second moment, it is determined that the transmission delay of the first physical interface is less than the transmission delay of the second physical interface.

[0027] That is, in this implementation, the magnitude relationship of the transmission delays of the two physical interfaces can be determined by comparing the times when the overhead headers transmitted by the two physical interfaces reach the receiving side.

[0028] In a second aspect, an embodiment of the present application provides a communication device for receiving data services through a first flexible Ethernet group, the device comprising: a processor, a memory, and a transceiver; the memory is used to store computer instructions; when the communication device is running, the processor executes the computer instructions, so that the communication device executes: receiving code blocks through a first physical interface, and writing the code blocks of the first physical interface into a first cache queue at a first write speed, wherein the first flexible Ethernet group comprises a first physical interface; used to read the code blocks in the first cache queue at a first read speed, the first read speed and the first write speed being equal; receiving first indication information, the first indication information being used to indicate adding a second physical interface to transmit service data in the first flexible Ethernet group; discarding the code blocks received through the second physical interface; determining the relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface; when the second physical interface is determined When the transmission delay is greater than the transmission delay of the first physical interface, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed, where K is a positive integer; after the number of code blocks in the first cache queue increases by K, starting from the specific overhead code block of the first overhead frame received through the first physical interface, the first overhead header and subsequent code blocks subsequently received through the second physical interface are written into the second cache queue, wherein the first overhead frame is the first overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K; when the overhead header of the second overhead frame is read from the first cache queue, the code blocks in the second cache queue are read at the first reading speed, wherein the second overhead frame is the second overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K.

[0029] In one possible implementation, the processor executes the computer instructions so that the communication device further executes: determining the delay difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface; determining the value of K based on the delay difference, the rate of the first physical interface, and the bit length of the code block transmitted by the first physical interface; wherein the value of K is proportional to the delay difference, proportional to the rate of the first physical interface, and inversely proportional to the bit length of the code block transmitted by the first physical interface.

[0030] In one possible implementation, the processor executes computer instructions so that the communication device further executes: when it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, and it is determined that the difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface is less than a preset threshold, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed.

[0031] In a possible implementation, a difference between the first reading speed and the second reading speed is less than a clock jitter requirement.

[0032] In one possible implementation, the processor executes computer instructions so that the communication device further executes: when it is determined that the transmission delay of the second physical interface is less than the transmission delay of the first physical interface, writing the first overhead header and subsequent code blocks received through the second physical interface into the second cache queue; when the second overhead header is read from the first cache queue, starting to read the code blocks in the second cache queue at the first reading speed, the second overhead header being the first overhead header received through the first physical interface after receiving the first overhead header.

[0033] In a possible implementation manner, the first indication information is a message generated after the overheads of the sending sides of the first physical interface and the second physical interface are aligned.

[0034] In a possible implementation, the first indication message is a message sent by a sending device, and the first indication message is information in a FlexE group number field in an overhead frame transmitted by the second physical interface.

[0035] In a possible implementation, the first indication message is a message sent by a sending device, and the first indication message is information in a PHY map field in an overhead frame transmitted by the second physical interface.

[0036] In a possible implementation manner, the first indication message is a message sent by a network management device, and the first indication message includes an identifier of the second physical interface.

[0037] In one possible implementation, the processor executes computer instructions so that the communication device also executes: determining the relationship between the transmission delay of the second physical interface and the transmission delay of the first physical interface based on a first moment of receiving the overhead header transmitted by the first physical interface and a second moment of receiving the overhead header transmitted by the second physical interface within a first time period; the starting point of the first time period is the moment of receiving the i-th overhead code block of the fourth overhead frame, and the end point is the moment of receiving the j-th overhead code block of the fifth overhead frame; the fourth overhead frame and the fifth overhead frame are two adjacent overhead frames transmitted by the first physical interface, and the fifth overhead frame is located after the fourth overhead frame; wherein, when the first moment is greater than the second moment, it is determined that the transmission delay of the first physical interface is greater than the transmission delay of the second physical interface; when the first moment is less than the second moment, it is determined that the transmission delay of the first physical interface is less than the transmission delay of the second physical interface.

[0038] The communication device provided in the second aspect is used to execute the method provided in the first aspect. The technical effect thereof can refer to the above description of the technical effect of the method provided in the first aspect, and will not be repeated here.

[0039] In a third aspect, an embodiment of the present application provides a method for adjusting physical interfaces in a flexible Ethernet group, which is used to send data services through a first flexible Ethernet group, the method comprising: determining that a second physical interface needs to be added to the first flexible Ethernet group; setting the sending time of the overhead header of the second physical interface according to the sending time of the overhead header of the first physical interface, so as to achieve overhead alignment of the first physical interface and the second physical interface on the sending side; sending a first indication message to a receiving device, the first indication information being used to indicate that the second physical interface is added to the first flexible Ethernet group, so that the receiving device performs overhead alignment of the first physical interface and the second physical interface on the receiving side.

[0040] That is to say, in this method, the sending time of the overhead header of the PHY to be added can be determined according to the sending time of the overhead header of the existing PHY in the FlexE group, thereby achieving overhead alignment of the existing PHY and the PHY to be added on the sending side.

[0041] In a fourth aspect, an embodiment of the present application provides a communication device for sending data services through a first flexible Ethernet group, the device comprising: a processor, a memory, and a transceiver; the memory is used to store computer instructions; when the communication device is running, the processor executes the computer instructions, so that the communication device executes: determining that a second physical interface needs to be added to the first flexible Ethernet group; setting the sending time of the overhead header of the second physical interface according to the sending time of the overhead header of the first physical interface to achieve overhead alignment of the first physical interface and the second physical interface on the sending side; sending a first indication message to a receiving device, the first indication information is used to indicate that the second physical interface is added to the first flexible Ethernet group, so that the receiving device performs overhead alignment of the first physical interface and the second physical interface on the receiving side.

[0042] In a fifth aspect, an embodiment of the present application provides a method for adjusting physical interfaces in a flexible Ethernet group, which is used to send data services through a first flexible Ethernet group, and the first flexible Ethernet group corresponds to a preset baseline overhead phase; the method includes: determining that a first physical interface needs to be added to the first flexible Ethernet group; determining, based on the baseline overhead phase, a time to send an overhead header of the first physical interface; and sending a first indication message to a receiving device, the first indication information being used to indicate that the first physical interface is added to the first flexible Ethernet group, so that the receiving device aligns the overhead of the first physical interface and the existing physical interfaces in the first flexible Ethernet group on the receiving side.

[0043] That is, in this method, the sending time of the overhead headers of the existing PHY and the PHY to be added in the FlexE group can be set according to the reference overhead phase, thereby achieving overhead alignment of the existing PHY and the PHY to be added on the sending side.

[0044] In a sixth aspect, an embodiment of the present application provides a communication device for sending data services through a first flexible Ethernet group, wherein the first flexible Ethernet group corresponds to a preset baseline overhead phase; the device comprises: a processor, a memory, and a transceiver; the memory is used to store computer instructions; when the communication device is running, the processor executes the computer instructions, so that the communication device executes: determining that a first physical interface needs to be added to the first flexible Ethernet group; determining, based on the baseline overhead phase, a time to send an overhead header of the first physical interface; and sending a first indication message to a receiving device, wherein the first indication information is used to indicate that the first physical interface is added to the first flexible Ethernet group, so that the receiving device performs overhead alignment on the receiving side between the first physical interface and an existing physical interface in the first flexible Ethernet group.

[0045] In the seventh aspect, an embodiment of the present application provides a chip system, comprising: a processor and an interface circuit, the processor and the interface circuit are connected, and are used to execute instructions so that a communication device equipped with the chip system executes the method provided in the first aspect, the method provided in the third aspect, or the method provided in the fifth aspect.

[0046] In an eighth aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on a communication device, the communication device executes the method provided in the first aspect, the method provided in the third aspect, or the method provided in the fifth aspect.

[0047] In the ninth aspect, an embodiment of the present application provides a computer program product, which, when the program code contained in the computer program product is executed by a processor in a communication device, implements the method provided in the first aspect, the method provided in the third aspect, or the method provided in the fifth aspect.

[0048] The method and device for adjusting the physical interface in a flexible Ethernet group provided in the embodiments of the present application can adjust the PHY in the FlexE group without affecting the service data transmission of the FlexE group, thereby realizing lossless adjustment of the PHY in the FlexE group and improving the user communication experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a flexible Ethernet structure;

[0050] Figure 2 It is a schematic diagram of the structure of a sending device based on the flexible Ethernet protocol;

[0051] Figure 3 It is a schematic diagram of the structure of a receiving device based on the flexible Ethernet protocol;

[0052] Figure 4A A schematic diagram of a code block sent by a sending device based on a flexible Ethernet protocol;

[0053] Figure 4B A schematic diagram of the structure of an overhead frame based on the flexible Ethernet protocol;

[0054] Figure 5A is a schematic diagram of an alignment window on a receiving device side;

[0055] Figure 5B A schematic diagram of a cache queue of a receiving device;

[0056] Figure 5C A schematic diagram of a cache queue of a receiving device;

[0057] Fig. 6A is a schematic diagram of an alignment window on a receiving device side;

[0058] Figure 6B A schematic diagram of a cache queue of a receiving device;

[0059] Figure 6C A schematic diagram of a cache queue of a receiving device;

[0060] Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of a chip system structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0063] In the description of this specification, "one embodiment" or "some embodiments" etc. means that one or more embodiments of the present application include a specific feature, structure or characteristic described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0064] In the description of this specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, 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" means two or more than two.

[0065] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0066] Figure 1 A flexible Ethernet system is shown. Among them, four PHY interfaces can be bundled into a flexible Ethernet group (FlexE group). The data of each of multiple flexible Ethernet protocol clients (FlexEclient) can be transmitted on a specified time slot (one time slot or multiple time slots) of the flexible Ethernet group. One flexible Ethernet protocol client corresponds to one user service data stream (for example, a media access control client (MAC client)). The FlexE shim, that is, the adaptation layer between the MAC layer and the PCS layer, is used to map the data of the flexible Ethernet protocol client to the PHY interface in the flexible Ethernet group.

[0067] Figure 2 FIG. 1 is a schematic diagram of the structure of a FlexE sending device. Figure 2 As shown, the sending device can send data of multiple FlexE clients (such as FlexE client #1, FlexE client #2, FlexE client #M, etc.). The sending device can perform client processing on the data of each FlexE client, for example, 64B / 66B encoding can be performed to obtain a code block stream. The sending device can add / delete idle code blocks in the code block stream to perform rate adaptation for the FlexE client and the FlexE group. The sending device can map the rate-adapted code block stream to the time slot of the FlexE mezzanine, and then allocate the time slot to each PHY for transmission according to the corresponding relationship between the time slot and each PHY in the FlexE group. Among them, as Figure 2 As shown in FIG. 1 , when allocating time slots to each PHY, an overhead (OH) code block can be inserted between the time slots corresponding to each PHY to obtain an overhead frame. Then, the overhead frame is transmitted. In other words, what the PHY transmits is an overhead frame carrying the data of the FlexE customer. The overhead frame will be described in detail below and will not be repeated here.

[0068] Figure 3 FIG. 1 is a schematic diagram of the structure of a FlexE receiving device. Figure 3 As shown, the receiving device can receive the overhead frames transmitted by each PHY in the FlexE group, and after delay deviation is supplemented according to the overhead boundary in the overhead frame and data alignment is achieved, the data of the FlexE customer can be extracted from the data carried by the overhead frame according to the mapping table. The extracted FlexE customer data is added / deleted with idle code blocks to adapt to the rate of the FlexE customer, so that the upper layer module (such as the MAC module) can further process the data of the FlexE customer.

[0069] Figure 4A The figure is a schematic diagram of a code block structure for PHY transmission. The time domain resources of PHY are divided into 20 time slots, and data is sent and received with 20 time slots as a cycle. In each of these 20 time slots, the sending and receiving rate of PHY is 5Gbps. A data code block can be sent or received in a time slot. An overhead code block can be inserted into every 1023×20 time slots. For example, when the bandwidth of PHY is 100G, the time interval between adjacent overhead code blocks is about 13.1 microseconds.

[0070] It should be noted that in the embodiment of the present application, data code blocks and overhead code blocks may be collectively referred to as code blocks. That is, a data code block is a code block, and an overhead code block is also a code block. When a code block is mentioned below, it may refer to a data code block or an overhead code block.

[0071] In the embodiments of the present application, unless otherwise specified, "before" refers to "before" in the time sequence or in the transmission sequence. Correspondingly, "after" refers to "after" in the time sequence or in the transmission sequence.

[0072] Eight adjacent overhead code blocks and the data code blocks after each overhead code block constitute an overhead frame (overhead frame), which can also be called a basic overhead frame.

[0073] Figure 4B The figure is a schematic diagram of the structure of eight overhead code blocks in an overhead frame. Among them, the first overhead code block of the overhead frame, that is, overhead code block 1, can be called the overhead header or overhead boundary of the overhead frame. The overhead header is the boundary between two overhead frames. The overhead header belongs to the latter of the two overhead frames, and the previous code block of the overhead header belongs to the previous overhead frame of the two overhead frames.

[0074] See also Figure 4B, the overhead code block 1 in the overhead frame may include a FlexE group number field. The FlexE group number field is used to indicate the FlexE group, and different FlexE groups have different FlexE group numbers. Overhead code block 1 may also include a C field, an overhead multiframe indicator (OMF) field, etc. Among them, the C field is used to indicate the current timeslot allocation table (calendar configuration in use).

[0075] Continue reading Figure 4B The overhead code block 2 in the overhead frame may include fields such as a C field, a PHY map field, and a FlexE instance number field.

[0076] The PHY map field is used to indicate the members in the FlexE group, that is, the PHY map field is used to indicate which PHYs belong to the FlexE group. Specifically, the PHY map field has multiple bits, and each PHY in the FlexE group can be mapped to one of the multiple bits, where the position of the bit in the PHY map field is consistent with the position of the FlexE instance number of the corresponding PHY. For example, for a PHY with a FlexE instance number of 0 and a PHY with a FlexE instance number of 4, the bit value of the first bit and the bit value of the second bit in the PHYmap field are set to 1.

[0077] The FlexE instance number is used to identify a PHY. Different PHYs have different FlexE instance numbers.

[0078] In an embodiment of the present application, the PHY in the FlexE group can be an independent PHY or a slice of a PHY. A slice can also be called a network slice. According to the FlexE2.0 protocol, a PHY can be cut into two or more network resources that are logically independent or insulated from each other. Each network resource can be called a slice of the PHY.

[0079] For example, for a PHY with a rate of 100 Gbps or less, it can be used as a PHY in a FlexE group. For a PHY with a rate of N×100 Gbps, it can be divided into N slices, wherein the rate of one slice is 100 Gbps.

[0080] When a PHY A1 in the FlexE group is specifically a slice of PHY A, the PHY number (PHYnumber) of PHY A1 is composed of the instance number of PHY A and the slice number (slice number) of PHY A. When a PHY in the FlexE group is an independent PHY, its PHY number is equal to its instance number.

[0081] Continue reading Figure 4B The overhead code block 3 in the overhead frame may include a C field, a client calendar A field, a client calendar B field, a calendar switch request (CR) field, and a calendar switch acknowledgement (CA) field.

[0082] As described above, the C field is used to indicate the currently used client time slot allocation table. Exemplarily, when the bit value in the C field is 0, it may indicate that the currently used client time slot allocation table A is used. When the bit value in the C field is 1, it may indicate that the currently used client time slot allocation table B is used.

[0083] When the FlexE sending device and the FlexE receiving device need to switch the client time slot allocation table, they can complete the negotiation through the CR and CA fields. For example, after determining the FlexE group to be switched to, the sending device can set or update the time slot allocation table B according to the FlexE group to be switched to. Then, the sending device can set the bit value in the CR field to 1, and after the receiving device receives the overhead code block with a bit value of 1 in the CR field, it can prepare for switching (for example, read alignment, etc.). After the receiving device is ready for switching, it can send an overhead code block with a bit value of 1 in the CA field to the sending device. After receiving the overhead code block with a bit value of 1 in the CA field, the sending device can set the bit value of the C field in the overhead code block of the subsequently sent overhead frame to 1. After the C field with a bit value set to 1 is sent, the data stream is sent according to the time slot allocation table B at the beginning of the frame header of the next overhead frame. .

[0084] With the above settings, MAC services with a rate greater than the bandwidth of a single PHY can be transmitted through the FlexE group. For example, a FlexE group with four PHYs (each with a bandwidth of 100 Gbps) can transmit a MAC service with a rate of 400 Gbps. Multiple MAC services with a rate less than the FlexE group bandwidth or a single PHY bandwidth can also be transmitted simultaneously through the FlexE group. For example, a FlexE group with two PHYs (each with a bandwidth of 100 Gbps) can simultaneously transmit a MAC service with a rate of 150 Gbps and a MAC service with a rate of 50 Gbps.

[0085] Thus, there may be the following two situations.

[0086] Case 1: The customer service requires a higher transmission rate, and the bandwidth of the PHY in the FlexE group does not meet the bandwidth requirements of the customer service. One or more PHYs need to be added to meet the transmission rate requirements of the customer service. For example, the FlexE group is bound to two 100G PHYs. In the scenario where the service data volume increases, the bandwidth requirement of the customer service exceeds 200G. Then, a physical PHY needs to be added to the FlexE group to achieve the purpose of FlexE group capacity expansion. Therefore, a solution is needed to add PHY to the FlexE group without interrupting service transmission.

[0087] Case 2: The transmission rate required by the customer service is reduced, and a larger bandwidth is not required or a larger bandwidth is not required during certain periods of time. For example, the FlexE group is bound to two 100G PHYs. In the scenario where the amount of service data is reduced, the bandwidth requirement of the customer service does not exceed 100G. If the FlexE group with a bandwidth of 200G is continued to be used for data transmission, it will cause a waste of network resources. Therefore, it is necessary to reduce one PHY in the FlexE group. Therefore, a solution is needed to delete PHY from the FlexE group without interrupting service transmission.

[0088] An embodiment of the present application provides a method for adjusting PHY in a FlexE group, which can adjust the PHY in a FlexE group without deleting an established FlexE group.

[0089] Next, in different embodiments, the PHY adjustment method in the FlexE group provided in the embodiments of the present application is specifically introduced.

[0090] In some embodiments, the transmitting device may determine that a PHY needs to be added to the FlexE group #1 that is performing a data transmission service. The FlexE group #1 that is performing a data transmission service may also be understood as the existing PHY in the FlexE group #1 that is performing a data transmission service, or is in a working state.

[0091] For the convenience of description, in the embodiment of the present application, the PHY that is intended to or will be added to FlexE group #1 may be referred to as a PHY to be added.

[0092] In an illustrative example, the transmitting device may determine that a PHY needs to be added to FlexE group #1 in response to a PHY addition indication. The transmitting device may receive control from a network management device. The network management device may display a network management interface, and the network administrator may perform relevant operations on the network management interface to trigger the network management device to send a PHY addition indication to the transmitting device to instruct the transmitting device to add a PHY to FlexE group #1. Thus, the transmitting device may determine to add a PHY to FlexE group #1. In one example, the PHY addition indication may include a PHY identifier (e.g., an instance number) to indicate which PHY is the PHY to be added.

[0093] In an illustrative example, the sending device can determine whether to add a PHY to FlexE group #1 based on the change in the amount of FlexE customer service data. Specifically, the sending device can determine the amount of data to be transmitted at the MAC layer. When the amount of data to be transmitted at the MAC layer is higher than or equal to the threshold C1 (the threshold C1 can be determined by the bandwidth of FlexE group #1, for example, the threshold C1 can be equal to the bandwidth of FlexE group #1 plus 100G), it can be determined that the bandwidth of FlexE group #1 cannot meet the transmission requirements of FlexE customer service data, and it is necessary to add a PHY to FlexE group #1. The sending device can also determine the PHY to be added to FlexE group #1 from one or more PHYs, that is, determine the PHY to be added. The one or more PHYs are PHYs outside FlexE group #1 that can transmit data between the sending device and the receiving device. In an example, the transmitting device can randomly determine a PHY from the one or more PHYs as the PHY to be added.

[0094] In an illustrative example, a PHY in FlexE group #1 may be removed from FlexE group #1 due to a fiber fault. When the transmitting device determines that the fiber fault of the PHY is resolved through a local fault (LF) or a remote PHY fault (RPF), it may be determined to add the PHY to FlexE group #1, that is, to determine the PHY as the PHY to be added.

[0095] When the transmitting device can determine that a PHY needs to be added to FlexE group #1, and which PHY to add, or thereafter, a transmitting side overhead alignment operation can be performed.

[0096] In the embodiment of the present application, the overhead alignment on the sending side refers to the consistency between the sending time of the overhead header of the PHY to be added and the sending time of the overhead header of the existing PHY in FlexE group #1. Correspondingly, the overhead alignment operation on the sending side refers to aligning the sending time of the overhead header of the PHY to be added with the sending time of the overhead header of the existing PHY in FlexE group #1. In addition, it can be understood that the overhead alignment on the sending side has been achieved between the existing PHYs in FlexE group #1. For example, the overhead alignment on the sending side can be achieved between the existing PHYs when FlexE group #1 is established. For details, please refer to the introduction of the prior art, which will not be repeated here.

[0097] In an illustrative example, PHY#2 can be set as the PHY to be added, and PHY#1 belongs to the existing PHY in FlexE group #1. It can be understood that the transmitting device inserts the overhead code block into the time slot (data code block) corresponding to the PHY according to a fixed period and sends it. Therefore, the transmitting device can predict the sending time of the overhead header of an overhead frame that has not been sent by PHY#1. According to the predicted sending time, the overhead header can be inserted into the time slot corresponding to PHY#2, so that the sending time of the overhead header is the same as the pre-stored sending time. Then, the overhead code block is inserted every 1023×20 time slots. In this way, the overhead alignment of PHY#2 and PHY#1 is achieved.

[0098] In an illustrative example, FlexE group #1 may correspond to a preset reference PHY, and the sending time of the overhead header of the existing PHY in FlexE group #1 is the same as the sending time of the overhead header of the reference PHY. The transmitting device may perform an overhead alignment operation of the PHY to be added and the reference PHY to align the sending time of the overhead header of the PHY to be added with the sending time of the reference PHY, thereby achieving overhead alignment of the PHY to be added and the existing PHY in FlexE group #1. The overhead alignment operation of the PHY to be added and the reference PHY can refer to the above description of the alignment operation of PHY#2 and PHY#1, which will not be repeated here.

[0099] Among them, the reference PHY is a preset virtual PHY that is not used for data transmission, which adopts a preset reference overhead phase. The reference overhead phase can be understood as an overhead control rule, which specifies the sending time of the overhead header. In an embodiment of the present application, different reference overhead phases can be generated or pre-set for PHYs of different rates. In other words, PHYs of different rates correspond to different reference overhead phases, or, PHYs of different rates correspond to different reference PHYs. It can be understood that the rates of the PHYs in a FlexE group are usually the same, so the reference PHY or reference phase overhead corresponding to the PHY in the FlexE group can be called the reference PHY or reference phase overhead corresponding to the FlexE group.

[0100] Therefore, through the above solution, overhead alignment on the sending side can be achieved.

[0101] In some embodiments, when or after the transmitting device can complete the overhead alignment on the transmitting side, the receiving device can be notified that a PHY needs to be added to FlexE group #1, and which PHY is to be added.

[0102] In an illustrative example, PHY#2 may be set as the PHY to be added. The transmitting device may fill the group number of FlexE group #1 in the FlexE group number field in the first overhead code block (i.e., overhead header) of the overhead frame of PHY#2. In other words, the content of the FlexE group number field of PHY#2 may be set to be consistent with the content of the FlexE group number field of the existing PHY in FlexE group #1.

[0103] When the receiving device receives the overhead header of PHY#2, it can detect the FlexE group number field in the overhead header, and then determine that PHY#2 is the PHY to be added to FlexE group #1 according to the group number of FlexE group #1 in the FlexE group number field. Specifically, the receiving device can generate an alarm when it detects that the content of the FlexE group number field in the overhead header has changed. It can be understood that before PHY#2 is added to FlexE group #1, the original content of the FlexE group number field in its overhead header is inconsistent with the group number of FlexE group #1. When the receiving device detects that the content of the FlexE group number field in the overhead header of PHY#2 (which has been modified to the group number of FlexE group #1) is different from the original content, an alarm can be generated. The receiving device can respond to the alarm, check the content of the FlexE group number field in the overhead header of PHY#2, and obtain that the content of the FlexE group number field in the overhead header of PHY#2 is the group number of FlexE group #1. In one example, the sending device may also send a PHY add notification to the receiving device to notify the receiving device that the content change of the FlexE group number field in the overhead header of PHY#2 is for a PHY add operation rather than an abnormality, thereby avoiding the abnormal repair operation performed by the receiving device due to an alarm.

[0104] In an illustrative example, PHY#2 can be set as the PHY to be added. The transmitting device can set the bit value in the PHY map field in the second overhead code block of the overhead frame of PHY#2 according to the PHY#2 instance number and the existing PHY instance number of FlexE group #1. Specifically, the bit value of the bit corresponding to the PHY#2 instance number in the PHY map field can be set, and the bit value of the bit corresponding to the existing PHY instance number in the PHY map field can be set. For example, the bit value of the bit corresponding to the PHY#2 instance number in the PHY map field can be set to 1, the bit value of the bit corresponding to the existing PHY instance number in the PHY map field can be set to 1, and the other bits in the PHY map field can be set to 0. For the convenience of description, the content of the PHY map field after setting can be referred to as bit indication information B1.

[0105] When the receiving device receives the second overhead code block of the overhead frame of PHY#2, it can detect the PHY map field in the second overhead code block, and then determine that PHY#2 is the PHY to be added to FlexE group #1 according to the bit value of each bit in the PHY map field.

[0106] Specifically, when the receiving device detects that the content of the PHY map field in the second overhead code block has changed, an alarm may be generated. It can be understood that before PHY#2 is added to FlexE group #1, the original content of the PHY map field in the second overhead code block of its overhead frame and the bit indication information B1 are different. When the receiving device detects that the content of the PHY map field in the overhead frame of PHY#2 (which has been modified to the bit indication information B1) is different from the original content, an alarm may be generated. The receiving device may respond to the alarm and check the content of the PHY map field of PHY#2 to obtain the content of the PHY map field as the bit indication information B1. In one example, the sending device may also send a PHY addition notification to the receiving device to notify the receiving device that the change in the content of the PHY map field in the overhead frame of PHY#2 is for a PHY addition operation, rather than an abnormality, thereby avoiding the abnormal repair operation performed by the receiving device due to the alarm.

[0107] In some embodiments, the receiving device may determine that a PHY needs to be added to FlexE group #1 in response to a PHY increase indication. The receiving device may receive control from a network management device. Exemplarily, when or after the sending device completes the overhead alignment on the sending side, a notification message may be sent to the network management device, and the notification message is used to notify the network management device that the overhead alignment on the sending side has been completed. Upon or after receiving the notification message, the network management device may display a network management interface for managing the receiving device. The network administrator may perform relevant operations on the network management interface to trigger the network management device to send a PHY increase indication to the receiving device to instruct the receiving device to add a PHY to FlexE group #1. Thus, the receiving device may determine to add a PHY to FlexE group #1. In one example, the notification message sent by the sending device to the network management device may include a PHY identifier (e.g., an instance number), the PHY corresponding to the PHY identifier is the PHY to be added, and the sending device has completed the overhead alignment of the PHY to be added and the existing PHY in FlexE group #1. The network management device may carry the PHY identifier in the addition indication to instruct the receiving device which specific PHY to add to FlexE group #1.

[0108] Therefore, through the above method, the receiving device can determine that a PHY needs to be added in FlexE group #1, and which PHY to add.

[0109] It can be understood that each PHY of FlexE group #1 has achieved the alignment of the transmit side overhead, but the code blocks sent by the transmitting device may produce delay deviation (skew) after being transmitted through each PHY of FlexE group #1. Therefore, in order to correctly recover the FlexE customer data from the code blocks, the receiving device performs delay deviation compensation (deskew) operations on different PHYs when the code blocks transmitted by different PHYs have delay deviation.

[0110] The delay deviation compensation operation performed by the receiving device can also be referred to as a receiving side overhead alignment operation. It can be understood that in network transmission, when a code block arrives at a receiving device, it can be first written into the cache of the receiving device, and then the receiving device reads the code block from the cache in a first-in-first-out order to extract data. Therefore, in an embodiment of the present application, the receiving side overhead alignment operation can be understood as a read alignment operation of a code block. More specifically, the receiving side overhead alignment operation can be understood as an overhead header read alignment operation of an overhead frame.

[0111] Next, in different embodiments, the implementation process of the overhead header read alignment operation is introduced. In the following, for the convenience of description, the overhead header of the overhead frame corresponding to the PHY may be referred to as the overhead header of the PHY. The overhead frame corresponding to the PHY refers to the overhead frame transmitted through the PHY. PHY#2 may be set as the PHY to be added, and PHY#1 may be set as an existing PHY in FlexE group #1.

[0112] Before performing the overhead header read alignment operation, the receiving device needs to determine whether the delay difference between the delay of PHY#2 and the delay of the existing PHY in FlexE group #1 is greater than the delay deviation compensation capability of the receiving device. The delay deviation compensation capability is usually specified by the FlexE standard, for example, it can be 10 microseconds.

[0113] Exemplarily, the receiving device can determine the reception time t1 of the overhead header of PHY#2 received by the receiving device within the time period T1, and determine the reception time t2 of the overhead header of PHY#1 received by the receiving device within the time period T1. Time period T1 is a time period starting from the reception time of the i-th overhead code block in the overhead frame O1 of PHY#1 received by the receiving device, and ending at the reception time of the j-th overhead code block in the overhead frame O2 of PHY#1 received by the receiving device. Wherein, if the overhead frame O1 and the overhead frame O2 are adjacent, the overhead frame O2 is after the overhead frame O1. 1<i≤8, 1<j≤8, and i, j are both natural numbers. In one example, i can be 5 and j can be 2.

[0114] It can be understood that the transmission speed of optical signals in optical fibers can reach 200,000 km / s, and the FlexE protocol stipulates that the length of optical fiber between the transmitting device and the receiving device is generally not longer than 10 kilometers. If the sending time of the two overhead headers is the same, the delay difference between the transmission delays of the two overhead headers will not exceed the time interval between two adjacent code blocks (about 13 microseconds). Therefore, an overhead header of PHY#2 and an overhead header of PHY#1 are both received in time period T1, which means that the sending time of the two overhead headers is the same. Therefore, the delay relationship between PHY#2 and PHY#1 can be determined based on the receiving time of the overhead header of PHY#2 received in time period T1, and the receiving time of the overhead header of PHY#1 of the overhead header of PHY#2 received in time period T1.

[0115] It can be determined whether the time difference between t1 and t2 is less than the delay deviation compensation capability. If there is only one existing PHY (i.e., PHY#1) in FlexE group #1, when the time difference between t1 and t2 is less than or equal to the delay deviation compensation capability, it can be determined that the delay difference between the delay of PHY#2 and the delay of the existing PHY in FlexE group #1 is not greater than the delay deviation compensation capability of the receiving device. When there are multiple existing PHYs in FlexE group #1, the method for determining the delay difference between the delay of PHY#2 and the delay of other existing PHYs other than PHY#1 can refer to the method for determining the delay difference between the delay of PHY#2 and the delay of PHY#1, which will not be repeated here. When the delay difference between the delay of PHY#2 and the delay of each existing PHY in FlexE group #1 is less than or equal to the delay deviation compensation capability of the receiving device, it can be determined that the delay difference between the delay of PHY#2 and the delay of the existing PHY in FlexE group #1 is not greater than the delay deviation compensation capability of the receiving device.

[0116] If the delay difference between the delay of PHY#2 and the delay of the existing PHY in FlexE group #1 is greater than the delay deviation compensation capability of the receiving device, it can be determined that PHY#2 cannot be added to FlexE group #1, and the addition of PHY to FlexE group #1 fails.

[0117] If the delay difference between the delay of PHY#2 and the delay of the existing PHY in the FlexE group is less than the delay deviation compensation capability of the receiving device, it can be determined that PHY#2 can be added to FlexE group #1.

[0118] When or after determining that PHY#2 can be added to FlexE group #1, the receiving device may determine whether the time when the overhead header of PHY#2 reaches the receiving device is later than the time when the overhead header of PHY#1 reaches the receiving device. In other words, the receiving device may determine whether the time when it receives the overhead header of PHY#2 is later than the time when it receives the overhead header of PHY#1.

[0119] Exemplarily, as described above, the receiving device can determine the reception time t1 of the overhead header of PHY#2 received in the time period T1, and the reception time t2 of the overhead header of PHY#1 received in the time period T1. Thus, the receiving device can determine whether the reception time t1 is later than the reception time t2. If the reception time t1 is later than the reception time t2, it means that the receiving device can determine that the time when it receives the overhead header of PHY#2 is later than the time when it receives the overhead header of PHY#1. If the reception time t1 is earlier than the reception time t2, it means that the receiving device can determine that the time when it receives the overhead header of PHY#2 is earlier than the time when it receives the overhead header of PHY#1.

[0120] Next, the overhead header read alignment operation is introduced in the scenario where the time when the receiving device receives the overhead header of PHY#2 is later than the time when the overhead header of PHY#1 is received (i.e., the overhead header of the PHY to be added is late). PHY#2 is still used as the PHY to be added, and PHY#1 is an existing PHY in FlexE group #1.

[0121] It can be understood that each PHY corresponds to a cache queue on the receiving device side. For example, PHY#2 can be set to correspond to cache queue #1, and PHY#1 can correspond to cache queue #2. When the FlexE group is working normally (that is, FlexE is not in a PHY adjustment state, or when the receiving device does not perform an overhead header alignment operation), the receiving device can write the code blocks of PHY#1 it receives to cache queue #2, and then use the read speed V1 to read the code blocks in cache queue #2 for subsequent data extraction. The read speed V1 is equal to the write speed of writing code blocks to cache queue #2, so a fixed number of code blocks to be read can be maintained in cache queue #2. The number of code blocks to be read in cache queue #2 can be set to n.

[0122] Before the receiving device receives the overhead header of PHY#2 within the alignment window, the code blocks of PHY#2 received by the receiving device are not written into the buffer queue #1, but are directly discarded. The alignment window will be introduced below and will not be described here.

[0123] When the receiving device determines that the time when it receives the overhead header of PHY#2 is later than the time when it receives the overhead header of PHY#1 or thereafter, the receiving device reads the code blocks in the cache queue #2 at a reading speed V2. The reading speed V2 is slower than the reading speed V1, and the writing speed of the cache queue #2 remains unchanged, so that the code blocks to be read in the cache queue #2 gradually increase, that is, the cache depth of the cache queue #2 is increased.

[0124] It can be understood that for PHY#1, the receiving device usually receives a code block and writes the code block into the cache queue. The code block is transmitted via an optical signal or an electrical signal, and the propagation rate of the optical signal or the electrical signal is fixed. Therefore, the time interval between the moments when the receiving device receives two adjacent code blocks is fixed. In other words, the rate at which the receiving device receives code blocks is usually fixed. Accordingly, the writing speed of the cache queue #2 is also fixed.

[0125] It can be understood that FlexE group #1 is performing data transmission services. In order to avoid data transmission service interruption, the speed difference (V1-V2) between the read speed V2 and the read speed V1 must be less than the Ethernet clock jitter requirement. Generally, the Ethernet clock jitter requirement is 100ppm. Therefore, the speed difference between the read speed V2 and the read speed V1 can be less than 100ppm. In one example, the read speed V2 can be set to read speed V1-50ppm.

[0126] The receiving device may monitor the number of code blocks to be read in cache queue #2. The receiving device may record the time when the number of code blocks to be read in cache queue #2 reaches m, and set the time as time t3. Wherein, m=n+k, and the time difference between the reception time of the first code block and the reception time of the kth code block in the k consecutive code blocks is greater than or equal to the delay deviation between the two PHYs of the receiving device.

[0127] The value of k can be determined by the delay difference between the delay of PHY#2 and the delay of PHY#1 (i.e., the time difference between time t1 and time t2), the rate of PHY#1 (or the rate of PHY#2. It can be understood that the rate of PHY#1 = the rate of PHY#2), and the bit length of the code block transmitted by PHY#1 (or PHY#2). Among them, PHY#1 can be a PHY with a rate of 100GGbps, or a PHY with a rate of 50GGbps, and so on, which are not listed here one by one. The length of the code block can be 66 bits. In one example, it can be understood that the time interval between the transmission of adjacent code blocks is fixed, so the delay difference can be characterized by the number of code blocks.

[0128] Exemplarily, k' is determined by formula (1).

[0129] k'=delay difference×PHY rate÷bit length of code block. When k' is an integer, k=k' is set; when k' is not an integer, the value obtained by rounding k' upwards is set as k.

[0130] Exemplarily, the PHY rate and the bit length of the code block are usually fixed values, so a correspondence table between different delay differences and different k can be preset. In a specific application, when the delay difference is determined, the corresponding k can be determined from the correspondence table between different delay differences and different k.

[0131] At time t3, the receiving device restores the reading speed of the read cache queue #2 from the reading speed V2 to the reading speed V1.

[0132] The receiving device opens an alignment window that meets the PHY alignment requirements according to time t3. The alignment window is a time period starting from the reception time of the i-th overhead code block in the overhead frame O3 and ending at the reception time of the j-th overhead code block in the overhead frame O4. Among them, the overhead frame O3 is the first overhead frame of PHY#1 received by the receiving device after time t3, or the overhead header of the overhead frame O3 is the first overhead header of PHY#1 received by the receiving device after time t3. Overhead frame O3 and overhead frame O4 are adjacent, and overhead frame O4 is after overhead frame O3. 1<i≤8, 1<j≤8, and i and j are both natural numbers. Overhead frame O4 is an overhead frame of PHY#1. In an example, i can be 5 and j can be 2.

[0133] When the receiving device receives the overhead header of PHY#2 within the alignment window, the overhead header is written into the cache queue #1, and starting from the overhead header, the subsequent code blocks of the overhead header are written into the cache queue #1. In addition, the receiving device does not read the code blocks to be read in the cache queue #1. When to start reading the code blocks to be read in the cache queue #1 will be described below.

[0134] When the receiving device reads the overhead header of the overhead frame O4 at the reading speed V1, the receiving device starts to read the code blocks to be read in the cache queue #1 at the reading speed V1. As can be seen from the above content, the overhead header of PHY#2 received in the alignment window is at the front of the queue in the cache queue #1. In other words, when the receiving device starts to read the overhead header and subsequent code blocks of the overhead frame O4 at the reading speed V1, it also starts to read the overhead header and subsequent code blocks of PHY#2 received in the alignment window at the reading speed V1.

[0135] When the existing PHY in FlexE group #1 also includes other PHYs besides PHY #1, the reading method of the code blocks to be read in the cache queue of the other PHY can refer to the above introduction to the reading method of the code blocks to be read in cache queue #2, which will not be repeated here.

[0136] Thus, overhead header read alignment is achieved in the scenario where the overhead header of the PHY to be added arrives late.

[0137] Next, combine Figure 5A , Figure 5B , Figure 5C In a specific example, the overhead header read alignment in the scenario where the PHY overhead header is late is illustrated.

[0138] See also Figure 5A , PHY A1 and PHY A2 can be set to form a FlexE group A. For the specific formation method, please refer to the existing FlexE protocol introduction, which will not be repeated here. PHY A3 is the PHY to be added to FlexE group A.

[0139] When the receiving device performs overhead header alignment operation, an alignment window can be opened. The alignment window can be introduced above and will not be described here.

[0140] like Figure 5A As shown, the overhead header A11 of PHY A1, the overhead header A21 of PHY A2, and the overhead header A31 of PHY A3 may appear in the alignment window. In other words, within the alignment window, the receiving device may receive the overhead header A11 of PHY A1, the overhead header A21 of PHY A2, and the overhead header A31 of PHY A3. The receiving device receives the overhead header A31 at a time later than the receiving device receives the overhead header A11 and the overhead header A21.

[0141] See also Figure 5B When the receiving device receives the overhead header A11 and the overhead header A21 and writes them into the cache, the receiving device may not have received the overhead header A31. When the code block transmitted by PHY A3 before the overhead header A31 reaches the receiving device, it is not written into the cache by the receiving device but is directly discarded.

[0142] See also Figure 5C When the receiving device receives the overhead header A31, it starts writing the code blocks transmitted by PHY A3 into the cache. In other words, the receiving device writes the code blocks after the overhead header A31 into the cache, but does not write the code blocks before the overhead header A31 into the cache.

[0143] When the receiving device reads the overhead header A11 and the overhead header A21 according to the first-in-first-out reading order in the cache (when PHY A1 and PHY A2 are formed into FlexE group A, PHY A1 and PHY A2 have been aligned at the receiving end, so the time when the receiving device reads the overhead header A11 is the same as the time when the receiving device reads the overhead header A21), the receiving device starts to read the overhead header A31. In this way, the read alignment between the PHY to be added and the existing PHY in the FlexE group is achieved.

[0144] It should be noted that the receiving device can read at a relatively slow speed (in order to avoid interruption of business data, a slower reading speed is used instead of not reading). The code blocks transmitted by PHY A1 and PHY A2 are still continuously written (not discarded), so that the cache queue for caching the code blocks transmitted by PHY A1 and the cache queue for caching the code blocks transmitted by PHY A1 cache more code blocks or the depth is deepened. When the cache queues corresponding to PHY A1 and PHY A2 reach a sufficient depth or the cached code blocks are sufficient, the normal speed reading can be restored. For details, please refer to the introduction of time t3 above. Relatively speaking, the cache queue for caching the code blocks transmitted by PHY A3 caches fewer code blocks. It can be understood that the receiving device reads different cache queues in parallel. The cache queue for caching the code blocks transmitted by PHY A3 caches fewer code blocks, so that the code blocks transmitted by PHYA3 can stay in the cache for a shorter time before they can be read. The cache queue for caching the code blocks transmitted by PHY A1 is longer, and PHY The code blocks transmitted by PHY A1 need to stay in the cache for a long time before they can be read. Therefore, although the code blocks transmitted by PHY A1 reach the receiving device earlier than the code blocks transmitted by PHY A3, the reading time can be kept consistent. The same is true for PHYA2.

[0145] Next, combine Fig. 6A , Figure 6B , Figure 6C In a specific example, the overhead header read alignment in the scenario where the overhead header of the PHY is to be added and arrives early is illustrated.

[0146] See also Fig. 6A , PHY B1 and PHY B2 can be set to form a FlexE group B. For the specific formation method, please refer to the existing FlexE protocol introduction, which will not be repeated here. PHY B2 is the PHY to be added to FlexE group B.

[0147] When the receiving device performs overhead header alignment operation, an alignment window can be opened. The alignment window can be introduced above and will not be described here.

[0148] like Fig. 6AAs shown, the overhead header B11 of PHY B1, the overhead header B21 of PHY B2, and the overhead header B31 of PHY B3 may appear in the alignment window. In other words, within the alignment window, the receiving device may receive the overhead header B11 of PHY B1, the overhead header B21 of PHY B2, and the overhead header B31 of PHY B3. The receiving device receives the overhead header B31 at a time earlier than the receiving device receives the overhead header B11 and the receiving device receives the overhead header B21.

[0149] See also Figure 6B , when the receiving device receives the overhead header B31, it starts to write the code blocks transmitted by PHY B3 into the cache. That is to say, the receiving device writes the code blocks after the overhead header B31 into the cache, while the code blocks before the overhead header B31 are not written into the cache. After writing the overhead header B31 into the cache, the receiving device does not immediately start reading the overhead header B31, but waits for the reading time of the overhead header B11 and the overhead header B21. When the receiving device reads the overhead header B11 and the overhead header B21 (when PHYB1 and PHY B2 are formed into FlexE group B, the receiving end overhead alignment of PHY B1 and PHY B2 has been performed, so the time when the receiving device reads the overhead header B11 and the time when the overhead header B21 is read are the same), it can start reading the overhead header B31. In other words, the receiving device can read different cache queues in parallel. When the receiving device reads the overhead header B11 in the cache queue for caching the code blocks transmitted by PHY B1, the receiving device reads the code blocks in the cache queue for caching the code blocks transmitted by PHY B3 in a first-in-first-out order, and the overhead header B31 is the first code block in the cache queue for caching the code blocks transmitted by PHY B3. Therefore, when the receiving device reads the overhead header B11, it also reads the overhead header B31. In this way, read alignment between the PHY to be added and the existing PHY in the FlexE group is achieved.

[0150] Continue reading Figure 6B and Figure 6C, the overhead header B31 arrives at the receiving device earlier than the overhead headers B11 and B21. After the overhead header B31 and its subsequent code blocks arrive at the receiving device, they can be written into the cache. Before the overhead header B11 is read, the overhead header B31 is not read, and the subsequent code blocks continue to be written into the cache, so that the cache queue for caching the code blocks of PHY B3 transmission caches more code blocks or has a deeper depth. In contrast, the cache queue for caching the code blocks of PHY Pa transmission caches fewer code blocks. The receiving device reads different cache queues in parallel. The cache queue for caching the code blocks of PHY B3 transmission caches more code blocks, so that the code blocks of PHY B3 transmission need to stay in the cache for a longer time before they can be read. And the cache queue for caching the code blocks of PHY Pa transmission is shorter, and the code blocks of PHY Pa transmission can be read after staying in the cache for a shorter time. Thus, although the code blocks of PHY B3 transmission arrive at the receiving device earlier than the code blocks of PHY Pa transmission, the reading times can be kept consistent. The same applies to PHY B2.

[0151] Thus, through the above method, it is possible to achieve read alignment of the overhead header in the case of a time delay deviation existing in the existing PHY in the PHY and FlexE group to be added.

[0152] When the receiving device achieves read alignment of the overhead header, it can confirm to add the PHY to be added to the FlexE group and notify the sending device, so that the subsequent sending device and receiving device can perform data transmission through the updated FlexE group (with the PHY to be added).

[0153] Next, still taking PHY#2 as the PHY to be added to FlexE group#1 as an example, a solution for the receiving device to notify the sending device to use the updated FlexE group for data transmission will be introduced by way of example.

[0154] In some embodiments, the transmitting device and the receiving device can be set to use the client time slot allocation table A to perform data transmission through FlexE group #1. When the transmitting device determines that the PHY to be added is PHY #2 or thereafter, the client time slot allocation table B can be updated according to the time slot of PHY #2 and the time slot of the existing PHY in FlexE group #1. After the transmitting device completes the overhead alignment operation on the transmitting side, the transmitting device can set the bit value of the CR field in the overhead frame sent to the receiving device to 1. After the receiving device implements the overhead header read alignment and other switching preparations on the receiving side, the CA field in the overhead frame sent to the transmitting device can be set to 1. After receiving the overhead frame with the bit value of the CA field being 1, the transmitting device can set the bit value of the C field in the overhead code block of the overhead frame subsequently sent by the transmitting device to the receiving device to 1. After the C field with the bit value set to 1 is sent, the data stream is sent according to the time slot allocation table B starting from the frame header of the next overhead frame. In this way, data transmission between the transmitting device and the receiving device can be achieved using the updated FlexE group #1. For a more specific process of switching between the customer time slot allocation table A and the customer time slot allocation table B, please refer to the introduction of the existing FlexE protocol, which will not be introduced one by one here.

[0155] Through the above solution, PHY can be added to the FlexE group without affecting the service data transmission of the FlexE group, thereby achieving lossless addition of PHY in the FlexE group and improving the user communication experience.

[0156] Next, an example is given to describe a scenario where a PHY is removed from a FlexE group.

[0157] In some embodiments, the transmitting device may determine that a PHY needs to be removed from FlexE Group #2.

[0158] For the convenience of description, in the embodiment of the present application, the PHY that is intended to or will be deleted from the FlexE group may be referred to as a PHY to be deleted.

[0159] In an illustrative example, the transmitting device may determine that the PHY needs to be deleted from FlexE group #2 in response to the PHY deletion indication. The transmitting device may receive control from a network management device. The network management device may display a network management interface, and the network administrator may perform relevant operations on the network management interface to trigger the network management device to send a PHY deletion indication to the transmitting device to instruct the transmitting device to delete the PHY from FlexE group #2. Thus, the transmitting device may determine to delete the PHY from FlexE group #2. In one example, the PHY deletion indication may include a PHY identifier (e.g., an instance number) to indicate which PHY is the PHY to be deleted.

[0160] In an illustrative example, the sending device can determine whether to delete PHY from FlexE group #2 based on the change in the amount of FlexE customer service data. Specifically, the sending device can determine the amount of data to be transmitted at the MAC layer. When the amount of data to be transmitted at the MAC layer is lower than or equal to the preset threshold C2 (threshold C2 can be determined by the bandwidth of FlexE group #2, for example, threshold C2 can be equal to the bandwidth of FlexE group #2 minus 100G), it can be determined that the bandwidth of FlexE group #2 is much higher than the transmission requirement of FlexE customer service data. In order to avoid wasting network resources, it is necessary to delete PHY from FlexE group #2. The sending device can determine the PHY to be deleted from the existing PFYs of FlexE group #2. For example, the sending device can randomly determine a PHY from the existing PHYs of FlexE group #2 as the PHY to be deleted.

[0161] In an illustrative example, it can be set that a PHY in FlexE group #2 needs to be removed from FlexE group #2 due to a fiber failure. The transmitting device can determine the PHY with the fiber failure through a local fault (LF) or a remote PHY fault (RPF), and thus use it as the PHY to be deleted.

[0162] In some embodiments, when or after the transmitting device determines that the PHY to be deleted is to be deleted, the receiving device may be notified that the PHY to be deleted needs to be deleted in FlexE group #2.

[0163] In an illustrative example, PHY#3 may be set as the PHY to be deleted. The transmitting device may modify the content in the FlexE group number field in the PHY#3 overhead header to indicate that the message B2 is different from the group number of the FlexE group #2.

[0164] When the receiving device receives the overhead header of PHY#3, it can detect the FlexE group number field in the overhead header and find that the content in the FlexE group number field is not the group number of FlexE group #2, so that PHY#3 can be determined as the PHY to be deleted.

[0165] Specifically, when the receiving device detects the content of the FlexE group number field in the overhead header of PHY#3 (which has been modified to indicate information B2) and the group number of FlexE group #2, an alarm may be generated. The receiving device may respond to the alarm, check the content of the FlexE group number field in the overhead header of PHY#3, and obtain that the content of the FlexE group number field in the overhead header of PHY#3 is no longer the group number of FlexE group #2. In one example, the sending device may also send a PHY deletion notification to the receiving device to notify the receiving device that the change in the content of the FlexE group number field in the overhead header of PHY#3 is for a PHY deletion operation, rather than an abnormality, thereby avoiding the abnormal repair operation performed by the receiving device due to the alarm.

[0166] In an illustrative example, PHY#3 may be set as the PHY to be deleted. The transmitting device may set the bit value in the PHY map field of PHY#3 so that the content of the PHY map field only indicates PHY#3. In other words, the PHY map field only includes the indication information of PHY#3. For example, the bit value of the bit corresponding to the instance number of PHY#3 in the PHY map field of PHY#3 may be set to 1, and the bit values ​​of other bits may be set to 0.

[0167] When the receiving device receives the second overhead code block of the overhead frame of PHY#3, it can detect the PHY map field in the second overhead code block and find that the PHY map field only includes indication information of PHY#3, so it can be determined that PHY#3 is the PHY to be deleted.

[0168] Specifically, when the receiving device detects that the content of the PHY map field in the second overhead code block has changed, an alarm can be generated. It can be understood that PHY#3 is an existing PHY in FlexE group #2. Before being modified by the sending device, the PHY#3 field is used to indicate all existing PHYs in FlexE group #2. After being modified by the sending device, the PHY#3 field is only used to indicate PHY#3. Therefore, the receiving device can detect that the content of the PHY map field of PHY#3 has changed, and then generate an alarm. The receiving device can respond to the alarm and check the content of the PHY map field of PHY#3, and it can be obtained that the content of the PHY map field only indicates PHY#3. In one example, the sending device can also send a PHY deletion notification to the receiving device to notify the receiving device that the change in the content of the PHY map field in the overhead frame of PHY#3 is for a PHY deletion operation, rather than an abnormality, thereby avoiding the abnormal repair operation performed by the receiving device due to the alarm.

[0169] In some embodiments, the receiving device may determine that PHY#3 needs to be deleted from FlexE group #2 in response to the PHY deletion indication. The receiving device may receive control from a network management device, and a network administrator may perform relevant operations on the network management interface to trigger the network management device to send a PHY deletion indication to the receiving device to instruct the receiving device to delete PHY#3 from FlexE group #2. In one example, the notification message sent by the sending device to the network management device may include a PHY identifier (e.g., an instance number) of PHY#3 to indicate that PHY#3 is the PHY to be deleted.

[0170] Therefore, through the above method, the receiving device can determine that PHY#3 needs to be deleted from FlexE group #2.

[0171] When the receiving device determines that PHY#3 needs to be deleted from FlexE group #2 or thereafter, the receiving device may disable the write cache function of PHY#3, that is, not write the code blocks transmitted by PHY#3 into the cache.

[0172] When the receiving device turns off the write cache function of PHY#3 or thereafter, the receiving device can notify the sending device that PHY#3 has been deleted from FlexE group #2 so that the sending device and the receiving device can subsequently transmit data through the updated FlexE group (with PHY#3 deleted).

[0173] Next, taking the deletion of PHY#3 in FlexE group #3 as an example, an example of a solution in which a receiving device notifies a sending device to use an updated FlexE group for data transmission is introduced.

[0174] In some embodiments, the transmitting device and the receiving device can be set to use the client time slot allocation table A to perform data transmission through FlexE group #2. When the transmitting device determines that the PHY to be deleted is PHY#3 or later, the client time slot allocation table B can be updated according to the time slots of the existing PHYs other than PHY#3 in FlexE group #2. The transmitting device can set the bit value of the CR field in the overhead frame sent to the receiving device to 1. When or after the receiving device turns off the write cache function of PHY#3, the CA field in the overhead frame sent to the transmitting device can be set to 1. After receiving the overhead frame with the bit value of the CA field being 1, the transmitting device can set the bit value of the C field in the overhead code block of the overhead frame subsequently sent by the transmitting device to the receiving device to 1. After the C field with the bit value set to 1 is sent, the data stream is sent according to the time slot allocation table B starting from the frame header of the next overhead frame. In this way, data transmission between the transmitting device and the receiving device can be achieved using the updated FlexE group #2. For a more specific process of switching between the customer time slot allocation table A and the customer time slot allocation table B, please refer to the introduction of the existing FlexE protocol, which will not be introduced one by one here.

[0175] Through the above solution, PHY can be deleted from the FlexE group without affecting the service data transmission of the FlexE group, thereby realizing lossless deletion of PHY in the FlexE group and improving the user communication experience.

[0176] See also Figure 7 , the embodiment of the present application provides a communication device 700. The communication device 700 may include a processor 710, a memory 720, and a transceiver 730. The memory 720 stores instructions, which can be executed by the processor 710. When the instructions are executed by the processor 710, the communication device 700 may perform the operations performed by the receiving device or the sending device in the above-mentioned method embodiments, such as Figure 5A-5C or Figure 6A-6C Specifically, the processor 710 may perform data processing operations, and the transceiver 730 may perform data sending and / or receiving operations.

[0177] See also Figure 8 , the present application embodiment provides a chip system 800. The chip system 800 includes: a processor 810 and an interface circuit 820. The processor 810 and the interface circuit 820 are connected to perform the operations performed by the receiving device or the sending device in the above-mentioned method embodiments, such as Figure 5A-5C or Figure 6A-6C The actions performed by the receiving device.

[0178] In some embodiments, the chip system 800 may further include a memory 830. The memory stores instructions that can be executed by the processor 810. When the instructions are executed by the processor 810, the chip system 800 may perform the operations performed by the receiving device or the sending device in the above-mentioned method embodiments, for example: Figure 5A-5C or Figure 6A-6C The actions performed by the receiving device.

[0179] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0180] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0181] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0182] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

Claims

1. A method for adjusting a physical interface in a flexible Ethernet group, for receiving a data service through a first flexible Ethernet group, characterized in that: The method comprises: receiving a code block through a first physical interface, and writing the code block of the first physical interface into a first cache queue at a first write speed, wherein the first flexible Ethernet group includes the first physical interface; Reading the code blocks in the first cache queue at a first reading speed, where the first reading speed is equal to the first writing speed; receiving first indication information, where the first indication information is used to indicate adding a second physical interface to transmit service data in the first flexible Ethernet group; discarding a code block received through the second physical interface; Determine a magnitude relationship between a transmission delay of the second physical interface and a transmission delay of the first physical interface; When it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed, where K is a positive integer; After the number of code blocks in the first cache queue increases by K, starting from receiving a specific overhead code block of a first overhead frame through the first physical interface, writing a first overhead header and subsequent code blocks subsequently received through the second physical interface into the second cache queue, wherein the first overhead frame is the first overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K; When the overhead header of the second overhead frame is read from the first cache queue, the code blocks in the second cache queue start to be read at the first reading speed, wherein the second overhead frame is the second overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K.

2. The method according to claim 1, characterized in that The method further comprises: Determining a delay difference between a transmission delay of the second physical interface and a transmission delay of the first physical interface; The value of K is determined according to the delay difference, the rate of the first physical interface, and the bit length of the code block transmitted by the first physical interface; wherein the value of K is proportional to the delay difference, proportional to the rate of the first physical interface, and inversely proportional to the bit length of the code block transmitted by the first physical interface.

3. The method according to claim 1 or 2, characterized in that: When it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, reducing the reading speed of the first cache queue to the second reading speed until the number of code blocks in the first cache queue increases by K, and then restoring the reading speed of the first cache queue to the first reading speed includes: When it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, and when it is determined that the difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface is less than a preset threshold, the reading speed of the first cache queue is reduced to a second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed.

4. The method according to claim 1 or 2, characterized in that: A difference between the first reading speed and the second reading speed is less than a clock jitter requirement.

5. The method according to claim 1, characterized in that: The method further comprises: When it is determined that the transmission delay of the second physical interface is less than the transmission delay of the first physical interface, writing the first overhead header and subsequent code blocks received through the second physical interface into the second cache queue; When a second overhead header is read from the first cache queue, code blocks in the second cache queue begin to be read at the first reading speed, wherein the second overhead header is the first overhead header received through the first physical interface after the first overhead header is received.

6. The method according to claim 1 or 2, characterized in that: The first indication information is a message generated after the sending side overheads of the first physical interface and the second physical interface are aligned.

7. A communication device for receiving data services via a first flexible Ethernet group, characterized in that: The communication device includes: a processor, a memory, and a transceiver; The memory is used to store computer instructions; When the communication device is running, the processor executes the computer instructions so that the communication device performs: receiving a code block through a first physical interface, and writing the code block of the first physical interface into a first cache queue at a first write speed, wherein the first flexible Ethernet group includes the first physical interface; Used to read the code blocks in the first cache queue at a first reading speed, where the first reading speed is equal to the first writing speed; receiving first indication information, where the first indication information is used to indicate adding a second physical interface to transmit service data in the first flexible Ethernet group; discarding a code block received through the second physical interface; Determine a magnitude relationship between a transmission delay of the second physical interface and a transmission delay of the first physical interface; When it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, the reading speed of the first cache queue is reduced to the second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed, where K is a positive integer; After the number of code blocks in the first cache queue increases by K, starting from receiving a specific overhead code block of a first overhead frame through the first physical interface, writing a first overhead header and subsequent code blocks subsequently received through the second physical interface into the second cache queue, wherein the first overhead frame is the first overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K; When the overhead header of the second overhead frame is read from the first cache queue, the code blocks in the second cache queue start to be read at the first reading speed, wherein the second overhead frame is the second overhead frame received through the first physical interface after the number of code blocks in the first cache queue increases by K.

8. The communication device according to claim 7, characterized in that: The processor executes the computer instructions so that the communication device further executes: Determining a delay difference between a transmission delay of the second physical interface and a transmission delay of the first physical interface; The value of K is determined according to the delay difference, the rate of the first physical interface, and the bit length of the code block transmitted by the first physical interface; wherein the value of K is proportional to the delay difference, proportional to the rate of the first physical interface, and inversely proportional to the bit length of the code block transmitted by the first physical interface.

9. The communication device according to claim 7 or 8, characterized in that: The processor executes the computer instructions so that the communication device further executes: When it is determined that the transmission delay of the second physical interface is greater than the transmission delay of the first physical interface, and when it is determined that the difference between the transmission delay of the second physical interface and the transmission delay of the first physical interface is less than a preset threshold, the reading speed of the first cache queue is reduced to a second reading speed until the number of code blocks in the first cache queue increases by K, and then the reading speed of the first cache queue is restored to the first reading speed.

10. The communication device according to claim 7 or 8, characterized in that: A difference between the first reading speed and the second reading speed is less than a clock jitter requirement.

11. The communication device according to claim 8, characterized in that The processor executes the computer instructions so that the communication device further executes: When it is determined that the transmission delay of the second physical interface is less than the transmission delay of the first physical interface, writing the first overhead header and subsequent code blocks received through the second physical interface into the second cache queue; When a second overhead header is read from the first cache queue, code blocks in the second cache queue begin to be read at the first reading speed, wherein the second overhead header is the first overhead header received through the first physical interface after the first overhead header is received.

12. The communication device according to claim 7 or 8, characterized in that: The first indication information is a message generated after the sending side overheads of the first physical interface and the second physical interface are aligned.

13. A computer storage medium, characterized in that: The computer storage medium includes computer instructions, and when the computer instructions are executed on the communication device, the communication device executes the method according to any one of claims 1 to 6.

14. A computer program product, characterized in that When the program code contained in the computer program product is executed by a processor in a communication device, the method according to any one of claims 1 to 6 is implemented.