A data multiplexing method, a data demultiplexing method and apparatus
By directly mapping OSU and low-order ODU to ODTU for multiplexing or demultiplexing in the optical transport network (OTN) equipment, the problem of large processing latency of OSU is solved, and more efficient data transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-05-07
- Publication Date
- 2026-07-10
AI Technical Summary
In existing technologies, the processing latency and end-to-end transmission latency of the OSU are relatively large, mainly because the OSU to higher-order ODU requires step-by-step multiplexing, and the higher-order ODU to OSU requires step-by-step demultiplexing.
By mapping OSUs and low-order ODUs to ODTUs of different rates in the optical transport network (OTN) equipment, and performing single-level multiplexing or demultiplexing, they can be directly mapped or demapped to high-order or low-order ODUs, avoiding step-by-step processing.
This reduces OSU processing latency and end-to-end transmission latency, improving data transmission efficiency and flexibility.
Smart Images

Figure CN116671124B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical transport network technology, and in particular to a data multiplexing method, a data demultiplexing method, and an apparatus. Background Technology
[0002] Optical transport network (OTN) is a transparent transport technology developed to address the high-capacity, coarse-grained scheduling needs at the backbone network level. With the successive release of different versions of the OTN standard, the types of data units supported by OTN, including those with varying rates and granularities, have become increasingly diverse. These data units can include optical service units (OSUs), optical channel payload units (OPUs), optical channel data units (ODUs), and optical channel transport units (OTUs).
[0003] In OTN systems, the processing of low-rate, small-granularity data units typically involves multiplexing multiple low-rate, small-granularity data units into a high-rate, large-granularity data unit, performing appropriate processing, and then demultiplexing it back into multiple low-rate, small-granularity data units in the same manner. In existing technologies, the processing of OSUs typically involves multiplexing the OSU into a low-order ODU, then sequentially multiplexing this low-order ODU with other low-order ODUs to obtain a high-order ODU, which is finally transmitted over the optical transport network. Conversely, the process of demultiplexing the high-order ODU into an OSU also involves sequentially demultiplexing the high-order ODU to obtain a low-order ODU, and then demultiplexing the low-order ODU to obtain the OSU.
[0004] In the above method, multiplexing is required step by step from OSU to higher-order ODU, and demultiplexing is required step by step from higher-order ODU to OSU. This results in a large processing delay for OSU, which in turn leads to a large end-to-end transmission delay for OSU. Summary of the Invention
[0005] This application provides a data multiplexing method, a data demultiplexing method, and an apparatus for reducing the processing latency of the OSU and the end-to-end transmission latency.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, a data multiplexing method is provided, applied in an optical transport network (OTN) device. The method includes: acquiring at least one optical serving unit (OSU) and at least one low-order optical channel data unit (ODU), wherein the at least one OSU may include OSUs from the same source or different sources, and the at least one low-order ODU may include low-order ODUs from the same source; mapping the at least one OSU to a first optical channel data tributary unit (ODTU), and mapping the at least one low-order ODU to a second ODTU; and multiplexing the first ODTU and the second ODTU to a high-order ODU.
[0008] In the above technical solution, when the OTN device acquires at least one OSU and a low-order ODU, it can map the at least one OSU to a first ODTU, map the low-order ODU to a second ODTU, and multiplex the first ODTU and the second ODTU into a high-order ODU. That is, the OTN device can map and multiplex at least one OSU with different particle sizes and different rates and at least one OSU low-order ODU into a high-order ODU through a single-level multiplexing. Compared with the prior art, this can reduce the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0009] In one possible implementation of the first aspect, a first shared cache corresponds to a first ODTU, and a second shared cache corresponds to a second ODTU. The first shared cache may cache multiple OSUs, and the second shared cache may cache multiple low-level ODUs. Retrieving at least one OSU and at least one low-level ODU includes: retrieving the at least one OSU from the first shared cache and retrieving the at least one low-level ODU from the second shared cache. In the above possible implementation, retrieving the at least one OSU from the first shared cache containing multiple OSUs and retrieving the at least one low-level ODU from the second shared cache containing multiple low-level ODUs can reduce the latency for the OTN device to retrieve the at least one OSU and the at least one low-level ODU.
[0010] In one possible implementation of the first aspect, the method further includes: scheduling OSUs from a plurality of OSUs to be multiplexed according to a first preset bandwidth, and accelerating the writing of the scheduled OSUs into a first shared buffer. The first preset bandwidth is the bandwidth of the first ODTU. The plurality of OSUs to be multiplexed can be multiple OSUs obtained by the OTN device after cross-processing OSUs received from different sources. Optionally, the OSUs are scheduled in a time-division scheduling manner. In the above possible implementation, the OTN device schedules OSUs from a plurality of OSUs to be multiplexed according to the first preset bandwidth, which can make the bandwidth of the OTN device scheduling OSUs match the bandwidth of the first ODTU, thereby avoiding the problem of reduced OSU mapping rate or reduced OSU transmission efficiency due to the number of scheduled OSUs being lower than the number of mapped OSUs. In addition, when the OTN device schedules in a time-division manner, the number of OSUs scheduled each time can be equal or the difference in number can be small to ensure the smoothness of OSU scheduling.
[0011] In one possible implementation of the first aspect, the method further includes: allocating a first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU. In the above possible implementation, the OTN device can allocate the first preset bandwidth to the first ODTU according to actual needs, thereby improving the bandwidth flexibility of the first ODTU and thus providing flexibility in OSU transmission.
[0012] In one possible implementation of the first aspect, mapping the at least one OSU to a first ODTU includes: determining a first overhead based on the at least one OSU, and mapping the at least one OSU to a first payload to obtain the first ODTU. The first ODTU includes the first overhead and the first payload. The first overhead can be used to record the identifier, quantity, and mapping position of the at least one OSU. Optionally, the at least one OSU is mapped according to the Bit Synchronization Mapping Protocol (BMP). The above possible implementation provides a simple and effective way to map at least one OSU to a first ODTU. In this way, the OSU can be directly mapped to the ODTU corresponding to the higher-order ODU, thereby reducing the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0013] In one possible implementation of the first aspect, the first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. Multiplexing the first ODTU and the second ODTU into a higher-order ODU includes: multiplexing the first ODTU and the second ODTU into the higher-order ODU according to the first time slot and the second time slot. The above possible implementation provides a simple and effective way to multiplex the first ODTU and the second ODTU into a higher-order ODU. This method can directly multiplex the first ODTU mapped to the OSU and the second ODTU mapped to the lower-order ODU into a higher-order ODU, thereby reducing the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0014] Secondly, a data demultiplexing method is provided, applied in an optical transport network (OTN) device. The method includes: acquiring a high-order optical channel data unit (ODU); demultiplexing the high-order ODU into a first optical channel data branch unit (ODTU) and a second ODTU; demapping the first ODTU into at least one OSU; and demapping the second ODTU into at least one low-order ODU. The at least one ODU may include ODUs from the same source or different sources, and the at least one low-order ODU may include low-order ODUs from the same source.
[0015] In the above technical solution, when the OTN device acquires a high-order ODU, it can demultiplex the high-order ODU into a first ODTU and a second ODTU, and demap the first ODTU into at least one OSU, and demap the second ODTU into at least one low-order ODU. That is, the OTN device can demultiplex the high-order ODU into at least one OSU and at least one low-order ODU with different granularity and different rates through a single-stage demultiplexing process. Compared with the prior art, this can reduce the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0016] In one possible implementation of the second aspect, the method further includes: caching the at least one OSU in a first shared cache and caching the at least one low-order ODU in a second shared cache, wherein the first shared cache corresponds to a first ODTU and the second shared cache corresponds to a second ODTU. In the above possible implementation, caching the at least one OSU in the first shared cache and the at least one low-order ODU in the second shared cache facilitates further processing of the at least one OSU and the at least one low-order ODU by the OTN device, thereby reducing transmission latency.
[0017] In one possible implementation of the second aspect, the method further includes: scheduling OSUs from a first shared buffer according to a first preset bandwidth, where the first preset bandwidth is the bandwidth of the first ODTU. Optionally, the OSUs are scheduled using a time-division scheduling method. In the above possible implementations, the OTN device schedules OSUs from the first shared buffer according to the first preset bandwidth, which ensures that the bandwidth of the OSUs scheduled by the OTN device matches the bandwidth of the first ODTU. This avoids the problem of reduced OSU demapping rate or reduced OSU transmission efficiency due to the number of scheduled OSUs being less than the number of demapped OSUs. Furthermore, when the OTN device schedules in a time-division manner, the number of OSUs scheduled each time can be equal or have a small difference to ensure the smoothness of OSU scheduling.
[0018] In one possible implementation of the second aspect, the method further includes: allocating a first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU. In the above possible implementations, the OTN device can allocate the first preset bandwidth to the first ODTU according to actual needs, thereby improving the bandwidth flexibility of the first ODTU and thus providing flexibility in OSU transmission.
[0019] In one possible implementation of the second aspect, the first ODTU includes a first overhead and a first payload. Demapping the first ODTU into at least one OSU includes: demapping the first payload according to the first overhead to obtain the at least one OSU. The first overhead can be used to record the identifier, quantity, and mapping position of the at least one OSU. The above possible implementation provides a simple and effective way to demapping the first ODTU into at least one OSU. This method can directly demapping the first ODTU into at least one OSU, thereby reducing the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0020] In one possible implementation of the second aspect, the first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. Demultiplexing the higher-order ODU into the first ODTU and the second ODTU includes: demultiplexing the higher-order ODU into the first ODTU and the second ODTU according to the first time slot and the second time slot. The above possible implementation provides a simple and effective way to demultiplex the higher-order ODU into the first ODTU and the second ODTU. This method can directly demultiplex the higher-order ODU into the first ODTU mapped to the OSU and the second ODTU mapped to the lower-order ODU, thereby reducing the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0021] Thirdly, a data multiplexing apparatus is provided, comprising: an acquisition unit for acquiring at least one optical serving unit (OSU) and at least one low-order optical channel data unit (ODU), wherein the at least one OSU may include OSUs from the same source or different sources, and the at least one low-order ODU may include low-order ODUs from the same source; a mapping unit for mapping the at least one OSU as a first optical channel data branch unit (ODTU) and mapping the at least one low-order ODU as a second ODTU; and a multiplexing unit for multiplexing the first ODTU and the second ODTU into a high-order ODU.
[0022] In one possible implementation of the third aspect, a first shared cache corresponds to a first ODTU, and a second shared cache corresponds to a second ODTU. The first shared cache may cache multiple OSUs, and the second shared cache may cache multiple low-order ODUs. The acquisition unit is used to: acquire the at least one OSU from the first shared cache and acquire the at least one low-order ODU from the second shared cache.
[0023] In one possible implementation of the third aspect, the device further includes: a scheduling unit, configured to schedule OSUs from a plurality of OSUs to be multiplexed according to a first preset bandwidth, and to accelerate the writing of the scheduled OSUs into a first shared buffer. The first preset bandwidth is the bandwidth of a first ODTU. The plurality of OSUs to be multiplexed can be multiple OSUs obtained by cross-processing OSUs received from different sources. Optionally, the OSUs are scheduled in a time-division scheduling manner.
[0024] In one possible implementation of the third aspect, the apparatus further includes: an allocation unit for allocating a first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU.
[0025] In one possible implementation of the third aspect, the mapping unit is used to: determine a first overhead based on the at least one OSU, and map the at least one OSU into a first payload to obtain a first ODTU, the first ODTU including the first overhead and the first payload, the first overhead being used to record the identifier, number, and mapping position of the at least one OSU, etc. Optionally, the at least one OSU is mapped according to the Bit Synchronization Mapping Protocol (BMP).
[0026] In one possible implementation of the third aspect, the first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. The multiplexing unit is used to multiplex the first ODTU and the second ODTU into the higher-order ODU according to the first time slot and the second time slot.
[0027] Fourthly, a data demultiplexing apparatus is provided, characterized in that it comprises: an acquisition unit for acquiring a high-order optical channel data unit (ODU); a demultiplexing unit for demultiplexing the high-order ODU into a first optical channel data branch unit (ODTU) and a second ODTU; and a demapping unit for demapping the first ODTU into at least one OSU and demapping the second ODTU into at least one low-order ODU, wherein the at least one OSU may include OSUs from the same source or different sources, and the at least one low-order ODU may include low-order ODUs from the same source.
[0028] In one possible implementation of the fourth aspect, the demapping unit is further configured to: map the at least one OSU cached in a first shared cache, and the at least one low-order ODU cached in a second shared cache, wherein the first shared cache corresponds to the first ODTU and the second shared cache corresponds to the second ODTU.
[0029] In one possible implementation of the fourth aspect, the apparatus further includes: a scheduling unit, configured to schedule OSUs from a first shared buffer according to a first preset bandwidth, wherein the first preset bandwidth is the bandwidth of a first ODTU. Optionally, the OSUs are scheduled using a time-division scheduling method.
[0030] In one possible implementation of the fourth aspect, the apparatus further includes: an allocation unit for allocating a first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU.
[0031] In one possible implementation of the fourth aspect, the first ODTU includes a first overhead and a first payload. The demapping unit is used to: demap the first payload according to the first overhead to obtain the at least one OSU. The first overhead can be used to record the identifier, number, and mapping position of the at least one OSU.
[0032] In one possible implementation of the fourth aspect, the first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. The demultiplexing unit is used to: demultiplex the higher-order ODU into the first ODTU and the second ODTU according to the first time slot and the second time slot.
[0033] Fifthly, a data multiplexing apparatus is provided, the apparatus including a processor and a memory coupled to the processor, the memory storing computer instructions that, when executed by the processor, cause the apparatus to perform the data multiplexing method provided by the first aspect or any possible implementation thereof.
[0034] In a sixth aspect, a data multiplexing apparatus is provided, the apparatus including a processor and a memory coupled to the processor, the memory storing computer instructions that, when executed by the processor, cause the apparatus to perform a data demultiplexing method as provided in the second aspect or any possible implementation thereof.
[0035] In another aspect of this application, a communication system is provided, which includes a first OTN device and a second OTN device; wherein the first OTN device may include the data multiplexing device provided in the third aspect, any possible implementation of the third aspect, or the data demultiplexing device provided in the fifth aspect, and / or the second OTN device may include the data demultiplexing device provided in the fourth aspect, any possible implementation of the fourth aspect, or the data demultiplexing device provided in the sixth aspect.
[0036] In another aspect of this application, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, which, when executed on a device, cause the device to perform a data multiplexing method as provided in the first aspect or any possible implementation thereof.
[0037] In another aspect of this application, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, which, when executed on a device, cause the device to perform a data demultiplexing method as provided in the second aspect or any possible implementation thereof.
[0038] In another aspect of this application, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the data multiplexing method provided by the first aspect or any possible implementation thereof.
[0039] In another aspect of this application, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the data demultiplexing method provided by the second aspect or any possible implementation thereof.
[0040] It should be understood that the beneficial effects of any of the data multiplexing devices, data demultiplexing devices, communication systems, computer-readable storage media, and computer program products provided above can be referred to in relation to the beneficial effects of the method embodiments provided in the corresponding aspects above, and will not be repeated here. Attached Figure Description
[0041] Figure 1 This application provides a schematic diagram of the structure of a communication system according to an embodiment of the present application.
[0042] Figure 2A schematic diagram of a frame structure for different data units provided in an embodiment of this application;
[0043] Figure 3 A schematic diagram of an OSU mapping in an OPU frame provided in an embodiment of this application;
[0044] Figure 4 A schematic diagram illustrating multi-level multiplexing and multi-level demultiplexing provided for embodiments of this application;
[0045] Figure 5 A flowchart illustrating a data multiplexing method provided in an embodiment of this application;
[0046] Figure 6 A flowchart illustrating a data multiplexing method provided in an embodiment of this application;
[0047] Figure 7 This is a schematic diagram of the structure of an OTN device provided in an embodiment of this application;
[0048] Figure 8 A schematic diagram illustrating a data multiplexing or data demultiplexing embodiment provided in this application;
[0049] Figure 9 This is a schematic diagram of the structure of a data multiplexing device provided in an embodiment of this application;
[0050] Figure 10 This is a schematic diagram of another data multiplexing device provided in an embodiment of this application;
[0051] Figure 11 This is a schematic diagram of the structure of a data demultiplexing device provided in an embodiment of this application;
[0052] Figure 12 This is a schematic diagram of another data demultiplexing device provided in an embodiment of this application. Detailed Implementation
[0053] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple. Furthermore, in the embodiments of this application, the words "first," "second," etc., do not limit the quantity or order.
[0054] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0055] The technical solution of this application is mainly applied to communication systems that use optical transport networks (OTN) for data transmission. OTN is a transparent transmission technology developed based on wavelength division multiplexing (WDM) technology to address the large-capacity, coarse-grained scheduling needs of the backbone network layer. It has the advantage of enabling flexible scheduling and management of large-capacity services, thus becoming the mainstream technology for backbone networks.
[0056] Figure 1 This is a schematic diagram of a communication system provided in an embodiment of this application. The communication system may include multiple user devices, a first OTN device, and a second OTN device. The multiple user devices can communicate directly or indirectly with the first OTN device and the second OTN device via a network. The first OTN device and the second OTN device can be directly connected via optical fiber, or indirectly connected to other OTN devices via optical fiber. The multiple user devices can also be referred to as client-side devices, and can be used to send OTN service data to the first OTN device and / or the second network device, or to receive OTN service data sent by the first OTN device and / or the second network device.
[0057] In one possible embodiment, the plurality of user equipments may include at least one first user equipment and at least one second user equipment. The at least one first user equipment may send OTN service data to a first OTN device. The first OTN device may perform data multiplexing processing on these OTN service data and send the multiplexed data to the second OTN device. The second OTN device may perform demultiplexing processing on the multiplexed data and send the multiple OTN service data obtained after demultiplexing to the at least one second user equipment.
[0058] The aforementioned OTN equipment refers to network equipment used in OTN. OTN service data and multiplexed data can be data units defined in the OTN standard. With the successive release of different versions of the OTN standard, the types of data units supported by OTN at different rates and granularities are constantly being enriched. For example, the types of data units can include optical service units (OSUs), optical channel payload units (OPUs), optical channel data units (ODUs), and optical channel transport units (OTUs). Furthermore, the same type of data unit can also include data units with different rates. For instance, ODUs can include ODUs of different orders, which can be represented as ODUk or ODUCn, etc. The values of k or Cn, and the corresponding rates of the ODUs, can be specified by the OTN standard.
[0059] The frame structures of OPU, ODU, OTU, and OSU involved in OTN are described below. The frame structures of different data units can be represented as follows: Figure 2 As shown.
[0060] like Figure 2 As shown in (a), the OPU frame includes an OPU overhead area and an OPU payload area. The OPU frame is a block-shaped byte structure with 4 rows (represented as 1 to 4) and 3810 columns (represented as 15 to 3824). Among them, columns 15 to 16 are the OPU overhead area, and columns 17 to 3824 are the OPU payload area, which includes a total of 4 × 3808 bytes (B).
[0061] like Figure 2As shown in (b), the ODU frame includes a reserved area, an ODU overhead area, and an OPU frame. The ODU frame is a block-like byte structure with 4 rows (represented as 1 to 4) and 3824 columns (represented as 1 to 3824). Among them, columns 1 to 14 of the first row are the reserved area, which can be used as the frame header area (FA) and the ODU overhead area. Columns 1 to 14 of the second to fourth rows are the ODU overhead area, and columns 15 to 3824 are the OPU frame.
[0062] like Figure 2 As shown in (c), the OTU frame includes the ODU frame and the OTU forward error code (FEC) overhead area. The OTU frame is a block-like byte structure with 4 rows (represented as 1 to 4) and 4080 columns (represented as 1 to 4080). Among them, columns 1 to 3824 are the ODU frame, and columns 3825 to 4080 are the OTU FEC overhead area.
[0063] like Figure 2 As shown in (d), the OSU frame includes an overhead area and a payload area. The OSU frame is a block-byte structure with 1 row and 192 columns (represented as 1 to 192), and can also be referred to as an OSU frame with a length of 192 bytes. Columns 1 to 7 are the overhead area of the OSU frame, which may include a general overhead area, a mapping overhead area, and a cyclic redundancy check (CRC) area. Columns 8 to 192 are the payload area.
[0064] Among them, OSU is a new extension of the OTN protocol family, featuring small granularity, flexible bandwidth, low latency, and high reliability. Currently, when OSU is transmitted over OTN, the processing of OSU typically involves multiplexing the OSU into a low-order ODU, then multiplexing this low-order ODU with other low-order ODUs in a step-by-step manner to obtain a high-order ODU, and finally transmitting the high-order ODU over the optical transport network. Conversely, the process of demultiplexing the high-order ODU into an OSU also involves demultiplexing the high-order ODU step-by-step to obtain a low-order ODU, and then demultiplexing the low-order ODU to obtain the OSU.
[0065] The following example illustrates how to multiplex an OSU into a low-order ODU. Specifically, multiplexing an OSU into a low-order ODU can involve mapping the OSU to the OPU payload area of an OPU frame, and then adding an overhead area to the OPU frame to construct the low-order ODU. For example, considering the OPU frame structure, such as... Figure 3As shown, taking the mapping of 238 OSUs across the OPU payload area of three OPU frames as an example, these 238 OSUs can be represented as PB#1 to PB#238 (each PB includes 192 bytes). The three OPU frames can be represented as OPU#1 to OPU#3. Therefore, PB#1 to PB#238 can be mapped sequentially according to the row order within the OPU payload area of these three OPU frames. After mapping, the 192 bytes of the same OSU are consecutive. If the 192 bytes of a certain OSU cannot be entirely mapped to the same row, the OSU can be mapped separately to two adjacent rows. For example, the first 160 bytes of PB#20 can be mapped to the end of the net load area corresponding to the first row of OPU#1, and the last 32 bytes of PB#20 can be mapped to the beginning of the net load area corresponding to the second row of OPU#1; the first 64 bytes of PB#80 can be mapped to the end of the net load area corresponding to the fourth row of OPU#1, and the last 128 bytes of PB#80 can be mapped to the beginning of the net load area corresponding to the first row of OPU#2; the first 128 bytes of PB#158 can be mapped to the end of the net load area corresponding to the fourth row of OPU#2, and the last 64 bytes of PB#158 can be mapped to the beginning of the net load area corresponding to the first row of OPU#3. Figure 3 In this context, PBP and PS represent overhead regions, and RES represents reserved regions.
[0066] Currently, the process of multiplexing an OSU into an ODU can include single-level multiplexing or multi-level multiplexing. The following explanation uses single-level and two-level multiplexing as examples. Single-level multiplexing is mainly used for customer-side equipment access; two-level multiplexing is mainly used for the core layer and aggregation layer of the metropolitan area network, and can be used to achieve integrated carrying of ODU services.
[0067] For example, Table 1 below illustrates the process of constructing OTUs with different rates after OSUs undergo single-stage and double-stage multiplexing. ODU0, ODU1, ODU2(e), ODUflex, ODU50u, ODU25u, and ODU4 represent ODUs with different rates as defined by the OTN standard; OTU0, OTU1, OTU2(e), OTU50u, OTU25u, and OTU4 represent OTUs with different rates as defined by the OTN standard. Specifically, ODU2(e) represents ODU2 or ODU2e, and OTU2(e) represents OTU2 or OTU2e. Furthermore, ODUs with different rates can be combined to form OTUs of the corresponding rates by adding overhead; for example, ODU0 can be combined to form OTU0, and ODU1 can be combined to form OTU1, etc.
[0068] Table 1
[0069]
[0070]
[0071] For example, Figure 4 A schematic diagram of multi-stage multiplexing and multi-stage demultiplexing is shown. Figure 4 The diagram illustrates how a low-order ODU is multiplexed to obtain a high-order ODU, a high-order ODU is multiplexed to obtain a very high-order ODU, a very high-order ODU is demultiplexed to obtain another high-order ODU, and a high-order ODU is demultiplexed to obtain a low-order ODU. Here, low-order ODU, high-order ODU, and very high-order ODU are relative terms; the transmission rate of a very high-order ODU is greater than that of a high-order ODU, and the transmission rate of a high-order ODU is greater than that of a low-order ODU.
[0072] Specifically, in Figure 4 In the multiplexing process shown in (a), the OSU is mapped to obtain a low-order ODU. This low-order ODU is then mapped and multiplexed with other low-order ODUs to obtain a high-order ODU. For example, the other low-order ODU and the current low-order ODU are mapped to different optical channel data tributary units (ODTUs). The ODTU mapped by the other low-order ODU can correspond to M time slots (TS), and the ODTU mapped by the current low-order ODU can correspond to N TSs. The ODTU mapped by the other low-order ODU and the ODTU mapped by the current low-order ODU are multiplexed to obtain a high-order ODU. Figure 4 In the demultiplexing process shown in (a), the higher-order ODU is demultiplexed to obtain two ODTUs. One of these ODTUs is demultiplexed to obtain other lower-order ODUs, and the other ODTU is demultiplexed to obtain a lower-order ODU. This lower-order ODU is then demultiplexed to obtain an OSU. Similarly, in Figure 4 In the multiplexing process shown in (b), the OSU is mapped to obtain a low-order ODU. This low-order ODU is then mapped and multiplexed with other low-order ODUs to obtain a high-order ODU. This high-order ODU is then mapped and multiplexed with other high-order ODUs to obtain a very high-order ODU. Figure 4 In the demultiplexing process shown in (b), the ultra-high-order ODU is demultiplexed to obtain a high-order ODU and other high-order ODUs. The high-order ODU is demultiplexed to obtain a low-order ODU and other low-order ODUs. The low-order ODU is demultiplexed to obtain an OSU.
[0073] As mentioned above, the process from OSU to higher-order ODU requires step-by-step multiplexing, and the process from higher-order ODU to OSU requires step-by-step demultiplexing, resulting in significant processing latency for the OSU and consequently, significant end-to-end transmission latency. Therefore, this application provides a data multiplexing method and a data demultiplexing method to reduce OSU processing latency, thereby reducing end-to-end transmission latency. The data multiplexing in this application can include mapping and multiplexing (MUX) processes. Mapping refers to mapping data units (e.g., at least one OSU or at least one lower-order ODU hereinafter) onto the payload area of the ODTU, and multiplexing refers to multiplexing different ODTUs together to form a higher-order ODU. The data demultiplexing in this application may include the processes of demultiplexing (DEMUX) and demapping. Demultiplexing refers to the process of splitting a higher-order ODU into different ODTUs, and demapping refers to the process of obtaining data units (e.g., at least one OSU or at least one lower-order ODU as described below) from an ODTU.
[0074] Figure 5 This is a flowchart illustrating a data multiplexing method provided in an embodiment of this application. The method is applied in an OTN device and can be executed by the processor in the OTN device. The method includes the following steps.
[0075] S201: Obtain at least one OSU and at least one low-order ODU.
[0076] Each OSU included in the at least one OSU can also be referred to as an OSU cell, and the frame structure of each OSU in the at least one OSU can be as described above. Figure 2 As shown in (d) above. When the at least one OSU includes multiple OSUs, the multiple OSUs can be multiple OSUs from the same source or from different sources. The same source can refer to the same user equipment or the same OTN service, and the different sources can refer to different user equipment or different OTN services. For example, the multiple OSUs can include multiple OSUs from the same user equipment; or, the multiple OSUs can include one or more OSUs from multiple different user equipments.
[0077] In addition, the at least one low-order ODU may include one or more low-order ODUs from the same source, and the low-order ODU may include one or more ODU frame structures, each of which may specifically be as follows: Figure 2As shown in (b), when the low-order ODU includes multiple ODU frame structures, the structure of the low-order ODU is called a multiframe structure. The at least one low-order ODU can be one or more low-order ODUs from the user equipment, or it can be one or more low-order ODUs obtained by the OTN device through data multiplexing. For example, the at least one low-order ODU can be a low-order ODU obtained by the OTN device after performing one or more levels of data multiplexing on multiple OSUs.
[0078] It should be noted that the term "low-order ODU" here is relative to "high-order ODU." A low-order ODU contains fewer ODU frame structures than a high-order ODU (the structure of a high-order ODU is also called a multiframe structure), thus the transmission rate of a low-order ODU is lower than that of a high-order ODU. For example, the low-order ODU can be ODU0, ODU1, or ODU2, while the high-order ODU can be ODU2e, ODU4, ODU25u, ODU50u, or ODUUCn.
[0079] In one possible embodiment, the OTN device may include a first shared buffer corresponding to a first optical channel data tributary unit (ODTU) (i.e., the first shared buffer stores the OSUs to be mapped in the first ODTU), and a second shared buffer corresponding to a second ODTU (i.e., the second shared buffer stores the low-order ODUs to be mapped in the second ODTU). The first shared buffer may cache multiple OSUs, and the second shared buffer may cache multiple low-order ODUs. The OTN device can retrieve the at least one OSU from the first shared buffer and the at least one low-order ODU from the second shared buffer. Here, an ODTU is a branch of an ODU, and an ODU may include two or more ODTUs. The first ODTU may be a branch of a high-order ODU to be mapped by the at least one OSU, and the second ODTU may be another branch of a high-order ODU to be mapped by the one or more low-order ODUs.
[0080] This higher-order ODU includes multiple ODU frame structures, each of which can be specifically described as follows: Figure 2 As shown in (b), the first ODTU and the second ODTU may each include one or more of the multiple ODU frame structures. For example, the higher-order ODU may include (M+N) ODU frame structures, the first ODTU may include M ODU frame structures, and the second ODTU may include N ODU frame structures, where M and N are both integers greater than or equal to 1.
[0081] Furthermore, the multiple OSUs cached in the first shared cache can be scheduled and written by the OTN device in the following manner. Specifically, the OTN device may include multiple OSUs to be multiplexed. These multiple OSUs to be multiplexed can be multiple OSUs obtained by the OTN device after cross-processing OSUs received from different sources. These multiple OSUs to be multiplexed can be stored in the memory of the OTN device. The OTN device can schedule OSUs from these multiple OSUs to be multiplexed according to a first preset bandwidth and accelerate the writing of the scheduled OSUs into the first shared cache. The first preset bandwidth is the bandwidth of the first ODTU.
[0082] This accelerated write, also known as speedup write, is a data writing method where the data write rate is higher than the normal write rate. For example, if the normal write rate is v, the accelerated write rate could be 1.5v, 2v, or 3v, etc., and this embodiment does not impose specific limitations on this. Of course, the OTN device can also write the scheduled OSUs normally into the first shared cache, i.e., write at the normal write rate, and this embodiment does not impose specific limitations on this either.
[0083] In addition, the first preset bandwidth can be the bandwidth allocated by the OTN device to the first ODTU based on the bandwidth of the higher-order ODU to be mapped. The first preset bandwidth can be less than the bandwidth of the higher-order ODU. For example, the first preset bandwidth can be equal to one-half or two-thirds of the bandwidth of the higher-order ODTU.
[0084] Optionally, when scheduling OSUs from the plurality of OSUs to be reconnected according to the first preset bandwidth, the OTN device can schedule OSUs in a time-division scheduling manner. That is, the OTN device schedules OSUs from the plurality of OSUs to be reconnected according to the first preset bandwidth in a time-division scheduling manner. When the OTN device schedules in a time-division scheduling manner, the number of OSUs scheduled each time can be equal or the number can differ only slightly to ensure the smoothness of OSU scheduling.
[0085] In addition, when the number of accumulated OSUs in the first shared cache is large or the remaining cache space of the first shared cache is small, for example, when the occupancy rate of the first shared cache is greater than the first threshold, the OTN device can also reduce the data write rate corresponding to the first shared cache, or suspend writing OSUs to the first shared cache to prevent write overflow of the first shared cache.
[0086] Furthermore, the multiple low-order ODUs cached in the second shared cache can be scheduled and written by the OTN device in the following manner. Specifically, the OTN device may include multiple low-order ODUs to be multiplexed, which can be stored in the memory of the OTN device. The OTN device can schedule low-order ODUs from the multiple low-order ODUs to be multiplexed according to a second preset bandwidth, and write the scheduled low-order ODUs into the second shared cache. The second preset bandwidth is the bandwidth of the second ODU.
[0087] The second preset bandwidth can be the bandwidth allocated by the OTN device to the second ODTU based on the bandwidth of the higher-order ODU to be mapped. The second preset bandwidth can be less than the bandwidth of the higher-order ODU. For example, the second preset bandwidth can be equal to half or one-third of the bandwidth of the higher-order ODU. The sum of the second preset bandwidth and the first preset bandwidth can be equal to or less than the bandwidth of the higher-order ODU.
[0088] Optionally, when scheduling low-order ODUs from the plurality of low-order ODUs to be multiplexed according to the second preset bandwidth, the OTN device can schedule the low-order ODUs in a time-division scheduling manner. That is, the OTN device schedules low-order ODUs from the plurality of low-order ODUs to be multiplexed according to the second preset bandwidth in a time-division scheduling manner. When the OTN device schedules in a time-division scheduling manner, the number of low-order ODUs scheduled each time can be equal or the number can differ only slightly to ensure the smoothness of low-order ODU scheduling.
[0089] S202: Map at least one OSU to a first ODTU, and map at least one low-order ODU to a second ODTU.
[0090] The first ODTU can be a branch of a higher-order ODU to be mapped by the at least one OSU. This higher-order ODU includes multiple ODU frame structures, and the first ODTU can include a subset of these ODU frame structures. The first ODTU can include a first overhead region and a first payload region. The first payload region is used to map the at least one OSU, and the first overhead region is used to record overhead information related to the at least one OSU. For example, the overhead information in the first overhead region can record the identifier, quantity, and mapping location of the at least one OSU.
[0091] Furthermore, the second ODTU can be another branch of the higher-order ODU to be mapped by the at least one lower-order ODU. The higher-order ODU includes multiple ODU frame structures, and the second ODTU can include a portion of these ODU frame structures. The second ODTU can include a second overhead region and a second payload region. The second payload region is used to map the at least one lower-order ODU, and the second overhead region is used to record relevant overhead information of the at least one lower-order ODU. For example, the overhead information in the second overhead region can record the mapping location and bandwidth of the at least one lower-order ODU.
[0092] Specifically, the process by which the OTN device maps at least one OSU to a first ODTU and low-order ODUs to a second ODTU may include: determining a first overhead based on the at least one OSU (e.g., the first overhead may be used to indicate the identifier, number, and mapping position of the at least one OSU), and mapping the at least one OSU in a first payload to obtain a first ODTU, the first ODTU including the first overhead and the first payload, the first overhead being used to obtain the at least one OSU from the first payload during subsequent data demapping; determining a second overhead based on the at least one low-order ODU (e.g., the second overhead may be used to indicate the mapping position of the at least one low-order ODU and the bandwidth of each low-order ODU), and mapping the at least one low-order ODU in a second payload to obtain a second ODTU, the second ODTU including the second overhead and the second payload, the second overhead being used to obtain the at least one low-order ODU from the second payload during subsequent data demapping.
[0093] Optionally, the OTN device can map at least one OSU into the first payload according to a bit-synchronous mapping procedure (BMP). Specifically, the OTN device can follow the above... Figure 3 A similar mapping method maps each OSU in the at least one OSU into the first payload in a certain order. Furthermore, when the at least one OSU cannot fill the first payload area of the first OTDU, the OTN device can fill the first payload area by filling idle data units (or idle cells) during the mapping of the at least one OSU according to the BMP method.
[0094] Optionally, the OTN device may map at least one low-order ODU into the second payload according to an asynchronous mapping procedure (AMP) or a general mapping procedure (GMP).
[0095] S203: Multiplex the first ODTU and the second ODTU into a higher-order ODU.
[0096] The higher-order ODU comprises multiple ODU frame structures, each corresponding to a timeslot. Thus, the higher-order ODU includes multiple timeslots, and the first ODTU and the second ODTU can correspond to different timeslots within these multiple timeslots. The timeslots corresponding to each ODTU in the first and second ODTUs can be allocated by the OTN device for the first and second ODTUs. The number of timeslots corresponding to different ODTUs can be the same or different. The number of timeslots corresponding to the first ODTU is related to the first preset bandwidth corresponding to the first ODTU, and the number of timeslots corresponding to the second ODTU is related to the second preset bandwidth corresponding to the second ODTU.
[0097] Optionally, the higher-order ODU includes a first time slot and a second time slot. The first time slot may include N time slots, and the second time slot may include M time slots, where M and N are both integers greater than or equal to 1. Specifically, the first ODTU may correspond to the first time slot, and the second ODTU may correspond to the second time slot. The OTN device can multiplex the first ODTU and the second ODTU into the higher-order ODU according to the first time slot and the second time slot. For the specific multiplexing process, please refer to the description in the relevant multiplexing protocol or technology. The embodiments of this application will not be described here.
[0098] Furthermore, after obtaining the high-order ODU, the OTN device can add an OTU FEC overhead area to the high-order ODU to obtain an OTU, and send the OTU to other OTN devices through optical fiber to realize the transmission of at least one OSU and the low-order ODU.
[0099] In the embodiments of this application, when the OTN device acquires at least one OSU and a low-order ODU, it can map the at least one OSU to a first ODTU, map the low-order ODU to a second ODTU, and multiplex the first ODTU and the second ODTU into a high-order ODU. That is, the OTN device can map and multiplex at least one OSU with different particle sizes and different rates and at least one OSU low-order ODU into a high-order ODU through a single-level multiplexing, thereby reducing the processing latency of the OSU and the end-to-end transmission latency of the OSU compared with the prior art.
[0100] Figure 6 This is a flowchart illustrating a data demultiplexing method provided in an embodiment of this application. The method is applied in an OTN device and can be executed by the processor in the OTN device. The method includes the following steps.
[0101] S301: Obtain higher-order ODUs.
[0102] The higher-order ODU may include multiple ODU frame structures, and each ODU frame structure may specifically be as follows: Figure 2 As shown in (b), the structure of this higher-order ODU is called a multiframe structure. This higher-order ODU is relative to the lower-order ODU. The lower-order ODU may include one or more ODU frame structures. When the lower-order ODU includes multiple ODU frame structures, its structure is called a multiframe structure. The number of ODU frame structures included in the lower-order ODU is less than the number of ODU frame structures included in the higher-order ODU, thus the transmission rate of the higher-order ODU is greater than that of the lower-order ODU. For example, the higher-order ODU could be ODU2e, ODU4, ODU25u, ODU50u, or ODUUCn, and the lower-order ODU could be ODU0, ODU1, or ODU2.
[0103] Specifically, this OTN device can be connected to other OTN devices via optical fiber. This OTN device can receive OTUs sent by other OTN devices via optical fiber. These OTUs can be OTUs obtained through multiplexing by other OTN devices, or OTUs received by other OTN devices. When the OTN device receives the OTU, it can remove the OTUFEC overhead region from the OTU to obtain the higher-order ODU.
[0104] S302: Demultiplex the higher-order ODU into a first ODTU and a second ODTU.
[0105] In this context, an ODTU is a branch of an ODU, and an ODU can include two or more ODTUs. The first ODTU can be one branch of the higher-order ODU, and the second ODTU can be another branch of the higher-order ODU. That is, the higher-order ODU includes multiple ODU frame structures, and the first and second ODTUs can each include one or more of these ODU frame structures. For example, if the higher-order ODU includes (M+N) ODU frame structures, the first ODTU can include M ODU frame structures, and the second ODTU can include N ODU frame structures, where M and N are both integers greater than or equal to 1.
[0106] Furthermore, each ODU frame in the multiple ODU frame structure of this high-order ODU corresponds to one time slot, thus the high-order ODU includes multiple time slots. The first ODTU and the second ODTU can correspond to different time slots among these multiple time slots. The time slots corresponding to each ODTU in the first and second ODTUs can be allocated by the OTN device for the first and second ODTUs, and the number of time slots corresponding to different ODTUs can be the same or different. The number of time slots corresponding to the first ODTU is related to the bandwidth of the first ODTU, and the number of time slots corresponding to the second ODTU is related to the bandwidth of the second ODTU.
[0107] Optionally, the higher-order ODU includes a first time slot and a second time slot. The first time slot may include N time slots, and the second time slot may include M time slots, where M and N are both integers greater than or equal to 1. Specifically, the first ODTU may correspond to the first time slot, and the second ODTU may correspond to the second time slot. The OTN device can demultiplex the higher-order ODU into the first ODTU and the second ODTU according to the first and second time slots. For the specific demultiplexing process, please refer to the description in the relevant demultiplexing protocols or technologies. This embodiment of the application will not describe it here.
[0108] S303: Demap the first ODTU to at least one OSU, and demap the second ODTU to at least one low-order ODU.
[0109] The first ODTU may include a first overhead and a first payload, with the at least one OSU mapped in the first payload. The first overhead is used to record overhead information related to the at least one OSU. For example, the overhead information of the first overhead is used to record the identifier, quantity, and mapping location of the at least one OSU.
[0110] Additionally, the second ODTU may include a second overhead and a second payload, the second payload of which maps the at least one low-order ODU. The second overhead is used to record the overhead information related to the at least one low-order ODU. For example, the overhead information of the second overhead is used to record the mapping location and bandwidth of the at least one low-order ODU.
[0111] Specifically, the OTN device can demap the first payload based on the first overhead in the first ODTU. For example, it can demap the first payload based on the identifier, quantity, and mapping location information of the at least one OSU recorded in the first overhead to obtain the at least one OSU. The at least one OSU may include one or more OSUs, which may be OSUs from the same source or different sources. Similarly, the OTN device can demap the second payload based on the second overhead in the second ODTU. For example, it can demap the second payload based on the mapping location and bandwidth information of the at least one low-order ODU recorded in the second overhead to obtain the at least one low-order ODU. The at least one low-order ODU may include one or more low-order ODUs, which may be low-order ODUs from the same source. Here, "same source" can refer to the same user equipment or the same OTN service, while "different sources" can refer to different user equipment or different OTN services.
[0112] Furthermore, after obtaining the at least one OSU and the at least one low-order ODU through demultiplexing, the OTN device can also cache the at least one OSU in a first shared cache and cache the at least one low-order ODU in a second shared cache. The first shared cache corresponds to the first ODTU (i.e., the first shared cache is used to store the OSU obtained by demapping in the first ODTU), and the second shared cache corresponds to the second ODTU (i.e., the second shared cache is used to store the low-order ODU obtained by demapping in the second ODTU).
[0113] In addition, the OTN device can schedule OSUs in the first shared cache and low-order ODUs in the second shared cache, and store the scheduled OSUs and low-order ODUs in memory for further processing, such as performing de-crossing processing on the OSUs or low-order ODUs, and sending the de-crossed OSUs or low-order ODUs to the user equipment.
[0114] In one possible example, the OTN device schedules OSUs from a first shared buffer based on a first preset bandwidth, which is the bandwidth of the first ODTU. The first preset bandwidth can be the bandwidth allocated by the OTN device to the first ODTU based on the bandwidth of the higher-order ODU. The first preset bandwidth can be less than the bandwidth of the higher-order ODU; for example, the first preset bandwidth can be equal to one-half or two-thirds of the bandwidth of the higher-order ODTU.
[0115] Optionally, when scheduling OSUs from the first shared buffer according to the first preset bandwidth, the OTN device can schedule OSUs in a time-division scheduling manner. That is, the OTN device schedules OSUs from the first shared buffer according to the first preset bandwidth in a time-division scheduling manner. When the OTN device schedules in a time-division scheduling manner, the number of OSUs scheduled each time can be equal or the number can differ slightly to ensure the smoothness of OSU scheduling.
[0116] In one possible example, the OTN device schedules a low-order ODU from a second shared buffer based on a second preset bandwidth, which is the bandwidth of the second ODTU. The second preset bandwidth can be the bandwidth allocated by the OTN device to the second ODTU based on the bandwidth of the high-order ODU. The second preset bandwidth can be less than the bandwidth of the high-order ODU; for example, the second preset bandwidth can be equal to half or one-third of the bandwidth of the high-order ODTU.
[0117] Optionally, when scheduling low-order ODUs from the second shared buffer according to the second preset bandwidth, the OTN device can schedule the low-order ODUs in a time-division scheduling manner. That is, the OTN device schedules low-order ODUs from the second shared buffer according to the second preset bandwidth in a time-division scheduling manner. When the OTN device schedules in a time-division scheduling manner, the number of low-order ODUs scheduled each time can be equal or the number can differ only slightly to ensure the smoothness of low-order ODU scheduling.
[0118] Furthermore, the OSUs scheduled from the first shared buffer can include multiple OSUs from the same source or different sources. The same source can refer to the same user equipment or the same OTN service, while different sources can refer to different user equipment or different OTN services. When the OSUs scheduled from the first shared buffer include multiple OSUs from different sources, the OTN device can also perform de-crossing processing on the scheduled OSUs to obtain multiple OSUs from the same source. Then, the OTN device can send the multiple OSUs from the same source to the corresponding user equipment to realize OSU transmission between the OTN device and the user equipment.
[0119] Similarly, low-order ODUs scheduled from the second shared buffer can be low-order ODUs from the same source. When a low-order ODU is scheduled from the second shared buffer, the OTN device can send multiple low-order ODUs from the same source to the corresponding user equipment to realize the transmission of low-order ODUs between the OTN device and the user equipment.
[0120] Alternatively, the low-order ODU scheduled from the second shared buffer can also be a low-order ODU obtained by the OTN device through data multiplexing. For example, the low-order ODU can be a low-order ODU obtained by the OTN device after performing one or more levels of data multiplexing on multiple OSUs. In this case, the OTN device can further perform demultiplexing processing on the low-order ODU to obtain the corresponding multiple OSUs.
[0121] In this embodiment of the application, when the OTN device obtains a high-order ODU, it can demultiplex the high-order ODU into a first ODTU and a second ODTU, and demap the first ODTU into at least one OSU, and demap the second ODTU into at least one low-order ODU. That is, the OTN device can demultiplex the high-order ODU into at least one OSU and at least one low-order ODU with different granularity and different rates through a single-stage demultiplexing process. Compared with the prior art, this can reduce the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0122] For ease of understanding, the following Figure 7 Taking the structure of the OTN device shown as an example, the data multiplexing and demultiplexing process provided in this application embodiment will be illustrated. The OTN device may include an OSU processing module, a time slot multiplexing unit, a time slot demultiplexing unit, and an OTU framing and deframing module. It should be noted that... Figure 7 The processing module corresponding to the low-order ODU is not shown in the figure. The specific structure and function description of the processing module corresponding to the low-order ODU are similar to those of the OSU processing module. For details, please refer to the relevant description of the OSU processing module.
[0123] like Figure 7As shown, when the OTN device is used to multiplex at least one low-order ODU and at least one OSU into a high-order ODU, the OSU processing module may include an OSU cross-connect unit, an OSU scheduling unit, an OSU shared buffer, an OSU mapping unit, an ODU framing control unit, and a multiplexing time slot calculation unit. Specifically, during data multiplexing, the processing of OSUs may include: the OSU cross-connect unit performing cross-connect processing on the received OSUs to obtain multiple OSUs to be multiplexed; the OSU scheduling unit scheduling OSUs from the multiple OSUs to be multiplexed; the OSU shared buffer buffering the OSUs scheduled by the scheduling unit; the OSU mapping unit obtaining at least one OSU from the shared buffer and mapping the at least one OSU to a first ODTU; the ODU framing control unit allocating a first preset bandwidth to the first ODTU; and the multiplexing time slot calculation unit determining the time slot corresponding to the first ODTU. The time slot multiplexing unit is used to multiplex the first ODTU and the second ODTU into a higher-order ODTU according to the time slot corresponding to the first ODTU and the time slot corresponding to the second ODTU (i.e., the ODTU mapped by the lower-order ODU); the OTU framing and deframing module is used to add OTU FEC overhead regions to the higher-order ODU to form an OTU.
[0124] like Figure 7 As shown, when the OTN device is used to demultiplex a high-order ODU into at least one low-order ODU and at least one OSU, the OSU processing module may include an OSU cross-connect unit, an OSU scheduling unit, an OSU shared buffer, an OSU demapping unit, a multiplexing time slot calculation unit, and an ODU deframe control unit. Specifically, during the data demultiplexing process, the OTU framing and deframe module is used to remove the OTU FEC overhead region in the OTU to obtain the high-order ODU; the time slot demultiplexing unit is used to demultiplex the high-order ODU into a first ODTU corresponding to at least one OSU and a second OTDU corresponding to at least one low-order ODU; the OSU demapping unit is used to demap the first ODTU into at least one OSU; the OSU shared buffer is used to buffer the at least one OSU obtained from the demapping; the OSU scheduling unit is used to schedule OSUs from the OSU shared buffer; the OSU cross-connect unit is used to perform decross-connect processing on the scheduled OSUs; the multiplexing time slot calculation unit is used to determine the time slot corresponding to the first ODTU; and the ODU deframe control unit is used to determine the location of the first ODTU and allocate a first preset bandwidth to the first ODTU.
[0125] For example, Figure 8The diagram illustrates the process of multiplexing an OSU and a low-order ODU into a high-order ODU, and the process of demultiplexing the high-order ODU back into an OSU and a low-order ODU. Specifically, the process of multiplexing an OSU and a low-order ODU into a high-order ODU may include: mapping the OSU to ODTU1 and mapping the low-order ODU to ODTU2, where ODTU1 can correspond to N TSs and ODTU2 can correspond to M TSs; and multiplexing ODTU1 and ODTU2 into a high-order ODU. After the high-order ODU is transmitted through optical fiber, the process of demultiplexing the high-order ODU back into an OSU and a low-order ODU may include: demultiplexing the high-order ODU into ODTU1 and ODTU2, where ODTU1 can correspond to N TSs and ODTU2 can correspond to M TSs; demapping ODTU1 back into an OSU, and demapping ODTU2 back into a low-order ODU.
[0126] In the data multiplexing and demultiplexing method provided in this application embodiment, the OTN device can map and multiplex at least one OSU and at least one low-order ODU with different particle sizes and different rates into a high-order ODU through primary multiplexing, or demultiplex the high-order ODU into at least one OSU and at least one low-order ODU with different particle sizes and different rates through primary demultiplexing. Compared with the prior art, this can reduce the processing latency of OSUs and the end-to-end transmission latency of OSUs.
[0127] The above primarily describes the solutions provided in the embodiments of this application from the perspective of OTN devices. It is understood that the aforementioned OTN devices, etc., include corresponding hardware structures and / or software modules for executing each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0128] This application embodiment can divide the OTN device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0129] When using integrated units, Figure 9 This illustration shows a possible structural diagram of a data multiplexing device according to an embodiment of this application. The device can be used as an OTN device or a chip system built into an OTN device. The device includes: an acquisition unit 401, a mapping unit 402, and a multiplexing unit 403. The acquisition unit 401 is used to support the device in performing the above-described... Figure 5 S201 in the described method embodiment; the mapping unit 402 is used to support the device in performing the above-described... Figure 5 S202 in the described method embodiment; the multiplexing unit 403 is used to support the device in performing the above-described procedure. Figure 5 S203 in the described method embodiment. Further, the apparatus also includes: a scheduling unit 404 and / or an allocation unit 405; wherein the scheduling unit 404 is used to support the apparatus in performing the above-described... Figure 5 The allocation unit 405 is used to support the device in performing the steps of scheduling OSUs or scheduling low-order ODUs in the described method embodiments. Figure 5 The steps for allocating bandwidth to a first ODTU or a second ODTU in the described method embodiments.
[0130] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0131] Based on hardware implementation, the mapping unit 402, multiplexing unit 403, scheduling unit 404 and allocation unit 405 in the embodiments of this application can be the processor of the device, and the acquisition unit 401 can be the receiver of the device. The receiver can usually be integrated with the transmitter as a transceiver. The specific transceiver can also be called a communication interface or interface circuit.
[0132] like Figure 10 The diagram shown is a possible structural schematic of the data multiplexing device involved in the above embodiments provided in this application. The device can be used as an OTN device or a chip system built into an OTN device. The device includes a processor 411, and may also include a memory 412, a communication interface 413 and a bus 414. The processor 411, the memory 412 and the communication interface 413 are connected through the bus 414.
[0133] The processor 411 is used to control and manage the operation of the device. In one possible embodiment, the processor 411 can be used to support the device in performing the above-described actions. Figure 5 One or more steps S201 to S203 in the described method embodiments. Communication interface 413 is used to support the device in communication, such as supporting the device to communicate with other OTN devices or user equipment.
[0134] In the embodiments of this application, the processor 411 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. Figure 10 The bus 414 in the diagram can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 414 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the above... Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0135] In the multiplexing device provided in this application embodiment, the device can map and multiplex at least one OSU with different particles and different rates and at least one low-order ODU into a high-order ODU through single-stage multiplexing. Compared with the prior art, this can reduce the processing latency of OSU and the end-to-end transmission latency of OSU.
[0136] When using integrated units, Figure 11 This diagram illustrates a possible structure of the data demultiplexing device involved in an embodiment of this application. The device can be used as an OTN device or a chip system built into an OTN device. The device includes: an acquisition unit 501, a demultiplexing unit 502, and a demapping unit 503. The acquisition unit 501 is used to support the device in performing the above-described... Figure 6 In the described method embodiment, S301; the demultiplexing unit 502 is used to support the device in performing the above-described procedure. Figure 6 S302 in the described method embodiment; the demapping unit 503 is used to support the device in performing the above-described... Figure 6 S303 in the described method embodiment. Further, the apparatus also includes: a scheduling unit 504 and / or an allocation unit 505; wherein the scheduling unit 504 is used to support the apparatus in performing the above-described... Figure 6 The allocation unit 505 is used to support the device in performing the steps of scheduling OSUs or scheduling low-order ODUs in the described method embodiments. Figure 6 The steps for allocating bandwidth to a first ODTU or a second ODTU in the described method embodiments.
[0137] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0138] Based on hardware implementation, the demultiplexing unit 502, demapping unit 503, scheduling unit 504 and allocation unit 505 in the embodiments of this application can be the processor of the device, and the acquisition unit 501 can be the receiver of the device. The receiver can usually be integrated with the transmitter as a transceiver. The specific transceiver can also be called a communication interface or interface circuit.
[0139] like Figure 12 The diagram shown is a possible structural schematic of the data demultiplexing device involved in the above embodiments provided in this application. The device can be used as an OTN device or a chip system built into an OTN device. The device includes a processor 511, and may also include a memory 512, a communication interface 513 and a bus 514. The processor 511, the memory 512 and the communication interface 513 are connected through the bus 514.
[0140] The processor 511 is used to control and manage the operation of the device. In one possible embodiment, the processor 511 can be used to support the device in performing the above-described actions. Figure 6 One or more steps S301 to S303 in the described method embodiments. Communication interface 513 is used to support the device in communication, such as supporting the device to communicate with other OTN devices or user equipment.
[0141] In this embodiment, the processor 511 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. Figure 12 The bus 514 in the diagram can be a Peripheral Component Interconnect Standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 514 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the above... Figure 12 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0142] The demultiplexing device provided in this application embodiment can demultiplex a high-order ODU into at least one OSU with different particles and different rates and at least one low-order ODU through a single-stage demultiplexing process. Compared with the prior art, this can reduce the processing latency of the OSU and the end-to-end transmission latency of the OSU.
[0143] This application also provides a communication system, which may include a first OTN device and a second OTN device; wherein the first OTN device may be used to implement any of the data multiplexing methods provided in the above embodiments, and / or the second OTN device may be used to implement any of the data demultiplexing methods provided in the above embodiments.
[0144] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here. The various devices provided in this application embodiments (such as data multiplexing devices and data demultiplexing devices) are used to perform the functions of the corresponding devices in the above embodiments, and therefore can achieve the same effect as the above methods.
[0145] The functions, actions, operations, or steps in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented using software programs, they can be implemented, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs), etc.
[0146] Based on this, embodiments of this application also provide a computer-readable storage medium, which includes computer instructions that, when executed, perform the above-described... Figure 5 One or more steps in the described method embodiments.
[0147] In another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including computer instructions, which, when executed, perform the above-described... Figure 6 One or more steps in the described method embodiments.
[0148] In another aspect of this application, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the aforementioned... Figure 5 One or more steps in the described method embodiments.
[0149] In another aspect of this application, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the aforementioned... Figure 6 One or more steps in the described method embodiments.
[0150] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data multiplexing method, characterized in that, Applied in OTN (Optical Transport Network) equipment, including: Acquire at least one Optical Service Unit (OSU) and at least one Low-Order Optical Channel Data Unit (ODU); The at least one OSU is mapped as a first optical channel data branch unit (ODTU), and the at least one low-order ODU is mapped as a second ODTU; the at least one OSU is mapped according to the bit synchronization mapping protocol (BMP). The first ODTU and the second ODTU are multiplexed into a higher-order ODU.
2. The method according to claim 1, characterized in that, The acquisition of at least one OSU and at least one low-order ODU includes: The at least one OSU is obtained from a first shared cache, and the at least one low-order ODU is obtained from a second shared cache, wherein the first shared cache corresponds to the first ODTU and the second shared cache corresponds to the second ODTU.
3. The method according to claim 2, characterized in that, The method further includes: Based on a first preset bandwidth, an OSU is scheduled from multiple OSUs to be reconnected, and the scheduled OSU is accelerated and written into the first shared cache. The first preset bandwidth is the bandwidth of the first ODTU.
4. The method according to claim 3, characterized in that, The OSU is scheduled using a time-division scheduling method.
5. The method according to claim 3 or 4, characterized in that, The method further includes: The first preset bandwidth is allocated to the first ODTU based on the bandwidth of the higher-order ODU, and the first preset bandwidth is less than the bandwidth of the higher-order ODU.
6. The method according to any one of claims 1-4, characterized in that, The step of mapping the at least one OSU to a first ODTU includes: A first overhead is determined based on the at least one OSU, and the at least one OSU is mapped into a first payload to obtain a first ODTU, the first ODTU including the first overhead and the first payload.
7. The method according to any one of claims 1-4, characterized in that, The first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. The step of multiplexing the first ODTU and the second ODTU into a higher-order ODU includes: The first ODTU and the second ODTU are multiplexed into the higher-order ODU according to the first time slot and the second time slot.
8. A data demultiplexing method, characterized in that, Applied in OTN (Optical Transport Network) equipment, including: Acquire high-order optical channel data units (ODUs); The higher-order ODU is demultiplexed into a first optical channel data branch unit (ODTU) and a second ODTU. The first ODTU is demapped to at least one OSU, and the second ODTU is demapped to at least one low-order ODU; the at least one OSU is mapped according to the Bit Synchronization Mapping Protocol (BMP).
9. The method according to claim 8, characterized in that, The method further includes: The at least one OSU is cached in a first shared cache, and the at least one low-order ODU is cached in a second shared cache, wherein the first shared cache corresponds to the first ODTU and the second shared cache corresponds to the second ODTU.
10. The method according to claim 9, characterized in that, The method further includes: The OSU is scheduled from the first shared cache according to the first preset bandwidth, where the first preset bandwidth is the bandwidth of the first ODTU.
11. The method according to claim 10, characterized in that, The OSU is scheduled using a time-division scheduling method.
12. The method according to claim 10 or 11, characterized in that, The method further includes: The first preset bandwidth is allocated to the first ODTU based on the bandwidth of the higher-order ODU, and the first preset bandwidth is less than the bandwidth of the higher-order ODU.
13. The method according to any one of claims 8-11, characterized in that, The first ODTU includes a first overhead and a first payload, and the step of demapping the first ODTU to at least one OSU includes: The first payload is demapped based on the first overhead to obtain the at least one OSU.
14. The method according to any one of claims 8-11, characterized in that, The first ODTU corresponds to the first time slot, and the second ODTU corresponds to the second time slot. The step of demultiplexing the higher-order ODU into the first ODTU and the second ODTU includes: The higher-order ODU is demultiplexed into a first ODTU and a second ODTU according to the first time slot and the second time slot.
15. A data multiplexing device, characterized in that, include: The acquisition unit is used to acquire at least one optical service unit (OSU) and at least one low-order optical channel data unit (ODU); A mapping unit is used to map the at least one OSU as a first optical channel data branch unit (ODTU) and to map the at least one low-order ODU as a second ODTU; the at least one OSU is mapped according to the bit synchronization mapping protocol (BMP). The multiplexing unit is used to multiplex the first ODTU and the second ODTU into a higher-order ODU.
16. The apparatus according to claim 15, characterized in that, The acquisition unit is used for: The at least one OSU is obtained from a first shared cache, and the at least one low-order ODU is obtained from a second shared cache, wherein the first shared cache corresponds to the first ODTU and the second shared cache corresponds to the second ODTU.
17. The apparatus according to claim 16, characterized in that, The device further includes: The scheduling unit is used to schedule an OSU from multiple OSUs to be reconnected according to a first preset bandwidth, and accelerate the writing of the scheduled OSU into the first shared cache, wherein the first preset bandwidth is the bandwidth of the first ODTU.
18. The apparatus according to claim 17, characterized in that, The OSU is scheduled using a time-division scheduling method.
19. The apparatus according to claim 17 or 18, characterized in that, The device further includes: The allocation unit is configured to allocate the first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU.
20. The apparatus according to any one of claims 15-18, characterized in that, The mapping unit is used for: A first overhead is determined based on the at least one OSU, and the at least one OSU is mapped into a first payload to obtain a first ODTU, the first ODTU including the first overhead and the first payload.
21. The apparatus according to any one of claims 15-18, characterized in that, The first ODTU corresponds to the first time slot, the second ODTU corresponds to the second time slot, and the multiplexing unit is used for: The first ODTU and the second ODTU are multiplexed into the higher-order ODU according to the first time slot and the second time slot.
22. A data demultiplexing device, characterized in that, include: The acquisition unit is used to acquire high-order optical channel data units (ODUs). The demultiplexing unit is used to demultiplex the higher-order ODU into a first optical channel data branch unit (ODTU) and a second ODTU. A demapping unit is configured to demap the first ODTU to at least one OSU and to demap the second ODTU to at least one low-order ODU, wherein the at least one OSU is mapped according to the Bit Synchronization Mapping Protocol (BMP).
23. The apparatus according to claim 22, characterized in that, The demapping unit is also used for: The mapping caches the at least one OSU in a first shared cache and the at least one low-order ODU in a second shared cache, wherein the first shared cache corresponds to the first ODTU and the second shared cache corresponds to the second ODTU.
24. The apparatus according to claim 23, characterized in that, The device further includes: The scheduling unit is used to schedule OSUs from the first shared cache according to a first preset bandwidth, wherein the first preset bandwidth is the bandwidth of the first ODTU.
25. The apparatus according to claim 24, characterized in that, The OSU is scheduled using a time-division scheduling method.
26. The apparatus according to claim 24 or 25, characterized in that, The device further includes: The allocation unit is configured to allocate the first preset bandwidth to the first ODTU based on the bandwidth of the higher-order ODU, wherein the first preset bandwidth is less than the bandwidth of the higher-order ODU.
27. The apparatus according to any one of claims 22-25, characterized in that, The first ODTU includes a first overhead and a first payload, and the demapping unit is used for: The first payload is demapped based on the first overhead to obtain the at least one OSU.
28. The apparatus according to any one of claims 22-25, characterized in that, The first ODTU corresponds to the first time slot, the second ODTU corresponds to the second time slot, and the demultiplexing unit is used for: The higher-order ODU is demultiplexed into a first ODTU and a second ODTU according to the first time slot and the second time slot.
29. A data multiplexing device, characterized in that, The device includes a processor and a memory coupled to the processor. The memory stores computer instructions that, when executed by the processor, cause the device to perform the data multiplexing method as described in any one of claims 1-7 or the data demultiplexing method as described in any one of claims 8-14.
30. A computer-readable storage medium, characterized in that, The instructions stored in the computer-readable storage medium, when executed on the device, cause the device to perform the data multiplexing method as described in any one of claims 1-7, or the data demultiplexing method as described in any one of claims 8-14.