WO2011137790A1 - Method and apparatus for sending/receiving common public radio interface service - Google Patents

Method and apparatus for sending/receiving common public radio interface service Download PDF

Info

Publication number
WO2011137790A1
WO2011137790A1 PCT/CN2011/074316 CN2011074316W WO2011137790A1 WO 2011137790 A1 WO2011137790 A1 WO 2011137790A1 CN 2011074316 W CN2011074316 W CN 2011074316W WO 2011137790 A1 WO2011137790 A1 WO 2011137790A1
Authority
WO
WIPO (PCT)
Prior art keywords
check
code
code block
frame
coded
Prior art date
Application number
PCT/CN2011/074316
Other languages
French (fr)
Chinese (zh)
Inventor
蒋亚军
包盛花
黄春行
董晓青
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011137790A1 publication Critical patent/WO2011137790A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4906Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using binary codes
    • H04L25/4908Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using binary codes using mBnB codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting and receiving a general public radio interface service.
  • the CPRI (Common Public Radio Interface) specification mainly defines a protocol interface between a radio base station and a base station controller for communication between a base station and a base station controller.
  • the line coding format of the CPRI existing standard (rate less than or equal to 6.144 Gbps) protocol is 8B/10B, that is, the 8-bit codeword is mapped to the 10-bit codeword coding mode.
  • the coding process is shown in Figure 1: Data code
  • the stream is presented at the encoder input with 8 bits, and the 8-bit data is logically divided into two parts: the start 5 bits and the last 3 bits.
  • the start 5-bit data is input to the 5B function module to generate DC (Direct Current) balance-related encoding functions.
  • the last 3 bits are also input to the 3B function module, which generates the DC balance-related coding function.
  • Both the 5B function module and the 3B function module are used to determine the DC balance of the final code.
  • the balance control module uses the DC balance information provided by the function module to determine the DC balance code, and the final code is implemented in the 5B/6B and 3B/4B coding modules.
  • Embodiments of the present invention provide a method and an apparatus for transmitting and receiving a general public wireless interface service, Improve line coding efficiency, reduce crosstalk effects, and meet CPRI's next-generation application requirements for transmission rates. To this end, the embodiments of the present invention provide the following technical solutions:
  • a general public wireless interface service sending method includes:
  • a general public wireless interface service receiving method includes:
  • a universal public wireless interface service sending device includes:
  • a check frame generating unit configured to add a check bit in the service stream coded code block to obtain a check code block, and the plurality of check code blocks form a check frame, and the service stream code block in the current check frame
  • the check bit added in is the check digit of the service stream coding code block in the previous check frame
  • a superframe generating unit configured to form a plurality of check frames into a super frame, and identify a frame header of the super frame
  • a sending unit configured to send the identified super frame
  • a universal public wireless interface service receiving apparatus includes:
  • a codeword identifying unit configured to perform codeword synchronization on the received service code stream to identify a check code block, and identify a superframe boundary according to the superframe header feature
  • a check frame identifying unit configured to delimit a check frame by using a superframe boundary, where one superframe includes an integer number of check frames
  • a check frame detecting unit configured to perform error detection or error correction on the service stream coded code block according to the check bit in each check code block in the check frame
  • a code block obtaining unit configured to remove a check bit in the check code block to obtain a service stream coded block
  • a decoding unit configured to decode the service stream coded code block to obtain decoded service data.
  • the method and device for transmitting and receiving a common public radio interface service adopts an efficient line coding mechanism for CPRI interface service transmission, and provides a corresponding check protection mechanism and a superframe synchronization mechanism for the demand of CPRI high-speed evolution, and
  • the check bit added in the service flow code block in the current check frame is the check bit of the service stream code block in the previous check frame, which saves the transmission buffer and ensures compatibility with the CPRI standard, thereby ensuring the compatibility.
  • CPRI's next-generation application requirements for transmission rates are next-generation application requirements for transmission rates.
  • the receiving side performing codeword synchronization on the received service code stream to identify the check coded block, and identifying the superframe boundary according to the superframe header feature, since one superframe contains an integer number of check frames Therefore, the boundary of each check frame in the superframe may be further determined, and the service stream coded block may be error-detected or corrected according to the check bits in each check code block in the check frame, and the check is removed.
  • the check bit in the code block is obtained, and the service stream code block is obtained, and the code block of the service stream is decoded to obtain the decoded service data, thereby ensuring the correctness of the received data.
  • FIG. 1 is a schematic diagram of a process of encoding 8B/10B lines of CPRI in the prior art
  • FIG. 2 is a flowchart of a method for transmitting a general public radio interface service according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a 32B/34B coding mode according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a process of generating a FEC block in an embodiment of the present invention.
  • Figure 5 is a schematic diagram of 32B/34B encoding and 32/35B in the embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for receiving a general public radio interface service according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of an implementation of the WORD ALIGNMENT mechanism in the embodiment of the present invention
  • FIG. 9 is a schematic diagram of an error detection process of the FEC block in the embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a general public radio interface service sending apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a general public radio interface service receiving apparatus according to an embodiment of the present invention.
  • the applicant proposed a line coding method, specifically: encoding the code stream, including data frames in the code stream
  • the payload, the n-bit continuous data of the same position in each of the at least b segments of each of the consecutive N bits, is converted to m-bit continuous data, and the b is an integer greater than or equal to 2, N, n and m are all integers greater than 0, bxn ⁇ N, m > n.
  • n-bit continuous data in the n/m line coding table corresponds to one polarity deviation RD (Running Disparity) is a negative m-bit continuous data and/or a polarity deviation RD is positive m-bit continuous data, wherein, in the m-bit continuous data in which RD is negative, the number of 0s is greater than or equal to 1.
  • Number, RD is the number of zeros in the positive m-bit continuous data that is less than or equal to 1.
  • the n/m line coding table can also be a commonly used coding table such as 4B/5B, 8B/9B or 8B/10B.
  • N is 32, b is 2, n is 5, and m is 6, that is, 5B/6B code mapping processing is performed on some bits of the bit code stream entering the encoder, and the remaining bits are not processed by the text mapping.
  • FIG. 2 it is a flowchart of a method for transmitting a general public radio interface service according to an embodiment of the present invention, which includes the following steps:
  • Step 201 Add a check bit in the service stream coding code block to obtain a check code block, and multiple check code blocks form a check frame, and the check added in the service stream code block in the current check frame The bit is the parity bit of the service stream coded block in the previous check frame.
  • the service stream coding code block is a 32B/34B code code block
  • the check code code block is a 32B/35B code code block
  • the service stream code code block is used. It is a coded block of 36B/40B without a check bit
  • the check code block is a 36B/40B code block.
  • the service stream coded code block may be a 32B/34B coded code block, i.e., a 32-bit codeword is mapped to a coded block of a 34-bit codeword according to the line coding method proposed by the applicant, as shown in FIG.
  • the principles of 32B/34B coding mainly include:
  • the embodiment of the present invention does not limit the specific encoding format of the service stream coding code block, for example, it may also be an encoding format such as 36B/40B.
  • bits of the 36B/40B code represent the meaning:
  • check bits including FEC check digit, CRC check digit, parity bit.
  • the check bit inserted in the middle of the service stream coding code block is at least 1 bit.
  • a 1-bit parity bit may be added to the header of the 32B/34B code block, and accordingly, the generated check code block is a 32B/35B code block.
  • the check bits can be inserted into any position of the service stream code block, which is not limited in this embodiment of the present invention.
  • check code block and the check frame may be generated in the following manner:
  • the service stream code block of the current code stream to be coded is subjected to service flow coding to obtain a service stream coded code block.
  • the obtained service stream coded code block and the check bits interpolated into the obtained service stream coded code block constitute a check code block;
  • the RD polarity of all coded code streams is updated;
  • the plurality of check code blocks constitute the i-th check frame.
  • the all coded code stream is a 32B/35B coded code stream, and the service stream is coded as a 32B/35B code; or, the coded code stream is a 36B/40B coded code stream, and the service stream is encoded. Coded for 36B/40B.
  • the check bit may be an FEC check bit, or a CRC check bit, or a parity bit.
  • the check bit added in the current check frame is the check bit of the service stream code block in the previous check frame, that is, the correctness of the previous check frame is protected by the latter check frame.
  • Step 202 Form multiple check frames into one super frame, and identify a frame header of the super frame.
  • Step 203 Send the superframe after the identification.
  • a check protection mechanism such as FEC (Feedforward Error Correction) protection, is added, that is, an FEC check bit is added in the service stream coding block. So that the receiving end detects the correctness of the received code block according to the check bit.
  • FEC Field Error Correction
  • the 10 Gbps transmission requirement of the CPRI next-generation standard can be met.
  • the framing mode can be adopted: every 32 32B/35B coded code blocks form a check frame, and the implementation is implemented (1120, 1088, 32) Encoding, that is, using a 32-bit overhead bit, protecting the payload of 1088 bits, the length of the entire check frame is 1120 bits.
  • the embodiment of the present invention does not limit the specific number of check code blocks that constitute the check frame.
  • step 201 by adding a 1-bit parity bit to the header of the service stream coding block and forming an FEC frame by 32 parity code blocks.
  • a complete FEC frame contains 32 bits of parity bits and 32 32B/34B coded code blocks that are interleaved into the 1-bit code header of each 32B/35 coded code block that makes up the FEC frame. This type of processing can effectively avoid the long 0 and long 1 problems that can be caused by the 32-bit check digit.
  • the overhead bit of the FEC frame is allocated in the following manner: Special check digit:
  • the 32-bit check digit needs to be filled with the 32-bit parity bit generated by the i-1th FEC frame, and the specific filling manner is as shown in FIG. Show.
  • the first 32B/35B encoding is first performed on 32 bits, and the 32B/34B encoding includes a part of the codeword inversion processing of 32 bits and an RD polarity identification of another partial codeword.
  • the RD polarity identifier is determined according to whether the part of the codeword is inverted. If the part of the codeword is inverted, the RD polarity of the other part of the codeword is negative, if the part of the codeword is not inverted, or When a portion of the codeword should be inverted and the RD value of the other portion of the codeword has only a positive value, the RD polarity is positive and the portion of the codeword is not flipped.
  • the 32B/34B code is first encoded, and not only the RD polarity of the current 32B/34B code block to be coded but also the code block to be coded in the 32B/34B code block is determined.
  • the RD polarity of all previous coded code streams if the RD polarity of the current 32B/34B code block to be coded is the same as the RD polarity of all previous coded code streams, and the other of the 32B/34B code blocks to be coded
  • the 22 bits of the current 32B/34B code block to be coded [10: 0] and [26: 16] are inverted, and the corresponding [15: 11] and [ 31: 27] Perform the RD flag, and add the check bit of the second bit of the 32-bit check bit to the terminal of the second 32B/34B code block to generate the second 32B/35B code block.
  • a schematic diagram of a 32B/34B coded code block and a 32B/35B coded code block is shown.
  • two 5B codes in the current code block to be coded may be RD- as bits [15: 11] and bits [31: 27] respectively.
  • 5B/6B coding mapping the mapping table is shown in Table 1. If one of the two 5B codes does not have an RD-map, then the 5B code is mapped to RD+. If neither of the 5B codes has an RD-map, the 22 bits in the current code block to be coded are not flipped, and both 5B codes are mapped to the 5B/6B code of RD+.
  • a 32-bit check bit for each FEC frame may be generated by using an FEC generator polynomial g ⁇ ⁇ + ⁇ + ⁇ + + + +l, where the X represents a shift register, and the power representation shift The location of the bit register.
  • the FEC generator polynomial can refer to the description in the 802.3AP standard and will not be described in detail here.
  • the embodiment of the present invention does not limit the number of 32B/35B coded code blocks constituting the FEC frame.
  • 64 32B/35B coded code blocks may be used to form one FEC frame.
  • multiple check frames may be combined into one super frame.
  • 32 FEC frames may be combined into one super frame.
  • a superframe synchronization mechanism is also set, that is, the frame header of the superframe is identified in the above step 202.
  • the common control word of the super frame header under various line rates is K28.5, and after K28.5, codewords of different lengths are filled according to the different CPRI line rates.
  • the frame header of the superframe may be identified by using the control word K28.5, and the superframe synchronization of the 32B/35 encoding may be referred to FIG. 6 in order to maintain the same character detection mechanism as the existing CPRI protocol.
  • the upper line indicates the superframe header before encoding
  • the lower line indicates the superframe header after 32B/34B encoding.
  • control word K28.5 adopts the mapping manner as shown in Table 2.
  • the codeword of the control word K28.5 is mapped to "1100000101", that is, the RD-map value is selected. If the number of 1s in all transmitted codes is less than 0 (referred to as RD-), the codeword of control word K28.5 is mapped to "0011111010", that is, the RD+ mapped value is selected.
  • the [23:0] field of the superframe header remains unchanged, that is, [23:0] adopts a fixed special character.
  • a general public radio interface service sending method is adopted, and an efficient line coding mechanism is adopted for CPRI interface service transmission, and a corresponding check protection mechanism and a superframe synchronization mechanism are provided, and the current check is performed.
  • the check bits in the frame are interpolated into the next check frame to ensure DC balance, thus ensuring the application requirements of the next generation of CPRI for the transmission rate.
  • the received service code stream needs to be synchronized, so as to perform correct de-frame processing on the service data.
  • the synchronization of the service code stream mainly includes the following aspects: The boundary of the super frame boundary and the second code block are correctly identified from the received service code stream.
  • the embodiment of the present invention further provides a general public wireless interface service receiving method, as shown in FIG. 7, which is a flowchart of the method, including the following steps:
  • Step 701 Perform codeword synchronization on the received service code stream to identify a check code block.
  • Step 702 Identify a superframe boundary according to the superframe header feature.
  • the received service code stream is a 32B/35B coded code stream or a 36B/40B coded code stream.
  • the superframe boundary is identified by identifying a superframe boundary of the 32B/35B encoded code stream by detecting k28.5 characters; or identifying a 36B/40B encoded bitstream by detecting 10 characters. Superframe boundary.
  • Step 703 Delimit a check frame by using a superframe boundary, where one superframe includes an integer number of check frames. After the superframe boundary is identified, the boundary of each check frame in the superframe can be determined according to the number of check frames included in each superframe.
  • Step 704 Perform error detection or error correction on the service stream coded block according to the check bits in each check code block in the check frame.
  • Step 705 Remove the check bit in the check code block to obtain a service stream code block.
  • Step 706 Decode the service stream coded code block to obtain decoded service data. To determine the boundary of the superframe header, the following is an example of verifying that the coded block is a 32B/35B code block. The main process is as follows:
  • the receiver selects a bit from the traffic code stream entering the receiver, and starts synchronization detection from the bit. Synchronous detection is based on the assumption that the bit is the boundary of the superframe header, or the boundary of the 32B/35B codeword, then the frame header of the superframe should appear at a specific position from the bit to the back, that is, there is 8B/10B Encode K28.5, or appear 5B/6B encoding unique to 32B/35 code block. If the detection of a particular location finds these special characters, then the current candidate is considered to be the frame header of the superframe, or the boundary of the 32B/35B codeword.
  • the current candidate bit is considered to be neither the boundary of the superframe nor the 5B/6B encoding unique to the 32B/35 coded block, the current bit is discarded, and the next bit is used as the candidate bit. Repeat the above steps until you find a bit that matches those special characters.
  • the WORD ALIGNMENT mechanism can be implemented by means of a state machine, and the specific implementation process can be various, which are respectively illustrated below.
  • Example 1 The state machine includes the following states: a LOCS of Sync state, a Comma Detect state, a Synchronized state, and a Synchronized error state. It mainly includes the following processes:
  • a predetermined bitstream pattern is searched from the received service code stream by windowing, such as the above superframe header or the 5B/6B encoded 6B codeword, and enters the codeword character detection state; a codeword character detection state, continuing to detect data subsequent to the bitstream pattern, if the subsequent data of the bitstream pattern is a legal code, and is the predetermined bitstream pattern, and the number thereof reaches a first predetermined a value, then entering a codeword synchronization state; if the subsequent data of the bitstream pattern is an illegal code, returning to a codeword unsynchronized state; the legal code indicating that the data is a superframe frame header bitstream, or 5B/ 6B valid characters in the 6B code mapping table; the illegal code indicates that the data is not a superframe frame header bit stream, and is not a 6B valid character in the 5B/6B code mapping table;
  • the codeword synchronization state if the subsequently received data is a legal code, the codeword synchronization state is maintained; if the received data is an illegal code, the codeword synchronization error state is entered;
  • the codeword synchronization error state if the number of received illegal codes reaches the second predetermined value, the codeword is not synchronized; if the number of received legal codes reaches the third predetermined value, the illegal code will be received. The number is reduced by 1; when the number of illegal codes received is reduced to 0, the codeword synchronization state is entered;
  • the first predetermined value is the number of valid bitstream patterns that are required to be received by the state machine when entering the codeword synchronization state; the second predetermined value is required to be received when the state machine enters the codeword unsynchronized state.
  • the invalid codeword is the number of illegal codes; the third predetermined value is the number of consecutive valid codewords that the state machine needs to receive into the codeword synchronization state, that is, the number of legal codes.
  • the first predetermined value, the second predetermined value, and the third predetermined value may be set by the user according to actual application needs, such as may be set according to delays, resources, and requirements for stability of the synchronization state that the service can receive. For example, to prevent false synchronization, it is necessary to detect 16 or 64 valid characters to report synchronization, that is, the first predetermined value can be set to 16 or 64. Similarly, in order to prevent small disturbances from breaking the codeword synchronization state, it is necessary to detect Unsynchronization can only be reported when the number of valid characters reaches a certain number.
  • the [33:24] bits of the detected data represents the 24th to 33rd bits in a code stream, and if the k28.5 codeword specified by the superframe header is not met, the current detected data is determined. Not a super frame header;
  • Example 2 The state machine includes the following states: a codeword unsynchronized state, a codeword character detection state, a codeword synchronization state, and mainly includes the following processes:
  • a predetermined bitstream pattern is searched from the received service code stream by windowing, such as K28.5, or [16:11] and [33:28] are both 5B/6B encoded.
  • Windowing such as K28.5, or [16:11] and [33:28] are both 5B/6B encoded.
  • Code table enter the character detection state;
  • the codeword character detection state the data subsequent to the bitstream pattern is continuously detected, if the data subsequent to the bitstream pattern is continuously detected as a legal code, and the predetermined bitstream map is If the number of cases reaches a fourth predetermined value, such as 64, the codeword synchronization state is entered; if the subsequent data of the bitstream pattern is an illegal code, the codeword is not synchronized; the legal code indicates that the data is a superframe header bitstream, or a 6B valid character in a 5B/6B coding mapping table; the illegal code indicating that the data is not a superframe header bitstream, and is not a 6B valid character in the 5B/6B coding mapping table In the codeword synchronization state, it is necessary to continue to detect the codeword synchronization state to ensure that the codeword boundaries received subsequently are correct. If the subsequently received data is a legal code, the codeword synchronization state is maintained; if the number of subsequent received data is the fifth predetermined value, such as 16, the codeword is not synchronized
  • the state machine If the state machine is in the codeword synchronization state or the codeword synchronization error state, it is determined that the superframe boundary has been found.
  • the fourth predetermined value and the fifth predetermined value may be set according to an application requirement, for example, according to a service receivable delay, a resource, and a requirement for synchronization state stability.
  • a specific implementation flow chart includes the following steps:
  • Step 801 resetting, that is, in the unsynchronized state, searching for a 32B/35B codeword conforming to the 5B/6B code table from the received service code stream by windowing, and entering a character detection state;
  • Step 802 performing serial bit sliding, and the synchronization counter is returned to 0;
  • Step 803 obtaining the next character
  • Step 804 determining whether the obtained character is valid; if yes, performing step 805; otherwise returning to step 802;
  • Step 805 it is determined whether the number of valid times of the character reaches 63 times; if yes, step 807 is performed; otherwise, step 806 is performed;
  • Step 806 the value of the valid character counter is increased by 1;
  • Step 807 32B/35B codeword locking, that is, entering the codeword synchronization state
  • Step 808 the value of the invalid character counter is returned to 0;
  • Step 809 obtaining the next character
  • Step 810 determining whether the acquired character is valid; if yes, performing step 811; Step 813;
  • Step 811 it is determined whether the number of times the character is valid reaches 63 times; if yes, step 808 is performed; otherwise, step 812 is performed;
  • Step 812 the value of the valid character counter is incremented by 1; then returns to step 809;
  • Step 813 determining whether the number of invalid characters has reached 15 times on the premise that one character has been invalidated; if yes, returning to step 801; otherwise, executing step 814;
  • step 814 the value of the invalid number counter is incremented by 1, and the value of the synchronization counter is returned to 0; then, the process returns to step 809.
  • the superframe boundary can be correctly identified to ensure correct deframing of the received data.
  • whether the verification frame transmission is correct or not can also be detected by the serial bit sliding method.
  • the correctness of the current verification frame transmission needs to be performed after receiving the next verification frame. Specifically, after receiving the current check frame, acquiring a payload in the current check frame, and generating a check bit of the service stream coded block in the current check frame according to the payload, and generating a check with the sender.
  • the bit is in the same way, for example, it can be generated by using the FEC generator polynomial g ⁇ ⁇ + ⁇ + ⁇ + + + l; if the check bit of the service stream code block in the current check frame is generated and the next check frame If the check bits are the same, it is determined that the current check frame is transmitted correctly. Otherwise, the current check frame transmission error is determined, and the error correction is required.
  • the specific manner of error correction may be processed according to the prior art, and details are not described herein again.
  • FIG. 9 it is a schematic diagram of a check frame error detection process in the embodiment of the present invention.
  • a check frame includes 32 check code blocks as the payload in the i-1th check frame after receiving the i-1th check frame.
  • Generating a 32-bit check bit for the i-1th check frame assuming A, retaining the check bit A, and after receiving the i-th check frame, acquiring 32 bits of the i-th check frame
  • the check digit is assumed to be B.
  • the description of the method for transmitting the common public radio interface service in the foregoing embodiment of the present invention shows that the 32-bit check bit inserted in the middle of the i-th check frame is for the service stream coded block in the i-1th check frame.
  • Check Digit Therefore, by comparing whether the check bit A and the check bit B are the same, it can be determined whether the i-1th check frame is correctly transmitted. If the check bit A is the same as the check bit B, it is determined that the i-1th check frame is transmitted. The input is correct; otherwise, the i-1th check frame is not transmitted correctly. In this case, it can be slid to a candidate bit for the same match detection.
  • a LOS (Loss of Signal) mechanism which mainly includes two parts:
  • the LOS termination state is indicated.
  • the state of the L0S has two criteria:
  • the 32B/35B codeword synchronization state is an unlocked state, that is, the state machine is in an unsynchronized state;
  • the check bits of the service stream coded code block in at least 16 check frames do not reach the foregoing matching state, that is, the check bits of the service flow coded code block in the generated current check frame and The check digits in the next check frame are the same;
  • the LOS state is also caused when the received optical power is below the detection threshold.
  • the termination condition of the LOS state is:
  • the 32B/35B codeword is in a locked state, that is, the state machine is in a synchronized state, and there is no FEC check bit mismatch in the superframe.
  • a common public radio interface service receiving method performs codeword synchronization on a received service code stream, and identifies a boundary of a second coding block in a superframe boundary and a check frame; according to each check code in the check frame
  • the check bit in the block performs error detection or error correction on the service stream coding, removes the check bit in the check code block, and obtains the service stream code block; decodes the code block of the service stream, and after decoding
  • the business data ensures the correctness of the received data.
  • the embodiment of the present invention further provides a general public radio interface service sending apparatus, as shown in FIG. 8, which is a schematic structural diagram of the apparatus.
  • the universal public radio interface service sending apparatus includes:
  • the check frame generating unit 1001 is configured to add a check bit in the service stream coded code block to obtain a check code block, and the plurality of check code blocks form a check frame, and the service stream code in the current check frame
  • the check bit added in the block is the check digit of the service stream coding code block in the previous check frame
  • a superframe generating unit 1002 configured to form a plurality of check frames into one superframe, and identify a frame header of the superframe;
  • the sending unit 1003 is configured to send the identified superframe.
  • the service flow coded code block is a 32B/34B coded code block
  • the school coded coded code block is a 32B/35B coded code block.
  • the device further includes:
  • a check bit generating unit 1004 is configured to generate a 32-bit check bit by using a polynomial g ⁇ ⁇ + ⁇ + ⁇ + c u + + l , wherein the X represents a shift register, and the power represents a position of the shift register.
  • the check frame generating unit 1001 may interpolate each bit of the 32-bit check bit generated by the check bit generating unit 1004 into the header of the service stream coded block to generate a check code block, and
  • the description of the common public radio interface service sending method in the embodiment of the present invention is omitted, and the details are not described here.
  • the superframe generating unit 1002 may identify the frame header of the superframe by using the control word K28.5, and if the number of all the transmitted codes is greater than or equal to 0 When counting, the codeword of the control word K28.5 is mapped to "1100000101". If the number of 1s in all transmitted codes is less than 0, the codeword of the control word K28.5 is mapped to "0011111010". . For details, refer to the previous description.
  • the service stream coding code block may also be a 36B/40B coded code block without a check bit, and the school insurance code code block is a 36B/40B code code block.
  • the general public radio interface service sending apparatus of the embodiment of the invention adopts an efficient line coding mechanism for the CPRI interface service transmission, and provides a corresponding check protection mechanism and a super frame synchronization mechanism, and the current check frame, for the demand of the CPRI high-speed evolution.
  • the check digit added in the medium stream coding code block is the check digit of the service stream coding code block in the previous check frame, which ensures the DC balance, thereby ensuring the application requirement of the CPRI next generation for the transmission rate.
  • the embodiment of the present invention further provides a general public radio interface service receiving apparatus, as shown in FIG. 11, which is a schematic structural diagram of the apparatus.
  • the general public radio interface service receiving apparatus includes: a codeword identifying unit 1101, configured to perform codeword synchronization on the received service code stream, to identify a check coded block, and according to the superframe header Feature, identifying a superframe boundary;
  • a check frame identifying unit 1102 configured to delimit a check frame by using a superframe boundary, where a superframe includes an integer number of check frames;
  • the check frame detecting unit 1103 is configured to perform error detection or error correction on the service stream coded code block according to the check bits in each check code block in the check frame, where one super frame includes an integer number of check frames;
  • a code block obtaining unit 1104 configured to remove a check bit in the check code block to obtain a service stream coded block
  • the decoding unit 1105 is configured to decode the service stream coded code block to obtain decoded service data.
  • the codeword identification unit 1101 can implement the WORD ALIGNMENT mechanism in a plurality of manners to determine the boundary of the superframe header.
  • WORD ALIGNMENT mechanism for the specific implementation process, reference may be made to the foregoing description, and details are not described herein again.
  • the check frame detecting unit 1103 includes: a check bit generating subunit and a matching subunit (not shown), wherein the check bit generating subunit is configured to acquire the previous school Detecting a payload in the frame, and generating a check bit of the service stream coded code block in the previous check frame according to the payload; a matching subunit, configured to match the previous school generated by the check bit generation subunit In the frame inspection, the check bit of the service stream coding code block and the check bit in the current check frame, and when the matching result is the same, it is determined that the service flow code block in the previous school risk frame is correctly transmitted.
  • the general public radio interface service receiving apparatus of the embodiment of the present invention further provides a LOS mechanism.
  • the general public radio interface service receiving apparatus may further include:
  • the indicating unit 1106 is configured to: when the codeword identifying unit 1101 detects that the check code block in the check frame is in an unsynchronized state in a superframe, indicate an LOS state; and identify the codeword
  • the unit 1101 detects that the check code block in the check frame is in a synchronization state in one super frame, and indicates that when the check frame detecting unit 1103 detects that no check bit does not match in the super frame, The LOS status is terminated.
  • the universal public radio interface service receiving apparatus in the embodiment of the present invention can correctly identify the service code stream transmitted by the CPRI interface by using an efficient line coding mechanism, and ensures the correctness of the received data.

Abstract

A method and an apparatus for sending/receiving Common Public Radio Interface (CPRI) service are provided by the present invention. The sending method includes: adding a check bit into a service flow code-block to obtain a check code-block, and forming a check frame with multiple check code-blocks, wherein the check bit added into the service flow code-blocks of the current check-frame is the check-bit of the service flow code-blocks of the previous check frame (201); forming a hyperframe with multiple check frames, and identifying the frame header of the hyperframe (202); sending the identified hyperframe (203). According to the present invention, high efficient line coding mechanism can be adopted in CPRI interface service transmission, and corresponding check protection mechanism and hyperframe synchronization mechanism are provided, and therefore the application requirement on transmission rate of the CPRI next generation can be met.

Description

通用公共无线接口业务发送 /接收方法及装置 本申请要求于 2010 年 11 月 18 日提交中国专利局、 申请号为 201010549681.9、发明名称为 "通用公共无线接口业务发送、接收方法及装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  General public wireless interface service transmitting/receiving method and device The present application claims to be submitted to the Chinese Patent Office on November 18, 2010, the application number is 201010549681.9, and the invention name is "general public wireless interface service transmitting and receiving method and device" Chinese patent Priority of the application, the entire contents of which are incorporated herein by reference.
技术领域 Technical field
本发明涉及通信技术领域, 具体涉及一种通用公共无线接口业务发送、接 收方法及装置。  The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting and receiving a general public radio interface service.
背景技术 Background technique
CPRI ( Common Public Radio Interface, 通用公共无线接口)规范主要定 义了无线基站和基站控制器之间协议接口, 用于基站和基站控制器之间的通 信。  The CPRI (Common Public Radio Interface) specification mainly defines a protocol interface between a radio base station and a base station controller for communication between a base station and a base station controller.
CPRI现有标准(速率小于等于 6.144Gbps )协议的线路编码格式为 8B/10B, 即将 8比特码字映射为 10比特码字的编码方式,该编码处理过程如图 1所示: 数据码流以 8比特呈现在编码器输入口,并且 8比特数据在逻辑上分为两部分: 开始 5比特和最后 3比特。 开始 5比特数据被输入到 5B功能模块, 以产生 DC ( Direct Current, 直流)平衡相关的编码功能。 最后 3比特也同样被输入 到 3B功能模块, 产生 DC平衡相关的编码功能。 无论是 5B功能模块还是 3B 功能模块都是用于确定最终编码的 DC平衡。平衡控制模块使用功能模块提供 的 DC平衡信息确定 DC平衡编码,最终编码在 5B/6B和 3B/4B编码模块实现。  The line coding format of the CPRI existing standard (rate less than or equal to 6.144 Gbps) protocol is 8B/10B, that is, the 8-bit codeword is mapped to the 10-bit codeword coding mode. The coding process is shown in Figure 1: Data code The stream is presented at the encoder input with 8 bits, and the 8-bit data is logically divided into two parts: the start 5 bits and the last 3 bits. The start 5-bit data is input to the 5B function module to generate DC (Direct Current) balance-related encoding functions. The last 3 bits are also input to the 3B function module, which generates the DC balance-related coding function. Both the 5B function module and the 3B function module are used to determine the DC balance of the final code. The balance control module uses the DC balance information provided by the function module to determine the DC balance code, and the final code is implemented in the 5B/6B and 3B/4B coding modules.
在 CPRI现有标准中, 还规定了该线路编码的应用方案、 LOS ( Loss of In the current CPRI standard, the application scheme of the line coding is also specified, LOS ( Loss of
Signal, 信号丢失) /LOF ( Loss of Frame, 帧丢失)机制。 但在实现本发明实 施例的过程中, 发明人发现现有这种 8B/10B编码方式, 无法满期足 CPRI下 一代标准(速率大于等于 9.8304Gbps ) 的应用需求, 主要体现在以下几点:Signal, loss of signal / LOF (Loss of Frame) mechanism. However, in the process of implementing the embodiments of the present invention, the inventors have found that the existing 8B/10B encoding method cannot meet the application requirements of the next generation of CPRI standards (rates greater than or equal to 9.8304 Gbps), mainly reflected in the following points:
1、 当 8B/10B编码运用到 lOGbps传输系统中时, 由于编码本身翻转密度 过高, 因此编码的串扰^艮大, 不利于系统传输; 1. When the 8B/10B code is applied to the lOGbps transmission system, the crosstalk of the code itself is too high, which is not conducive to system transmission.
2、 8B/10B编码的效率较低, 资源浪费较大, 不能满足 CPRI高速演进需 求。  2. The efficiency of 8B/10B coding is low, and the waste of resources is large, which cannot meet the needs of CPRI high-speed evolution.
发明内容 Summary of the invention
本发明实施例提供一种通用公共无线接口业务发送、接收方法及装置, 以 提高线路编码效率,减少串扰影响,满足 CPRI下一代对传输速率的应用需求。 为此, 本发明实施例提供如下技术方案: Embodiments of the present invention provide a method and an apparatus for transmitting and receiving a general public wireless interface service, Improve line coding efficiency, reduce crosstalk effects, and meet CPRI's next-generation application requirements for transmission rates. To this end, the embodiments of the present invention provide the following technical solutions:
一种通用公共无线接口业务发送方法, 包括:  A general public wireless interface service sending method includes:
在业务流编码码块中添加校验位,得到校验编码码块, 多个校验编码码块 形成一个校验帧,当前校验帧中业务流编码码块中添加的校验位为前一个校验 帧中业务流编码码块的校验位;  Adding a check bit in the service stream coding code block to obtain a check code block, and multiple check code blocks form a check frame, and the check bit added in the service stream code block in the current check frame is a check digit of a service stream coded block in a check frame;
将多个校险帧组成一个超帧, 并标识所述超帧的帧头;  Forming a plurality of school insurance frames into a super frame, and identifying a frame header of the super frame;
发送标识后的超帧。  The superframe after the identity is sent.
一种通用公共无线接口业务接收方法, 包括:  A general public wireless interface service receiving method includes:
对接收的业务码流进行码字同步, 以识别出校验编码码块;  Performing codeword synchronization on the received service code stream to identify a check code block;
根据超帧头特征, 识别出超帧边界;  Identifying superframe boundaries based on superframe header characteristics;
利用超帧边界定界出校验帧, 一个超帧中包含整数个校验帧;  Determining a check frame by using a superframe boundary, and a superframe contains an integer number of check frames;
根据校验帧中各校验编码码块中的校验位对业务流编码码块进行检错或 纠错;  Performing error detection or error correction on the service stream coded code block according to the check bits in each check code block in the check frame;
去除所述校验编码码块中的校验位, 得到业务流编码码块;  Removing the check bit in the check code block to obtain a service stream code block;
对所述业务流编码码块进行解码, 得到解码后的业务数据。  Decoding the service stream coded block to obtain decoded service data.
一种通用公共无线接口业务发送装置, 包括:  A universal public wireless interface service sending device includes:
校验帧生成单元, 用于在业务流编码码块中添加校验位,得到校验编码码 块, 多个校验编码码块形成一个校验帧, 当前校验帧中业务流编码码块中添加 的校验位为前一个校验帧中业务流编码码块的校验位;  a check frame generating unit, configured to add a check bit in the service stream coded code block to obtain a check code block, and the plurality of check code blocks form a check frame, and the service stream code block in the current check frame The check bit added in is the check digit of the service stream coding code block in the previous check frame;
超帧生成单元,用于将多个校验帧组成一个超帧,并标识所述超帧的帧头; 发送单元, 用于发送标识后的超帧。  a superframe generating unit, configured to form a plurality of check frames into a super frame, and identify a frame header of the super frame; and a sending unit, configured to send the identified super frame.
一种通用公共无线接口业务接收装置, 包括:  A universal public wireless interface service receiving apparatus includes:
码字识别单元, 用于对接收的业务码流进行码字同步, 以识别出校验编码 码块, 并根据超帧头特征, 识别出超帧边界;  a codeword identifying unit, configured to perform codeword synchronization on the received service code stream to identify a check code block, and identify a superframe boundary according to the superframe header feature;
校验帧识别单元, 用于利用超帧边界定界出校验帧, 一个超帧中包含整数 个校验帧;  a check frame identifying unit, configured to delimit a check frame by using a superframe boundary, where one superframe includes an integer number of check frames;
校验帧检测单元,用于根据校验帧中各校验编码码块中的校验位对业务流 编码码块进行检错或纠错; 码块获得单元, 用于去除所述校验编码码块中的校验位,得到业务流编码 码块; a check frame detecting unit, configured to perform error detection or error correction on the service stream coded code block according to the check bit in each check code block in the check frame; a code block obtaining unit, configured to remove a check bit in the check code block to obtain a service stream coded block;
解码单元,用于对所述业务流编码码块进行解码,得到解码后的业务数据。 本发明实施例通用公共无线接口业务发送、 接收方法及装置, 针对 CPRI 高速演进的需求, 对 CPRI接口业务传输采用高效的线路编码机制, 并提供相 应的校验保护机制和超帧同步机制,而且当前校验帧中业务流编码码块中添加 的校验位为前一个校验帧中业务流编码码块的校验位, 节省了发送緩存,也保 证了与 CPRI标准的兼容, 从而保证了 CPRI下一代对传输速率的应用需求。 相应地, 在接收方, 对接收业务码流进行码字同步, 以识别出校验编码码块, 并根据超帧头特征, 识别出超帧边界, 由于一个超帧中包含整数个校验帧, 因 此进而可以确定超帧中各校验帧的边界,并根据校验帧中各校验编码码块中的 校验位对业务流编码码块进行检错或糾错, 去除所述校验编码码块中的校验 位, 得到业务流编码码块, 对所述业务流编码码块进行解码, 得到解码后的业 务数据, 保证了接收数据的正确性。  And a decoding unit, configured to decode the service stream coded code block to obtain decoded service data. The method and device for transmitting and receiving a common public radio interface service according to an embodiment of the present invention, adopts an efficient line coding mechanism for CPRI interface service transmission, and provides a corresponding check protection mechanism and a superframe synchronization mechanism for the demand of CPRI high-speed evolution, and The check bit added in the service flow code block in the current check frame is the check bit of the service stream code block in the previous check frame, which saves the transmission buffer and ensures compatibility with the CPRI standard, thereby ensuring the compatibility. CPRI's next-generation application requirements for transmission rates. Correspondingly, at the receiving side, performing codeword synchronization on the received service code stream to identify the check coded block, and identifying the superframe boundary according to the superframe header feature, since one superframe contains an integer number of check frames Therefore, the boundary of each check frame in the superframe may be further determined, and the service stream coded block may be error-detected or corrected according to the check bits in each check code block in the check frame, and the check is removed. The check bit in the code block is obtained, and the service stream code block is obtained, and the code block of the service stream is decoded to obtain the decoded service data, thereby ensuring the correctness of the received data.
附图说明 DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是 本发明中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些 附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only in the present invention. Some of the embodiments described may also be used to obtain other figures from those of ordinary skill in the art in view of these drawings.
图 1是现有技术中 CPRI的 8B/10B线路编码处理过程示意图;  1 is a schematic diagram of a process of encoding 8B/10B lines of CPRI in the prior art;
图 2是本发明实施例通用公共无线接口业务发送方法的流程图;  2 is a flowchart of a method for transmitting a general public radio interface service according to an embodiment of the present invention;
图 3是本发明实施例中一种 32B/34B编码方式的示意图;  3 is a schematic diagram of a 32B/34B coding mode according to an embodiment of the present invention;
图 4是本发明实施例中 FEC块的生成过程示意图;  4 is a schematic diagram of a process of generating a FEC block in an embodiment of the present invention;
图 5是本发明实施例中 32B/34B编码及 32/35B示意图;  Figure 5 is a schematic diagram of 32B/34B encoding and 32/35B in the embodiment of the present invention;
图 6是本发明实施例中超帧同步头的格式;  6 is a format of a superframe sync header in an embodiment of the present invention;
图 7是本发明实施例通用公共无线接口业务接收方法的流程图;  7 is a flowchart of a method for receiving a general public radio interface service according to an embodiment of the present invention;
图 8是是本发明实施例中 WORD ALIGNMENT机制的一种实现流程图; 图 9是本发明实施例中 FEC块检错过程示意图;  8 is a flowchart of an implementation of the WORD ALIGNMENT mechanism in the embodiment of the present invention; FIG. 9 is a schematic diagram of an error detection process of the FEC block in the embodiment of the present invention;
图 10是本发明实施例通用公共无线接口业务发送装置的一种结构示意 图; FIG. 10 is a schematic structural diagram of a general public radio interface service sending apparatus according to an embodiment of the present invention; Figure
图 11 是本发明实施例通用公共无线接口业务接收装置的一种结构示意 图。  FIG. 11 is a schematic structural diagram of a general public radio interface service receiving apparatus according to an embodiment of the present invention.
具体实施方式 detailed description
为了使本技术领域的人员更好地理解本发明实施例的方案,下面结合附图 和实施方式对本发明实施例作进一步的详细说明。  The embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments.
在 CPRI 标准演进工作中, 针对 CPRI 的下一代标准 (速率大于等于 9.8304Gbps ), 申请人提出了一种线路编码方法, 具体是: 对码流进行编码, 包括对所述码流中的数据帧的有效载荷, 将每连续 N个比特位中的至少 b段 中的各段中相同位置的 n位连续数据, 进行到 m位连续数据的转换, 所述 b 为大于或者等于 2的整数, 所述 N、 n和 m均为大于 0的整数, bxn<N, m>n。 具体地,对码流进行编码时,可以根据 n/m线路编码表进行 n位连续数据到 m 位连续数据的转换,该 n/m线路编码表中每一个 n位连续数据对应一个极性偏 差 RD ( Running Disparity ) 为负的 m位连续数据和 /或一个极性偏差 RD为正 的 m位连续数据, 其中, 可以定义 RD为负的 m位连续数据中 0的个数大于 或等于 1的个数, RD为正的 m位连续数据中 0的个数小于或等于 1的个数。 当然, 还可以定义 RD为负的 m位连续数据中 0的个数小于或等于 1的个数, RD为正的 m位连续数据中 0的个数大于或等于 1的个数。 RD为正或为负仅 仅是为了说明对应的数据流中 0和 1的个数的比较结果。 其中, n/m线路编码 表可以是 5B/6B编码表,或 3B/4B编码表,相应的, n=5, m=6或者 n=3, m=4。 n/m线路编码表还可以是 4B/5B、 8B/9B 或 8B/10B等常用的编码表。  In the CPRI standard evolution work, for the next generation of CPRI standards (rate greater than or equal to 9.8304 Gbps), the applicant proposed a line coding method, specifically: encoding the code stream, including data frames in the code stream The payload, the n-bit continuous data of the same position in each of the at least b segments of each of the consecutive N bits, is converted to m-bit continuous data, and the b is an integer greater than or equal to 2, N, n and m are all integers greater than 0, bxn < N, m > n. Specifically, when encoding the code stream, converting n-bit continuous data to m-bit continuous data according to the n/m line coding table, wherein each n-bit continuous data in the n/m line coding table corresponds to one polarity deviation RD (Running Disparity) is a negative m-bit continuous data and/or a polarity deviation RD is positive m-bit continuous data, wherein, in the m-bit continuous data in which RD is negative, the number of 0s is greater than or equal to 1. Number, RD is the number of zeros in the positive m-bit continuous data that is less than or equal to 1. Of course, it is also possible to define the number of 0s in the m-bit continuous data whose RD is negative is less than or equal to 1, and RD is the number of positive m-bit continuous data whose number of 0 is greater than or equal to 1. Whether RD is positive or negative is only to illustrate the comparison of the number of 0s and 1s in the corresponding data stream. Wherein, the n/m line coding table may be a 5B/6B coding table, or a 3B/4B coding table, correspondingly, n=5, m=6 or n=3, m=4. The n/m line coding table can also be a commonly used coding table such as 4B/5B, 8B/9B or 8B/10B.
优选地, N为 32, b为 2, n为 5, m为 6, 即对进入编码器的比特码流的 部分比特进行 5B/6B编码映射处理, 其余比特不 #文映射处理。  Preferably, N is 32, b is 2, n is 5, and m is 6, that is, 5B/6B code mapping processing is performed on some bits of the bit code stream entering the encoder, and the remaining bits are not processed by the text mapping.
另外, 为了保证编码性能, 在编码之前, 还需要对所有比特码流进行加扰 处理。通过这种线路编码可避免如 64B/66B编码长 0、长 1数据引发 ISI ( Inter Symbol Interference, 码间干扰 )效应的出现, 保证 DC平衡, 同时也能避免如 8B/10B 编码后跳变沿出现概率过高引发串扰的问题, 保证编码的物理电气传 输性能, 且能兼容 CPRI的低速率应用。 收的方法及装置。 In addition, in order to ensure the coding performance, all bit code streams need to be scrambled before encoding. This kind of line coding can avoid the occurrence of ISI (Inter Symbol Interference) effect, such as 64B/66B encoding length 0 and length 1 data, ensuring DC balance, and avoiding the jump edge after 8B/10B encoding. The problem of excessive probability of crosstalk is caused by the high probability of occurrence, ensuring the physical electrical transmission performance of the code, and compatible with CPRI's low-rate applications. Method and device for receiving.
如图 2所示,是本发明实施例通用公共无线接口业务发送方法的一种流程 图, 包括以下步骤:  As shown in FIG. 2, it is a flowchart of a method for transmitting a general public radio interface service according to an embodiment of the present invention, which includes the following steps:
步骤 201 , 在业务流编码码块中添加校验位, 得到校验编码码块, 多个校 验编码码块形成一个校验帧,当前校验帧中业务流编码码块中添加的校验位为 前一个校验帧中业务流编码码块的校验位。  Step 201: Add a check bit in the service stream coding code block to obtain a check code block, and multiple check code blocks form a check frame, and the check added in the service stream code block in the current check frame The bit is the parity bit of the service stream coded block in the previous check frame.
需要说明的是,在本发明实施例中,所述业务流编码码块为 32B/34B编码 码块, 所述校验编码码块为 32B/35B 编码码块, 或者所述业务流编码码块为 36B/40B不带校验位的编码码块, 所述校验编码码块为 36B/40B编码码块。  It should be noted that, in the embodiment of the present invention, the service stream coding code block is a 32B/34B code code block, the check code code block is a 32B/35B code code block, or the service stream code code block is used. It is a coded block of 36B/40B without a check bit, and the check code block is a 36B/40B code block.
所述业务流编码码块可以是 32B/34B编码码块,即按照上述申请人提出的 线路编码方法将 32比特码字映射为 34比特码字的编码码块, 如图 3所示。  The service stream coded code block may be a 32B/34B coded code block, i.e., a 32-bit codeword is mapped to a coded block of a 34-bit codeword according to the line coding method proposed by the applicant, as shown in FIG.
32B/34B编码的原则主要有:  The principles of 32B/34B coding mainly include:
( 1 ) 以 32比特载荷作为单元, 对比特码流进行加 4尤处理;  (1) adding a special processing to the bit stream by using a 32-bit payload as a unit;
( 2 )在 16比特前 5比特进行 5B/6B编码, 后 11比特保留, 不进行任何 处理。  (2) 5B/6B encoding is performed in the first 5 bits of 16 bits, and the last 11 bits are reserved without any processing.
当然, 本发明实施例并不限定所述业务流编码码块的具体编码格式, 比如 还可以是 36B/40B等编码格式。  Certainly, the embodiment of the present invention does not limit the specific encoding format of the service stream coding code block, for example, it may also be an encoding format such as 36B/40B.
36B/40B编码的各比特位代表含义:  The bits of the 36B/40B code represent the meaning:
[31:0]: 用户业务码流数据;  [31:0]: user service code stream data;
[35:32]: 控制字;  [35:32]: control word;
[39]: 翻转指示位 (指示 [35:0]是否需要翻转) ;  [39]: Flip indicator (indicating whether [35:0] needs to be flipped);
[38:37]: 同步头比特位;  [38:37]: Synchronization header bits;
[36]: 校验位, 包括 FEC校验位、 CRC校验位、 奇偶校验位三种情况。 另夕卜,在本发明实施例中,业务流编码码块中间插的校验位至少是 1比特。 比如, 可以在 32B/34B编码码块的头部增加 1比特的校险位, 相应地, 生成的 校验编码码块是 32B/35B编码码块。 当然,也可以将各校验位间插到业务流编 码码块的任何位置, 对此本发明实施例不做限定。  [36]: Check digits, including FEC check digit, CRC check digit, parity bit. In addition, in the embodiment of the present invention, the check bit inserted in the middle of the service stream coding code block is at least 1 bit. For example, a 1-bit parity bit may be added to the header of the 32B/34B code block, and accordingly, the generated check code block is a 32B/35B code block. Of course, the check bits can be inserted into any position of the service stream code block, which is not limited in this embodiment of the present invention.
具体地, 可以按照以下方式生成校验编码码块及校验帧:  Specifically, the check code block and the check frame may be generated in the following manner:
将针对第 i-1个校验帧产生的校验位中各比特间插到业务流编码码块中; 根据所有已编码码流的 RD极性和当前待编码的业务流编码码块中的部 分有效载荷的 RD极性,对当前待编码的业务流编码码块进行业务流编码得到 业务流编码码块;再由所述得到的业务流编码码块及间插到所述得到的业务流 编码码块中的校验位组成校验编码码块; 更新所有已编码码流的 RD极性; 将生成的多个校验编码码块组成第 i个校验帧。 Inserting each bit in the parity bit generated for the i-1th check frame into the service stream coded code block; And according to the RD polarity of all the coded code streams and the RD polarity of the part of the payload of the currently coded service stream coded block, the service stream code block of the current code stream to be coded is subjected to service flow coding to obtain a service stream coded code block. And further, the obtained service stream coded code block and the check bits interpolated into the obtained service stream coded code block constitute a check code block; the RD polarity of all coded code streams is updated; The plurality of check code blocks constitute the i-th check frame.
其中, 所述所有已编码码流为 32B/35B 编码码流, 所述业务流编码为 32B/35B编码; 或者, 所述所有已编码码流为 36B/40B编码码流, 所述业务流 编码为 36B/40B编码。  The all coded code stream is a 32B/35B coded code stream, and the service stream is coded as a 32B/35B code; or, the coded code stream is a 36B/40B coded code stream, and the service stream is encoded. Coded for 36B/40B.
需要说明的是, 所述校验位可以是 FEC校验位、 或 CRC校验位、 或奇偶 校验位。 而且, 当前校验帧中添加的校验位为前一个校验帧中业务流编码码块 的校验位, 也就是说, 由后一个校验帧保护前一个校验帧的正确性。  It should be noted that the check bit may be an FEC check bit, or a CRC check bit, or a parity bit. Moreover, the check bit added in the current check frame is the check bit of the service stream code block in the previous check frame, that is, the correctness of the previous check frame is protected by the latter check frame.
步骤 202, 将多个校验帧组成一个超帧, 并标识所述超帧的帧头。  Step 202: Form multiple check frames into one super frame, and identify a frame header of the super frame.
步骤 203, 发送标识后的超帧。  Step 203: Send the superframe after the identification.
在本发明实施例中, 为了保证数据传输的正确性, 采用校验保护机制, 比 如 FEC ( Feedforward Error Correction, 前向纠错编码 )保护, 即在业务流编码 码块中添加 FEC校验位, 以使接收端根据该校验位检测收到的码块的正确性。  In the embodiment of the present invention, in order to ensure the correctness of the data transmission, a check protection mechanism, such as FEC (Feedforward Error Correction) protection, is added, that is, an FEC check bit is added in the service stream coding block. So that the receiving end detects the correctness of the received code block according to the check bit.
利用本发明实施例的方法, 可以满足 CPRI下一代标准的 lOGbps传输需 求, 比如, 可以采取这样的组帧方式: 每 32个 32B/35B编码码块组成一个校 验帧, 实现( 1120, 1088, 32 )编码, 即利用 32比特的开销位, 保护 1088比 特的有效载荷, 整个校验帧的长度为 1120比特。 当然, 本发明实施例并不限 定组成校验帧的校验编码码块的具体个数。  With the method of the embodiment of the present invention, the 10 Gbps transmission requirement of the CPRI next-generation standard can be met. For example, the framing mode can be adopted: every 32 32B/35B coded code blocks form a check frame, and the implementation is implemented (1120, 1088, 32) Encoding, that is, using a 32-bit overhead bit, protecting the payload of 1088 bits, the length of the entire check frame is 1120 bits. Of course, the embodiment of the present invention does not limit the specific number of check code blocks that constitute the check frame.
下面以业务流编码码块的头部增加 1比特校验位, 并且将 32个校验编码 码块组成一个 FEC帧为例, 对上述步骤 201的实现过程进行详细说明。  The following describes the implementation process of the foregoing step 201 by adding a 1-bit parity bit to the header of the service stream coding block and forming an FEC frame by 32 parity code blocks.
一个完整的 FEC帧包含 32比特的校验位和 32个 32B/34B编码码块, 这 32比特的校验位被间插入组成该 FEC帧的每个 32B/35编码码块的 1比特码 头。 这种处理方式可以有效地避免 32比特的校验位可能引起的长 0、 长 1问 题。  A complete FEC frame contains 32 bits of parity bits and 32 32B/34B coded code blocks that are interleaved into the 1-bit code header of each 32B/35 coded code block that makes up the FEC frame. This type of processing can effectively avoid the long 0 and long 1 problems that can be caused by the 32-bit check digit.
为了进一步避免 32比特的校验位可能引起的 DC ( Direct Current, 直流 ) 不平衡问题, 在本发明实施例中, 采用以下方式分配 FEC帧的开销位即 32比 特的校验位: In order to further avoid the DC (Direct Current) imbalance problem that may be caused by the 32-bit check bit, in the embodiment of the present invention, the overhead bit of the FEC frame is allocated in the following manner: Special check digit:
对于第 1个发送的 FEC帧, 其 32比特的校险位中填充全 0;  For the first transmitted FEC frame, its 32-bit school insurance bit is filled with all 0s;
对于第 i ( i为大于 1的整数)个 FEC帧, 其 32比特的校验位中需要填充 由第 i-1个 FEC帧所产生的 32比特的校验位, 具体填充方式参照图 3所示。  For the i-th (i is an integer greater than 1) FEC frame, the 32-bit check digit needs to be filled with the 32-bit parity bit generated by the i-1th FEC frame, and the specific filling manner is as shown in FIG. Show.
参照图 4,针对第 i个 FEC帧的开销位填充针对 i-1个 FEC帧所产生的 32 比特的校验位的情况进行说明。  Referring to Fig. 4, the case where the overhead bits of the i-th FEC frame are filled with the 32-bit parity bits generated for the i-1 FEC frames will be described.
对第 1个 32B/35B编码, 首先对 32比特进行第 1个 32B/34B编码, 所述 32B/34B编码包括 32比特中的一部分码字翻转处理和另一部分码字的 RD极 性标识, 所述 RD极性标识是根据所述一部分码字是否翻转而定, 若所述一部 分码字翻转, 则所述另一部分码字的 RD极性标识为负, 若所述一部分码字不 翻转, 或所述一部分码字应该翻转而所述另一部分码字的 RD值只有正值时, RD极性标识为正, 并保持所述一部分码字不翻转。 需要说明的是, 在确定当 前 32B/34B待编码码块的 RD极性时,只根据该 32B/34B编码码块中位置 [10: 0]及 [26: 16]这 22比特的有效载荷进行统计, 其中, [10: 0]表示 34比特中的 第 0至 10比特, [26: 16] 表示 34比特中的第 16至 26比特, 后续相同。 如 果当前 32B/34B待编码码块之前的所有已编码码流及当前待编码的 32B/34B 码块中位置 [10: 0]及 [26: 16]这 22比特的 RD极性相同,且当前 [15: 11]及 [31: 27]中的任意一块或两块同时具有 RD负值时, 则对当前 32B/34B待编码码块 的位置 [10: 0]及 [26: 16]这 22比特进行翻转处理, 并对 [15: 11]及 [31: 27]中 的任意一块或两块同时进行 RD-标识, 生成第 1个 32B/34B编码码块; 否则, 如果当前 32B/34B待编码码块之前的所有已编码码流及当前待编码的 32B/34B 码块中位置 [10: 0]及 [26: 16]这 22比特的 RD极性相同,但当前 [15: 11]与 [31: 27]都不具有 RD负值时, 或当前 32B/34B待编码码块之前的所有已编码码流 及当前待编码的 32B/34B码块中位置 [10: 0]及 [26: 16]这 22比特的 RD极性 相反, 则不进行翻转处理, 并对 [15: 11]及 [31: 27]进行 RD+标识, 生成第 1 个 32B/34B编码码块, 再将 32比特的校验位中的第 1个比特的校验位添加到 第 1个 32B/34B编码码块的码头, 生成第 1个 32B/35B编码码块。  For the first 32B/35B encoding, the first 32B/34B encoding is first performed on 32 bits, and the 32B/34B encoding includes a part of the codeword inversion processing of 32 bits and an RD polarity identification of another partial codeword. The RD polarity identifier is determined according to whether the part of the codeword is inverted. If the part of the codeword is inverted, the RD polarity of the other part of the codeword is negative, if the part of the codeword is not inverted, or When a portion of the codeword should be inverted and the RD value of the other portion of the codeword has only a positive value, the RD polarity is positive and the portion of the codeword is not flipped. It should be noted that, when determining the RD polarity of the current 32B/34B code block to be coded, only the 22-bit payloads of the positions [10: 0] and [26: 16] in the 32B/34B code block are determined. Statistics, where [10: 0] represents the 0th to 10th bits of the 34 bits, and [26: 16] represents the 16th to 26th bits of the 34 bits, which are subsequently the same. If all the encoded code streams before the current 32B/34B code block to be coded are the same as the 22 bits RD of the positions [10: 0] and [26: 16] in the 32B/34B code block to be currently coded, and the current When any one or two of [15: 11] and [31: 27] have a negative RD, the position of the current 32B/34B code block to be coded [10: 0] and [26: 16] is 22 The bit is flipped, and any one or two of [15: 11] and [31: 27] are simultaneously RD-identified to generate a first 32B/34B code block; otherwise, if the current 32B/34B is to be processed All the encoded code streams before the coded block and the 22-bit RDs of the positions [10: 0] and [26: 16] in the 32B/34B code block to be coded are the same, but the current [15: 11] and [31: 27] does not have RD negative value, or all the coded code streams before the current 32B/34B code block to be coded and the current position of the 32B/34B code block to be coded [10: 0] and [26: 16] If the 22-bit RD has the opposite polarity, no flipping is performed, and RD+ is applied to [15: 11] and [31: 27] to generate the first 32B/34B code block, and then 32 bits. check The first bit of the first parity bit is added to a 32B / 34B code block is encoded Harbor, 1st generation 32B / 35B encoded code blocks.
对第 2个 32B/35B编码码块, 首先进行 32B/34B编码, 同样不仅要确定 当前 32B/34B待编码码块的 RD极性,而且要确定在该 32B/34B待编码码块之 前的所有已编码码流的 RD极性,如果当前 32B/34B待编码码块的 RD极性与 其之前的所有已编码码流的 RD极性相同,且 32B/34B待编码码块中的另一部 分码字有 RD负值时, 则对当前 32B/34B待编码码块的位置 [10: 0]及 [26: 16] 这 22比特进行翻转处理, 并对相应的 [15: 11]及 [31 : 27]进行 RD标识, 再将 32比特的校验位中的第 2个比特的校验位添加到第 2个 32B/34B编码码块的 码头, 生成第 2个 32B/35B编码码块; 否则, 如果当前 32B/34B待编码码块 之前的所有已编码码流及当前待编码的 32B/34B码块中位置 [10: 0]及 [26: 16] 这 22比特的 RD极性相同, 但当前 [15: 11]与 [31 : 27]都不具有 RD负值时, 或当前 32B/34B待编码码块之前的所有已编码码流及当前待编码的 32B/34B 码块中位置 [10: 0]及 [26: 16]这 22比特的 RD极性相反, 则不进行翻转处理, 对相应的 [15: 11]及 [31 : 27]进行 RD+标识, 将 32比特的校验位中的第 2个比 特的校验位添加到第 2个 32B/34B编码码块的码头, 生成第 2个 32B/35B编 码码块。 依此类推, 直到生成第 32个 32B/35B编码码块。 For the second 32B/35B coded code block, the 32B/34B code is first encoded, and not only the RD polarity of the current 32B/34B code block to be coded but also the code block to be coded in the 32B/34B code block is determined. The RD polarity of all previous coded code streams, if the RD polarity of the current 32B/34B code block to be coded is the same as the RD polarity of all previous coded code streams, and the other of the 32B/34B code blocks to be coded When some codewords have a negative RD value, the 22 bits of the current 32B/34B code block to be coded [10: 0] and [26: 16] are inverted, and the corresponding [15: 11] and [ 31: 27] Perform the RD flag, and add the check bit of the second bit of the 32-bit check bit to the terminal of the second 32B/34B code block to generate the second 32B/35B code block. Otherwise, if all the coded code streams before the current 32B/34B code block to be coded and the current position to be coded 32B/34B code block are [10: 0] and [26: 16], the 22 bits have the same RD polarity. , but the current [15: 11] and [31: 27] do not have RD negative values, or all the encoded code streams before the current 32B/34B code block to be coded and the position in the current 32B/34B code block to be encoded [10: 0] and [26: 16] These 22-bit RDs have opposite polarities, and no flipping is performed. The corresponding [15: 11] and [31: 27] are RD+-identified, and the 32-bit check is performed. The second bit in the bit A check bit is added to the wharf of the second 32B/34B code block to generate a second 32B/35B code block. And so on, until the 32nd 32B/35B coded block is generated.
最后, 将生成的 32个 32B/35B编码码块组成第 i个 FEC帧。  Finally, the generated 32 32B/35B coded code blocks form the i-th FEC frame.
如图 5所示, 示出了 32B/34B编码码块及 32B/35B编码码块的示意图。 需要说明的是, 为使接收端能够识别出这种翻转, 可以将当前待编码码块 中的两个 5B码, 分别为比特 [15: 11]和比特 [31 : 27] )做 RD-的 5B/6B编码映 射, 映射表见表 1所示。 若这两个 5B码中的某一个 5B码没有 RD-的映射, 则给这个 5B码进行 RD+的映射。 若两个 5B码都没有 RD-的映射, 则对当前 待编码码块中的 22比特不进行翻转,同时将两个 5B码都映射为 RD+的 5B/6B 编码。  As shown in Fig. 5, a schematic diagram of a 32B/34B coded code block and a 32B/35B coded code block is shown. It should be noted that, in order for the receiving end to recognize such a flip, two 5B codes in the current code block to be coded may be RD- as bits [15: 11] and bits [31: 27] respectively. 5B/6B coding mapping, the mapping table is shown in Table 1. If one of the two 5B codes does not have an RD-map, then the 5B code is mapped to RD+. If neither of the 5B codes has an RD-map, the 22 bits in the current code block to be coded are not flipped, and both 5B codes are mapped to the 5B/6B code of RD+.
5B (原码) RD+(6B) RD-(6B) 5B (original code) RD+(6B) RD-(6B)
00000 100111 011000  00000 100111 011000
00001 011101 100010  00001 011101 100010
00010 101101 010010  00010 101101 010010
00011 110001  00011 110001
00100 110101 001010  00100 110101 001010
00101 101001 00110 011001 00101 101001 00110 011001
00111 111000 000111  00111 111000 000111
01000 111001 000101  01000 111001 000101
01001 100101  01001 100101
01010 010101  01010 010101
01011 110100  01011 110100
01100 001101  01100 001101
01101 101100  01101 101100
OHIO 011100  OHIO 011100
01111 010111 101000  01111 010111 101000
10000 011011 100100  10000 011011 100100
10001 100011  10001 100011
10010 010011  10010 010011
10011 110010  10011 110010
10100 001011  10100 001011
10101 101010  10101 101010
10110 011010  10110 011010
10111 111010 000101  10111 111010 000101
11000 110011 001100  11000 110011 001100
11001 100110  11001 100110
11010 010110  11010 010110
11011 110110 001001  11011 110110 001001
11100 001110  11100 001110
11101 101110 010001  11101 101110 010001
11110 011110 100001  11110 011110 100001
11111 101011 010100  11111 101011 010100
对接收端来说,只要在两个 5B/6B编码位置的任意一个位置识别出了 RD- 的码字, 就将当前接收到的 32B/34B码块的 22比特进行翻转, 如果识别出的 RD码字全为正, 就不对当前码块中的 22比特翻转。 在本发明实施例中, 针对每个 FEC帧的 32比特的校验位可利用 FEC生 成多项式 g ^ ^ + ^ + ^ + + +l产生, 其中, 所述 X表示移位寄存器, 幂 表示移位寄存器的位置。 FEC生成多项式可参考 802.3AP标准中的说明,在此 不再详细描述。 For the receiving end, as long as the codeword of RD- is recognized at any of the two 5B/6B encoding positions, the 22 bits of the currently received 32B/34B code block are flipped, if recognized. The RD codewords are all positive and do not flip the 22 bits in the current code block. In the embodiment of the present invention, a 32-bit check bit for each FEC frame may be generated by using an FEC generator polynomial g ^ ^ + ^ + ^ + + + +l, where the X represents a shift register, and the power representation shift The location of the bit register. The FEC generator polynomial can refer to the description in the 802.3AP standard and will not be described in detail here.
需要说明的是, 本发明实施例并不限定组成 FEC帧的 32B/35B编码码块 的个数, 比如也可以由 64个 32B/35B编码码块组成一个 FEC帧。  It should be noted that, the embodiment of the present invention does not limit the number of 32B/35B coded code blocks constituting the FEC frame. For example, 64 32B/35B coded code blocks may be used to form one FEC frame.
在本发明实施例中, 可以将多个校验帧组成一个超帧, 比如, 可以将 32 个 FEC帧组成一个超帧。 同时, 还设置了超帧同步机制, 即上述步骤 202中 对所述超帧的帧头进行标识。  In the embodiment of the present invention, multiple check frames may be combined into one super frame. For example, 32 FEC frames may be combined into one super frame. At the same time, a superframe synchronization mechanism is also set, that is, the frame header of the superframe is identified in the above step 202.
在现有 CPRI协议中, 各种线速率下超帧头的共同控制字是 K28.5, K28.5 后依据 CPRI线速率的不同填充不同长度的码字。  In the existing CPRI protocol, the common control word of the super frame header under various line rates is K28.5, and after K28.5, codewords of different lengths are filled according to the different CPRI line rates.
为了与现有 CPRI协议保持相同的字符检测机制, 在本发明实施例中, 可 以利用控制字 K28.5对所述超帧的帧头进行标识, 32B/35编码的超帧同步可 参照图 6所示格式。  In the embodiment of the present invention, the frame header of the superframe may be identified by using the control word K28.5, and the superframe synchronization of the 32B/35 encoding may be referred to FIG. 6 in order to maintain the same character detection mechanism as the existing CPRI protocol. The format shown.
其中,上面一行表示编码前超帧头,下面一行表示经过 32B/34B编码后的 超帧头。  The upper line indicates the superframe header before encoding, and the lower line indicates the superframe header after 32B/34B encoding.
与现有 CPRI协议不同的是, 在本发明实施例中, 控制字 K28.5采用如表 2所示的映射方式。  Different from the existing CPRI protocol, in the embodiment of the present invention, the control word K28.5 adopts the mapping manner as shown in Table 2.
表 2:
Figure imgf000012_0001
Table 2:
Figure imgf000012_0001
并且,如果所有已传输的编码中 1的个数大于等于 0的个数(将其筒称为 RD+ )时, 将控制字 K28.5的码字映射为 "1100000101" , 即选择 RD-映射值; 如果所有已传输的编码中 1的个数小于 0的个数(将其筒称为 RD- )时, 将控 制字 K28.5的码字映射为 "0011111010" , 即选择 RD+映射值。  And, if the number of 1s in all transmitted codes is greater than or equal to 0 (referred to as RD+), the codeword of the control word K28.5 is mapped to "1100000101", that is, the RD-map value is selected. If the number of 1s in all transmitted codes is less than 0 (referred to as RD-), the codeword of control word K28.5 is mapped to "0011111010", that is, the RD+ mapped value is selected.
在本发明实施例中, 超帧头的 [23: 0]字段保持不变, 即 [23: 0]都采用固 定的特殊字符。 本发明实施例通用公共无线接口业务发送方法, 针对 CPRI高速演进的需 求, 对 CPRI接口业务传输采用高效的线路编码机制, 并提供相应的校验保护 机制和超帧同步机制, 而且将当前校验帧中的校验位间插至下一个校验帧中, 保证了 DC平衡, 从而保证了 CPRI下一代对传输速率的应用需求。 In the embodiment of the present invention, the [23:0] field of the superframe header remains unchanged, that is, [23:0] adopts a fixed special character. In the embodiment of the present invention, a general public radio interface service sending method is adopted, and an efficient line coding mechanism is adopted for CPRI interface service transmission, and a corresponding check protection mechanism and a superframe synchronization mechanism are provided, and the current check is performed. The check bits in the frame are interpolated into the next check frame to ensure DC balance, thus ensuring the application requirements of the next generation of CPRI for the transmission rate.
相应地, 针对上述 CPRI业务发送方法, 在接收端, 需要对接收的业务码 流进行同步, 以便对业务数据进行正确的解帧处理。对业务码流的同步主要包 括以下几方面: 从接收的业务码流中正确识别出超帧边界和第二编码块的边 界。  Correspondingly, for the foregoing CPRI service sending method, at the receiving end, the received service code stream needs to be synchronized, so as to perform correct de-frame processing on the service data. The synchronization of the service code stream mainly includes the following aspects: The boundary of the super frame boundary and the second code block are correctly identified from the received service code stream.
为此, 本发明实施例还提供一种通用公共无线接口业务接收方法, 如图 7 所示, 是该方法的流程图, 包括以下步骤:  To this end, the embodiment of the present invention further provides a general public wireless interface service receiving method, as shown in FIG. 7, which is a flowchart of the method, including the following steps:
步骤 701 , 对接收的业务码流进行码字同步, 以识别出校验编码码块。 步骤 702, 根据超帧头特征, 识别出超帧边界。  Step 701: Perform codeword synchronization on the received service code stream to identify a check code block. Step 702: Identify a superframe boundary according to the superframe header feature.
所述接收的业务码流为 32B/35B编码码流、 或者 36B/40B编码码流。 相 应地, 根据超帧头特征, 识别出超帧边界可以是通过检测 k28.5字符识别所述 32B/35B编码码流的超帧边界; 或者是通过检测 10字符识别 36B/40B编码码 流的超帧边界。  The received service code stream is a 32B/35B coded code stream or a 36B/40B coded code stream. Correspondingly, according to the superframe header feature, the superframe boundary is identified by identifying a superframe boundary of the 32B/35B encoded code stream by detecting k28.5 characters; or identifying a 36B/40B encoded bitstream by detecting 10 characters. Superframe boundary.
步骤 703, 利用超帧边界定界出校验帧, 一个超帧中包含整数个校验帧。 识别出超帧边界后,根据每个超帧中包含的校验帧的个数, 即可确定超帧 中各校验帧的边界。  Step 703: Delimit a check frame by using a superframe boundary, where one superframe includes an integer number of check frames. After the superframe boundary is identified, the boundary of each check frame in the superframe can be determined according to the number of check frames included in each superframe.
步骤 704, 根据校验帧中各校验编码码块中的校验位对业务流编码码块进 行检错或纠错。  Step 704: Perform error detection or error correction on the service stream coded block according to the check bits in each check code block in the check frame.
步骤 705, 去除所述校验编码码块中的校验位, 得到业务流编码码块。 步骤 706, 对所述业务流编码码块进行解码, 得到解码后的业务数据。 以确定超帧头的边界, 下面以校验编码码块为 32B/35B 编码码块为例进行说 明。 主要过程如下:  Step 705: Remove the check bit in the check code block to obtain a service stream code block. Step 706: Decode the service stream coded code block to obtain decoded service data. To determine the boundary of the superframe header, the following is an example of verifying that the coded block is a 32B/35B code block. The main process is as follows:
接收器从进入接收器的业务码流中选择一个比特,从该比特开始进行同步 检测。 同步检测的方式是,假设该比特是超帧头的边界, 或是 32B/35B码字的 边界, 那么从该比特往后数的特定位置应该出现超帧的帧头, 即有 8B/10B的 编码 K28.5 , 或出现 32B/35编码码块特有的 5B/6B编码。 如果检测特定位置 发现了这些特殊字符, 那么认为当前候选的比特是超帧的帧头, 或是 32B/35B 码字的边界。 The receiver selects a bit from the traffic code stream entering the receiver, and starts synchronization detection from the bit. Synchronous detection is based on the assumption that the bit is the boundary of the superframe header, or the boundary of the 32B/35B codeword, then the frame header of the superframe should appear at a specific position from the bit to the back, that is, there is 8B/10B Encode K28.5, or appear 5B/6B encoding unique to 32B/35 code block. If the detection of a particular location finds these special characters, then the current candidate is considered to be the frame header of the superframe, or the boundary of the 32B/35B codeword.
如果检测特定位置发现没有这些特殊的字符,那么认为当前候选比特既不 是超帧的边界,也不是 32B/35编码码块特有的 5B/6B编码, 则放弃当前比特, 将下一个比特作为候选比特, 重复上面的步骤, 直到找到一个符合那些特殊字 符的比特。  If it is found that there is no such special character in the specific location, then the current candidate bit is considered to be neither the boundary of the superframe nor the 5B/6B encoding unique to the 32B/35 coded block, the current bit is discarded, and the next bit is used as the candidate bit. Repeat the above steps until you find a bit that matches those special characters.
在本发明实施例中, 可以通过状态机的方式实现 WORD ALIGNMENT机 制, 具体实现过程可以有多种, 下面分别举例说明。  In the embodiment of the present invention, the WORD ALIGNMENT mechanism can be implemented by means of a state machine, and the specific implementation process can be various, which are respectively illustrated below.
例 1: 所述状态机包括以下状态: 码字未同步(LOSS of Sync )状态、 码 字字符检测 ( Comma Detect )状态、 码字同步(Synchronized) 状态、 码字同 步错误 ( Synchronized error )状态, 主要包括以下过程:  Example 1: The state machine includes the following states: a LOCS of Sync state, a Comma Detect state, a Synchronized state, and a Synchronized error state. It mainly includes the following processes:
在码字未同步状态下,通过划窗从接收的业务码流中查找到一个预定的比 特流图案,比如上述超帧头或 5B/6B编码的 6B码字,进入码字字符检测状态; 在码字字符检测状态, 继续对所述比特流图案后续的数据进行检测, 如果 所述比特流图案后续的数据是合法码、并且为所述预定的比特流图案, 并且其 个数达到第一预定值, 则进入码字同步状态; 如果所述比特流图案后续的数据 是非法码, 则回到码字未同步状态; 所述合法码表示所述数据是超帧帧头比特 流、 或 5B/6B编码映射表中的 6B有效字符; 所述非法码表示所述数据不是超 帧帧头比特流、 并且也不是 5B/6B编码映射表中的 6B有效字符;  In the unsynchronized state of the codeword, a predetermined bitstream pattern is searched from the received service code stream by windowing, such as the above superframe header or the 5B/6B encoded 6B codeword, and enters the codeword character detection state; a codeword character detection state, continuing to detect data subsequent to the bitstream pattern, if the subsequent data of the bitstream pattern is a legal code, and is the predetermined bitstream pattern, and the number thereof reaches a first predetermined a value, then entering a codeword synchronization state; if the subsequent data of the bitstream pattern is an illegal code, returning to a codeword unsynchronized state; the legal code indicating that the data is a superframe frame header bitstream, or 5B/ 6B valid characters in the 6B code mapping table; the illegal code indicates that the data is not a superframe frame header bit stream, and is not a 6B valid character in the 5B/6B code mapping table;
在码字同步状态下,如果后续收到的数据是合法码,则保持码字同步状态; 如果收到的数据是非法码, 则进入码字同步错误状态;  In the codeword synchronization state, if the subsequently received data is a legal code, the codeword synchronization state is maintained; if the received data is an illegal code, the codeword synchronization error state is entered;
在码字同步错误状态, 如果收到非法码的个数达到第二预定值, 则进入码 字未同步状态; 如果收到合法码的个数达到第三预定值, 则将收到非法码的个 数减 1; 当收到非法码的个数减为 0时, 进入码字同步状态; 有找到;  In the codeword synchronization error state, if the number of received illegal codes reaches the second predetermined value, the codeword is not synchronized; if the number of received legal codes reaches the third predetermined value, the illegal code will be received. The number is reduced by 1; when the number of illegal codes received is reduced to 0, the codeword synchronization state is entered;
如果状态机处于码字同步状态或码字同步错误状态, 则确定字边界已找 到。 其中,所述第一预定值为状态机进入到码字同步状态时所需接收到的有效 比特流图案的个数;第二预定值为状态机进入码字未同步状态时所需接收到的 无效码字即非法码的个数;第三预定值为状态机进入码字同步状态所需要接收 到的连续的有效码字即合法码的个数。所述第一预定值、第二预定值和第三预 定值可以由用户根据实际应用需要来设定, 比如可以根据业务可接收的延迟、 资源、 以及对同步状态稳定性的要求而设定。 比如, 为防止假同步, 需要检测 到 16或 64次有效字符才报同步, 即第一预定值可以设定为 16或 64; 同样, 为防止小的扰动将码字同步状态打破,需要检测不到有效字符的状态达到一定 数目时才能报非同步。 If the state machine is in the codeword synchronization state or the codeword synchronization error state, it is determined that the word boundary has been found. The first predetermined value is the number of valid bitstream patterns that are required to be received by the state machine when entering the codeword synchronization state; the second predetermined value is required to be received when the state machine enters the codeword unsynchronized state. The invalid codeword is the number of illegal codes; the third predetermined value is the number of consecutive valid codewords that the state machine needs to receive into the codeword synchronization state, that is, the number of legal codes. The first predetermined value, the second predetermined value, and the third predetermined value may be set by the user according to actual application needs, such as may be set according to delays, resources, and requirements for stability of the synchronization state that the service can receive. For example, to prevent false synchronization, it is necessary to detect 16 or 64 valid characters to report synchronization, that is, the first predetermined value can be set to 16 or 64. Similarly, in order to prevent small disturbances from breaking the codeword synchronization state, it is necessary to detect Unsynchronization can only be reported when the number of valid characters reaches a certain number.
需要说明的是,由于 32B/35B编码和现有的 8B/10B编码的编码方式不同, 因此, 在 WORD ALIGNMENT机制上与 CPRI现有协议中规定的同步机制也 有所不同, 具体如下:  It should be noted that since the 32B/35B encoding is different from the existing 8B/10B encoding, the synchronization mechanism specified in the WORD ALIGNMENT mechanism and the CPRI existing protocol is also different, as follows:
当前待检测数据无效的判断依据是:  The judgment basis for the current data to be detected is invalid is:
1. 检测数据的 [33:24]位, 所述 [33:24]表示一段码流中的第 24到 33比特, 如果不符合超帧头规定的 k28.5码字, 则确定当前检测数据不是超帧头;  1. The [33:24] bits of the detected data, the [33:24] represents the 24th to 33rd bits in a code stream, and if the k28.5 codeword specified by the superframe header is not met, the current detected data is determined. Not a super frame header;
2. 检测数据的 [16:11]位或者 [33:28]位, 如果不符合 5B/6B码表, 则确定 当前检测数据不是 5B/6B编码码字。  2. Check the [16:11] or [33:28] bits of the data. If the 5B/6B code table is not met, determine that the current test data is not a 5B/6B codeword.
当前待检测数据有效的判断依据是:  The judgment basis for the current data to be detected is valid is:
1. 检测数据的 [33:24]位, 如果符合超帧头规定的 k28.5码字, 则确定超 帧头有效;  1. The [33:24] bits of the detected data, if the k28.5 codeword specified by the superframe header is met, it is determined that the superframe header is valid;
2. 检测数据的 [16:11]位和 [33:28]位, 如果符合 5B/6B码表, 则确定当前 检测数据不是 5B/6B编码码字。  2. Check the [16:11] and [33:28] bits of the data. If the 5B/6B code table is met, it is determined that the current test data is not a 5B/6B codeword.
例 2: 所述状态机包括以下状态: 码字未同步状态、 码字字符检测状态、 码字同步状态、 主要包括以下过程:  Example 2: The state machine includes the following states: a codeword unsynchronized state, a codeword character detection state, a codeword synchronization state, and mainly includes the following processes:
在码字未同步状态下,通过划窗从接收的业务码流中查找到一个预定的比 特流图案, 比如 K28.5, 或 [16: 11]和 [33: 28] 都符合 5B/6B编码码表, 进 入字符检测状态;  In the unsynchronized state of the codeword, a predetermined bitstream pattern is searched from the received service code stream by windowing, such as K28.5, or [16:11] and [33:28] are both 5B/6B encoded. Code table, enter the character detection state;
在码字字符检测状态, 继续对所述比特流图案后续的数据进行检测, 如果 连续检测到所述比特流图案后续的数据是合法码、并且为所述预定的比特流图 案的个数达到第四预定值比如 64, 则进入码字同步状态; 如果所述比特流图 案后续的数据是非法码, 则回到码字未同步状态; 所述合法码表示所述数据是 超帧帧头比特流、 或 5B/6B编码映射表中的 6B有效字符; 所述非法码表示所 述数据不是超帧帧头比特流、并且也不是 5B/6B编码映射表中的 6B有效字符; 在码字同步状态下, 需要继续检测码字同步状态,保证后续接收的码字边 界都是正确的。 如果后续收到的数据是合法码, 则保持码字同步状态; 如果后 续收到的数据是非法码的个数达到第五预定值比如 16, 则回到码字未同步状 态; 边界没有找到; In the codeword character detection state, the data subsequent to the bitstream pattern is continuously detected, if the data subsequent to the bitstream pattern is continuously detected as a legal code, and the predetermined bitstream map is If the number of cases reaches a fourth predetermined value, such as 64, the codeword synchronization state is entered; if the subsequent data of the bitstream pattern is an illegal code, the codeword is not synchronized; the legal code indicates that the data is a superframe header bitstream, or a 6B valid character in a 5B/6B coding mapping table; the illegal code indicating that the data is not a superframe header bitstream, and is not a 6B valid character in the 5B/6B coding mapping table In the codeword synchronization state, it is necessary to continue to detect the codeword synchronization state to ensure that the codeword boundaries received subsequently are correct. If the subsequently received data is a legal code, the codeword synchronization state is maintained; if the number of subsequent received data is the fifth predetermined value, such as 16, the codeword is not synchronized; the boundary is not found;
如果状态机处于码字同步状态或码字同步错误状态,则确定超帧边界已找 到。  If the state machine is in the codeword synchronization state or the codeword synchronization error state, it is determined that the superframe boundary has been found.
其中, 所述第四预定值和第五预定值可根据应用需要来设定, 比如可以根 据业务可接收的延迟、 资源, 以及对同步状态稳定性的要求而设定。 种具体实现流程图, 包括以下步骤:  The fourth predetermined value and the fifth predetermined value may be set according to an application requirement, for example, according to a service receivable delay, a resource, and a requirement for synchronization state stability. A specific implementation flow chart includes the following steps:
步骤 801 , 重置, 即在未同步状态下, 通过划窗从接收的业务码流中查找 到一个符合 5B/6B码表的 32B/35B码字, 进入字符检测状态;  Step 801, resetting, that is, in the unsynchronized state, searching for a 32B/35B codeword conforming to the 5B/6B code table from the received service code stream by windowing, and entering a character detection state;
步骤 802, 进行串行比特位滑动, 同步计数器归 0;  Step 802, performing serial bit sliding, and the synchronization counter is returned to 0;
步骤 803 , 获取下一个字符;  Step 803, obtaining the next character;
步骤 804, 判断获取的字符是否有效; 如果是, 则执行步骤 805; 否则返 回步骤 802;  Step 804, determining whether the obtained character is valid; if yes, performing step 805; otherwise returning to step 802;
步骤 805 , 判断字符有效次数是否达到 63次; 如果是, 则执行步骤 807; 否则, 执行步骤 806;  Step 805, it is determined whether the number of valid times of the character reaches 63 times; if yes, step 807 is performed; otherwise, step 806 is performed;
步骤 806, 有效字符计数器的值加 1 ;  Step 806, the value of the valid character counter is increased by 1;
步骤 807, 32B/35B码字锁定, 即进入码字同步状态;  Step 807, 32B/35B codeword locking, that is, entering the codeword synchronization state;
步骤 808, 无效字符计数器的值归 0;  Step 808, the value of the invalid character counter is returned to 0;
步骤 809, 获取下一个字符;  Step 809, obtaining the next character;
步骤 810, 判断获取的字符是否有效; 如果是, 则执行步骤 811 ; 否则执 行步骤 813; Step 810, determining whether the acquired character is valid; if yes, performing step 811; Step 813;
步骤 811 ,判断字符有效的次数是否达到 63次;如果是,则执行步骤 808; 否则执行步骤 812;  Step 811, it is determined whether the number of times the character is valid reaches 63 times; if yes, step 808 is performed; otherwise, step 812 is performed;
步骤 812, 有效字符计数器的值加 1; 然后返回步骤 809;  Step 812, the value of the valid character counter is incremented by 1; then returns to step 809;
步骤 813; 判断在已检测到 1次字符无效的前提下, 字符无效的次数是否 达到 15次; 如果是, 则返回步骤 801; 否则执行步骤 814;  Step 813; determining whether the number of invalid characters has reached 15 times on the premise that one character has been invalidated; if yes, returning to step 801; otherwise, executing step 814;
步骤 814, 无效次数计数器的值加 1 , 同步计数器的值归 0; 然后返回步 骤 809。  In step 814, the value of the invalid number counter is incremented by 1, and the value of the synchronization counter is returned to 0; then, the process returns to step 809.
通过上述两种方式,可以正确识别出超帧边界进而保证对接收的数据进行 正确的解帧处理。  Through the above two methods, the superframe boundary can be correctly identified to ensure correct deframing of the received data.
在本发明实施例中, 基于发送端采用的保护机制, 相应地, 在上述步骤 In the embodiment of the present invention, based on the protection mechanism adopted by the transmitting end, correspondingly, in the above steps
802中, 对校验帧传输是否正确同样可以采用串行比特位滑动法进行检测, 当 前校验帧传输的正确与否, 需要在接收到下一个校验帧后才能进行。 具体地, 在接收到当前校验帧后, 获取当前校验帧中的有效载荷, 并根据所述有效载荷 生成当前校验帧中业务流编码码块的校验位, 与发送端生成校验位的方式相 同, 比如可以可利用 FEC生成多项式 g ^ ^ + ^ + ^ + + +l产生;如果生 成的当前校验帧中业务流编码码块的校验位与下一个校验帧中的校验位相同, 则确定当前校验帧传输正确, 否则确定当前校验帧传输错误, 需要对其进行纠 错, 纠错的具体方式可依照现有技术中的处理, 在此不再赘述。 In 802, whether the verification frame transmission is correct or not can also be detected by the serial bit sliding method. The correctness of the current verification frame transmission needs to be performed after receiving the next verification frame. Specifically, after receiving the current check frame, acquiring a payload in the current check frame, and generating a check bit of the service stream coded block in the current check frame according to the payload, and generating a check with the sender. The bit is in the same way, for example, it can be generated by using the FEC generator polynomial g ^ ^ + ^ + ^ + + + l; if the check bit of the service stream code block in the current check frame is generated and the next check frame If the check bits are the same, it is determined that the current check frame is transmitted correctly. Otherwise, the current check frame transmission error is determined, and the error correction is required. The specific manner of error correction may be processed according to the prior art, and details are not described herein again.
参照图 9所示, 是本发明实施例中校验帧检错过程示意图。  Referring to FIG. 9, it is a schematic diagram of a check frame error detection process in the embodiment of the present invention.
为了清楚起见, 在本实施例中, 以一个校验帧包含 32个校验编码码块为 在接收到第 i-1个校验帧后, 根据第 i-1个校验帧中的有效载荷产生针对 第 i-1个校验帧的 32比特的校验位, 假定为 A, 保留该校验位 A, 接收到第 i 个校验帧后, 获取第 i个校验帧中的 32比特的校验位, 假定为 B。  For the sake of clarity, in this embodiment, a check frame includes 32 check code blocks as the payload in the i-1th check frame after receiving the i-1th check frame. Generating a 32-bit check bit for the i-1th check frame, assuming A, retaining the check bit A, and after receiving the i-th check frame, acquiring 32 bits of the i-th check frame The check digit is assumed to be B.
由前面本发明实施例通用公共无线接口业务发送方法中的描述可知, 第 i 个校验帧中间插的 32比特的校验位是针对第 i-1个校验帧中业务流编码码块的 校验位。 因此, 通过比较校验位 A和校验位 B是否相同, 即可确定第 i-1个校 验帧是否传输正确。如果校验位 A与校验位 B相同, 则确定第 i-1个校验帧传 输正确; 否则表明第 i-1个校验帧传输不正确, 此时, 可以滑动到一个候选比 特位进行同样的匹配检测。 The description of the method for transmitting the common public radio interface service in the foregoing embodiment of the present invention shows that the 32-bit check bit inserted in the middle of the i-th check frame is for the service stream coded block in the i-1th check frame. Check Digit. Therefore, by comparing whether the check bit A and the check bit B are the same, it can be determined whether the i-1th check frame is correctly transmitted. If the check bit A is the same as the check bit B, it is determined that the i-1th check frame is transmitted. The input is correct; otherwise, the i-1th check frame is not transmitted correctly. In this case, it can be slid to a candidate bit for the same match detection.
在本发明实施例中, 还提供了 LOS ( Loss of Signal, 信号丢失)机制, 主 要包括两部分内容:  In the embodiment of the present invention, a LOS (Loss of Signal) mechanism is also provided, which mainly includes two parts:
如果在一个超帧内检测到所述校验帧中的 32B/35B 编码码块处于未同步 状态校验帧, 则指示 LOS状态;  If it is detected within a superframe that the 32B/35B coded code block in the check frame is in an unsynchronized state check frame, the LOS state is indicated;
如果在一个超帧内检测到所述校验帧中的 32B/35B 编码码块处于同步状 态, 并且该超帧内没有校验位不匹配, 则指示 LOS终止状态。  If it is detected within a superframe that the 32B/35B coded code block in the check frame is in a synchronized state, and there is no check bit mismatch in the superframe, the LOS termination state is indicated.
对于 32B/35B编码, 当应用在 CPRI下一代传输标准中时, L0S的状态有 两种判断标准:  For 32B/35B encoding, when applied to the CPRI next-generation transmission standard, the state of the L0S has two criteria:
( 1 ) 32B/35B码字同步状态为未锁定(unlock )状态, 即状态机处于未同 步状态;  (1) The 32B/35B codeword synchronization state is an unlocked state, that is, the state machine is in an unsynchronized state;
( 2 )在一个超帧中, 至少有 16个校验帧中业务流编码码块的校验位未达 到前述匹配状态,即生成的当前校验帧中业务流编码码块的校验位与下一个校 验帧中的校验位相同;  (2) In a superframe, the check bits of the service stream coded code block in at least 16 check frames do not reach the foregoing matching state, that is, the check bits of the service flow coded code block in the generated current check frame and The check digits in the next check frame are the same;
此外, 在 CPRI的光传输应用中, 当接收到的光功率低于检测门限时, 也 导致 LOS状态。  In addition, in CPRI optical transmission applications, the LOS state is also caused when the received optical power is below the detection threshold.
需要说明的是, 对 LOS状态的检测均在同一个超帧中进行。  It should be noted that the detection of the LOS state is performed in the same superframe.
( 2 ) LOS状态终止:  (2) LOS status termination:
LOS状态的终止条件为: 32B/35B码字为锁定(locked )状态, 即状态机 处于同步状态, 而且超帧内没有 FEC校验位不匹配的状态。  The termination condition of the LOS state is: The 32B/35B codeword is in a locked state, that is, the state machine is in a synchronized state, and there is no FEC check bit mismatch in the superframe.
本发明实施例通用公共无线接口业务接收方法,对接收业务码流进行码字 同步,识别出超帧边界和校验帧中的第二编码块的边界; 根据校验帧中各个校 验编码码块中的校验位对业务流编码进行检错或纠错,去除校验编码码块中的 校验位, 得到业务流编码码块; 对所述业务流编码码块进行解码, 得解码后的 业务数据, 保证了接收数据的正确性。  In the embodiment of the present invention, a common public radio interface service receiving method performs codeword synchronization on a received service code stream, and identifies a boundary of a second coding block in a superframe boundary and a check frame; according to each check code in the check frame The check bit in the block performs error detection or error correction on the service stream coding, removes the check bit in the check code block, and obtains the service stream code block; decodes the code block of the service stream, and after decoding The business data ensures the correctness of the received data.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可 读取存储介质中, 所述的存储介质, 如: ROM/RAM、 磁碟、 光盘等。 相应地, 本发明实施例还提供一种通用公共无线接口业务发送装置,如图 8所示, 是该装置的一种结构示意图。 A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, the storage. Media, such as: ROM/RAM, disk, CD, etc. Correspondingly, the embodiment of the present invention further provides a general public radio interface service sending apparatus, as shown in FIG. 8, which is a schematic structural diagram of the apparatus.
在该实施例中, 所述通用公共无线接口业务发送装置包括:  In this embodiment, the universal public radio interface service sending apparatus includes:
校验帧生成单元 1001 , 用于在业务流编码码块中添加校验位, 得到校验 编码码块, 多个校验编码码块形成一个校验帧, 当前校验帧中业务流编码码块 中添加的校验位为前一个校验帧中业务流编码码块的校验位;  The check frame generating unit 1001 is configured to add a check bit in the service stream coded code block to obtain a check code block, and the plurality of check code blocks form a check frame, and the service stream code in the current check frame The check bit added in the block is the check digit of the service stream coding code block in the previous check frame;
超帧生成单元 1002, 用于将多个校验帧组成一个超帧, 并标识所述超帧 的帧头;  a superframe generating unit 1002, configured to form a plurality of check frames into one superframe, and identify a frame header of the superframe;
发送单元 1003, 用于发送标识后的超帧。  The sending unit 1003 is configured to send the identified superframe.
在本发明实施例中,所述业务流编码码块为 32B/34B编码码块,所述校险 编码码块为 32B/35B编码码块; 相应地, 所述装置还进一步包括:  In the embodiment of the present invention, the service flow coded code block is a 32B/34B coded code block, and the school coded coded code block is a 32B/35B coded code block. Correspondingly, the device further includes:
校验位生成单元 1004, 用于利用多项式 g ^ ^ + ^ + ^ + cU + + l , 生成 32比特的校验位, 其中, 所述 X表示移位寄存器, 幂表示移位寄存器的位置。  A check bit generating unit 1004 is configured to generate a 32-bit check bit by using a polynomial g ^ ^ + ^ + ^ + c u + + l , wherein the X represents a shift register, and the power represents a position of the shift register.
在具体应用中,校验帧生成单元 1001可以将校验位生成单元 1004生成的 32比特校验位中的各比特间插在业务流编码码块的头部, 生成校验编码码块, 并将多个校验编码码块组成一个校验帧,具体间插方式及实现过程可参照前面 本发明实施例通用公共无线接口业务发送方法中的描述, 在此不再赘述。  In a specific application, the check frame generating unit 1001 may interpolate each bit of the 32-bit check bit generated by the check bit generating unit 1004 into the header of the service stream coded block to generate a check code block, and For example, the description of the common public radio interface service sending method in the embodiment of the present invention is omitted, and the details are not described here.
在本发明实施例中, 所述超帧生成单元 1002可以利用控制字 K28.5对所 述超帧的帧头进行标识, 并且, 如果所有已传输的编码中 1的个数大于等于 0 的个数时, 将控制字 K28.5的码字映射为 "1100000101" , 如果所有已传输的 编码中 1的个数小于 0的个数时,将控制字 K28.5的码字映射为 "0011111010"。 具体可参照前面的描述。  In the embodiment of the present invention, the superframe generating unit 1002 may identify the frame header of the superframe by using the control word K28.5, and if the number of all the transmitted codes is greater than or equal to 0 When counting, the codeword of the control word K28.5 is mapped to "1100000101". If the number of 1s in all transmitted codes is less than 0, the codeword of the control word K28.5 is mapped to "0011111010". . For details, refer to the previous description.
在本发明实施例中,所述业务流编码码块还可以为 36B/40B不带校验位的 编码码块, 所述校险编码码块为 36B/40B编码码块。  In the embodiment of the present invention, the service stream coding code block may also be a 36B/40B coded code block without a check bit, and the school insurance code code block is a 36B/40B code code block.
本发明实施例通用公共无线接口业务发送装置, 针对 CPRI高速演进的需 求, 对 CPRI接口业务传输采用高效的线路编码机制, 并提供相应的校验保护 机制和超帧同步机制,而且当前校验帧中业务流编码码块中添加的校验位为前 一个校验帧中业务流编码码块的校验位, 保证了 DC平衡, 从而保证了 CPRI 下一代对传输速率的应用需求。 相应地, 本发明实施例还提供一种通用公共无线接口业务接收装置,如图 11所示, 是该装置的一种结构示意图。 The general public radio interface service sending apparatus of the embodiment of the invention adopts an efficient line coding mechanism for the CPRI interface service transmission, and provides a corresponding check protection mechanism and a super frame synchronization mechanism, and the current check frame, for the demand of the CPRI high-speed evolution. The check digit added in the medium stream coding code block is the check digit of the service stream coding code block in the previous check frame, which ensures the DC balance, thereby ensuring the application requirement of the CPRI next generation for the transmission rate. Correspondingly, the embodiment of the present invention further provides a general public radio interface service receiving apparatus, as shown in FIG. 11, which is a schematic structural diagram of the apparatus.
在本发明实施例中, 所述通用公共无线接口业务接收装置包括: 码字识别单元 1101 , 用于对接收业务码流进行码字同步, 以识别出校验 编码码块, 并根据超帧头特征, 识别出超帧边界;  In the embodiment of the present invention, the general public radio interface service receiving apparatus includes: a codeword identifying unit 1101, configured to perform codeword synchronization on the received service code stream, to identify a check coded block, and according to the superframe header Feature, identifying a superframe boundary;
校验帧识别单元 1102, 用于利用超帧边界定界出校验帧, 一个超帧中包 含整数个校验帧;  a check frame identifying unit 1102, configured to delimit a check frame by using a superframe boundary, where a superframe includes an integer number of check frames;
校验帧检测单元 1103 , 用于根据校验帧中各校验编码码块中的校验位对 业务流编码码块进行检错或纠错, 一个超帧中包含整数个校验帧;  The check frame detecting unit 1103 is configured to perform error detection or error correction on the service stream coded code block according to the check bits in each check code block in the check frame, where one super frame includes an integer number of check frames;
码块获得单元 1104, 用于去除所述校验编码码块中的校验位, 得到业务 流编码码块;  a code block obtaining unit 1104, configured to remove a check bit in the check code block to obtain a service stream coded block;
解码单元 1105, 用于对所述业务流编码码块进行解码, 得到解码后的业 务数据。  The decoding unit 1105 is configured to decode the service stream coded code block to obtain decoded service data.
在本发明实施例中, 所述码字识别单元 1101 可以采用多种方式实现 WORD ALIGNMENT机制, 从而确定出超帧头的边界, 具体实现过程可参照 前面的描述, 在此不再赘述。  In the embodiment of the present invention, the codeword identification unit 1101 can implement the WORD ALIGNMENT mechanism in a plurality of manners to determine the boundary of the superframe header. For the specific implementation process, reference may be made to the foregoing description, and details are not described herein again.
与校验帧生成机制相对应, 所述校验帧检测单元 1103包括: 校验位生成 子单元和匹配子单元(未图示), 其中, 校验位生成子单元, 用于获取前一个 校验帧中的有效载荷,并根据所述有效载荷生成前一个校验帧中业务流编码码 块的校验位; 匹配子单元, 用于匹配所述校验位生成子单元生成的前一个校验 帧中业务流编码码块的校验位与当前校验帧中的校验位, 并在匹配结果相同 时, 确定前一个校险帧中的业务流编码码块传输正确。  Corresponding to the check frame generation mechanism, the check frame detecting unit 1103 includes: a check bit generating subunit and a matching subunit (not shown), wherein the check bit generating subunit is configured to acquire the previous school Detecting a payload in the frame, and generating a check bit of the service stream coded code block in the previous check frame according to the payload; a matching subunit, configured to match the previous school generated by the check bit generation subunit In the frame inspection, the check bit of the service stream coding code block and the check bit in the current check frame, and when the matching result is the same, it is determined that the service flow code block in the previous school risk frame is correctly transmitted.
另外, 本发明实施例通用公共无线接口业务接收装置还提供 LOS机制, 为此, 在所述通用公共无线接口业务接收装置中还可进一步包括:  In addition, the general public radio interface service receiving apparatus of the embodiment of the present invention further provides a LOS mechanism. To this end, the general public radio interface service receiving apparatus may further include:
指示单元 1106, 用于在所述码字识别单元 1101在一个超帧内检测到所述 校验帧中的校验编码码块处于未同步状态时, 指示 LOS状态; 并在所述码字 识别单元 1101在一个超帧内检测到所述校验帧中的校验编码码块处于同步状 态, 并且在该超帧内所述校验帧检测单元 1103检测到没有校验位不匹配时, 指示 LOS状态终止。 本发明实施例通用公共无线接口业务接收装置, 可以实现对 CPRI接口采 用高效的线路编码机制传输的业务码流的正确识别, 保证了接收数据的正确 性。 The indicating unit 1106 is configured to: when the codeword identifying unit 1101 detects that the check code block in the check frame is in an unsynchronized state in a superframe, indicate an LOS state; and identify the codeword The unit 1101 detects that the check code block in the check frame is in a synchronization state in one super frame, and indicates that when the check frame detecting unit 1103 detects that no check bit does not match in the super frame, The LOS status is terminated. The universal public radio interface service receiving apparatus in the embodiment of the present invention can correctly identify the service code stream transmitted by the CPRI interface by using an efficient line coding mechanism, and ensures the correctness of the received data.
以上对本发明实施例进行了详细介绍,本文中应用了具体实施方式对本发 明进行了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及设备; 同 时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施方式及应用 范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。  The embodiments of the present invention have been described in detail above, and the present invention has been described with reference to the specific embodiments thereof. The description of the above embodiments is only for facilitating understanding of the method and device of the present invention. Meanwhile, for those skilled in the art, The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种通用公共无线接口业务发送方法, 其特征在于, 包括:  A general public radio interface service sending method, which is characterized in that:
在业务流编码码块中添加校验位,得到校验编码码块, 多个校验编码码块 形成一个校验帧,当前校验帧中业务流编码码块中添加的校验位为前一个校验 帧中业务流编码码块的校验位;  Adding a check bit in the service stream coding code block to obtain a check code block, and multiple check code blocks form a check frame, and the check bit added in the service stream code block in the current check frame is a check digit of a service stream coded block in a check frame;
将多个校 3 帧组成一个超帧, 并标识所述超帧的帧头;  Forming a plurality of calibration frames into one superframe, and identifying a frame header of the superframe;
发送标识后的超帧。  The superframe after the identity is sent.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述业务流编码码块为 32B/34B编码码块, 所述校验编码码块为 32B/35B编码码块, 或者所述业务流 编码码块为 36B/40B 不带校验位的编码码块, 所述校验编码码块为 36B/40B 编码码块。  The method according to claim 1, wherein the service stream coded code block is a 32B/34B coded code block, and the check coded code block is a 32B/35B coded code block, or the service flow. The coded code block is 36B/40B coded code block without a check bit, and the check code block is a 36B/40B code block.
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: 利用多项式 g ^ ^ + ^ + ^ + + +l , 生成 32 比特的校验位, 其中, 所述 X表示移位寄存器, 幂表示移位寄存器的位置。  The method according to claim 2, wherein the method further comprises: generating a 32-bit check digit by using a polynomial g ^ ^ + ^ + ^ + + + +l, wherein the X represents shift The bit register, power, represents the position of the shift register.
4、 根据权利要求 1所述的方法, 其特征在于,  4. The method of claim 1 wherein:
所述在业务流编码码块中添加校验位, 生成校验编码码块, 并将多个校验 编码码块组成校验帧包括:  Adding a check digit to the service stream coding code block to generate a check code block, and forming a plurality of check code blocks into a check frame includes:
对于第 i个校验帧, 其中 i为大于 1的整数, 依次对第 i个校验帧中的业 务流编码码块进行以下处理:  For the i-th check frame, where i is an integer greater than 1, the following processing is performed on the service stream coded block in the i-th check frame in sequence:
将针对第 i-1个校验帧产生的校验位中各比特间插到业务流编码码块中; 根据所有已编码码流的 RD极性和当前待编码的业务流编码码块中的部 分有效载荷的 RD极性,对当前待编码的业务流编码码块进行业务流编码得到 业务流编码码块;再由所述得到的业务流编码码块及间插到所述得到的业务流 编码码块中的校验位组成校验编码码块; 更新所有已编码码流的 RD极性; 将生成的多个校验编码码块组成第 i个校验帧。  Inserting each bit in the parity bit generated for the i-1th check frame into the service stream coding code block; according to the RD polarity of all the coded code streams and the code stream in the current service stream to be coded The RD polarity of the part of the payload is encoded by the service stream to encode the service stream code block to be encoded to obtain the service stream code block; and the obtained service stream is coded and interleaved into the obtained service stream. The check bits in the coded block form a check code block; update the RD polarity of all coded code streams; and form the generated plurality of check code blocks into an i-th check frame.
5、 根据权利要求 1所述的方法, 其特征在于, 所述校验位为: FEC校验 位、 或 CRC校验位、 或奇偶校验位。  The method according to claim 1, wherein the check digit is: an FEC check bit, or a CRC check bit, or a parity bit.
6、 根据权利要求 4 所述的方法, 其特征在于, 所述所有已编码码流为 32B/35B编码码流, 所述业务流编码为 32B/35B编码。 6. The method according to claim 4, wherein all of the encoded code streams are 32B/35B coded code streams, and the service flow code is 32B/35B coded.
7、 根据权利要求 4 所述的方法, 其特征在于, 所述所有已编码码流为 36B/40B编码码流, 所述业务流编码为 36B/40B编码。 7. The method according to claim 4, wherein all of the encoded code streams are 36B/40B coded code streams, and the service flow code is 36B/40B coded.
8、 根据权利要求 1至 7任一项所述的方法, 其特征在于, 所述对所述超 帧的帧头进行标识包括:  The method according to any one of claims 1 to 7, wherein the identifying the frame header of the super frame comprises:
利用控制字 K28.5对所述超帧的帧头进行标识, 并且  Identifying the frame header of the superframe with the control word K28.5, and
如果所有已传输的编码中 1的个数大于等于 0的个数时, 将控制字 K28.5 的码字映射为 "1100000101";  If the number of 1s in all transmitted codes is greater than or equal to 0, the codeword of control word K28.5 is mapped to "1100000101";
如果所有已传输的编码中 1的个数小于 0的个数时,将控制字 K28.5的码 字映射为 "0011111010"。  If the number of 1s in all transmitted codes is less than 0, the code word of control word K28.5 is mapped to "0011111010".
9、 一种通用公共无线接口业务接收方法, 其特征在于, 包括:  A general public radio interface service receiving method, characterized in that:
对接收的业务码流进行码字同步, 以识别出校验编码码块;  Performing codeword synchronization on the received service code stream to identify a check code block;
根据超帧头特征, 识别出超帧边界;  Identifying superframe boundaries based on superframe header characteristics;
利用超帧边界定界出校验帧, 一个超帧中包含整数个校验帧;  Determining a check frame by using a superframe boundary, and a superframe contains an integer number of check frames;
根据校验帧中各校验编码码块中的校验位对业务流编码码块进行检错或 纠错;  Performing error detection or error correction on the service stream coded code block according to the check bits in each check code block in the check frame;
去除所述校验编码码块中的校验位, 得到业务流编码码块;  Removing the check bit in the check code block to obtain a service stream code block;
对所述业务流编码码块进行解码, 得到解码后的业务数据。  Decoding the service stream coded block to obtain decoded service data.
10、 根据权利要求 9 所述的方法, 其特征在于, 所述接收的业务码流为 10. The method according to claim 9, wherein the received service code stream is
32B/35B编码码流、 或者 36B/40B编码码流。 32B/35B coded stream, or 36B/40B coded stream.
11、 根据权利要求 10所述的方法, 其特征在于, 所述根据超帧头特征, 识别出超帧边界包括:通过检测 k28.5字符识别所述 32B/35B编码码流的超帧 边界。  The method according to claim 10, wherein the identifying the superframe boundary according to the superframe header feature comprises: identifying a superframe boundary of the 32B/35B encoded code stream by detecting a k28.5 character.
12、 根据权利要求 10所述的方法, 其特征在于, 所述根据超帧头特征, 识别出超帧边界包括: 通过检测 10字符识别 36B/40B编码码流的超帧边界。  The method according to claim 10, wherein the identifying the superframe boundary according to the superframe header feature comprises: identifying a superframe boundary of the 36B/40B encoded code stream by detecting 10 characters.
13、 根据权利要求 9 所述的方法, 其特征在于, 所述校验编码码块为 13. The method according to claim 9, wherein the check code block is
32B/35B编码码块, 所述业务流编码码块为 32B/34B编码码块; a 32B/35B coded code block, wherein the service stream coded code block is a 32B/34B coded code block;
所述对接收业务码流进行码字同步包括:  The performing codeword synchronization on the received service code stream includes:
利用状态机确定字边界, 所述状态机包括以下状态: 码字未同步状态、 码 字字符检测状态、 码字同步状态、 码字同步错误状态; 在码字未同步状态下,通过划窗从接收的业务码流中查找到一个预定的比 特流图案进入码字字符检测状态, 所述预定的比特流图案包括: 超帧帧头比特 流、 和 5B/6B编码映射表中的 6B有效字符; The word boundary is determined by the state machine, and the state machine includes the following states: a codeword unsynchronized state, a codeword character detection state, a codeword synchronization state, a codeword synchronization error state; In the unsynchronized state of the codeword, a predetermined bitstream pattern is searched from the received service code stream into the codeword character detection state by using a window, the predetermined bitstream pattern comprising: a superframe frame header bitstream, and 6B valid characters in the 5B/6B code mapping table;
在码字字符检测状态, 继续对所述比特流图案后续的数据进行检测, 如果 所述比特流图案后续的数据是合法码、 并且所述合法码的个数达到第一预定 值, 则进入码字同步状态; 如果所述比特流图案后续的数据是非法码, 则回到 码字未同步状态;所述合法码表示所述数据是超帧帧头比特流 k28.5、或 5B/6B 编码映射表中的 6B有效字符; 所述非法码表示所述数据不是超帧帧头比特流 k28.5、 并且也不是 5B/6B编码映射表中的 6B有效字符;  In the codeword character detection state, continuing to detect data subsequent to the bitstream pattern, if the subsequent data of the bitstream pattern is a legal code, and the number of the legal codes reaches a first predetermined value, the entry code a word synchronization state; if the subsequent data of the bitstream pattern is an illegal code, returning to a codeword unsynchronized state; the legal code indicating that the data is a superframe frame header bitstream k28.5, or 5B/6B encoding Mapping a 6B valid character in the table; the illegal code indicating that the data is not a superframe header bitstream k28.5, and is not a 6B valid character in the 5B/6B encoding mapping table;
在码字同步状态下,如果后续收到的数据是合法码,则保持码字同步状态; 如果后续收到的数据是非法码, 则进入码字同步错误状态;  In the codeword synchronization state, if the subsequently received data is a legal code, the codeword synchronization state is maintained; if the subsequently received data is an illegal code, the codeword synchronization error state is entered;
在码字同步错误状态, 如果收到非法码的个数达到第二预定值, 则进入码 字未同步状态; 如果收到合法码的个数达到第三预定值, 则将收到非法码的个 数减 1; 当收到非法码的个数减为 0时, 进入码字同步状态; 边界没有找到;  In the codeword synchronization error state, if the number of received illegal codes reaches the second predetermined value, the codeword is not synchronized; if the number of received legal codes reaches the third predetermined value, the illegal code will be received. The number is reduced by 1; when the number of illegal codes received is reduced to 0, the codeword synchronization state is entered; the boundary is not found;
如果状态机处于码字同步状态或码字同步错误状态,则确定所述超帧边界 已找到。  If the state machine is in a codeword synchronization state or a codeword synchronization error state, it is determined that the superframe boundary has been found.
14、 根据权利要求 9 所述的方法, 其特征在于, 所述校验编码码块为 32B/35B编码码块, 所述业务流编码码块为 32B/34B编码码块;  The method according to claim 9, wherein the check code block is a 32B/35B code block, and the service stream code block is a 32B/34B code block;
所述对接收业务码流进行码字同步包括:  The performing codeword synchronization on the received service code stream includes:
利用状态机确定字边界, 所述状态机包括以下状态: 码字未同步状态、 码 字字符检测状态、 码字同步状态;  The word boundary is determined by a state machine, and the state machine includes the following states: a codeword unsynchronized state, a codeword character detection state, and a codeword synchronization state;
在码字未同步状态下,通过划窗从接收的业务码流中查找到一个预定的比 特流图案, 进入码字字符检测状态, 所述预定的比特流图案包括: 超帧帧头比 特流、 5B/6B编码映射表中的 6B有效字符;  In the unsynchronized state of the codeword, a predetermined bitstream pattern is searched from the received service code stream by windowing, and enters a codeword character detection state, where the predetermined bitstream pattern includes: a superframe frame header bitstream, 6B valid characters in the 5B/6B code mapping table;
在码字字符检测状态, 继续对所述比特流图案后续的数据进行检测, 如果 连续检测到所述比特流图案后续的数据是合法码、并且为所述预定的比特流图 案的个数达到第四预定值, 则进入码字同步状态; 如果所述比特流图案后续的 数据是非法码, 则回到码字未同步状态; 所述合法码表示所述数据是超帧帧头 比特流、 或 5B/6B编码映射表中的 6B有效字符; 所述非法码表示所述数据不 是超帧帧头比特流、 并且也不是 5B/6B编码映射表中的 6B有效字符; In the codeword character detection state, the data subsequent to the bitstream pattern is continuously detected, if the data subsequent to the bitstream pattern is continuously detected as a legal code, and the number of the predetermined bitstream pattern reaches the first Four predetermined values, then enter the codeword synchronization state; if the bitstream pattern is subsequent If the data is an illegal code, returning to the unsynchronized state of the codeword; the legal code indicating that the data is a superframe header bitstream, or a 6B valid character in a 5B/6B coding mapping table; The data is not a superframe header bit stream, and is not a 6B valid character in the 5B/6B code mapping table;
在码字同步状态下,如果后续收到的数据是合法码,则保持码字同步状态; 如果后续收到的数据是非法码的个数达到第五预定值, 则回到码字未同步状 态; 边界没有找到;  In the codeword synchronization state, if the subsequently received data is a legal code, the codeword synchronization state is maintained; if the number of subsequent received data is the fifth predetermined value, the codeword is not synchronized. ; the boundary was not found;
如果状态机处于码字同步状态或码字同步错误状态,则确定所述超帧边界 已找到。  If the state machine is in a codeword synchronization state or a codeword synchronization error state, it is determined that the superframe boundary has been found.
15、 根据权利要求 14所述的方法, 其特征在于, 所述第四预定值为 64, 第五预定值为 16。  The method according to claim 14, wherein the fourth predetermined value is 64 and the fifth predetermined value is 16.
16、 根据权利要求 9所述的方法, 其特征在于, 所述根据校验帧中各校验 编码码块中的校验位对业务流编码码块进行检错或纠错包括:  The method according to claim 9, wherein the error detection or error correction of the service stream coded code block according to the check bits in each check code block in the check frame includes:
获取前一个校验帧中的有效载荷,并根据所述有效载荷生成前一个校验帧 中业务流编码码块的校验位;  Obtaining a payload in the previous check frame, and generating a check bit of the service stream coded block in the previous check frame according to the payload;
如果前一个校验帧中业务流编码码块生成的校验位与当前校验帧中传输 的校验位相同, 则确定前一个校验帧中的业务流编码码块传输正确。  If the check bit generated by the traffic stream code block in the previous check frame is the same as the check bit transmitted in the current check frame, it is determined that the service stream code block in the previous check frame is correctly transmitted.
17、 根据权利要求 13至 16任一项所述的方法, 其特征在于, 所述方法还 包括:  The method according to any one of claims 13 to 16, wherein the method further comprises:
如果在一个超帧内检测到所述校验帧中的 32B/35B 编码码块处于未同步 状态, 或者在一个超帧内, 至少有 16个校验帧中的校验位与其对应的业务流 编码码块的校验位不匹配, 则指示 LOS状态;  If it is detected in a superframe that the 32B/35B coded code block in the check frame is in an unsynchronized state, or in a superframe, at least 16 check bits in the check frame and its corresponding service flow If the parity bits of the coded code block do not match, the LOS state is indicated;
如果在一个超帧内检测到所述校验帧中的 32B/35B 编码码块处于同步状 态, 并且该超帧内没有校验位不匹配, 则指示 LOS终止状态。  If it is detected within a superframe that the 32B/35B coded code block in the check frame is in a synchronized state, and there is no check bit mismatch in the superframe, the LOS termination state is indicated.
18、 一种通用公共无线接口业务发送装置, 其特征在于, 包括:  18. A general public radio interface service sending apparatus, comprising:
校验帧生成单元, 用于在业务流编码码块中添加校验位,得到校验编码码 块, 多个校验编码码块形成一个校验帧, 当前校验帧中业务流编码码块中添加 的校验位为前一个校验帧中业务流编码码块的校验位; 超帧生成单元,用于将多个校验帧组成一个超帧,并标识所述超帧的帧头; 发送单元, 用于发送标识后的超帧。 a check frame generating unit, configured to add a check bit in the service stream coded code block to obtain a check code block, and the plurality of check code blocks form a check frame, and the service stream code block in the current check frame The check bit added in is the check digit of the service stream coding code block in the previous check frame; a superframe generating unit, configured to form a plurality of check frames into a super frame, and identify a frame header of the super frame; and a sending unit, configured to send the identified super frame.
19、 根据权利要求 18所述的装置, 其特征在于, 所述业务流编码码块为 32B/34B编码码块,所述校验编码码块为 32B/35B编码码块;所述装置还包括: 校验位生成单元, 用于利用多项式 g ^ ^ + ^ + W + +l , 生成 32 比特的校验位, 其中, 所述 X表示移位寄存器, 幂表示移位寄存器的位置。  The device according to claim 18, wherein the service stream coded code block is a 32B/34B coded code block, and the check coded code block is a 32B/35B coded code block; And a check bit generating unit, configured to generate a 32-bit check bit by using a polynomial g ^ ^ + ^ + W + +l, wherein the X represents a shift register, and the power represents a position of the shift register.
20、 根据权利要求 18所述的装置, 其特征在于, 所述业务流编码码块为 36B/40B不带校验位的编码码块, 所述校验编码码块为 36B/40B编码码块。  The device according to claim 18, wherein the service stream coded code block is a coded block of 36B/40B without a check bit, and the check code block is a 36B/40B code block. .
21、 根据权利要求 18所述的装置, 其特征在于,  21. Apparatus according to claim 18 wherein:
所述超帧生成单元,具体用于利用控制字 K28.5对所述超帧的帧头进行标 识, 并且如果所述所有已传输的编码中 1的个数大于等于 0的个数时,将控制 字 K28.5的码字映射为 "1100000101" , 如果所述所有已传输的编码中 1的个 数小于 0的个数时, 将控制字 K28.5的码字映射为 "0011111010"。  The superframe generating unit is specifically configured to identify a frame header of the superframe by using a control word K28.5, and if the number of 1s in all the transmitted codes is greater than or equal to 0, The codeword of the control word K28.5 is mapped to "1100000101". If the number of 1s in all the transmitted codes is less than 0, the codeword of the control word K28.5 is mapped to "0011111010".
22、 一种通用公共无线接口业务接收装置, 其特征在于, 包括:  22. A universal public radio interface service receiving apparatus, comprising:
码字识别单元, 用于对接收的业务码流进行码字同步, 以识别出校验编码 码块, 并根据超帧头特征, 识别出超帧边界;  a codeword identifying unit, configured to perform codeword synchronization on the received service code stream to identify a check code block, and identify a superframe boundary according to the superframe header feature;
校验帧识别单元, 用于利用超帧边界定界出校验帧, 一个超帧中包含整数 个校验帧;  a check frame identifying unit, configured to delimit a check frame by using a superframe boundary, where one superframe includes an integer number of check frames;
校验帧检测单元,用于根据校验帧中各校验编码码块中的校验位对业务流 编码码块进行检错或纠错;  a check frame detecting unit, configured to perform error detection or error correction on the service stream coded code block according to the check bit in each check code block in the check frame;
码块获得单元, 用于去除所述校验编码码块中的校验位,得到业务流编码 码块;  a code block obtaining unit, configured to remove a check bit in the check code block to obtain a service stream code block;
解码单元,用于对所述业务流编码码块进行解码,得到解码后的业务数据。 And a decoding unit, configured to decode the service stream coded code block to obtain decoded service data.
23、 根据权利要求 22所述的装置, 其特征在于, 所述校验帧检测单元包 括: The apparatus according to claim 22, wherein the check frame detecting unit comprises:
校验位生成子单元, 用于获取前一个校验帧中的有效载荷, 并根据所述有 效载荷生成前一个校验帧中业务流编码码块的校验位;  a check bit generating subunit, configured to obtain a payload in a previous check frame, and generate a check bit of the service stream coded code block in the previous check frame according to the effective load;
匹配子单元,用于匹配所述校验位生成子单元生成的前一个校验帧中业务 流编码码块的校验位与当前校验帧中的校验位, 并在匹配结果相同时,确定前 一个校验帧中的业务流编码码块传输正确。 a matching sub-unit, configured to match a check bit of the service stream coding code block in the previous check frame generated by the check bit generation sub-unit and a check bit in the current check frame, and when the matching result is the same, Before determining The traffic stream code block in a check frame is transmitted correctly.
24、 根据权利要求 22或 23所述的装置, 其特征在于, 所述装置还包括: 指示单元,用于在所述码字识别单元在一个超帧内检测到所述校验帧中的 校验编码码块处于未同步状态时, 或者在一个超帧内, 至少有 16个校验帧中 的校验位与其对应的业务流编码码块的校验位不匹配, 指示 LOS状态; 并在 所述码字识别单元在一个超帧内检测到所述校验帧中的校验编码码块处于同 步状态, 并且在该超帧内所述校验帧检测单元检测到没有校验位不匹配时,指 示 LOS状态终止。  The device according to claim 22 or 23, wherein the device further comprises: an indication unit, configured to detect a calibration in the verification frame in a superframe in the codeword identification unit When the coded block is in an unsynchronized state, or in a superframe, at least 16 check bits in the check frame do not match the check bits of the corresponding service stream code block, indicating the LOS state; The codeword identification unit detects that the check code block in the check frame is in a synchronization state within one super frame, and the check frame detection unit detects that no check bit does not match in the super frame. When the LOS status is terminated.
PCT/CN2011/074316 2010-11-18 2011-05-19 Method and apparatus for sending/receiving common public radio interface service WO2011137790A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105496819A CN102025448B (en) 2010-11-18 2010-11-18 Common public radio interface service transmitting/receiving method and device
CN201010549681.9 2010-11-18

Publications (1)

Publication Number Publication Date
WO2011137790A1 true WO2011137790A1 (en) 2011-11-10

Family

ID=43866363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074316 WO2011137790A1 (en) 2010-11-18 2011-05-19 Method and apparatus for sending/receiving common public radio interface service

Country Status (2)

Country Link
CN (1) CN102025448B (en)
WO (1) WO2011137790A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025448B (en) * 2010-11-18 2013-11-06 华为技术有限公司 Common public radio interface service transmitting/receiving method and device
CN102957492B (en) * 2011-08-18 2015-05-13 盛科网络(苏州)有限公司 Method and device for locking 64B/67B coding boundary
CN103326810B (en) * 2012-03-23 2017-03-01 京信通信系统(中国)有限公司 The sending, receiving method of same-phase orthogonal data and device
WO2016098742A1 (en) * 2014-12-15 2016-06-23 三菱電機株式会社 Transmitting device, communication device and signal transmission system
CN106712893B (en) 2015-07-23 2020-10-09 华为技术有限公司 Method and device for data transmission
CN107370674B (en) * 2016-05-13 2020-12-01 华为技术有限公司 Data transmission method, equipment and system
CN109698732B (en) 2017-10-23 2021-07-09 华为技术有限公司 Method and device for transmitting data
CN116346278A (en) * 2021-12-22 2023-06-27 华为技术有限公司 Transmitting method, receiving method, device, system, equipment and storage medium
CN114614949B (en) * 2022-03-17 2023-12-19 苏州盛科通信股份有限公司 State machine state indication function verification method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047679A (en) * 2006-03-28 2007-10-03 华为技术有限公司 Data transmission method and system
CN101345745A (en) * 2007-07-09 2009-01-14 华为技术有限公司 Data framing method and equipment thereof
WO2010059772A1 (en) * 2008-11-22 2010-05-27 Qualcomm Incorporated Scheduling data with time diversity in flo systems
CN102025448A (en) * 2010-11-18 2011-04-20 华为技术有限公司 Common public radio interface service transmitting/receiving method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3413759B2 (en) * 1998-07-17 2003-06-09 株式会社ケンウッド BS digital broadcast receiver
AU2001273605A1 (en) * 2000-06-22 2002-01-02 Microchip Technology Incorporated A method of checking eeprom data with an embedded crc

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047679A (en) * 2006-03-28 2007-10-03 华为技术有限公司 Data transmission method and system
CN101345745A (en) * 2007-07-09 2009-01-14 华为技术有限公司 Data framing method and equipment thereof
WO2010059772A1 (en) * 2008-11-22 2010-05-27 Qualcomm Incorporated Scheduling data with time diversity in flo systems
CN102025448A (en) * 2010-11-18 2011-04-20 华为技术有限公司 Common public radio interface service transmitting/receiving method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ERICSSON AB ET AL.: "CPRI Specification V4.2", COMMON PUBLIC RADIO INTERFACE (CPRI); INTERFACE SPECIFICATION, 29 September 2010 (2010-09-29), Retrieved from the Internet <URL:http://www.cpri.info/cn/spec.html> *

Also Published As

Publication number Publication date
CN102025448B (en) 2013-11-06
CN102025448A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
WO2011137790A1 (en) Method and apparatus for sending/receiving common public radio interface service
US6747580B1 (en) Method and apparatus for encoding or decoding data in accordance with an NB/(N+1)B block code, and method for determining such a block code
US8255779B2 (en) System and method for accelerated forward error correction (FEC) synchronization
WO2016140765A2 (en) Packet format and coding method for serial data transmission
JPH08213969A (en) Equipment and method for correcting error basing on transmission code breach and parity
WO2008110107A1 (en) Data encoding/decoding and receiving/sending method and apparatus
WO2011003329A1 (en) 64b/66b coding and decoding device and method for realizing 64b/66b coding and decoding
EP3041157A1 (en) Physical layer coding/decoding method and apparatus thereof
WO2018014529A1 (en) Encoding method and associated apparatus and system
WO2014106319A1 (en) Method for processing data in the ethernet, physical layer chip and ethernet device
CN106656424B (en) Data transmission verification method
CN103229444B (en) Coding/decoding method, Apparatus and system
JP5453244B2 (en) Method and apparatus for indicating temporary block flow using piggybacked ACK / NACK field
TWI229991B (en) Wireless communication method and wireless communication device
CN103312458A (en) Hybrid coding method
JP4247774B2 (en) Blind transport format detection method
CN104065463A (en) Method And Apparatus For Processing Piggybacked Acknowledgemet/non-acknowledgement Field
CN111385779A (en) Data processing method, device and storage medium
US9872035B2 (en) System and method for transcoding data
EP2852082B1 (en) Information sending method and device
WO2011137820A1 (en) Line encoding and decoding method, apparatus and system
WO2022062946A1 (en) Data coding method, data decoding method, and communication device
EP4351048A1 (en) Communication method and communication apparatus
WO2023029783A1 (en) Data transmission method and device, readable storage medium, and chip system
RU2420890C1 (en) Method and apparatus for indicating temporary block flow to which piggybacked ack/nack field is addressed

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11777209

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11777209

Country of ref document: EP

Kind code of ref document: A1