Method and apparatus for rate recovery of a fixed rate signal
By using the overhead of fixed-rate signals to record and recover rate information at the source and destination nodes, the problem of loss of rate information of customer signals after service signal transmission is solved, and accurate recovery of customer signal rate and efficient utilization of bandwidth are achieved.
Patent Information
- Application Number
- CN202210795117.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-07-07
AI Technical Summary
The problem arises when the customer signal is loaded into the service signal, resulting in the loss of the customer signal's rate information.
At the source node, the fixed-rate signal is loaded into the payload of the service signal, and the number of bits of the fixed-rate signal in each statistical period is counted using the frame period of the service signal. The rate information is recorded using the overhead of the fixed-rate signal and loaded into the overhead of the service signal. After the destination node receives the service signal, the rate of the client signal is recovered through the specific overhead of the fixed-rate signal.
It effectively restored the rate information of the customer signal, avoided the loss of rate information during transmission, saved service signal overhead resources, and improved bandwidth utilization.
Smart Images

Figure CN117411789B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of communications, and in particular, to a rate recovery method and device for a constant bit rate signal. BACKGROUND
[0002] A constant bit rate signal (CBR) is a signal with a fixed bit rate. High-rate signals transmitted in a physical medium are all constant bit rate signals, such as Ethernet physical layer signals, synchronous digital hierarchy (SDH) signals, optical transport network (OTN) signals, and flexible Ethernet (FlexE) signals.
[0003] A constant bit rate signal can be directly transmitted in a physical medium, or can be packed into another constant bit rate signal for transmission. In an OTN device, for example, an optical transport unit-k (OTUk) is a constant bit rate signal and can be directly transmitted in a physical medium. An optical data unit-0 (ODU0) is a constant bit rate signal, and the ODU0 can be packed into the payload of an ODU4, and then the ODU4 is converted into an OTU4, which is transmitted in a physical medium. A constant bit rate signal packed into another constant bit rate signal is referred to as a client signal, and a signal into which another signal is packed is referred to as a service signal, i.e., the client signal is packed into the service signal. If the rates of the client signal and the service signal have no following relationship, the rate information of the client signal will be lost after the client signal is packed into the service signal. For example, the ODU4 is packed into the OTU4, and the rate of the OTU4 follows the rate of the ODU4, i.e., the rate of the OTU4 also changes slightly when the rate of the ODU4 changes slightly, and thus the rate information of the ODU4 is actually saved in the rate information of the OTU4, and thus the rate information of the ODU4 is not lost. However, if the ODU0 is packed into the ODU4, the rate of the ODU4 will not follow the rate of the ODU0, and thus the rate information of the ODU0 is lost. After the service signal is transmitted, the client signal needs to be extracted from the service signal, and if the rate of the client signal is lost, the extracted client signal is meaningless. SUMMARY
[0004] Embodiments of the present application provide a rate recovery method and device for a constant bit rate signal, to at least solve the problem that the rate of a client signal is lost after the client signal is packed into a service signal and transmitted.
[0005] According to one embodiment of the present application, a rate recovery method of a fixed rate signal is provided, which comprises: packing the fixed rate signal into a payload of a service signal at a source node, and counting a number of bits of the fixed rate signal in each statistical period with a frame period of the service signal as the statistical period, wherein the service signal is a fixed rate fixed-length frame signal, the fixed rate signal comprises overhead and payload, and the overhead of the fixed rate signal comprises rate information overhead; determining a specified time interval according to a position of a specific overhead of the fixed rate signal in the payload of the service signal, and packing a sum of the number of bits of the fixed rate signal counted in all statistical periods corresponding to the specified time interval as rate information into the rate information overhead of the fixed rate signal, and sending the service signal from the source node, wherein the specified time interval is longer than the statistical period; receiving the service signal at a sink node, and obtaining the fixed rate signal from the service signal, obtaining the specified time interval according to the position of the specific overhead of the fixed rate signal in the payload of the service signal, obtaining a number of statistical periods corresponding to the specified time interval, obtaining the sum of the number of bits from the rate information overhead, and recovering the rate of the fixed rate signal according to the number of statistical periods and the sum of the number of bits of the fixed rate signal.
[0006] In one exemplary embodiment, before the sink node receives the service signal, it further comprises: receiving the service signal at an intermediate node, obtaining the fixed rate signal from the service signal, and recovering the rate of the fixed rate signal; packing the fixed rate signal into a new service signal, and sending the new service signal from the intermediate node.
[0007] In one exemplary embodiment, the fixed rate signal is a fixed-length frame signal, the specified time interval is determined by positions of the specific overhead of M frames of the fixed rate signal, wherein the specific overhead can be a frame positioning overhead, or the rate information overhead, or other overhead, a start time of the specified time interval is determined by a position of the specific overhead of an Nth frame in M frames of the fixed rate signal, and an end time of the specified time interval is determined by a position of the specific overhead of an Nth frame in next M frames of the fixed rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M. The specified time interval comprises C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the number of bits of the fixed rate signal counted in the C statistical periods is the rate information.
[0008] In one example embodiment, the fixed rate signal is a non-fixed frame signal, the specified time interval is determined by the location of the specific overhead of M frames of the fixed rate signal, wherein the specific overhead is a frame alignment overhead, or the rate information overhead, or other overhead, the start time of the specified time interval is determined by the location of the specific overhead of the Nth frame of M frames of the fixed rate signal, the end time of the specified time interval is determined by the location of the specific overhead of the Nth frame of the next M frames of the fixed rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M, the specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the number of bits of the fixed rate signal counted in the C statistical periods is used as the rate information.
[0009] In one example embodiment, the non-fixed frame signal is composed of E overhead units and F payload units, wherein E and F are integers greater than or equal to 1, the data unit is K bytes, or K P / Qb encoding, wherein K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, b represents a bit, and Qb represents an encoding block composed of Q bits, and the value of E or F corresponding to each frame can change. For example, the current frame E and F are 1 and 100 respectively, and the next frame E and F are 2 and 128 respectively. One embodiment of P / Qb encoding is 64 / 66b encoding (the specific definition of 64 / 66b encoding can be found in IEEE 802.3), and E and F are variable values, while K, P and Q are fixed values. The overhead of the non-fixed frame includes at least a frame alignment overhead, which is used to indicate the start of the current frame and the end of the previous frame.
[0010] In one example embodiment, the fixed rate signal is a non-fixed frame signal, the specified time interval is determined by the location of the specific overhead of M frames of the fixed rate signal, wherein the specific overhead is a frame alignment overhead, or the rate information overhead, or other overhead, the start time of the specified time interval is determined by the location of the specific overhead of the Nth frame of M frames of the fixed rate signal, the end time of the specified time interval is determined by the location of the specific overhead of the Nth frame of the next M frames of the fixed rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M, the specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the number of bits of the fixed rate signal counted in the C statistical periods is used as the rate information.
[0011] In one example embodiment, the frameless signal is composed of overhead of R data units and payload of S data units, where R and S are integers greater than or equal to 1, and the values of R or S can change, the data units are K P / Qb encoding, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P. For example, one embodiment of P / Qb encoding is 64 / 66b encoding, the values of R and S can change, and the values of K, P and Q are fixed, and there is no frame alignment overhead in the overhead of the frameless structure.
[0012] In one example embodiment, the step of packing the fixed rate signal into the payload of the service signal includes: directly packing the fixed rate signal into the payload of the service signal; or packing the fixed rate signal into an intermediate signal, and packing the intermediate signal into the payload of the service signal, where the intermediate signal is a fixed rate signal.
[0013] In one example embodiment, the step of taking the sum of the number of bits of the fixed rate signal in C statistical periods corresponding to a specified time interval as rate information includes: determining the C statistical periods corresponding to the specified time interval, and adding the number of bits of the fixed rate signal in the C statistical periods as the rate information.
[0014] In one example embodiment, the step of determining the C statistical periods corresponding to the specified time interval includes: C is the number of counted end points of statistical periods in the specified time interval, and the end point of the statistical period is the frame alignment overhead of the service signal.
[0015] In one example embodiment, the step of determining the specified time interval according to the position of the specific overhead of the fixed rate signal in the payload of the service signal, and obtaining the number of the statistical periods corresponding to the specified time interval includes: obtaining the specified time interval and C statistical periods contained in the specified time interval, where C is an integer greater than or equal to 1, and C is the number of the statistical periods corresponding to the specified time interval.
[0016] In one example embodiment, the step of recovering the rate of the fixed rate signal according to the number of the statistical periods and the sum of the number of bits of the fixed rate signal further includes: taking the number of the statistical periods as C, where C is an integer greater than or equal to 1, obtaining the time corresponding to the C statistical periods according to the frame alignment overhead of the service signal, and calculating the rate of the fixed rate signal according to the number of bits of the fixed rate signal.
[0017] In one example embodiment, the fixed-length frame is composed of an overhead of A data units plus a payload of B data units, where A and B are integers greater than or equal to 1, the data unit is K bytes or K P / Qb encoding, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P. For example, one example of P / Qb encoding is 64 / 66b encoding, and A, B, K, P and Q are all fixed values. The overhead of the fixed-length frame includes at least a frame positioning overhead for indicating the beginning of the current frame and the end of the previous frame.
[0018] According to another embodiment of the present application, a rate recovery device for a fixed-rate signal is provided, which comprises: a statistical module located in a source node, configured to pack the fixed-rate signal into a payload of a service signal, and to count the number of bits of the fixed-rate signal in each statistical period, where the service signal adopts fixed-length frames with a fixed rate, and the fixed-rate signal includes an overhead and a payload, and the overhead of the fixed-rate signal includes a rate information overhead; a first sending module located in the source node, configured to determine a specified time interval according to the position of a specific overhead of the fixed-rate signal in the payload of the service signal, to sum the number of bits of the fixed-rate signal counted in all statistical periods corresponding to the specified time interval as rate information, to pack the rate information into the rate information overhead of the fixed-rate signal, and to send the service signal from the source node, where the specified time interval is greater than the statistical period; and a first recovery module located in a sink node, configured to receive the service signal, to obtain the fixed-rate signal from the service signal, to obtain the specified time interval according to the position of the specific rate information overhead of the fixed-rate signal in the payload of the service signal, to obtain the number of statistical periods corresponding to the specified time interval, to obtain the sum of the number of bits from the rate information overhead, and to recover the rate of the fixed-rate signal according to the number of statistical periods and the sum of the number of bits of the fixed-rate signal.
[0019] In one example embodiment, the device further comprises: a second recovery module located in an intermediate node, configured to receive the service signal, to obtain the fixed-rate signal from the service signal, and to recover the rate of the fixed-rate signal; and a second sending module located in the intermediate node, configured to pack the fixed-rate signal into a new service signal, and to send the new service signal from the intermediate node.
[0020] According to yet another embodiment of the present application, a computer readable storage medium is further provided, which stores a computer program, where the computer program is configured to execute the steps in any of the method embodiments described above when running.
[0021] According to still another embodiment of the present application, there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
[0022] By the above embodiments of the present application, when the fixed rate signal is packed into the service signal, the rate information for recovering the customer signal rate is recorded in the overhead of the fixed rate signal, and when the fixed rate signal is taken out from the service signal, the rate for recovering the customer signal rate is recovered according to the rate information in the overhead for recovering the customer signal rate, thereby solving the problem that the customer signal rate information is lost after the customer signal rate is transmitted through the service signal. BRIEF DESCRIPTION OF DRAWINGS
[0023] Figure 1 is a schematic diagram of a computer terminal structure according to an embodiment of the present application;
[0024] Figure 2 is a flow chart of a method for recovering the rate of a fixed rate signal according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of packing multiple customer signals into one service signal according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of the correspondence between a transmission period and a statistical period according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of the correspondence between a transmission period and a statistical period according to another embodiment of the present application;
[0028] Figure 6 is a schematic diagram of the structure of a device for recovering the rate of a fixed rate signal according to an embodiment of the present application;
[0029] Figure 7 is a schematic diagram of the structure of a device for recovering the rate of a fixed rate signal according to another embodiment of the present application; DETAILED DESCRIPTION
[0030] Embodiments of the present application will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0031] It should be noted that the terms "first", "second", and the like in the description and claims of the present application and in the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence.
[0032] A fixed-rate signal is a signal with a fixed bit rate. A signal with a higher rate transmitted in a physical medium is a fixed-rate signal. For a fixed-rate signal, it can be a fixed-length frame signal, a non-fixed-length frame signal, or a frameless signal. Specifically, a fixed-length frame signal is composed of overhead and payload. For example, a fixed-length frame is composed of A data units of overhead and B data units of payload, where A and B are integers greater than or equal to 1, the data unit is K bytes or K P / Qb encoding, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P. For example, an example of P / Qb encoding is 64 / 66b encoding, A, B, K, P and Q are fixed values, and the signal is composed of frame by frame data. The overhead and payload in each frame are exactly the same, and the overhead of the fixed-length frame signal includes frame positioning overhead for indicating the start of the current frame and the end of the previous frame. The frame in the fixed-length frame is a signal structure composed of a certain number of overhead and a certain number of payload. For example, ODUi signal in OTN, i = 0, 1, 2, 2e, 3, 4, flex, OTUk signal, k = 1, 2, 3, 4, FlexE Group signal in FlexE standard, etc. A non-fixed-length frame signal is composed of overhead and payload. For example, a non-fixed-length frame signal is composed of E data units of overhead and F data units of payload, where E and F are integers greater than or equal to 1, and the value of E or F corresponding to each frame can change, i.e., the frame length of each frame can be different. The data unit is K bytes or K P / Qb encoding, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P. The overhead of the non-fixed-length frame signal includes at least frame positioning overhead for indicating the start of the current frame and the end of the previous frame. A frameless signal is composed of R data units of overhead and S data units of payload, where R and S are integers greater than or equal to 1, and the value of R or S can change. The data unit is K P / Qb encoding, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P. The overhead of the frameless signal does not include frame positioning overhead.
[0033] A fixed-rate signal can be directly transmitted in a physical medium, or it can be packed into another fixed-rate signal for transmission. If the rates of the client signal and the service signal have no following relationship, the rate information of the client signal will be lost after the client signal is packed into the service signal. When the client signal needs to be extracted from the service signal, the extracted client signal is meaningless if the rate of the client signal is lost. Therefore, it is currently considered to record the rate information of the client signal when the client signal is packed into the service signal, so that the rate of the client signal can be recovered according to the recorded rate information when the client signal is extracted from the service signal. Figure 3Fig. 1 is a schematic diagram of packing j client signals into one service signal according to an embodiment of the present application, where j is an integer greater than 1. When packing one or more client signals into one service signal, the rate information of all client signals is recorded, and when extracting one or more client signals from one service signal, the rate of each client signal needs to be recovered according to the rate information of each client signal.
[0034] The rate of a fixed rate signal is actually the number of bits transmitted per unit time, so the signal rate can be represented by two values, time and bit number. The transmission process of a signal is divided into many time periods connected head to tail, and this time period is named as a statistical period. If the bit number of a signal in each statistical period is known, then the signal rate can be generated by hardware according to the time length of each statistical period and the bit number in each statistical period. So the rate of a fixed rate signal can be represented by multiple sets of data, and each set of data includes a statistical period and a bit number. If each statistical period is as equal as possible, then the effect is better when the rate is recovered according to the statistical period and the bit number, and the hardware implementation is simpler.
[0035] As mentioned above, the rate information of the client signal is recorded when the client signal is loaded into the service signal. One way to record the rate information is to use the overhead of the service signal. If the service signal is a fixed frame signal, n consecutive frames of the service signal can be used as a statistical period, where n is an integer greater than or equal to 1. At the source node, the bit number of the client signal is counted in each statistical period when the client signal is loaded into the service signal, and the bit number is written into the overhead of the service signal as the rate information. At the sink node, the node that extracts the client signal from the service signal, the frame structure of the service signal can be recognized after the service signal is received, and the statistical period is equal to n frames, so the statistical period can be obtained after the frame structure is recognized. The bit number of the client signal in each statistical period is obtained through the specific overhead of the service signal, and the rate of the client signal can be recovered according to the statistical period and the corresponding bit number. For example, when ODU0 is loaded into the payload of ODU4, ODU4 is a fixed frame signal, and 80 consecutive ODU4 frames are used as a statistical period. The bit number of ODU0 is counted in each statistical period, and the bit number of ODU0 is written into the specific overhead of ODU4 as the rate information. The data is counted once in each statistical period, and the counted data is recorded as the rate information in the specific overhead of ODU4. When ODU0 is extracted from ODU4, the statistical period is obtained according to the frame header of the received ODU4 signal, the bit number of ODU0 in the statistical period is obtained according to the specific overhead of ODU4, and the rate of ODU0 can be obtained according to the statistical period and the bit number in the statistical period, so that the rate of ODU0 is recovered. The bit number of the client signal is counted as the rate information in each transmission period (referred to as transmission period), and the rate information is transmitted immediately after each statistical period is completed, i.e., the transmission period is equal to the statistical period.
[0036] The above-mentioned method of recording the rate information of the client signal using the overhead of the service signal has some problems in practical application. If the proportion of the overhead of the service signal is very low, it often means that the types of the overhead of the service signal are limited, and the overhead bandwidth is also very low. A service signal needs to load multiple client signals, and the rate information of each client signal occupies the overhead of the service signal. Therefore, many overheads of the service signal need to be defined to record the rate information of multiple client signals, and the overhead bandwidth for recording the rate information of the service signal also needs to be considered.
[0037] In actual application, when the payload of the service signal is loaded into multiple client signals, the bandwidth of the payload of the service signal is generally greater than the rate of the client signal, so the payload of the service signal will generally have a lot of bandwidth wasted. Considering this factor, the processing mode of using the overhead of the client signal to record the rate information of the client signal can more fully utilize the wasted bandwidth and is more appropriate. Of course, this processing mode also has certain implementation difficulties. For example, if the client signal is also a fixed-length frame signal, since the frame period of the client signal is generally different from the frame period of the service signal, if the transmission period is equal to the statistical period, it means that the occurrence period of the overhead of the client signal for transmitting the rate information is equal to n frames of the service signal. In fact, the overhead occurrence frequency of the client signal is related to the frame period of the client signal, and the frame period of the client signal is inconsistent with the frame period of the service signal, which causes a conflict, resulting in that it is difficult to use the overhead of the client signal to transmit the rate information of the client signal.
[0038] To solve at least one of the above technical problems, an embodiment of the present application provides a rate recovery method of a fixed rate signal. In this embodiment, the rate information of the client signal is recorded by using the overhead of the client signal when the client signal is loaded into the service signal, and the transmission period is inconsistent with the statistical period, for example, 1 or more statistical periods of rate information are transmitted in each transmission period, and each transmission period does not need to be strictly equal. Since the statistical period and the transmission period are inconsistent, the statistical period can be consistent by using the overhead of the client signal at the same time, so that the rate of the client signal can be recovered according to the rate information in the overhead of the client signal when the client signal is taken out from the service signal.
[0039] The method provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the case of running on a computer terminal as an example, Figure 1 is a hardware structure block diagram of a computer terminal running a rate recovery method of a fixed rate signal according to an embodiment of the present application. As shown in Figure 1 , the computer terminal can include one or more (only one is shown in Figure 1 ) processors 102 (the processor 102 can include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above computer terminal can further include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand that Figure 1 the structure shown is only schematic, which does not limit the structure of the above computer terminal. For example, the computer terminal can further include more or fewer components than Figure 1 shown, or have a different configuration from Figure 1 shown.
[0040] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as the computer program corresponding to the rate recovery method of the fixed rate signal in the embodiments of the present application. The processor 102 can execute various functional applications and data processing, i.e., implement the above method, by running the computer programs stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the mobile terminal through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network can include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to be able to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0042] In the embodiments, a rate recovery method of a fixed rate signal running on a network architecture is provided, Figure 2 which is a flowchart of the method according to the embodiments of the present application, as shown in Figure 1 the flowchart includes the following steps:
[0043] In step S202, a fixed rate signal is packed into a payload of a service signal at a source node, and a number of bits of the fixed rate signal in each statistical period is counted with a frame period of the service signal as the statistical period, wherein the service signal is a fixed rate fixed-length frame signal, and the fixed rate signal includes overhead and payload, and the overhead of the fixed rate signal includes rate information overhead;
[0044] In step S204, a specified time interval is determined according to a position of the fixed rate signal in the payload of the service signal, and a sum of the number of bits of the fixed rate signal counted in all statistical periods corresponding to the specified time interval is taken as rate information, the rate information is packed into the rate information overhead of the fixed rate signal, and the service signal is sent out from the source node, wherein the specified time interval is greater than the statistical period.
[0045] Step S206, the sink node receives the service signal and acquires the fixed rate signal from the service signal, determines the specified time interval according to the position of the specific overhead of the fixed rate signal in the payload of the service signal, acquires the number of statistical periods corresponding to the specified time interval, acquires the sum of the bit numbers from the rate information overhead, and recovers the rate of the fixed rate signal according to the number of statistical periods and the sum of the bit numbers of the fixed rate signal.
[0046] In an exemplary embodiment, before the sink node receives the service signal, further comprising: receiving the service signal at an intermediate node, acquiring the fixed rate signal from the service signal, and recovering the rate of the fixed rate signal; packing the fixed rate signal into a new service signal, and sending out from the intermediate node.
[0047] In an exemplary embodiment, the fixed rate signal is a fixed-length frame signal, the specified time interval is determined by the position of the specific overhead of M frames of the fixed rate signal, wherein the specific overhead can be a frame positioning overhead, or the rate information overhead, or other overhead, the start time of the specified time interval is determined by the position of the specific overhead of the Nth frame in M frames of the fixed rate signal, and the end time of the specified time interval is determined by the position of the specific overhead of the Nth frame in the next M frames of the fixed rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M. The specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the bit numbers of the fixed rate signal counted in the C statistical periods is taken as the rate information.
[0048] In an exemplary embodiment, the fixed rate signal is a non-fixed-length frame signal, the specified time interval is determined by the position of the specific overhead of M frames of the fixed rate signal, wherein the specific overhead is a frame positioning overhead, or the rate information overhead, or other overhead, the start time of the specified time interval is determined by the position of the specific overhead of the Nth frame in M frames of the fixed rate signal, and the end time of the specified time interval is determined by the position of the specific overhead of the Nth frame in the next M frames of the fixed rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M, the specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the bit numbers of the fixed rate signal counted in the C statistical periods is taken as the rate information.
[0049] In an example embodiment, the non-fixed length frame signal is composed of overhead of E data units and payload of F data units, where E and F are integers greater than or equal to 1, and the values of E or F corresponding to each frame can change, for example, E and F of the current frame are 1 and 100 respectively, and E and F of the next frame are 2 and 128 respectively. The data unit is K bytes, or K P / Qb codes, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the non-fixed length frame signal at least includes a frame positioning overhead for indicating the start of the current frame and the end of the previous frame.
[0050] In an example embodiment, the fixed rate signal is a frameless signal, and the specified time interval is determined by the position of the specific overhead, where the specific overhead can be the rate information overhead or other overhead, the start time of the specified time interval is determined by the position of the specific overhead of the fixed rate signal, the end time of the specified time interval is determined by the position of the specific overhead of the next fixed rate signal, and the specified time interval includes C statistical periods, where C is an integer greater than or equal to 1, and the sum of the number of bits of the fixed rate signal counted in the C statistical periods is taken as the rate information.
[0051] In an example embodiment, the frameless signal is composed of overhead of R data units and payload of S data units, where R and S are integers greater than or equal to 1, and the data unit is K P / Qb codes, where K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the frameless signal does not include a frame positioning overhead.
[0052] In an example embodiment, the fixed rate signal is loaded into the payload of the service signal, including: directly loading the fixed rate signal into the payload of the service signal; or loading the fixed rate signal into an intermediate signal, and loading the intermediate signal into the payload of the service signal, where the intermediate signal is a fixed rate signal.
[0053] In an example embodiment, the sum of the number of bits of the fixed rate signal counted in the C statistical periods corresponding to the specified time interval is taken as the rate information, including: determining the C statistical periods corresponding to the specified time interval, and adding the number of bits of the fixed rate signal in the C statistical periods to obtain the rate information.
[0054] In an example embodiment, determining the C statistical periods corresponding to the specified time interval includes: C is the number of counted end points of the statistical periods in the specified time interval, and the end point of the statistical period is a frame positioning overhead of the service signal.
[0055] In an example embodiment, the specified time interval is determined according to the location of the specific overhead of the fixed rate signal in the payload of the service signal, the number of the statistical periods corresponding to the specified time interval is obtained, including: obtaining the specified time interval and C statistical periods contained in the specified time interval, where C is an integer greater than or equal to 1, and C is the number of the statistical periods corresponding to the specified time interval.
[0056] In an example embodiment, the rate of the fixed rate signal is recovered according to the sum of the number of the statistical periods and the number of bits of the fixed rate signal, and further including: obtaining the time corresponding to a statistical period according to the frame positioning overhead of the service signal, and calculating the rate of the fixed rate signal according to the number of bits of the fixed rate signal.
[0057] In an example embodiment, the fixed length frame is composed of an overhead of A data units and a payload of B data units, where A and B are integers greater than or equal to 1, the data unit is K bytes or K P / Qb codes, where K is an integer greater than or equal to 1, and P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the fixed length frame at least includes a frame positioning overhead for indicating the start of the current frame and the end of the previous frame.
[0058] In the above embodiments of the present application, the rate information is recorded by the overhead of the fixed rate signal when the fixed rate signal is packed into the service signal, so that the overhead resource of the service signal is saved more than recording the rate information by the overhead of the service signal, and the time length of each statistical period is strictly equal, so that the low frequency clock introduced when the rate of the fixed signal is recovered according to the rate information and the statistical period is minimized, thereby ensuring the optimal rate recovery effect, and finally solving the rate recovery problem of the client signal after being transmitted through the service signal.
[0059] In order to facilitate the understanding of the technical solutions provided by the present application, the following will be described in detail in combination with the embodiments of specific scenarios.
[0060] The implementation process of transmitting the customer signal into the service signal, taking out the customer signal from the service signal and recovering the customer signal rate is described in detail by the following examples. The customer signal is a fixed rate signal, and the rate of the customer signal is actually the number of bits transmitted per unit time, so the signal rate can be represented by two values of time and bit number. In order to count the number of bits transmitted per unit time, the transmission process of a signal can be divided into many time periods connected at the head and tail, and this time period is the statistical period. The number of bits of the signal in each statistical period needs to be counted, so as to calculate the number of bits transmitted per unit time, and thus the rate of the customer signal is obtained. In order to recover the rate of the customer signal at the sink node, the rate information of the customer signal needs to be loaded into the overhead for transmission, and the period of transmitting the rate information is the transmission period. Unlike the design that the transmission period is equal to the statistical period in the processing mode of loading the rate information into the overhead of the service signal, the transmission period is greater than the statistical period in the following examples, and the rate information of one or more statistical periods is transmitted in each transmission period. Each transmission period does not need to be strictly equal, and the rate information is placed in the overhead of the customer signal.
[0061] Example 1:
[0062] In this embodiment, the service signal and the customer signal are both fixed-length frames.
[0063] At the source node, after the customer signal is loaded into the service signal, the statistical period is defined as the duration of n consecutive frames of the service signal, the number of bits of the customer signal is counted in each statistical period, the transmission period is defined as the duration of k consecutive frames of the customer signal, k is an integer greater than or equal to 1, and a suitable k value is selected to ensure that the transmission period is greater than or equal to the statistical period. In this case, there is one or more statistical periods in the length of each transmission period. The correspondence between the transmission period and the statistical period is defined, the frame header position of the first frame of the k consecutive frames of the customer signal in which the transmission period is located is defined as the starting point of the current transmission period and the ending point of the previous transmission period, rate information is generated once in each transmission period, the number of ending points of the statistical periods existing in the current transmission period C is counted, wherein the ending point of the statistical period is defined as the frame tail position of the nth frame in the n consecutive frames of the service signal, the number of bits of the customer signal corresponding to the C statistical periods is added as the rate information, and the rate information is written into the rate information overhead of the maximum k customer signal frames corresponding to the current transmission period.
[0064] In the sink node, after receiving the service signal, the frame structure of the service signal is analyzed to obtain the frame header position of each frame, and the statistical period can be obtained according to the frame header position. After the client signal is taken out from the service signal, the frame structure of the client signal is analyzed to obtain the frame header position of each frame, and the transmission period is obtained according to the frame header position of the client signal. The number C of the end points of the statistical periods in the transmission period is counted, the rate information is obtained according to the rate information overhead, the sum of the bit numbers of the client signals corresponding to the C statistical periods is obtained according to the rate information, and the duration of the statistical period can be obtained according to C and the statistical period of the service signal. According to the sum of the bit numbers of the client signals corresponding to the C statistical periods, the rate of the client signal can be calculated, thereby realizing the function of recovering the rate of the client signal.
[0065] The implementation principle of the embodiment is that for the client signal, the statistical period and the bit number corresponding to the statistical period represent the rate information, but the rate information does not necessarily have to be represented by the time length of each statistical period and the corresponding bit number. The same effect can also be achieved by using the sum of the time lengths of multiple continuous statistical periods and the sum of the bit numbers corresponding to the statistical periods. For example, T1, B1, T2, B2 represent the time length and the bit number of two continuous statistical periods, wherein T1, B1 is the statistical period time length and the bit number corresponding to the first statistical period, and T2, B2 is the statistical period time length and the bit number corresponding to the second statistical period. The rate can be represented by T1, B1, T2, B2, and the same rate can also be represented by T1, B1+B2, T2, B1+B2, and T1+T2, B1+B2. The two rates are only different in the statistical time length, but actually represent the same rate. Generally, even if the sink node obtains each statistical period and the corresponding bit number, when actually calculating the rate, it still needs to add the time of multiple continuous statistical periods and add the bit numbers corresponding to the statistical periods, thereby obtaining the average rate of a longer period. 1+ T2, B1+B2 also represent the same rate, and the two rates are only different in the statistical time length, but actually represent the same rate. Generally, even if the sink node obtains each statistical period and the corresponding bit number, when actually calculating the rate, it still needs to add the time of multiple continuous statistical periods and add the bit numbers corresponding to the statistical periods, thereby obtaining the average rate of a longer period.
[0066] It is noted that in the embodiment, it is assumed that the bit number of the client signal counted in a statistical period is Bbit, B is an integer greater than 1, the bit number of the client signal actually loaded into the n frames corresponding to the statistical period of the service signal after the client signal is loaded into the service signal is Vbit, V is an integer greater than 1, V does not necessarily equal to B, and V generally does not differ from B by too much. From the multiple statistical periods, the average value of V is equal to the average value of B.
[0067] For example, as shown in FIG. 2, the service signal is divided into multiple statistical periods, and the bit number of the client signal in each statistical period is counted. The bit number of the client signal in each statistical period is counted according to the rate information overhead of the service signal, and the rate of the client signal is calculated according to the bit number of the client signal in each statistical period. Figure 3As shown, one service signal can be loaded into one or more client signals. Assuming that one service signal is loaded into multiple client signals, when the client signals are extracted from the service signal, the payload of the general service signal usually contains multiple client signals and padding information. The implementation method for identifying the multiple client signals and padding information includes multiple methods, for example, dividing the payload of the service signal into multiple time slots, locating different client services in different time slots, identifying different client signals through time slots, identifying the padding information and client signals in the payload through the overhead in the service signal, converting the client signals into 64 / 66b coding, identifying the padding information and client signals through the 64 / 66b coding rule, etc. The specific implementation method of the multiple information in the payload of the service signal is not within the discussion range of the embodiment of the present application, the specific implementation method is irrelevant to the implementation method of the recovery of the client signal rate, and does not affect the implementation effect of the method for recovering the client signal rate described in the embodiment of the present application.
[0068] It also needs to be noted that in the embodiment, the transmission period is only used to periodically transmit the rate information, so the definition of the transmission period is the period of the transmission of the rate information, which has multiple definition methods, for example, after the client signal is loaded into the service signal, the frame header position of the first frame of the continuous k client signal frames can be used as the starting point of the transmission period, the frame header position of the k+1 frame of the continuous k client signal frames can be used as the ending point of the transmission period, or the position of a certain overhead in the continuous k client signal frames can be used as the starting point and the ending point of the transmission period. Even if the duration length of each transmission period is not equal, it will not affect the rate recovery effect. In addition, it is noted that the transmission period must be continuous, that is, the ending time point of the previous transmission period must be the starting time point of the next transmission period, and the sum of the duration time of all transmission periods is equal to the total time length.
[0069] The significance of the transmission period is to periodically transmit the sum of the multiple statistical periods and the corresponding client signal bit quantity through the rate information overhead, that is, there is a corresponding relationship between the transmission period and the statistical period. The implementation method of the corresponding relationship can be multiple, as long as the rule of the corresponding relationship is clear. For this purpose, a reference point is defined in each statistical period, and then the reference point is used as the substitute of the statistical period, so that the corresponding relationship between the transmission period and the statistical period is obtained, and the number of the reference points in the transmission period is counted to obtain the number C of the statistical periods in the transmission period. The reference point of the statistical period can be the ending point of the statistical period, or the middle point of the statistical period, or a certain determined position point of the statistical period, for example, the point at the 1 / 4 position of the statistical period.
[0070] Figure 4 is a schematic diagram of the corresponding relationship between the transmission period and the statistical period according to the embodiment 1 of the present application. As shown in the figure, the transmission period is the period of the transmission of the rate information, and the statistical period is the period of the statistical calculation of the client signal bit quantity. The transmission period and the statistical period have a corresponding relationship, that is, the transmission period contains multiple statistical periods. The statistical period is the period of the statistical calculation of the client signal bit quantity, and the transmission period is the period of the transmission of the rate information. The transmission period and the statistical period have a corresponding relationship, that is, the transmission period contains multiple statistical periods. Figure 4As shown, the client signal is packed into the service signal, the service signal lists 11 continuous frames, and the 5*k continuous frames of the client signal are packed into the 11 continuous frames, in this example, the statistical period is defined as the duration of 1 frame of the service signal, the frame header position of the service signal is defined as the start point of the current statistical period and the end point of the last statistical period, the transmission period is defined as the continuous k frames of the client signal, the frame header position of the first frame of the continuous k frames of the client signal is defined as the start point of the current transmission period and the end point of the last transmission period, k is an integer greater than or equal to 1, and the value of k ensures that the transmission period is greater than the statistical period. Since the bandwidth of the client signal is less than the payload bandwidth of the service signal, after the client signal is packed into the payload of the service signal, there may be a gap between the end of the former frame and the header of the latter frame in the two continuous frames, and the interval length of the gap may change, so that each transmission period is not completely equal, and in this example, whether each transmission period is equal has no effect on the implementation effect. The frame period of the service signal is defined as the statistical period, the bit number of the client signal is counted in each statistical period, and it is assumed that the frame number of the current service signal is k, the frame period time length of the service signal with the frame number k is T k , and the bit number of the client signal counted in the frame period of the service signal with the frame number k is B k . Each transmission period corresponds to C statistical periods of the service signal, the end point of the statistical period is represented by the end point of the statistical period, and the end point of the statistical period is defined as the frame end position of the frame in which the statistical period is located. The number of end points of the statistical periods existing in the transmission period is counted as C. Figure 4 In the first transmission period, the continuous k frames-1 are observed, and the end points of the statistical periods in the duration thereof are included, i.e., the first frame, the second frame and the third frame of the service signal, so that the value of C is 3, and the rate information is B1+B2+B3; similarly, in the second transmission period, the continuous k frames-2 are observed, the value of C is 2, and the rate information is B4+B5; in the third transmission period, the continuous k frames-3 are observed, the value of C is 2, and the rate information is B6+B7; in the fourth transmission period, the continuous k frames-4 are observed, the value of C is 2, and the rate information is B8+B 95 .
[0071] Embodiment 2
[0072] In this embodiment, the service signal is a fixed-length frame, and the client signal is a fixed-rate signal, the client signal is composed of an overhead of R data units and a payload of S data units, wherein R and S are integers greater than or equal to 1, and the values of R or S can change, the data unit is K P / Qb coding, wherein K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1, and Q is greater than P, the overhead is defined as rate information overhead, and there is no frame positioning overhead.
[0073] The frame header position of the first frame in the n continuous service signal frames is defined as the start point of the current statistical period and the end point of the previous statistical period, the reference point of the statistical period is defined as the end point of the statistical period, the rate information overhead of the client signal is defined as the start point of the current transmission period and the end point of the previous transmission period, at the source node, the statistical period is defined as the duration of the n continuous frames of the service signal, the bit number of the client signal is counted in each statistical period, the rate information overhead is generated periodically and the client signal and the rate information overhead are loaded into the payload of the service signal, the transmission period is defined as the interval between two continuous rate information overheads, each transmission period is not strictly equal, the transmission period is greater than the statistical period, the frame header position of the first frame in the n continuous service signal frames is defined as the start point of the current statistical period and the end point of the previous statistical period, the reference point of the statistical period is defined as the end point of the statistical period, the rate information overhead of the client signal is defined as the start point of the current transmission period and the end point of the previous transmission period, the rate information is generated once in each transmission period, the correspondence between the transmission period and the statistical period is determined, the number C of the statistical periods is obtained, C is the number of the statistical period reference points existing in the transmission period, the client signal bit numbers corresponding to the C statistical periods are added as the rate information, the rate information is written into the rate information overhead corresponding to the current transmission period, and the service signal is sent out from the source node.
[0074] At the sink node, the frame structure of the service signal is analyzed after the service signal is received to obtain the frame header position of each frame, each statistical period can be obtained according to the frame header position, the client signal is taken out from the service signal, the statistical period corresponding to the transmission period is obtained according to the position of the rate information overhead, the rate information is obtained according to the content in the rate information overhead, the rate information is the sum of the bit numbers of the client signals corresponding to the C statistical periods, wherein C is the number of the statistical periods corresponding to the transmission period, the rate of the client signal can be calculated according to the above information, thereby realizing the function of recovering the rate of the client signal.
[0075] In the embodiment, it is assumed that the bit number of the client signal counted in a certain statistical period is Bbit, B is an integer greater than 1, the bit number of the client signal actually loaded in the n frames corresponding to the statistical period of the service signal is Vbit after the client signal is loaded into the service signal, V is an integer greater than 1, V does not necessarily equal to B, V generally does not differ from B too much, and the average value of V is equal to the average value of B from the perspective of multiple statistical periods.
[0076] One service signal can carry one or more client signals, assuming that one service signal carries multiple client signals, while also adding rate information overhead periodically for each client signal, in the process of demodulating client signals from service signals, the payload of a general service signal contains multiple client signals, padding information and rate information overhead of each client signal, how to identify the above information is not discussed in the embodiments of the present application, the specific implementation method and the implementation method of recovering the rate of the client signal are irrelevant, and also do not affect the implementation effect of the method of recovering the rate of the client signal described in the embodiments of the present application.
[0077] Figure 5 is a schematic diagram of the correspondence between the transmission period and the statistical period according to the embodiment 2 of the present application. As shown in Figure 5 , the client signal is carried in the service signal, the service signal lists 11 consecutive frames, without identifying the frame structure of the client signal, the client signal is regarded as a bit stream composed of only payload. After adding the rate information overhead periodically, the client signal and the rate information overhead are carried together in the payload of the service signal, Figure 5 5 times of rate information overhead are added in the service signal, the statistical period is defined as the duration of one frame of the service signal, the transmission period is defined as the time from the beginning of the rate information overhead to the next rate information overhead, the transmission period is certainly greater than the statistical period, each transmission period can not be completely equal, whether each transmission period is equal has no effect on the implementation effect. The frame period of the service signal is defined as the statistical period, the number of bits of the client signal is counted in each statistical period, assuming that the frame number of the current service signal is k, the length of the frame period of the service signal with the frame number k is T k , and the number of bits of the client signal counted in the frame period of the service signal with the frame number k is B k . Each transmission period corresponds to one frame in the service signal, wherein the correspondence between the transmission period and the frame of the service signal is the frame number of the statistical period where the first bit of the rate information overhead corresponding to the transmission period is located. Figure 5In the embodiment, the first bit of the rate information overhead of the first transmission period is located in the first frame of the service signal, so the frame number of the service signal corresponding to the first transmission period is 1; by analogy, the frame number of the service signal corresponding to the second transmission period is 4; the frame number of the service signal corresponding to the third transmission period is 6; the frame number of the service signal corresponding to the fourth transmission period is 8; and the frame number of the service signal corresponding to the fifth transmission period is 10. For a certain transmission period, the frame number of the service signal corresponding to the previous transmission period is the end period of the statistical period, and the frame number of the service signal corresponding to the last transmission period is the start period of the statistical period. The sum of the bits corresponding to all the statistical periods from the start period to the end period is the rate information, which is written into the rate information overhead of the current transmission period of the client signal. According to the above definition, the first transmission period has no rate information because the previous transmission period does not exist, the rate information of the second transmission period is B1+B2+B3, the rate information of the third transmission period is B4+B5, the rate information of the fourth transmission period is B6+B7, and the rate information of the fifth transmission period is B8+B9.
[0078] In the above embodiment of the present application, a method for recovering the rate of the client signal is provided. The rate information is recorded when the client signal is loaded into the service signal. The rate data is generated according to the statistical period when the rate information is recorded. The rate information is generated by processing the rate data periodically according to the transmission period, which is greater than the statistical period. The rate information is written into the overhead of the client signal. The rate of the client signal is recovered according to the rate information when the client signal is taken out of the service signal. In the embodiment of the present application, the transmission period is greater than the statistical period, and the rate information is written into the overhead of the client signal. The bandwidth in the payload of the service signal is fully utilized, and the difficulty in writing the rate information into the overhead of the client signal is overcome.
[0079] The scheme of the above embodiment of the present application is applicable to the scenario of CBR rate transparent transmission by mapping the CBR into an optical service unit (OSU). The rate of the OSU needs to be regenerated at the intermediate point of the OSU. The scheme of the embodiment of the present application has the same effect as the generic mapping procedure (GMP) mapping, but the rate information overhead occupies the overhead of the OSU, not the overhead of the outer service signal. Compared with the scheme of using the overhead of the high-speed ODU for the rate information overhead when the low-speed ODU is mapped into the high-speed ODU by the GMP, the scheme of the present application has obvious advantages. In addition, the scheme of the embodiment of the present application is also applicable to the transparent transmission of the CBR service by FlexE. The scheme of the embodiment of the present application is also applicable to the rate recovery when the ODU0 is mapped into the ODU4 and then demapped from the ODU4. It should be understood that the embodiment of the present application is also applicable to other similar scenarios.
[0080] Those skilled in the art can clearly understand that the method according to the above-mentioned embodiments can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method described in various embodiments of the present application.
[0081] In the present embodiment, a rate recovery device for fixed rate signal is also provided, which is used to realize the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, realization of hardware, or a combination of software and hardware is also possible and contemplated.
[0082] Figure 6 The structural block diagram of the rate recovery device for fixed rate signal according to the embodiment of the present application is shown in Figure 6 The device 100 includes a first sending module 10 and a first recovery module 20.
[0083] The first sending module 10 is located in a source node, and is used to pack the fixed rate signal into the payload of a service signal, and count the number of bits of the fixed rate signal in each statistical period with the frame period of the service signal as the statistical period, wherein the service signal is a fixed rate fixed-length frame signal, and the fixed rate signal includes overhead and payload, and the overhead of the fixed rate signal includes rate information overhead; determine a specified time interval according to the position of a specific overhead of the fixed rate signal in the payload of the service signal, and take the sum of the number of bits of the fixed rate signal counted in all statistical periods corresponding to the specified time interval as rate information, pack the rate information into the rate information overhead of the fixed rate signal, and send the service signal from the source node, wherein the specified time interval is greater than the statistical period.
[0084] The first recovery module 20, located in the destination node, is used to receive the service signal, obtain the fixed-rate signal from the service signal, determine the specified time interval based on the position of the specific overhead of the fixed-rate signal in the payload of the service signal, obtain the number of statistical periods corresponding to the specified time interval, obtain the sum of the number of bits from the rate information overhead, and recover the rate of the fixed-rate signal based on the number of statistical periods and the sum of the number of bits of the fixed-rate signal.
[0085] Figure 7 A structural block diagram of a rate recovery device for a fixed-rate signal according to another embodiment of the present invention is shown below. Figure 7 The device 200 includes, in addition to Figure 6 In addition to all the modules shown, it also includes a second recovery module 30 and a second sending module 40.
[0086] The second recovery module 30, located in the intermediate node, is used to receive the service signal sent by the first sending module 10 of the source node, obtain the fixed rate signal from the service signal, and recover the rate of the fixed rate signal.
[0087] The second transmitting module 40, located in the intermediate node, is used to load the fixed-rate signal into a new service signal and send it out from the intermediate node so that the first recovery module 20 of the destination node can receive the service signal and recover the rate of the fixed-rate signal.
[0088] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0089] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0090] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0091] The embodiment of the present application also provides an electronic device, comprising a memory and a processor, the memory stores a computer program, and the processor is arranged to run the computer program to execute the steps in any of the above method embodiments.
[0092] In an exemplary embodiment, the electronic device described above can further comprise a transmission device connected with the processor and an input and output device connected with the processor.
[0093] The specific examples in the embodiment can refer to the examples described in the above embodiments and exemplary implementation manners, and the embodiment will not be described here again.
[0094] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, which can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps among them can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0095] The above only describes the preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A rate recovery method for a fixed rate signal, characterized by, The method comprises the following steps: packing the fixed-rate signal into the payload of a service signal at a source node, and counting the number of bits of the fixed-rate signal in each statistical period of the frame period of the service signal, wherein the service signal is a fixed-rate fixed-length frame signal, the fixed-rate signal comprises overhead and payload, and the overhead of the fixed-rate signal comprises rate information overhead; determining a specified time interval according to the position of a specific overhead of the fixed-rate signal in the payload of the service signal, summing the number of bits of the fixed-rate signal counted in all statistical periods corresponding to the specified time interval as rate information, packing the rate information into the rate information overhead of the fixed-rate signal, and sending the service signal from the source node, wherein the specified time interval is greater than the statistical period; receiving the service signal at a sink node, obtaining the fixed-rate signal from the service signal, determining the specified time interval according to the position of the specific overhead of the fixed-rate signal in the payload of the service signal, obtaining the number of statistical periods corresponding to the specified time interval, obtaining the sum of the number of bits from the rate information overhead, and recovering the rate of the fixed-rate signal according to the number of statistical periods and the sum of the number of bits of the fixed-rate signal.
2. The method of claim 1, wherein, Before receiving the service signal at the sink node, the method further comprises the following steps: receiving the service signal at an intermediate node, obtaining the fixed-rate signal from the service signal, and recovering the rate of the fixed-rate signal; packing the fixed-rate signal into a new service signal, and sending the new service signal from the intermediate node.
3. The method of claim 1, wherein, Wherein, the fixed-rate signal is a fixed-length frame signal, the specified time interval is determined by the position of the specific overhead of M frames of the fixed-rate signal, the specific overhead is frame positioning overhead or the rate information overhead, the start time of the specified time interval is determined by the position of the specific overhead of the Nth frame in M frames of the fixed-rate signal, the end time of the specified time interval is determined by the position of the specific overhead of the Nth frame in the next M frames of the fixed-rate signal, M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M, and the specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1, and the sum of the number of bits of the fixed-rate signal counted in C statistical periods is the rate information.
4. The method of claim 1, wherein, Wherein, The fixed-rate signal is a non-fixed-length frame signal, the specified time interval is determined by the position of the specific overhead of M frames of the fixed-rate signal, wherein the specific overhead is a frame positioning overhead or the rate information overhead, the start time of the specified time interval is determined by the position of the specific overhead of the Nth frame of M frames of the fixed-rate signal, and the end time of the specified time interval is determined by the position of the specific overhead of the Nth frame of the next M frames of the fixed-rate signal, wherein M is an integer greater than or equal to 1, N is an integer greater than or equal to 1 and less than or equal to M, the specified time interval contains C statistical periods, and C is an integer greater than or equal to 1; and the sum of the number of bits of the fixed-rate signal counted in the C statistical periods is taken as the rate information.
5. The method of claim 4, wherein, Wherein, The non-fixed-length frame signal is composed of overhead of E data units and payload of F data units, wherein E and F are integers greater than or equal to 1, and the value of E or F corresponding to each frame can change, the data unit is K bytes or K P / Qb codes, wherein K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the non-fixed-length frame signal at least includes a frame positioning overhead for indicating the start of the current frame and the end of the previous frame.
6. The method of claim 1, wherein, Wherein, The fixed-rate signal is a frameless signal, the specified time interval is determined by the position of the specific overhead, wherein the specific overhead is the rate information overhead, the start time of the specified time interval is determined by the position of the specific overhead of the fixed-rate signal, the end time of the specified time interval is determined by the position of the specific overhead of the next fixed-rate signal, and the specified time interval contains C statistical periods, wherein C is an integer greater than or equal to 1; and the sum of the number of bits of the fixed-rate signal counted in the C statistical periods is taken as the rate information.
7. The method of claim 6, wherein, The frameless signal is composed of overhead of R data units and payload of S data units, wherein R and S are integers greater than or equal to 1, and the value of R or S can change, the data unit is K P / Qb codes, wherein K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the frameless signal does not include a frame positioning overhead.
8. The method of claim 1, wherein, The fixed-rate signal is loaded into the payload of the service signal, including: The fixed-rate signal is directly loaded into the payload of the service signal; or The fixed-rate signal is loaded into an intermediate signal, and the intermediate signal is loaded into the payload of the service signal, wherein the intermediate signal is a fixed-rate signal.
9. The method according to any one of claims 1 to 8, characterized in that, The sum of the number of bits of the fixed-rate signal counted in the C statistical periods corresponding to the specified time interval is taken as the rate information, including: The C statistical periods corresponding to the specified time interval are determined, and the number of bits of the fixed-rate signal in the C statistical periods is added to obtain the rate information.
10. The method of claim 9, wherein, The C statistical periods corresponding to the specified time interval are determined, including: C is the number of counted end points of the statistical periods in the specified time interval, and the end point of the statistical period is a frame positioning overhead of the service signal.
11. The method of claim 1, wherein, The rate of the fixed rate signal is recovered according to the sum of the number of the statistical periods and the number of bits of the fixed rate signal, and further including: The time corresponding to the C statistical periods is obtained according to the frame positioning overhead of the service signal, wherein C is an integer greater than or equal to 1, and the rate of the fixed rate signal is calculated according to the sum of the number of bits of the fixed rate signal.
12. The method of claim 1, wherein, The fixed length frame is composed of an overhead of A data units and a payload of B data units, wherein A and B are integers greater than or equal to 1, the data unit is K bytes or K P / Qb codes, K is an integer greater than or equal to 1, P and Q are integers greater than or equal to 1 and Q is greater than P, and the overhead of the fixed length frame at least includes a frame positioning overhead for indicating the start of the current frame and the end of the previous frame.
13. A rate recovery apparatus for a fixed rate signal, characterized by: Including: The first sending module is located in the source node, and is used to pack the fixed rate signal into the payload of the service signal, and take the frame period of the service signal as a statistical period to count the number of bits of the fixed rate signal in each statistical period, wherein the service signal is a fixed rate fixed length frame signal, the fixed rate signal includes an overhead and a payload, and the overhead of the fixed rate signal includes rate information overhead; a specified time interval is determined according to the position of a specific overhead of the fixed rate signal in the payload of the service signal, the sum of the number of bits of the fixed rate signal counted by all statistical periods corresponding to the specified time interval is taken as rate information, the rate information is packed into the rate information overhead of the fixed rate signal, and the service signal is sent from the source node, wherein the specified time interval is greater than the statistical period; The first recovery module is located in the sink node, and is used to receive the service signal, and obtain the fixed rate signal from the service signal, determine the specified time interval according to the position of the specific overhead of the fixed rate signal in the payload of the service signal, obtain the number of statistical periods corresponding to the specified time interval, obtain the sum of the number of bits from the rate information overhead, and recover the rate of the fixed rate signal according to the number of statistical periods and the sum of the number of bits of the fixed rate signal.
14. The apparatus of claim 13, wherein, Further including: The second recovery module is located in the intermediate node, and is used to receive the service signal, obtain the fixed rate signal from the service signal, and recover the rate of the fixed rate signal; The second sending module is located in the intermediate node, and is used to pack the fixed rate signal into a new service signal, and send the new service signal from the intermediate node.
15. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein the computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 12.
16. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1 to 12.
Citation Information
Patent Citations
CBR signal transmission method, system and equipment
CN114499788A
Method for clock recovery using updated timestamps
WO2008051123A1