Data transmission method and device

The method enhances FlexE technology by dividing Ethernet interfaces into sub-client interfaces and employing a fine-grained frame structure to optimize bandwidth allocation, addressing inefficiencies in low-rate service transmission and reducing waste.

JP7594087B2Active Publication Date: 2024-12-03HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023504859
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-31
Filing Date
2021-07-12
Publication Date
2024-12-03
Estimated Expiration
2041-07-12

AI Technical Summary

Technical Problem

Existing FlexE technology results in significant bandwidth wastage when carrying low-rate services due to fixed rate constraints, leading to inefficient utilization of channel bandwidth.

Method used

A data transmission method that involves dividing Ethernet interfaces into sub-client interfaces, using a fine-grained service frame structure for time division multiplexing, and implementing a sub-slot cross-connect technique to optimize bandwidth allocation for low-rate services.

Benefits of technology

Significantly improves channel bandwidth utilization by allowing flexible bandwidth allocation, reducing waste and minimizing transfer delay for low-rate services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007594087000001
    Figure 0007594087000001
  • Figure 0007594087000002
    Figure 0007594087000002
  • Figure 0007594087000003
    Figure 0007594087000003
Patent Text Reader

Abstract

This application provides a data transmission method, a communication device, a network device, a communication system, a storage medium, and a computer program product to solve the current problem of relatively serious bandwidth waste when transporting services based on FlexE technology. This application newly defines a frame structure of a fine-grained service frame, which enables service data to be transmitted in time-division multiplexing mode using an Ethernet (ETH) interface. Therefore, even a general Ethernet interface that does not support the standard FlexE mode can effectively utilize the bandwidth of the Ethernet interface and implement bandwidth isolation. These technical solutions of this application can significantly improve channel bandwidth utilization, especially when transporting low-rate services, thereby avoiding bandwidth waste.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese Patent Application No. 202010726636.X, entitled "Data Transmission Method and Device", filed on July 25, 2020, and Chinese Patent Application No. 202010761609.6, entitled "Data Transmission Method and Device", filed on July 31, 2020, the contents of which are incorporated by reference in their entireties herein.

[0002] [Technical field] FIELD OF THE DISCLOSURE The present invention relates to the field of communication technologies, in particular to data transmission methods and devices, and more particularly to methods for transmitting data in Ethernet or flexible Ethernet interfaces and devices. [Background technology]

[0003] Flexible Ethernet (FlexE) technology has been rapidly developed in recent years as an interface technology for implementing service separation and network slicing, and has been widely accepted by major standardization organizations. The Optical Internet Forum (OIF) has published the FlexE standard. Based on IEEE 802.3, the FlexE technology introduces a flexible Ethernet protocol layer (also referred to as the FlexE Shim layer) to decouple the Medium Access Control (MAC) layer from the physical link layer (also referred to as the PHY). In this way, flexible rate matching is implemented. Based on a Time Division Multiplexing (TDM) distribution mechanism, the Flex Shim schedules and distributes data of multiple FlexE clients into different subchannels based on slots to implement strong separation of transmission pipe bandwidth. A service data stream may be assigned to one or multiple slots. In this way, matching of services with different rates is implemented.

[0004] The existing FlexE interface technology solves the problem of fixed rate of Ethernet interface to some extent, and the client cross-connect technology solves the problem of excessively large packet transmission delay. However, when carrying low-rate services (e.g., 10 Mbps) using the conventional technology, a relatively serious channel bandwidth waste occurs. Summary of the Invention

[0005] This application provides a data transmission method, a communication apparatus, a network device, a communication system, a storage medium, and a computer program product to solve the current problem that bandwidth waste becomes relatively serious when carrying services based on FlexE technology. According to those technical solutions of this application, the utilization rate of channel bandwidth can be greatly improved, especially when carrying low-rate services (such as megabit low-rate services), the utilization rate of channel bandwidth can be significantly improved, thereby avoiding bandwidth waste. Furthermore, this application newly defines a frame structure of fine-grained service frames, so that service data can be transmitted in time division multiplexing mode by using an Ethernet (ETH) interface. Therefore, even if a general Ethernet interface does not support the standard FlexE mode, the bandwidth of the Ethernet interface can be effectively used, and bandwidth separation is implemented.

[0006] According to a first aspect, the present application provides a data transmission method implemented by a first communication device, the method comprising: generating a first data stream, the first data stream including a plurality of data code blocks; the plurality of data symbol blocks include a plurality of first base frames, each of the first base frames including a base frame payload, the base frame payload including a base frame overhead and a plurality of sub-client sub-client sub-slot payloads, the plurality of sub-client sub-slot payloads including a plurality of first sub-client sub-slot payloads, the plurality of first sub-client sub-slot payloads including service data of a first sub-client interface; Transmitting the first data stream by using a first interface.

[0007] Optionally, the first interface is logically divided into Z sub-client interfaces, the Z sub-client interfaces including the first sub-client interface.

[0008] Optionally, the first interface is a FlexE client interface.

[0009] Optionally, the first interface is an Ethernet interface.

[0010] Optionally, the first interface is a first FlexE client interface, and the first communication device further includes a first FlexE interface at a transmitting side, and the step of transmitting the first data stream by using the first interface includes: The method includes a step of transmitting the first data stream by using the first FlexE interface based on a slot mapping relationship between the first FlexE client interface and the first FlexE interface, wherein the first FlexE interface is logically divided into a plurality of FlexE client interfaces, the plurality of FlexE client interfaces including the first FlexE client interface.

[0011] Optionally, each first base frame further includes a first code block and a second code block, the first code block being used to indicate a frame header of the first base frame, and the second code block being used to indicate a frame trailer of the first base frame.

[0012] Optionally, the first code block is an S code block and the second code block is a T code block.

[0013] Optionally, the first code block includes a first indication field and a first data field, the first indication field being used to indicate the frame header and the first data field being used to carry a portion of data of the base frame payload.

[0014] Optionally, the second code block includes a second indication field and a second data field, the second indication field being used to indicate the frame trailer and the second data field being used to carry a portion of the data of the base frame payload.

[0015] Optionally, the format of the first code block and the second code block complies with a code block format defined in the IEEE 802.3 standard.

[0016] Optionally, the base frame overhead comprises: A sequence number of said base frame; Sub-client sub-slot mapping table, Slot adjustment request, Slot Adjustment Response, Slot availability indication, Management channel information, and Base frame overhead inspection information, It contains one or more pieces of information.

[0017] Optionally, the first interface is divided into M sub-slots in the time domain, where M is an integer greater than 1.

[0018] Optionally, the slot bandwidth of each of the M subslots is P, where P is less than 5 gigabits per second (Gbp / s).

[0019] Optionally, the M subslots are evenly distributed among X first base frames, one base frame is encapsulated every time M / X subslots are scheduled, and each base frame payload contains M / X sub-client subslot payloads, where X is an integer greater than 1.

[0020] Optionally, the transmission rate of the first interface is N [Gbp / s], where N is 1 or greater.

[0021] Optionally, the method further comprises: receiving a first sub-client sub-slot mapping table transmitted by a second communication device, the first sub-client sub-slot mapping table being used to indicate a first mapping relationship between the M sub-slots and the Z sub-client interfaces, each sub-client interface being mapped to at least one of the M sub-slots; and storing the first sub-client sub-slot mapping table.

[0022] Optionally, the first sub-client sub-slot mapping table indicates the first mapping relationship by mapping Z sub-client IDs to M sub-slot IDs, where the Z sub-client IDs are used to indicate the Z sub-client interfaces, and the M sub-slot IDs are used to indicate the M sub-slots.

[0023] Optionally, the second communication device is a control management device.

[0024] Optionally, the second communication device is a forwarding device.

[0025] Alternatively, the first sub-client sub-slot mapping table is carried in the base frame overhead or the first sub-client sub-slot mapping table is carried in a designated one of the M sub-slots.

[0026] Optionally, the first data stream is used to carry an Ethernet service.

[0027] Optionally, the step of generating a first data stream further comprises: Obtaining a first Ethernet service data stream from a physical coding sublayer (PCS); slicing the first Ethernet service data stream to obtain a plurality of Ethernet service slices; and encapsulating the plurality of Ethernet service slices in the base frame payload as the plurality of sub-client sub-slot payloads.

[0028] Optionally, the first Ethernet service data stream includes at least one OAM code block.

[0029] Optionally, the first Ethernet service data stream includes a plurality of 64B / 66B code blocks, a plurality of 64B / 65B code blocks, or a plurality of 256B / 257B code blocks.

[0030] Optionally, the first data stream is used to carry a constant bit rate (CBR) service.

[0031] Optionally, the step of generating a first data stream further comprises: slicing a first CBR service data stream to obtain a plurality of CBR service slice data, the first CBR service data stream including a plurality of CBR service frames; The plurality of CBR separately slicing and encapsulating the service slice data to obtain a plurality of CBR service slices, each CBR service slice including the CBR service slice data and encapsulation information; obtaining the plurality of sub-client sub-slot payloads based on the plurality of CBR service slices; and encapsulating the plurality of sub-client sub-slot payloads into the base frame payload.

[0032] Optionally, a slice granularity of each CBR service slice is i bits, and no distinction is made between the contents of the plurality of CBR service frames when slicing the first CBR service data stream, where i is an integer number.

[0033] Optionally, the slice granularity of each CBR service slice is j complete CBR service frames, where j is an integer greater than or equal to 1.

[0034] Optionally, the CBR service slice includes a first field used to carry the CBR service slice data.

[0035] Optionally, the encapsulation information includes a second field, the second field being used to carry clock frequency information.

[0036] Optionally, the encapsulation information includes a third field, the third field being used to carry operation, administration and maintenance (OAM) information.

[0037] Optionally, the encapsulation information includes a fourth field, the fourth field being used to carry a sequence number of the CBR service slice.

[0038] Optionally, the sequence number of the CBR service slice is used for slice reconstruction.

[0039] Optionally, the encapsulation information includes a fifth field, the fifth field being used to carry payload length information, the payload length information being a valid length of the CBR service slice data carried in each CBR service slice.

[0040] Optionally, the encapsulation information includes a sixth field, the sixth field being a padding field.

[0041] Optionally, the encapsulation information includes a seventh field, the seventh field being used to carry test information.

[0042] Optionally, the step of obtaining the plurality of sub-client sub-slot payloads based on the plurality of CBR service slices further comprises: performing Ethernet packet encapsulation on the plurality of CBR service slices to obtain a second data stream, the second data stream including a plurality of code blocks; and slicing the second data stream based on a length of each sub-client sub-slot payload to obtain the plurality of sub-client sub-slot payloads.

[0043] Optionally, the second data stream includes a plurality of 64B / 66B code blocks, a plurality of 64B / 65B code blocks, or a plurality of 256B / 257B code blocks.

[0044] Optionally, the first data stream includes a plurality of OAM code blocks used to carry OAM information.

[0045] Optionally, the step of obtaining the plurality of sub-client sub-slot payloads based on the plurality of CBR service slices further comprises: The method includes the step of directly using each CBR service slice as a sub-client sub-slot payload.

[0046] Optionally, the first data stream includes a plurality of 64B / 66B code blocks, a plurality of 64B / 65B code blocks, or a plurality of 256B / 257B code blocks.

[0047] Optionally, the first sub-client interface is mapped to W sub-slots of the first interface, and the step of generating a first data stream comprises: Mapping the first plurality of sub-client sub-slot payloads to the W sub-slots, respectively, where W is an integer greater than one.

[0048] Optionally, the step of mapping each of the first sub-client sub-slot payloads to the W sub-slots further comprises: The method includes a step of sequentially scheduling the W sub-slots based on a mapping relationship between the first sub-client interface and the W sub-slots and based on a slot scheduling period of the first interface.

[0049] Optionally, the first communication device includes a second sub-client interface at a receiving side, and the step of generating a first data stream includes: obtaining a plurality of second sub-client sub-slot payloads of the second sub-client interface; processing the plurality of second sub-client sub-slot payloads to obtain the plurality of first sub-client sub-slot payloads based on a sub-slot cross-connect relationship between the second sub-client interface and the first sub-client interface; and encapsulating the first plurality of sub-client sub-slot payloads into the base frame payload.

[0050] Optionally, the step of obtaining a plurality of second sub-client sub-slot payloads of the second sub-client interface further comprises: obtaining a third data stream of a second interface at the receiving side, and de-mapping the plurality of second sub-client sub-slot payloads from the third data stream based on a second sub-client sub-slot mapping table, wherein the second interface is divided into A sub-slots in the time domain, the second interface is logically divided into B sub-client interfaces, the B sub-client interfaces include the second sub-client interface, and the Second Sub-Client Sub-Slot Mapping Table is used to indicate a second mapping relationship between the A sub-slots and the B sub-client interfaces, and both A and B are integers, including steps. For the value of A, please refer to the related description of the value of M in this application.

[0051] Optionally, the second interface is an Ethernet interface.

[0052] Optionally, the second interface comprises: Second FlexE Client Interface It is.

[0053] Optionally, the first communication device further includes a second FlexE interface at the receiving side, and the step of acquiring a third data stream includes: acquiring a fourth data stream of the second FlexE interface, the second FlexE interface being logically divided into a plurality of FlexE client interfaces, the plurality of FlexE client interfaces including the second FlexE client interface; and a step of demapping the third data stream from the fourth data stream based on a slot mapping relationship between the second FlexE client interface and the second FlexE interface, the third data stream including a plurality of second base frames, the plurality of second base frames including the plurality of second sub-client sub-slot payloads.

[0054] According to a second aspect, the present application provides a first communication device, the first communication device comprising: A memory for storing instructions; and and a processor coupled to the memory, the processor enabling the first communications device to perform a method in a first aspect and any one of multiple possible implementations of the first aspect when the processor executes the instructions.

[0055] According to a third aspect, the application provides a computer readable storage medium comprising a program or instructions which, when executed by a computer, enables the computer to perform the method of the first aspect and any one of a number of possible implementations of the first aspect.

[0056] According to a fourth aspect, the application provides a communication system including a first communication device and a second communication device, the first communication device and the second communication device being configured to perform the method of the first aspect and any one of a plurality of alternative implementations of the first aspect.

[0057] According to a fifth aspect, the application provides a program product comprising a program or instructions which, when executed by a computer, enables the computer to perform the method of the first aspect and any one of a number of possible implementations of the first aspect. [Brief description of the drawings]

[0058] [Figure 1] FIG. 1 is a schematic diagram of the FlexE generic architecture based on the flexible Ethernet protocol. [Diagram 2] FIG. 13 is a schematic diagram of slot allocation for a FlexE group across four physical link interfaces (aggregating four PHYs). [Diagram 3] FIG. 1 is a schematic diagram of an application scenario of the FlexE communication system according to this application. [Figure 4] FIG. 2 is a schematic diagram of a process for transmitting data by using FlexE technology according to this application. [Diagram 5] A schematic diagram of the configuration of overhead frames and overhead multiframes of a 100GE interface in accordance with the OIF IA-FLEXE-02.1 standard. [Figure 6] FIG. 1 is a schematic diagram of slot allocation for multiple FlexE clients when bonding N 100G PHYs; [Figure 7] FIG. 2 is a schematic diagram of a base frame encapsulation process according to the present application. [Figure 8] It is a code block format defined in IEEE 802.3. [Figure 9] 2 is a schematic diagram of the structure of data transmitted based on a sub-client interface according to the present application; [Figure 10] 2 is a schematic diagram of a multi-frame encapsulation format according to the present application. [Figure 11] FIG. 2 is a schematic diagram illustrating a multi-frame format according to this application. [Figure 12] 1 is a schematic flow chart of a method for obtaining sub-client sub-slot payloads of an Ethernet service according to the present application. [Figure 13] 1 is a schematic flow chart of a method for obtaining sub-client sub-slot payloads of a CBR service according to the present application. [Figure 14] 1 is a schematic flow chart of a particular method for obtaining sub-client sub-slot payloads of a CBR service in accordance with the present application. [Figure 15] 10 is a schematic flow chart of another particular method for obtaining sub-client sub-slot payloads of a CBR service according to the present application. [Figure 16] 1 is a schematic diagram of a data transmission method according to the present application; [Figure 17] 2 is a schematic diagram of a method for configuring a sub-client sub-slot mapping table according to the present application. [Figure 18] 11 is a schematic diagram of another method for configuring a sub-client sub-slot mapping table according to the present application. [Figure 19] 2 is a schematic diagram of a method for transmitting a sub-client service data stream according to the present application. [Figure 20A] 1 is a schematic diagram of a method for transmitting Ethernet services based on a FlexE interface according to this application; [Figure 20B] 1 is a schematic diagram of a method for transmitting Ethernet services based on a FlexE interface according to the present application. [Figure 20C] 1 is a schematic diagram of a method for transmitting Ethernet services based on a FlexE interface according to this application; [Figure 21A] 1 is a schematic diagram of a method for transmitting CBR services based on a FlexE interface according to this application; [Figure 21B] 1 is a schematic diagram of a method for transmitting CBR services based on a FlexE interface according to this application; [Figure 21C] 1 is a schematic diagram of a method for transmitting CBR services based on a FlexE interface according to this application; [Figure 22A] 1 is a schematic diagram of a method for transmitting Ethernet services based on an Ethernet interface according to the present application; [Figure 22B] 1 is a schematic diagram of a method for transmitting Ethernet services based on an Ethernet interface according to the present application; [Figure 22C] 1 is a schematic diagram of a method for transmitting Ethernet services based on an Ethernet interface according to the present application; [Figure 23A] 1 is a schematic diagram of a method for transmitting CBR services based on an Ethernet interface according to the present application; [Figure 23B] 1 is a schematic diagram of a method for transmitting CBR services based on an Ethernet interface according to the present application; [Figure 23C] 1 is a schematic diagram of a method for transmitting CBR services based on an Ethernet interface according to the present application; [Figure 24] 1 is a schematic diagram of a communications device configuration according to this application; [Diagram 25] 1 is a schematic diagram of a communications device configuration according to this application; [Figure 26] 1 is a schematic diagram of a communications device configuration according to this application; [Figure 27] 1 is a schematic diagram of a communications device configuration according to this application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0059] In this application, sequence numbers such as "1," "2," "3," "4," "first," "second," "third," and "fourth" are used to distinguish between multiple different objects and are not intended to limit the order of the multiple objects. In addition, the words "comprise" and "have" are not exclusive. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units and may include additional steps or units that are not listed.

[0060] In this application, the terms "Ethernet interface" and "ETH interface" are often used interchangeably, and the terms "FlexE interface" and "Flexible Ethernet interface" are often used interchangeably.

[0061] For prior art regarding FlexE in this application, reference should be made to the relevant descriptions in the FlexE standards IA OIF-FLEXE-01.0, IA OIF-FLEXE-02.0, or IA OIF-FLEXE02.1 defined by OIF, which standards are incorporated in their entirety into this application by reference.

[0062] FIG. 1 is a schematic diagram illustrating a FlexE generic architecture based on the Flexible Ethernet protocol. As shown in FIG. 1, a FlexE group includes four PHYs. A FlexE client represents a client data stream transmitted in a designated slot (one slot or multiple slots) in the FlexE group. A FlexE group may carry multiple FlexE clients. A FlexE client may correspond to one or multiple user service data streams (which may also be referred to as MAC clients). The FlexE shim layer provides data adaptation and conversion from FlexE clients to MAC clients. FlexE may support mapping and transmission of multiple different FlexE clients in any group of PHYs to implement features such as PHY bonding, channelization, and sub-rate. Multiple PHYs are grouped together into a FlexE group (which may also be referred to as a FlexE group in English), which carries one or multiple FlexE client data streams distributed and mapped from the FlexE shim layer. As one example, using 100GE PHYs, the FlexE shim layer may split each 100GE PHY in a FlexE group into a 20-slot data-carrying channel, with each slot corresponding to 5 Gbps of bandwidth.

[0063] FIG. 2 is a schematic diagram of slot allocation of a FlexE group across four physical link interfaces (four PHYs are aggregated). As shown in FIG. 2, each PHY has 20 slots. Thus, the FlexE group has 20×4 slots. As shown in FIG. 2, for illustration purposes, a FlexE group including four PHYs in FIG. 1 is used as an example, and the four PHYs are PHY A 1201, PHY B 1202, PHY C 1203, and PHY D 1204. The FlexE group corresponds to a slot allocation table (which may also be called a calendar in English). A slot mapping table corresponding to a single physical link included in the FlexE group may be called a sub-slot allocation table (which may also be called a sub-calendar in English). A flex calendar may include one or more sub-calendars. Each sub-calendar may indicate how to allocate the 20 slots in a single physical link to a corresponding FlexE client. In other words, each sub-calendar may indicate the correspondence between multiple slots and multiple FlexE clients on a single physical link. As shown in Figure 2, each PHY may correspond to 20 slots, represented in the diagram by slot 0 through slot 19. Figure 2 is a schematic diagram of the 20 slots corresponding to each of PHY A 1201, PHY B 1202, PHY C 1203, and PHY D 1204.

[0064] FIG. 3 is a schematic diagram of an application scenario of the FlexE communication system according to this application. As shown in FIG. 3, the FlexE communication system 100 includes a network device 1, a network device 2, a user equipment 1, and a user equipment 2. The network device 1 may be an intermediate node. In this case, the network device 1 is connected to the user equipment 1 by using other network devices. The network device 1 may be an edge node. In this case, the network device 1 is directly connected to the user equipment 1. The network device 1 may be an intermediate node. In this case, the network device 1 is connected to the user equipment 1 by using other network devices. Alternatively, the network device 1 may be an edge node. In this case, the network device 1 is directly connected to the user equipment 1. The network device 2 may be an intermediate node. In this case, the network device 2 is connected to the user equipment 2 by using other network devices. Alternatively, the network device 2 may be an edge node. In this case, the network device 2 is connected to the user equipment 2 directly. The network device 1 includes a FlexE interface 1, and the network device 2 includes a FlexE interface 2. FlexE interface 1 is adjacent to FlexE interface 2. Each FlexE interface includes a transmit port and a receive port, and differs from a traditional Ethernet interface in that a FlexE interface can carry multiple clients and a FlexE interface, as a logical interface, can include multiple physical interfaces. The direction of service data flow in the forward path shown in FIG. 3 is indicated by the solid arrows in FIG. 3. The direction of service data flow in the reverse path is indicated by the dashed arrows in FIG. 3.Assuming that the transmission path in this embodiment of the present invention is a forward path, the flow direction of the service data on the transmission path is: user equipment 1→network device 1→network device 2→user equipment 2.

[0065] It should be understood that Fig. 3 illustrates only two network devices and two user equipments. The network may include any other number of network devices and user equipments. This is not limited in this embodiment of the application. The FlexE communication system illustrated in Fig. 3 is only one example, and the application scenario of the FlexE communication system provided by this application is not limited to the scenario illustrated in Fig. 3. The technical solution provided by this application is applicable to all of the network scenarios that use FlexE technology for data transmission.

[0066] Referring to FIG. 4, a process in which the network device 1 and the network device 2 shown in FIG. 3 transmit data by using the FlexE technology is further described.

[0067] As shown in FIG. 4, PHY1, PHY2, PHY3, and PHY4 are combined to form a FlexE group. Network device 1 and network device 2 are connected by a FlexE group interface, i.e., FlexE interface 1 and FlexE interface 2. The FlexE group interface may also be referred to as a FlexE interface. The FlexE group interface is a logical interface formed by bonding a group of physical interfaces. The FlexE group interface carries a total of six clients, from client 1 to client 6. Client 1 and client 2 data is mapped to PHY1 for transmission, client 3 data is mapped to PHY2 and PHY3 for transmission, client 4 data is mapped to PHY3 for transmission, and client 5 and client 6 data is mapped to PHY4 for transmission. Different FlexE clients are mapped and transmitted within the FlexE group to implement the bonding function.

[0068] FlexE Group: A FlexE group may also be referred to as a bonding group. PHYs included in each FlexE group have a logical bonded relationship. The logical bonded relationship means that different PHYs may not have a physical connection relationship. Therefore, PHYs in a FlexE group may be physically independent. A network device in FlexE can implement the logical bond of PHYs by using the PHY numbers to identify which PHY is included in a FlexE group. For example, each PHY may be identified by a number between 1 and 254. 0 and 255 are reserved numbers. A PHY number may correspond to an interface in a network device. The same number should be used between two adjacent network devices to identify the same PHY. The PHY numbers included in a FlexE group are not necessarily consecutive. Typically, there is one FlexE group between two network devices, but this application is not limited to there being only one FlexE group between two network devices, i.e., alternatively, there may be multiple FlexE groups between two network devices. A PHY may be used to carry at least one client, and a client may be transmitted by at least one PHY.

[0069] FlexE Client: FlexE Client corresponds to various user interfaces or bandwidths of the network. FlexE Client may be flexibly configured based on the bandwidth requirement to support Ethernet MAC data streams at various rates (such as 10G, 40G, nx25G, and even non-standard rate data streams). For example, the data stream may be transmitted to the FlexE shim layer in 64b / 66b coding mode. Clients transmitting from the same FlexE group need to share the same clock and adapt them based on the slot rate assigned to them. The FlexE Client Interface in this application is configured to transmit the service data stream of the corresponding FlexE client. The FlexE Client Interface is a logical interface. Each FlexE interface may be logically divided into one or more FlexE Client Interfaces, each FlexE interface may be divided into multiple slots in the time domain, and each FlexE Client Interface occupies at least one of the multiple slots.

[0070] FlexE shim: FlexE shim is an additional logical layer inserted between the MAC layer and the PHY layer (PCS sublayer) in traditional Ethernet architecture, and is the core for implementing FlexE technology based on the calendar slot distribution mechanism. The main function of FlexE shim is to slice data based on the same clock, encapsulate the sliced ​​data into pre-divided slots, and then map the slots to multiple PHYs in a FlexE group for transmission based on a pre-configured slot allocation table. Each slot is mapped to one PHY in the FlexE group.

[0071] Calendar: A calendar is a slot allocation table, which may also be called a slot table. A FlexE group corresponds to a calendar. A slot mapping table corresponding to a single physical link (PHY) included in a FlexE group may be called a sub-slot allocation table (sub-calendar). A FlexE calendar may include one or more sub-calendars. Each sub-calendar may indicate how to allocate 20 slots (which may also be called slots in English) in a single physical link to a corresponding FlexE client. In other words, each sub-calendar may indicate the correspondence between multiple slots in the single physical link and multiple FlexE clients. As defined in the current standard, two calendars are specified in each FlexE overhead frame, which are the current active slot table (Calendar A) and the standby slot table (Calendar B), respectively.

[0072] FlexE establishes a fixed frame format for physical interface transmission and divides TDM slots. As described above, the FlexE shim layer reflects the mapping relationship between clients and slots in a FlexE group and the calendar operation mechanism by defining an overhead frame and an overhead multiframe. It should be noted that the overhead frame may also be called a flexible Ethernet overhead frame, and the overhead multiframe may also be called a flexible Ethernet overhead multiframe. By using the overhead, the FlexE shim layer provides an in-band management channel, supports the transmission of configuration and management information between two interconnected FlexE interfaces, and implements self-negotiation and link establishment.

[0073] The data in each FlexE PHY is, for example, 1023 x 20 66b payload data code blocks apart. One 66b overhead code block in the FlexE OH frameThe FlexE overhead (OH) frame is aligned by periodically inserting code blocks of the FlexE overhead frame, such as inserting a 64b / 66b code block of the FlexE overhead frame into the remote PHY at a predetermined time interval. According to the FlexE implementation agreement, the FlexE group transmits a 64b / 66b code block of the FlexE overhead frame to the remote PHY at each PHY at a predetermined time interval, and eight sequentially transmitted 64b / 66b code blocks of the FlexE overhead frame constitute one FlexE overhead frame. FlexE defines some of the fields in the overhead frame to carry a slot allocation table, and uses the FlexE overhead frame to synchronize the slot allocation table of the PHY at the remote communication device, ensuring that the two communication devices use the same slot allocation table to receive and transmit data streams corresponding to the FlexE client. Specifically, FIG. 5 is a schematic diagram of the configuration of the overhead frame and overhead multiframe of the 100GE interface according to the OIF IA-FLEXE-02.1 standard. One overhead frame has eight overhead blocks, which may also be called overhead slots. Each overhead block is a 64B / 66B code block that appears once every 1023×20 block interval, but the fields included in the overhead blocks are different. In the overhead frame, the first overhead block contains a control character "0X4B" and an "O code" character "0×5", and during data transmission, the first overhead frame is determined by matching the control character and the "O code" character among multiple interconnected FlexE interfaces. 32 overhead frames constitute one overhead multiframe.

[0074] In the above description, the FlexE generic architecture based on the Flexible Ethernet protocol and the process of data transmission based on the existing FlexE technology are described with reference to Fig. 1 to Fig. 5. The current OIF FlexE standard defines a 50G / 100G / 200G / 400G interface framework, in which N slots are assigned to FlexE client interfaces of different rates in a slot cycle period, and each slot has a slot bandwidth granularity of 5 [Gbps] (hereinafter referred to as 5G). Thus, N=interface rate / 5 [Gbps]. Taking 100G PHY as an example, as shown in Fig. 6, each PHY includes 20 5G slots, and when combining N PHYs, there are a total of N x 20 5G slots. Therefore, the bandwidth assigned to each FlexE client needs to be an integer multiple of 5G, and the minimum bandwidth is 5G, i.e., at least one slot is assigned. In FIG. 6 , the slot bandwidth of each slot is 5G, x slots are assigned to FlexE client #1, y slots are assigned to FlexE client #2, ..., z slots are assigned to FlexE client #3, ..., z slots are assigned to FlexE client #4, ..., z slots are assigned to FlexE client #5, ..., z slots are assigned to FlexE client #6, ..., z slots are assigned to FlexE client #7, ..., z slots are assigned to FlexE client #8, ..., z slots are assigned to FlexE client #9, ..., z slots are assigned to FlexE client #10, ..., z slots are assigned to FlexE client #11, ..., z slots are assigned to FlexE client #12, ..., z slots are assigned to FlexE client #13, ..., z slots are assigned to FlexE client #14, ..., z slots are assigned to FlexE client #15, ..., z slots are assigned to client #M. However, there are many low-rate services in the current application layer. For example, an automatic teller machine (ATM) service in a bank may require very little bandwidth, only 100 Mbps. In this situation, even if the smallest 5G FlexE client channel (occupying only one slot) is used to carry the service, it will waste 4.9G of bandwidth and it is impossible to match the service requirements exactly.

[0075] To solve the above technical problems, this application redefines a fine-grained sub-client interface based on the existing FlexE interface or general Ethernet physical interface. Based on the requirements of multiple different low-rate services, the interface rate of each sub-client interface can be flexibly set to avoid bandwidth waste as much as possible. In addition, this application further provides a sub-slot cross-connection technology, and based on the full use of bandwidth, the transmission based on the slot cross-connection technology in the device can effectively reduce the transmission delay.

[0076] Before describing the technical solutions provided by this application, some technical terms used in this application will be briefly explained in order to facilitate understanding of the technical solutions in this application.

[0077] Sub-slot: A sub-slot may also be referred to as a lower slot, in contrast to the slot (which may also be referred to as a large slot or upper slot) configured in an existing FlexE client interface or the large bandwidth of a common ETH interface. In the case of a standard FlexE client interface or a common ETH interface, each FlexE client interface or ETH interface is divided into M sub-slots in the time domain, and each sub-user interface occupies the bandwidth of at least one sub-slot for data transmission.

[0078] FlexE sub-shim: slices data of the same sub-client based on the sub-slot distribution mechanism, and encapsulates the sliced ​​data into sub-slots obtained by pre-splitting as sub-slot payloads. Then, each sub-slot obtained by splitting is mapped to a corresponding FlexE client interface based on the sub-client-sub-slot mapping table obtained in advance. Each sub-slot is mapped to one FlexE client interface.

[0079] Sub-user: A sub-client corresponds to different sub-user interfaces or bandwidths of the network. Based on multiple bandwidth requirements, multiple FlexE sub-clients can be flexibly configured to support Ethernet MAC data streams of different rates (such as 10G, 40G, nx25G, and even non-standard rate data streams). For example, data streams can be transmitted to the FlexE sub-shim layer in 64b / 66b or 64b / 65b transcoding or 256b / 257b transcoding modes.

[0080] Sub-user interface: A sub-user interface is a sub-client interface. A sub-user interface may also be referred to as a sub-slot interface, a sub-sub-slot interface, a sub-slot channel, or a sub-slot channel. A sub-user interface is a concept for an existing FlexE client interface or a common Ethernet interface. Each FlexE client interface or a common Ethernet interface is logically divided into multiple sub-user interfaces and divided into multiple sub-slots in the time domain. Each sub-user interface occupies at least one sub-slot for data transmission. The slot bandwidth granularity of each sub-slot is usually smaller than 5 Gbps and may be any value in the range of, for example, 10 Mbps to 100 Mbps, thereby carrying lower rate services and using the bandwidth efficiently.

[0081] Subclient subslot payload: A subclient subslot payload is data obtained by slicing data of the same subclient. Each slice is encapsulated as a subclient subslot payload into a subslot obtained by pre-splitting.

[0082] Sub-client sub-slot mapping table: The sub-client sub-slot mapping table may also be referred to as the sub-path slot allocation table, the sub-client sub-slot allocation table, or the sub-path slot mapping table. The sub-client sub-slot mapping table is used to identify the number of slots assigned to each sub-client sub-interface and slot position.

[0083] Base Frame: A base frame is a data structure provided by this application, which is used to carry multiple service data streams of multiple different sub-clients. Each base frame includes a base frame payload. The base frame payload includes a base frame overhead and a sub-slot payload (i.e., a sub-client sub-slot payload). In this application, each sub-slot payload has the same length, e.g., Y bits. Each sub-slot payload may be multiple 64b / 66b code blocks. Furthermore, to improve data transmission efficiency, each sub-slot payload may be multiple 64B / 65B code blocks or 256B / 257B code blocks, which may be obtained by transcoding and compressing the multiple 64B / 66B code blocks encoded by the PCS by using a transcoding algorithm, which may be, for example, 64B / 65B transcoding or 256B / 257B transcoding. The base frame overhead is used to transmit overhead information, including but not limited to: The sequence number of the base frame, Sub-client sub-slot mapping table, Slot adjustment request, Slot Adjustment Response, Slot availability indication, Management channel information, and Overhead inspection information, It contains one or more pieces of information.

[0084] The sequence number of the base frame may be used to identify the position of the base frame within the entire multiframe. The number of sub-slots contained in the base frame may be known based on the position information. The sub-client sub-slot mapping table may be used to identify the number of slots assigned to each sub-path and slot position. The slot adjustment request is used to transmit a slot adjustment request, for example, used to adjust the slots of the sub-client. The slot adjustment response is a response to receiving the slot adjustment request. The slot validity indication indicates that the adjustment of the slot will be valid. The management message channel may be used to transmit network element management messages or may be used to transmit the sub-client sub-slot mapping table information. The overhead check information is used to check the base frame overhead. The check algorithm may be a bit error detection algorithm, such as, but not limited to, CRC or BIP. The sub-client sub-slot payload is used to carry data of the different sub-client interfaces based on the sub-client sub-slot mapping table. Each base frame further includes a code block for demarcating the base frame header and a code block for demarcating the base frame trailer.

[0085] FIG. 7 is a schematic diagram of a particular base frame encapsulation format according to this application. However, one skilled in the art can understand that FIG. 7 should not be understood as a limitation on the base frame encapsulation format. As shown in FIG. 7, for compatibility with the Ethernet frame format defined in IEEE 802.3, the base frame is encapsulated by using a / S / code block, a / D / code block, and a / T / code block. The / S / code block is used to indicate the frame header of the base frame. The / T / code block is used to indicate the frame trailer of the base frame. The data field of the / D / code block (such as the block payload field shown in FIG. 7 or FIG. 8) is used to carry the base frame payload. The / I / code block may be used for rate adaptation of the base frame. In a particular implementation, the format of each code block in the base frame may follow the code block format defined in IEEE 802.3, for example, as shown in FIG. 8. In one particular implementation, some or all of the data fields (block payload, BP) in the / S / code block and / or the / T / code block and the data fields of the / D / code block collectively carry the base frame payload, where the BP in the S code block is an optional field and the T code block may be any one of the seven code blocks T0 to T7.

[0086] FIG. 9 is a schematic diagram of the structure of data transmitted based on a sub-user interface according to this application. As shown in FIG. 9, a FlexE client interface or a common ETH interface with a bandwidth of N×5G is divided into M sub-slots x for cyclic transmission. In other words, each cycle period has M sub-slots. A cycle period may also be referred to as a sub-slot scheduling period of a sub-user interface or a slot scheduling period of a sub-user interface. In a specific implementation, the M sub-slots are evenly distributed among X base frames, and (M / X) sub-slots are carried in each base frame payload. Every X base frames may also be defined as one multiframe. In each cycle period, one multiframe is transmitted. In a specific implementation, according to the Ethernet packet transmission specification, the length of a multiframe must be less than or equal to 9600 bytes.

[0087] In this application, each FlexE interface may be logically divided into multiple FlexE client interfaces. One FlexE client interface may be logically divided into multiple FlexE sub-client interfaces, and one FlexE client interface may be divided into M sub-slots in the time domain. For FlexE client interfaces with different bandwidths and the bandwidth of different FlexE sub-client interfaces, M may be flexibly configured. For example, FIG. 10 is a schematic diagram of a multi-frame encapsulation format according to this application. Referring to FIG. 10, each 5G FlexE client interface may be divided into 480 sub-slots (i.e., M=480) in the time domain. 20 base frames, i.e., one multi-frame, are evenly distributed in each slot scheduling period (one slot scheduling period is 480 sub-slots) in the FlexE client interface. In this application, the base frame is named fgDu in English. Each base frame includes 24 sub-slots. In a particular embodiment, each subslot payload may include eight 66b compressed code blocks. For a base frame, in addition to the / S / , / OH / , and / T / code blocks for encapsulation, a base frame may include 197 66b code blocks. For rate adaptation, / I / code blocks may be added between base frames, or some of the / I / code blocks may be replaced by OAM code blocks transmitted in the FlexE client interface. / I / code blocks, i.e., idle code blocks, are used for rate adaptation at the MAC layer.

[0088] In one particular implementation, Figure 11 is a schematic diagram illustrating a multi-frame format according to this application. Figure 11 may be further used to explain the multi-frame structure shown in Figure 10. Fine-grained slot 1 to fine-grained slot 480 illustrated in Figure 11 correspond to sub-slot 1 to sub-slot 480.

[0089] As shown in FIG. 11, a multiframe includes 480 subslots, each base frame includes 24 subslots, and each subslot includes eight 66b compressed code blocks, i.e., eight 65b code blocks. The code block compression process is shown in FIG. 11. After periodically inserting OAM code blocks into the 66b code block stream, code block compression is performed. After compression, each subslot includes eight 65b code blocks. In a particular implementation, some of the fields in the base frame overhead may be used to carry data. For example, if only 56 bits are needed in the base frame overhead, the remaining 8 bits of each base frame overhead may be used to carry data. In a particular implementation, the first field in the code block used to identify the frame trailer may be used to indicate the frame trailer, and the second field is used to carry data. For example, the control character in the T code block shown in Figure 11 indicates a frame trailer, and the BP field in the T code block may be used to carry data, i.e., 56 bits in the T code block may be used to carry data. Thus, for example, the number of bits used to carry service data in the base frame as shown in Figure 11 is equal to 24 x (8 x 65b) = 12480b = 8b (the remaining 8 bits in the OH) + 194 x 64b + 56b (the 56 bits in the T code block).

[0090] 12, the following describes a method 100 for obtaining sub-client sub-slot payloads of an Ethernet service according to the present application. The method includes the steps of obtaining an Ethernet service data stream from a PCS, slicing the first Ethernet service data stream to obtain a plurality of Ethernet service slices, and using the plurality of Ethernet service slices as a plurality of sub-client sub-slot payloads. In a specific example, the method for obtaining an Ethernet service data stream is described in detail with reference to S101 to S103 in FIG. 12, and the method for slicing the Ethernet service data stream to obtain a plurality of sub-client sub-slot payloads is described with reference to S104.

[0091] S101. The PCS encodes a MAC layer Ethernet packet.

[0092] In one particular implementation, as shown in Figure 12, with reference to the Ethernet layered model defined in IEEE 802.3, each sub-path, i.e., each sub-client interface, is considered as an independent port and is divided into a MAC layer and a PCS. The MAC layer implements the encapsulation and inspection process of the service packets, and the PCS performs 64B / 66B coding on the MAC layer packets, i.e., the Ethernet service data stream, in 802.3 coding mode. The coded code block stream includes S code blocks, D code blocks, T code blocks, and I code blocks (i.e., idle code blocks, which may also be referred to as idle code blocks). The code block format follows the standard code block format defined in IEEE 802.3.

[0093] S102. Insert a lower path layer OAM code block into the code block stream encoded by the PCS to obtain an Ethernet service data stream. The OAM code block is used to transmit OAM information. For example, adjacent / I / code blocks may be selected at time intervals (e.g., 3.3 ms) or at intervals of a number of code blocks (e.g., 500) to insert an OAM code block.

[0094] In one particular implementation, the OAM information may be, for example, an OAM message, see the MTN path layer OAM format defined in the ITU G.MTN standard.

[0095] S103. Optionally, perform transcoding and compression on the 64b / 66b code block stream into which the OAM message is inserted.

[0096] In one particular implementation, the compressed code block stream includes a plurality of 64b / 65b code blocks. In one particular implementation, the compressed code block stream includes a plurality of 256b / 257b code blocks.

[0097] Performing transcoding and compression on the code block stream can improve the efficiency of transporting data in the lower paths. The transcoding algorithm may be 256B / 257B transcoding. Figure 12 only shows 64B / 65B transcoding, and 256B / 257B transcoding is similar to 64B / 65B transcoding, and the details will not be described again.

[0098] S104. Slice the Ethernet service data stream (which may also be referred to as a code block stream) based on the length (Y bits) of each sub-client sub-slot payload. The length of each sub-client sub-slot payload may be Z 64b / 66b code blocks. If transcoding and compression is performed, the length may alternatively be Z transcoded 64b / 65b code blocks or Z transcoded 256b / 257b code blocks. Both Y and Z are integers.

[0099] Each slice obtained by performing the slicing operation in S104 is encapsulated in the base frame payload as a sub-client sub-slot payload. For the base frame payload and related format of the base frame, please refer to the above description. The details will not be repeated in this specification.

[0100] Referring to FIG. 13, the following describes a method 200 for obtaining sub-client sub-slot payloads for a constant bit rate (CBR) service according to the present application.

[0101] S201. Slice a CBR service data stream to obtain a plurality of CBR service slice data. A first CBR service data stream includes a plurality of CBR service frames.

[0102] The slicing of the CBR service data stream includes, but is not limited to, the following two modes:

[0103] Mode 1: Bit-transparent slicing mode

[0104] In the bit-transparent slicing mode, the content of the service frame is not identified and slicing is performed based on a fixed number of bits (eg, i bits).

[0105] Mode 2: Frame Slicing Mode

[0106] In the case of frame slicing mode, the service frame format needs to be identified and slicing is performed based on a fixed number of frames (eg, j frames).

[0107] S202. Multiple CBR The service slice data is individually sliced ​​and encapsulated to obtain a plurality of CBR service slices, where each CBR service slice includes CBR service slice data and encapsulation information.

[0108] In one particular implementation, each CBR service slice includes multiple fields that are respectively used to carry CBR service slice data and encapsulation information.

[0109] In one particular implementation, the CBR service slice includes a first field that is used to carry the CBR service slice data.

[0110] In one particular implementation, the encapsulation information includes any one or more of the second through seventh fields that are used to carry different encapsulation information.

[0111] Second field: The second field is used to carry clock frequency information, which may include information such as a timestamp that is used to transmit the clock information of the service.

[0112] Third field: The third field is used to carry operation, maintenance and management (OAM) information.

[0113] Fourth field: The fourth field is used to carry the sequence number of the CBR service slice. The sequence number of the CBR service slice may be used, for example, for slice reconstruction. The sequence number of the CBR service slice may also be used for slice loss detection or lossless protection.

[0114] Fifth field: The fifth field is used to carry payload length information, which is the effective length of the CBR service slice data carried in each CBR service slice.

[0115] Sixth field: The sixth field is a padding field. However, the padding field may only be used for data padding when the encapsulated service slice is shorter than the length of the subslot payload.

[0116] Seventh field: The seventh field is used to carry check information. The check information may be used to perform bit error checking on the slice data. However, this application is not limited to mandatory inclusion of check information in the slice. The check function may alternatively be performed in other ways, such as, for example, using OAM to perform the check.

[0117] S203. Obtain a plurality of sub-client sub-slot payloads based on the plurality of CBR service slices.

[0118] In one particular implementation, the CBR service slices may be used directly as the sub-client sub-slot payloads, i.e., the length of each CBR service slice and each sub-client sub-slot payload obtained after encapsulation remains unchanged, e.g., both are Y bits. The following description illustrates this scheme by using one particular example with reference to FIG. 14.

[0119] In another particular implementation, obtaining a plurality of sub-client sub-slot payloads based on a plurality of CBR service slices includes: performing Ethernet packet encapsulation on the plurality of CBR service slices to obtain a second data stream, the second data stream including a plurality of code blocks; and slicing the second data stream based on a length of each sub-client sub-slot payload to obtain a plurality of sub-client sub-slot payloads. The following description describes this implementation by using one particular example with reference to FIG.

[0120] 14 is a schematic diagram of a method for obtaining sub-client sub-slot payloads of a CBR service according to this application. The method 1400 may be specifically used to implement the method 200. The method includes the following steps:

[0121] S1401. Slice the CBR service data to obtain a plurality of CBR service slice data corresponding to the slices shown in Fig. 14. The slicing mode is Mode 1 or Mode 2 described above.

[0122] S1402. Encapsulate each service slice data. The slice length after encapsulation is the same as the sub-slot payload length (e.g., Y bits). The encapsulation information includes one or more of the following information:

[0123] OAM information (optional) used for fault detection and protection operations at the path layer below the CBR service; sequence number (optional), Clock frequency information used to transmit clock information (such as timestamps) for the service; Payload Length and Padding (Optional): If the encapsulated service slice is smaller than the sub-slot payload length, data padding is required and identifies the effective payload length; and An optional check field used to perform bit error checking on the slice data; the check function may alternatively perform the check by using OAM.

[0124] S1403. Use the sliced ​​data as a sub-client sub-slot payload.

[0125] 15 is a schematic diagram of a method for obtaining sub-client sub-slot payloads of a CBR service according to this application. The method 1500 may be specifically used to implement the method 200. The method 1500 includes the following steps:

[0126] S1501. Slice CBR service data to obtain a plurality of CBR service slice data corresponding to the service slices shown in Fig. 15. The slicing mode is Mode 1 or Mode 2 described above.

[0127] S1502. Encapsulate a slice data block.

[0128] The encapsulation information includes one or more of the following information:

[0129] CBR service OAM information (optional) used for fault detection and protection operations at the lower path layers of the sequence number (optional), Clock frequency information used to transmit clock information (such as timestamps) for the service; Payload Length and Padding (Optional): If the encapsulated service slice is smaller than the sub-slot payload length, data padding is required and identifies the effective payload length; and An optional check field used to perform bit error checking on the slice data; the check function may alternatively perform the check by using OAM.

[0130] S1503. Encapsulate the encapsulated CBR service slices into Ethernet packets, and add frame boundary (e.g., / S / code block and / T / code block shown in FIG. 15) and frame gap encapsulation (e.g., / I / code block shown in FIG. 15) to obtain a coded Ethernet code block stream. Each encapsulated CBR service slice is used as a data code block of an Ethernet data stream. The specific operation of this step is similar to that of existing Ethernet packet processing. Details are not repeated in this specification.

[0131] S1504. Insert a lower path layer OAM code block into the PCS-encoded Ethernet code block stream. The OAM code block is used to carry OAM information.

[0132] In one particular implementation, the OAM information may be, for example, an OAM message, see the MTN path layer OAM format defined in the ITU G.MTN standard.

[0133] S1505. Optionally, perform transcoding and compression on the 64b / 66b code block stream in which the OAM message is inserted.

[0134] In one particular implementation, the compressed code block stream includes a plurality of 64b / 65b code blocks. In one particular implementation, the compressed code block stream includes a plurality of 256b / 257b code blocks.

[0135] Transcoding and compression can be performed on the code block stream to improve the efficiency of transporting data in the lower paths. The transcoding algorithm may be 256b / 257b transcoding. Figure 12 shows only 64b / 65b transcoding. 256b / 257b transcoding is essentially similar, so the details will not be repeated here.

[0136] S1506. Slice the Ethernet service data stream (which may also be referred to as a code block stream) into which OAM code blocks have been inserted based on the length (e.g., Y bits) of each sub-client sub-slot payload. The length of each sub-client sub-slot payload may be Z 64B / 66B code blocks. If transcoding and compression are performed before slicing, the length may alternatively be Z transcoded 64B / 65B code blocks or Z transcoded 256B / 257B code blocks. Both Y and Z are integers.

[0137] Each slice obtained by performing the slicing operation in S1056 is encapsulated in the base frame payload as a sub-client sub-slot payload. For the base frame payload and the related format of the base frame, please refer to the above description. The details will not be repeated in this specification.

[0138] The above description describes the base frame encapsulation format and encapsulation process provided by this application, and also describes the method for obtaining a sub-client sub-slot payload of an Ethernet service or a sub-client sub-slot payload of a CBR service. Based on this, a data transmission method 1600 provided by this application is described with reference to Figure 16. The method is performed by a first communication device, and the first communication device includes a first interface. The method includes the following steps:

[0139] S1601. Generate a first data stream, where the first data stream includes a plurality of data code blocks.

[0140] Specifically, the multiple data code blocks include multiple first base frames, each of the first base frames includes a base frame payload, the base frame payload includes a base frame overhead and multiple sub-client sub-slot payloads, the multiple sub-client sub-slot payloads include multiple first sub-client sub-slot payloads, and the multiple first sub-client sub-slot payloads include service data of the first sub-client interface.

[0141] S1602. Transmit a first data stream by using a first interface.

[0142] In S1602, the encapsulation format and encapsulation process of each base frame should be referred to the above detailed description, and the details will not be described repeatedly in this specification.

[0143] In one particular implementation, the first interface is divided into M sub-slots in the time domain, where M is an integer greater than 1. To carry a lower rate service, the slot bandwidth of each of the M sub-slots is P. Preferably, P is less than 5 gigabits per second (Gbp / s). More preferably, P is equal to or less than 1 Gbp / s. More preferably, P is equal to or less than 500 Mbps. For example, to carry an ATM service, P is preferably equal to or less than 100 Mbps. For the specific value of M, reference should be made to the above description. Details will not be repeated in this specification.

[0144] In one particular implementation, the first interface is logically divided into Z sub-client interfaces, the Z sub-client interfaces including the first sub-client interface.

[0145] In one particular implementation, the first interface is a first FlexE client interface. The first communication device further includes a first FlexE interface at the transmitting side, and S1602 specifically includes: The method includes a step of transmitting a first data stream by using the first FlexE interface based on a slot mapping relationship between the first FlexE client interface and the first FlexE interface, where the first FlexE interface is logically divided into multiple FlexE client interfaces, the multiple FlexE client interfaces including the first FlexE client interface.

[0146] In one particular implementation, the first interface is a first FlexE client interface.

[0147] In one particular implementation, the first interface is an Ethernet interface.

[0148] In one particular implementation, the first data stream is used to carry an Ethernet service.

[0149] In one particular implementation, when the first data stream is used to carry an Ethernet service, the step of generating the first data stream in S1601 includes: obtaining a first Ethernet service data stream from a PCS; slicing the first Ethernet service data stream to obtain a plurality of Ethernet service slices; and encapsulating the multiple Ethernet service slices in a base frame payload as multiple sub-client sub-slot payloads.

[0150] For specific implementation of the above steps, please refer to the detailed description of the method 100 with respect to Figure 12. Details will not be described in this specification.

[0151] In one particular implementation, the first data stream is used to carry a CBR service.

[0152] When the first data stream is used to carry a CBR service, generating the first data stream in S1601 includes the following steps.

[0153] In one particular implementation, the method 1600 includes slicing a first CBR service data stream to obtain a plurality of CBR service slice data, the first CBR service data stream including a plurality of CBR service frames; Multiple CBR separately slicing and encapsulating the service slice data to obtain a plurality of CBR service slices, each CBR service slice including CBR service slice data and encapsulation information; obtaining a plurality of sub-client sub-slot payloads based on the plurality of CBR service slices; and encapsulating the plurality of sub-client sub-slot payloads into a base frame payload.

[0154] In one particular implementation, the slice granularity of each CBR service slice is i bits, and the contents of multiple CBR service frames are not distinguished when slicing the first CBR service data stream, where i is an integer.

[0155] In one particular implementation, the slice granularity of each CBR service slice is j complete CBR service frames, where j is an integer greater than or equal to 1.

[0156] In one particular implementation, the CBR service slice includes a first field that is used to carry the CBR service slice data.

[0157] In one particular implementation, the encapsulation information includes a second field, where the second field is used to carry the clock frequency information.

[0158] In one particular implementation, the encapsulation information includes a third field, which is used to carry operation, maintenance and management (OAM) information.

[0159] In one particular implementation, the encapsulation information includes a fourth field, which is used to carry a sequence number of the CBR service slice.

[0160] In one particular implementation, the sequence numbers of the CBR service slices are used for slice reconstruction.

[0161] In one particular implementation, the encapsulation information includes a fifth field, which is used to carry payload length information, which is the effective length of the CBR service slice data carried in each CBR service slice.

[0162] In one particular implementation, the encapsulation information includes a sixth field, the sixth field being a padding field.

[0163] In one particular implementation, the encapsulation information includes a seventh field, which is used to carry test information.

[0164] In one particular implementation, obtaining a plurality of sub-client sub-slot payloads based on a plurality of CBR service slices includes: performing Ethernet packet encapsulation on the plurality of CBR service slices to obtain a second data stream, the second data stream including a plurality of code blocks; and slicing the second data stream based on a length of each sub-client sub-slot payload to obtain a plurality of sub-client sub-slot payloads.

[0165] In one particular implementation, the second data stream includes a plurality of 64b / 66b code blocks, a plurality of 64b / 65b code blocks, or a plurality of 256b / 257b code blocks.

[0166] In one particular implementation, the first data stream includes a number of OAM code blocks used to carry OAM information.

[0167] In one particular implementation, obtaining a plurality of sub-client sub-slot payloads based on a plurality of CBR service slices includes: The method includes the step of directly using each CBR service slice as a sub-client sub-slot payload.

[0168] In one particular implementation, the first data stream includes a plurality of 64b / 66b code blocks, a plurality of 64b / 65b code blocks, or a plurality of 256b / 257b code blocks.

[0169] It should be noted that for a specific process of slicing and encapsulating the CBR service data stream and obtaining multiple sub-client sub-slot payloads, reference may be made to the related descriptions in the method 200, the method 1400, and the method 1500 corresponding to Figures 13 to 15. Details will not be described repeatedly in this specification.

[0170] In one particular implementation, the method includes the steps of receiving, by a first communication device, a first sub-client sub-slot mapping table transmitted by a second communication device, the first sub-client sub-slot mapping table being used to indicate a first mapping relationship between M sub-slots and Z sub-client interfaces, each sub-client interface being mapped to at least one of the M sub-slots; and storing the first sub-client sub-slot mapping table.

[0171] In one particular implementation, a first sub-client sub-slot mapping table indicates a first mapping relationship by mapping Z sub-client IDs to M sub-slot IDs, where the Z sub-client IDs are used to indicate the Z sub-client interfaces and the M sub-slot IDs are used to indicate the M sub-slots.

[0172] In one particular implementation, the second communication device may be a control management device or a forwarding device that performs data communication with the first communication device. The control management device may be, for example, a network management device or a controller. The forwarding device may be, for example, a device for forwarding, such as a router, a switch, a firewall, a packet transmission network PTN device, or a circuit board in a network device.

[0173] In one particular implementation, the first sub-client sub-slot mapping table is carried in the base frame overhead, or the first sub-client sub-slot mapping table is carried in a designated sub-slot of the M sub-slots.

[0174] In one specific implementation, the sub-client sub-slot mapping table provided by this application includes a sub-slot number and a sub-client number, and each sub-client may be mapped to multiple sub-slots. The above "mapped" may also be understood as configured or occupied. In other words, each sub-client transmits data by using multiple mapped sub-slots. Based on the same sub-client sub-slot mapping table, the communicating transmitting end and receiving end transmit and recover (or demap) data transmitted in the corresponding sub-slot.

[0175] 17 and 18, the following description uses several examples to describe a flowchart of a method for obtaining a first sub-client sub-slot mapping table by a first communication device.

[0176] Figure 17 is a schematic diagram of a method for configuring a sub-client sub-slot mapping table based on a control management device according to this application. As shown in Figure 17, both the communicating receiving end and the communicating transmitting end are configured by the control management device.

[0177] FIG. 18 is a schematic diagram of a method for configuring a sub-client sub-slot mapping table based on a data path according to this application. As shown in FIG. 17, the control management device configures only the sub-client sub-slot mapping table of the transmitting end, and the transmitting end transmits the sub-client sub-slot mapping table to the receiving end via the data path. The sub-client sub-slot mapping table may be transmitted in the data path by using a slot table transmission path defined in the base frame overhead, or may specify a designated sub-slot among the M sub-slots for transmission. In the case of a FlexE interface, the sub-client sub-slot mapping table may alternatively be transmitted by using the FlexE overhead. The mode of transmitting the sub-client sub-slot mapping table in the data path is not particularly limited in this application.

[0178] In the method corresponding to Fig. 17, the first communication device may be a transmitting end device or a receiving end device. In the method corresponding to Fig. 18, the first communication device is used as a receiving end device.

[0179] In one particular implementation, the first sub-client interface is mapped to W sub-slots of the first interface, and the generating the first data stream comprises: The method includes mapping a plurality of first sub-client sub-slot payloads to W sub-slots, respectively, where W is an integer greater than one.

[0180] In one particular implementation, the step of mapping each of the first sub-client sub-slot payloads to the W sub-slots includes: The method includes: scheduling the W sub-slots sequentially based on a mapping relationship between the first sub-client interface and the W sub-slots and based on a slot scheduling period of the first interface, where the mapping relationship between the first sub-client interface and the W sub-slots may be determined based on a first sub-client sub-slot mapping table.

[0181] In one particular implementation, the first communication device includes a second sub-client interface on the receiving side, and the step of generating the first data stream includes: obtaining a plurality of second sub-client sub-slot payloads of a second sub-client interface; processing the plurality of second sub-client sub-slot payloads to obtain a plurality of first sub-client sub-slot payloads based on a sub-slot cross-connect relationship between the second sub-client interface and the first sub-client interface; and encapsulating the first plurality of sub-client sub-slot payloads into a base frame payload.

[0182] For details regarding this implementation, reference should be made to the following detailed description of the mid-slot cross-connect device NE2 in Figures 20A, 20B, and 20C through 23A, 23B, and 23C.

[0183] In one particular implementation, the step of obtaining a plurality of second sub-client sub-slot payloads of the second sub-client interface includes: obtaining a third data stream of a second interface at a receiving side, and de-mapping a plurality of second sub-client sub-slot payloads from the third data stream based on a second sub-client sub-slot mapping table, where the second interface is divided into A sub-slots in the time domain, and the second interface is logically divided into B sub-client interfaces, the B sub-client interfaces including the second sub-client interface; Second Sub-Client Sub-Slot Mapping Table is used to denote a second mapping relationship between A sub-slots and B sub-client interfaces, where both A and B include integer steps.

[0184] The third data stream corresponds to the data stream obtained from the upper path, i.e., the client interface or the Ethernet interface, of the mid-slot cross-connect device NE2 in Figures 20A, 20B and 20C to 23A, 23B and 23C.

[0185] In one particular implementation, the second interface is an Ethernet interface.

[0186] In one particular implementation, the second interface is: Second FlexE Client Interface It is.

[0187] In one particular implementation, the first communication device further includes a second FlexE interface at the receiving side, and the step of acquiring the third data stream includes: acquiring a fourth data stream of a second FlexE interface, the second FlexE interface being logically divided into a plurality of FlexE client interfaces, the plurality of FlexE client interfaces including the second FlexE client interface; and a step of demapping a third data stream from the fourth data stream based on a slot mapping relationship between the second FlexE client interface and the second FlexE interface, the third data stream including a plurality of second base frames, the plurality of second base frames including a plurality of second sub-client sub-slot payloads.

[0188] The second FlexE interface may be, for example, the receiving FlexE interface shown in Figures 20A, 20B, and 20C, or Figures 21A, 21B, and 21C. The fourth data stream is a data stream obtained by the receiving FlexE interface. The third data stream may be, for example, a data stream corresponding to the upper path client-1 shown in Figures 21A, 21B, and 21C, or Figures 22A, 22B, and 22C.

[0189] Referring to FIG. 19, the following description uses an example to describe a particular method 1900 for transmitting a first data stream by using a first interface in the method 1600 provided by this application.

[0190] S1901. Schedule M sub-slots sequentially. A first interface (FlexE client interface or common ETH interface) configures a TDM slot scheduler at the transmitting end by using a FlexE sub-shim layer to schedule M sub-slots sequentially. The TDM slot scheduler uses the M sub-slots obtained by dividing the first interface as one slot scheduling period for periodic scheduling.

[0191] S1902. Map, based on the sub-slot scheduling sequence and based on the first sub-client sub-slot mapping table, each of a plurality of different sub-client sub-slot payloads included in the first data stream to a sub-slot corresponding to a corresponding sub-client interface.

[0192] S1903. Perform base frame encapsulation. In one specific implementation, M sub-slots are evenly distributed in X base frames. Therefore, one base frame is encapsulated every time M / X sub-slots are scheduled. For the process of base frame encapsulation, please refer to the detailed description above. The details will not be repeated in this specification.

[0193] S1904. Transmit a first data stream including a plurality of base frames by using a first interface.

[0194] In the above method 1600, the base frame overhead and sub-slot payload of each sub-client are encapsulated in the base frame payload and encapsulated in the / D / code block as a data code block during mapping of the Ethernet service, so that even a general Ethernet interface that does not support the standard FlexE mode can implement bandwidth separation in the interface by using the method provided by this application. According to the method provided by this application, the base frame format is reconfigured. Therefore, whether it is an Ethernet interface or a flexible Ethernet interface, it is further possible to flexibly configure small bandwidths of various rates within a large bandwidth. It is possible to provide multiple flexible bandwidth allocation solutions for low-rate services with multiple different rates. This greatly improves the bandwidth utilization.

[0195] In the method 1600, the first interface may be an Ethernet interface or a Flexible Ethernet interface, and may be used to carry a general Ethernet service or may be used to carry a CBR service. The application scenarios of the technical solution are wide-ranging. The following description uses several specific examples to describe the application scenarios of the method 1600 with reference to Figs. 20A, 20B, and 20C to 23A, 23B, and 23C. Figs. 20A, 20B, and 20C are schematic flowcharts of a method for transmitting an Ethernet service based on a FlexE interface. Figs. 21A, 21B, and 21C are schematic flowcharts of a method for transmitting a CBR service based on a FlexE interface. Figs. 22A, 22B, and 22C are schematic flowcharts of a method for transmitting an Ethernet service based on an Ethernet interface. Figs. 23A, 23B, and 23C are schematic diagrams of a method for transmitting a CBR service based on an Ethernet interface. In Figures 20A, 20B, and 20C to 23A, 23B, and 23C, the first communication device in this application may be the source service access device NE1, the mid-slot cross-connect device NE2, or the sink service transmission device NE3 shown in any one of Figures 20A, 20B, and 20C to 24. Alternatively, the first communication device may be a circuit board in the source service access device NE1, the mid-slot cross-connect device NE2, or the sink service transmission device NE3, and is configured to perform one or more of the operations in the methods corresponding to Figures 20A, 20B, and 20C to 23A, 23B, and 23C.

[0196] With reference to Figures 20A, 20B, and 20C, the following briefly describes a method for transmitting Ethernet services based on a FlexE interface. As shown in Figures 20A, 20B, and 20C, a FlexE-based communication network includes three types of devices: a source service access device NE1, a mid-slot cross-connect device NE2, and a sink service transmission device NE3.

[0197] Source service access device NE1: the receiving side is an Ethernet interface, and the sending side is a FlexE port. After the receiving port receives an Ethernet packet, it first completes side packet layer service processing (such as VLAN, IP, MPLS, and SR), and then maps the different service streams to corresponding lower paths (i.e., sub-client interfaces corresponding to sub-clients 1-1, ..., sub-clients 1-m shown in Figures 20A, 20B, and 20C in this application) according to an Ethernet slot mapping process, and then loads the different service streams to upper paths (i.e., FlexE client interfaces corresponding to clients 1-1, ..., client 1-n shown in Figures 20A, 20B, and 20C in this application), and finally sends the different service streams from the FlexE interface. For the above process, please refer to the related description of the method 100 corresponding to Figure 12. First, generate each sub-client sub-slot payload, then, based on the method corresponding to Fig. 19 and based on the sub-client sub-slot mapping table, each sub-client sub-slot payload is mapped to each sub-slot corresponding to each sub-client by the TDM slot scheduler, and then, the corresponding base frame is encapsulated and transmitted from the corresponding Flex-client interface. The mapping process between each Flex client interface and the corresponding FlexE interface is an existing implementation and will not be described in detail in this specification.

[0198] Mid-slot cross-connect device NE2: both the receiving side and the transmitting side are FlexE interfaces. First, multiple streams received from the FlexE upper path (i.e., the FlexE client interfaces corresponding to the clients 1-1, ..., 1-n shown in Figs. 20A, 20B, and 20C in this application) are demapped from the upper path to the lower path (i.e., the sub-client interfaces corresponding to the sub-clients 1-1, ..., 1-m shown in Figs. 20A, 20B, and 20C in this application) based on the sub-client sub-slot table, and then perform the lower slot cross-connect to connect the multiple streams on the sending side. Multiple service streams are cross-connected to lower paths (i.e., sub-client interfaces corresponding to sub-clients 2-1, ..., sub-client 2-m shown in Figures 20A, 20B, and 20C in this application), and then the multiple service streams are loaded from the lower paths on the sending side to upper paths (i.e., FlexE client interfaces corresponding to clients 2-1, ..., client 2-n shown in Figures 20A, 20B, and 20C in this application) and transmitted from the FlexE interfaces on the sending side.

[0199] In NE2, the sub-slot cross-connection is to process multiple second sub-client sub-slot payloads in the second sub-client interface based on the sub-slot cross-connection relationship between the second sub-client interface on the receiving side (e.g., sub-client 1-1 in the NE2 device in Figures 20A, 20B, and 20C) and the first sub-client interface on the transmitting side (e.g., sub-client 2-1 in Figures 20A, 20B, and 20C), to obtain multiple first sub-client sub-slot payloads of the first sub-client interface, and then perform base frame encapsulation.

[0200] Sink service transmitting device NE3: the receiving side is a FlexE port, and the transmitting side is an Ethernet interface. Firstly, the stream received from the FlexE upper path is demapped from the upper path to the lower path slot according to the sub-client sub-slot mapping table, and then the Ethernet packets are restored according to the Ethernet slot demapping process, and are sent out from the transmitting Ethernet interface after completing the packet layer service processing.

[0201] With reference to Figures 21A, 21B, and 21C, the following briefly describes a method for transmitting a CBR service based on a FlexE interface. As shown in Figures 21A, 21B, and 21C, a FlexE-based communication network includes three types of devices: a source service access device NE1, a mid-slot cross-connect device NE2, and a sink service transmission device NE3.

[0202] Source service access device NE1: the receiving side is a CBR service interface such as E1 / E3 / T1 / T3 / STM-N / FC, and the transmitting side is a FlexE interface. After the receiving port receives the CBR service bit stream, the sub-client sub-slot payloads of the CBR service are obtained according to any one of the methods in Figure 13, Figure 14, and Figure 15, and then the multiple different CBR service streams corresponding to the multiple obtained sub-client sub-slot payloads of the CBR service are respectively mapped to corresponding lower path (i.e., sub-client interfaces corresponding to sub-clients 1-1, ..., sub-clients 1-m shown in Figures 21A, 21B, and 21C in this application), and then loaded to upper path (i.e., FlexE client interfaces corresponding to clients 1-1, ..., client 1-n shown in Figures 20A, 20B, and 20C in this application) and sent out from the FlexE interface. Specifically, based on the method corresponding to Figure 19 and based on the sub-client sub-slot mapping table, the TDM slot scheduler maps the sub-client sub-slot payload of each CBR service to a sub-slot corresponding to each sub-client, and then the corresponding base frame is encapsulated and transmitted from the corresponding Flex-client interface. The mapping process between each Flex-client interface and the corresponding FlexE interface is an existing implementation and will not be described in detail in this specification.

[0203] Mid-slot cross-connect device: The mid-slot cross-connect device is the same as the mid-slot cross-connect device shown in Figures 20A, 20B, and 20C. Details will not be described in this specification.

[0204] Sink service transmitting device: the receiving side is a FlexE interface, and the transmitting side is a CBR service interface such as 1 / E3 / T1 / T3 / STM-N / FC, etc. The service stream received from the FlexE upper path is demapped from the upper path to the lower path slots according to the slot table, and then the CBR service bit stream is restored according to the CBR slot demapping process, and then transmitted from the transmitting CBR service interface.

[0205] When the FlexE interface transmits the CBR service, the process of slicing, encapsulation and base frame encapsulation of the CBR service should be referred to the relevant description above, and the details will not be repeated in this specification.

[0206] 22A, 22B, and 22C, the following briefly describes a method for transmitting Ethernet services based on an Ethernet interface.

[0207] In Figures 22A, 22B, and 22C, the FlexE-based communication network includes three types of devices: a source service access device NE1, a mid-slot cross-connect device NE2, and a sink service transmission device NE3.

[0208] 22A, 22B, and 22C differ from FIGS. 20A, 20B, and 20C primarily in that the network side interface is a common Ethernet interface rather than a FlexE interface.

[0209] Source service access device NE1: the receiving side is an Ethernet interface, and the sending side is an Ethernet interface. After the receiving port receives an Ethernet packet, it first completes packet layer service processing (such as VLAN, IP, MPLS, SR, etc.) and obtains multiple sub-client sub-slot payloads according to the method corresponding to Fig. 12. Then, according to the method shown in Fig. 19 and based on the sub-client sub-slot mapping table, the multiple sub-client sub-slot payloads are mapped to multiple slots. After the base frame is encapsulated, it transmits the base frame from the corresponding Ethernet interface.

[0210] Intermediate slot cross-connect device NE2: both the receiving side and the transmitting side are Ethernet interfaces. First, the multiple streams from the Ethernet interface are demapped to sub-path (i.e., sub-client interface in this application: sub-client 1-1, ..., sub-client 1-m in Fig. 22A, Fig. 22B and Fig. 22C) slots based on the sub-client sub-slot table, and then perform sub-slot cross-connect to cross-connect the multiple service streams to the sending side sub-path (i.e., sub-client interface in this application: sub-client 2-1, ..., sub-client 2-m shown in Fig. 22A, Fig. 22B and Fig. 22C). Then, based on the method shown in Fig. 19 and based on the sub-client sub-slot mapping table, the multiple sub-client sub-slot payloads are mapped to multiple slots. After the base frame is encapsulated, the base frame is transmitted from the corresponding Ethernet interface.

[0211] In NE2, the sub-slot cross-connection is to process multiple second sub-client sub-slot payloads in the second sub-client interface based on the sub-slot cross-connection relationship between a second sub-client interface on the receiving side (e.g., sub-client 1-1 in the NE2 device in Figures 22A, 22B, and 22C) and a first sub-client interface on the transmitting side (e.g., sub-client 2-1 in Figures 22A, 22B, and 22C), to obtain multiple first sub-client sub-slot payloads of the first sub-client interface, and then perform base frame encapsulation.

[0212] Sink service transmitting device NE3: the receiving side is an Ethernet port and the transmitting side is an Ethernet interface. Firstly, multiple service streams received from the receiving Ethernet interface are demapped into lower path slots according to a sub-client sub-slot mapping table, and then the Ethernet packets are restored according to the Ethernet slot demapping process, and are transmitted from the transmitting Ethernet interface after completing the packet layer service processing.

[0213] 23A, 23B, and 23C, the following briefly describes a method for transmitting a CBR service based on an Ethernet interface.

[0214] In Figures 23A, 23B, and 23C, the FlexE-based communication network includes three types of devices: a source service access device NE1, a mid-slot cross-connect device NE2, and a sink service transmission device NE3.

[0215] Source service access device: the receiving side is a CBR service interface such as E1 / E3 / T1 / T3 / STM-N / FC, and the transmitting side is an Ethernet interface. After the receiving port receives the CBR service bit stream, it obtains the sub-client sub-slot payload of the CBR service according to any one of the methods in Figure 13, Figure 14, and Figure 15, and then the multiple different CBR service streams corresponding to the multiple obtained sub-client sub-slot payloads of the CBR service are respectively mapped to the corresponding sub-paths (i.e., the sub-client interfaces in this application: sub-client 1-1, ..., sub-client 1-m shown in Figure 23A, Figure 23B, and Figure 23C). Then, based on the method shown in Figure 19 and based on the sub-client sub-slot mapping table, the multiple sub-client sub-slot payloads are mapped to slots. After the base frame is encapsulated, it transmits the base frame from the corresponding Ethernet interface.

[0216] Mid-slot cross-connect device: The mid-slot cross-connect device is the same as the mid-slot cross-connect device shown in Figures 22A, 22B, and 22C. Details will not be described in this specification.

[0217] Sink service transmitting device: the receiving side is a flexible Ethernet interface, and the transmitting side is a CBR service interface such as 1 / E3 / T1 / T3 / STM-N / FC, etc. Firstly, multiple service streams received from the receiving Ethernet interface are demapped into sub-path slots according to the sub-client sub-slot mapping table, and then the CBR service bit streams are restored according to the CBR slot demapping process, and after completion, are transmitted from the transmitting CBR service interface.

[0218] Referring to FIG. 24, the following description describes a communication device 700 provided by this embodiment of this application. The communication device 700 may be applied to the network architecture shown in FIG. 3. For example, the communication device 700 may be, for example, a network device 1 (TX) or a network device 2 (RX) in this application, or the communication device 700 may be a first communication device or a second communication device in this application. The first communication device and the second communication device in this application may be an integrated network device, or may be a circuit board in the network device 1, such as an interface circuit board, a line card, a dummy circuit board, or a central cross-connect circuit board. Alternatively, the communication device 700 may be a control management device in this application and performs various operations performed by the control management device. The communication device 700 is configured to perform a method in an embodiment corresponding to any one of Figures 6 to 23A, 23B, and 23C. The communication device 700 includes a transceiver unit 701 and a processing unit 702. The transceiver unit 701 is configured to perform a transmitting operation and a receiving operation, and the processing unit is configured to perform an operation other than transmitting and receiving. For example, when the communication device 700 performs the method 1600 shown in Figure 16 as a first communication device, the processing unit 702 may be configured to generate a first data stream, and the transceiver unit 701 may be configured to transmit the first data stream.

[0219] With reference to FIG. 25, the following description describes another communication device 800 provided by this embodiment of this application. The communication device 800 may be applied to the network architecture shown in FIG. 3. For example, the communication device 800 may be, for example, a network device 1 (TX) or a network device 2 (RX) in this application, or the communication device 800 may be a first communication device or a second communication device in this application. Alternatively, the communication device 800 may be a control management device in this application and perform various operations performed by the control management device. The first communication device and the second communication device in this application may be an integrated network device, or may be a circuit board in the network device 1, such as an interface circuit board, a line card, a dummy circuit board, or a central cross-connect circuit board. The communication device 800 is configured to perform a method in an embodiment corresponding to any one of FIG. 6 to FIG. 23A, FIG. 23B, and FIG. 23C. Communication Equipment 800 includes a communication interface 801 and a processor 802 coupled to the communication interface. The communication interface 801 is configured to perform transmitting and receiving operations, and the processor 802 is configured to perform operations other than transmitting and receiving. For example, when the communication device 800 performs the method 1600 shown in FIG. 16 as a first communication device, the processor 802 may be configured to generate a first data stream and the communication interface 801 may be configured to transmit the first data stream.

[0220] With reference to FIG. 26, the following description describes another communication device 900 provided by this embodiment of this application. The communication device 900 may be applied to the network architecture shown in FIG. 3. For example, the communication device 900 may be, for example, a network device 1 (TX) or a network device 2 (RX) in this application, or the communication device 900 may be a first communication device or a second communication device in this application. Alternatively, the communication device 900 may be a control management device in this application and perform various operations performed by the control management device. The first communication device and the second communication device in this application may be an integrated network device, or may be a circuit board in the network device 1, such as an interface circuit board, a line card, a dummy circuit board, or a central cross-connect circuit board. The communication device 900 is configured to perform the method in the embodiment corresponding to any one of FIG. 6 to FIG. 23A, FIG. 23B, and FIG. 23C. The communication device 900 includes a memory 901 and a processor 902 connected to the memory. The memory 901 stores instructions and the processor 902 reads the instructions, thereby causing the communication device 900 to perform a method in an embodiment corresponding to any one of Figures 6 to 23A, 23B, and 23C.

[0221] Referring to FIG. 27, the following describes another communication device 1000 provided by this embodiment of the present application. 1000 may be applied to the network architecture shown in FIG. 1000may be, for example, a network device 1 (TX) or a network device 2 (RX) in this application, or the communication device 1000 may be a first communication device or a second communication device in this application. Alternatively, the communication device 1000 may be a control management device in this application and perform various operations performed by a control management device. The first communication device and the second communication device in this application may be an integrated network device, or may be a circuit board in the network device 1, such as an interface circuit board, a line card, a dummy circuit board, or a central cross-connect circuit board. Communication device 1000is configured to execute the method in the embodiment corresponding to any one of Figures 6 to 23A, 23B, and 23C. As shown in Figure 27, the communication device 1000 includes a processor 1010, a memory 1020 coupled to the processor, and a communication interface 1030. In one particular implementation, the memory 1020 stores computer-readable instructions, which include a number of software modules, such as a sending module 1021, a processing module 1022, and a receiving module 1023. After the processor 1010 executes each software module, the processor 1010 may execute a corresponding operation according to the instruction of the software module. In this embodiment, the operation performed by the software module is actually the operation performed by the processor 1010 according to the instruction of the software module. For example, when the network device 1000 performs the method shown in FIG. 16 as a first communication device, the transmission module 1021 is configured to transmit a first data stream, and the processing module 1022 is configured to generate a first data stream. In addition, after executing the computer-readable instructions in the memory 1020, the processor 1010 may perform all of the operations that may be performed by the first communication device in this application as instructed by the computer-readable instructions. For example, when the communication device 1000 is used as a first communication device, the communication device 1000 may perform the method performed by the first communication device in the embodiment corresponding to any one of FIG. 6 to FIG. 23A, FIG. 23B, and FIG. 23C.

[0222] The processors referred to in this application may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. Alternatively, the processor may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 1010 may be a single processor or may include multiple processors. The memory referred to in this application may include volatile memory, such as random-access memory (RAM). Alternatively, the memory may include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD). The memory may further include a combination of the above types of memory. The memory may be one memory or may include multiple memories.

[0223] An embodiment of this application further provides a communication system including a first communication device and a second communication device, where the first communication device or the second communication device may be any one of the communication devices in Figures 24 to 27, and is configured to execute the method in any one of the embodiments corresponding to Figures 6 to 23A, 23B, and 23C. The communication system may further include a control management device in this application.

[0224] The present application further provides a computer program product including a computer program, which when run by a computer enables the computer to execute the method executed by the first communication device, the second communication device, or the control and management device in any one of the embodiments corresponding to Figures 6 to 23A, 23B, and 23C.

[0225] The present application further provides a computer program product including a computer program, which when run by a computer enables the computer to execute the method executed by the first communication device, the second communication device, or the control and management device in any one of the embodiments corresponding to Figures 6 to 23A, 23B, and 23C.

[0226] This application provides a computer-readable medium including computer instructions that, when executed by a computer, enable the computer to execute a method executed by a first communication device, a second communication device, or a control and management device in any one of the embodiments corresponding to Figures 6 to 23A, 23B, and 23C.

[0227] Those skilled in the art will recognize that in connection with the examples described in the embodiments disclosed in this specification, the operations of the modules and methods can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can implement the described functions by using different methods for each specific application.

[0228] Those skilled in the art can clearly understand that for convenience and simplicity of description, the detailed work processes of the above systems, devices, and modules should refer to the corresponding processes in the above method embodiments, and the details will not be described repeatedly in this specification.

[0229] Some or all of the above embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When using software in a particular implementation process, some or all of the software may be embodied 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 into a computer and executed by the computer, they generate all or some of the procedures or functions according to the embodiments of this application. 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 from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio, or microwave). A computer readable storage medium may be any available medium that can be accessed by a computer, or a data storage device, such as a server or a data center, that incorporates one or more available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, or magnetic tape), an optical medium (such as a DVD), a semiconductor medium (such as a Solid-State Drive (SSD)), etc.

[0230] All of the embodiments in this specification are described in a progressive manner, and the same or similar parts in the embodiments should be referred to those embodiments, and each embodiment focuses on the differences from other embodiments. In particular, the device and system embodiments are basically similar to the method embodiments, and therefore will be briefly described, and the relevant parts should be referred to the partial description in the method embodiments.

Claims

1. A data transmission method implemented by a first communication device, the method comprising: generating a first data stream, the first data stream including a plurality of data code blocks; the plurality of data symbol blocks include a plurality of first base frames, each of the first base frames including a base frame payload, the base frame payload including a base frame overhead and a plurality of sub-client subslot payloads, the plurality of sub-client subslot payloads including a plurality of first sub-client subslot payloads, the plurality of first sub-client subslot payloads including service data of a first sub-client interface; transmitting the first data stream by using a first interface; each first base frame further includes a first code block and a second code block, the first code block being used to indicate a frame header of the first base frame and the second code block being used to indicate a frame trailer of the first base frame.

2. 2. The method of claim 1 , wherein the first interface is logically divided into Z sub-client interfaces, the Z sub-client interfaces including the first sub-client interface, where Z is an integer greater than 1.

3. The method of claim 1 , wherein the first interface is a FlexE client interface.

4. The method of claim 1 , wherein the first interface is an Ethernet interface.

5. the first interface is a first FlexE client interface, and the step of transmitting the first data stream by using the first interface includes:

2. The method of claim 1, comprising: transmitting the first data stream by using the first FlexE client interface based on a slot mapping relationship between the first FlexE client interface and a first FlexE interface, wherein the first FlexE interface is logically divided into a plurality of FlexE client interfaces, the plurality of FlexE client interfaces including the first FlexE client interface.

6. The base frame overhead comprises: A sequence number of said base frame; Sub-client sub-slot mapping table, Slot adjustment request information, Slot adjustment response information, Slot availability indication information, Management channel information, and Base frame overhead inspection information, The method of claim 1 , further comprising one or more pieces of information:

7. 3. The method of claim 2, wherein the first interface is divided into M subslots in the time domain, and a slot bandwidth of each of the M subslots is P, where P is less than 5 Gigabits per second (Gbp / s), and M is an integer greater than 1.

8. 8. The method of claim 7, wherein the M subslots are evenly distributed among X first base frames, one base frame is encapsulated for each M / X subslots scheduled, and each base frame payload contains M / X sub-client subslot payloads, where X is an integer greater than 1.

9. The method comprises: receiving a first sub-client sub-slot mapping table transmitted by a second communication device, the first sub-client sub-slot mapping table being used to indicate a first mapping relationship between the M sub-slots and the Z sub-client interfaces, each sub-client interface being mapped to at least one of the M sub-slots; 8. The method of claim 7, further comprising: storing the first sub-client sub-slot mapping table.

10. 10. The method of claim 9, wherein the first sub-client sub-slot mapping table indicates the first mapping relationship by mapping Z sub-client IDs to M sub-slot IDs, the Z sub-client IDs being used to indicate the Z sub-client interfaces, and the M sub-slot IDs being used to indicate the M sub-slots.

11. The method of claim 1 , wherein the first data stream is used to carry an Ethernet service.

12. The step of generating a first data stream comprises: obtaining a first Ethernet service data stream from a physical coding sublayer (PCS); slicing the first Ethernet service data stream to obtain a plurality of Ethernet service slices; and encapsulating the plurality of Ethernet service slices in the base frame payload as the plurality of sub-client sub-slot payloads.

13. 13. The method of claim 12, wherein the first Ethernet service data stream includes a plurality of 64B / 66B code blocks, a plurality of 64B / 65B code blocks, or a plurality of 256B / 257B code blocks.

14. The method of claim 1 , wherein the first data stream is used to carry a constant bit rate (CBR) service.

15. The step of generating a first data stream comprises: slicing a first CBR service data stream to obtain a plurality of CBR service slice data, the first CBR service data stream including a plurality of CBR service frames; separately slicing and encapsulating the plurality of CBR service slice data to obtain a plurality of CBR service slices, each CBR service slice including the CBR service slice data and encapsulation information; obtaining the plurality of sub-client sub-slot payloads based on the plurality of CBR service slices; and encapsulating the plurality of sub-client sub-slot payloads into the base frame payload.

16. 2. The method of claim 1, wherein the first data stream includes a plurality of 64B / 66B code blocks, a plurality of 64B / 65B code blocks, or a plurality of 256B / 257B code blocks.

17. The first sub-client interface is mapped to W sub-slots of the first interface, and the step of generating a first data stream comprises:

2. The method of claim 1, comprising: mapping the first sub-client sub-slot payloads to the W sub-slots, respectively, where W is an integer greater than one.

18. The first communication device includes a second sub-client interface on a receiving side, and the step of generating a first data stream includes: obtaining a plurality of second sub-client sub-slot payloads of the second sub-client interface; processing the plurality of second sub-client sub-slot payloads to obtain the plurality of first sub-client sub-slot payloads based on a sub-slot cross-connect relationship between the second sub-client interface and the first sub-client interface; and encapsulating the first plurality of sub-client sub-slot payloads into the base frame payload.

19. The step of obtaining a plurality of second sub-client sub-slot payloads of the second sub-client interface includes:

20. The method of claim 18, comprising: obtaining a third data stream of a second interface at the receiving side; and de-mapping the plurality of second sub-client sub-slot payloads from the third data stream based on a second sub-client sub-slot mapping table, wherein the second interface is divided into A sub-slots in a time domain, the second interface is logically divided into B sub-client interfaces, the B sub-client interfaces including the second sub-client interface, and the second sub-client sub-slot mapping table is used to indicate a second mapping relationship between the A sub-slots and the B sub-client interfaces, where both A and B are integers greater than 1.

20. A first communication device, A transceiver unit configured to perform the transmitting and / or receiving operations of the method according to any one of claims 1 to 19, and A processing unit configured to perform operations other than transmitting and receiving in the method according to any one of claims 1 to 19, A first communication device.

21. A computer program which, when executed by a processor, performs the method according to any one of claims 1 to 19.

22. A communication system comprising a second communication device and the first communication device of claim 20, the system being configured to perform a method according to any one of claims 1 to 19.

Citation Information

Patent Citations

  • Data transmission method and device

    CN109818704A

  • Business data processing method and device

    CN110557217A

  • FlexE service processing method, FlexE service processing device and electronic equipment

    CN111107641A

  • Service processing method and apparatus

    US20200014480A1

  • Method and device for pass-through of service frequency

    WO2019029419A1