Rate recovery method and device, storage medium and equipment

By dividing the signal frame payload of the optical data unit signal into time slots, and determining the statistical time of the reference signal based on the statistical time slot of the optical service unit signal, the problem of long frame period of the optical service branch unit signal affecting rate recovery is solved, and a better signal rate recovery effect of the optical service unit is achieved.

CN119834891APending Publication Date: 2025-04-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311327249.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the prior art, the frame period of the optical service branch unit signal is relatively long, which affects the rate recovery effect of the optical service unit signal.

Method used

The signal frame payload of the optical data unit signal is divided into p time slots, and the optical service unit signal is loaded into m time slots of the signal frame payload of the optical data unit signal, and the statistical time slot corresponding to the signal frame of the optical service unit signal is obtained. The statistical time of the reference signal is determined based on the statistical time slot, the number of bits of the reference signal in the statistical time slot is obtained, and the optical data unit signal is transmitted. When it is necessary to restore the rate of the optical service unit signal, the rate of the optical service unit signal is restored based on the statistical time and the number of bits of the reference signal.

Benefits of technology

Through a shorter statistical time, the rate recovery effect of the optical service unit signal is improved, and the impact of the long frame period of the optical service branch unit signal is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119834891A_ABST
    Figure CN119834891A_ABST
Patent Text Reader

Abstract

The invention provides a rate recovery method and device, a storage medium and equipment, and the method comprises the steps: dividing the payload of a signal frame of an optical data unit signal into time slots, loading an optical service unit signal into the time slots, obtaining a statistical time slot corresponding to the signal frame of the optical service unit signal, and transmitting the statistical time slot to the optical data unit signal; determining the statistical time of a reference signal according to the statistical time slot, and obtaining the bit number of the reference signal in the statistical time; transmitting the optical data unit signal; and when the rate of the optical service unit signal needs to be recovered, recovering the rate of the optical service unit signal according to the statistical time and the bit number of the reference signal. Compared with the prior art in which the signal frame period of a plurality of optical data unit signals is used as the statistical time, the statistical time is shorter, so that a better optical service unit signal rate recovery effect is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a rate recovery method, device, storage medium and equipment. Background Art

[0002] Rate recovery technology is the core technology of Optical Transport Newwork (OTN). Commonly used rate recovery technologies in optical transport networks include Generic Mapping Procedure (GMP) mapping, Asynchronous Mapping Procedure (AMP) mapping, etc. When these rate recovery technologies load client signals into service signals, they need to generate rate information based on the rate of client signals and the rate of service signals. Rate information is generally defined as the number of bits of client signals within a certain period of time. Here, the certain period of time is named as statistical time, that is, rate information is defined as the number of bits of client signals within the statistical time. Generally, the statistical time is defined as the frame period of the service signal. For example, when the synchronous transport module signal (Synchronous Transport Module, STM) is loaded into the optical data unit (Optical Data Unit, ODU) signal through the asynchronous mapping procedure, the frame period of the signal frame of the optical data unit signal is defined as the statistical time. The frame period here refers to the time taken to send a signal frame. The number of bits of the synchronous transport module signal within the statistical time is used as the rate information overhead to obtain the rate information overhead of the asynchronous mapping procedure. The rate information overhead of the asynchronous mapping procedure includes not only the number of bits of the client signal within the statistical time, but also the specific position information of the client signal in the payload of the signal frame of the service signal, that is, which specific bits in the payload of the signal frame of the service signal are used to carry the client signal. In the process of generating rate information, there are certain requirements for the length of the statistical time. Generally speaking, for client signals with higher rates, the statistical time is usually shorter; for client signals with lower rates, the statistical time can be appropriately increased, but it is best not to exceed 1 millisecond (ms). In theory, the shorter the statistical time, the better the rate recovery effect. However, if the statistical time is too short, the bandwidth occupancy of the rate information will increase, and if the statistical time is shortened beyond a threshold value, the rate recovery effect will not be improved.

[0003] In the prior art, in the process of loading an optical service unit (OSU) signal into the time slot of a signal frame payload of an optical data unit signal, it is necessary to first load the optical service unit signal into an optical service tributary unit (OSTU) signal, and then load the optical service tributary unit signal into the time slot of a signal frame payload of an optical data unit signal. At this time, the optical service tributary unit signal frame period is relatively long. During the rate recovery process, if the optical service tributary unit signal frame period is used as the statistical time, the statistical time will be too long, thereby affecting the rate recovery effect of the optical service unit signal.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a rate recovery method, device, storage medium and equipment, aiming to solve the technical problem in the prior art that the long frame period of the optical service branch unit signal affects the rate recovery effect of the optical service unit signal.

[0006] To achieve the above object, the present invention provides a rate recovery method, which comprises the following steps:

[0007] Divide the signal frame payload of the optical data unit signal into p time slots, and load the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p;

[0008] Obtaining a statistical time slot corresponding to a signal frame of the optical service unit signal;

[0009] Determine the statistical time of the reference signal according to the statistical time slot;

[0010] Obtaining the number of bits of the reference signal within the statistical time;

[0011] sending the optical data unit signal;

[0012] When it is necessary to restore the rate of the optical service unit signal, the rate of the optical service unit signal is restored according to the statistical time and the number of bits of the reference signal.

[0013] Optionally, obtaining the statistical time slot corresponding to the signal frame of the optical service unit signal specifically includes:

[0014] Acquire a specific frame position of a signal frame of the optical service unit signal;

[0015] The statistical time slot corresponding to the signal frame of the optical service unit signal is searched forward from the specific frame position.

[0016] Optionally, the step of searching forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal includes:

[0017] Numbering the p time slots, each of the time slots corresponds to a time slot number, and the time slot number ranges from 1 to p;

[0018] Determine an integer q, wherein q is an integer greater than or equal to 1 and less than or equal to p;

[0019] Correspondingly, searching forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal specifically includes:

[0020] Starting from the specific frame position, searching forward one by one in the time slots until the time slot with the time slot number q is found for the first time;

[0021] The time slot numbered as q that is found for the first time is used as the statistical time slot corresponding to the signal frame of the optical service unit signal.

[0022] Optionally, the specific frame position of the signal frame of the optical service unit signal is the position where the frame header of the signal frame of the optical service unit signal is located;

[0023] Or, the specific frame position of the signal frame of the optical service unit signal is the position where the specific overhead of the signal frame of the optical service unit signal is located, and the specific overhead is any specified overhead;

[0024] Or, the specific frame position of the signal frame of the optical service unit signal is the position where a specific payload of the signal frame of the optical service unit signal is located, wherein the specific payload is any specified position in the signal frame payload.

[0025] Optionally, determining the statistical time of the reference signal according to the statistical time slot specifically includes:

[0026] Obtain the statistical time slot corresponding to the signal frame of each optical service unit signal;

[0027] Using the sending time of the statistical time slot as the reference time point of the statistical time;

[0028] The time interval between the adjacent reference time points of the statistical time is used as the statistical time of the reference signal.

[0029] Optionally, the obtaining the number of bits of the reference signal within the statistical time includes:

[0030] Counting the number of bits of the reference signal within the statistical time;

[0031] The counted number of bits of the reference signal is stored in the rate information overhead of the signal frame of the optical service unit signal.

[0032] Optionally, the reference signal is the optical service unit signal, or the reference signal is a clock signal having a specific frequency and synchronized with the optical service unit signal.

[0033] Optionally, sending the optical data unit signal specifically includes:

[0034] Loading the optical data unit signal into a signal frame payload of other signals and sending the other signals;

[0035] When receiving the other signal, extracting the optical data unit signal from the signal frame payload of the other signal;

[0036] The other signal is a target optical data unit signal whose rate is greater than that of the optical data unit signal, or the other signal is an optical transmission unit signal.

[0037] Optionally, after extracting the optical data unit signal from the signal frame payload of the other signal when the other signal is received, the method further includes:

[0038] The optical service unit signal is taken out from the m time slots of the signal frame payload of the optical data unit signal.

[0039] Optionally, after taking out the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal, the method further includes:

[0040] When it is necessary to restore the rate of the optical service unit signal, obtaining the statistical time slot corresponding to the signal frame of the optical service unit signal;

[0041] Determine the statistical time of the reference signal according to the statistical time slot;

[0042] Acquire the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal;

[0043] Correspondingly, determining the recovery rate of the optical service unit signal according to the statistical time and the number of bits includes:

[0044] The rate of the reference signal is restored according to the statistical time and the number of bits of the reference signal, and the rate of the optical service unit signal is restored according to the restored rate of the reference signal.

[0045] In addition, to achieve the above object, the present invention further provides a rate recovery device, the rate recovery device comprising:

[0046] A loading module, used for dividing the signal frame payload of the optical data unit signal into p time slots, and loading the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p;

[0047] A position selection module, used to obtain the statistical time slot corresponding to the signal frame of the optical service unit signal;

[0048] A time determination module, used to determine the statistical time of the reference signal according to the statistical time slot;

[0049] An information acquisition module, used to acquire the number of bits of the reference signal within the statistical time;

[0050] A signal sending module, used for sending the optical data unit signal;

[0051] The rate recovery module is used to restore the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal when the rate of the optical service unit signal needs to be restored.

[0052] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a rate recovery program is stored, and when the rate recovery program is executed by a processor, the steps of the rate recovery method described above are implemented.

[0053] In addition, to achieve the above-mentioned purpose, the present invention also proposes a rate recovery device, which includes a memory, a processor, and a rate recovery program stored in the memory and executable on the processor, and the rate recovery program is configured to implement the steps of the rate recovery method described above.

[0054] The present invention provides a rate recovery method, device, storage medium and equipment, which divides the signal frame payload of an optical data unit signal into p time slots, and loads an optical service unit signal into m time slots of the signal frame payload of the optical data unit signal; obtains the statistical time slot corresponding to the signal frame of the optical service unit signal; determines the statistical time of a reference signal according to the statistical time slot; obtains the number of bits of the reference signal within the statistical time; sends the optical data unit signal; and when it is necessary to recover the rate of the optical service unit signal, recovers the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal. In the present invention, the signal frame payload of the optical data unit signal is divided into time slots, the optical service unit signal is loaded into the time slots, the statistical time slot corresponding to the signal frame of the optical service unit signal is obtained, the statistical time of the reference signal is determined according to the statistical time slots, and the number of bits of the reference signal within the statistical time is obtained. The present invention determines the statistical time of the reference signal according to the statistical time slot. Compared with the prior art which uses the signal frame period of multiple optical data unit signals as the statistical time, the statistical time of the present invention is shorter, thereby obtaining a better optical service unit signal rate recovery effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a structural diagram of a rate recovery device in a hardware operating environment involved in an embodiment of the present invention;

[0056] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the rate recovery method of the present invention;

[0057] Figure 3 A schematic diagram of a signal frame structure of an optical data unit signal in a rate recovery method of the present invention;

[0058] Figure 4 A schematic diagram of a flow chart of determining a statistical time slot in a second embodiment of a rate recovery method of the present invention;

[0059] Figure 5 It is a structural schematic diagram of a method for implementing the statistical time of the rate recovery method of the present invention;

[0060] Figure 6 A schematic diagram of a flow chart of determining statistical time in the second embodiment of the rate recovery method of the present invention;

[0061] Figure 7 A schematic diagram of a flow chart of determining the number of reference signal bits in the second embodiment of the rate recovery method of the present invention;

[0062] Figure 8 A schematic diagram of a signal transmission process in the third embodiment of the rate recovery method of the present invention;

[0063] Fig. 9 Schematic diagram of the process of reference signal rate recovery in the third embodiment of the rate recovery method of the present invention

[0064] Fig.10 It is a structural block diagram of the first embodiment of the rate recovery device of the present invention.

[0065] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0066] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0067] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a rate recovery device in a hardware operating environment involved in an embodiment of the present invention.

[0068] like Figure 1 As shown, the rate recovery device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0069] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the rate recovery device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0070] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a rate recovery program.

[0071] exist Figure 1In the rate recovery device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the rate recovery device calls the rate recovery program stored in the memory 1005 through the processor 1001, and executes the rate recovery method provided by the embodiment of the present invention.

[0072] Based on the above hardware structure, an embodiment of the rate recovery method of the present invention is proposed.

[0073] Reference Figure 2 , Figure 2 The figure is a flow chart of the first embodiment of the rate recovery method of the present invention, and the first embodiment of the rate recovery method of the present invention is proposed.

[0074] In a first embodiment, the rate recovery method comprises the following steps:

[0075] Step S10: Divide the signal frame payload of the optical data unit signal into p time slots, and load the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p.

[0076] In this embodiment, the signal frame payload of the optical data unit signal is divided into p time slots, where a time slot is w consecutive bits in the payload of the signal frame of the optical data unit signal. The structure of the signal frame of the optical data unit signal is as follows: Figure 3 As shown, Figure 3 In the example, the length of the signal frame of the optical data unit signal is 4 rows * 3824 columns of bytes, each row includes 16 columns of overhead and 3808 columns of payload. Assume that the payload length of the signal frame of the optical data unit signal is x bits, where x is 121,856 bits, and x is not divisible by w*p. Then find a minimum positive integer y such that x*y is divisible by w*p. If x is divisible by w*p, then y is equal to 1. In this way, the payloads of the signal frames of y consecutive optical data unit signals are arranged in order. There are a total of y*x bits above. Among these y*x bits, consecutive w bits are used as a time slot, so the y*x bits are divided into z*p time slots, where z=y*x / (w*p), z is an integer, and time slot numbers are sequentially assigned to the z*p time slots, and the time slots are numbered from 1 to p. In this way, all time slots in the payload of the signal frame of y consecutive optical data unit signals have time slot numbers, and the payload of the signal frame of each consecutive y optical data unit signal is assigned a time slot number according to the above method.

[0077] In the prior art, in order to load an optical service unit signal into m time slots of a signal frame payload of an optical data unit signal, it is necessary to first define an optical service tributary unit signal, the signal frame period of the optical service tributary unit signal being c frame periods of the optical data unit signal, wherein c is related to the rate of the optical data unit signal, for example, the signal rate of optical data unit 0 (ODU0) is about 1.25g bit / s, the c value is 32, the signal rate of optical data unit 2 (ODU2) is about 10g bit / s, the c value is 256, thus, regardless of the rate of the optical data unit signal and the number m of time slots occupied by the optical service unit signal in the optical data unit signal, the signal frame period of the optical service tributary unit signal is about 3ms. The optical service unit signal must first be loaded into the payload of the signal frame of the optical service branch unit signal, and then the payload of the signal frame of the optical branch unit signal must be loaded into the m time slots of the signal frame payload of the optical data unit signal. In order to recover the rate of the optical service branch unit signal, it is necessary to define the statistical time, and write the number of bits of the optical service branch unit signal within the statistical time into the rate information overhead as rate information. In the future, the rate of the optical service branch unit signal can be recovered based on the statistical time and the rate information overhead. In the above implementation, the number of bits of the optical service branch unit signal within the statistical time can be used as rate information, or the number of bits of a reference signal can be used as rate information, but the reference signal must be synchronized with the optical service unit signal. Here, synchronization means that the ratio of the rates of the two signals is a fixed value. Since the ratio is fixed, you only need to know the rate of one signal to get the rate of the other signal based on the ratio. The above definition of statistical time is very critical. The prior art uses the signal frame period of the optical service branch unit signal as the statistical time. The rate range of the optical service unit signal is 10.4m bit / s to 1.25g bit / s. For the optical service unit signal with a lower rate, the statistical time of about 3 milliseconds is within an acceptable range. However, for the optical service unit signal with a higher rate, such as a rate greater than 100Mbps, the statistical time of 3 milliseconds is relatively long, which will affect the rate recovery effect. If the statistical time is about 100 microseconds at this time, a relatively good rate recovery effect can be obtained.

[0078] In this embodiment, according to different loading methods, the optical service unit signal can be first loaded into the payload of the signal frame of the optical data tributary unit signal, and then the payload of the signal frame of the optical data tributary unit signal can be loaded into the m time slots of the signal frame payload of the optical data unit signal, or the optical service unit signal can be directly loaded into the m time slots of the signal frame payload of the optical data unit signal. If a loading method similar to the general mapping procedure is selected, such as the simplified general mapping procedure, this method needs to define an additional overhead to distinguish between data blocks and padding blocks, where the data blocks are actually used to load the optical service unit signal and the padding blocks are only used to occupy space, then it needs to be loaded into the optical service tributary unit signal first, because the overhead of the optical tributary unit signal is needed to save the above-mentioned additional overhead, and the loading method of the simplified general mapping procedure needs to first define a fixed-length bit interval, divide the bit interval into multiple bit blocks, and then decide whether each bit block is used as a data block or a padding block, and this bit interval is the payload length of the signal frame of the optical service tributary payload unit. If a loading method similar to the Idle Mapping Procedure (IMP) is selected, in which a fixed-length bit block is defined in the m time slots of the payload of the signal frame of the optical data unit signal, and one bit in the bit block is used to identify whether the current bit block is a data block or a padding block, that is, the information used to distinguish between data blocks and padding blocks in this loading method is located in the payload, and no additional overhead is required, nor is it necessary to plan a fixed-length bit interval in advance. At this time, the optical service unit signal can be directly loaded into the m time slots of the signal frame payload of the optical data unit signal. Regardless of which method is used, the optical service unit signal will eventually be loaded into the m time slots of the signal frame payload of the optical data unit signal.

[0079] Step S20: Obtain the statistical time slot corresponding to the signal frame of the optical service unit signal.

[0080] It should be noted that the statistical time slot is a time slot used to determine the statistical time. It can be defined that each signal frame of an optical service unit signal corresponds to one statistical time slot, and the time slot number of the statistical time slot is a fixed value. The time slot number corresponding to the statistical time slot can be manually specified. In order to determine the specific position of the statistical time slot, first determine the position of the signal frame of an optical service unit signal, and then define the rule for determining the statistical time slot. According to the rule, a time slot with a time slot number of q is determined as the statistical time slot. There can be many kinds of rules, as long as it can be guaranteed that each signal frame of an optical service unit signal can determine a unique time slot with a time slot number of q according to the rule. For example, the rule is to search forward from the time slot where the specific position of the signal frame is located, one time slot at a time slot, until the first time slot with a time slot number of q is found. The above-mentioned specific position can be a specific position of the signal frame, such as the frame header of the signal frame, or the specific overhead of the signal frame, or the specific payload of the signal frame. Point forward to the left and top of the signal frame. Assuming that the time slot number of the current time slot is a, and the current time slot is not the first time slot in a row of the signal frame payload, the time slot adjacent to the left is the first time slot forward, the time slot adjacent to the right is the first time slot backward, and the time slot number of the time slot adjacent to the left is a-1 (if a is 1, a-1 is equal to p); Assuming that the time slot number of the current time slot is a, and the current time slot is the first time slot in a row of the signal frame payload, the rightmost time slot of the previous row is the first time slot forward, where the previous row represents the row number minus 1, that is, the row number of the current row is b, b is equal to 1 to 4, then the row number of the previous row is b-1 (if b-1=0, the previous row is equal to the 4th row of the previous frame), and the time slot number of the time slot adjacent to the left is a-1 (if a is 1, a-1 is equal to p). In the above description, the time slot number q can be any value from 1 to p.

[0081] It should be noted that the process of determining the statistical time slot does not need to consider the existence of the optical service tributary unit signal frame. For example, the optical service unit signal is first loaded into the payload of the signal frame of the optical service tributary unit signal through a simplified framing procedure, and then the optical service tributary unit signal is loaded into the m time slots of the payload of the signal frame of the optical data unit signal. After the above process is completed, the signal frame of the optical service unit signal is actually located in the m time slots of the payload of the signal frame of the optical data unit signal. At this time, the existence of the signal frame of the optical service tributary unit signal can be ignored, and the time slot where the specific position of the signal frame of the optical service unit signal is located is first found, and then the first time slot numbered q is found from this position forward, and the time slot numbered q is used as the statistical time slot.

[0082] It should be noted that, assuming that c optical service unit signals are loaded in one optical data unit signal, in principle, the time slot number q corresponding to the statistical time slot of each optical service unit signal can be the same value. However, from the perspective of hardware implementation, when the value of c is very large, the loading of c optical service unit signals generally needs to be implemented through time division multiplexing technology. At this time, different values ​​should be assigned to the time slot number q corresponding to the statistical time slot of each optical service unit signal. In this way, the hardware can implement the statistical time of c optical service unit signals through time division multiplexing technology, thereby reducing the difficulty of hardware implementation.

[0083] Step S30: Determine the statistical time of the reference signal according to the statistical time slot.

[0084] It can be understood that after each frame determines a statistical time slot, each statistical time slot corresponds to a time point. After the optical service unit signal is loaded into the m time slots of the signal frame payload of the optical data unit signal, the optical data unit signal needs to be sent. In the process of sending the optical data unit signal, each time slot of the signal frame payload of the optical data unit signal has a sending time point, so the statistical time slot also has a sending time point, and the sending time point of the statistical time slot is used as the time point corresponding to the statistical time slot, and the interval time between the time points corresponding to two adjacent statistical time slots is used as the statistical time.

[0085] Step S40: Obtain the number of bits of the reference signal within the statistical time.

[0086] It can be understood that the above statistical time is used for the bit count of the reference signal. Here, the bit count of the reference signal is used to recover the rate of the optical service unit signal after taking out the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal. The reference signal can be the optical service unit signal itself, or it can be other signals synchronized with the optical service unit signal. Here, synchronization means that the ratio of the rates of the two signals is a fixed value. Since the ratio is fixed, it is only necessary to know the rate of one signal, and the rate of the other signal can be obtained according to the ratio.

[0087] It can be understood that the reference signal can be a clock signal synchronized with the optical service unit signal, and its frequency is the rate of the optical service unit signal*g / h, where g and h are both integers greater than 0, and the unit is Hz. For example, if the rate of the optical service unit signal is 10.4M bits / second, the reference signal can be a clock signal synchronized with the optical service unit signal with a frequency of 200MHz. In this case, g = 2000, h = 104. When it is necessary to restore the rate of the optical service unit signal, the rate of the reference signal can be restored first, and then the rate of the optical service unit signal can be restored according to the ratio of the rate of the reference signal to the rate of the optical service unit signal.

[0088] It can be understood that the signal rate is equal to the number of bits transmitted by the signal per unit time, so the signal rate can be represented by two digital quantities, time and bit number. In this embodiment, after determining the statistical time, since the reference signal has a rate, the number of bits of the reference signal can be counted within the time range corresponding to the statistical time, and the number of bits of the reference signal counted is determined by the rate of the reference signal, so that the number of bits of the reference signal counted within the statistical time and the statistical time can represent the rate of the reference signal. If the reference signal is a clock signal, the number of cycles of the clock signal counted within the statistical time is used as the number of bits of the reference signal, that is, the clock signal is equivalent to a binary bit stream signal with a rate equal to its frequency value. This bit stream signal only has a rate, and the binary bit value corresponding to its bit stream can be ignored.

[0089] It can be understood that in this embodiment, the number of bits of the reference signal counted within the statistical time is determined by the duration of the statistical time and the rate of the reference signal. When sending an optical data unit signal, the statistical time and the number of bits of the reference signal counted within the statistical time are determined, and the number of bits of the reference signal counted within the statistical time are saved in a specific overhead, which can be the overhead of the signal frame of the optical data unit signal or the overhead of the signal frame of the optical service unit signal.

[0090] Step S50: Send the optical data unit signal.

[0091] The purpose of this embodiment is not to directly transmit the optical service unit signal, but to first load the optical service unit signal into the signal frame payload of the optical data unit signal, and then transmit the optical service unit signal by sending the optical data unit signal.

[0092] It is understandable that when sending an optical data unit signal, since the optical data unit signal cannot be directly transmitted in the physical medium, the optical data unit signal needs to be loaded into other signals. If the other signal can be directly transmitted in the physical medium, the other signal can be sent directly. If the other signal cannot be directly transmitted in the physical medium, the other signal needs to be further loaded into a second other signal that can be directly transmitted in the physical medium.

[0093] Step S60: When it is necessary to restore the rate of the optical service unit signal, restore the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal.

[0094] It is understandable that before executing this step, it is necessary to receive the optical data unit signal and extract the optical service unit signal from the m time slots of the payload of the signal frame of the optical data unit signal. Only after the optical service unit signal is extracted and the rate of the optical service unit signal is restored, the transmission process of the optical service unit signal is completed.

[0095] It can be understood that when taking out the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal, the same rules as when sending the optical data unit signal must be used to determine the statistical time slot from the received optical data unit signal, determine the statistical time of the reference signal based on the statistical time slot, and obtain the number of bits of the reference signal based on the specific overhead. The specific overhead can be the overhead of the signal frame of the optical data unit signal or the overhead of the signal frame of the optical service unit signal. Then, the rate of the reference signal can be restored based on the above-mentioned statistical time and the number of bits of the reference signal counted within the statistical time, and the rate of the optical service unit signal can be restored based on the restored reference signal rate.

[0096] It can also be understood that in the process of receiving the optical data unit signal, each time slot of the signal frame payload of the optical data unit signal has a receiving time point, so the statistical time slot also has a receiving time point. In the process of determining the statistical time of the reference signal based on the statistical time slot, the receiving time point of the statistical time slot is used as the time point corresponding to the statistical time slot, and the interval time between the time points corresponding to two adjacent statistical time slots is used as the statistical time.

[0097] In a first embodiment, a rate recovery method is provided, which divides a signal frame payload of an optical data unit signal into p time slots, and loads an optical service unit signal into m time slots of the signal frame payload of the optical data unit signal; obtains a statistical time slot corresponding to the signal frame of the optical service unit signal; determines a statistical time of a reference signal according to the statistical time slot; obtains the number of bits of the reference signal within the statistical time; sends the optical data unit signal; and when it is necessary to recover the rate of the optical service unit signal, recovers the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal.

[0098] In this embodiment, the statistical time slot is first determined, and the statistical time is obtained according to the statistical time slot. Compared with the prior art that uses the signal frame period of multiple optical data unit signals as the statistical time, the statistical time of the present invention is not a fixed length, but is related to the frame period of the optical service unit signal. The higher the rate of the optical service unit signal, the shorter the frame period, and the corresponding statistical time is shorter. For example, for an optical service unit signal with a rate of 100M bits / second, the statistical time is about 1.2 milliseconds, and for an optical service unit signal with a rate of 1G bits / second, the statistical time is about 0.12 milliseconds. Compared with the prior scheme, for optical service unit signals of any rate, the statistical period is fixed at about 3 milliseconds. For optical service unit signals with a rate higher than 100M bits / second, the statistical period is shorter and the rate recovery effect is better. It can be understood that the above statistical time slot corresponds to one optical service unit signal frame, that is, one optical service unit signal frame corresponds to one statistical time slot. Further, it can be defined that a signal frame of one line of optical service unit signal corresponds to one statistical time slot, and a signal frame of one optical service unit signal corresponds to four lines of data. In this way, the signal frame of one optical service unit signal corresponds to four statistical time slots, thereby further shortening the statistical time length.

[0099] Based on the above Figure 2 The first embodiment shown provides a second embodiment of the rate recovery method of the present invention.

[0100] Reference Figure 4 , Figure 4 The figure is a schematic diagram of a flow chart of determining a statistical time slot in the second embodiment of the rate recovery method of the present invention.

[0101] In the second embodiment, step S20 includes:

[0102] Step S21: Acquire a specific frame position of a signal frame of the optical service unit signal.

[0103] It should be understood that the specific frame position is the starting position for finding the statistical time slot. In the process of finding the statistical time slot, it is necessary to start the search with the specific frame position as the starting position. The specific frame position can be the position where the specific overhead is located in the signal frame, or it can be the position where the specific payload is located in the signal frame.

[0104] In a specific implementation, the position of the frame header of the signal frame of the optical service unit signal can be used as the specific position of the signal frame; of course, it can also be the position of the specific overhead of the signal frame of the optical service unit signal, and the specific overhead is any specified overhead; it can also be the position of the specific payload of the signal frame of the optical service unit signal, and the specific payload is any specified position in the payload of the signal frame.

[0105] Step S22: Searching forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal.

[0106] It can be understood that the action of obtaining the specific frame position of the signal frame of the optical service unit signal is performed for each signal frame of the optical service unit signal, that is, the specific frame position is obtained in each signal frame of the optical service unit signal, and the obtained specific frame position must be located in a certain time slot.

[0107] The signal frame payload of the optical data unit signal is divided into p time slots, and the p time slots are numbered, each time slot corresponds to a time slot number, and the time slot number ranges from 1 to p. Determine an integer q, where q is an integer greater than or equal to 1 and less than or equal to p. The time slot number of the statistical time slot is q. Note that q may not be one of the m time slot numbers, where m is the m time slots occupied by the optical service unit signal. For example, the signal frame payload of the optical data unit signal is divided into 100 time slots, and p is equal to 100 at this time, and the time slot numbers are 1 to 100. The optical service unit signal occupies 5 time slots, that is, m is equal to 5, and the 5 occupied time slots are respectively time slot numbers 2, 5, 8, 10, and 99. At this time, q is not necessarily one of the above 5 time slot numbers, and q can be any one of 1 to 100, for example, q can be 1, 8, or 50.

[0108] Each signal frame of the optical service unit signal can correspond to one statistical time slot, and the time slot number of the statistical time slot must be q. In order to determine the specific position of the statistical time slot, you can start from the time slot where the specific frame position is located, and search forward one time slot at a time until the time slot numbered q is found for the first time. The time slot numbered q found for the first time is used as the statistical time slot.

[0109] It can be understood that, starting from a certain reference position time slot in the payload of the signal frame of the optical data unit signal, pointing forward to the left and upward, that is, if the reference position time slot is not the first time slot of a row of payload, the first time slot forward refers to the first time slot on its left, and if the reference position time slot is the first time slot of a row of payload, the first time slot forward refers to the last time slot of the previous row. In the process of searching for statistical time slots, the time slot where the specific frame position is located must be one of the m time slots, but when searching one time slot after another from this time slot forward, each time slot to be searched is not necessarily one of the m time slots. Starting from the time slot where the specific frame position is located, first find the first time slot on its left. If the time slot number is not q, start from the first time slot on its left, continue to find the first time slot on its left, and check whether it is the time slot number q, and so on, that is, starting from the time slot where the specific frame position is located, search one time slot forward one by one until the time slot with the time slot number q is found for the first time.

[0110] In the specific implementation process, Figure 5 As shown in the figure, one square represents one time slot, and the number in the square represents the time slot number. One time slot includes 16 consecutive bytes. There are 119 time slots in the signal frame of the optical data unit signal. Since one line of payload includes 3808 bytes, the time slot number 1 to the time slot number 119 just corresponds to the signal frame payload of half a line of the optical data unit signal. Figure 5 In the figure, it is assumed that the optical service unit signal occupies 3 time slots, and the time slot numbers are 3, 9, and 119 respectively, the length of the optical service unit signal frame is 16*22 bytes, and all time slots with time slot numbers of 3, 9, and 119 in the signal frame of the current optical data unit signal all correspond to data blocks, that is, there is no filling block, and the rate information of the optical service unit signal is located in the first 16-byte block of the signal frame. The specific frame position of the signal frame of the optical service unit signal is defined as the rate information overhead, and q is 1, that is, starting from the time slot where the rate information overhead in the signal frame of the current optical service unit signal is located, search forward one time slot at a time until the first time slot numbered 1 is found, and the found time slot is used as the statistical time slot corresponding to the signal frame of the current optical service unit signal. Figure 5 The time slot where the rate information overhead of the previous frame of the optical service unit signal is located is located in the time slot number 9 of the first half of the first row of the signal frame of the optical data unit signal. In order to find the statistical time slot corresponding to the previous frame, starting from the time slot numbered 9, search for the time slot numbered 1 one by one to the left. The nearest time slot numbered 1 is the time slot numbered 1 in the first half of the first row. Therefore, the time slot numbered 1 in the first half of the first row is the statistical time slot corresponding to the previous frame of the optical service unit signal; the time slot where the rate information overhead of the current frame of the optical service unit signal is located is Figure 5 The time slot numbered 119 in the second half of the 4th row of the signal frame of the optical data unit signal is used. Starting from the time slot numbered 119, the time slot numbered 1 is searched for one by one to the left. The nearest time slot numbered 1 is the time slot numbered 1 in the second half of the 4th row. Therefore, the time slot numbered 1 in the second half of the 4th row is the statistical time slot corresponding to the current frame of the optical service unit signal. According to the above method, a corresponding statistical time slot can be found for each signal frame of the optical service unit signal.

[0111] In addition, refer to Figure 6 In this embodiment, step S30 includes:

[0112] Step S301: Obtain the statistical time slot corresponding to the signal frame of each optical service unit signal.

[0113] It can be understood that the specific method for obtaining the statistical time slots is shown in the above steps S21 and S22, wherein the time slot number of each statistical time slot is q.

[0114] Step S302: taking the sending time of the statistical time slot as a reference time point of the statistical time.

[0115] It can be understood that the reference time point of the statistical time is the time point corresponding to the statistical time slot. In the process of sending the optical data unit signal, each time slot of the signal frame payload of the optical data unit signal has a sending time point, so the statistical time slot also has a sending time point, and the sending time point is the reference time point of the statistical time.

[0116] During the specific implementation process, during the signal sending process after the optical service unit signal is loaded into the signal frame process of the optical data unit signal, the sending time point corresponding to each time slot can be recorded, and then the sending time point corresponding to the statistical time slot can be recorded, and the recorded sending time point corresponding to the statistical time slot can be used as the reference time point of the statistical time.

[0117] Step S303: taking the time interval between the reference time points of the adjacent statistical times as the statistical time of the reference signal.

[0118] It should be understood that, according to the above method, each optical service unit signal frame corresponds to a statistical time, and the specific time length of each statistical time is close to the optical service unit signal frame period, but not completely equal. Since the reference time point of each statistical time is based on the time slot numbered q, and the time interval of the time slot numbered q is independent of the time slot distribution of m time slots, the time length of the statistical time is not affected by the distribution of m time slots. For example, p = 119, m = 3, assuming that 3 time slots are evenly distributed in 119 time slots, for example, 3 time slots correspond to time slot numbers 40, 80, and 119 respectively, and 3 time slots are unevenly distributed, for example, 3 time slots correspond to time slot numbers 2, 3, and 4 respectively. Under the above two time slot distribution modes, q is equal to 1. At this time, the statistical time of the same signal frame under the two time slot distribution modes is the same length. The characteristics of statistical time and time slot distribution being independent can obtain more stable statistical time and reduce the difficulty of hardware implementation of rate recovery.

[0119] It should be understood that the rate of the reference signal is equal to the number of bits of the reference signal within the statistical time. At this time, it is not necessary for each statistical time to be absolutely equal. First, unequal statistical times can be processed into equal statistical times. For example, unequal statistical times can be converted into another equal statistical time through calculation. At this time, the number of bits of the reference signal within the statistical time can also be converted similarly. The rate of the reference signal can also be directly calculated based on multiple groups of statistical times with unequal time lengths and the number of bits of the reference signal.

[0120] Reference Figure 7 In this embodiment, step S40 includes:

[0121] Step S401: Counting the number of bits of the reference signal within the statistical time.

[0122] It is understandable that the reference signal can be the optical service unit signal itself, or it can be a clock signal with a specific frequency and synchronized with the optical service unit signal. Since the reference signal has a rate, a specific number of reference signal bits can be counted within the statistical time, and the specific number of bits counted is determined by the rate of the reference signal. It should be noted that if the reference signal is a clock signal, the number of clock cycles counted within the statistical time is used as the number of reference signal bits. The above number of reference signal bits counted within the statistical time is the number of reference signal bits counted within the statistical time.

[0123] Step S402: Save the counted number of bits of the reference signal in the rate information overhead of the signal frame of the optical service unit signal.

[0124] It can be understood that the signal frame of the optical service unit signal includes overhead and payload, and the rate information overhead can be defined in the overhead of the signal frame of the optical service unit signal.

[0125] It should be understood that after the optical service unit signal is loaded into the m time slots of the signal frame payload of the optical data unit signal, it is necessary to determine the statistical time slot, determine the statistical time according to the statistical time slot, obtain the number of bits of the reference signal within the statistical time, and save the obtained number of bits of the reference signal in the overhead of the optical service unit signal. Although the statistical time can only be obtained after the optical data unit signal is sent, since each frame corresponds to a statistical time, the rate information overhead of the current frame can be used to save the number of bits of the reference signal corresponding to the statistical time of the previous frame. For example, assuming that the rate information overhead of the i-th frame of the optical service unit signal is currently being sent, at this time, all the contents of the i-1th frame of the optical service unit signal have been sent, and the interval between the sending time point corresponding to the statistical time slot of the i-1th frame and the sending time point corresponding to the statistical time slot of the i-2th frame is taken as the statistical time, and the number of bits of the reference signal counted within the above statistical time is saved in the rate information overhead of the i-th frame.

[0126] It can be understood that it is only necessary to send out the number of bits of the reference signal counted within each statistical time. The counted number of bits of the reference signal can be saved in the rate information overhead of the signal frame of the optical service unit signal, or in the specific overhead of the signal frame of the optical service branch unit signal, or in the specific overhead of the signal frame of the optical data unit signal.

[0127] Based on the above first embodiment or second embodiment, a third embodiment of the rate recovery method of the present invention is proposed.

[0128] Reference Figure 8 In the third embodiment, the step S50 includes:

[0129] Step S501: Load the optical data unit signal into the signal frame payload of other signals and send the other signals.

[0130] It should be understood that the optical data unit signal cannot be directly transmitted in the physical medium, so sending the optical data unit signal generally includes loading the optical data unit signal to be sent into the payload of other signals, and sending the optical data unit signal is achieved by sending the other signals. In this embodiment, for example, the other signal can be a target optical data unit signal with a transmission rate greater than the transmission rate of the optical data unit signal, or the other signal can also be an optical transmission unit signal with a rate corresponding to the optical data unit signal, and the other signal can be directly transmitted in the physical medium. If the other signal cannot be directly transmitted in the physical medium, the other signal can be further loaded into a second other signal, and the second other signal can be directly transmitted in the physical medium.

[0131] For example, the optical data unit signal is an optical data unit 2 signal (ODU2), and the other signal may be an optical data unit 4 signal (ODU4). The optical data unit 2 signal (ODU2) is loaded into the payload of the optical data unit 4 signal (ODU4), and then the optical data unit 4 signal (ODU4) is sent. Since the optical data unit 4 signal cannot be directly transmitted in the physical medium, the optical data unit 4 signal may be further converted into an optical transmission unit 4 signal (OTU4), or further loaded into an optical transmission unit Cn signal (OTUCn), and then the optical transmission unit 4 signal or the optical transmission unit Cn signal is sent. Alternatively, the other signal may be an optical transmission unit 2 signal (OTU2), and the optical data unit 2 signal (ODU2) is converted into an optical transmission unit 2 signal (OTU2), and then the optical transmission unit 2 signal (OTU2) is sent.

[0132] Correspondingly, after step S501, the following steps are further included:

[0133] Step S502: when receiving the other signal, extract the optical data unit signal from the signal frame payload of the other signal.

[0134] It can be understood that, in the case of receiving the other signal, it is also necessary to extract the optical data unit signal from the signal frame payload of the other signal.

[0135] Step S503: extracting the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal.

[0136] It is understandable that before the rate of the optical service unit signal needs to be restored, it is also necessary to receive an optical data unit signal and extract the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal.

[0137] In addition, refer to Fig. 9 In this embodiment, step S60 specifically includes:

[0138] Step S601: when the rate of the optical service unit signal needs to be restored, the statistical time slot corresponding to the signal frame of the optical service unit signal is obtained.

[0139] It should be noted that this step corresponds to obtaining the statistical time slot corresponding to the signal frame of the optical service unit signal from the signal frame payload of the received optical data unit signal, wherein the received optical data unit signal can refer to step S502, that is, taking out the optical data unit signal from the signal frame payload of the other signal, and taking the taken out optical data unit signal as the received optical data unit signal. The method for obtaining the statistical time slot must be exactly the same as step S20. For example, if the time slot number q of the statistical time slot is determined to be 20 in step S20, then the time slot number q of the statistical time slot determined in this step must also be 20. If the position of the signal frame of an optical service unit signal is determined to be the frame header in step 20, and the first time slot numbered q found from the frame header is used as the statistical time slot, then the position of the signal frame of an optical service unit signal determined in this step must also be the frame header, and the first time slot numbered q found from the frame header is used as the statistical time slot.

[0140] Step S602: Determine the statistical time of the reference signal according to the statistical time slot.

[0141] It is understandable that this step corresponds to determining the statistical time according to the statistical time slot from the signal frame payload of the received optical data unit signal, and the specific method is exactly the same as step S30. It is understandable that after each frame determines a statistical time slot, each statistical time slot corresponds to a time point. In the process of receiving the optical data unit signal, each time slot of the signal frame payload of the optical data unit signal has a receiving time point, so the statistical time slot also has a receiving time point, and the receiving time point of the statistical time slot is used as the time point corresponding to the statistical time slot, and the interval time between the time points corresponding to two adjacent statistical time slots is used as the statistical time.

[0142] Step S603: Acquire the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal.

[0143] It can be understood that this step corresponds to extracting the optical service unit signal from the signal frame payload of the received optical data unit signal, and then obtaining the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal.

[0144] It is understandable that the reference signal can be the optical service unit signal itself, or a clock signal with a specific frequency and synchronized with the optical service unit signal. The specific signal type of the reference signal must be consistent with the type of the reference signal determined in step S402.

[0145] It is understandable that the signal frame of the optical service unit signal includes overhead and payload, and the rate information overhead can be defined in the overhead of the signal frame of the optical service unit signal. The rate information overhead in this step must be consistent with the rate information overhead defined in step S402.

[0146] It can be understood that in step S402, the rate information overhead of the current frame saves the number of bits of the reference signal corresponding to the statistical time of the previous frame. For example, assuming that the rate information overhead of the i-th frame of the optical service unit signal is currently being sent, at this time, all the contents of the i-1th frame of the optical service unit signal have been sent, and the interval between the sending time point corresponding to the statistical time slot of the i-1th frame and the sending time point corresponding to the statistical time slot of the i-2th frame is taken as the statistical time, and the number of bits of the reference signal counted within the above statistical time is saved in the rate information overhead of the i-th frame. Correspondingly, in this step, assuming that the rate information overhead of the i-th frame of the optical service unit signal is currently being received, at this time, all the contents of the i-1th frame of the optical service unit signal have been received, and the interval between the receiving time point corresponding to the statistical time slot of the i-1th frame and the receiving time point corresponding to the statistical time slot of the i-2th frame is taken as the statistical time, as the statistical time corresponding to the number of bits of the reference signal taken out from the rate information overhead of the i-th frame.

[0147] It can be understood that in step S402, the counted number of bits of the reference signal can be saved in the rate information overhead of the signal frame of the optical service unit signal, or in the specific overhead of the signal frame of the optical service branch unit signal, or in the specific overhead of the signal frame of the optical data unit signal. Correspondingly, this step also needs to extract the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal, or from the specific overhead of the signal frame of the optical service branch unit signal, or from the specific overhead of the signal frame of the optical data unit signal.

[0148] Step S604: Recover the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal.

[0149] It can be understood that the rate of the signal is equal to the number of bits per unit time, so when the statistical time and the number of bits in the statistical time are known, the rate of the reference signal can be recovered. Since the reference signal may be an optical service unit signal, or it may be a clock signal with a specific frequency and synchronized with the optical service unit signal, if the reference signal is an optical service unit signal, then the rate of the reference signal can be recovered, and the rate of the optical service unit signal can also be recovered; if the reference signal is a clock signal with a specific frequency and synchronized with the optical service unit signal, since the optical service unit signal also has a specific rate value, and there is a fixed ratio relationship between the frequency of the clock signal and the rate of the optical service unit signal, when the reference signal rate is recovered, the rate of the reference signal is equal to the frequency of the clock signal, and then based on this fixed ratio relationship, the rate of the optical service unit signal can be recovered.

[0150] In a first embodiment, a rate recovery method is provided, which divides a signal frame payload of an optical data unit signal into p time slots, and loads an optical service unit signal into m time slots of the signal frame payload of the optical data unit signal; obtains a statistical time slot corresponding to the signal frame of the optical service unit signal; determines a statistical time of a reference signal according to the statistical time slot; obtains the number of bits of the reference signal within the statistical time; sends the optical data unit signal; and when it is necessary to recover the rate of the optical service unit signal, recovers the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal.

[0151] In the present invention, the signal frame payload of the optical data unit signal is divided into time slots, and then the statistical time of the reference signal is determined according to the statistical time slots corresponding to the signal frames of the optical service unit signal, and the statistical time is used to replace the optical service branch unit signal frame period, thereby avoiding the influence of the long optical service branch unit signal frame period on the rate recovery effect of the reference signal.

[0152] In addition, an embodiment of the present invention further provides a storage medium, on which a rate recovery program is stored. When the rate recovery program is executed by a processor, the steps of the rate recovery method described above are implemented.

[0153] In addition, refer to Fig.10 , an embodiment of the present invention also proposes a rate recovery device.

[0154] In this embodiment, the rate recovery device includes:

[0155] A loading module 10, used for dividing the signal frame payload of the optical data unit signal into p time slots, and loading the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p;

[0156] A position selection module 20, used to obtain a statistical time slot corresponding to a signal frame of the optical service unit signal;

[0157] A time determination module 30, configured to determine a statistical time of a reference signal according to the statistical time slot;

[0158] An information acquisition module 40 is used to obtain the number of bits of the reference signal within the statistical time;

[0159] A signal sending module 50, configured to send the optical data unit signal;

[0160] The rate recovery module 60 is used to recover the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal when it is necessary to recover the rate of the optical service unit signal.

[0161] In this embodiment, a rate recovery device is provided, which divides the signal frame payload of the optical data unit signal into p time slots through a loading module 10, and loads the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal; the position selection module 20 obtains the statistical time slot corresponding to the signal frame of the optical service unit signal; the time determination module 30 determines the statistical time of the reference signal according to the statistical time slot; the information acquisition module 40 obtains the number of bits of the reference signal within the statistical time; the signal sending module 50 sends the optical data unit signal; the rate recovery module 60 recovers the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal when it is necessary to recover the rate of the optical service unit signal.

[0162] In this embodiment, the signal frame payload of the optical data unit signal is divided into time slots, and then the statistical time of the reference signal is determined according to the statistical time slots corresponding to the signal frames of the optical service unit signal. The statistical time is used to replace the optical service branch unit signal frame period, thereby avoiding the long optical service branch unit signal frame period affecting the rate recovery effect of the reference signal.

[0163] In one embodiment, the position selection module 20 is further used to obtain a specific frame position of a signal frame of the optical service unit signal; and search forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal.

[0164] In one embodiment, the position selection module 20 is also used to number the p time slots, each of the time slots corresponds to a time slot number, and the value of the time slot number is 1 to p; determine an integer q, where q is an integer greater than or equal to 1 and less than or equal to p; starting from the specific frame position, search forward one by one until the time slot with the time slot number q is found for the first time; and use the time slot with the time slot number q found for the first time as the statistical time slot corresponding to the signal frame of the optical service unit signal.

[0165] In one embodiment, the specific frame position of the signal frame of the optical service unit signal is the position where the frame header of the signal frame of the optical service unit signal is located; or, the specific frame position of the signal frame of the optical service unit signal is the position where a specific overhead of the signal frame of the optical service unit signal is located, and the specific overhead is any specified overhead; or, the specific frame position of the signal frame of the optical service unit signal is the position where a specific payload of the signal frame of the optical service unit signal is located, and the specific payload is any specified position in the payload of the signal frame.

[0166] In one embodiment, the time determination module 30 is also used to obtain the statistical time slot corresponding to the signal frame of each optical service unit signal; use the sending time of the statistical time slot as the reference time point of the statistical time; and use the time interval between the reference time points of adjacent statistical times as the statistical time of the reference signal.

[0167] In one embodiment, the information acquisition module 40 is further used to count the number of bits of the reference signal within the statistical time; and save the counted number of bits of the reference signal in the rate information overhead of the signal frame of the optical service unit signal.

[0168] In one embodiment, in the information acquisition module 40, the reference signal is the optical service unit signal, or the reference signal is a clock signal having a specific frequency and synchronized with the optical service unit signal.

[0169] In one embodiment, the signal sending module 50 is further used for loading the optical data unit signal into a signal frame payload of other signals and sending the other signals; when receiving the other signals, taking out the optical data unit signal from the signal frame payload of the other signals; wherein the other signals are target optical data unit signals having a rate greater than the rate of the optical data unit signal, or the other signals are optical transmission unit signals.

[0170] In one embodiment, the signal sending module 50 is further configured to extract the optical service unit signal from the m time slots of the signal frame payload of the optical data unit signal.

[0171] In one embodiment, the rate recovery module 60 is also used to obtain the statistical time slot corresponding to the signal frame of the optical service unit signal when it is necessary to recover the rate of the optical service unit signal; determine the statistical time of the reference signal according to the statistical time slot; obtain the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal; recover the rate of the reference signal according to the statistical time and the number of bits of the reference signal, and recover the rate of the optical service unit signal according to the recovered rate of the reference signal.

[0172] Other embodiments or specific implementations of the rate recovery device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.

[0173] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0174] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as names.

[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0176] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A rate recovery method, characterized in that: The rate recovery method comprises: Divide the signal frame payload of the optical data unit signal into p time slots, and load the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p; Obtaining a statistical time slot corresponding to a signal frame of the optical service unit signal; Determine the statistical time of the reference signal according to the statistical time slot; Obtaining the number of bits of the reference signal within the statistical time; sending the optical data unit signal; When it is necessary to restore the rate of the optical service unit signal, the rate of the optical service unit signal is restored according to the statistical time and the number of bits of the reference signal.

2. The rate recovery method according to claim 1, characterized in that: The obtaining of the statistical time slot corresponding to the signal frame of the optical service unit signal specifically includes: Acquire a specific frame position of a signal frame of the optical service unit signal; The statistical time slot corresponding to the signal frame of the optical service unit signal is searched forward from the specific frame position.

3. The rate recovery method according to claim 2, characterized in that: Before searching forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal, the method includes: Numbering the p time slots, each of the time slots corresponds to a time slot number, and the time slot number ranges from 1 to p; Determine an integer q, wherein q is an integer greater than or equal to 1 and less than or equal to p; Correspondingly, searching forward from the specific frame position for the statistical time slot corresponding to the signal frame of the optical service unit signal specifically includes: Starting from the specific frame position, searching forward one by one in the time slots until the time slot with the time slot number q is found for the first time; The time slot numbered as q that is found for the first time is used as the statistical time slot corresponding to the signal frame of the optical service unit signal.

4. The rate recovery method according to claim 2, characterized in that: The specific frame position of the signal frame of the optical service unit signal is the position where the frame header of the signal frame of the optical service unit signal is located; Or, the specific frame position of the signal frame of the optical service unit signal is the position where the specific overhead of the signal frame of the optical service unit signal is located, and the specific overhead is any specified overhead; Or, the specific frame position of the signal frame of the optical service unit signal is the position where a specific payload of the signal frame of the optical service unit signal is located, wherein the specific payload is any specified position in the signal frame payload.

5. The rate recovery method according to claim 1, characterized in that: The determining the statistical time of the reference signal according to the statistical time slot specifically includes: Obtain the statistical time slot corresponding to the signal frame of each optical service unit signal; Using the sending time of the statistical time slot as the reference time point of the statistical time; The time interval between the adjacent reference time points of the statistical time is used as the statistical time of the reference signal.

6. The rate recovery method according to claim 5, characterized in that: The obtaining the number of bits of the reference signal within the statistical time includes: Counting the number of bits of the reference signal within the statistical time; The counted number of bits of the reference signal is stored in the rate information overhead of the signal frame of the optical service unit signal.

7. The rate recovery method according to claim 1, characterized in that: The reference signal is the optical service unit signal, or the reference signal is a clock signal having a specific frequency and synchronized with the optical service unit signal.

8. The rate recovery method according to claim 6, characterized in that: Sending the optical data unit signal specifically includes: Loading the optical data unit signal into a signal frame payload of other signals and sending the other signals; Correspondingly, after sending the optical data unit signal, the method includes: When receiving the other signal, extracting the optical data unit signal from the signal frame payload of the other signal; The other signal is a target optical data unit signal whose rate is greater than that of the optical data unit signal, or the other signal is an optical transmission unit signal.

9. The rate recovery method according to claim 8, characterized in that: After the optical data unit signal is taken out from the signal frame payload of the other signal when the other signal is received, the method further comprises: The optical service unit signal is taken out from the m time slots of the signal frame payload of the optical data unit signal.

10. The rate recovery method according to claim 9, characterized in that: When it is necessary to restore the rate of the optical service unit signal, restoring the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal includes: When it is necessary to restore the rate of the optical service unit signal, obtaining the statistical time slot corresponding to the signal frame of the optical service unit signal; Determine the statistical time of the reference signal according to the statistical time slot; Acquire the number of bits of the reference signal from the rate information overhead of the signal frame of the optical service unit signal; Recovering the rate of the reference signal according to the statistical time and the number of bits of the reference signal; The rate of the optical service unit signal is restored according to the restored rate of the reference signal.

11. A rate recovery device, characterized in that: The rate recovery device comprises: A loading module, used for dividing the signal frame payload of the optical data unit signal into p time slots, and loading the optical service unit signal into m time slots of the signal frame payload of the optical data unit signal, wherein p and m are positive integers greater than zero, and m is less than or equal to p; A position selection module, used to obtain the statistical time slot corresponding to the signal frame of the optical service unit signal; A time determination module, used to determine the statistical time of the reference signal according to the statistical time slot; An information acquisition module, used to acquire the number of bits of the reference signal within the statistical time; A signal sending module, used for sending the optical data unit signal; The rate recovery module is used to restore the rate of the optical service unit signal according to the statistical time and the number of bits of the reference signal when the rate of the optical service unit signal needs to be restored.

12. A storage medium, characterized in that: The storage medium stores a rate recovery program, which, when executed by a processor, implements the steps of the rate recovery method according to any one of claims 1 to 10.

13. A rate recovery device, characterized in that: The rate recovery device comprises: a memory, a processor, and a rate recovery program stored in the memory and executable on the processor, wherein the rate recovery program implements the steps of the rate recovery method according to any one of claims 1 to 10 when executed by the processor.