Signal processing method and device, electronic equipment and storage medium
By using different loading methods to manage the rate changes of customer signals in optical data unit signal processing, the problems of long time of rate change and bandwidth waste in the prior art are solved, and lossless rate mutations and simplified cache management are realized.
Patent Information
- Application Number
- CN202311222689.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, when realizing lossless bandwidth adjustment of optical data unit signals, rate changes of customer signals need to be completed within a long time, and the sudden change in rate will lead to complex cache management and bandwidth waste.
A signal processing method is adopted to load the customer signal into the payload of the signal frame of the service signal by using the first loading method when determining the signal rate of the customer signal without adjusting the signal rate of the customer signal; when determining the signal rate of the customer signal, the second loading method is used to load the customer signal into the payload of the signal frame of the service signal, and after the time of using the second loading method is greater than or equal to the preset time, the signal rate of the customer signal is adjusted.
It realizes lossless rate sudden change in customer signals, reduces bandwidth waste of service signals, and simplifies cache management, making hardware implementation simpler.
Smart Images

Figure CN119728000A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] Lossless bandwidth adjustment of Optical Data Unit (ODU) signals is the core technology of Optical Transport Network. 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, in some application scenarios, the rate of ODU signals is required to be changeable, that is, in the process of loading ODU signals into higher rate ODU signals, such as loading ODUflex (GFP)-n based on Generic Framing Procedure (GFP is Generic Framing Procedure). Procedure is an abbreviation, n=1~80, n represents its rate is about 1.25*nG bit / s, for example, when n=1, its rate is 1.25G bit / s, when n-2, its rate is 2.5G bit / s) signal into the optical data unit 4 (ODU4) signal, the value of n may change. For example, at the beginning, the flexible optical data unit-3 (ODUflex(GFP)-3) signal based on the general framing procedure is loaded into the optical data unit 4 (ODU4) signal, and now the flexible optical data unit-3 (ODUflex(GFP)-3) signal based on the general framing procedure needs to be changed to the flexible optical data unit-32 (ODUflex(GFP)-32) signal based on the general framing procedure, and the signal rate is required to be lossless during the change process. The above is the lossless bandwidth adjustment of the flexible optical data unit signal based on the general framing procedure.
[0003] For flexible optical data unit signals based on the universal framing protocol, the existing lossless bandwidth adjustment implementation scheme 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 kbit / s. 2, that is, the rate changes by 512,000,000 bits per second. For example, if the rate needs to be increased by 1G bit / second, it takes about 2 seconds to complete the rate change. In the process of loading a client signal into a service signal, if it is required to support the rate change of the client signal, and the client signal is lossless during the rate change of the client signal, that is, the client signal does not lose or increase bits during the rate change, and no bit errors occur, it is generally required that the rate of the client signal cannot change suddenly, that is, the rate of the client signal cannot change greatly in a short time. This restriction is mainly determined by the loading method of the client signal into the service signal. If the client signal is loaded into the service signal through the general mapping procedure, since the loading rate of the general mapping procedure must remain unchanged within a frame, it may happen that the client signal rate changes but the loading rate of the general mapping procedure cannot change immediately. In the loading process, the cache is required to achieve the rate adaptation of the client signal rate and the loading rate of the general mapping procedure, which will cause the cache to increase or decrease a lot of bits in a short time, and then cause the cache to be empty or full. The cache being empty or full will cause the general mapping procedure to fail, resulting in loss of the client signal. Fine grain flexible Optical Data Unit (fgODUflex) also supports lossless bandwidth adjustment, but fine grain flexible optical data unit signal can support signal rate mutation. In order to support lossless rate mutation of client signal after client signal is loaded into service signal, there are two methods in the prior art: Method 1 is to use idle mapping procedure, for example, the loading method of optical service unit (Optical Service Unit) signal into optical data unit signal uses idle mapping procedure, and supports signal rate mutation while supporting lossless bandwidth adjustment of optical service unit signal; Method 2 is to use simplified general mapping procedure, for example, the loading method of fine grain flexible optical data unit signal into optical data unit signal uses simplified general mapping procedure.
[0004] However, in the above method 1, although the idle mapping procedure allows the cache to be empty during the implementation process, so that the cache management is simple, it is easier to support the lossless rate mutation of the client signal and the hardware implementation is simple, but its disadvantages are also obvious, including: the client signal is unevenly distributed in the service signal payload, and the idle block identifier will waste a certain amount of bandwidth. For example, if the idle block is set to 16 bytes, at least 1 bit is required to indicate whether each 16-byte block is an idle block or a data block, which will result in 1 bit for each 16 bytes as an idle block identifier, thereby increasing the bandwidth waste by 0.78%. The overhead in the fine-grained flexible optical data unit signal frame accounts for 0.84%. Increasing the bandwidth waste by 0.78% in the signal frame payload requires further increasing the signal frame rate or reducing the effective bandwidth of the signal frame payload. In addition, the idle mapping procedure cannot guarantee that the client signal can be evenly distributed in the service signal, and even distribution means more stable delay. In many application scenarios, it is hoped that the client signal can guarantee stable delay. In the above method 2, the simplified general mapping procedure is an improvement on 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 the 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 the sudden change of the client signal rate. However, since the cache is still not allowed to be empty, its cache management is complicated and the hardware implementation is difficult. In summary, although both methods 1 and 2 can realize the lossless rate mutation of the client signal, they both have disadvantages. Therefore, a new method is urgently needed to support the lossless rate mutation of the client signal in the process of loading the client signal into the service signal, and the client signal can maintain a stable delay in most of the time range without wasting too much bandwidth. The hardware implementation is simple, and the difficulty of cache management when the client signal rate suddenly changes is reduced. Summary of the invention
[0005] 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.
[0006] In a first aspect, an embodiment of the present application provides a signal processing method, the method comprising:
[0007] 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;
[0008] 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;
[0009] 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;
[0010] The loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0011] In one possible implementation, 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 save the bits of the client signal that cannot be loaded in time.
[0012] 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:
[0013] 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.
[0014] 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:
[0015] 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;
[0016] The first loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0017] 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:
[0018] 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;
[0019] 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.
[0020] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0021] 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;
[0022] The second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0023] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0024] 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;
[0025] 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.
[0026] In a possible implementation manner, 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:
[0027] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0028] Selecting m time slots from the n time slots based on a signal rate of the client signal, wherein m is an integer greater than 0 and less than or equal to n;
[0029] 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.
[0030] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0031] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0032] or,
[0033] 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.
[0034] 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.
[0035] In a possible implementation manner, the second loading mode is an idle mapping procedure.
[0036] 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 in the following manner:
[0037] The client signal is directly loaded into the payload of the signal frame of the service signal through the second loading mode, and 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, and 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.
[0038] In a possible implementation, the method further includes:
[0039] generating positioning information for indicating the idle mapping procedure bit block;
[0040] The positioning information is stored in the overhead of the signal frame of the service signal.
[0041] 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 in the following manner:
[0042] 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;
[0043] The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0044] In a possible implementation, the method further includes:
[0045] generating positioning information for indicating the idle mapping procedure bit block;
[0046] storing the positioning information in an overhead of a signal frame of the intermediate frame;
[0047] The overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal
[0048] 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;
[0049] or,
[0050] 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.
[0051] In a possible implementation, the method further includes:
[0052] generating positioning information for indicating the second loading mode bit block;
[0053] The positioning information is stored in the overhead of the signal frame of the service signal.
[0054] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0055] Loading the client signal into the payload of the signal frame of the intermediate frame by the second loading mode, defining a second loading mode bit block, wherein the second loading mode 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 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, wherein 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;
[0056] The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0057] In a possible implementation, the method further includes:
[0058] generating positioning information for indicating the second loading mode bit block;
[0059] storing the positioning information in an overhead of a signal frame of the intermediate frame;
[0060] The overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0061] In a possible implementation manner, 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:
[0062] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0063] Selecting m time slots from the n time slots based on a signal rate of the client signal, wherein m is an integer greater than 0 and less than or equal to n;
[0064] 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.
[0065] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0066] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0067] or,
[0068] 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.
[0069] 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;
[0070] or,
[0071] 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.
[0072] In a second aspect, an embodiment of the present application provides a signal processing device, the device comprising a first processing unit, a second processing unit and an overhead processing unit; wherein:
[0073] 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;
[0074] 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;
[0075] 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;
[0076] 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;
[0077] 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.
[0078] In one possible implementation, 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.
[0079] 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:
[0080] 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.
[0081] 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:
[0082] 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;
[0083] The first loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0084] 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:
[0085] 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;
[0086] 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.
[0087] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0088] 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;
[0089] The second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0090] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0091] 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;
[0092] 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.
[0093] In a possible implementation manner, 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:
[0094] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0095] 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;
[0096] 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.
[0097] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0098] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0099] or,
[0100] 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.
[0101] 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.
[0102] In a possible implementation manner, the second loading mode is an idle mapping procedure.
[0103] 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 in the following manner:
[0104] The client signal is directly loaded into the payload of the signal frame of the service signal through the second loading mode, and 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, and 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.
[0105] In a possible implementation, the device further includes:
[0106] A first generating unit, configured to generate positioning information for indicating the idle mapping procedure bit block;
[0107] The first storage unit is used to store the positioning information in the overhead of the signal frame of the service signal.
[0108] 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 in the following manner:
[0109] 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;
[0110] The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0111] In a possible implementation, the device further includes:
[0112] A second generating unit, used to generate positioning information for indicating the idle mapping procedure bit block;
[0113] A second storage unit, used for storing the positioning information in the overhead of the signal frame of the intermediate frame;
[0114] A signal processing unit 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.
[0115] 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;
[0116] or,
[0117] 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.
[0118] In a possible implementation manner, 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:
[0119] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0120] 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;
[0121] 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.
[0122] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0123] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0124] or,
[0125] 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.
[0126] 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;
[0127] or,
[0128] 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.
[0129] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0130] Memory for storing computer programs;
[0131] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the signal processing method of the first aspect of the present application is implemented.
[0132] 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.
[0133] The signal processing method provided by 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; 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 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 stores the loading method identifier in the overhead of the signal frame of the service signal. Therefore, lossless rate mutation of client signals can be supported. In most cases, client signals are evenly distributed in the service signal payload, which does not increase the bandwidth waste of the service signal. The hardware implementation is simple. Although when the rate of the client signal needs to be adjusted, the client signal may be unevenly distributed in the service signal payload, which increases the bandwidth waste of the service signal. However, since the rate adjustment of the client signal does not occur frequently and the rate adjustment can be completed in a very short time each time, the above-mentioned adverse phenomena only occur for a very short time and basically do not affect the user experience. In addition, since the cache management is simple, the rate adjustment process can be completed in less time than the general mapping procedure and the simplified general mapping procedure. BRIEF DESCRIPTION OF THE DRAWINGS
[0134] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0135] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0136] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0137] Figure 1 A flowchart of a signal processing method provided in an embodiment of the present application;
[0138] Figure 2 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;
[0139] Figure 3 A schematic diagram showing that the payload of a signal frame of an optical data unit 2 signal provided in an embodiment of the present application is divided into 952 time slots;
[0140] Figure 4 A schematic diagram of dividing idle mapping procedure bit blocks in a signal frame payload of a fine-grained optical data tributary unit signal provided in an embodiment of the present application;
[0141] Figure 5 A schematic diagram of the structure of a signal processing device provided in an embodiment of the present application;
[0142] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0143] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part 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 the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0144] 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 do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0145] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0146] 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.
[0147] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0148] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0149] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0150] 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 as part of the specification.
[0151] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0152] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0153] In the process of loading a client signal into a service signal, and in the case where lossless rate mutation of the client signal needs to be supported, the prior art 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 simultaneously support two rates in one signal frame and complex cache management, resulting in complex hardware implementation. The present application provides a signal processing method, which 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, simplifies cache management in the rate adjustment process, and makes hardware implementation simpler.
[0154] Figure 1 The present invention provides a flow chart of a signal processing method according to an embodiment of the present invention. The method can be applied to an electronic device for implementation.
[0155] like Figure 1 As shown, the method specifically includes:
[0156] 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.
[0157] In this embodiment, the service signal is based on a signal frame, and the service signal is composed of a signal frame. The signal frame of the service signal includes an overhead and a payload. As an example, please refer to Figure 2 , Figure 2 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.
[0158] In practice, a signal can be composed of multiple binary bits in sequence, that is, a signal is a binary bit stream, and the bit values in the binary bit stream conform to certain rules, which are signal frames. Signals in OTN (Optical Transport Network) are all based on signal frames. In the process of loading the client signal into the service signal, in most cases the rates of the client signal and the service signal remain unchanged. In special cases, the rates of the client signal are allowed to be changed, but at the same time as the client signal rate is changed, the client signal is loaded into the service signal. When changing the client signal rate, the client signal is required to be lossless, that is, all the bits that make up the client signal cannot be increased or decreased, and no bit errors can occur.
[0159] 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.
[0160] Step 102, in the case of determining to adjust the signal rate of the client signal, use the 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 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 method to load the client signal into the payload of the signal frame of the service signal.
[0161] 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 period of time (that is, the above-mentioned preset time length) is waited for before adjusting the rate. During the above-mentioned waiting time, the rate of the client signal remains unchanged. After the above-mentioned waiting time is over, the rate of the client signal is adjusted. The rate adjustment can be completed in a very short time, that is, 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 and wait for the adjusted rate to be completely stable before switching to the first loading mode.
[0162] The second loading method does not need to 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 becomes 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.
[0163] Step 103, 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 the current method of loading the client signal into the payload of the signal frame of the service signal as the first loading mode or the second loading mode.
[0164] In this embodiment, it can be understood that after the client signal is loaded into the payload of the signal frame of the service signal, it is also necessary to retrieve 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 retrieval, and then select the appropriate retrieval method based on the loading method.
[0165] Step 104: Save the loading mode identifier in the overhead of the signal frame of the service signal.
[0166] 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, and 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, or the specific overhead of the current signal frame of the service signal can 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 method.
[0167] In some optional implementations of the present 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.
[0168] 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, and the degree to which the signal rate of the client signal is higher than the maximum rate that the second loading method can provide is limited, so the cache occupancy will not be too much.
[0169] In some application scenarios of the above optional implementations, 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:
[0170] 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.
[0171] It can be understood that within the predetermined time range, the loading rate of the first loading mode can be appropriately increased 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.
[0172] In some optional implementations of this embodiment, the following methods 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:
[0173] First, the client signal is directly loaded into the payload of the signal frame of the service signal through a first loading mode to generate a first loading mode overhead.
[0174] Afterwards, the overhead of the first loading mode is loaded into the overhead of the signal frame of the service signal.
[0175] 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 overheads will be generated during the execution of signal loading. These specific overheads related to the loading method are the first loading method overheads.
[0176] In some optional implementations of this embodiment, the following method may be adopted to load the client signal into the payload of the signal frame of the service signal using the first loading method:
[0177] First, the client signal is loaded into the payload of the signal frame of the intermediate frame by the first loading mode, and the first loading mode overhead is generated.
[0178] 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.
[0179] 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 payloads 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.
[0180] In some optional implementations of this embodiment, the following method may be adopted to load the client signal into the payload of the signal frame of the service signal using the second loading method:
[0181] First, 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.
[0182] Afterwards, the overhead of the second loading mode is loaded into the overhead of the signal frame of the service signal.
[0183] 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 overheads will be generated during the execution of signal loading. These specific overheads related to the loading method are the second loading method overheads.
[0184] In some optional implementations of this embodiment, the following method may be adopted to load the client signal into the payload of the signal frame of the service signal using the second loading method:
[0185] 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.
[0186] 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.
[0187] 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 payloads 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.
[0188] In some optional implementations of this embodiment, the following method may be adopted to load the client signal into the payload of the signal frame of the service signal using the first loading method or the second loading method:
[0189] Firstly, the payload of the signal frame of the service signal is divided into n time slots.
[0190] Wherein, the n is an integer greater than 0.
[0191] Then, m time slots are selected from the n time slots based on the signal rate of the client signal.
[0192] Wherein, m is an integer greater than 0 and less than or equal to n.
[0193] It can be understood that the payload of the signal frame of the service signal is divided into n time slots in order to load multiple client signals at the same time. After the payload of the signal frame of the service signal is divided into n time slots, one time slot can be used to load a client signal whose rate is lower than the rate of one time slot, and the rate of one time slot is equal to the rate of the payload of the signal frame of the service signal / n, that is, the rate of one time slot is equal to 1 / n of the rate of the payload of the signal frame of the service signal. When loading multiple client signals into the above time slots, an integer m is selected according to the rate of the client signal, and the client signals are loaded into m time slots. When loading client signals, any time slot can only be occupied by one client signal, and more than one client signal is not allowed to share one time slot.
[0194] In the above optional 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.
[0195] In some application scenarios of the above optional implementation methods, 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.
[0196] 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.
[0197] In some application scenarios of the above optional implementation methods, 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.
[0198] 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.
[0199] In some optional implementations of this embodiment, the first loading method is a general mapping procedure, or the first loading method is a simplified general mapping procedure.
[0200] 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.
[0201] In some optional implementations of this embodiment, the second loading method is an idle mapping procedure.
[0202] 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.
[0203] In some application scenarios of the above optional implementations, the following method is adopted to load the client signal into the payload of the signal frame of the service signal using the second loading method:
[0204] 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.
[0205] 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 p is equal to 1 at this time, 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.
[0206] In some cases of the above application scenarios, the following steps may also be performed:
[0207] First, positioning information for indicating the idle mapping procedure bit block is generated.
[0208] Afterwards, the positioning information is stored in the overhead of the signal frame of the service signal.
[0209] 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; 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, 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, 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.
[0210] In some application scenarios of the above optional implementations, the following method may also be adopted to load the client signal into the payload of the signal frame of the service signal using the second loading method:
[0211] 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.
[0212] Wherein, the p and the 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 carry the bits of the client signal or as a filling bit block.
[0213] Afterwards, the payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0214] 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.
[0215] In some cases of the above application scenarios, the following steps may also be performed:
[0216] First, positioning information for indicating the idle mapping procedure bit block is generated.
[0217] Afterwards, the positioning information is stored in the overhead of the signal frame of the intermediate frame.
[0218] Then, the overhead of the signal frame of the intermediate frame is loaded into the overhead of the signal frame of the service signal.
[0219] It can be understood that if the p is equal to 1, the payload of the signal frame of one 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.
[0220] 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.
[0221] In some optional implementations of this embodiment, when the client signal is directly loaded into the payload of the signal frame of the service signal, the loading method identifier is stored in the overhead of the signal frame of the service signal.
[0222] In some optional implementations of the present embodiment, when the client signal is loaded 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.
[0223] The signal processing method provided by 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; 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 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 stores the loading method identifier in the overhead of the signal frame of the service signal. Therefore, lossless rate mutation of client signals can be supported. In most cases, client signals are evenly distributed in the service signal payload, which does not increase bandwidth waste of service signals. In addition, cache management is simple and hardware implementation is simpler.
[0224] The following example illustrates how to load a fine-grained flexible optical data unit signal into an optical data unit signal and implement lossless rate mutation of the fine-grained flexible optical data unit signal. In this example, the client signal is a fine-grained flexible optical data unit signal, and the service signal is an optical data unit signal. The signal frame of the optical data unit signal includes 15296 bytes, each byte includes 8 bits, and the 15296 bytes of the signal frame are arranged in 4 rows and 3824 columns, that is, the signal frame of the optical data unit signal consists of 4 rows and 3824 columns of bytes, of which the first 16 columns are overhead and the last 3808 columns are payload, as shown in FIG. Figure 2 As shown. The payload of the signal frame of the optical data unit signal is divided into n time slots, and the value of n is related to the rate of the optical data unit signal. For example, the payload of the signal frame of the optical data unit 2 signal (ODU2) is divided into 952 time slots, and each time slot is 16 bytes long. There are 15232 bytes in the payload of the signal frame of the optical data unit 2 signal, and 952 time slots are exactly equal to 15232 bytes, so all bytes of the payload of 1 signal frame are exactly divided into 952 time slots, as shown Figure 3 shown. Figure 3 The payload of a signal frame of an optical data unit 2 signal is divided into 952 time slots.
[0225] 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 rate of the payload of the signal frame of the optical data unit 2 signal is about 9.995G bits / second, which is divided into 952 time slots. The rate of one time slot is about 10.5M bits / second, and the signal rate of the fine-grained flexible optical data unit signal is about 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 the fine-grained optical data tributary unit (Fine Grain 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 an overhead and a 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 optical data tributary unit signal is composed 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 is composed of 12 bits.
[0226] When there is no need to adjust the rate of the fine-grained flexible optical data unit signal, 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, and a simplified general mapping procedure overhead is generated, wherein the simplified general mapping procedure overhead identifies how many 16-byte blocks are used to load the fine-grained flexible optical data unit signal in the payload of the signal frame of the fine-grained optical data tributary unit signal. The specific position of each of the above 16-byte blocks can be calculated according to the number of the above 16-byte blocks and the addition and multiplication algorithm (Sigma-Delta justification distribution), and the simplified general mapping procedure overhead is loaded into the overhead of the signal frame of the fine-grained optical data tributary unit signal, and the payload of the signal frame of the fine-grained optical data tributary unit signal is loaded into the 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.
[0227] 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 the 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 the signal frame of the fine-grained optical data tributary unit signal. The payload of the signal frame of the continuous 129 fine-grained optical data tributary unit signal is divided into 4096*8*m1 idle mapping protocol bit blocks, such as Figure 4 shown. Figure 4 In the example, the payload of a signal frame of a fine-grained optical data tributary unit signal contains 32768*m1 bits, which are composed of m1 rows and 32768 columns, and each unit is 1 bit. All payloads of the signal frames of 129 consecutive fine-grained optical data tributary unit signals are divided according to consecutive 129 bits to obtain 32768*m1 129-bit blocks, of which one 129-bit block corresponds to one idle mapping procedure bit block. Figure 4In the example, x=int(m1*32768 / 129), where int() represents a rounding operation, and y=32768*m1. The idle mapping procedure 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 procedure bit block is used to carry a 128-bit fine-grained flexible optical data unit signal or as a filling bit block. For example, a 1-bit idle identifier of 0 indicates that the payload in the current idle mapping procedure bit block is filling information, and a 1-bit idle identifier of 1 indicates that the payload in the current idle mapping procedure bit block is used to carry a 128-bit fine-grained flexible optical data unit signal. Positioning information for indicating an idle mapping procedure bit block is generated, and the positioning information indicates the bit number of a certain idle mapping procedure 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 the signal frame of the 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 the signal frame of the fine-grained optical data tributary unit signal is located at the jth 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. The idle 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 the m1 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 signal frame overhead of the optical data unit 2 signal.
[0228] Use the idle mapping procedure to load the fine-grained flexible optical data unit signal with a rate of m1 * 10.4 Mbit / s into the payload of the signal frame of the fine-grained optical data tributary unit signal, 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 Mbit / s to m2 * 10.4 Mbit / s. 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 performed 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 performed 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, use the simplified generic mapping procedure to load the fine-grained flexible optical data unit signal with a rate of m2 * 10.4 Mbit / s into the payload of the signal frame of the fine-grained optical data tributary unit signal. The switching of the above loading method is performed 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 generic mapping procedure. Thus, the entire rate adjustment process is completed.
[0229] 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 a 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 an 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.
[0230] 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 an 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 for using the idle mapping procedure will not be too long. Although the maximum bandwidth that the idle mapping procedure 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 procedure is used to load the fine-grained flexible optical data unit signal, the loading rate of the simplified general mapping procedure can be temporarily increased for a period of time. After the excessive number of bits stored in the cache is reduced to a reasonable value, the loading rate of the simplified general mapping procedure is restored, that is, the loading rate of the simplified general mapping procedure is made equal to the rate of loading the fine-grained flexible optical data unit signal.
[0231] Figure 5 A schematic diagram of the structure of a signal processing device provided in an embodiment of the present application.
[0232] The device comprises a first processing unit 401, a second processing unit 402 and an overhead processing unit 403; wherein:
[0233] 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 through the first processing unit 401;
[0234] The first processing unit 401 is used to: use a first loading mode to load the client signal into the payload of the signal frame of the service signal;
[0235] In case of determining 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 through the second processing unit 402;
[0236] The second processing unit 402 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;
[0237] The overhead processing unit 403 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.
[0238] In one possible implementation, 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.
[0239] 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:
[0240] 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.
[0241] 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:
[0242] 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;
[0243] The first loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0244] 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:
[0245] 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;
[0246] 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.
[0247] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0248] 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;
[0249] The second loading mode overhead is loaded into the overhead of the signal frame of the service signal.
[0250] In a possible implementation manner, the using the second loading mode to load the client signal into the payload of the signal frame of the service signal includes:
[0251] 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;
[0252] 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.
[0253] In a possible implementation manner, 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:
[0254] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0255] 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;
[0256] 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.
[0257] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0258] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0259] or,
[0260] 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.
[0261] 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.
[0262] In a possible implementation manner, the second loading mode is an idle mapping procedure.
[0263] 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 in the following manner:
[0264] The client signal is directly loaded into the payload of the signal frame of the service signal through the second loading mode, and 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, and 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.
[0265] In a possible implementation, the device further includes:
[0266] A first generating unit (not shown in the figure), used to generate positioning information for indicating the idle mapping procedure bit block;
[0267] 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.
[0268] 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 in the following manner:
[0269] 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;
[0270] The payload of the intermediate frame signal is loaded into the payload of the signal frame of the service signal.
[0271] In a possible implementation, the device further includes:
[0272] A second generating unit (not shown in the figure), used to generate positioning information for indicating the idle mapping procedure bit block;
[0273] A second storage unit (not shown in the figure), configured to store the positioning information in an overhead of a signal frame of the intermediate frame;
[0274] 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.
[0275] 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;
[0276] or,
[0277] 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.
[0278] In a possible implementation manner, 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:
[0279] Dividing the payload of the signal frame of the service signal into n time slots, wherein n is an integer greater than 0;
[0280] Selecting m time slots from the n time slots based on a signal rate of the client signal, wherein m is an integer greater than 0 and less than or equal to n;
[0281] 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.
[0282] In a possible implementation manner, loading the client signal into the m time slots of the payload of the signal frame of the service signal comprises:
[0283] directly loading the client signal into the m time slots of the payload of the signal frame of the service signal;
[0284] or,
[0285] 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.
[0286] 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;
[0287] or,
[0288] 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.
[0289] The signal processing device provided in this embodiment may be as follows Figure 5 The signal processing device shown in can execute all the steps of the signal processing methods described above, thereby achieving 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.
[0290] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 6 The electronic device 500 shown 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 the 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, the bus system 505 is not shown in FIG. Figure 6 Various buses are labeled as bus system 505 .
[0291] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0292] It can be 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 but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (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.
[0293] In some implementations, 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 an application program 5022 .
[0294] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process 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 for implementing the method of the embodiment of the present application can be included in the application 5022.
[0295] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0296] 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;
[0297] 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;
[0298] 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;
[0299] The loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0300] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, 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.
[0301] It is understood that the embodiments described herein may be implemented in 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 (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0302] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0303] The electronic device provided in this embodiment may be Figure 6 The electronic device shown in can execute all the steps of the signal processing methods described above, thereby achieving 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.
[0304] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0305] 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.
[0306] 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:
[0307] 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;
[0308] 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;
[0309] 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;
[0310] The loading mode identifier is stored in the overhead of the signal frame of the service signal.
[0311] The 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 with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0312] The steps of the method or algorithm 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.
[0313] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments 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 "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence 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 interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0314] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be 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 invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A signal processing method, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that: The second loading mode is an idle mapping procedure.
12. The method according to claim 11, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that: 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, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 16.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 16 is implemented.
Citation Information
Cited By
Signal processing method and apparatus, electronic device, and storage medium
EP4773529A1