Signal processing method and apparatus, electronic device, and storage medium
By adopting two loading methods in optical data unit signal processing, the problem of long-term change in customer signal rate is solved, lossless rate sudden change and uniform signal distribution are achieved, bandwidth waste and hardware implementation complexity are reduced.
Patent Information
- Application Number
- PCT/CN2024/113417
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-20
- Filing Date
- 2024-08-20
- Publication Date
- 2025-03-27
AI Technical Summary
When the prior art realizes lossless bandwidth adjustment of optical data unit signals, the rate change of the customer signal needs to be completed within a long time, and may lead to uneven distribution of the signal in the service signal payload, increasing bandwidth waste, or complex cache management, making it difficult to implement hardware.
Two different loading methods are adopted: when the customer signal rate is not adjusted, the customer signal is loaded into the signal frame payload of the service signal; when the customer signal is adjusted, the customer signal is loaded into the signal frame payload of the service signal, and the rate is adjusted after the preset time, and finally restored to the first loading method.
The lossless rate sudden change of customer signals is achieved, ensuring that the signal is evenly distributed in the service signal payload, avoiding bandwidth waste, simplifying cache management, and reducing the complexity of hardware implementation.
Smart Images

Figure CN2024113417_27032025_PF_FP_ABST
Abstract
Description
Signal processing method, device, electronic device and storage medium
[0001] Related applications
[0002] This application claims priority to Chinese patent application No. 202311222689.8 filed on September 20, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of data communication technology, and in particular to a signal processing method, device, electronic device and storage medium. Background Art
[0004] Lossless bandwidth adjustment of Optical Data Unit (ODU) signals is a core technology of Optical Transport Network (OTN). ODU signals are fixed-rate signals, that is, their signal rate is a fixed value, that is, their rate remains a fixed value over a period of time. However, some application scenarios require that the rate of the ODU signal can be changed, that is, in the process of loading the ODU signal into a higher-rate ODU signal, such as the flexible optical data unit-n (ODUflex (GFP)-n based on Generic Framing Procedure) The abbreviation of Procedure, n=1~80, n represents its rate of approximately 1.25*nG bit / s. For example, when n=1, its rate is 1.25G bit / s, and when n-2, its rate is 2.5G bit / s. During the process of loading a flexible optical data unit-3 (ODUflex(GFP)-3) signal based on the general framing procedure into an optical data unit 4 (ODU4) signal, the value of n may change. For example, initially, a flexible optical data unit-3 (ODUflex(GFP)-3) signal based on the general framing procedure is loaded into an optical data unit 4 (ODU4) signal. Now, the flexible optical data unit-3 (ODUflex(GFP)-3) signal based on the general framing procedure needs to be changed to a flexible optical data unit-32 (ODUflex(GFP)-32) signal based on the general framing procedure. In addition, the signal rate change is required to be lossless. The above is the lossless bandwidth adjustment of the flexible optical data unit signal based on the general framing procedure.
[0005] For flexible optical data unit signals based on the universal framing protocol, the existing lossless bandwidth adjustment implementation requires that the rate change from a1 to a2 be completed within a relatively long period of time, that is, the rate change value must be 512,000 kbps. 2, which means a rate change of 512,000,000 bits per second. For example, if the rate needs to increase by 1 Gbit / s, the rate change takes approximately 2 seconds to complete. When loading a client signal into a service signal, if the client signal rate change is required to be supported and the client signal is lossless during the rate change, that is, the client signal does not lose or gain bits or incur bit errors during the rate change, it is generally required that the client signal rate cannot change abruptly, that is, the client signal rate cannot change significantly in a short period of time. This limitation is primarily determined by the loading method of the client signal into the service signal. If the client signal is loaded into the service signal via a general mapping procedure, since the general mapping procedure must maintain a constant loading rate within a frame, it is possible that the loading rate of the general mapping procedure cannot change immediately after the client signal rate changes. During the loading process, a buffer is required to achieve rate adaptation between the client signal rate and the loading rate of the general mapping procedure. This can cause the buffer to increase or decrease by a large number of bits in a short period of time, resulting in buffer empty or full. These buffer empty or full conditions can cause errors in the general mapping procedure, resulting in client signal loss. Fine grain flexible Optical Data Unit (fgODUflex) signals also support lossless bandwidth adjustment, but fine grain flexible optical data unit signals can support signal rate mutations. In order to support lossless rate mutations of client signals after the client signals are loaded into service signals, there are two methods in the prior art: Method 1 is to use the Idle Mapping Procedure. For example, the loading method of the Optical Service Unit (OSS) signal into the Optical Data Unit signal uses the Idle Mapping Procedure, and supports signal rate mutations while supporting lossless bandwidth adjustment of the Optical Service Unit signal; Method 2 is to use a simplified general mapping procedure. For example, the loading method of the fine grain flexible optical data unit signal into the Optical Data Unit signal uses the simplified general mapping procedure.
[0006] However, in Method 1, while the idle mapping protocol allows for buffer emptying during implementation, simplifying cache management, making it easier to support lossless rate changes for client signals, and simplifying hardware implementation, it also has significant drawbacks. Specifically, client signals are unevenly distributed within the service signal payload, and idle block identifiers waste bandwidth. For example, if the idle block size is set to 16 bytes, at least one bit is required to indicate whether each 16-byte block is an idle block or a data block. This results in one bit being used for every 16 bytes as an idle block identifier, increasing bandwidth waste by 0.78%. Given that the overhead in a FFU signal frame accounts for 0.84%, adding another 0.78% of bandwidth waste to the signal frame payload requires either increasing the signal frame rate or reducing the effective bandwidth of the signal frame payload. Furthermore, the idle mapping protocol cannot guarantee that client signals are evenly distributed within the service signal. Evenly distributed signals mean more stable latency, which is desirable in many applications. In the above-mentioned method 2, the simplified general mapping procedure is an improvement to the general mapping procedure. Its advantage is that the client signal is evenly distributed in the payload of the service signal, and the location of the data block and the padding block is indicated by the overhead, which saves more bandwidth. At the same time, the simplified general mapping procedure reduces cache capacity consumption by supporting two rates within the duration of a signal frame, thereby solving the problem that the general mapping procedure cannot support sudden changes in the client signal rate. However, since the cache is still not allowed to be empty, its cache management is complex and the hardware implementation is difficult. In summary, although methods 1 and 2 can both achieve lossless rate changes of client signals, they have shortcomings. Therefore, a new method is urgently needed to support lossless rate changes of client signals during the process of loading client signals into the service signal, and to maintain a stable delay of the client signal for most of the time range without excessive bandwidth waste. The method is simple to implement in hardware and reduces the difficulty of cache management when the client signal rate changes.
[0007] Summary of the Invention
[0008] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide a signal processing method, device, electronic device and storage medium.
[0009] In a first aspect, an embodiment of the present application provides a signal processing method, the method comprising the following steps: when it is determined that the signal rate of the client signal is not adjusted, using a first loading method to load the client signal into the payload of the signal frame of a service signal; when it is determined that the signal rate of the client signal is adjusted, using a second loading method to load the client signal into the payload of the signal frame of the service signal; after the duration of loading the client signal using the second loading method is greater than or equal to a preset duration, adjusting the signal rate of the client signal; after the signal rate of the client signal is adjusted, using the first loading method to load the client signal into the payload of the signal frame of the service signal; in the process of loading the client signal into the payload of the signal frame of the service signal, determining a loading method identifier, wherein the loading method identifier is used to identify whether the current method of loading the client signal into the payload of the signal frame of the service signal is the first loading method or the second loading method; and saving the loading method identifier in the overhead of the signal frame of the service signal.
[0010] In a second aspect, an embodiment of the present application provides a signal processing device, which includes a first processing unit, a second processing unit and an overhead processing unit; wherein, when it is determined that the signal rate of the client signal is not adjusted, the client signal is loaded into the payload of the signal frame of the service signal through the first processing unit. The first processing unit is configured to: load the client signal into the payload of the signal frame of the service signal using a first loading method; and load the client signal into the payload of the signal frame of the service signal through the second processing unit when it is determined that the signal rate of the client signal is adjusted; the second processing unit is configured to: load the client signal into the payload of the signal frame of the service signal using a second loading method; adjust the signal rate of the client signal after the duration of loading the client signal using the second loading method is greater than or equal to a preset duration; and load the client signal into the payload of the signal frame of the service signal using the first loading method after the signal rate of the client signal is adjusted; the overhead processing unit is configured to: determine a loading method identifier during the process of loading the client signal into the payload of the signal frame of the service signal, wherein the loading method identifier is used to identify whether the current method of loading the client signal into the payload of the signal frame of the service signal is the first loading method or the second loading method; and store the loading method identifier in the overhead of the signal frame of the service signal.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method of any embodiment of the signal processing method of the first aspect of the present application.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the signal processing method of the first aspect described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0015] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0016] FIG1 is a flow chart of a signal processing method provided in an embodiment of the present application;
[0017] FIG2 is a schematic diagram of an optical data unit signal frame structure involved in a signal processing method provided in an embodiment of the present application;
[0018] FIG3 is a schematic diagram showing that the payload of a signal frame of an optical data unit 2 signal provided by an embodiment of the present application is divided into 952 time slots;
[0019] FIG4 is a schematic diagram of dividing idle mapping protocol bit blocks in a signal frame payload of a fine-grained optical data tributary unit signal provided by an embodiment of the present application;
[0020] FIG5 is a schematic structural diagram of a signal processing device provided in an embodiment of the present application;
[0021] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It is apparent that the described embodiments are only a portion of the embodiments of the present application, rather than all of the embodiments. It should be noted that, unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions, and numerical values described in these embodiments do not limit the scope of the present application.
[0023] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and neither represent any specific technical meaning nor indicate the logical order between them.
[0024] It should also be understood that in this embodiment, “a plurality of” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0025] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0026] In addition, the term "and / or" in this application is simply a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the related objects are in an "or" relationship.
[0027] It should also be understood that the description of each embodiment in this application focuses on the differences between the embodiments, and the same or similar aspects can be referenced with each other. For the sake of brevity, they will not be described one by one.
[0028] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0029] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered part of the specification.
[0030] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0031] In the absence of conflicts, the embodiments and features in the embodiments of this application may be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] In the process of loading a client signal into a service signal, and when lossless rate mutation of the client signal needs to be supported, the existing technology either causes uneven distribution of the client signal in the service signal payload and increases bandwidth waste of the service signal, or requires simplifying the general mapping procedure to support two rates simultaneously in one signal frame and complex cache management, resulting in complex hardware implementation. The present application provides a signal processing method that can support lossless rate mutation of the client signal in the process of loading a client signal into a service signal. In most cases, the client signal is evenly distributed in the service signal payload, does not increase bandwidth waste of the service signal, and simplifies cache management during the rate adjustment process, making hardware implementation simpler.
[0033] Figure 1 is a flow chart of a signal processing method provided by an embodiment of the present application. This method can be implemented on electronic devices.
[0034] As shown in FIG1 , the method specifically includes the following steps.
[0035] Step 101: When it is determined that the signal rate of the client signal is not to be adjusted, the client signal is loaded into the payload of the signal frame of the service signal using a first loading mode.
[0036] In this embodiment, the service signal is based on a signal frame, and the service signal is composed of signal frames, and the signal frames of the service signal include overhead and payload. As an example, please refer to Figure 2, which is a schematic diagram of the optical data unit signal frame structure involved in a signal processing method provided in an embodiment of the present application.
[0037] In practice, a signal can consist of multiple binary bits in sequence. In other words, a signal is a binary bit stream, and the bit values in the binary bit stream follow certain patterns, which are called signal frames. Signals in the Optical Transport Network (OTN) are all based on signal frames. When a client signal is loaded into a service signal, the rates of the client and service signals remain constant in most cases. Changing the client signal rate is permitted in special circumstances, but the client signal remains loaded into the service signal during this change. Changing the client signal rate requires that the client signal is lossless, meaning that all bits that make up the client signal cannot be added or subtracted, and no bit errors can occur.
[0038] The first loading method should ensure that the client signal is evenly distributed in the payload of the service signal and save the bandwidth of the service signal as much as possible. The first loading method does not need to consider supporting lossless rate adjustment of the client signal.
[0039] Step 102: When it is determined that the signal rate of the client signal is adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the second loading method; after the duration of loading the client signal using the second loading method is greater than or equal to the preset duration, the signal rate of the client signal is adjusted; after the signal rate of the client signal is adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the first loading method.
[0040] In this embodiment, if the rate of the client signal is to be adjusted, the loading mode is first switched from the first loading mode to the second loading mode, and then a short wait is made (i.e., the above-mentioned preset duration) before the rate is adjusted. During the above-mentioned waiting time, the rate of the client signal remains unchanged. After the above-mentioned waiting time ends, the rate of the client signal is adjusted. The rate adjustment can be completed in a very short time, i.e., lossless rate mutation of the client signal is supported. The rate adjustment needs to continue for a period of time. After the rate adjustment is completed, you can wait for a short period of time until the adjusted rate is completely stable before switching to the first loading mode.
[0041] The second loading method does not ensure that the client signal is evenly distributed in the payload of the service signal, and may also waste some bandwidth, making the loading rate of the client signal lower than the rate of the client signal. The second loading method gives priority to using the simplest hardware to achieve lossless rate mutation of the client signal. Since the management of the cache used to achieve rate adaptation will become very complicated during the lossless rate mutation of the client signal, the cache management of the second loading method should be as simple as possible.
[0042] Step 103: During the process of loading the client signal into the payload of the signal frame of the service signal, a loading mode identifier is determined, wherein the loading mode identifier is used to identify whether the current loading mode of the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode.
[0043] In this embodiment, it is understandable that after the client signal is loaded into the payload of the signal frame of the service signal, it is also necessary to extract the client signal from the payload of the signal frame of the service signal. Since two different loading methods may be used during loading, it is also necessary to know the loading method during extraction, and then select the appropriate extraction method based on the loading method.
[0044] Step 104: Save the loading mode identifier in the overhead of the signal frame of the service signal.
[0045] In this embodiment, it can be understood that the loading mode identifier is stored in the specific overhead of the signal frame of the service signal. The specific overhead of the current signal frame of the service signal can be used to indicate the loading mode of the current signal frame, and the specific overhead of the current signal frame of the service signal can also be used to indicate the loading mode of the next signal frame. When the customer signal is subsequently retrieved from the payload of the signal frame of the service signal, the loading mode identifier is first obtained from the specific overhead of the signal frame of the service signal to identify the loading mode, and then the customer signal is retrieved from the payload of the signal frame of the service signal according to the corresponding retrieval mode.
[0046] In some implementations of this embodiment, during the process of loading the client signal into the payload of the signal frame of the service signal using the second loading method, when the signal rate of the client signal is higher than the maximum rate that can be provided by the second loading method, a cache is used to temporarily save the bits of the client signal that cannot be loaded in time.
[0047] It is understandable that since the client signal supports lossless rate mutation, that is, the time for the client signal to change rate is relatively short, the time for using the second loading method is also relatively short. Moreover, the degree to which the signal rate of the client signal exceeds the maximum rate that can be provided by the second loading method is limited, so the cache occupancy will not be too large.
[0048] In some application scenarios of the above implementation, the following method may be used to use the first loading method to load the client signal into the payload of the signal frame of the service signal:
[0049] If, during the process of loading the client signal into the payload of the signal frame of the service signal using the second loading method, bits of the client signal that could not be loaded in time are stored in the buffer, then after the rate adjustment of the client signal is completed, during the process of loading the client signal into the payload of the signal frame of the service signal using the first loading method, the loading rate of the first loading method is increased within a predetermined time range to load the bits of the client signal that could not be loaded in time and stored in the buffer into the payload of the signal frame of the service signal. After the predetermined time range expires, the loading rate of the first loading method is restored so that the loading rate of the first loading method remains consistent with the signal rate of the client signal.
[0050] It can be understood that the loading rate of the first loading mode can be appropriately increased within a predetermined time range to gradually load the bits of the client signal stored in the cache that have not been loaded in time into the payload of the signal frame of the service signal, gradually reducing the bits in the cache. After the predetermined time range ends, the number of bits in the cache will remain at a relatively ideal number, and the loading rate of the first loading mode will be restored, so that the loading rate of the first loading mode is consistent with the signal rate of the client signal.
[0051] In some implementations of this embodiment, the following method may be used to use the first loading method to load the client signal into the payload of the signal frame of the service signal:
[0052] First, the client signal is directly loaded into the payload of the signal frame of the service signal through a first loading mode, thereby generating a first loading mode overhead.
[0053] Afterwards, the overhead of the first loading mode is loaded into the overhead of the signal frame of the service signal.
[0054] It can be understood that the overhead of the first loading method is related to the specific implementation of the first loading method. Generally, some specific overhead will be generated during the signal loading process. These specific overheads related to the loading method are the first loading method overhead.
[0055] In some implementations of this embodiment, the following method may be used to load the client signal into the payload of the signal frame of the service signal using the first loading method:
[0056] First, the client signal is loaded into the payload of the signal frame of the intermediate frame by using the first loading method to generate the first loading method overhead.
[0057] Afterwards, the overhead of the first loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0058] It can be understood that the intermediate frame signal is a signal based on the signal frame. If multiple client signals need to be loaded into the payload of the signal frame of a service signal, it is generally necessary to first load a client signal into the payload of the signal frame of an intermediate frame signal, and each client signal is loaded into an intermediate frame signal. The payload of the signal frames of multiple intermediate frame signals are loaded into the payload of the signal frame of a service signal. At this time, the intermediate frame signal actually corresponds to a part of the content of multiple consecutive signal frames of the service signal.
[0059] In some implementations of this embodiment, the following method may be used to load the client signal into the payload of the signal frame of the service signal using the second loading method:
[0060] First, the client signal is directly loaded into the payload of the signal frame of the service signal through the second loading mode, thereby generating a second loading mode overhead.
[0061] Afterwards, the second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0062] It can be understood that the overhead of the second loading method is related to the specific implementation of the second loading method. Generally, some specific overhead will be generated during the signal loading process. These specific overheads related to the loading method are the second loading method overhead.
[0063] In some implementations of this embodiment, the following method may be adopted: using the second loading method, the client signal is loaded into the payload of the signal frame of the service signal.
[0064] First, the client signal is loaded into the payload of the signal frame of the intermediate frame by the second loading mode, and the overhead of the second loading mode is generated.
[0065] Afterwards, the overhead of the second loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0066] It can be understood that the intermediate frame signal is a signal based on the signal frame. If multiple client signals need to be loaded into the payload of the signal frame of a service signal, it is generally necessary to first load a client signal into the payload of the signal frame of an intermediate frame signal, and each client signal is loaded into an intermediate frame signal. The payload of the signal frames of multiple intermediate frame signals are loaded into the payload of the signal frame of a service signal. At this time, the intermediate frame signal actually corresponds to a part of the content of multiple consecutive signal frames of the service signal.
[0067] In some implementations of this embodiment, the following method may be adopted: using the first loading method or the second loading method, the client signal is loaded into the payload of the signal frame of the service signal.
[0068] First, the payload of the signal frame of the service signal is divided into n time slots.
[0069] Wherein, n is an integer greater than 0.
[0070] Then, m time slots are selected from the n time slots based on the signal rate of the client signal.
[0071] Wherein, m is an integer greater than 0 and less than or equal to n.
[0072] It will be appreciated that the payload of the service signal frame is divided into n time slots to accommodate multiple client signals simultaneously. After the payload of the service signal frame is divided into n time slots, one time slot can be used to accommodate a client signal with a rate lower than that of one time slot. The rate of one time slot is equal to the rate of the payload of the service signal frame / n, meaning that the rate of one time slot is 1 / n of the rate of the payload of the service signal frame. When accommodating multiple client signals into these time slots, an integer m is selected based on the client signal rates, and the client signals are accommodated in m time slots. When accommodating client signals, any time slot can only be occupied by one client signal; more than one client signal is not permitted to share a time slot.
[0073] In the above implementation, when the first loading method is used to load the client signal into the payload of the signal frame of the service signal, the client signal can be loaded into the m time slots of the payload of the signal frame of the service signal through the first loading method; when the second loading method is used to load the client signal into the payload of the signal frame of the service signal, the client signal can be loaded into the m time slots of the payload of the signal frame of the service signal through the second loading method.
[0074] In some application scenarios of the above implementation method, the following method can be used to load the client signal into the m time slots of the payload of the signal frame of the service signal: directly load the client signal into the m time slots of the payload of the signal frame of the service signal.
[0075] It can be understood that in the above application scenario, the client signal can be directly loaded into the m time slots of the payload of the signal frame of the service signal.
[0076] In some application scenarios of the above implementation method, the following method can also be used to load the client signal into the m time slots of the payload of the signal frame of the service signal: load the client signal into the payload of the signal frame of the intermediate frame, and load the payload of the signal frame of the intermediate frame into the m time slots of the payload of the signal frame of the service signal.
[0077] It can be understood that in the above application scenario, the client signal can be first loaded into the payload of the signal frame of the intermediate frame, and then the payload of the signal frame of the intermediate frame can be loaded into the m time slots of the payload of the signal frame of the service signal.
[0078] In some implementations of this embodiment, the first loading method is a general mapping procedure, or the first loading method is a simplified general mapping procedure.
[0079] It can be understood that the first loading method should ensure that the client signal is evenly distributed in the payload of the service signal and save the bandwidth of the service signal as much as possible. The first loading method does not need to consider supporting the rate change of the client signal.
[0080] In some implementations of this embodiment, the second loading method is an idle mapping procedure.
[0081] It is understandable that the second loading method should support lossless rate mutation of client signals and should reduce the difficulty of cache management as much as possible. At the same time, it is not necessary to ensure that client signals are evenly distributed in the payload of service signals and do not consider saving the bandwidth of service signals as much as possible.
[0082] In some application scenarios of the above implementation, the following method is adopted: using the second loading method, the client signal is loaded into the payload of the signal frame of the service signal.
[0083] The client signal is directly loaded into the payload of the signal frame of the service signal through the idle mapping procedure, and an idle mapping procedure bit block is defined. The idle mapping procedure bit block corresponds to a continuous predetermined number of bits in the payload of the signal frame of the service signal, and the payload of p consecutive signal frames of the service signal is divided into q idle mapping procedure bit blocks, wherein p and q are integers greater than 0, and the idle mapping procedure bit block includes a 1-bit idle identifier, and the 1-bit idle identifier indicates that the idle mapping procedure bit block is used to load the bits of the client signal or as a filling bit block.
[0084] It can be understood that, assuming that the length of the idle mapping procedure bit block is r bits, where r is an integer greater than 0, and assuming that the payload of the signal frame of the service signal includes s bits, where s is an integer greater than 0, if s is divisible by r, then the payload of one signal frame of the service signal is divided into q idle mapping procedure bit blocks, and at this time p is equal to 1, and q = s / r; if s is not divisible by r, then a suitable integer p is selected so that p*s is divisible by r, and then the payload of p consecutive signal frames of the service signal is divided into q idle mapping procedure bit blocks, and q = p*s / r. In summary, the payload of p consecutive signal frames of the service signal can be exactly divided into an integer number of idle mapping procedure bit blocks.
[0085] In some cases of the above application scenarios, the following steps may also be performed.
[0086] First, positioning information for indicating the idle mapping procedure bit block is generated.
[0087] Thereafter, the positioning information is stored in the overhead of the signal frame of the service signal.
[0088] It can be understood that if the p is equal to 1, the payload of the signal frame of a service signal can be exactly divided into an integer number of idle mapping procedure bit blocks, so there is no need to indicate the positioning information of the idle mapping procedure bit block in the payload of the signal frame; however, if the p is greater than 1, it is necessary to indicate the positioning information of the idle mapping procedure bit block in the payload of the signal frame. For example, the positioning information can be defined as the offset information of the first bit in the signal frame payload in a certain idle mapping procedure bit block. According to the above definition, assuming that in a certain signal frame, the first bit of the signal frame payload is located at the first bit of a certain idle mapping procedure bit block, the value 1 is used as the positioning information; assuming that in a certain signal frame, the first bit of the signal frame payload is located at the second bit of a certain idle mapping procedure bit block, the value 2 is used as the positioning information; and so on, assuming that in a certain signal frame, the first bit of the signal frame payload is located at the wth bit of a certain idle mapping procedure bit block, where w is an integer greater than 0 and less than or equal to r, the value w is used as the positioning information. The above positioning information may appear once in one signal frame, once in one row of signal frames, or once in u signal frames, where u is an integer greater than 1.
[0089] In some application scenarios of the above implementation manner, the following manner may also be adopted: using the second loading manner, the client signal is loaded into the payload of the signal frame of the service signal.
[0090] First, the client signal is loaded into the payload of the signal frame of the intermediate frame through the idle mapping procedure, and an idle mapping procedure bit block is defined. The idle mapping procedure bit block corresponds to a continuous predetermined number of bits in the payload of the signal frame of the intermediate frame signal, and the payload of p consecutive signal frames of the intermediate frame signal is divided into q idle mapping procedure bit blocks.
[0091] Wherein, p and q are integers greater than 0, and the idle mapping procedure bit block includes a 1-bit idle flag, and the 1-bit idle flag indicates that the idle mapping procedure bit block is used to carry bits of the client signal or as a filling bit block.
[0092] Afterwards, the payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0093] It can be understood that in the above application scenario, the idle mapping procedure can be used to load the client signal into the payload of the signal frame of the intermediate frame, and then load the payload of the intermediate frame signal into the payload of the signal frame of the service signal, and use the idle identifier to distinguish whether the idle mapping procedure bit block is used to load the bits of the client signal or as a filling bit block.
[0094] In some cases of the above application scenarios, the following steps may also be performed.
[0095] First, positioning information for indicating the idle mapping procedure bit block is generated.
[0096] Afterwards, the positioning information is stored in the overhead of the signal frame of the intermediate frame.
[0097] Then, the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0098] It can be understood that if the p is equal to 1, the payload of the signal frame of an intermediate frame signal can be exactly divided into an integer number of idle mapping procedure bit blocks, so there is no need to indicate the positioning information of the idle mapping procedure bit block in the payload of the signal frame of the intermediate frame signal; but if the p is greater than 1, it is necessary to indicate the positioning information of the idle mapping procedure bit block in the payload of the signal frame of the intermediate frame signal. For specific implementation, please refer to the method for generating the positioning information of the idle mapping procedure bit block when the client signal is directly loaded into the signal frame payload of the service signal.
[0099] It can be understood that in the above case, when the client signal is first loaded into the overhead of the signal frame of the intermediate frame through the idle mapping procedure, and then the overhead of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, the positioning information can be first saved in the overhead of the signal frame of the intermediate frame, and then the positioning information can be saved in the overhead of the signal frame of the service signal.
[0100] In some implementations of this embodiment, when the client signal is directly loaded into the payload of the signal frame of the service signal, the loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0101] In some implementations of this embodiment, when the client signal is loaded into the payload of the signal frame of the intermediate frame, the loading method identifier is saved in the overhead of the signal frame of the intermediate frame signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0102] The signal processing method provided in the embodiment of the present application uses a first loading method to load the client signal into the payload of the signal frame of the service signal when it is determined that the signal rate of the client signal is not adjusted; uses a second loading method to load the client signal into the payload of the signal frame of the service signal when it is determined that the signal rate of the client signal is adjusted; adjusts the signal rate of the client signal after the duration of loading the client signal using the second loading method is greater than or equal to a preset duration; and after the signal rate of the client signal is adjusted, uses the first loading method to load the client signal into the payload of the signal frame of the service signal; in the process of loading the client signal into the payload of the signal frame of the service signal, determines a loading method identifier, wherein the loading method identifier is used to identify whether the method of loading the client signal into the payload of the signal frame of the service signal is the first loading method or the second loading method; and stores the loading method identifier in the overhead of the signal frame of the service signal. This supports lossless rate mutation of client signals. In most cases, client signals are evenly distributed in the service signal payload, which does not increase bandwidth waste of the service signal. In addition, cache management is simple and hardware implementation is simpler.
[0103] The following example illustrates how to embed a fine-grained flexible optical data unit (ODU) signal into an optical data unit (ODU) signal and implement lossless rate change of the fine-grained flexible ODU signal. In this example, the client signal is a fine-grained flexible ODU signal, and the service signal is an ODU signal. The ODU signal frame consists of 15296 bytes, each byte containing 8 bits. The 15296 bytes of the signal frame are arranged in 4 rows and 3824 columns. Specifically, the ODU signal frame consists of 4 rows and 3824 columns of bytes, with the first 16 columns representing overhead and the last 3808 columns representing payload, as shown in Figure 2. The payload of an optical data unit (ODU) signal frame is divided into n time slots, where the value of n is related to the rate of the optical data unit (ODU) signal. For example, the payload of an optical data unit 2 (ODU2) signal frame is divided into 952 time slots, each of which is 16 bytes long. The payload of an ODU2 signal frame contains 15232 bytes, and 952 time slots are exactly equal to 15232 bytes. Therefore, all bytes of the payload of one signal frame are exactly divided into 952 time slots, as shown in Figure 3. Figure 3 is a schematic diagram showing that the payload of an ODU2 signal frame is divided into 952 time slots.
[0104] In order to load the fine-grained flexible optical data unit signal into the payload of the signal frame of the optical data unit 2 signal, the number of time slots is first selected according to the signal rate of the fine-grained flexible optical data unit signal. The payload rate of the signal frame of the optical data unit 2 signal is approximately 9.995G bits / second, and 952 time slots are divided. Then the rate of one time slot is approximately 10.5M bits / second. The signal rate of the fine-grained flexible optical data unit signal is approximately m*10.4M bits / second, where m is an integer greater than 0. In this way, the fine-grained flexible optical data unit signal occupies m time slots when loaded into the optical data unit signal. In order to load the fine-grained flexible optical data unit signal into the payload of the signal frame of the optical data unit signal, it is necessary to first load the fine-grained flexible optical data unit signal into a fine-grained optical data tributary unit (fgODTU) signal, wherein the fine-grained optical data tributary unit signal is also composed of a signal frame, and the signal frame includes overhead and payload. Since the fine-grained optical data tributary unit signal is located between the client signal and the service, the present application also calls the fine-grained optical data tributary unit signal an intermediate frame signal, that is, a signal based on a signal frame located between the client signal and the service signal. The signal frame payload of the fine-grained flexible optical data unit signal consists of m*4096 bytes, where m is the number of time slots occupied by the fine-grained flexible optical data unit signal when it is loaded into the optical data unit signal, and the signal frame overhead of the fine-grained optical data tributary unit signal consists of 12 bits.
[0105] When the rate of the fine-grained flexible optical data unit signal does not need to be adjusted, a simplified general mapping procedure is used to load the fine-grained flexible optical data unit signal into the payload of the signal frame of the fine-grained optical data tributary unit signal, generating a simplified general mapping procedure overhead, wherein the simplified general mapping procedure overhead identifies the number of 16-byte blocks in the signal frame payload of the fine-grained optical data tributary unit signal used to load the fine-grained flexible optical data unit signal. The specific position of each of the above 16-byte blocks can be calculated based on the number of the above 16-byte blocks and the addition and multiplication algorithm (Sigma-Delta justification distribution). The simplified general mapping procedure overhead is loaded into the overhead of the signal frame of the fine-grained optical data tributary unit signal, the payload of the signal frame of the fine-grained optical data tributary unit signal is loaded into m time slots of the payload of the signal frame of the optical data unit 2 signal, and the overhead of the signal frame of the fine-grained optical data tributary unit signal is loaded into the overhead of the signal frame of the optical data unit 2 signal.
[0106] When the rate of the fine-grained flexible optical data unit signal needs to be adjusted, for example, the rate of the fine-grained flexible optical data unit signal needs to be adjusted from m1*10.4M bits / second to m2*10.4M bits / second, where m1 and m2 are both integers greater than 0, first keep the rate of the fine-grained flexible optical data unit signal unchanged, that is, its rate remains at m1*10.4M bits / second, and use the idle mapping procedure to load the fine-grained flexible optical data unit signal into the payload of the signal frame of the fine-grained optical data tributary unit signal. The above switching of the loading mode is performed at the frame header position of the signal frame of the fine-grained optical data tributary unit signal, that is, the loading mode of the current frame is the simplified general mapping procedure, and the loading mode is switched to the idle mapping procedure starting from the frame header position of the next frame. The bit block length of an idle mapping protocol bit block is defined as 129 bits. The idle mapping protocol bit block corresponds to 129 consecutive bits in the payload of a signal frame of a fine-grained optical data tributary unit signal. The payload of the signal frame of 129 consecutive fine-grained optical data tributary unit signals is divided into 4096*8*m1 idle mapping protocol bit blocks, as shown in Figure 4. In Figure 4, the payload of a signal frame of a fine-grained optical data tributary unit signal contains 32768*m1 bits, which are organized into m1 rows and 32768 columns, with each unit being 1 bit. The entire payload of the signal frame of 129 consecutive fine-grained optical data tributary unit signals is divided into 32768*m1 129-bit blocks, where each 129-bit block corresponds to one idle mapping protocol bit block. In Figure 4, x = int(m1*32768 / 129), where int() represents a rounding operation, and y = 32768*m1. The idle mapping protocol bit block includes a 1-bit idle identifier and a 128-bit payload. The 1-bit idle identifier indicates that the payload of the idle mapping protocol bit block is used to carry a 128-bit fine-grained flexible optical data unit signal or as a padding bit block. For example, a 1-bit idle identifier of 0 indicates that the payload in the current idle mapping protocol bit block is padding information, and a 1-bit idle identifier of 1 indicates that the payload in the current idle mapping protocol bit block is used to carry a 128-bit fine-grained flexible optical data unit signal. Positioning information is generated to indicate the idle mapping protocol bit block. The positioning information indicates the bit number of a certain idle mapping protocol bit block where the first bit in the payload of a signal frame of a fine-grained optical data tributary unit signal is located. For example, if the first bit in the payload of a signal frame of a fine-grained optical data tributary unit signal is located at the first bit in a certain idle mapping procedure bit block, the positioning information is 1. If the first bit in the payload of a signal frame of a fine-grained optical data tributary unit signal is located at the j-th bit in a certain idle mapping procedure bit block, where j is an integer greater than 0 and less than 130, the positioning information is j. The positioning information used to indicate the idle mapping procedure bit block is used as the overhead of the idle mapping procedure.Load the idle mapping procedure overhead into the overhead of the signal frame of the fine-grained optical data tributary unit signal, load the payload of the signal frame of the fine-grained optical data tributary unit signal into m1 time slots of the payload of the signal frame of the optical data unit 2 signal, and load the overhead of the signal frame of the fine-grained optical data tributary unit signal into the overhead of the signal frame of the optical data unit 2 signal.
[0107] Load the fine-grained flexible optical data unit signal with a rate of m1 * 10.4 Mbps into the payload of the signal frame of the fine-grained optical data tributary unit signal using the idle mapping procedure, and load the payload of the signal frame of the fine-grained optical data tributary unit signal into m1 time slots of the payload of the signal frame of the optical data unit 2 signal. After the above process lasts for a period of time, adjust the rate of the fine-grained flexible optical data unit signal, that is, change the rate of the fine-grained flexible optical data unit signal from m1 * 10.4 Mbps to m2 * 10.4 Mbps. The rate change can be completed in a very short time, that is, rate mutation is supported. Since the frame length of the signal frame of the fine-grained optical data tributary unit signal changes during the rate change process, it can be required that if the rate needs to be increased, that is, m2 > m1, then first change the rate of the fine-grained optical data tributary unit signal. The rate change is executed at the frame boundary, that is, when the signal frame of the fine-grained optical data tributary unit signal with a frame length of m1 * 4096 bytes ends, start a new signal frame of the fine-grained optical data tributary unit signal with a frame length of m2 * 4096 bytes, and at the same time as the frame length changes, the rate of the signal frame of the fine-grained optical data tributary unit signal increases. After the rate of the signal frame of the fine-grained optical data tributary unit signal increases, then increase the rate of the fine-grained flexible optical data unit signal; similarly, if the rate needs to be decreased, that is, m2 < m1, then first change the rate of the fine-grained flexible optical data unit signal. After the rate of the fine-grained flexible optical data unit signal decreases, then decrease the rate of the fine-grained optical data tributary unit signal. The rate change is executed at the frame boundary, that is, when the signal frame of the fine-grained optical data tributary unit signal with a frame length of m1 * 4096 bytes ends, start a new signal frame of the fine-grained optical data tributary unit signal with a frame length of m2 * 4096 bytes, and at the same time as the frame length changes, the rate of the signal frame of the fine-grained optical data tributary unit signal decreases. Through the above processing, after the rates of both the fine-grained flexible optical data unit signal and the fine-grained optical data tributary unit signal change, load the fine-grained flexible optical data unit signal with a rate of m2 * 10.4 Mbps into the payload of the signal frame of the fine-grained optical data tributary unit signal using the simplified general mapping procedure. The switching of the above loading method is executed at the frame header position of the signal frame of the fine-grained optical data tributary unit signal, that is, the current loading method is the idle mapping procedure, and at the frame header position of the next frame, start switching the loading method to the simplified general mapping procedure. Thus, the entire rate adjustment process is completed.
[0108] After loading the fine-grained flexible optical data unit signal into the payload of the signal frame of the optical data unit 2 signal, it is also necessary to extract the fine-grained flexible optical data unit signal from the payload of the signal frame of the optical data unit 2 signal. Therefore, after loading the fine-grained flexible optical data unit signal into the payload of the signal frame of the optical data unit 2 signal, it is also necessary to define a loading mode identification overhead to identify the loading mode of the current fine-grained flexible optical data unit signal. The loading mode identification overhead is defined as 1 bit. The loading mode identification overhead is located in the overhead of the signal frame of the fine-grained optical data tributary unit signal. A value of 0 indicates that the loading mode in the signal frame of the fine-grained optical data tributary unit signal of the next frame is the simplified general mapping procedure, and a value of 1 indicates that the loading mode in the signal frame of the fine-grained optical data tributary unit signal of the next frame is the idle mapping procedure. Finally, the loading mode identification overhead will be loaded into the overhead of the signal frame of the optical data unit 2 signal.
[0109] When the idle mapping procedure is used to load the fine-grained flexible optical data unit signal into the payload of the signal frame of the fine-grained optical data tributary unit signal, since 1 bit out of every 129 bits in the payload of the signal frame of the fine-grained optical data tributary unit signal is used for a 1-bit idle identifier, about 0.78% of the bandwidth in the payload of the signal frame of the fine-grained optical data tributary unit signal will be wasted. If the service signal is the optical data unit 0 signal, even if all the idle mapping procedure bit blocks are used to load the fine-grained flexible optical data unit signal, the bandwidth that the idle mapping procedure can provide is lower than the rate of loading the fine-grained flexible optical data unit signal. However, due to the rate adjustment During the process, the time of using the idle mapping protocol will not be too long. Although the maximum bandwidth that the idle mapping protocol can provide during this period is lower than the rate of loading the fine-grained flexible optical data unit signal, the cache can be used to temporarily save the number of bits that cannot be loaded in time. After the rate adjustment is completed, when the simplified general mapping protocol is used to load the fine-grained flexible optical data unit signal, the loading rate of the simplified general mapping protocol can be temporarily increased for a period of time. After the number of excess bits stored in the cache is reduced to a reasonable value, the loading rate of the simplified general mapping protocol is restored, that is, the loading rate of the simplified general mapping protocol is made equal to the rate of loading the fine-grained flexible optical data unit signal.
[0110] FIG5 is a schematic structural diagram of a signal processing device provided in an embodiment of the present application.
[0111] The apparatus comprises a first processing unit 401, a second processing unit 402 and an overhead processing unit 403. Wherein: when it is determined not to adjust the signal rate of the client signal, the first processing unit 401 loads the client signal into the payload of the signal frame of the service signal.
[0112] The first processing unit 401 is configured to use a first loading method to load the client signal into the payload of the signal frame of the service signal.
[0113] In the case where it is determined to adjust the signal rate of the client signal, the second processing unit 402 loads the client signal into the payload of the signal frame of the service signal.
[0114] The second processing unit 402 is configured to: use a second loading method to load the client signal into the payload of the signal frame of the service signal; adjust the signal rate of the client signal after the duration of loading the client signal using the second loading method is greater than or equal to a preset duration; and use the first loading method to load the client signal into the payload of the signal frame of the service signal after the signal rate of the client signal is adjusted.
[0115] The overhead processing unit 403 is used to: determine a loading mode identifier during the process of loading the client signal into the payload of the signal frame of the service signal, wherein the loading mode identifier is used to identify whether the current method of loading the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode; and save the loading mode identifier in the overhead of the signal frame of the service signal.
[0116] In one possible embodiment, during the process of loading the client signal into the payload of the signal frame of the service signal using the second loading method, when the signal rate of the client signal is higher than the maximum rate that can be provided by the second loading method, a cache is used to temporarily save the bits of the client signal that cannot be loaded in time.
[0117] In a possible implementation manner, the step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal includes the following steps.
[0118] If, during the process of loading the client signal into the payload of the signal frame of the service signal using the second loading method, bits of the client signal that could not be loaded in time are stored in the buffer, then after the rate adjustment of the client signal is completed, during the process of loading the client signal into the payload of the signal frame of the service signal using the first loading method, the loading rate of the first loading method is increased within a predetermined time range to load the bits of the client signal that could not be loaded in time and stored in the buffer into the payload of the signal frame of the service signal. After the predetermined time range expires, the loading rate of the first loading method is restored so that the loading rate of the first loading method remains consistent with the signal rate of the client signal.
[0119] In a possible implementation manner, the step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal includes the following steps.
[0120] The client signal is directly loaded into the payload of the signal frame of the service signal through the first loading mode to generate the first loading mode overhead.
[0121] The first loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0122] In a possible implementation manner, the step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal includes the following steps.
[0123] The client signal is loaded into the payload of the signal frame of the intermediate frame by using the first loading mode to generate the first loading mode overhead.
[0124] The overhead of the first loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0125] In a possible implementation manner, the step of using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes the following steps.
[0126] The client signal is directly loaded into the payload of the signal frame of the service signal through the second loading mode to generate the second loading mode overhead.
[0127] The second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0128] In a possible implementation manner, the step of using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes the following steps.
[0129] The client signal is loaded into the payload of the signal frame of the intermediate frame by the second loading mode to generate the overhead of the second loading mode.
[0130] The overhead of the second loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0131] In a possible implementation manner, the client signal is loaded into the payload of the signal frame of the service signal using the first loading method or the second loading method.
[0132] The payload of the signal frame of the service signal is divided into n time slots, wherein n is an integer greater than 0.
[0133] Based on the signal rate of the client signal, m time slots are selected from the n time slots, where m is an integer greater than 0 and less than or equal to n.
[0134] The client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the first loading method, or the client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the second loading method.
[0135] In a possible implementation manner, the step of loading the client signal into the m time slots of the payload of the signal frame of the service signal includes the following steps.
[0136] The client signal is directly loaded into the m time slots of the payload of the signal frame of the service signal.
[0137] Alternatively, the client signal is loaded into the payload of the signal frame of the intermediate frame, and the payload of the signal frame of the intermediate frame is loaded into the m time slots of the payload of the signal frame of the service signal.
[0138] In a possible implementation manner, the first loading mode is a general mapping procedure, or the first loading mode is a simplified general mapping procedure.
[0139] In a possible implementation manner, the second loading mode is an idle mapping procedure.
[0140] In one possible embodiment, the client signal is loaded into the payload of the signal frame of the service signal using the second loading mode in the following manner: the client signal is directly loaded into the payload of the signal frame of the service signal by the second loading mode, a second loading mode bit block is defined, the second loading mode bit block corresponds to a continuous predetermined number of bits in the payload of the signal frame of the service signal, the payload of p consecutive signal frames of the service signal is divided into q second loading mode bit blocks, wherein p and q are integers greater than 0, and the second loading mode bit block includes a 1-bit idle flag, and the 1-bit idle flag indicates that the second loading mode bit block is used to load the bits of the client signal or as a filling bit block.
[0141] In a possible implementation, the device further includes the following components.
[0142] The first generating unit (not shown in the figure) is used to generate positioning information for indicating the idle mapping procedure bit block.
[0143] The first storage unit (not shown in the figure) is used to store the positioning information in the overhead of the signal frame of the service signal.
[0144] In a possible implementation manner, the client signal is loaded into the payload of the signal frame of the service signal using the second loading mode as follows.
[0145] The client signal is loaded into the payload of the signal frame of the intermediate frame through the idle mapping procedure, and an idle mapping procedure bit block is defined. The idle mapping procedure bit block corresponds to a predetermined number of consecutive bits in the payload of the signal frame of the intermediate frame signal. The payload of the signal frames of consecutive p intermediate frame signals is divided into q idle mapping procedure bit blocks, wherein p and q are integers greater than 0, and the idle mapping procedure bit block includes a 1-bit idle identifier, and the 1-bit idle identifier indicates that the idle mapping procedure bit block is used to load the bits of the client signal or as a padding bit block.
[0146] The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0147] In a possible implementation, the device further includes the following components.
[0148] The second generating unit (not shown in the figure) is used to generate positioning information for indicating the idle mapping procedure bit block.
[0149] The second storing unit (not shown in the figure) is configured to store the positioning information in the overhead of the signal frame of the intermediate frame.
[0150] A signal processing unit (not shown in the figure) is used to load the overhead of the signal frame of the intermediate frame into the overhead of the signal frame of the service signal.
[0151] In a possible implementation manner, when the client signal is directly loaded into the payload of the signal frame of the service signal, the loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0152] Alternatively, in the case of loading the client signal into the payload of the signal frame of the intermediate frame, the loading mode identifier is saved in the overhead of the signal frame of the intermediate frame signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0153] In a possible implementation manner, the client signal is loaded into the payload of the signal frame of the service signal using the first loading method or the second loading method.
[0154] The payload of the signal frame of the service signal is divided into n time slots, wherein n is an integer greater than 0.
[0155] Based on the signal rate of the client signal, m time slots are selected from the n time slots, where m is an integer greater than 0 and less than or equal to n.
[0156] The client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the first loading method, or the client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the second loading method.
[0157] In a possible implementation manner, the step of loading the client signal into the m time slots of the payload of the signal frame of the service signal includes the following steps.
[0158] The client signal is directly loaded into the m time slots of the payload of the signal frame of the service signal.
[0159] Alternatively, the client signal is loaded into the payload of the signal frame of the intermediate frame, and the payload of the signal frame of the intermediate frame is loaded into the m time slots of the payload of the signal frame of the service signal.
[0160] In a possible implementation manner, when the client signal is directly loaded into the payload of the signal frame of the service signal, the loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0161] Alternatively, in the case of loading the client signal into the payload of the signal frame of the intermediate frame, the loading mode identifier is saved in the overhead of the signal frame of the intermediate frame signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0162] The signal processing device provided in this embodiment can be a signal processing device as shown in Figure 5, which can execute all steps of the signal processing methods described above, and thus achieve the technical effects of the signal processing methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0163] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 500 shown in FIG6 includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG6, all various buses are labeled as the bus system 505.
[0164] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).
[0165] It is understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0166] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022 .
[0167] Among them, the operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and handle hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program that implements the method of the embodiment of the present application can be included in the application 5022.
[0168] In this embodiment, by calling the program or instructions stored in the memory 502, specifically, the program or instructions stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including the following steps.
[0169] When it is determined that the signal rate of the client signal is not to be adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the first loading mode.
[0170] In the case where it is determined to adjust the signal rate of the client signal, the client signal is loaded into the payload of the signal frame of the service signal using the second loading method; after the duration of loading the client signal using the second loading method is greater than or equal to the preset duration, the signal rate of the client signal is adjusted; after the signal rate of the client signal is adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the first loading method.
[0171] In the process of loading the client signal into the payload of the signal frame of the service signal, a loading mode identifier is determined, wherein the loading mode identifier is used to identify whether the current loading mode of the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode.
[0172] The loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0173] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 501 or by software instructions. The above processor 501 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software units can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 502 , and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0174] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, or other electronic units or combinations thereof for performing the above-mentioned functions of the present application.
[0175] For software implementation, the techniques described above can be implemented by a unit that performs the functions described above. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0176] The electronic device provided in this embodiment may be an electronic device as shown in FIG6 , which may execute all steps of the above-described signal processing methods, thereby achieving the technical effects of the above-described signal processing methods. For details, please refer to the above-described related descriptions. For the sake of brevity, they will not be elaborated here.
[0177] The present application also provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and the memory may also include a combination of the aforementioned types of memory.
[0178] When one or more programs in the storage medium can be executed by one or more processors, the signal processing method executed on the electronic device side can be implemented.
[0179] The processor is used to execute the signal processing program stored in the memory to implement the following steps of the signal processing method performed on the electronic device side.
[0180] When it is determined that the signal rate of the client signal is not to be adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the first loading mode.
[0181] In the case where it is determined to adjust the signal rate of the client signal, the client signal is loaded into the payload of the signal frame of the service signal using the second loading method; after the duration of loading the client signal using the second loading method is greater than or equal to the preset duration, the signal rate of the client signal is adjusted; after the signal rate of the client signal is adjusted, the client signal is loaded into the payload of the signal frame of the service signal using the first loading method.
[0182] In the process of loading the client signal into the payload of the signal frame of the service signal, a loading mode identifier is determined, wherein the loading mode identifier is used to identify whether the current loading mode of the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode.
[0183] The loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0184] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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.
[0185] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0186] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0187] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.
Claims
1. A signal processing method, wherein: The method comprises: In the case where it is determined that the signal rate of the client signal is not to be adjusted, using a first loading mode to load the client signal into the payload of the signal frame of the service signal; In the case of determining to adjust the signal rate of the client signal, using the second loading mode to load the client signal into the payload of the signal frame of the service signal; after the duration of loading the client signal using the second loading mode is greater than or equal to the preset duration, adjusting the signal rate of the client signal; after the signal rate of the client signal is adjusted, using the first loading mode to load the client signal into the payload of the signal frame of the service signal; In the process of loading the client signal into the payload of the signal frame of the service signal, determining a loading mode identifier, wherein the loading mode identifier is used to identify whether the current loading mode of the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode; The loading mode identifier is stored in the overhead of the signal frame of the service signal.
2. The method according to claim 1, wherein: In the process of using the second loading mode to load the client signal into the payload of the signal frame of the service signal, when the signal rate of the client signal is higher than the maximum rate provided by the second loading mode, a buffer is used to save the bits of the client signal that cannot be loaded in time.
3. The method according to claim 2, wherein: The step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal comprises: If, during the process of loading the client signal into the payload of the signal frame of the service signal using the second loading method, the bits of the client signal that have not been loaded in time are stored in the buffer, then after the rate of the client signal is adjusted, during the process of loading the client signal into the payload of the signal frame of the service signal using the first loading method, the loading rate of the first loading method is increased within a predetermined time range to load the bits of the client signal that have not been loaded in time and stored in the buffer into the payload of the signal frame of the service signal; after the predetermined time range ends, the loading rate of the first loading method is restored so that the loading rate of the first loading method is kept consistent with the signal rate of the client signal.
4. The method according to claim 1, wherein: The step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal comprises: Directly loading the client signal into the payload of the signal frame of the service signal through the first loading mode to generate the first loading mode overhead; The first loading mode overhead is loaded into the overhead of the signal frame of the service signal.
5. The method according to claim 1, wherein: The step of using the first loading mode to load the client signal into the payload of the signal frame of the service signal comprises: Loading the client signal into the payload of the signal frame of the intermediate frame by the first loading mode, generating the first loading mode overhead; The overhead of the first loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
6. The method according to claim 1, wherein: The step of using the second loading mode to load the client signal into the payload of the signal frame of the service signal comprises: Directly loading the client signal into the payload of the signal frame of the service signal through the second loading mode to generate the second loading mode overhead; The second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
7. The method according to claim 1, wherein: The step of using the second loading mode to load the client signal into the payload of the signal frame of the service signal comprises: Loading the client signal into the payload of the signal frame of the intermediate frame by the second loading mode, generating the second loading mode overhead; The overhead of the second loading method is loaded into the overhead of the signal frame of the intermediate frame, the payload of the signal frame of the intermediate frame is loaded into the payload of the signal frame of the service signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
8. The method according to claim 1, wherein: The client signal is loaded into the payload of the signal frame of the service signal by using the first loading mode or the second loading mode as follows: Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0; Based on the signal rate of the client signal, select m time slots from the n time slots, wherein m is an integer greater than 0 and less than or equal to n; The client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the first loading method, or the client signal is loaded into the m time slots of the payload of the signal frame of the service signal by the second loading method.
9. The method according to claim 8, wherein: The step of loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises: directly loading the client signal into the m time slots of the payload of the signal frame of the service signal; or, The client signal is loaded into the payload of the signal frame of the intermediate frame, and the payload of the signal frame of the intermediate frame is loaded into the m time slots of the payload of the signal frame of the service signal.
10. The method according to any one of claims 1 to 9, wherein: The first loading method is a general mapping procedure, or the first loading method is a simplified general mapping procedure.
11. The method according to any one of claims 1 to 9, wherein: The second loading mode is an idle mapping procedure.
12. The method according to claim 11, wherein: The client signal is loaded into the payload of the signal frame of the service signal by using the second loading mode in the following manner: The client signal is directly loaded into the payload of the signal frame of the service signal through the idle mapping procedure, and an idle mapping procedure bit block is defined. The idle mapping procedure bit block corresponds to a continuous predetermined number of bits in the payload of the signal frame of the service signal, and the payload of p consecutive signal frames of the service signal is divided into q idle mapping procedure bit blocks, wherein p and q are integers greater than 0, and the idle mapping procedure bit block includes a 1-bit idle flag, and the 1-bit idle flag indicates that the idle mapping procedure bit block is used to load the bits of the client signal or as a filling bit block.
13. The method according to claim 12, wherein: The method further comprises: generating positioning information for indicating the idle mapping procedure bit block; The positioning information is stored in the overhead of the signal frame of the service signal.
14. The method according to claim 11, wherein: The client signal is loaded into the payload of the signal frame of the service signal by using the second loading mode in the following manner: Loading the client signal into the payload of the signal frame of the intermediate frame through the idle mapping procedure, defining an idle mapping procedure bit block, wherein the idle mapping procedure bit block corresponds to a predetermined number of consecutive bits in the payload of the signal frame of the intermediate frame signal, and dividing the payload of the signal frames of consecutive p intermediate frame signals into q idle mapping procedure bit blocks, wherein p and q are integers greater than 0, and the idle mapping procedure bit block includes a 1-bit idle flag, wherein the 1-bit idle flag indicates that the idle mapping procedure bit block is used to load the bit of the client signal or as a padding bit block; The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
15. The method according to claim 14, wherein: The method further comprises: generating positioning information for indicating the idle mapping procedure bit block; storing the positioning information in an overhead of a signal frame of the intermediate frame; The overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
16. The method according to any one of claims 1 to 9, wherein: In the case where the client signal is directly loaded into the payload of the signal frame of the service signal, the loading mode identifier is stored in the overhead of the signal frame of the service signal; or, When the client signal is loaded into the payload of the signal frame of the intermediate frame, the loading mode identifier is stored in the overhead of the signal frame of the intermediate frame signal, and the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
17. A signal processing device, wherein: The device comprises a first processing unit, a second processing unit and an overhead processing unit; wherein: In the case where it is determined that the signal rate of the client signal is not to be adjusted, the client signal is loaded into the payload of the signal frame of the service signal by the first processing unit; The first processing unit is used to: use a first loading mode to load the client signal into the payload of the signal frame of the service signal; In case of determining to adjust the signal rate of the client signal, loading the client signal into the payload of the signal frame of the service signal through the second processing unit; The second processing unit is used to: use the second loading mode to load the client signal into the payload of the signal frame of the service signal; after the duration of loading the client signal using the second loading mode is greater than or equal to the preset duration, adjust the signal rate of the client signal; after the signal rate of the client signal is adjusted, use the first loading mode to load the client signal into the payload of the signal frame of the service signal; The overhead processing unit is used to: determine a loading mode identifier in the process of loading the client signal into the payload of the signal frame of the service signal, wherein the loading mode identifier is used to identify that the current method of loading the client signal into the payload of the signal frame of the service signal is the first loading mode or the second loading mode; and save the loading mode identifier in the overhead of the signal frame of the service signal.
18. An electronic device, comprising: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and to implement the method according to any one of claims 1 to 16 when the computer program is executed.
19. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Service transmission method and apparatus
CN107040314A
Load self-adaptive processing method, computer device and readable storage medium
CN110072163A
Methods and systems for unvarnished transmission of CBR signals in packet switching system
CN112165434A
Signal processing method, apparatus, and system
US20170230736A1