Mapping method and apparatus, and communication device
By adopting a mapping and demapping method with fixed granularity in the optical transmission network, the problem of excessive mapping delay caused by traditional GMP is solved and the mapping efficiency and stability are improved.
Patent Information
- Application Number
- CN202310337072.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
When multiplexing mapping from OSU to OSTU in traditional optical transmission networks, the granularity size caused by the General Mapping Procedure (GMP) is not fixed, resulting in long mapping delay.
Use a mapping method with a fixed granularity size to map the first frame of the first layer to the second frame of the second layer, and use a demapping method with the same granularity size during demapping to ensure consistent granularity during the mapping process.
It avoids the problem of long mapping delay, improves mapping efficiency, and ensures the stability and efficiency of mapping under any circumstances.
Smart Images

Figure CN118740309A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a mapping method and device, and a communication device. Background Art
[0002] The traditional optical transport network (OTN) introduces the optical service unit (OSU) mechanism to carry small-granular data blocks of 10M-10G. When the OSU multiplexes and maps to the optical service branch unit (OSTU), the generic mapping procedure (GMP) is generally used for mapping. However, the granularity used in this mapping method may be very large, resulting in excessive mapping delay. Summary of the invention
[0003] To solve the above technical problems, the embodiments of the present application provide a mapping method and apparatus, a communication device, and a computer-readable storage medium.
[0004] The mapping method provided in the embodiment of the present application includes:
[0005] The first device maps a first frame of a first layer to a second frame of a second layer; wherein the mapping adopts a mapping method with a fixed granularity.
[0006] The mapping method provided in the embodiment of the present application includes:
[0007] The second device demaps the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
[0008] The mapping device provided in the embodiment of the present application includes:
[0009] The first processing unit is used to map the first frame of the first layer to the second frame of the second layer; wherein the mapping adopts a mapping method with a fixed granularity.
[0010] The mapping device provided in the embodiment of the present application includes:
[0011] The second processing unit is used to demap the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
[0012] The communication device provided in the embodiment of the present application includes: a processor and a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute any one of the above-mentioned mapping methods.
[0013] The computer-readable storage medium provided in the embodiments of the present application is used to store a computer program, and the computer program enables a computer to execute any one of the above methods.
[0014] In the technical solution of the embodiment of the present application, when the first frame of the first layer is mapped to the second frame of the second layer, a mapping method with a fixed granularity is adopted to map the first frame of the first layer to the second frame of the second layer. In this way, there will be no problem of too large granularity under any circumstances, and there will be no problem of too long mapping delay, thereby improving the mapping efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a schematic diagram of OSU mapping;
[0016] Figure 2 It is a schematic diagram of mapping in GMP mode;
[0017] Figure 3 This is a flowchart of the mapping method provided in the embodiment of the present application. Figure 1 ;
[0018] Figure 4 It is a schematic diagram of mapping by the GMP method provided in the embodiment of the present application;
[0019] Figure 5 This is a flowchart of the mapping method provided in the embodiment of the present application. Figure 2 ;
[0020] Figure 6 This is a schematic diagram of the structure of the mapping device provided in the embodiment of the present application. Figure 1 ;
[0021] Figure 7 This is a schematic diagram of the structure of the mapping device provided in the embodiment of the present application. Figure 2 ;
[0022] Figure 8 It is a schematic structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three kinds of relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. It should also be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B. It should also be understood that the "correspondence" mentioned in the embodiments of the present application can mean that there is a direct or indirect correspondence relationship between the two, or it can mean that there is an association relationship between the two, or it can mean the relationship between indication and being indicated, configuration and being configured, etc.
[0024] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.
[0025] Figure 1 A schematic diagram of OSU mapping is given, such as Figure 1 As shown, the service data is first mapped into the OSU frame, the OSU frame is then encapsulated into the Optical Payload Unit (OPU) frame, the OPU is then encapsulated into the Optical Data Unit (ODU), and the ODU is then encapsulated into the Optical Transport Unit (OTU). Among them, the encapsulation of OSU into OPU can be further subdivided into: OSU is first mapped into OSTU, and OSTU is then multiplexed into OPU. Among them, OSU consists of OSU overhead and OSU payload. OPU consists of OPU overhead and OPU payload. ODU consists of ODU overhead and ODU payload. OTU consists of OTU overhead, OTU payload and OTU FEC.
[0026] When OSU is multiplexed and mapped to OSTU (ie, the payload of OPU), GMP is generally used for mapping. Figure 2 A schematic diagram of mapping in a GMP manner is given, wherein each square represents a data block (or a time slot). As an example, the size of each data block is 128 bits (ie, 16 bytes). Figure 2 The left picture in the figure represents that the business data occupies 1 data block (that is, the granularity size is 128 bits), and the right picture represents that the business data occupies 2 data blocks (that is, the granularity size is 128*2 bits).
[0027] Here, the granularity size can also be called word size. In GMP, the traditional granularity size is proportional to the rate of ODUj and the number of time slots of ODUk occupied by ODUj. In this way, no matter how high the rate of ODUj is, the maximum value of Cm can be fixed. Cm is the number of customer data in m-bit blocks, and m is the number of bits in each data block of the service layer. However, this will bring the following problems: when the rate of ODUj is high and the number of time slots occupied is large, a very large granularity is required, which requires a large delay to collect data. For example, for OTN services, the delay = 1B / 1.25G; for OSU services, if 1 time slot is occupied, the delay = 16B / 10M, if 119 time slots are occupied, the delay = 119*16B / 10M.
[0028] To this end, the following technical solutions of the embodiments of the present application are proposed. To facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The above related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application. The embodiments of the present application include at least part of the following contents.
[0029] It should be noted that the “load” described in the embodiments of the present application may also be referred to as “payload”.
[0030] Figure 3 This is a flowchart of the mapping method provided in the embodiment of the present application. Figure 1 ,like Figure 3 As shown, the mapping method comprises the following steps:
[0031] Step 301: The first device maps a first frame of a first layer to a second frame of a second layer; wherein the mapping adopts a mapping method with a fixed granularity.
[0032] Here, the first layer is a client layer relative to the second layer, and the second layer is a service layer relative to the first layer.
[0033] In the embodiment of the present application, the first device may be a communication device in the OSU system.
[0034] In the embodiment of the present application, the granularity size represents the size of the data granularity mapped from the client layer to the service layer.
[0035] In the embodiment of the present application, the granularity may also be referred to as GMP granularity, or timing granularity, or word size. The size of the granularity may be represented by a parameter m.
[0036] In an embodiment of the present application, after receiving the customer data, the first device maps the customer data to the first frame of the first layer, and then when mapping the first frame of the first layer to the second frame of the second layer, a mapping method with a fixed granularity size is used for mapping.
[0037] In the embodiment of the present application, the particle size is a fixed value.
[0038] In some implementations, the granularity size is equal to 128*k bits, where k is a fixed positive integer.
[0039] As an example: m represents the granularity size, m=128 bits (ie, 16 bytes); or m=128*k bits (ie, 16 bytes*k), k is a fixed integer greater than 1.
[0040] It should be emphasized that the granularity described in the embodiments of the present application is fixed and has nothing to do with the service rate. From the perspective of the interleaving granularity of the system, the granularity described in the embodiments of the present application is equal to the interleaving granularity, and the interleaving granularity is fixed in a system, so the granularity is also fixed.
[0041] In some implementations, the mapping method is a GMP method. In a specific implementation, the name of the mapping method may also be a variation of the GMP method, such as an enhanced GMP method, an extended GMP method, etc. This application does not limit the name of the mapping method.
[0042] Figure 4 A schematic diagram of mapping with a fixed granularity is given, wherein each square represents a data block. As an example, the size of each data block is 128 bits (ie, 16 bytes). Figure 2 The left picture in the figure represents that the business data occupies 1 data block (that is, the granularity size is 128 bits), and the right picture represents that the business data occupies 1 data block (that is, the granularity size is 128 bits). In other words, no matter what the situation, the granularity size is fixed to 128 bits.
[0043] In the embodiment of the present application, the service layer period of the second layer is related to the bit rate of the first layer. The service layer period of the second layer changes with the change of the bit rate of the first layer, that is, when the bit rate of the first layer changes, the service layer period of the second layer also changes accordingly.
[0044] In some embodiments, the service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
[0045] Here, the description of the service layer period can also be replaced by service period, server period, mapping period, etc. The service layer period can be a parameter P server , which represents the maximum number of (n bits) data entities in the server payload area.
[0046] Here, the description of the bit rate may also be replaced by rate or other concepts similar to rate.
[0047] In the embodiment of the present application, the first frame of the first layer may be called an OSU frame, or a sub-1G frame, or a small particle frame, or a small bandwidth frame, etc. The present application does not limit this name.
[0048] In the embodiment of the present application, the second frame of the second layer is an OSTU frame or an OPU frame. The present application does not limit this name.
[0049] Further, after step 301, the mapping method further comprises the following steps:
[0050] Step 302: The first device encapsulates the second frame of the second layer and sends it out.
[0051] In the case where the second frame of the second layer is an OSTU frame, the first device multiplexes the OSTU frame into an OPU frame, encapsulates the OPU frame into an ODU frame, and encapsulates the ODU frame into an OTU frame and sends it out.
[0052] In the case where the second frame of the second layer is an OPU frame, the first device encapsulates the OPU frame into an ODU frame, and encapsulates the ODU frame into an OTU frame and sends it out.
[0053] Here, the description of multiplexing may also be replaced by mapping or multiplexing mapping.
[0054] Here, the type of the OTU frame includes but is not limited to an OTUk frame, an OTUCn frame, and the like.
[0055] Figure 5 This is a flowchart of the mapping method provided in the embodiment of the present application. Figure 2 ,like Figure 5 As shown, the mapping method comprises the following steps:
[0056] Step 501: The second device demaps the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
[0057] Here, the first layer is a client layer relative to the second layer, and the second layer is a service layer relative to the first layer.
[0058] In the embodiment of the present application, the second device may be a communication device in the OSU system.
[0059] In the embodiment of the present application, the granularity size represents the size of the data granularity demapping (Demapping) from the service layer to the client layer.
[0060] In the embodiment of the present application, the granularity may also be referred to as GMP granularity, or timing granularity, or word size. The size of the granularity may be represented by a parameter m.
[0061] In the embodiment of the present application, when the second device demaps the second frame of the second layer to the first frame of the first layer, it uses a demapping method with a fixed granularity to perform demapping.
[0062] In the embodiment of the present application, the particle size is a fixed value.
[0063] In some implementations, the granularity size is equal to 128*k bits, where k is a fixed positive integer.
[0064] As an example: m represents the granularity size, m=128 bits (ie, 16 bytes); or m=128*k bits (ie, 16 bytes*k), k is a fixed integer greater than 1.
[0065] It should be emphasized that the granularity described in the embodiments of the present application is fixed and has nothing to do with the service rate. From the perspective of the interleaving granularity of the system, the granularity described in the embodiments of the present application is equal to the interleaving granularity, and the interleaving granularity is fixed in a system, so the granularity is also fixed.
[0066] In some implementations, the demapping method is a demapping method corresponding to the GMP method. This application does not limit the name of the demapping method.
[0067] In the embodiment of the present application, the service layer period of the second layer is related to the bit rate of the first layer. The service layer period of the second layer changes with the change of the bit rate of the first layer, that is, when the bit rate of the first layer changes, the service layer period of the second layer also changes accordingly.
[0068] In some embodiments, the service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
[0069] Here, the description of the service layer period can also be replaced by service period, server period, mapping period, etc. The service layer period can be a parameter P server , which represents the maximum number of (n bits) data entities in the server payload area.
[0070] Here, the description of the bit rate may also be replaced by rate or other concepts similar to rate.
[0071] In the embodiment of the present application, the first frame of the first layer may be called an OSU frame, or a sub-1G frame, or a small particle frame, or a small bandwidth frame, etc. The present application does not limit this name.
[0072] In the embodiment of the present application, the second frame of the second layer is an OSTU frame or an OPU frame. The present application does not limit this name.
[0073] Furthermore, before step 501, the mapping method further includes the following steps:
[0074] Step 500: The second device receives an OTU frame, and decapsulates the OTU frame to obtain a second frame of the second layer.
[0075] Corresponding to the case where the second frame of the second layer is an OSTU frame, the second device receives the OTU frame, decapsulates the ODU frame from the OTU frame, decapsulates the OPU frame from the ODU frame, and demultiplexes the OSTU frame from the OPU frame.
[0076] In the case where the second frame of the second layer is an OPU frame, the second device receives the OTU frame, decapsulates the OTU frame to obtain the ODU frame, and decapsulates the ODU frame to obtain the OPU frame.
[0077] Here, the description of demultiplexing may also be replaced by demapping or demultiplex mapping.
[0078] Here, the type of the OTU frame includes but is not limited to an OTUk frame, an OTUCn frame, and the like.
[0079] Figure 6 Schematic diagram of the structure of the mapping device provided in the embodiment of the present application, which is applied to the first device, such as Figure 6 As shown, the mapping device includes:
[0080] The first processing unit 601 is used to map the first frame of the first layer to the second frame of the second layer; wherein the mapping adopts a mapping method with a fixed granularity.
[0081] In some embodiments, the particle size is a fixed value.
[0082] In some implementations, the granularity size is equal to 128*k bits, where k is a fixed positive integer.
[0083] In some embodiments, the service layer period of the second layer is related to the bit rate of the first layer.
[0084] In some embodiments, the service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
[0085] In some embodiments, the service layer period of the second layer changes following the change of the bit rate of the first layer.
[0086] In some implementations, the mapping method is a GMP method.
[0087] In some implementations, the second frame of the second layer is an OSTU frame; or, the second frame of the second layer is an OPU frame.
[0088] In some implementations, the first processing unit 601 is further configured to multiplex the OSTU frame into an OPU frame, encapsulate the OPU frame into an ODU frame, and encapsulate the ODU frame into an OTU frame; or, encapsulate the OPU frame into an ODU frame, and encapsulate the ODU frame into an OTU frame;
[0089] The device also includes: a sending unit 602, configured to send the OTU frame.
[0090] Those skilled in the art should understand that Figure 6 The implementation functions of each unit in the illustrated mapping device may be understood by referring to the related description of the aforementioned method. Figure 6 The functions of each unit in the mapping device shown can be implemented by a program running on a processor, or can be implemented by a specific logic circuit.
[0091] Figure 7 Schematic diagram of the structure of the mapping device provided in the embodiment of the present application, which is applied to the second device, such as Figure 7 As shown, the mapping device includes:
[0092] The second processing unit 701 is configured to demap the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
[0093] In some embodiments, the particle size is a fixed value.
[0094] In some implementations, the granularity size is equal to 128*k bits, where k is a fixed positive integer.
[0095] In some embodiments, the service layer period of the second layer is related to the bit rate of the first layer.
[0096] In some embodiments, the service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
[0097] In some embodiments, the service layer period of the second layer changes following the change of the bit rate of the first layer.
[0098] In some implementations, the demapping method is a demapping method corresponding to the GMP method.
[0099] In some implementations, the second frame of the second layer is an OSTU frame; or, the second frame of the second layer is an OPU frame.
[0100] In some implementations, the apparatus further includes: a receiving unit 702, configured to receive an OTU frame;
[0101] The second processing unit 701 is further configured to decapsulate the OTU frame to obtain an ODU frame, decapsulate the ODU frame to obtain an OPU frame, and demultiplex the OTU frame to obtain an OSTU frame. Alternatively, decapsulate the OTU frame to obtain an ODU frame, and decapsulate the ODU frame to obtain an OPU frame.
[0102] Those skilled in the art should understand that Figure 7 The implementation functions of each unit in the illustrated mapping device may be understood by referring to the related description of the aforementioned method. Figure 7 The functions of each unit in the mapping device shown can be implemented by a program running on a processor, or can be implemented by a specific logic circuit.
[0103] Figure 8 It is a schematic structural diagram of a communication device 800 provided in an embodiment of the present application. Figure 8 The communication device 800 shown includes a processor 810, and the processor 810 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0104] Alternatively, if Figure 8 As shown, the communication device 800 may further include a memory 820. The processor 810 may call and run a computer program from the memory 820 to implement the method in the embodiment of the present application.
[0105] The memory 820 may be a separate device independent of the processor 810 , or may be integrated into the processor 810 .
[0106] Alternatively, if Figure 8 As shown, the communication device 800 may further include a transceiver 830, and the processor 810 may control the transceiver 830 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0107] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of the antennas may be one or more.
[0108] In some implementations, the communication device 800 may specifically be the first device of the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the first device in each method of the embodiment of the present application, which will not be described in detail here for the sake of brevity.
[0109] In some implementations, the communication device 800 may specifically be the second device of the embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the second device in each method of the embodiment of the present application, which will not be described in detail here for the sake of brevity.
[0110] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0111] In some embodiments, the computer-readable storage medium can be applied to the first device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0112] In some embodiments, the computer-readable storage medium can be applied to the second device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the second device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0113] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0115] In the several embodiments provided in the present application, it should be understood that the disclosed systems, 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. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that 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.
[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0118] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, 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.
[0119] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A mapping method, characterized in that: The method comprises: The first device maps a first frame of a first layer to a second frame of a second layer; wherein the mapping adopts a mapping method with a fixed granularity.
2. The method according to claim 1, characterized in that: The particle size is a fixed value.
3. The method according to claim 2, characterized in that The granularity size is equal to 128*k bits, where k is a fixed positive integer.
4. The method according to claim 1, characterized in that: The service layer period of the second layer is related to the bit rate of the first layer.
5. The method according to claim 4, characterized in that The service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
6. The method according to claim 4, characterized in that The service layer period of the second layer changes following the change of the bit rate of the first layer.
7. The method according to any one of claims 1 to 6, characterized in that The mapping method is a general mapping process GMP method.
8. The method according to any one of claims 1 to 6, characterized in that The second frame of the second layer is an optical service branch single OSTU frame; or, The second frame of the second layer is an optical payload unit OPU frame.
9. The method according to claim 8, characterized in that For the case where the second frame of the second layer is an OSTU frame, the method further includes: The first device multiplexes the OSTU frame into an OPU frame, encapsulates the OPU frame into an ODU frame, and encapsulates the ODU frame into an OTU frame and sends it out.
10. The method according to claim 8, characterized in that For the case where the second frame of the second layer is an OPU frame, the method further includes: The first device encapsulates the OPU frame into an ODU frame, and encapsulates the ODU frame into an OTU frame and sends it out.
11. A mapping method, characterized in that: The method comprises: The second device demaps the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
12. The method according to claim 11, characterized in that The particle size is a fixed value.
13. The method according to claim 12, characterized in that The granularity size is equal to 128*k bits, where k is a fixed positive integer.
14. The method according to claim 11, characterized in that The service layer period of the second layer is related to the bit rate of the first layer.
15. The method according to claim 11, characterized in that The service layer period of the second layer is proportional to or approximately proportional to the bit rate of the first layer.
16. The method according to claim 11, characterized in that The service layer period of the second layer changes following the change of the bit rate of the first layer.
17. The method according to any one of claims 11 to 16, characterized in that The demapping method is a demapping method corresponding to the general mapping process GMP method.
18. The method according to any one of claims 11 to 16, characterized in that The second frame of the second layer is an OSTU frame; or, The second frame of the second layer is an OPU frame.
19. The method according to claim 18, characterized in that Corresponding to the case where the second frame of the second layer is an OSTU frame, the method further includes: The second device receives the OTU frame, decapsulates the OTU frame to obtain the ODU frame, decapsulates the ODU frame to obtain the OPU frame, and demultiplexes the OTU frame to obtain the OSTU frame.
20. The method according to claim 18, characterized in that For the case where the second frame of the second layer is an OPU frame, the method further includes: The second device receives the OTU frame, decapsulates the OTU frame to obtain the ODU frame, and decapsulates the ODU frame to obtain the OPU frame.
21. A mapping device, characterized in that: The device comprises: The first processing unit is used to map the first frame of the first layer to the second frame of the second layer; wherein the mapping adopts a mapping method with a fixed granularity.
22. The device according to claim 21, characterized in that The particle size is a fixed value.
23. A mapping device, characterized in that: The device comprises: The second processing unit is used to demap the second frame of the second layer into the first frame of the first layer; wherein the demapping adopts a demapping method with a fixed granularity.
24. The device according to claim 23, characterized in that The particle size is a fixed value.
25. A communication device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 10, or the method according to any one of claims 11 to 20.
26. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 10, or the method according to any one of claims 11 to 20.
