CN101729194A - Methods, devices and system for coding and decoding data - Google Patents

Methods, devices and system for coding and decoding data Download PDF

Info

Publication number
CN101729194A
CN101729194A CN 200810175963 CN200810175963A CN101729194A CN 101729194 A CN101729194 A CN 101729194A CN 200810175963 CN200810175963 CN 200810175963 CN 200810175963 A CN200810175963 A CN 200810175963A CN 101729194 A CN101729194 A CN 101729194A
Authority
CN
China
Prior art keywords
data
delimiter
sent
code word
module
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN 200810175963
Other languages
Chinese (zh)
Other versions
CN101729194B (en
Inventor
欧鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200810175963 priority Critical patent/CN101729194B/en
Priority to PCT/CN2009/074447 priority patent/WO2010048854A1/en
Publication of CN101729194A publication Critical patent/CN101729194A/en
Application granted granted Critical
Publication of CN101729194B publication Critical patent/CN101729194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0023Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
    • H04L1/0025Transmission of mode-switching indication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • 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
    • H04L1/007Unequal error protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0079Formats for control data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/009Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location arrangements specific to transmitters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0084Quality of service aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a method and a device for coding data, a method and a device for decoding data and a system for coding and decoding data, belonging to the technical field of coding and decoding. The data coding method comprises the following steps of: judging whether an FEC is needed to be applied to data to be sent or not; if so, coding to generate the FEC, forming the data to be sent and the FEC into a code word and then adding a first delimiter used for marking the use of the FEC; and if not, directly adding a second delimiter used for marking the non-use of the FEC. The data decoding method comprises the following steps of: searching and judging the delimiter in received data; if the delimiter is the first delimiter, removing the first delimiter and then decoding; and if the delimiter is the second delimiter, removing the second delimiter. The data coding device comprises a judging module, a coding module and a delimiter adding module. The data decoding device comprises a searching module, a delimiter removal module and a decoding module. The system comprises the data coding device and the data decoding device. The invention realizes the identification of turning on or off the FEC function of a sending end.

Description

The methods, devices and systems of digital coding, data decode
Technical field
The present invention relates to the encoding and decoding technique field, particularly the system of the method and apparatus of a kind of method and apparatus of digital coding, data decode and data encoding and decoding.
Background technology
PON (Passive Optical Network, EPON) technology is the optical fiber access technology of a kind of point to multiple spot, it is by OLT (the Optical Line Terminal of office's side, optical line terminal), the ONU of user side (Optical Network Unit, optical network unit) or ONT (Optical Network Terminal, Optical Network Terminal) and ODN (Optical DistributionNetwork, Optical Distribution Network) form.So-called " passive " is meant not contain any active electronic device and electronic power supply among the ODN, all be made up of optical branching device passive devices such as (Splitter), so the cost of its management maintenance is lower.
OLT connects one or more ODN for the PON system provides the network side interface.ODN is the passive optical splitters part, and the data that OLT is descending are transferred to each ONU along separate routes, the upstream data of a plurality of ONU/ONT is gathered to be transferred to OLT simultaneously.ONU provides user side interface for the PON system, uply links to each other with ODN, if ONU directly provides User Port Function, the ethernet user's port as PC online usefulness then is called ONT.No specified otherwise, the ONU that hereinafter mentions system refers to ONU and ONT.In the PON system, from OLT to ONU, be called descending, otherwise be up.To each ONU, the upstream data of each ONU is distributed between the sending area by OLT downlink data by broadcast transmission, and time division multiplexing sends.The data of uplink and downlink can be transmitted in same optical fiber, also can transmit in different optical fiber respectively.
The FEC that Physical Coding Sublayer comprised of PON system (Forward Error Correction, forward error correction) utilizes specific algorithm that the mistake that the data of protecting produce in transmission course is corrected.EPON (Ethernet Passive OpticalNetwork, Ethernet passive optical network) technology combines Ethernet and PON technology, and the time division multiplexing that is implemented in some ethernet frame in the PON system of multiple spot inserts.In GEPON (communication speed is the Ethernet passive optical network of 1G), 1GONU can select to open or close the FEC function, and OLT can correctly discern the opening and closing of the FEC function of ONU.During but 2G was EPON (communication speed is the Ethernet passive optical network of 2G), ONU opened or closed the FEC function, and OLT can't discern, thereby may cause decoding error.
Summary of the invention
Open or close in order to identify the FEC function, the embodiment of the invention provides a kind of method and apparatus of digital coding, the method and apparatus of data decode and the system of identification forward error correction user mode.Described technical scheme is as follows:
A kind of method of digital coding, described method comprises:
Judge whether and to use forward error correction to data to be sent;
If, then to the described data to be sent generation forward error correction of encoding, described data to be sent and forward error correction are formed code word, before described code word, add first delimiter then, data after obtaining encoding, wherein, the data that are used for after the identification code of described first delimiter have been used forward error correction;
Otherwise, before described data to be sent, add second delimiter, the data after obtaining encoding, wherein, the data that described second delimiter is used for after the identification code are not used forward error correction.
A kind of method that the data of utilizing described coding method to obtain are carried out data decode, described method comprises:
In the data that receive, find delimiter;
Judge that described delimiter is described first delimiter or described second delimiter;
If described first delimiter then removes described first delimiter and obtains code word, then described code word is decoded, obtain decoded data;
If described second delimiter then removes described second delimiter, obtain decoded data.
A kind of device of digital coding, described device comprises:
Judge module is used to judge whether and need uses forward error correction to data to be sent;
Coding module is used for the result that judges when described judge module when being, to the described data to be sent generation forward error correction of encoding, with described data to be sent and forward error correction composition code word;
Delimiter adds module, be used for after described coding module is formed described code word, before described code word, add first delimiter, data after obtaining encoding, the result who judges when described judge module are added second delimiter for not the time before described data to be sent, data after obtaining encoding, wherein, the data that described first delimiter is used for after the identification code have been used forward error correction, and the data that described second delimiter is used for after the identification code are not used forward error correction.
A kind of device that the data of utilizing described code device to obtain are carried out data decode, described device comprises:
Search module, be used for finding delimiter in the data that receive;
Delimiter is removed module, be used to judge that described to search the delimiter that module finds be described first delimiter or described second delimiter, if described first delimiter, then in the data of described reception, remove described first delimiter and obtain code word, be used for decoding, if described second delimiter then removes described second delimiter in the data of described reception, obtain decoded data;
Decoder module is used for the described code word that described delimiter removal module obtains is decoded, and obtains decoded data.
A kind of system of data encoding and decoding, described system comprises:
The device of digital coding, be used to judge whether and use forward error correction to data to be sent, if, then to the described data to be sent generation forward error correction of encoding, described data to be sent and forward error correction are formed code word, before described code word, add first delimiter then, data after obtaining encoding, otherwise, before described data to be sent, add second delimiter, the data after obtaining encoding, also be used for the data behind the described coding are sent, wherein, the data that described first delimiter is used for after the identification code have been used forward error correction, and the data that described second delimiter is used for after the identification code are not used forward error correction;
The device of data decode, be used to receive the data that the device of described digital coding is sent, in the data of described reception, find delimiter, judge that described delimiter is described first delimiter or described second delimiter, if described first delimiter, then in the data of described reception, remove described first delimiter and obtain code word, then described code word is decoded, obtain decoded data, if described second delimiter, then in the data of described reception, remove described second delimiter, obtain decoded data.
The embodiment of the invention is judged the delimiter that comprises in the data of receiving by receiving terminal, realized identification that transmitting terminal FEC function is opened or closed, thereby avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
Description of drawings
Fig. 1 is a kind of flow chart of method of the digital coding that provides of the embodiment of the invention 1;
Fig. 2 is the another kind of flow chart of the method for the digital coding that provides of the embodiment of the invention 1;
Fig. 3 is the data structure schematic diagram that the embodiment of the invention 1 provides;
Fig. 4 is a kind of flow chart of method of the data decode that provides of the embodiment of the invention 2;
Fig. 5 is the another kind of flow chart of the method for the data decode that provides of the embodiment of the invention 2;
Fig. 6 is the structure drawing of device of the digital coding that provides of the embodiment of the invention 3;
Fig. 7 is the structure drawing of device of the data decode that provides of the embodiment of the invention 4;
Fig. 8 is the system construction drawing of the data encoding and decoding that provide of the embodiment of the invention 5.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Referring to Fig. 1, the embodiment of the invention provides a kind of method of digital coding, comprising:
101: judge whether and to use forward error correction to data to be sent, if then carry out 102; Otherwise, carry out 103;
102: to the data to be sent generation forward error correction of encoding, data to be sent and forward error correction are formed code word, before code word, add first delimiter, the data after obtaining encoding then, wherein, the data that are used for after the identification code of first delimiter have been used forward error correction;
103: before data to be sent, add second delimiter, the data after obtaining encoding, wherein, the data that second delimiter is used for after the identification code are not used forward error correction.
The method that the FEC user mode is set that the embodiment of the invention provides, usually be applied to ONU or ONT in the 2G EPON system, ONU or ONT are before sending upstream data, add delimiter (Delimiter) for according to the method described above earlier data to be sent, identify, and then the data that will comprise delimiter send in the 2G EPON system.Wherein, first delimiter is used for being identified at data and uses the FEC sign indicating number, and second delimiter is used for being identified at data and does not use the FEC sign indicating number.Can be by this method so that ONU or ONT are provided with opening or closing of FEC function.
Referring to Fig. 2, the method for the digital coding that the embodiment of the invention provides specifically comprises:
201:, carry out line coding with ONU or ONT data of giving 2G EPON system to be sent;
In the present embodiment, line coding is specially the 64B/66B coding, and this coding is for synchronously, delimits and the maintenance dc balance.Be to realize synchronously by the synchronous head in the coding rule, demarcation is to realize by in the coding rule special control character being indicated, dc balance is in order to keep in the transmission course occurring on the circuit 1 and balance between 0 occurs, prevent to occur 1 too much on the circuit, perhaps occur 0 too much, thereby cause the circuit direct current unbalance.64B/66B coding is after adding the synchronous head of 2 bits on the piece of 64 bits, obtains the piece of 66 bits, and this synchronous head or be 01 (binary system) perhaps is 10 (binary systems).
202: judge whether and to use forward error correction to the data behind the line coding, if then carry out 203; Otherwise, carry out 205;
203: the data behind the line coding are carried out the FEC coding, generate forward error correction, and data behind this line coding and the forward error correction that obtains are formed code word (codeword);
FEC in present embodiment coding can have multiple, for example, Read-Solomon RS (N, K) coding is exactly a kind of in the FEC encryption algorithm, and wherein N is the length of code word, and K is the length of data block, and unit is byte.A code word comprises data block and check block, and this check block is FEC, and its length is N-K, and the value of N and K can be set as required in actual applications, as RS (255,239).
204: before the code word that obtains, add first delimiter, the data after obtaining encoding, the data that this first delimiter is used for after the identification code have been used FEC, carry out 206 then;
205: at this moment, need not use FEC in data, therefore need not encode generates FEC, can directly add second delimiter before the data behind line coding, data after obtaining encoding, the data that this second delimiter is used for after the identification code are not used FEC, carry out 206 then.
In the present embodiment, first delimiter is 01 0x6B F8 D8,12 D8,58 E4 AB, is used to identify the FEC function and opens, and second delimiter is 11 0x, 97 5C, 43 C7 B7 A8 D0 88, is used to identify the FEC function and closes; Perhaps, first delimiter is 11 0x, 97 5C, 43 C7 B7 A8 D0 88, is used to identify the FEC function and opens, and second delimiter is 01 0x6B F8 D8 12D8,58 E4 AB, is used for identification function and closes.Wherein, the length of first delimiter and second delimiter is 66 bits, and front two is 01 (binary system), and it is 8 bytes that 64 of back are divided into, and uses hexadecimal representation.
Further, in this step, also can be earlier add after the data behind the line coding that length is fixed and content is zero piece, this length fixed and content is that zero piece is as check block, form code word with the data behind the line coding, before this code word, add second delimiter, the data after obtaining encoding then.Wherein, the length of the zero piece of the interpolation principle of carrying out the equal in length of the code word that obtains behind the FEC coding in can the length and 203 according to this code word is provided with.For example, when the FEC function was opened, the length of FEC coding back code word was 255 bytes, and when the FEC function was closed, the data length behind the line coding was 200 bytes, then can add zero of 55 bytes after these data, thereby formed the code word of 255 bytes.In addition, is not for data are carried out verification and error correction with the zero piece that adds as the purpose of check block, but the code word that obtains when carrying out the FEC coding for the code word that obtains structurally is consistent, the code word that promptly obtains is formed by data block and check block, and data block in front, check block is in the back of data block, when therefore not carrying out the FEC coding, zero piece that adds is to add according to the position of check block, is the data back after piece with one group of continuous zero bit composition is added on line coding.
206: add synchronization blocks (Sync Pattern) before the data behind the coding that obtains, with behind the data process string and conversion after the interpolation synchronization blocks, send in the 2G EPON system then.
The synchronization blocks of adding in the present embodiment can have multiple, for example: 10 0xBF, 40 18 E5 C5,49 BB 59, this synchronization blocks receives the synchronous usefulness of the laggard line data of data for OLT, and the data after the interpolation synchronization blocks are as shown in Figure 3.
String in the present embodiment and conversion can utilize deserializer (Gear Box) to realize.
The method that present embodiment provides identifies the FEC function by interpolation delimiter in data to be sent and opens or close, thereby can be so that the OLT in the 2G EPON system can discern the user mode of this FEC function, thereby avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
Embodiment 2
Referring to Fig. 4, the method that the embodiment of the invention also provides a kind of data that the coding method that utilizes embodiment 1 to provide is obtained to carry out data decode comprises:
401: in the data that receive, find delimiter;
402: judge that the delimiter that finds is first delimiter or second delimiter, if first delimiter then carries out 403; If second delimiter then carries out 404;
403: remove first delimiter and obtain code word in the data that receive, then this code word is carried out fec decoder, obtain decoded data, flow process finishes;
404: remove second delimiter in the data that receive, obtain decoded data, flow process finishes.
The method of the identification FEC user mode that the embodiment of the invention provides, usually be applied to the OLT in the 2G EPON system, OLT is after receiving the upstream data that ONU or ONT send from 2G EPON system, according to the method described above the delimiter in the data of receiving is identified, thereby can identify ONU or ONT opens the FEC function or closes the FEC function.
Referring to Fig. 5, the method for the data decode that the embodiment of the invention provides specifically comprises:
501:OLT receives data from 2G EPON system, and utilizes the synchronization blocks in the described data that threshold value and recovered clock are set;
Wherein, described threshold value is that each bit in the OLT data that are used for receiving according to the level identification that receives is 1 or 0, is higher than the threshold value that has been provided with as the level value of certain bit correspondence, then is identified as 1, the level value of certain bit correspondence is lower than the threshold value that has been provided with, then is identified as 0.The purpose of described recovered clock is in order to keep synchronously, thus correct recognition data.
502: in the data that receive, find delimiter;
503: judge that the delimiter that finds is first delimiter or second delimiter,, then carry out 504 if first delimiter shows that ONU or ONT have been provided with the FEC function and have opened; If second delimiter shows that ONU or ONT have been provided with the FEC function and have closed, then carry out 506;
Wherein, OLT inside stores two delimiters that ONU or ONT are provided with in advance, and promptly one is used to identify first delimiter that the FEC function opens and another is used to identify second delimiter that the FEC function is closed.Identical with embodiment 1, first delimiter of OLT storage is 01 0x6B F8 D8,12 D8,58 E4 AB, and second delimiter is 110x 97 5C 43 C7 B7 A8D0 88; Perhaps, first delimiter is 11 0x, 97 5C, 43 C7 B7 A8 D0 88, second delimiter is 01 0x6B F8 D8 12D8,58 E4 AB, as long as guarantee that first delimiter of OLT storage is identical with first delimiter that ONU or ONT are provided with, and identical the getting final product of second delimiter of second delimiter of OLT storage and ONU or ONT setting.
504: in the data that receive, remove first delimiter and obtain code word, then this code word is carried out fec decoder, obtain data block;
505: the data block that obtains behind the fec decoder is carried out the decode operation of described line coding, if ONU or ONT use is the 64B/66B coding, then carry out the decode operation of 64B/66B coding, obtain decoded data, flow process finishes;
506: at this moment, identified ONU or ONT and do not used the FEC function, therefore need not carry out fec decoder, can in the data that receive, directly remove second delimiter, obtained data block;
Further, if comprise also in the data that receive that length is fixed and content is zero piece, i.e. the zero piece of ONU or ONT filling, then this moment, OLT not only removed second delimiter in the data that receive, remove also that this length is fixed and content is zero piece, thereby obtain data block.
507: the data block that obtains is carried out the decode operation of described line coding, if ONU or ONT use is the 64B/66B coding, then carry out the decode operation of 64B/66B coding, obtain decoded data, flow process finishes.
In the present embodiment, after obtaining data, these data can be sent to MAC (Medium Access Control, media interviews control) layer by DGMII (Dual Gigabit Media IndependentInterface, double gigabit Media Independent Interface) and carry out subsequent treatment.
The method that present embodiment provides is judged the delimiter that comprises in the data that receive by OLT, realized identification that the FEC function of ONU or ONT is opened or closed, compared with prior art, avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
Embodiment 3
Referring to Fig. 6, the embodiment of the invention provides a kind of device of digital coding, comprising:
Judge module 601 is used to judge whether and need uses forward error correction to data to be sent;
Coding module 602 is used for the result that judges when judge module 601 when being, data to be sent is carried out the FEC coding generate forward error correction, with data to be sent and this forward error correction composition code word;
Delimiter adds module 603, be used for after coding module 602 is formed code word, before this code word, add first delimiter, data after obtaining encoding, the result who judges when judge module 601 are added second delimiter for not the time before data to be sent, data after obtaining encoding, wherein, the data that first delimiter is used for after the identification code have been used forward error correction, and the data that second delimiter is used for after the identification code are not used forward error correction.
In this enforcement, judge module 601 can be specially the FEC function register, selects to open or close the FEC function according to the result who judges.
Further, said apparatus also comprises:
The line coding module is used for that initial data is carried out line coding and obtains described data to be sent.This line coding can be specially the 64B/66B coding.
In the present embodiment, first delimiter is 01 0x6B F8 D8,12 D8,58 E4 AB, and second delimiter is 11 0x, 97 5C 43C7 B7 A8 D0 88; Perhaps, first delimiter is that 11 0x, 97 5C, 43 C7 B7 A8 D0,88, the second delimiters are 01 0x6BF8 D8,12 D8,58 E4 AB.
Wherein, delimiter interpolation module 603 can specifically comprise:
First adding device is used for adding first delimiter, the data after obtaining encoding before this code word after coding module 602 is formed code word;
Second adding device, be used for the result that judges when judge module 601 for not the time, add after data to be sent that length is fixed and content is zero piece, this length fixed and content be zero piece as check block, form code word with data to be sent, before this code word, add second delimiter, data after obtaining encoding, wherein, the data that first delimiter is used for after the identification code have been used forward error correction, and the data that second delimiter is used for after the identification code are not used forward error correction.The set-up mode of the length of this zero piece repeats no more with the description among the embodiment 1 herein.
Delimiter in the present embodiment adds module 603 can be specially the delimiter register, is used for adding first delimiter or second delimiter to data.
Further, in the present embodiment, said apparatus can also comprise the synchronization blocks register, is used for adding synchronization blocks to the data behind the interpolation delimiter, so that OLT can utilize this synchronization blocks that data are carried out synchronously.In addition, said apparatus can also comprise deserializer (Gear Box), is used for going here and there and changing adding data after the synchronization blocks, sends to physical layer interface then.
The said apparatus that present embodiment provides can be applied among ONU or the ONT.
The device that present embodiment provides identifies the FEC function by interpolation delimiter in data to be sent and opens or close, thereby can be so that the OLT in the 2GEPON system can discern the user mode of this FEC function, thereby avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
Embodiment 4
Referring to Fig. 7, the device that the embodiment of the invention also provides a kind of data that the code device that utilizes embodiment 3 to provide is obtained to carry out data decode comprises:
Search module 701, be used for finding delimiter in the data that receive;
Delimiter is removed module 702, be used to judge that searching the delimiter that module 701 finds is first delimiter or second delimiter, if first delimiter, then in the data that receive, remove first delimiter and obtain code word, be used for decoding, if second delimiter then removes second delimiter in the data that receive, obtain decoded data;
Decoder module 703 is used for the code word that delimiter removal module 702 obtains is decoded, and obtains decoded data.
In the present embodiment, said apparatus can also utilize the synchronization blocks in the data that receive that threshold value and recovered clock are set earlier, specifically with the description among the embodiment 2, repeats no more herein.
Wherein, delimiter removal module 702 specifically comprises:
Judging unit is used to judge that searching the delimiter that module 701 finds is first delimiter or second delimiter;
First removes the unit, is used for removing first delimiter and obtain code word in the data that receive when delimiter that judgment unit judges goes out to find is first delimiter, is used for decoding;
Second removes the unit, is used for when delimiter that judgment unit judges goes out to find is second delimiter, removes second delimiter and length is fixed and content is zero piece in the data that receive, and obtains decoded data.
Further, said apparatus also comprises:
The line decoding module is used for data that decoder module 703 is obtained, carries out the decode operation of described line coding.Described line coding is meant the line coding that transmitting terminal is done, if the transmitting terminal employing is the 64B/66B coding, then this moment, the line decoding module was carried out the decode operation that 64B/66B encodes, and particularly, can adopt the 64B/66B decoder to decode.
In this enforcement, search module 701 and can specifically realize with the delimiter searcher.Delimiter is removed module 702 and can specifically be realized with the delimiter comparator.The data that delimiter removal module 702 or decoder module 703 obtain can send to the MAC layer by the DGMII interface and carry out subsequent treatment.
The said apparatus that present embodiment provides can be applied among the OLT.
The device that present embodiment provides is by judging the delimiter that comprises in the data that receive, realized identification that the FEC function of ONU or ONT is opened or closed, compared with prior art, avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
Embodiment 5
Referring to Fig. 8, the embodiment of the invention also provides a kind of system of data encoding and decoding, comprising:
The device 801 of digital coding, be used to judge whether and use forward error correction to data to be sent, if, then to the data to be sent generation forward error correction of encoding, data to be sent and forward error correction are formed code word, before code word, add first delimiter then, data after obtaining encoding, otherwise, before data to be sent, add second delimiter, the data after obtaining encoding, also be used for the data behind the described coding are sent, wherein, the data that first delimiter is used for after the identification code have been used forward error correction, and the data that second delimiter is used for after the identification code are not used forward error correction;
The device 802 of data decode, be used to receive the data that the device 801 of digital coding is sent, in the data that receive, find delimiter, judge that this delimiter is first delimiter or second delimiter, if first delimiter, then in the data that receive, remove first delimiter and obtain code word, then this code word is decoded, obtain decoded data, if second delimiter, then in the data that receive, remove second delimiter, obtain decoded data.
In the present embodiment, the concrete function of the device 801 of digital coding is with the description among the embodiment 3, and the concrete function of the device 802 of data decode repeats no more with the description among the embodiment 4 herein.
The device of the system that present embodiment provides by digital coding adds delimiter and identifies the FEC function and open or close in data to be sent, thereby can so that the device of data decode can discern the user mode of this FEC function, thereby avoided decoding, obtained wrong data owing to discerning the data that cause not using FEC.
The mode that the embodiment of the invention can utilize software and hardware to combine realizes that corresponding software programs can be stored in the storage medium that can read, for example, and in the hard disk of computer, buffer memory or the CD.Relevant hardware can realize with digital circuit or Digital Logic.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. the method for a digital coding is characterized in that, described method comprises:
Judge whether and to use forward error correction to data to be sent;
If, then to the described data to be sent generation forward error correction of encoding, described data to be sent and forward error correction are formed code word, before described code word, add first delimiter then, data after obtaining encoding, wherein, the data that are used for after the identification code of described first delimiter have been used forward error correction;
Otherwise, before described data to be sent, add second delimiter, the data after obtaining encoding, wherein, the data that described second delimiter is used for after the identification code are not used forward error correction.
2. the method for digital coding according to claim 1 is characterized in that, described data to be sent are through the data behind the line coding.
3. the method for digital coding according to claim 1 is characterized in that,
Described first delimiter is 010x6B F8D812D858E4AB, and described second delimiter is 110x 975C 43C7B7A8D088;
Perhaps, described first delimiter is 110x 975C 43C7B7A8D088, and described second delimiter is 010x6B F8D812D858E4AB.
4. the method for digital coding according to claim 1 is characterized in that, adds second delimiter before described data to be sent, and the data after obtaining encoding specifically comprise:
Add after described data to be sent that length is fixed and content is zero piece, described length is fixed and content be zero piece as check block, form code word with described data to be sent;
Before described code word, add second delimiter, the data after obtaining encoding.
5. method that the data of utilizing the described method of claim 1 to obtain are carried out data decode is characterized in that described method comprises:
In the data that receive, find delimiter;
Judge that described delimiter is described first delimiter or described second delimiter;
If described first delimiter then removes described first delimiter and obtains code word, then described code word is decoded, obtain decoded data;
If described second delimiter then removes described second delimiter, obtain decoded data.
6. the method for data decode according to claim 5 is characterized in that, described method also comprises:
The described data that obtain are carried out the decode operation of described line coding.
7. the method for data decode according to claim 5 is characterized in that, removes described second delimiter, obtains decoded data, specifically comprises:
If comprise also in the data of described reception that length is fixed and content is zero piece, then remove described second delimiter, and remove that described length is fixed and content is zero piece, obtain decoded data.
8. the device of a digital coding is characterized in that, described device comprises:
Judge module is used to judge whether and need uses forward error correction to data to be sent;
Coding module is used for the result that judges when described judge module when being, to the described data to be sent generation forward error correction of encoding, with described data to be sent and forward error correction composition code word;
Delimiter adds module, be used for after described coding module is formed described code word, before described code word, add first delimiter, data after obtaining encoding, the result who judges when described judge module are added second delimiter for not the time before described data to be sent, data after obtaining encoding, wherein, the data that described first delimiter is used for after the identification code have been used forward error correction, and the data that described second delimiter is used for after the identification code are not used forward error correction.
9. the device of digital coding according to claim 8 is characterized in that, described device also comprises:
The line coding module is used for that initial data is carried out line coding and obtains described data to be sent.
10. the device of digital coding according to claim 8 is characterized in that,
Described first delimiter is 010x6B F8D812D858E4AB, and described second delimiter is 110x 975C 43C7B7A8D088;
Perhaps, described first delimiter is 110x 975C 43C7B7A8D088, and described second delimiter is 010x6B F8D812D858E4AB.
11. the device of digital coding according to claim 8 is characterized in that, described delimiter adds module and specifically comprises:
First adding device is used for after described coding module is formed described code word, adds first delimiter, the data after obtaining encoding before described code word;
Second adding device, be used for the result that judges when described judge module for not the time, add after described data to be sent that length is fixed and content is zero piece, described length fixed and content is that zero piece is as check block, form code word with described data to be sent, before described code word, add second delimiter, data after obtaining encoding, wherein, the data that described first delimiter is used for after the identification code have been used forward error correction, and the data that described second delimiter is used for after the identification code are not used forward error correction.
12. the device that the data of utilizing the described device of claim 8 to obtain are carried out data decode is characterized in that described device comprises:
Search module, be used for finding delimiter in the data that receive;
Delimiter is removed module, be used to judge that described to search the delimiter that module finds be described first delimiter or described second delimiter, if described first delimiter, then in the data of described reception, remove described first delimiter and obtain code word, be used for decoding, if described second delimiter then removes described second delimiter in the data of described reception, obtain decoded data;
Decoder module is used for the described code word that described delimiter removal module obtains is decoded, and obtains decoded data.
13. the device of data decode according to claim 12 is characterized in that, described delimiter is removed module and is specifically comprised:
Judging unit is used to judge that described to search the delimiter that module finds be described first delimiter or described second delimiter;
First removes the unit, is used for removing described first delimiter and obtain code word in the data of described reception when described judgment unit judges when to go out the described delimiter that finds be described first delimiter, is used for decoding;
Second removes the unit, is used for when described judgment unit judges when to go out the described delimiter that finds be described second delimiter, removes described second delimiter and length is fixed and content is zero piece in the data of described reception, obtains decoded data.
14. the device of data decode according to claim 12 is characterized in that, described device also comprises:
The line decoding module is used for described data that described decoder module is obtained, carries out the decode operation of described line coding.
15. the system of data encoding and decoding is characterized in that, described system comprises:
The device of digital coding, be used to judge whether and use forward error correction to data to be sent, if, then to the described data to be sent generation forward error correction of encoding, described data to be sent and forward error correction are formed code word, before described code word, add first delimiter then, data after obtaining encoding, otherwise, before described data to be sent, add second delimiter, the data after obtaining encoding, also be used for the data behind the described coding are sent, wherein, the data that described first delimiter is used for after the identification code have been used forward error correction, and the data that described second delimiter is used for after the identification code are not used forward error correction;
The device of data decode, be used to receive the data that the device of described digital coding is sent, in the data of described reception, find delimiter, judge that described delimiter is described first delimiter or described second delimiter, if described first delimiter, then in the data of described reception, remove described first delimiter and obtain code word, then described code word is decoded, obtain decoded data, if described second delimiter, then in the data of described reception, remove described second delimiter, obtain decoded data.
CN 200810175963 2008-11-03 2008-11-03 Methods, devices and system for coding and decoding data Active CN101729194B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200810175963 CN101729194B (en) 2008-11-03 2008-11-03 Methods, devices and system for coding and decoding data
PCT/CN2009/074447 WO2010048854A1 (en) 2008-11-03 2009-10-14 Method, device and system for data coding and data decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810175963 CN101729194B (en) 2008-11-03 2008-11-03 Methods, devices and system for coding and decoding data

Publications (2)

Publication Number Publication Date
CN101729194A true CN101729194A (en) 2010-06-09
CN101729194B CN101729194B (en) 2013-02-13

Family

ID=42128245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810175963 Active CN101729194B (en) 2008-11-03 2008-11-03 Methods, devices and system for coding and decoding data

Country Status (2)

Country Link
CN (1) CN101729194B (en)
WO (1) WO2010048854A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368582A (en) * 2012-04-11 2013-10-23 联咏科技股份有限公司 Data coding and decoding method and device
WO2014040247A1 (en) * 2012-09-12 2014-03-20 华为技术有限公司 Method for adapting forward error correction (fec) codewords to physical resource block, method for synchronizing fec codewords and system thereof
CN103856283A (en) * 2012-11-28 2014-06-11 中兴通讯股份有限公司 40G Ethernet encoding device and method
CN105281871A (en) * 2014-05-28 2016-01-27 三星显示有限公司 Methods to transport forward error correction codes in a symbol encoded transmission stream
US10432353B2 (en) 2014-12-04 2019-10-01 Samsung Display Co., Ltd. Memory-efficient methods of transporting error correction codes in a symbol encoded transmission stream
CN110620634A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Forward error correction switching method and device and computer storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173133B (en) * 2021-12-01 2023-10-13 慷智集成电路(上海)有限公司 Encoding method and device for data transmission, electronic equipment, storage medium and vehicle
WO2024030836A1 (en) * 2022-08-05 2024-02-08 Cisco Technology, Inc. Forward error correction bypass for reduced power

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343540B2 (en) * 2002-04-25 2008-03-11 Pmc - Sierra Israel Ltd. Forward error correction coding in ethernet networks
US7409626B1 (en) * 2004-07-28 2008-08-05 Ikanos Communications Inc Method and apparatus for determining codeword interleaver parameters
KR100735276B1 (en) * 2005-08-18 2007-07-03 삼성전자주식회사 Method and apparatus for decoding a mpe-fec frame in a dvb-h system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368582A (en) * 2012-04-11 2013-10-23 联咏科技股份有限公司 Data coding and decoding method and device
WO2014040247A1 (en) * 2012-09-12 2014-03-20 华为技术有限公司 Method for adapting forward error correction (fec) codewords to physical resource block, method for synchronizing fec codewords and system thereof
CN103856283A (en) * 2012-11-28 2014-06-11 中兴通讯股份有限公司 40G Ethernet encoding device and method
CN103856283B (en) * 2012-11-28 2018-11-16 中兴通讯股份有限公司 A kind of code device and method of 40G Ethernet
CN105281871A (en) * 2014-05-28 2016-01-27 三星显示有限公司 Methods to transport forward error correction codes in a symbol encoded transmission stream
US10447429B2 (en) 2014-05-28 2019-10-15 Samsung Display Co., Ltd. Methods to transport forward error correction codes in a symbol encoded transmission stream
CN105281871B (en) * 2014-05-28 2020-05-08 三星显示有限公司 Method for transmitting forward error correction codes in symbol-encoded transport streams
US10432353B2 (en) 2014-12-04 2019-10-01 Samsung Display Co., Ltd. Memory-efficient methods of transporting error correction codes in a symbol encoded transmission stream
CN110620634A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Forward error correction switching method and device and computer storage medium

Also Published As

Publication number Publication date
WO2010048854A1 (en) 2010-05-06
CN101729194B (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN101729194B (en) Methods, devices and system for coding and decoding data
CN101267210B (en) Data decoding and coding and receiving/transmission method and device
US8995562B2 (en) Method and apparatus providing protection and DC balance in a communication system
US9654250B2 (en) Adding operations, administration, and maintenance (OAM) information in 66-bit code
CN101436917A (en) Method and apparatus for encoding and decoding data
CN102195738B (en) Synchronous processing method and device for downlink frames of GPON (gigabit passive optical network) system
JP5522547B2 (en) Method and device for realizing data error reporting
CN101795174A (en) Data transmission method, device and system in 10G EPON (Ethernet-based Passive Optical Network)
US7899329B2 (en) Transmission system and transmission apparatus
JP2008017264A (en) Pon multiplex relay system, pon multiplex relay device to be used for the same and its network synchronization method
CN101312385B (en) Information encoding and decoding method and apparatus
CN101729193B (en) Coding method and device, decoding method and device and coding and decoding system
US8009993B2 (en) Hybrid balanced coding scheme
EP2398165B1 (en) Method and device for transmitting an upstream transmission frame in a passive optical network
ES2565806T3 (en) Method, device and communication system for passive optical network
CN101572834B (en) Method, device and passive optical network system for processing passive optical network data
JP2008294510A (en) Optical signal receiver, and receiving method
CN101488820A (en) Data sending method, data receiving method and related device
JP2008294511A (en) Optical signal receiver, and receiving method
CN115209243A (en) Passive optical network transmission method, device and system
CN113225155A (en) Frame delimitation method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant