Data transmission method and device

By mapping OSU frames and fgOTN frames in ODU frames, the problem that OSU frames and fgOTN frames cannot share the ODU layer is solved, and efficient bandwidth utilization and operation and maintenance costs are achieved.

CN120528546APending Publication Date: 2025-08-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410208221.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-22
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

In the prior art, OSU frames and fgOTN frames cannot be multiplexed in the same optical data unit layer, resulting in bandwidth waste and difficulty in operation and maintenance.

Method used

By mapping the OSU frame and the fgOTN frame into the same ODU frame, using the indication information and rate adaptation information, data frames of different frame formats share the same transmission pipeline, and hybrid multiplexing is achieved.

Benefits of technology

Improve bandwidth utilization, reduce client maintenance costs, and simplify system operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120528546A_ABST
    Figure CN120528546A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, which can support small-bandwidth data frames with different bandwidths and frame formats to be multiplexed to the same service layer at the same time, thereby improving the bandwidth utilization rate and reducing the maintenance cost of a client. The method comprises the following steps: a sending device maps K first data frames to a payload region of a second data frame, and sends the second data frame to a receiving device. Wherein the overhead area of the second data frame comprises indication information and rate adaptation information. The indication information indicates the position of the first first unit in a plurality of first units contained in the i-th first data frame in the payload region of the i-th first data frame, and at least one third data frame is mapped in the i-th first data frame. The rate adaptation information is generated when at least one fourth data frame is mapped to the jth first data frame, and the ith first data frame and the jth first data frame are respectively one of the K first data frames. The frame formats of the third data frame and the fourth data frame are different.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical communications, and more specifically, to a method and device for transmitting data. Background Art

[0002] With the development of optical transport network (OTN) technology, the scope of OTN technology has expanded from backbone networks to metropolitan area networks and even access networks. OTN technology is facing increasing demand for carrying low-rate services. Currently, optical service unit (OSU) and fine-grain OTN (fgOTN) data frames are mainly used to carry small-grain services, and there is a trend of long-term coexistence between them. However, OSU frames and fgOTN frames cannot be multiplexed into the same optical data unit (ODU) layer. Therefore, the client needs to plan service layers for OSU frames and fgOTN frames separately, resulting in huge bandwidth waste and operational difficulties.

[0003] Therefore, how to mix and multiplex OSU frames and fgOTN frames into the same ODU service layer has become an urgent problem to be solved. Summary of the Invention

[0004] The present application provides a method and apparatus for transmitting data, which can support the simultaneous multiplexing of small-bandwidth data frames with different bandwidths and frame formats to the same service layer, thereby improving bandwidth utilization and reducing client maintenance costs.

[0005] In the first aspect, an embodiment of the present application provides a method for transmitting data. The method can be executed by a sending device or by a component of the sending device (such as a chip or a chip system, etc.), and the present application does not limit this. The method includes: mapping K first data frames to the payload area of ​​a second data frame, the overhead area of ​​the second data frame includes indication information and rate adaptation information, the indication information indicates the position of the first first unit among the multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, at least one third data frame is mapped in the i-th first data frame, the rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, the at least one third data frame has a different frame format from the at least one fourth data frame, wherein K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j;

[0006] Send the second data frame.

[0007] Based on the above scheme, the present application maps at least one third data frame and at least one fourth data frame with different frame formats to the first data frame of the same frame format, respectively, and then maps multiple first data frames to the second data frame, thereby realizing that data frames with different frame formats share the same transmission pipeline, reducing the operation and maintenance cost of the network and improving the bandwidth utilization of the second data frame.

[0008] In combination with the first aspect, in certain implementations of the first aspect, the payload area of ​​each of the K first data frames includes N*(2*M) units, where N is the number of rows in the payload area of ​​each first data frame, (2*M) is the number of columns in the payload area of ​​each first data frame, and M is the number of time slots occupied by at least one data frame mapped in each first data frame. The overhead area of ​​each first data frame includes L bits, and the payload area of ​​the i-th first data frame includes N*(2*M i ) first unit, the N*(2*M i The number of bytes contained in each of the first units is the length of each third data frame in the at least one third data frame, and the L of the overhead area of ​​the i-th first data frame is i Some or all of the bits are used to carry the indication information, and the payload area of ​​the j-th first data frame includes N*(2*M j ) second unit, the N*(2*M j ) The number of bytes contained in each of the second units is X bytes, and the L of the overhead area of ​​the j-th first data frame is j bits are used to carry the rate adaptation information, N is an integer greater than 1, L is an integer greater than 1, X is an integer greater than 1, and M i is the number of time slots occupied by the at least one third data frame, M j is the number of time slots occupied by the at least one fourth data frame, M, M i and M j is an integer greater than or equal to 1.

[0009] In combination with the first aspect, in certain implementations of the first aspect, the payload area of ​​the second data frame is a P-row and Q-column structure, and the payload area of ​​the second data frame is divided into P rows * (2 * (Q / 2X)) columns, including P * (Q / 2X) time slots, and the overhead corresponding to each time slot occupies multiple bits.

[0010] In combination with the first aspect, in certain implementations of the first aspect, mapping the K first data frames into the payload area of ​​the second data frame includes mapping the K first data frames into the payload area of ​​the second data frame with the X bytes.

[0011] It can be understood that the payload area of ​​the second data frame includes multiple time slots, and the number of bytes in each time slot is X bytes.

[0012] With reference to the first aspect, in some implementations of the first aspect, X is equal to 16.

[0013] It should be noted that, in some embodiments, X may also be 4, 8, 32, or other multiples of 16, and this application does not limit this.

[0014] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: mapping the at least one third data frame to the i-th second data frame; and mapping the at least one fourth data frame to the j-th second data frame.

[0015] In combination with the first aspect, in certain implementations of the first aspect, each first data frame is an M-unit small-granularity optical data tributary unit optical data unit fgODTU.M frame, the second data frame is an optical transport network OTN frame, each third data frame is an optical service unit OSU frame, and each fourth data frame in the at least one fourth data frame is a small-granularity optical transport network fgOTN frame.

[0016] It should be noted that this application does not limit the optical transport network OTN frame, which may be an optical data unit (ODU) frame, or an optical payload unit (OPU) frame, or an optical transponder unit (OTU) frame, etc.

[0017] In a second aspect, an embodiment of the present application provides a method for transmitting data. The method can be executed by a transmitting device or by a component of the transmitting device (such as a chip or a chip system, etc.), and the present application does not limit this. The method includes: receiving a second data frame; demapping K first data frames from the second data frame, the overhead area of ​​the second data frame including indication information and rate adaptation information, the indication information indicating the position of the first first unit of the multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, at least one third data frame is mapped in the i-th first data frame, the rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, and the frame format of the at least one third data frame is different from that of the at least one fourth data frame, wherein K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j.

[0018] In combination with the second aspect, in certain implementations of the second aspect, the payload area of ​​each of the K first data frames includes N*(2*M) units, where N is the number of rows in the payload area of ​​each first data frame, (2*M) is the number of columns in the payload area of ​​each first data frame, and M is the number of time slots occupied by at least one data frame mapped in each first data frame. The overhead area of ​​each first data frame includes L bits, and the payload area of ​​the i-th first data frame includes N*(2*M i ) first unit, the N*(2*M i The number of bytes contained in each of the first units is the length of each third data frame in the at least one third data frame, and the L of the overhead area of ​​the i-th first data frame is i Some or all of the bits are used to carry the indication information, and the payload area of ​​the j-th first data frame includes N*(2*M j ) second unit, the N*(2*M j ) The number of bytes contained in each of the second units is X bytes, and the L of the overhead area of ​​the j-th first data frame is j bits are used to carry the rate adaptation information, N is an integer greater than 1, L is an integer greater than 1, X is an integer greater than 1, and M i is the number of time slots occupied by the at least one third data frame, M j is the number of time slots occupied by the at least one fourth data frame, M, M i and M j is an integer greater than or equal to 1.

[0019] In combination with the second aspect, in certain implementations of the second aspect, the payload area of ​​the second data frame is a P-row Q-column structure, and the payload area of ​​the second data frame is divided into P rows * (2 * (Q / 2X)) columns and P rows * (Q / 2X) time slots, and the overhead corresponding to each time slot occupies multiple bits.

[0020] In combination with the second aspect, in certain implementations of the second aspect, demapping the K first data frames from the second data frame includes demapping the K first data frames using the X bytes from the payload area of ​​the second data frame.

[0021] In conjunction with the second aspect, in some implementations of the second aspect, X is equal to 16.

[0022] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: demapping the at least one third data frame from the i-th second data frame; and demapping the at least one fourth data frame from the j-th second data frame.

[0023] In combination with the second aspect, in certain implementations of the second aspect, each first data frame is an M-unit small-granularity optical data tributary unit optical data unit fgODTU.M frame, the second data frame is an optical transport network OTN frame, each third data frame is an optical service unit OSU frame, and each fourth data frame in the at least one fourth data frame is a small-granularity optical transport network fgOTN frame.

[0024] In a third aspect, embodiments of the present application provide a device for transmitting data. The device is configured to perform the method provided in the first aspect. Specifically, the device for transmitting data may include units and / or modules, such as a processing module and a transceiver module, configured to perform the method provided in the first aspect or any of the aforementioned implementations of the first aspect.

[0025] In one implementation, the apparatus for transmitting data may include units and / or modules for executing the method provided in the first aspect or any of the aforementioned implementations of the first aspect, and may be a transmitting device. The transceiver module may be a transceiver or an input / output interface. The processing module may be at least one processor. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input / output interface may be an input / output circuit.

[0026] In another implementation, the data transmission device is a chip, chip system, or circuit in a transmitting device. The transceiver module may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit. The processing module may be at least one processor, processing circuit, or logic circuit.

[0027] In a fourth aspect, embodiments of the present application provide a device for transmitting data. The device is configured to perform the method provided in the second aspect. Specifically, the device for transmitting data may include units and / or modules, such as a processing module and a transceiver module, configured to perform the method provided in the second aspect.

[0028] In one implementation, the data transmission device is a receiving device. The transceiver may be a transceiver or an input / output interface. The processing module may be at least one processor. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input / output interface may be an input / output circuit.

[0029] In another implementation, the data transmission device is a chip, chip system, or circuit in a receiving device. The transceiver module may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit. The processing module may be at least one processor, processing circuit, or logic circuit.

[0030] In a fifth aspect, an embodiment of the present application provides a processor for executing the methods provided in the above aspects.

[0031] For the operations such as sending and acquiring / receiving involved in the processor, unless otherwise specified, or if they do not conflict with their actual functions or internal logic in the relevant descriptions, they can be understood as processor output, reception, input and other operations, and can also be understood as sending and receiving operations performed by the radio frequency circuit and antenna. This application does not limit this.

[0032] In a sixth aspect, embodiments of the present application provide a computer-readable storage medium storing program code for execution by a device, the program code including a method for executing any one of the implementations of the first or second aspects.

[0033] In a seventh aspect, embodiments of the present application provide a computer program product comprising instructions. When the computer program product is run on a computer, the computer is caused to execute the method provided in any one of the implementations of the first or second aspect.

[0034] In an eighth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface and executes the method provided by any one of the implementation methods of the first or second aspect above.

[0035] Optionally, as an implementation method, the chip also includes a memory, in which a computer program or instruction is stored, and the processor is used to execute the computer program or instruction stored in the memory. When the computer program or instruction is executed, the processor is used to execute the method provided in any one of the implementation methods of the first or second aspect above.

[0036] In a ninth aspect, an embodiment of the present application provides a communication system comprising at least one of the devices for transmitting data as described in the third and fourth aspects above.

[0037] The beneficial effects brought about by the second to ninth aspects mentioned above can be specifically referred to the description of the beneficial effects in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Schematic diagram of application scenarios applicable to the embodiments of the present application.

[0039] Figure 2 The figure is a structural diagram of an optical transmission device.

[0040] Figure 3 A schematic diagram of the frame structure of an ODU frame.

[0041] Figure 4 Schematic diagram of the multiplexing process of filling OSU frames with OPU PB blocks in sequence.

[0042] Figure 5 A schematic flowchart of a method 500 for transmitting data provided in an embodiment of the present application.

[0043] Figure 6 Schematic diagram of the structure of the i-th fgODTU.M mapped with at least one OSU frame.

[0044] Figure 7 Schematic diagram of the structure of the j-th fgODTU.M mapped with at least one fgODUflex frame.

[0045] Figure 8 Schematic diagram of multiplexing the i-th fgODTU.M frame and the j-th fgODTU.M into the OPU frame.

[0046] Figure 9 A schematic block diagram of a data transmission device 900 provided in an embodiment of the present application.

[0047] Figure 10 A schematic block diagram of a data transmission device 1000 provided in an embodiment of the present application.

[0048] Figure 11 A schematic structural diagram of a data transmission device 1100 provided in an embodiment of the present application.

[0049] Figure 12 A schematic diagram of a chip system 1200 is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0050] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0051] Figure 1 The technical solution of the embodiment of the present application can be applied to OTN and multiple customer equipment (such as Figure 1 The communication system 100 of the customer equipment #1 to customer equipment #6 shown in FIG. 1 includes a plurality of interconnected OTN devices (such as Figure 1 OTN equipment #1-OTN equipment #4 shown).

[0052] It should be noted that Figure 1 Only OTN equipment used to connect customer equipment is given. In actual applications, OTN may also include more equipment. Figure 1 In addition, Figure 1 Specifically, the connection method between OTN devices can refer to the introduction of current related technologies, and this application will not elaborate on it.

[0053] It should be understood that OTN devices in an OTN network are connected through optical fibers and can be formed into different topology types such as linear, ring, and mesh according to specific needs.

[0054] For example, customer premise equipment (CPE) may also be referred to as customer premise equipment (CPE). This application does not limit the specific form of CPE, including but not limited to: a terminal that communicates with OTN equipment. A terminal may also be referred to as a terminal device, access terminal, subscriber unit, subscriber station, mobile station, mobile device, wireless communication device, user agent, or user equipment. A CPE may be a device that needs to transmit service data.

[0055] An OTN device may have different functions. Generally speaking, OTN devices are divided into optical layer devices, electrical layer devices, and optoelectronic hybrid devices. Optical layer devices refer to devices that can process optical layer signals, such as optical amplifiers (OAs) and optical add-drop multiplexers (OADMs). OAs, also known as optical line amplifiers (OLAs), are primarily used to amplify optical signals to support longer transmission distances while ensuring the specific performance of the optical signal. OADMs are used to spatially transform optical signals so that they can be output from different output ports (sometimes also called directions). Based on their capabilities, OADMs can be divided into fixed OADMs (FOADMs) and reconfigurable OADMs (ROADMs). Electrical layer devices refer to devices that can process electrical layer signals, such as devices that can process OTN electrical signals. Optoelectronic hybrid devices refer to devices that have the ability to process both optical and electrical layer signals.

[0056] It should be noted that, depending on specific integration requirements, an OTN device can integrate multiple different functions. The technical solution provided in this application is applicable to OTN devices of different forms and integration levels, and is particularly applicable to OTN devices used to connect customer devices.

[0057] Figure 2 This is a schematic diagram of the structure of an optical transmission device. For example, Figure 2 The optical transmission equipment shown is Figure 1 One of OTN equipment #1 to OTN equipment #4 in the Figure 2 As can be seen in the figure, an OTN device 200 includes a power supply 201, a fan 202, an auxiliary board 203, and may also include a tributary board 204, a circuit board 206, a cross-connect board 205, an optical layer processing board 208, and a system control and communication board 207.

[0058] It should be noted that the specific type and number of boards included in each device may vary depending on specific needs. For example, a network device serving as a core node may not have a tributary board 204; another example is a network device serving as an edge node, which may have multiple tributary boards 204. Power supply 201 is used to power OTN device 200 and may include both primary and backup power supplies. Fan 202 dissipates heat. Auxiliary boards 203 provide auxiliary functions such as external alarms and external clock access. Tributary boards 204, cross-connect boards 205, and line boards 206 primarily process OTN electrical signals.

[0059] The tributary board 204 is used to receive and transmit various customer services, such as SDH services, packet services, Ethernet services, and fronthaul services. Furthermore, the tributary board 204 can be divided into a client-side optical module and a signal processor. The client-side optical module can be an optical transceiver, which receives and / or transmits service data. The signal processor is responsible for mapping and demapping service data into data frames. The cross-connect board 205 is used to switch data frames, completing the exchange of one or more types of data frames. The line board 206 primarily processes line-side data frames.

[0060] The circuit board 206 can be divided into a line-side optical module and a signal processor. The line-side optical module can be a line-side optical transceiver for receiving and / or transmitting data frames. The signal processor is used to implement multiplexing and demultiplexing, or mapping and demapping processing of line-side data frames.

[0061] The system control and communication board 207 is used to implement system control and communication. Specifically, information can be collected from different boards through the backplane, or control instructions can be sent to the corresponding board.

[0062] It should be noted that, unless otherwise specified, the specific components (eg, signal processors) may be one or more, and this application does not limit this. It should also be noted that, Figure 2 The possible structures of OTN devices are merely exemplified and do not constitute any limitation on the scope of protection of this application. This application does not limit the structure of OTN devices, and the OTN devices may be currently available or may be future OTN devices.

[0063] It should be understood that the method provided in the embodiment of the present application can be applied to an optical transmission network, for example, Figure 1 However, the embodiments of the present application do not limit the scenarios to which the method can be applied. For example, the method is also applicable to other communication systems including devices that can implement corresponding functions (such as OTN devices or other communication devices).

[0064] In order to facilitate understanding of the technical solutions of the embodiments of the present application, some terms or concepts that may be involved in the embodiments of the present application are first briefly described.

[0065] 1. OTN frame: The data frame structure used by OTN equipment is the OTN frame. OTN frames can also be called OTN transmission frames. OTN frames carry various service data and provide a wide range of management and monitoring functions. OTN frames can be flexible optical service unit (OSUflex) frames, also referred to as OSU frames. Alternatively, OTN frames can be ODUk, ODUCn, ODUflex, or OTUk, OTUCn, or flexible OTN (FlexO) frames.

[0066] The difference between ODU and OTU frames is that OTU frames include both the ODU frame and the OTU overhead. k represents different rate levels, for example, k = 1 represents 2.5 Gbps, and k = 4 represents 100 Gbps. Cn represents a variable rate, specifically a positive integer multiple of 100 Gbps. Unless otherwise specified, an ODU frame refers to any of ODUk, ODUCn, or ODUflex, and an OTU frame refers to any of OTUk, OTUCn, or FlexO.

[0067] It should also be noted that, with the development of OTN technology, new types of OTN frames may be defined, which are also applicable to this application.

[0068] 2. OTN frame structure: It has four rows and multiple columns, including an overhead area, a payload area, and a forward error correction (FEC) area. For details on the OTN frame structure, refer to the relevant descriptions in the current protocol and are not detailed here. The payload area of ​​an OTN frame is divided into multiple payload blocks (PBs). Each PB occupies a fixed length (also called size) in the payload area, for example, 128 bytes. For example, the overhead that may be included in an OTN frame is shown in Table 1 below.

[0069] Table 1 Examples of possible overhead carried by OTN frames

[0070]

[0071] It should be understood that the above description of the OTN frame structure is merely an example. Other variations of OTN frames are also applicable to this application. For example, an OTN frame that does not include an FEC area. Another example is a frame structure with a different number of rows and columns than OTN frame 302. It should be understood that PB can also be referred to as a time slot, a time slot block, or a time slice. This application does not impose any restrictions on these names.

[0072] The embodiments shown below do not particularly limit the specific structure of the execution entity of the method provided by the embodiments of the present application. As long as it is possible to communicate according to the method provided by the embodiments of the present application by running a program that records the code of the method provided by the embodiments of the present application, for example, the execution entity of the method provided by the embodiments of the present application may be an OTN device, or a functional module in the OTN device that can call and execute the program, or it may also be other communication devices.

[0073] In order to facilitate understanding of the embodiments of the present application, the following explanations are made.

[0074] First, in this application, "indication" can include direct indication and indirect indication. When describing a certain information as indicating A, it can include that the information directly indicates A or indirectly indicates A, but it does not mean that the information must contain A.

[0075] Second, multiple refers to two or more.

[0076] Third, in the description of this application, terms such as "first," "second," and various numerical numbers (e.g., "#1," "#2," etc.) are used solely for descriptive purposes, such as distinguishing different data frames. They should not be construed as indicating or implying relative importance or order. It should be understood that such terms are interchangeable where appropriate to describe solutions other than the embodiments of this application.

[0077] Fourth, unless otherwise specified, the detailed description of certain technical features in one embodiment can also be used to explain the corresponding technical features mentioned in other embodiments. For example, the detailed description of the data frame mapping process in one embodiment can be applied to other embodiments and does not need to be repeated in other embodiments.

[0078] Fifth, in the embodiments of the present application, the mathematical symbol “*” represents a multiplication sign.

[0079] Sixth, in the embodiments of the present application, data frames are used to carry service data, where service data refers to services that can be carried by an optical transport network. For example, this can be Ethernet services, packet services, wireless backhaul services, etc. Service data can also be referred to as service signals, customer data, or customer service data.

[0080] Figure 3 This is a schematic diagram of the frame structure of an ODU frame. Figure 3As shown, the ODU frame has a four-row, multi-column frame structure, including an overhead area and a payload area. The payload area of ​​the ODU frame is divided into the optical payload unit (OPU) frame payload area and the overhead area. The overhead area of ​​the ODU frame also includes, for example, a frame alignment signal (FAS) for frame alignment. For more information about the ODU frame structure, please refer to the relevant description in the current protocol and will not be repeated here.

[0081] As one of the key technologies in OTN technology, OSU is mainly used to carry 10M~100Gbps customer services. Carrying low-speed and small-granularity service signals through OSU and then mapping OSU into ODUk / ODUflex can reduce the transmission delay of services, increase the number of ports carrying services, and solve the problem of low efficiency of carrying low-speed and small-granularity services in the original OTN technology. The OSU frame mapping (also known as multiplexing) to the OPU frame adopts the general tributary process (GTP) technology, such as Figure 3 As shown, the OPU frame payload area is divided into PB blocks of 192 bytes (assuming the OSU frame is a 192B frame structure) starting from the 1st row and the 17th column. The OPU payload area of ​​3 consecutive frames can be divided into 238 PB blocks. Figure 4 As shown in Figure 1, the OSU frame is sequentially populated with OPUPB blocks to complete the multiplexing process. Because PB blocks may cross frames at the boundaries of adjacent OPU frames, a PB block pointer (PBP) field is defined to locate the boundary. After receiving the ODU frame, the receiving device demaps the OSU frame from the OPU frame and uses the corresponding tributary port number (TPN) table lookup to complete the mapping of the OSU frame to the OSU service channel.

[0082] Furthermore, as the next-generation evolution of OTN technology, fgOTN is primarily targeted at carrying small-granularity, high-quality services below 1G. Currently, fgOTN utilizes a fixed time slot allocation design based on 10M bandwidth, leveraging and optimizing the classic OTN frame structure to efficiently carry small-granularity services. This provides a secure, hard-isolated solution based on rigid hard pipes for high-quality connections.

[0083] Although both carry small-granularity services, OSU and fgOTN cannot currently be multiplexed into the same service ODU layer. Therefore, when using both OSU and fgOTN to carry services, different service layers need to be planned for OSU and fgOTN respectively. This not only leads to a huge waste of bandwidth, but also brings difficulties to system operation and maintenance.

[0084] In view of this, the present application provides a method and apparatus for transmitting data, which avoids bandwidth waste while reducing pressure on system operation and maintenance by mapping fgOTN frames and OSU frames into the same ODU frame.

[0085] Figure 5 Schematic flow chart of a method 500 for transmitting data provided in an embodiment of the present application. Figure 5 As shown, the sending device may be an OTN device, or may be executed by a component of an OTN device (such as a chip or chip system). The receiving device may be an OTN device, or may be executed by a component of an OTN device (such as a chip or chip system). Specifically, the method includes the following steps.

[0086] S501, the sending device maps K first data frames to the payload area of ​​the second data frame, and the overhead area of ​​the second data frame includes indication information and rate adaptation information. The indication information indicates the position of the first first unit among the multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, and at least one third data frame is mapped in the i-th first data frame. The rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, and the frame format of the third data frame is different from that of each fourth data frame in the at least one fourth data frame. K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j.

[0087] S502: The sending device sends a second data frame to the receiving device.

[0088] S503: The receiving device demaps K first data frames from the second data frame.

[0089] It should be noted that, in the solution of the present application, at least one third data frame and at least one fourth data frame are used to carry service data. The service type of the service data carried by the at least one third data frame may be the same as the service type of the service data carried by the at least one fourth data frame, for example, both are Ethernet services; or the service type of the service data carried by the at least one third data frame may be different from the service type of the service data carried by the at least one fourth data frame, for example, the service data carried by the at least one third data frame is service data of an Ethernet service, and the service type of the service data carried by the at least one fourth data frame is a packet service, etc., which is not limited in the present application.

[0090] It is understandable that the frame format of each of the K first data frames is the same. Therefore, based on the above solution, by mapping at least one third data frame and at least one fourth data frame with different frame formats to a first data frame with the same frame format, and then mapping the first data frame to the second data frame, the purpose of simultaneously mapping the third data frame and the fourth data frame to the second data frame is achieved. This solution can improve the utilization of the frame bandwidth of the second data frame, avoids planning different second data frames for different types of data frames, and thus reduces the complexity of second data frame bandwidth management.

[0091] Specifically, in the solution of the present application, the payload area of ​​each first data frame includes N*(2*M) units, N is the number of rows of the payload area of ​​each first data frame, (2*M) is the number of columns of the payload area of ​​each first data frame, M is the number of time slots occupied by at least one data frame mapped in each first data frame, and the overhead area of ​​each first data frame includes L bits. Wherein, N is an integer greater than 1, L is an integer greater than 1, and M is an integer greater than or equal to 1. For the i-th first data frame, its payload area includes N*(2*M i ) first unit, the overhead area includes L i bits; for the jth first data frame, its payload area includes N*(2*M j ) second unit, the overhead area includes L j When at least one third data frame is mapped to the i-th first data frame, the L in the overhead area of ​​the i-th first data frame i Some or all of the bits are used to carry indication information, and the number of time slots occupied by at least one third data frame is M i The number of bytes contained in the first unit is the length of the third data frame. When at least one fourth data frame is mapped to the jth first data frame, the L of the overhead area of ​​the jth first data frame is j bits are used to carry rate adaptation information, and the number of time slots occupied by at least one fourth data frame is M j The number of bytes contained in the second unit is X bytes. Where X is an integer greater than 1, M i and M j is an integer greater than or equal to 1.

[0092] In the solution of the present application, the payload area of ​​the second data frame is a P-row and Q-column structure, and the payload area of ​​the second data frame is divided into P rows * (2 * (Q / 2X)) columns, including P * (Q / 2X) time slots, the overhead corresponding to each time slot occupies multiple bits, and the number of bytes in each time slot is X bytes.

[0093] Optionally, K first data frames are mapped to the payload area of ​​the second data frame with X bytes. It is understandable that when K first data frames are mapped to the payload area of ​​the second data frame with X bytes, the receiving device demaps the K first data frames with X bytes. Exemplarily, when X is equal to 16, K first data frames are mapped to the payload area of ​​the second data frame with 16 bytes. Optionally, K first data frames are mapped to the payload area of ​​the second data frame with Y bytes, where Y is a factor or multiple of X. For example, when X is equal to 16, Y is equal to 8, 32, etc., and when X is equal to 8, Y is equal to 4, 16, etc. This application does not limit this.

[0094] It should be noted that this application does not limit the first data frame, the second data frame, the third data frame, and the fourth data frame. Optionally, the first data frame is an M-unit fine grain optical data tributary unit optical data unit (fgODTU.M) frame. The second data frame is an OTN frame, such as an ODU frame, an OPU frame, or an OTU frame. The third data frame is an OSU frame, and the fourth data frame is an fgOTN frame, such as an fgODUflex frame, an fgOPUflex frame, etc.

[0095] It is understandable that, before S501 , method 500 further includes the following steps.

[0096] S504: Map at least one third data frame into the i-th first data frame.

[0097] S505: Map at least one fourth data frame into the j-th first data frame.

[0098] Below, taking the first data frame as an fgODTU.M frame, the second data frame as an OPU frame, the third data frame as an OSU frame (taking 192 bytes as an example), and the fourth data frame as an fgODUflex frame (for example, 4*3824 bytes) as an example, the method 500 provided in the above application is exemplarily described.

[0099] Specifically, when at least one OSU frame is mapped in the i-th fgODTU.M, the structure of the i-th fgODTU.M is as follows: Figure 6 As shown. Figure 6 It can be seen that the payload area of ​​the i-th fgODTU.M frame is divided into 192 bytes (byte, B), where the arrangement of 192B in the i-th fgODTU.M is different depending on Mi. GTP encapsulation can be used to multiplex at least one OSU frame to the Figure 6 In the ith fgODTU.M frame shown, Mi is the number of time slots allocated by the user to the OSU. The overhead area of ​​the ith fgODTU.M ( Figure 6The 12 bits in the fgODTU.M OH) are used to carry the position offset of the first 192B information element in the fgODTU.M frame. When at least one fgODUflex frame is mapped in the jth fgODTU.M, the structure of the jth fgODTU.M is as follows Figure 7 As shown. Figure 7 It can be seen that the payload area of ​​the jth fgODTU.M frame is a frame structure of 128*2*Mj 16B units, with a total of 256M 16B units. The fgODUflex frame can be multiplexed into the jth fgODTU.M frame structure using the generic mapping procedure (GMP). Mj is the number of time slots allocated by the user for the fgODUflex frame. The 12-bit overhead area of ​​the jth fgODTU.M frame is used to carry GMP rate adaptation information. When at least one OSU frame is configured according to Figure 6 Mapped to the i-th fgODTU.M frame and at least one fgODUflex frame according to Figure 7 After mapping to the jth fgODTU.M, Figure 8 As shown, the i-th fgODTU.M frame and the j-th fgODTU.M frame are multiplexed into the OPU (fgTS) frame using a 16B synchronous mapping method. At this point, the multiplexing of the fgODUflex frame and the OSU frame with the service layer is completed. It can be understood that the PT field in the OPU frame can be synchronously updated to indicate the PT type of mixed carrying of fgODUflex frames and OSU frames. For the timeslot carrying OSU frames, the tributary port ID (TPID) in the multiplex structure identifier (MSI) field must use a specific TPID value to indicate that the timeslot carries OSU frames.

[0100] Regarding the above Figure 5 In the embodiment, it should be noted that:

[0101] (1) The step numbers in the flowcharts described in the embodiments are merely examples of the execution process and do not limit the order in which the steps are executed. In the embodiments of the present application, there is no strict execution order for steps that have no temporal dependencies. Furthermore, not all steps shown in the flowcharts are mandatory steps, and steps may be added or deleted based on actual needs.

[0102] (2) The above embodiments utilize messages and parameters from the OTN system. However, in actual implementation, different messages or message names may be used, and the present embodiments do not limit this. Furthermore, in some of the above embodiments, data frames from existing OTN systems are used as examples for illustration. It should be understood that the present embodiments do not limit the specific form of data frames. For example, data frames that can achieve the same function in the future are applicable to the present embodiments.

[0103] (3) In the above-mentioned various method embodiments, the methods and operations implemented by a device (such as a sending device or a receiving device) may also be implemented by components of the device (such as a chip or a circuit), without limitation.

[0104] Above, combined Figures 5 to 8 The method provided in the embodiment of the present application is described in detail. Figures 9 to 12 The device and chip system provided by the embodiments of the present application are described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, please refer to the method embodiment above. For the sake of brevity, they are not repeated here.

[0105] above Figure 5 The data transmission method is mainly introduced from the perspective of the interaction between the sending device and the receiving device. It can be understood that in order to implement the above functions, the sending device and the receiving device include hardware structures and / or software modules corresponding to the execution of each function.

[0106] It is understood that in order to implement the functions in the above embodiments, the sending device and the receiving device include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily appreciate that, in combination with the units and method steps of the various examples described in the embodiments disclosed in this application, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or in a manner driven by computer software depends on the specific application scenario and design constraints of the technical solution.

[0107] Figure 9A schematic block diagram of a data transmission device 900 provided in an embodiment of the present application. For example, it is an OTN device at the transmitting end, or it can be a module (such as a chip) applied to the transmitting device. Specifically, the data transmission device 900 includes a receiving module 901, which can be used to implement the corresponding receiving function. The receiving module 901 can also be called a receiving unit. The data transmission device 900 also includes a processing module 902, which can be used to implement the corresponding processing function. The data transmission device 900 also includes a sending module 903, which can be used to implement the corresponding sending function, and the sending module 903 can also be called a sending unit. The receiving module 901 and the sending module 903 can also be called communication interfaces or communication units.

[0108] Optionally, the device 900 for transmitting data also includes a storage unit, which can be used to store instructions and / or data. The processing unit 902 can read the instructions and / or data in the storage unit so that the device 900 for transmitting data implements the actions of the sending device in the aforementioned method embodiment.

[0109] The device 900 for transmitting data can be used to execute the actions performed by the sending device in the above method embodiment 500. In this case, the device 900 for transmitting data can be a component of the sending device, the receiving module 901 is used to execute the reception-related operations of the sending device in the above method embodiment, the processing module 902 is used to execute the processing-related operations of the sending device in the above method embodiment 500, and the sending module 903 is used to execute the sending-related operations of the sending device in the above method embodiment 500.

[0110] In one embodiment, the apparatus 900 for transmitting data may be used to perform the above Figure 5 For example:

[0111] Processing module 902 is configured to map K first data frames to the payload area of ​​a second data frame, wherein the overhead area of ​​the second data frame includes indication information and rate adaptation information. The indication information indicates the position of the first first unit among the multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, and at least one third data frame is mapped to the i-th first data frame. The rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, and the frame format of the third data frame is different from that of each fourth data frame in the at least one fourth data frame. K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j.

[0112] The sending module 903 is configured to send a second data frame to a receiving device.

[0113] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0114] In addition, the receiving module 901, the processing module 902 and the sending module 903 in the apparatus 900 for transmitting data may also implement other operations or functions of the sending device in the above method, which will not be described in detail here.

[0115] Optionally, the data transmission apparatus 900 may include a transmitting device, or a component configured in the transmitting device, such as a chip of the transmitting device. In this case, the receiving module 901 and the transmitting module 903 may be interface circuits, pins, etc. Specifically, the interface circuit may include an input circuit and an output circuit, wherein the receiving module 901 may include an input circuit, the transmitting module 903 may include an output circuit, and the processing module 902 may include a processing circuit.

[0116] Figure 10 The present invention provides a schematic block diagram of a data transmission device 1000 provided in an embodiment of the present application. For example, it is an OTN device at the receiving end, or it can be a module (such as a chip) applied to the receiving device. Specifically, the data transmission device 1000 includes a receiving module 1001, which can be used to implement the corresponding receiving function. The receiving module 1001 can also be called a receiving unit. The data transmission device 1000 also includes a processing module 1002, which can be used to implement the corresponding processing function. The data transmission device 1000 also includes a sending module 1003, which can be used to implement the corresponding sending function. The sending module 1003 can also be called a sending unit. The receiving module 1001 and the sending module 1003 can also be called communication interfaces or communication units.

[0117] Optionally, the device 1000 for transmitting data also includes a storage unit, which can be used to store instructions and / or data. The processing unit 1002 can read the instructions and / or data in the storage unit so that the device 1000 for transmitting data implements the actions of the receiving device in the aforementioned method embodiments.

[0118] The device 1000 for transmitting data can be used to execute the actions performed by the receiving device in the above method embodiment 500. In this case, the device 1000 for transmitting data can be a component of the receiving device, the receiving module 1001 is used to execute the receiving-related operations of the receiving device in the above method embodiment, the processing module 1002 is used to execute the processing-related operations of the receiving device in the above method embodiment 500, and the sending module 1003 is used to execute the sending-related operations of the receiving device in the above method embodiment 500.

[0119] In one embodiment, the apparatus 1000 for transmitting data may be used to perform the above Figure 5 For example:

[0120] The receiving module 1001 is configured to receive a second data frame from a sending device.

[0121] Processing module 1002 demaps K first data frames from a second data frame, wherein the overhead area of ​​the second data frame includes indication information and rate adaptation information. The indication information indicates the position of the first first unit among multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, and at least one third data frame is mapped into the i-th first data frame. The rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, and the frame format of the third data frame is different from that of each fourth data frame in the at least one fourth data frame. K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j.

[0122] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0123] In addition, the receiving module 1001, the processing module 1002 and the sending module 1003 in the apparatus 1000 for transmitting data may also implement other operations or functions of the receiving device in the above method, which will not be described in detail here.

[0124] Optionally, the data transmission apparatus 1000 may include a receiving device, or a component configured in the receiving device, such as a chip of the receiving device. In this case, the receiving module 1001 and the transmitting module 1003 may be interface circuits, pins, etc. Specifically, the interface circuit may include an input circuit and an output circuit, wherein the receiving module 1001 may include an input circuit, the transmitting module 1003 may include an output circuit, and the processing module 1002 may include a processing circuit.

[0125] Figure 11The present invention provides a schematic structural diagram of a data transmission device 1100 provided in an embodiment of the present application. The data transmission device 1100 includes a processor 1101 and a transceiver 1102. The transceiver 1102 is configured to exchange information via a transmission medium. Optionally, the transceiver 1103 may be an interface, a bus, a circuit, or a device capable of performing transceiver functions. Optionally, the device for performing the receiving function in the transceiver 1102 may be considered a receiving module, and the device for performing the transmitting function in the transceiver 1102 may be considered a transmitting module, that is, the transceiver 1102 includes a receiver and a transmitter.

[0126] The transceiver 1102 may also be sometimes referred to as a transceiver, a transceiver module, or a transceiver circuit, etc. The receiver may also be sometimes referred to as a receiver, a receiving module, or a receiving circuit, etc. The transmitter 1102 may also be sometimes referred to as a transmitter, a transmitter, a transmitting module, or a transmitting circuit, etc.

[0127] For example, in one embodiment, the processor 1101 is configured to perform other operations or functions of a chip of a transmitting device. The transceiver 1102 is configured to implement information exchange between the apparatus 1100 for transmitting data and a receiving device.

[0128] In another embodiment, the processor 1101 is configured to receive other operations or functions of a chip of the device. The transceiver 1102 is used to implement information exchange between the apparatus 1100 for transmitting data and the sending device.

[0129] The device 1100 for transmitting data may further include a memory 1103 for storing computer programs or instructions or and / or data. The memory 1103 is coupled to the processor 1101, and the processor 1101 is used to execute the computer program or instructions and / or data stored in the memory 1103, so that one of the methods 300 to 1100 in the above method embodiments is executed. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1101 can operate in conjunction with the memory 1103.

[0130] Optionally, the apparatus 1100 for transmitting data may include one or more processors 1101 and one or more memories 1103 .

[0131] Optionally, the memory 1103 may be integrated with the processor 1101 or provided separately.

[0132] The specific connection medium between the processor 1101, the transceiver 1102 and the memory 1103 is not limited in the embodiment of the present application. Figure 11The processor 1101, the transceiver 1102 and the memory 1103 are connected via a bus 1104. Figure 11 The connections between the other components are shown by bold lines, which are only for illustration and not limiting. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0133] It should be understood that for ease of representation, Figure 11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0134] Figure 12 A schematic diagram of a chip system 1200 is provided for an embodiment of the present application. The chip system 1200 (or also referred to as a processing system) includes a logic circuit 1210 and an input / output interface 1220 .

[0135] Logic circuit 1210 may be a processing circuit within chip system 1200. Logic circuit 1210 may be coupled to a storage unit and invoke instructions within the storage unit, enabling chip system 1200 to implement the methods and functions of various embodiments of the present application. Input / output interface 1220 may be an input / output circuit within chip system 1200, outputting information processed by chip system 1200 or inputting data or signaling information to be processed into chip system 1200 for processing.

[0136] Alternatively, the logic circuit 1210 may be implemented by one or more processors, including the one or more processors or a processing portion in the one or more processors.

[0137] Optionally, the input / output interface 1220 may include a transceiver circuit, a transceiver, an input / output circuit, or a communication interface.

[0138] As a solution, the chip system 1200 is used to implement the operations performed by the sending device or the receiving device in the above various method embodiments.

[0139] Specifically, the logic circuit 1210 is used to implement the processing-related operations performed by the sending device or the receiving device in the above method embodiment; the input / output interface 1220 is used to implement the sending and / or receiving-related operations performed by the sending device or the receiving device in the above method embodiment.

[0140] An embodiment of the present application further provides a computer-readable storage medium on which computer instructions for implementing the methods executed by a sending device or a receiving device in the above-mentioned method embodiments are stored.

[0141] For example, when the computer program is executed by a computer, the computer can implement the method performed by the sending device or the receiving device in each embodiment of the above method.

[0142] An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by the sending device or the receiving device in the above-mentioned method embodiments.

[0143] The present application also provides a communication system, which includes the receiving device and / or the sending device in the above embodiments. For example, the system includes Figure 1 The receiving device and the sending device in.

[0144] The explanation of the relevant contents and beneficial effects of any of the above-mentioned devices can be referred to the corresponding method embodiments provided above, which will not be repeated here.

[0145] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can 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, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). For example, the aforementioned available medium includes, but is not limited to, various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0147] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for transmitting data, characterized in that: include: Mapping K first data frames into a payload area of ​​a second data frame, wherein the overhead area of ​​the second data frame includes indication information and rate adaptation information, wherein the indication information indicates a position of a first first unit among multiple first units included in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, at least one third data frame is mapped into the i-th first data frame, the rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, and the frame format of the at least one third data frame is different from that of the at least one fourth data frame, wherein K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j; Send the second data frame.

2. The method according to claim 1, characterized in that The payload area of ​​each of the K first data frames includes N*(2*M) units, where N is the number of rows in the payload area of ​​each first data frame, (2*M) is the number of columns in the payload area of ​​each first data frame, and M is the number of time slots occupied by at least one data frame mapped in each first data frame. The overhead area of ​​each first data frame includes L bits, and the payload area of ​​the i-th first data frame includes N*(2*M i ) first unit, the N*(2*M i The number of bytes contained in each of the first units is the length of each third data frame in the at least one third data frame, and the L of the overhead area of ​​the i-th first data frame is i Some or all of the bits are used to carry the indication information, and the payload area of ​​the j-th first data frame includes N*(2*M j ) second unit, the N*(2*M j ) The number of bytes contained in each of the second units is X bytes, and the L of the overhead area of ​​the j-th first data frame is j bits are used to carry the rate adaptation information, N is an integer greater than 1, L is an integer greater than 1, X is an integer greater than 1, and M i is the number of time slots occupied by the at least one third data frame, M j is the number of time slots occupied by the at least one fourth data frame, M, M i and M j is an integer greater than or equal to 1.

3. The method according to claim 2, characterized in that The payload area of ​​the second data frame is a P-row and Q-column structure, and the payload area of ​​the second data frame is divided into P rows*(2*(Q / 2X)) columns, including P*(Q / 2X) time slots, and the overhead corresponding to each time slot occupies multiple bits.

4. The method according to claim 3, characterized in that Mapping the K first data frames into the payload area of ​​the second data frame includes mapping the K first data frames into the payload area of ​​the second data frame using the X bytes.

5. The method according to any one of claims 2 to 4, characterized in that X is equal to 16.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Mapping the at least one third data frame into the i-th second data frame; The at least one fourth data frame is mapped into the j-th second data frame.

7. The method according to any one of claims 1 to 6, characterized in that Each of the first data frames is an M-unit small-granularity optical data tributary unit optical data unit fgODTU.M frame, the second data frame is an optical transport network OTN frame, each of the third data frames is an optical service unit OSU frame, and each of the at least one fourth data frame is a small-granularity optical transport network fgOTN frame.

8. A method for transmitting data, characterized in that: include: receiving a second data frame; K first data frames are demapped from the second data frame, the overhead area of ​​the second data frame includes indication information and rate adaptation information, the indication information indicates the position of the first first unit among the multiple first units contained in the i-th first data frame in the payload area of ​​the i-th first data frame, the i-th first data frame is one of the K first data frames, at least one third data frame is mapped in the i-th first data frame, the rate adaptation information is generated when at least one fourth data frame is mapped to the j-th first data frame, the j-th first data frame is one of the K first data frames, the at least one third data frame has a different frame format from the at least one fourth data frame, wherein K is an integer greater than 1, i and j are any integers greater than or equal to 1 and less than or equal to K, and i is not equal to j.

9. The method according to claim 8, characterized in that The payload area of ​​each of the K first data frames includes N*(2*M) units, where N is the number of rows in the payload area of ​​each first data frame, (2*M) is the number of columns in the payload area of ​​each first data frame, and M is the number of time slots occupied by at least one data frame mapped in each first data frame. The overhead area of ​​each first data frame includes L bits, and the payload area of ​​the i-th first data frame includes N*(2*M i ) first unit, the N*(2*M i The number of bytes contained in each of the first units is the length of each third data frame in the at least one third data frame, and the L of the overhead area of ​​the i-th first data frame is i Some or all of the bits are used to carry the indication information, and the payload area of ​​the j-th first data frame includes N*(2*M j ) second unit, the N*(2*M j ) The number of bytes contained in each of the second units is X bytes, and the L of the overhead area of ​​the j-th first data frame is j bits are used to carry the rate adaptation information, N is an integer greater than 1, L is an integer greater than 1, X is an integer greater than 1, and M i is the number of time slots occupied by the at least one third data frame, M j is the number of time slots occupied by the at least one fourth data frame, M, M i and M j is an integer greater than or equal to 1.

10. The method according to claim 9, characterized in that The payload area of ​​the second data frame is a P-row and Q-column structure, and the payload area of ​​the second data frame is divided into P rows*(2*(Q / 2X)) columns, including P*(Q / 2X) time slots, and the overhead corresponding to each time slot occupies multiple bits.

11. The method according to claim 10, characterized in that Demapping the K first data frames from the second data frame includes demapping the K first data frames from the payload area of ​​the second data frame using the X bytes.

12. The method according to any one of claims 9 to 11, characterized in that X is equal to 16.

13. The method according to any one of claims 8 to 12, characterized in that The method further comprises: Demapping the at least one third data frame from the i-th second data frame; Demap the at least one fourth data frame from the j-th second data frame.

14. The method according to any one of claims 8 to 13, characterized in that Each of the first data frames is an M-unit small-granularity optical data tributary unit optical data unit fgODTU.M frame, the second data frame is an optical transport network OTN frame, each of the third data frames is an optical service unit OSU frame, and each of the at least one fourth data frame is a small-granularity optical transport network fgOTN frame.

15. A device for transmitting data, characterized in that: include: A module for executing the method according to any one of claims 1 to 7, or a module for executing the method according to any one of claims 8 to 14.

16. A chip, characterized in that: The chip includes a processor and a communication interface, the communication interface is used to receive data frames and transmit them to the processor or send data frames to other communication devices other than the communication device including the chip, and the processor is used to execute the method as described in any one of claims 1 to 7, or the method as described in any one of claims 8 to 14.

17. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which, when executed on a computer, enable the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 14 to be performed.

18. A computer program product, characterized in that The computer program product comprises a computer program code which, when run on a computer, causes the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 14 to be performed.