Signal processing method, signal transmission device, electronic equipment and storage medium
By dividing the variable time slot length in the service signal, the problem of hardware implementation difficulty and delay when the service signal rate is high is solved, and a balanced reduction of hardware implementation difficulty and delay is achieved.
Patent Information
- Application Number
- CN202310304798.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
When the service signal rate is very high, it is difficult for the existing technology to reduce the difficulty of hardware implementation while avoiding the introduction of an increase in delay.
By dividing the service signal into N time slots, the length of each time slot is L bits, L=2c×b, N is an integer greater than 0, b is a preset fixed value and is an integer greater than 1, c is The value is determined based on the hardware capabilities of the sender and receiver, achieving variability in slot length to reduce hardware implementation difficulty and latency.
When the service signal rate is high, by selecting a reasonable time slot length, the difficulty of hardware implementation is reduced and the delay is minimized, and excessive consumption of hardware resources and an increase in delay are avoided.
Smart Images

Figure CN118694474A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a signal processing method, a signal transmission device, an electronic device, and a computer-readable storage medium. Background Art
[0002] The service signal can be loaded with multiple client signals by dividing the time slots. The service signal here is a fixed-length frame signal, that is, the service signal is composed of a signal frame of fixed length, and the signal frame is composed of a fixed number of bit blocks, and the number of bits in each bit block is fixed. The bit blocks in the signal frame can be divided into overhead bit blocks and payload bit blocks, and the number of overhead bit blocks and payload bit blocks is also a fixed value. Common fixed-length frame signals include Optical Data Unit (ODU) signals, Flexible Optical Transport Network (FlexO) signals, Flexible Ethernet Group (FlexE Group) signals, etc. The payload of the signal frame of some fixed-length frame signals can be divided into multiple time slots, and multiple client signals with lower rates can be loaded into these time slots.
[0003] Generally speaking, the time slot length of a service signal is equal to the number of bits corresponding to a time slot. When multiple client signals are loaded into a service signal, if the number of client signals is large and the number of service signals is also multiple, and the sum of the rates of these service signals is very high, the time slot length will affect the difficulty of hardware implementation, and the higher the sum of the rates of the service signals, the greater the difficulty of hardware implementation. Although increasing the time slot length can reduce the difficulty of hardware implementation, the larger the time slot length, the greater the delay introduced in the hardware implementation, and delay is a very important performance indicator. In addition, if the sum of the service signal rates of a hardware implementation is limited, or the length of its internal hardware bus becomes smaller due to the improvement of the technical level of hardware implementation, then increasing the time slot length will not reduce the difficulty of hardware implementation, but will lead to increased delay, so the time slot length cannot be blindly selected to be too large.
[0004] In the prior art, in order to reduce the delay introduced by hardware processing, the time slot length is generally not too large, and the time slot length of the service signal is fixed. This makes hardware implementation very difficult when the rate of a single service signal is very high, or when the rate of a single service signal is not high but there are many service signals causing the sum of the rates of the service signals to be very high.
[0005] In summary, reducing the difficulty of hardware implementation requires a larger time slot length, while low latency requires a smaller time slot length. Therefore, there is an urgent need for a signal processing method that can reduce the difficulty of hardware implementation when the sum of the rates of service signals implemented by a hardware is very high, while minimizing the delay introduced by hardware processing. Summary of the invention
[0006] The embodiments of the present application provide a signal processing method, a signal transmission device, an electronic device, and a computer-readable storage medium, which are used to achieve a balance between reducing the difficulty of hardware implementation and reducing the delay introduced by hardware processing when the service signal rate is very high.
[0007] In a first aspect, an embodiment of the present application provides a signal processing method, the method comprising:
[0008] The transmitting end divides the service signal into N time slots, each of which has a length of L bits, L = 2 c × b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, and the value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end;
[0009] The transmitting end loads the client signal into the time slot of the service signal and sends it to the receiving end, so that after receiving the service signal, the receiving end determines the length of the time slot according to the value of c, and takes out the client signal from the time slot of the service signal according to the length of the time slot.
[0010] In a second aspect, an embodiment of the present application provides a signal transmission device, which is used to implement the signal processing method described in the first aspect above, including:
[0011] The transmitting end is used to divide the service signal into N time slots, each of which has a length of L bits, L = 2 c × b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, the value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end, the client signal is loaded into the time slot of the service signal, and sent to the receiving end;
[0012] The receiving end is used to receive the service signal, determine the length of the time slot according to the value of c, and extract the client signal from the time slot of the service signal according to the length of the time slot.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0014] at least one processor;
[0015] at least one memory for storing at least one program;
[0016] When at least one of the programs is executed by at least one of the processors, the signal processing method as described in the first aspect above is implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the signal processing method described in the first aspect above when executed by the processor.
[0018] In the embodiment of the present application, the transmitting end divides the service signal into N time slots, each of which has a length of L bits, L=2 c ×b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, the value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end, the transmitting end loads the client signal into the time slot of the service signal and sends it to the receiving end, and after the receiving end receives the service signal, it takes out the client signal from the time slot of the service signal according to the value of c. According to the scheme of the embodiment of the present application, the transmitting end and the receiving end can provide a variety of selectable time slot lengths according to their hardware capabilities, and the hardware implementation cost will not be significantly increased when implementing a variety of time slot lengths. A most reasonable value of c is selected from the multiple time slot lengths supported by the transmitting end and the receiving end to achieve minimum delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the payload division time slots of a signal frame;
[0020] Figure 2 is a flowchart of a signal processing method provided in an embodiment of the present application;
[0021] Figure 3a-3c It is a schematic diagram of time slot division when c takes different values;
[0022] Figure 4 It is a schematic diagram of another type of signal frame payload divided into time slots;
[0023] Figure 5 is a schematic diagram of yet another type of signal frame payload divided into time slots;
[0024] Figure 6 is a structural schematic diagram of a signal processing device provided in an embodiment of the present application;
[0025] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0028] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0029] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can mean: a exists alone, b exists alone, c exists alone, a and b exist at the same time, a and c exist at the same time, b and c exist at the same time, or a, b and c exist at the same time, wherein a, b, c can be single or multiple.
[0030] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.
[0031] The embodiments described in the present application may be implemented in a communication system, such as at least one of the following: a global system for mobile communications (GSM) or any other second generation cellular communication system, a universal mobile telecommunications system (UMTS, 3G) based on basic wideband code division multiple access (W-cDMA), high speed packet access (HSPA), long term evolution (LTE), advanced LTE, a system based on the IEEE 802.11 specification, a system based on the IEEE 802.15 specification, and / or a fifth generation (5G) mobile or cellular communication system. However, the embodiments of the present application are not limited to the above-mentioned systems given as examples, but those skilled in the art may apply the solutions to other communication systems having the necessary properties.
[0032] The above-mentioned communication system can be used to support fourth generation (4G) access technology, such as long term evolution (LTE) access technology; alternatively, the communication system can also support fifth generation (5G) access technology, such as new radio (NR) access technology; and future mobile communication systems.
[0033] It can be understood that the communication system described in the embodiment of the present application is for the purpose of more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not constitute a limitation on the technical solution provided by the embodiment of the present disclosure. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present disclosure is also applicable to similar technical problems.
[0034] In order to facilitate understanding of the solution of the present application, the concepts involved in the embodiments of the present application are first explained below.
[0035] The service signal can be loaded with multiple client signals by dividing the time slot. The service signal here is a fixed-length frame signal, that is, the service signal consists of a signal frame with a fixed length, and the signal frame consists of a fixed number of bit blocks, and the number of bits in each bit block is fixed. The bit blocks in the signal frame can be divided into overhead bit blocks and payload bit blocks, and the number of overhead bit blocks and payload bit blocks is also a fixed value.
[0036] Common fixed-length frame signals include optical channel data unit signals, flexible optical transport network signals, flexible Ethernet group signals, etc. The payload of the signal frame of some fixed-length frame signals can be divided into multiple time slots for carrying multiple lower-rate client signals. For example, an optical channel data unit signal can be divided into time slots to carry multiple lower-rate optical channel data unit signals, and a flexible Ethernet group signal can be divided into time slots to carry multiple flexible Ethernet client signals.
[0037] In the embodiments of the present application, a time slot refers to a bit block of fixed length. The time slot length is used below to represent the number of bits contained in the bit block corresponding to the time slot, and the unit of the time slot length is bit. The signal frame of a fixed-length frame signal is composed of a fixed number of bit blocks. The bit blocks constituting the signal frame are named frame units below, and the number of bits contained in the bit blocks constituting the signal frame is named frame unit length, and the unit is bit. The time slot length is usually an integer number of frame units, and the time slot length is usually expressed in bits. However, in some cases, the number of frame units can also be used as a unit for simplicity of description.
[0038] It can be understood that the purpose of dividing fixed-length frame signals into time slots is to load multiple low-speed signals. The method of dividing fixed-length frame signals into time slots is usually to divide the payload of the fixed-length frame signal frame into U bit blocks, and divide the U bit blocks into N time slots according to N consecutive bit blocks. Each time slot is assigned a time slot number, and the time slot number definition starts from 0. The maximum time slot number is N-1. The method is to traverse the U bit blocks one by one, and each consecutive N bit blocks are assigned time slot numbers 0 to N-1. In this way, the payload of a signal frame can be divided into N time slots. See Figure 1 , Figure 1 The payload of the signal frame in contains U bit blocks, N=8, and U is divisible by 8, that is, every 8 bit blocks are set as a group of time slots, and 8 time slots are divided in the payload of the signal frame. Figure 1 The numbers in indicate the time slot numbers.
[0039] In common service signals, the payload of a signal frame contains an integer number of bit blocks, and the number of bit blocks U in the payload of the signal frame is divisible by the number of time slots N. For example, for optical data unit 4 (ODU 4, ODU4) signal, the frame unit of its signal frame is 1 byte, the frame unit length is 8 bits, the signal frame consists of 15296 frame units, the time slot length of the optical channel data unit 4 signal is 8, that is, the time slot corresponds to 1 byte; the optical channel data unit cn signal, wherein n is an integer greater than 1, n represents its rate is n*100G bits per second, for example, the optical channel data unit c4 signal represents its rate is 400G bits per second, the frame unit of the optical channel data unit cn signal is byte, the frame unit length is 8, the signal frame consists of 15296*n frame units, and the time slot length of the optical channel data unit cn signal is 128 bits, that is, 16 bytes; the flexible Ethernet group signal with a rate of 100G bits per second, the frame unit is a 64B / 66B coding block, the frame unit length is 66 bits, the signal frame consists of 20461 frame units, and the time slot length of the flexible Ethernet group signal with a rate of 100G bits per second is 66 bits, that is, the time slot corresponds to 1 64B / 66B coding block. Generally, the time slot length is greater than or equal to the frame unit length, and the time slot length is often an integer multiple of the frame unit length.
[0040] The time slot length of current service signals is a fixed value. When multiple client signals are loaded into the time slot of the service signal, if the number of client signals is large, the rate of the service signal is high, and there are multiple service signals, the time slot length of the service signal will affect the difficulty of hardware implementation. When hardware implements multiple client signals and multiple service signals, a hardware bus will be defined. This hardware bus is used to represent all service signals or all client signals. This hardware bus has a certain length. The unit of the hardware bus length is bit. The hardware bus length is equal to the rate sum of the service signal divided by the clock rate, where the clock rate is determined by the hardware implementation technology. For example, for field programmable arrays (FPGAs), the clock rate is generally 200M bits per second to 300M bits per second. For dedicated chips, the clock rate is generally 800M bits per second to 1G bits per second. The hardware bus length is equal to the rate sum of the service signal divided by the clock rate. For example, if the sum of the rates of all service signals is 400G bits per second and the clock rate is 1G bits per second, the hardware bus length is equal to 400 bits. Generally, the hardware bus length is adjusted to an integer multiple of the time slot length. For example, if the service signal is an optical channel data unit c4 signal, the time slot length is 128 bits, and the clock rate is 1G bits per second, although the hardware bus length can be calculated to be 400 bits, 400 cannot be divided by 128, so the hardware bus length will be 512 bits, and the clock rate will be reduced. The clock rate of 1G bits per second is the upper limit of the clock rate, and the clock rate can be reduced as needed, but it cannot exceed 1G bits per second.
[0041] For hardware implementation, if the hardware bus length is many times larger than the time slot length, the resources required for hardware implementation will increase significantly. Let E = hardware bus length / time slot length. The resources required for hardware implementation are related to the square of E, that is, as E increases, the resources required for hardware implementation will increase at a greater rate. At the same time, when the hardware bus length is greater than the time slot length, the delay introduced by hardware processing is related to the hardware bus length, not the time slot length. The actual hardware bus length and clock rate are the key factors for the processing delay introduced by hardware. Only when the hardware bus length is less than the time slot length will the time slot length be the key factor for the processing delay introduced by hardware. Therefore, when the hardware bus length is very large, reducing the time slot length cannot reduce the hardware processing delay, but may cause the difficulty of hardware implementation to increase exponentially.
[0042] The service signal corresponds to the communication device. From the application scenario, the communication device is divided into two categories: edge devices and backbone devices. The sum of the service signal rates of edge devices is small. At this time, the hardware has the advantages of low cost and low power consumption. The sum of the service signal rates of backbone devices is large. At this time, although the hardware cost is high and the power consumption is high, it still has the advantages of low cost and low power consumption from the cost and power consumption corresponding to the unit service signal rate. Therefore, different hardware implementations are required for edge devices and backbone devices. Different hardware corresponds to different sums of service signal rates, so the hardware bus length cannot be fixed. If the time slot length is set to a fixed value, then when the hardware bus length is much larger than the time slot length, the difficulty of hardware implementation will increase sharply, and the processing delay will not decrease due to the small time slot length. On the contrary, the processing delay will increase due to the increase in hardware complexity. However, if the time slot length is increased, when the hardware bus length is lower than the time slot length, the hardware implementation difficulty is very low, but the delay introduced by the time slot length will be very large. Therefore, when the fixed time slot length is for different hardware bus lengths, it is impossible to achieve the best delay and hardware implementation difficulty.
[0043] In view of this, the embodiments of the present application provide a signal processing method, a signal transmission device, an electronic device and a computer-readable storage medium, which are used to achieve a balance between reducing the difficulty of hardware implementation and reducing the delay introduced by hardware processing when the service signal rate is very high.
[0044] In a first aspect, the present application provides a signal processing method, such as Figure 2 As shown, the signal processing method provided in the embodiment of the present application includes the following steps:
[0045] Step S101: The transmitting end divides the service signal into N time slots, each time slot has a length of L bits, L = 2 c ×b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, and the value of c is determined according to the time slot length supported by the transmitting end and the receiving end;
[0046] Step S102, the transmitting end loads the client signal into the time slot of the service signal and sends it to the receiving end;
[0047] Step S103, after receiving the service signal, the receiving end determines the length of the time slot according to the value of c, and extracts the client signal from the time slot of the service signal according to the length of the time slot.
[0048] It is understandable that in order to reduce the difficulty of implementing the service signal for different hardware bus lengths and still maintain the advantage of low latency when the hardware bus length is low, the embodiment of the present application sets the time slot length to a variable value, and the time slot length must comply with the following rules: a basic time slot length b is set, and the time slot length is set to 2c ×b, where 2 c It represents 2 raised to the power of c, where c is an integer greater than or equal to 0, and the value of c is [c min , c max ], where c min is an integer greater than or equal to 0, c max is greater than or equal to c min integer, [c min , c max ] means greater than or equal to c min and less than or equal to c max For example, set c min is 0, c max If the length of c is 0-7, the slot lengths are b, 2*b, 4*b, 8*b, 16*b, 32*b, 64*b, and 128*b, respectively. For a hardware implementation, the length of the hardware bus is fixed. If the length of the hardware bus is greater than c min The corresponding time slot length can be obtained by reasonably choosing c min Reduce the difficulty of hardware implementation. For example, if the hardware bus length is 16*b, it is very difficult to support a time slot length of b. However, it is the easiest to support a time slot length of 16*b. Although the hardware implementation difficulty is higher when supporting time slot lengths of 32*b, 64*b, and 128*b than when supporting 16*b, the increased hardware implementation difficulty is lower, at least much lower than when supporting a time slot length of 8*b. Therefore, the minimum time slot length supported is 16*b, which is the simplest hardware implementation. If possible, you can also consider supporting a minimum time slot length of 8*b. At this time, the hardware complexity increases, but it is beneficial to reduce latency when communicating with other hardware.
[0049] When two hardware with different hardware bus lengths need to send and receive service signals to each other, they only need to choose the smallest c value that both hardware can support. In this way, the hardware processing delay can be minimized. Although the above scheme will increase the difficulty of hardware implementation for all hardware implementations due to supporting different time slot lengths, the increased hardware implementation difficulty is limited. In the original fixed time slot scheme, when the hardware bus length is much larger than the time slot length, a lot of hardware resources need to be added. In this case, the short time slot length does not actually reduce the delay. On the contrary, due to the increase in hardware complexity, additional delays are introduced, resulting in actual delays greater than when the time slot length and the hardware bus length are the same. In this way, the above scheme can greatly save hardware resources and greatly reduce the difficulty of hardware implementation. By selecting the appropriate c value, the delay introduced by hardware processing can be minimized. For example, a certain hardware supports c. minis 0, and the minimum supported time slot length is b. When two such hardware communicate with each other, c can be set to 0. At this time, the actual time slot lengths of the two such hardware are both b, thus achieving the lowest delay.
[0050] In the embodiment of the present application, the value of c is determined according to the time slot length supported by the transmitting end and the receiving end, and specifically includes the following steps:
[0051] Step S201, determine c1 corresponding to the sending end min The transmitter supports a variety of different time slot lengths. The specific supported time slot lengths are determined by the value of c1. The value range of c1 is [c1 min , c max ],c1 min Indicates the minimum value of c supported by the sender, c max is greater than c1 min The preset fixed value of c1 min Determined by the hardware capabilities of the sender;
[0052] Step S202, determine c2 corresponding to the receiving end min The receiving end supports a variety of different time slot lengths. The specific supported time slot lengths are determined by the value of c2. The value range of c2 is [c2 min , c max ],c2 min Indicates the minimum value of c supported by the receiving end, C max is greater than c2 min The preset fixed value of c2 min Determined by the hardware capabilities of the receiving end;
[0053] Step S203: c1 min and c2 mun The maximum value in is determined as the value of c, and the length of the time slots at the transmitting end and the receiving end is determined according to the value of c. The length of the time slot is L bits.
[0054] See also Figure 3a-3c , is a schematic diagram of time slot division when c takes different values. The square with numbers represents a bit block. The length of each bit block is b bits, b is an integer greater than 1, and the number in the square is the time slot number. Among them, Figure 3a Schematic diagram of time slot division when c=0. When c=0, each bit block is regarded as a time slot, and the length of each time slot is b bits. Assuming N=4, every 4 time slots are regarded as a time slot cycle. In a time slot cycle, each time slot is numbered in the order of 0-3. Figure 3bSchematic diagram of time slot division when c=1. When c=1, every 2 bit blocks are used as a time slot, and the length of each time slot is 2b bits. Assuming N=4, every 4 time slots are used as a time slot cycle. In a time slot cycle, each time slot is numbered in the order of 0-3. Figure 3c This is a schematic diagram of time slot division when c=2. When c=2, every 4-bit block is regarded as a time slot, and the length of each time slot is 4b bits. Assume N=4, and every 4 time slots are regarded as a time slot cycle. Within a time slot cycle, each time slot is numbered in sequence from 0 to 3.
[0055] For example, in the optical channel data unit cn signal, the frame unit is byte, the frame length is 15296*n frame units, the frame payload length is 15232*n frame units, the frame payload is divided into 20*n time slots, the bit block length is b, b=128 bits, and the time slot length can be set to 2 as needed. c ×b, where c is [0,7]. When a certain hardware is used to implement the optical path data unit cn signal, the value of c is [c min ,7], where c min Determines the difficulty of hardware implementation and converts the hardware bus length into c min , which can make hardware implementation as difficult as possible. For example, the maximum rate of the optical channel data unit cn signal supported by hardware A is 400G bits per second, which can support 1 optical channel data unit c4 signal, 4 optical channel data unit c1 signals, or 2 optical channel data unit c2 signals, or 1 optical channel data unit c3 signal plus 1 optical channel data unit c1 signal. According to its hardware capabilities, its hardware bus length is 512 bits. Compared with the bit block length b, 512=2 2 ×b, select c min The hardware supports time slot lengths of 512, 1024, 2048, 4096, 8192, and 16384 bits. The hardware implementation difficulty is the lowest. If necessary, you can also consider selecting cmin as 1. The implementation difficulty is lower than that of c. min When it is 2, it is slightly improved, but it is beneficial to get lower latency when communicating with other hardware. The maximum rate of the optical channel data unit cn signal that a hardware B can support is 100G bits per second, which can support 1 optical channel data unit c1 signal. According to its hardware capabilities, its hardware bus length is 128 bits. Compared with the bit block length b, 128=2 0 ×b, select c min=0, that is, when c is greater than or equal to 0, all time slot lengths are supported, that is, the time slot lengths supported by this hardware include 128, 256, 512, 1024, 2048, 4096, 8192, and 16384 bits. When hardware A and hardware B are interoperable, the minimum time slot length 512 that both can support is selected, that is, c = 2 is set. 8 specific values are added to the payload type overhead of the optical channel data unit cn signal to represent 8 time slot lengths.
[0056] It should be understood that the service signal is a fixed-length frame signal, and the signal frame of the service signal includes overhead and payload. Correspondingly, in step S101, the transmitting end divides the service signal into N time slots, including: the transmitting end divides the payload of the signal frame of the service signal into N time slots.
[0057] Specifically, the payload of the signal frame of the service signal is divided into N time slots, which is achieved in the following way: the payloads of the signal frames of K consecutive service signals are merged to obtain a payload of K×W bits, where W is the number of bits in the payload of the signal frame of the service signal, and K is an integer greater than 0.
[0058] K is obtained in the following manner: L consecutive bits form a time slot, N×L consecutive bits form a time slot period, Z is set to the least common multiple of N×L and W, K is set to be equal to Z / W, the K×W bit payload contains an integer number of time slot periods, and within each time slot period, a time slot number is assigned to each time slot in sequence from 0 to N-1.
[0059] For example, assuming that the number of bits corresponding to the payload of each signal frame is 112 (ie, W = 112), N = 4, L = 16, and Z is the least common multiple of N × L and W, then Z here is 448, and K is equal to Z / W, that is, K = 448 / 112 = 4. Figure 4 , Figure 4 There are 4 consecutive signal frames in the , each square with a number corresponds to 16 bits, the number in the square is the time slot number, the number of bits corresponding to the payload of each signal frame is 112, and the 4 signal frames can be combined to obtain 448 payload bits. According to N=4,L=16, the payload of the 4 signal frames is divided into time slots so that the number of bits of the payload of K signal frames can be exactly divisible by N*L.
[0060] In the embodiment of the present application, the transmitting end loads the client signal into the time slot of the service signal, which specifically includes the following steps:
[0061] Step S301, determining the number of client signal time slots M according to the fixed rate of the client signal and the rate of the payload of the signal frame of the service signal, where M is an integer less than or equal to N;
[0062] Step S302, select M time slots from N time slots, and load the client signals into the M time slots.
[0063] It can be understood that the value of M is determined according to the fixed rate of the client signal and the rate of the payload of the signal frame of the service signal, and the fixed rate of the client signal is less than or equal to the rate of the M time slots in the payload of the signal frame of the service signal. After the value of M is determined, M time slots are selected from the N time slots previously divided to load the client signal. It should be noted that the M time slots can be any M time slots among the N time slots, and the M time slots can be evenly distributed or unevenly distributed among the N time slots.
[0064] It is understandable that the signal frame overhead of the service signal includes the frame alignment overhead. The method of the embodiment of the present application also includes the following steps: the transmitter writes fixed bit information in the frame alignment overhead, and the receiver determines the specific location of the signal frame overhead and payload of the service signal according to the frame alignment overhead.
[0065] Among them, the receiving end determines the specific positions of the overhead and payload of the signal frame of the service signal based on the frame positioning overhead, specifically including: determining the frame header position of the signal frame of the service signal based on the fixed bit information contained in the frame positioning overhead and the signal frame length of the service signal, and determining the positions of the overhead and payload of the signal frame of the service signal based on the frame header position.
[0066] It is understandable that the signal frame overhead of the service signal includes the time slot indication overhead. The method of the embodiment of the present application also includes the following steps: the transmitting end writes the location information of the specific bit of the specific time slot and the time slot number of the specific time slot in the time slot indication overhead, and the receiving end determines the specific location and time slot number of each time slot according to the time slot indication overhead.
[0067] It can be understood that if the total number of time slots U divided in the payload of the signal frame of the service signal cannot be divided by the number of time slots N corresponding to one time slot period, that is, the payload of the signal frame contains a non-integer number of time slot periods, a time slot indication overhead can be added to the service signal to facilitate the receiving end to identify the starting position of each time slot period and the time slot number of each time slot according to the time slot indication overhead when receiving the service signal.
[0068] See also Figure 5 , Figure 5 The payload length of the signal frame shown is 58 bits. Each time slot in the signal frame corresponds to 1 byte. Every 4 time slots constitute a time slot cycle. The time slots in each time slot cycle are numbered in the order of 0, 1, 2, and 3. Figure 5The payload of the signal frame contains a non-integer number of time slot cycles, and the overhead of the signal frame contains a time slot indication overhead. The time slot indication overhead includes two pieces of information, namely, the position information of the specific bit of the specific time slot and the time slot number corresponding to the specific time slot. For example, the time slot where the first bit in the payload of the current signal frame is located is taken as the specific time slot, the first bit in the payload of the current signal frame is taken as the specific bit, and the bit offset of the specific bit relative to the specific time slot is taken as the position information of the specific bit of the specific time slot. Figure 5 In the signal frame -1, the specific time slot is the time slot where the first bit in the payload of the signal frame -1 is located, and the specific bit is the first bit in the payload of the signal frame -1. The time slot indication overhead consists of 8 bits, of which the first 4 bits represent the bit offset of the specific bit relative to the specific time slot. In the signal frame -1, since the first bit in the payload of the signal frame -1 is located at the first bit of a time slot, the bit offset is 0. Here, it is assumed that the first bit in the payload of the signal frame is located at the Yth bit of a time slot, and Y is 1 to 8. Then the bit offset is Y-1, so the first 4 bits of the time slot indication overhead of the signal frame -1 are 0. The last 4 bits of the time slot indication overhead represent the time slot number corresponding to the specific time slot. In the signal frame -1, the time slot number of the specific time slot is 0, so the last 4 bits of the time slot indication overhead of the signal frame -1 are 0, so the content of the time slot indication overhead of the signal frame -1 is 0x00 (0x represents hexadecimal); for Figure 5 In signal frame -2, the first bit in the payload of signal frame -2 is located at the third bit of a time slot, that is, the time slot numbered 3 has 2 bits located at the end of the payload of signal frame -1, and 6 bits located at the beginning of the payload of signal frame -2, so the bit offset is 2. Since this time slot corresponds to time slot number 3, the content of the time slot indication overhead of signal frame -2 is 0x23.
[0069] It is understandable that after sending the service signal, it is necessary to receive the service signal, determine the length of the time slot according to the value of c, and extract the client signal from the time slot of the service signal according to the length of the time slot.
[0070] In the embodiment of the present application, the receiving end determines the length of the time slot according to the value of c, and extracts the client signal from the time slot of the service signal according to the length of the time slot, specifically including the following steps:
[0071] Step S401, the receiving end determines the length of each time slot according to the value of c;
[0072] Step S402, the receiving end obtains the position and time slot number of each time slot of the payload of the signal frame of the service signal according to the position of the payload of the signal frame of the service signal, the time slot indication overhead and the length of each time slot;
[0073] Step S403: The receiving end determines M time slots from the N time slots of the payload of the signal frame of the service signal, and extracts the client signal from the M time slots, where M is an integer less than or equal to N.
[0074] In an embodiment of the present application, before the receiving end extracts the client signal from the time slot of the service signal according to the value of c, it may also include the following steps: determining the frame header position of the signal frame of the service signal according to the fixed bit information contained in the frame positioning overhead and the signal frame length of the service signal, and determining the position of the overhead and payload of the signal frame of the service signal according to the frame header position.
[0075] It is understandable that if the total number of time slots U divided in the payload of the signal frame of the service signal cannot be divided by the number of time slots N corresponding to a time slot period, that is, the payload of the signal frame contains a non-integer number of time slot periods, then the division method of the N time slots of each signal frame of the service signal may not be exactly the same. At this time, the position information of the specific bit of the specific time slot can be obtained through the time slot indication overhead in the overhead of the signal frame. Specifically, the time slot where the first bit in the payload of the current signal frame is located is taken as the specific time slot, and the time slot number of the specific time slot can be determined according to the time slot number of the specific time slot saved in the time slot indication overhead. According to the bit in the specific time slot to which the first bit in the payload of the current signal frame saved in the time slot indication overhead belongs, the specific position of the first bit of the specific time slot can be determined, so that the time slot numbers and specific positions of all subsequent time slots can be determined.
[0076] In specific implementation, the value of c can be pre-set at the transmitting end and the receiving end, so that the transmitting end divides N time slots in the payload of the signal frame according to the value of c, and the receiving end determines the length of each time slot according to the value of c, and then extracts the client signal from the time slot.
[0077] The receiving end needs to determine M time slots from the N time slots of the payload of the signal frame of the service signal. The specific time slot numbers of the M time slots are set by the controller. The controller can configure the hardware of the sending end and the receiving end at the same time. When loading the client signal into the M time slots of the service signal, the specific time slot numbers of the M idle time slots must be determined first. Once determined, the controller will configure the M time slot numbers to the sending end and the receiving end respectively. In this way, the receiving end only needs to identify the specific positions and time slot numbers of the N time slots, and can determine the M time slots from the N time slots according to the configuration information.
[0078] It should be noted that since the time slot length affects the intercommunication of service signals, when sending service signals, the current time slot length must be indicated by the specific overhead of the service signal. For example, for the optical path data unit signal or the optical path data unit cn signal, the current time slot length can be indicated by the payload type (PT, Payload Type) overhead. When receiving the service signal, it is necessary to compare whether the currently set expected time slot length is consistent with the time slot length indicated by the specific overhead. If they are inconsistent, a time slot length mismatch alarm is reported.
[0079] Second, see Figure 6 , an embodiment of the present application provides a signal transmission device, which is used to implement the above-mentioned signal transmission method. The signal transmission device 800 includes:
[0080] The transmitting end 801 is used to divide the service signal into N time slots, each time slot has a length of L bits, L = 2 c ×b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, and the value of c is determined according to the time slot length supported by the transmitting end and the receiving end. The client signal is loaded into the time slot of the service signal and sent to the receiving end;
[0081] The receiving end 802 is used to receive the service signal and extract the client signal from the time slot of the service signal according to the value of c.
[0082] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0083] Thirdly, see Figure 7 , is an electronic device provided in an embodiment of the present application, and the electronic device 900 includes but is not limited to:
[0084] at least one processor 910;
[0085] At least one memory 920, used to store at least one program;
[0086] When at least one program is executed by at least one processor 910 , the signal processing method described in any of the above embodiments is performed.
[0087] It should be understood that the processor 910 and the memory 920 may be connected via a bus or other means.
[0088] It should be understood that the processor 910 may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. Alternatively, the processor 910 may be one or more integrated circuits for executing related programs to implement the technical solutions provided in the embodiments of the present application.
[0089] The memory 920 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs, such as the signal processing method performed by the electronic device side described in any embodiment of the present application. The processor 910 implements the above-mentioned signal processing method by running the non-transitory software program and instructions stored in the memory 920.
[0090] The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store and execute the above-mentioned signal processing method. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 920 may optionally include a memory remotely arranged relative to the processor 910, and these remote memories may be connected to the processor 910 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] The non-transitory software programs and instructions required to implement the above-mentioned signal processing method are stored in the memory 920, and when executed by one or more processors 910, the signal processing method provided by any embodiment of the present application is executed.
[0092] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the signal processing method described in any of the above embodiments when executed by the processor.
[0093] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (cD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0094] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0095] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0096] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the present application.
Claims
1. A signal processing method, the method comprising: The transmitting end divides the service signal into N time slots, each of which has a length of L bits, L = 2 c × b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, and the value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end; The transmitting end loads the client signal into the time slot of the service signal and sends it to the receiving end, so that after receiving the service signal, the receiving end determines the length of the time slot according to the value of c, and takes out the client signal from the time slot of the service signal according to the length of the time slot.
2. The method according to claim 1, characterized in that The service signal is a fixed-length frame signal. The service signal is composed of a signal frame with a fixed length. The signal frame of the service signal includes an overhead and a payload.
3. The method according to claim 2, characterized in that The transmitting end dividing the service signal into N time slots includes: the transmitting end dividing the payload of the signal frame of the service signal into N time slots.
4. The method according to claim 3, characterized in that Dividing the payload of the signal frame of the service signal into N time slots specifically includes: The payloads of K consecutive signal frames of the service signal are merged to obtain a payload of K×W bits, where W is the number of bits in the payload of the signal frame of the service signal, and K is an integer greater than 0. K is obtained in the following manner: the consecutive L bits form one time slot, and consecutive N×L bits form a time slot period, Z is set to be the least common multiple of N×L and W, and K is set to be equal to Z / W. The payload of K×W bits contains an integer number of time slot periods, and within each time slot period, a time slot number is assigned to each time slot in sequence from 0 to N-1.
5. The method according to claim 4, characterized in that The transmitting end loads the client signal into the time slot of the service signal, comprising: The transmitting end determines the number of time slots M corresponding to the client signal according to the rate of the client signal and the rate of the payload of the signal frame of the service signal, where M is an integer less than or equal to N, so that the rate of the M time slots of the payload of the signal frame of the service signal is greater than or equal to the rate of the client signal; The transmitting end selects M time slots from the N time slots and loads the client signals into the M time slots.
6. The method according to claim 5, characterized in that The method further comprises: The overhead of the signal frame of the service signal includes a frame alignment overhead, the transmitting end writes fixed bit information into the frame alignment overhead, and the receiving end determines the specific position of the overhead and payload of the signal frame of the service signal according to the frame alignment overhead; The overhead of the signal frame of the service signal includes a time slot indication overhead. The transmitting end writes the position information of the specific bit of the specific time slot and the time slot number of the specific time slot in the time slot indication overhead. The receiving end determines the specific position and the time slot number of each time slot based on the time slot indication overhead.
7. The method according to claim 6, characterized in that The receiving end determines the specific location of the overhead and payload of the signal frame of the service signal according to the frame positioning overhead, including: The frame header position of the signal frame of the service signal is determined according to the fixed bit information contained in the frame positioning overhead and the signal frame length of the service signal, and the positions of the overhead and payload of the signal frame of the service signal are determined according to the frame header position.
8. The method according to claim 7, characterized in that The receiving end extracts the client signal from the time slot of the service signal according to the length of the time slot, including: The receiving end obtains the position of each time slot of the payload of the signal frame of the service signal and the time slot number according to the position of the payload of the signal frame of the service signal, the time slot indication overhead and the length of each time slot; M time slots are determined from the N time slots of the payload of the signal frame of the service signal, and the client signal is taken out from the M time slots.
9. The method according to claim 1, characterized in that: The value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end, including: The transmitting end supports multiple different values of the time slot length. The specific supported time slot length is determined by the value of c1. The value range of c1 is [c1 min , c max ], the c1 min Indicates the minimum value of c supported by the sender, where c max is greater than c1 min The preset fixed value of c1 min Determined according to the hardware capability of the sending end; The receiving end supports multiple different values of the time slot length, and the specific supported time slot length is determined by the value of c2, and the value range of c2 is [c2 min , c max ], the c2 min Indicates the minimum value of c supported by the receiving end, where c max is greater than c2 min The preset fixed value of c2 min Determined according to the hardware capability of the receiving end; The c1 min and c2 min The maximum value in is determined as the value of c, and the length of the time slot of the transmitting end and the receiving end is determined according to the value of c, and the length of the time slot is L bits.
10. A signal transmission device, used to implement the signal processing method according to any one of claims 1 to 9, characterized in that: The device comprises: The transmitting end is used to divide the service signal into N time slots, each of which has a length of L bits, L = 2 c × b, N is an integer greater than 0, b is a preset fixed value and an integer greater than 1, c is an integer greater than or equal to 0, the value of c is determined according to the length of the time slot supported by the transmitting end and the receiving end, the client signal is loaded into the time slot of the service signal, and sent to the receiving end; The receiving end is used to receive the service signal, determine the length of the time slot according to the value of c, and extract the client signal from the time slot of the service signal according to the length of the time slot.
11. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the signal processing method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: A processor-executable program is stored therein, and when the processor-executable program is executed by the processor, it is used to implement the signal processing method according to any one of claims 1 to 9.
