[go: up one dir, main page]

WO2011029247A1 - Encoding/decoding method and apparatus - Google Patents

Encoding/decoding method and apparatus Download PDF

Info

Publication number
WO2011029247A1
WO2011029247A1 PCT/CN2009/075368 CN2009075368W WO2011029247A1 WO 2011029247 A1 WO2011029247 A1 WO 2011029247A1 CN 2009075368 W CN2009075368 W CN 2009075368W WO 2011029247 A1 WO2011029247 A1 WO 2011029247A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
signal
opuk
specific
coded signal
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.)
Ceased
Application number
PCT/CN2009/075368
Other languages
French (fr)
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2011029247A1 publication Critical patent/WO2011029247A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/1301Optical transmission, optical switches

Definitions

  • the present invention relates to the field of optical transport network (OTN) technologies, and in particular, to a method and apparatus for encoding/decoding.
  • OTN optical transport network
  • OTN has gradually become the mainstream technology in the field of optical communication, especially the development of cross-scheduling technology based on OTN, which has gradually developed OTN into a multi-service bearer platform.
  • the service signal characteristics of various access OTNs are different.
  • the OTN payload rate is fixed, and this makes the mapping paths and methods different when different service signals are mapped to the OTN payload.
  • the OTN payload is also called optical payload unit k ( OPUk ).
  • the service signal rate is slightly higher than the OPUk rate, if the direct mapping mode is used, it can only be mapped to the OPUk of the higher rate class, causing a serious waste of bandwidth.
  • the Gigabit Ethernet GE service signal is encoded with 8B/10B, and the line rate is 1.25 Gbps. If the 8B/10B coded stream is directly mapped into the OPUk, the OPU0 cannot be loaded into the OPU0 because the rate is 1.23895431 Gbps. If it is mapped to OPU1, and because the OPU1 rate is 2.48832 Gbps, which is much larger than 1.25 Gbps, it causes a serious waste of bandwidth.
  • the current solution is to de-encode the 8B/10B encoded data service signal that is connected to the OTN, and then use the general framing procedure for the decoded code stream according to the ITU-T G.7041 standard (Generic Framing) Procedure, GFP) performs GFP packet to reduce the rate of the service signal.
  • GFP Generic Framing
  • the GFP data is inserted by inserting a GFP idle frame or by an Asynchronous Generic Mapping Procedure (AGMP). The frame is mapped into OPUk.
  • AGMP Asynchronous Generic Mapping Procedure
  • the invention provides a method and a device for mapping an 8B/10B coded signal to an optical transport network for solving the problem that the mapping process is complicated and the efficiency is not high when the 8B/10B coded signal is mapped to the optical transport network in the prior art.
  • the present invention provides a method of mapping an 8B/10B encoded signal to an optical transport network transmission, which includes:
  • the step of converting the 8B/10B encoded signal into a specific encoded signal comprises:
  • Each N service codes in the decoded service code stream is formed into one coding block, each coding block performs self-synchronization scrambling, and a bit synchronization frame header of a set number of bits is inserted before each scrambled code block. , Forming a corresponding fixed length of a specific coding block, wherein, according to the speed of the accessed 8B/10B coded signal
  • a specific coded block of each fixed length is composed of a specific coded signal.
  • the rate of the decoded service code code stream is obtained according to the rate of the accessed 8B/10B coded signal and the OPUk according to the rate of the accessed 8B/10B coded signal.
  • Nx8 10 Nx8 k ⁇ 0V, - W In the range of values of N determined, a positive integer greater than or equal to 2 is selected as the N
  • the step of mapping the specific coded signal to the OPUk for transmission includes:
  • the asynchronous mapping procedure AMP maps the specific encoded signal to the OPUk for transmission.
  • the present invention provides a transmitting device for use in an optical transport network OTN, the transmitting device comprising:
  • a determining unit configured to determine an OPUk carrying the accessed 8B/10B encoded signal according to a rate of the 8B/10B encoded signal and a rate of different levels of the optical payload unit OPUk in the OTN;
  • a coding unit configured to convert the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, wherein the specific encoded signal is of a set length Composed of coding blocks, each coding block containing bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of the OPUk;
  • a mapping unit arranged to map the particular encoded signal to the OPUk for transmission.
  • the coding unit includes:
  • a decoding subunit configured to decode the 8B/10B encoded signal to obtain a decoded service code code stream, where each service code is 8 bits;
  • Inserting a subunit which is configured to form a coding block for each N service codes in the decoded service code stream, and each coding block performs self-synchronization scrambling, and inserts a setting before each scrambled code block.
  • a subunit is formed which is arranged to compose a specific coded block of each fixed length into a specific coded signal.
  • the inserting subunit is further configured to:
  • a positive integer greater than or equal to 2 is selected as the value of the N.
  • mapping unit is further configured to:
  • the specific mapping signal is mapped to the OPUk according to the asynchronous mapping procedure AMP defined by the ITU-T G.709 standard, or the bit synchronization mapping procedure BMP, or the asynchronous universal mapping procedure AGMP.
  • the present invention provides a method of de-mapping an optical transport network OTN encoded signal to an 8B/10B encoded signal, comprising:
  • Demapping the received OTN coded signal to obtain a specific coded signal wherein the specific coded signal is composed of coded blocks of a set length, each coded block includes bit synchronization frame header information, and the specific coded signal is The rate is not higher than the rate of the OPUk carrying the specific coded signal; decoding the obtained specific coded signal to obtain a service code stream;
  • the obtained service code stream is subjected to 8B/10B encoding to obtain an 8B/10B coded signal.
  • the obtained specific coded signal is decoded to obtain a service code.
  • the steps of the code stream include:
  • the present invention provides a receiving device for use in an optical transport network OTN, the receiving device comprising:
  • a demapping unit configured to demap the received OTN coded signal to obtain a specific coded signal, where the specific coded signal is composed of coded blocks of a set length, and each coded block includes bit synchronization frame header information, And the rate of the specific encoded signal is not higher than a rate of OPUk carrying the specific encoded signal;
  • a decoding unit configured to decode the obtained specific encoded signal to obtain a service code stream
  • a coding unit configured to perform 8B/10B coding on the obtained service code code stream to obtain an 8B/10B coded signal.
  • the decoding unit includes:
  • Searching for a subunit configured to search for bit synchronization header information in the received specific encoded signal
  • Obtaining a subunit configured to obtain a service code code stream included in the received specific coded signal according to the searched bit synchronization frame header information.
  • the 8B/10B coded signal provided by the present invention is mapped to the optical transmission network transmission process, according to
  • the 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission.
  • the specific coded signal is composed of coded blocks of a set length, each code block includes bit synchronization frame header information, and the rate of the specific coded signal is not higher than a rate of OPUk carrying the specific coded signal.
  • FIG. 1 is a flowchart of a transmission process of mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of a transmitting apparatus for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention
  • FIG. 3 is a flowchart of receiving processing for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention
  • FIG. 4 is a structural diagram of a receiving apparatus for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention
  • FIG. 5 is a flow chart showing a transmission process of converting an 8B/10B encoded signal into a 64B/66B encoded signal into an OTN transmission in the first embodiment of the present invention
  • Figure 6 is a flow chart showing the reception processing of converting an 8B/10B encoded signal into a 64B/66B encoded signal into an OTN transmission in the first embodiment of the present invention.
  • the service signal for accessing the OTN has been encoded by 8B/10B, that is, the service signal for accessing the OTN is an 8B/10B coded signal.
  • the 8B/10B coded signal is mapped to the OTN.
  • the transmission processing of the transmission includes:
  • Step 101 Determine an OPUk carrying the 8B/10B coded signal that is accessed.
  • the rate of each level of OPUk is fixed. For details, see Table 1. When the rate of the 8B/10B coded signal is 0, find the rate of OPUk slightly lower than that in Table 1. The OPUk carries the accessed 8B/10B encoded signal.
  • the rate of the 8B/10B coded signal is 1.25 Gbps.
  • the rate of OPUk which is slightly lower than V is OPU0, which is 1. 238 954 310 Gbps, and the 8B/ of the OPU0 bearer access is determined.
  • 10B encoded signal Convert the accessed 8B/10B coded signal into a specific coded signal according to the rate of the accessed 8B/10B coded signal and the determined rate of the OPUk.
  • the rate of OPUk carrying the accessed 8B/10B coded signal is slightly lower than the rate of the accessed 8B/10B coded signal. Therefore, the 8B/10B coded signal cannot be directly mapped into the OPUk, and the 8B/10B coded signal must be converted into The specific coded signal, the rate of which must be less than or equal to the rate of OPUk.
  • the received 8B/10B coded signal is first decoded to obtain a decoded service code code stream, that is, a 10-bit continuous service code code stream is decoded into an 8-bit continuous service code code stream, where the service code is data.
  • a decoded service code code stream that is, a 10-bit continuous service code code stream is decoded into an 8-bit continuous service code code stream, where the service code is data.
  • Code or control code each service code includes 8 bits.
  • each N service code in the decoded service code stream is composed into one coding block, and each coding block includes Nx 8 bits, and each Nx8-bit coding block is synchronously scrambled, after each scrambling code.
  • a bit synchronization frame header of a set number of bits M is added before the coding block, so that each specific coding block is formed, wherein the length of each specific coding block is fixed to NX8 + M bits, and M is greater than or equal to 2.
  • N is determined by the rate of the accessed 8B/10B coded signal, the rate of OPUk, and the set number of bits M of the bit sync frame header.
  • Step 103 Map the specific encoded signal to the OPUk for transmission.
  • the coded converted specific coded signal is mapped to the OPUk for transmission.
  • the specific coded signal stream is mapped to the OPUk, and the Asynchronous Mapping Procedure (AMP) or the bit synchronization mapping procedure defined by the ITU-T G.709 standard can be used.
  • AMP Asynchronous Mapping Procedure
  • BMP Bit synchronization mapping Procedure
  • AGMP Asynchronous Generic Mapping Procedure
  • Step 102, N is, The OPUk rate V k and the bit synchronization header is set to M bits determined by the rate 8B / 10B coded signal access, comprises:
  • the rate of the decoded service code stream is obtained by referring to formula (1).
  • N ranges from N ⁇ MV .
  • a transmitting device can be constructed. Referring to FIG. 2, the method includes: a determining unit 100, a coding unit 200, and a mapping unit 300.
  • the determining unit 100 is configured to determine, according to the rate of the 8B/10B coded signal and the rate of the optical payload unit OPUk in the OTN, the OPUk carrying the accessed 8B/10B coded signal.
  • the encoding unit 200 is configured to convert the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, where the specific encoded signal is encoded by a set length Block composition, each code block includes bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of the OPUk.
  • the mapping unit 300 is configured to map the specific encoded signal to the OPUk for transmission.
  • the encoding unit 200 further includes: a decoding subunit 210, an insertion subunit 220, and a constituent subunit 230, such that
  • the decoding subunit 210 is configured to decode the 8B/10B encoded signal to obtain a decoded service code stream, where each service code is 8 bits.
  • the insertion sub-unit 220 is configured to form a coding block for each N service codes in the decoded service code stream, and each coding block performs self-synchronization scrambling, and inserts a setting before each scrambled code block.
  • a bit-synchronized frame header of a number of bits forming a corresponding fixed-length specific coding block, wherein, according to a rate of the accessed 8B/10B coded signal, a rate of the OPUk, and a set number of bits of the bit synchronization frame header The value of N.
  • a positive integer of 2 is the value of the N.
  • N is a positive integer greater than or equal to M , and any one of them can be selected within this range.
  • a positive integer greater than or equal to 2 is a value of N, and the bandwidth of the OPUk can also be utilized to the utmost, and a value of a positive integer greater than or equal to 2 is preferably selected again.
  • the mapping unit is further used to map the specific coded signal to the OPUk.
  • the foregoing embodiment describes a transmission process for mapping an 8B/10B coded signal to an OTN transmission.
  • the embodiment of the present invention further provides a process for receiving an 8B/10B coded signal into an OTN transmission.
  • the method includes:
  • Step 301 Demap the received OTN coded signal to obtain a specific coded signal.
  • the specific coded signal that is, the specific coded stream, can be recovered from the OTN coded signal according to the information provided by the OPUk overhead.
  • the encoded signal is composed of coded blocks of a set length, each coded block containing bit sync frame header information, and the rate of the particular coded signal is not higher than the rate of OPUk carrying the particular coded signal.
  • the length of the coding block in the decoded specific coded signal is Nx8 + M bits, and each coding block includes an M-bit bit synchronization frame header, and the rate of the specific coded signal is ⁇ ⁇ 8 + ⁇ ,
  • Step 302 Decode the obtained specific coded signal to obtain a service code code stream.
  • bit synchronization frame header information in the specific coded signal is searched.
  • the received specific coded signal is composed of a fixed length of a specific code block, each of which includes an M-bit bit sync frame header and an Nx 8-bit service code, and the service code is a data code or a control code. Therefore, in the received specific coded signal, the bit sync frame header information is searched.
  • Step 303 Perform 8B/10B encoding on the obtained service code stream to obtain an 8B/10B coded signal.
  • a receiving apparatus is constructed. Referring to FIG. 4, the method includes: a demapping unit 410, a decoding unit 420, and an encoding unit 430, where:
  • the demapping unit 410 is configured to perform demapping on the received OTN coded signal to obtain a specific coded signal, where the specific coded signal is composed of coded blocks of a set length, and each coded block includes bit synchronization frame header information, And the rate of the particular encoded signal is not higher than the rate of OPUk carrying the particular encoded signal.
  • the decoding unit 420 is configured to decode the obtained specific encoded signal to obtain a service code stream.
  • the coding unit 430 performs 8B/10B coding on the obtained service code stream to obtain an 8B/10B coded signal.
  • the demapping unit 410 may recover a specific encoded signal, that is, a specific encoded code stream, from the OTN encoded signal according to the information provided by the OPUk overhead.
  • the decoding unit 420 first searches for the bit synchronization frame header information in the received specific coded signal, and then, according to the searched bit synchronization frame header information, can learn the boundary of the service code included in each specific coding block, thereby obtaining A stream of traffic codes in a particular encoded signal.
  • Step 501 Determine an OPUk of an 8B/10B coded signal carrying a rate of 1.25 Gbps.
  • the rate of OPU0 is 1.2389543 lGbps, which is slightly lower than 1.25 Gbps. Therefore, the OPUk carrying the coded signal is OPU0.
  • Step 502 Determine, according to the rate of the accessed 8B/10B coded signal, the rate of the OPUk, and the set number of bits of the bit synchronization frame header, the number of service codes constituting the coded block, that is, the value of N in the formula (2).
  • V 1.25Gbps
  • V k 1.23895431Gbps
  • 2
  • ⁇ > MV 1.046, we can see that ⁇ is a positive integer greater than or equal to 2.
  • the format of the 64B/66B coding block is as shown in Table 2.
  • Table 2 There is a 2-bit bit synchronization frame header before every 8 bytes.
  • the bit synchronization frame header is 01, it means that the next 8 bytes are all data codes.
  • the bit sync frame header is 10
  • the first byte immediately adjacent to the bit sync frame header indicates a block type field (Block Type Field) indicating the type of the 66 block code block.
  • Block Type Field Block Type Field
  • Step 503 Decode the accessed 8B/10B coded signal to obtain a service code code stream, where each service code includes 8 bits, and the service code is a data code or a control code.
  • the data code or control code in the 8B/10B coded signal is randomly generated. Therefore, the data code or control code in the decoded service code stream is consistent with the 8B/10B coded signal.
  • Step 504 Combine every 8 service codes into a 64-bit code block to perform self-synchronization scrambling.
  • Step 505 Insert a 2-bit bit synchronization frame header in front of each scrambled code block to form an encoded code stream composed of 66-bit code blocks.
  • the frame start character /S/ can only appear in the 0th or 4th byte, and the coded block type fields are 0x78 and 0x33, respectively.
  • the frame start character /S/ the possible location is all even bytes, ie 0, 2, 4, 6 bytes.
  • /S/ appears in the 2nd or 6th byte in the 66B encoding block, two additional custom characters are required to represent it. See Table 3, which is a definition method.
  • the code block type field is 0x36, the /S/ appears in the 2nd byte, and the code type field is 0x63, and /S/ appears in the 6th byte.
  • D represents a data character
  • C represents a control character.
  • Each control character occupies 7 bits, and the correspondence between the 8B/10B coded control code and the control character code in the 66B block is as shown in Table 4.
  • Step 506 Map the coded stream composed of 66-bit coded blocks into OPU0 for transmission.
  • the encoded code stream rate is mapped into OPU0.
  • the code stream rate after the 64B/66B encoding is lower than the rate of the OPU0. Therefore, when mapping to the OPU0, a certain padding byte needs to be added to the OPU0 according to the proportional relationship between the two rates, and the identifier is set in the overhead area of the OPU0. .
  • the 64B/66B code block is not an integer byte, when the OPU0 is loaded, the 64B/66B code block needs to be added to the OPU0 byte to be added with information data in groups of 8 bits.
  • the 8B/10B coded signal in the Gigabit Ethernet GE with a rate of 1.25 Gbps is mapped to the OPU0 for transmission. Then, when the signal in the OPU0 is sent to the client device, the demapping process needs to be performed, as shown in FIG. 6. , including:
  • Step 601 According to the information provided by the OPU0 overhead, the padding byte in the OPU0 is removed, and the 64B/66B coded stream is recovered.
  • Step 602 Perform 64B/66B decoding on the recovered 64B/66B coded stream.
  • bit synchronization frame header in the 64B/66B coded stream can be found first according to the synchronous detection state machine specified by the IEEE802.3 standard, thereby recovering the byte boundary.
  • the 64B/66B coded block payload data is converted into a service code format, that is, a format of the data code plus control code.
  • Step 603 Extract the 64B/66B decoded data, and after performing 8B/10B encoding, restore the GE service line code and send it to the client device.
  • the 8B/10B coded signal is converted into a 64B/66B coded signal.
  • the 8B/10B code may be converted into a 512B/515B coded signal, or the 8B/10B code may be converted into a 1024B/1027B coded signal. and many more.
  • the OPUk of the 8B/10B coded signal that is accessed is determined according to the rate of the 8B/10B coded signal and the rate of the optical payload unit OPUk in the OTN.
  • the 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission. It can be seen that only converting the 8B/10B coded signal into a specific coded signal can effectively reduce the signal rate, and using the reduced rate signal for OTN transmission can improve the transmission efficiency and save network bandwidth. At the same time, since the process of GFP packet is avoided, the mapping process is simplified, and the design cost of the transmission device can be effectively reduced.
  • the OPUk of the 8B/10B coded signal to be accessed is determined according to the rate of the 8B/10B coded signal and the rate of the different levels of the optical payload unit OPUk in the OTN.
  • the 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission. It can be seen that only by converting the 8B/10B coded signal into a specific coded signal, the signal rate can be effectively reduced, and the OTN transmission using the reduced rate signal can improve the transmission efficiency and save the network bandwidth. At the same time, since the process of GFP packet is avoided, the mapping process is simplified, and the design cost of the transmission device can be effectively reduced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

A transmitting method and apparatus for mapping 8B/10B encoding signal to an optical transport network (OTN) are disclosed, which are to solve the problems of the complexity and low efficiency of mapping process when 8B/10B encoding signals are mapped to an OTN in the prior art. The method comprises: determining the optical payload unit OPUk of 8B/10B encoding signals accessed by a bearer according to the rate of 8B/10B encoding signals and that of the different levels of the OPUk in the OTN; transforming the 8B/10B encoding signals into certain encoding signals according to the rates of 8B/10B encoding signals and the OPUk; and mapping the certain encoding signals to the OPUk for transportion, wherein, the certain encoding signals are composed of encoding blocks with regulated length, each encoding block includes bit synchronization frame header information, and the rate of the certain encoding signal is not higher than that of the OPUk.

Description

一种编码 /解码的方法及装置  Method and device for encoding/decoding

技术领域 Technical field

本发明涉及光传送网络 ( Optical Transport Network, OTN )技术领域, 特别涉及一种编码 /解码的方法及装置。  The present invention relates to the field of optical transport network (OTN) technologies, and in particular, to a method and apparatus for encoding/decoding.

背景技术 Background technique

随着通信系统的发展, OTN逐渐成为光通讯领域的主流技术, 尤其是基 于 OTN的交叉调度技术的发展, 使 OTN逐渐发展为多业务的承载平台。  With the development of communication systems, OTN has gradually become the mainstream technology in the field of optical communication, especially the development of cross-scheduling technology based on OTN, which has gradually developed OTN into a multi-service bearer platform.

各种接入 OTN的业务信号特性不同, 但是, OTN净荷速率是固定的, 而这就使不同业务信号在映射到 OTN净荷时, 映射的路径和方法各不相同。  The service signal characteristics of various access OTNs are different. However, the OTN payload rate is fixed, and this makes the mapping paths and methods different when different service signals are mapped to the OTN payload.

其中, OTN净荷又称为光净荷单元 k ( Optical payload unit k, OPUk ) The OTN payload is also called optical payload unit k ( OPUk ).

( k=0, 1 , 2, 2e, 3 , 4 ) , k表示不同的速率等级。 OPUk对应的 OPU类型 和速率参见表 1所示: (k=0, 1 , 2, 2e, 3 , 4 ) , k denotes different rate levels. The OPU type and rate corresponding to the OPUk are shown in Table 1:

Figure imgf000003_0001
Figure imgf000003_0001

表 1  Table 1

当业务信号速率略高于 OPUk速率时, 如果釆用直接映射方式, 只能映 射到更高速率等级的 OPUk中, 造成带宽的严重浪费。 例如, 千兆以太网 GE 业务信号釆用 8B/10B编码, 线路速率是 1.25Gbps, 如果直接将 8B/10B编码 码流映射到 OPUk中, 因 OPU0速率为 1.23895431Gbps, 则无法装入 OPU0 中,如果映射到 OPU1中,又因 OPU1速率为 2.48832Gbps,远远大于 1.25Gbps, 则造成带宽的严重浪费。 目前的解决方法是将接入 OTN的 8B/10B编码的数据业务信号进行解编 码, 然后, 按照 ITU-T G.7041标准的规定对解编码后的码流釆用通用成帧规 程( Generic Framing Procedure , GFP )进行 GFP封包, 以降低业务信号的速 率, 最后, 按照 G.709的规定, 通过插入 GFP空闲帧的方式或者通过异步通 用映射规程 (Asynchronous Generic Mapping Procedure, AGMP)的方式将 GFP 数据帧映射到 OPUk中。 When the service signal rate is slightly higher than the OPUk rate, if the direct mapping mode is used, it can only be mapped to the OPUk of the higher rate class, causing a serious waste of bandwidth. For example, the Gigabit Ethernet GE service signal is encoded with 8B/10B, and the line rate is 1.25 Gbps. If the 8B/10B coded stream is directly mapped into the OPUk, the OPU0 cannot be loaded into the OPU0 because the rate is 1.23895431 Gbps. If it is mapped to OPU1, and because the OPU1 rate is 2.48832 Gbps, which is much larger than 1.25 Gbps, it causes a serious waste of bandwidth. The current solution is to de-encode the 8B/10B encoded data service signal that is connected to the OTN, and then use the general framing procedure for the decoded code stream according to the ITU-T G.7041 standard (Generic Framing) Procedure, GFP) performs GFP packet to reduce the rate of the service signal. Finally, according to the provisions of G.709, the GFP data is inserted by inserting a GFP idle frame or by an Asynchronous Generic Mapping Procedure (AGMP). The frame is mapped into OPUk.

可见, 这种映射方式复杂, 尤其是需要先通过 GFP封包, 再进行映射, 会严重影响映射的效率, 增加设计成本。 发明内容  It can be seen that this mapping method is complicated, especially if the GFP packet needs to be first mapped and then mapped, which will seriously affect the mapping efficiency and increase the design cost. Summary of the invention

本发明提供一种将 8B/10B 编码信号映射到光传送网络传输的方法及装 置,用以解决现有技术将 8B/10B编码信号映射到光传送网时,映射过程复杂, 效率不高的问题。  The invention provides a method and a device for mapping an 8B/10B coded signal to an optical transport network for solving the problem that the mapping process is complicated and the efficiency is not high when the 8B/10B coded signal is mapped to the optical transport network in the prior art. .

本发明提供一种将 8B/10B编码信号映射到光传送网络传输的方法,其包 括:  The present invention provides a method of mapping an 8B/10B encoded signal to an optical transport network transmission, which includes:

根据 8B/10B编码信号的速率, 以及 OTN中光净荷单元 OPUk不同等级 的速率, 确定承载接入的 8B/10B编码信号的 OPUk;  Determining an OPUk carrying the 8B/10B coded signal according to the rate of the 8B/10B coded signal and the rate of the optical payload unit OPUk in the OTN;

根据所述 8B/10B编码信号的速率以及所述 OPUk的速率,将所述 8B/10B 编码信号转换为特定编码信号, 其中, 所述特定编码信号由设定长度的编码 块组成, 每个编码块包含比特同步帧头信息, 且所述特定编码信号的速率不 高于所述 OPUk的速率; 以及  Converting the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, wherein the specific encoded signal is composed of coded blocks of a set length, each encoding The block includes bit synchronization frame header information, and the rate of the particular encoded signal is not higher than the rate of the OPUk;

将所述特定编码信号映射到所述 OPUk进行传输。  Mapping the particular encoded signal to the OPUk for transmission.

此外,上述方法中,将所述 8B/10B编码信号转换为特定编码信号的步骤 包括:  Furthermore, in the above method, the step of converting the 8B/10B encoded signal into a specific encoded signal comprises:

将所述 8B/10B编码信号进行解码, 获得解码后的业务码码流, 其中, 每 个业务码为 8比特;  Decoding the 8B/10B coded signal to obtain a decoded service code code stream, where each service code is 8 bits;

将解码后的业务码码流中每 N个业务码组成一个编码块, 每个编码块进 行自同步扰码, 并在每个扰码后的编码块前插入设定位数的比特同步帧头, 形成对应的固定长度的特定编码块, 其中,根据接入的 8B/10B编码信号的速 以及 Each N service codes in the decoded service code stream is formed into one coding block, each coding block performs self-synchronization scrambling, and a bit synchronization frame header of a set number of bits is inserted before each scrambled code block. , Forming a corresponding fixed length of a specific coding block, wherein, according to the speed of the accessed 8B/10B coded signal

将每个固定长度的特定编码块组成特定编码信号。  A specific coded block of each fixed length is composed of a specific coded signal.

此外,上述方法中,所述根据接入的 8B/10B编码信号的速率、所述 OPUk 根据接入的 8B/10B编码信号的速率 获得解码后的业务码码流的速率 In addition, in the foregoing method, the rate of the decoded service code code stream is obtained according to the rate of the accessed 8B/10B coded signal and the OPUk according to the rate of the accessed 8B/10B coded signal.

K , 其中, = x ; K , where = x ;

1 1 10 1 1 10

根据解码后的业务码码流的速率 、 所述 OPUk的速率 以及所述比特 同步帧头的设定位数 M , 确定所述 N 的取值范围, 其中, 根据 τ, Nx8 + M τ, 8 Nx8 + M ^ T, τ、 MV Determining a range of values of the N according to a rate of the decoded service code stream, a rate of the OPUk, and a set number of bits M of the bit synchronization frame header, where, according to τ, Nx8 + M τ, 8 Nx8 + M ^ T , τ , MV

K x = Vx— x < Vk , 确足 Ν≥ 以及 K x = Vx— x < V k , sure enough Ν ≥ and

1 Nx8 10 Nx8 k \0V, - W 在确定的 N的取值范围中,选择一个大于等于 2的正整数作为所述 N的 1 Nx8 10 Nx8 k \0V, - W In the range of values of N determined, a positive integer greater than or equal to 2 is selected as the N

此外, 上述方法中, 将所述特定编码信号映射到所述 OPUk进行传输的 步骤包括: In addition, in the foregoing method, the step of mapping the specific coded signal to the OPUk for transmission includes:

根据 ITU-T G.709标准定义的异步映射规程 AMP, 或比特同步映射规程 BMP, 或异步通用映射规程 AGMP, 将所述特定编码信号映射到所述 OPUk 进行传输。  The asynchronous mapping procedure AMP, or the bit synchronization mapping procedure BMP, or the asynchronous universal mapping procedure AGMP, defined according to the ITU-T G.709 standard, maps the specific encoded signal to the OPUk for transmission.

本发明提供一种发射装置,应用在光传送网络 OTN中, 所述发射装置包 括:  The present invention provides a transmitting device for use in an optical transport network OTN, the transmitting device comprising:

确定单元, 其设置为根据 8B/10B编码信号的速率, 以及 OTN中光净荷 单元 OPUk不同等级的速率, 确定承载接入的 8B/10B编码信号的 OPUk;  a determining unit, configured to determine an OPUk carrying the accessed 8B/10B encoded signal according to a rate of the 8B/10B encoded signal and a rate of different levels of the optical payload unit OPUk in the OTN;

编码单元, 其设置为根据所述 8B/10B编码信号的速率, 以及所述 OPUk 的速率, 将所述 8B/10B编码信号转换为特定编码信号, 其中, 所述特定编码 信号由设定长度的编码块组成, 每个编码块包含比特同步帧头信息, 且所述 特定编码信号的速率不高于所述 OPUk的速率; 以及  a coding unit configured to convert the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, wherein the specific encoded signal is of a set length Composed of coding blocks, each coding block containing bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of the OPUk;

映射单元, 其设置为将所述特定编码信号映射到所述 OPUk进行传输。 此外, 上述装置中, 所述编码单元包括: A mapping unit arranged to map the particular encoded signal to the OPUk for transmission. In addition, in the above apparatus, the coding unit includes:

解码子单元,其设置为将所述 8B/10B编码信号进行解码, 获得解码后的 业务码码流, 其中每个业务码为 8比特;  a decoding subunit, configured to decode the 8B/10B encoded signal to obtain a decoded service code code stream, where each service code is 8 bits;

插入子单元, 其设置为将解码后的业务码码流中每 N个业务码组成一个 编码块, 每个编码块进行自同步扰码, 并在每个扰码后的编码块前插入设定 位数的比特同步帧头, 形成对应的固定长度的特定编码块, 其中, 根据接入 数确定所述 N的值; 以及  Inserting a subunit, which is configured to form a coding block for each N service codes in the decoded service code stream, and each coding block performs self-synchronization scrambling, and inserts a setting before each scrambled code block. a bit-synchronized frame header of a number of bits, forming a corresponding fixed-length specific coding block, wherein the value of the N is determined according to the number of accesses;

组成子单元,其设置为将每个固定长度的特定编码块组成特定编码信号。 此外, 上述装置中, 所述插入子单元还设置为:  A subunit is formed which is arranged to compose a specific coded block of each fixed length into a specific coded signal. In addition, in the above device, the inserting subunit is further configured to:

根据接入的 8B/10B编码信号的速率 获得解码后的业务码码流的速率 Obtaining the rate of the decoded service code stream according to the rate of the accessed 8B/10B coded signal

K , 其中, = x , 以及 K , where = x , and

1 1 10 1 1 10

根据解码后的业务码码流的速率 、 所述 OPUk的速率 以及所述比特 同步帧头的设定位数 M, 确定所述 N的取值范围, 其中, Determining the value range of the N according to the rate of the decoded service code code stream, the rate of the OPUk, and the set number of bits M of the bit synchronization frame header, where

, 在确定的 Ν的

Figure imgf000006_0001
In the determined
Figure imgf000006_0001

取值范围中, 选择一个大于等于 2的正整数作为所述 N的值。 In the range of values, a positive integer greater than or equal to 2 is selected as the value of the N.

此外, 上述装置中, 所述映射单元还设置为:  In addition, in the foregoing apparatus, the mapping unit is further configured to:

根据 ITU-T G.709标准定义的异步映射规程 AMP, 或比特同步映射规程 BMP, 或异步通用映射规程 AGMP, 将所述特定编码信号映射到所述 OPUk。  The specific mapping signal is mapped to the OPUk according to the asynchronous mapping procedure AMP defined by the ITU-T G.709 standard, or the bit synchronization mapping procedure BMP, or the asynchronous universal mapping procedure AGMP.

本发明提供一种将光传送网络 OTN编码信号解映射到 8B/10B编码信号 的方法, 其包括:  The present invention provides a method of de-mapping an optical transport network OTN encoded signal to an 8B/10B encoded signal, comprising:

对接收到的 OTN编码信号进行解映射, 获得特定编码信号, 其中, 所述 特定编码信号由设定长度的编码块组成,每个编码块包含比特同步帧头信息, 且所述特定编码信号的速率不高于承载所述特定编码信号的 OPUk的速率; 对获得的特定编码信号进行解码, 获得业务码码流; 以及  Demapping the received OTN coded signal to obtain a specific coded signal, wherein the specific coded signal is composed of coded blocks of a set length, each coded block includes bit synchronization frame header information, and the specific coded signal is The rate is not higher than the rate of the OPUk carrying the specific coded signal; decoding the obtained specific coded signal to obtain a service code stream;

将获得的业务码码流进行 8B/10B编码, 获得 8B/10B编码信号。  The obtained service code stream is subjected to 8B/10B encoding to obtain an 8B/10B coded signal.

此外, 上述方法中, 所述对获得的特定编码信号进行解码, 获得业务码 码流的步骤包括: In addition, in the above method, the obtained specific coded signal is decoded to obtain a service code. The steps of the code stream include:

在接收到的特定编码信号中, 搜索比特同步帧头信息; 以及  Searching for bit synchronization frame header information in the received specific coded signal;

根据搜索到的比特同步帧头信息 , 获得接收到的特定编码信号中包含的 业务码码流。 本发明提供一种接收装置, 其应用在光传送网络 OTN中, 所述接收装置 包括:  And obtaining, according to the searched bit synchronization frame header information, a service code code stream included in the received specific coded signal. The present invention provides a receiving device for use in an optical transport network OTN, the receiving device comprising:

解映射单元, 其设置为对接收到的 OTN编码信号进行解映射, 获得特定 编码信号, 其中, 所述特定编码信号由设定长度的编码块组成, 每个编码块 包含比特同步帧头信息, 且所述特定编码信号的速率不高于承载所述特定编 码信号的 OPUk的速率;  a demapping unit, configured to demap the received OTN coded signal to obtain a specific coded signal, where the specific coded signal is composed of coded blocks of a set length, and each coded block includes bit synchronization frame header information, And the rate of the specific encoded signal is not higher than a rate of OPUk carrying the specific encoded signal;

解码单元, 其设置为对获得的特定编码信号进行解码, 获得业务码码流; 以及  a decoding unit configured to decode the obtained specific encoded signal to obtain a service code stream;

编码单元,其设置为将获得的业务码码流进行 8B/10B编码,获得 8B/10B 编码信号。  And a coding unit configured to perform 8B/10B coding on the obtained service code code stream to obtain an 8B/10B coded signal.

此外, 上述装置中, 所述解码单元包括:  In addition, in the foregoing apparatus, the decoding unit includes:

搜索子单元, 其设置为在接收到的特定编码信号中, 搜索比特同步帧头 信息; 以及  Searching for a subunit, configured to search for bit synchronization header information in the received specific encoded signal;

获得子单元, 其设置为根据搜索到的比特同步帧头信息, 获得接收到的 特定编码信号中包含的业务码码流。  Obtaining a subunit, configured to obtain a service code code stream included in the received specific coded signal according to the searched bit synchronization frame header information.

本发明提供的 8B/10B 编码信号映射到光传送网络传输过程中, 根据 The 8B/10B coded signal provided by the present invention is mapped to the optical transmission network transmission process, according to

8B/10B编码信号的速率, 以及 OTN中光净荷单元 OPUk不同等级的速率, 确定承载接入的 8B/10B编码信号的 OPUk。 根据所述 8B/10B编码信号的速 率, 以及所述 OPUk的速率, 将所述 8B/10B编码信号转换为特定编码信号。 将所述特定编码信号映射到所述 OPUk进行传输。 其中, 所述特定编码信号 由设定长度的编码块组成, 每个编码块包含比特同步帧头信息, 且所述特定 编码信号的速率不高于承载所述特定编码信号的 OPUk的速率。 可见, 只需 要将 8B/10B编码信号转换为特定编码的信号, 就能有效降低信号速率, 釆用 降低速率后的信号进行 OTN传送可以提高传送的效率,节省网络带宽。同时, 由于避免了 GFP封包的过程, 简化了映射处理, 可以有效减少传送设备的设 计成本。 The rate of the 8B/10B coded signal, and the rate of the different levels of the optical payload unit OPUk in the OTN, determine the OPUk of the 8B/10B coded signal that carries the access. The 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission. The specific coded signal is composed of coded blocks of a set length, each code block includes bit synchronization frame header information, and the rate of the specific coded signal is not higher than a rate of OPUk carrying the specific coded signal. It can be seen that only converting the 8B/10B coded signal into a specific coded signal can effectively reduce the signal rate, and the OTN transmission using the reduced rate signal can improve the transmission efficiency and save the network bandwidth. Simultaneously, Since the process of GFP packet is avoided, the mapping process is simplified, and the design cost of the transmission device can be effectively reduced.

附图概述 BRIEF abstract

图 1为本发明实施例中将 8B/10B编码信号映射到 OTN传输的发送处理 流程图;  1 is a flowchart of a transmission process of mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention;

图 2为本发明实施例中将 8B/10B编码信号映射到 OTN传输的发送装置 的结构图;  2 is a structural diagram of a transmitting apparatus for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention;

图 3为本发明实施例中将 8B/10B编码信号映射到 OTN传输的接收处理 流程图;  3 is a flowchart of receiving processing for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention;

图 4为本发明实施例中将 8B/10B编码信号映射到 OTN传输的接收装置 的结构图;  4 is a structural diagram of a receiving apparatus for mapping an 8B/10B encoded signal to an OTN transmission according to an embodiment of the present invention;

图 5为本发明第一实施例中将 8B/10B编码信号转换为 64B/66B编码信号 映射到 OTN传输的发送处理流程图; 以及  5 is a flow chart showing a transmission process of converting an 8B/10B encoded signal into a 64B/66B encoded signal into an OTN transmission in the first embodiment of the present invention;

图 6为本发明第一实施例中将 8B/10B编码信号转换为 64B/66B编码信号 映射到 OTN传输的接收处理流程图。 本发明的较佳实施方式  Figure 6 is a flow chart showing the reception processing of converting an 8B/10B encoded signal into a 64B/66B encoded signal into an OTN transmission in the first embodiment of the present invention. Preferred embodiment of the invention

本发明实施例中, 接入 OTN的业务信号已经经过了 8B/10B的编码, 也 就是接入 OTN的业务信号都是 8B/10B编码信号, 参见图 1 , 将 8B/10B编码 信号映射到 OTN传输的发送处理过程包括:  In the embodiment of the present invention, the service signal for accessing the OTN has been encoded by 8B/10B, that is, the service signal for accessing the OTN is an 8B/10B coded signal. Referring to FIG. 1, the 8B/10B coded signal is mapped to the OTN. The transmission processing of the transmission includes:

步骤 101 : 确定承载接入的 8B/10B编码信号的 OPUk。  Step 101: Determine an OPUk carrying the 8B/10B coded signal that is accessed.

OTN中, 每个等级的 OPUk的速率都是固定的, 具体参见表 1 , 当接入 的 8B/10B编码信号的速率为 时,在表 1中查找略低于 的 OPUk的速率 ^ , 确定该 OPUk来承载接入的 8B/10B编码信号。  In OTN, the rate of each level of OPUk is fixed. For details, see Table 1. When the rate of the 8B/10B coded signal is 0, find the rate of OPUk slightly lower than that in Table 1. The OPUk carries the accessed 8B/10B encoded signal.

例如:接入的 8B/10B编码信号的速率为 1.25Gbps,在表 1中查找略低于 V的 OPUk的速率为 OPU0的速率, 为 1. 238 954 310Gbps, 则确定 OPU0承 载接入的 8B/10B编码信号。 步骤 102: 根据接入的 8B/10B编码信号的速率, 以及确定的 OPUk的速 率, 将接入的 8B/10B编码信号转换为特定编码信号。 For example, the rate of the 8B/10B coded signal is 1.25 Gbps. In Table 1, the rate of OPUk which is slightly lower than V is OPU0, which is 1. 238 954 310 Gbps, and the 8B/ of the OPU0 bearer access is determined. 10B encoded signal. Step 102: Convert the accessed 8B/10B coded signal into a specific coded signal according to the rate of the accessed 8B/10B coded signal and the determined rate of the OPUk.

承载接入的 8B/10B编码信号的 OPUk的速率 略低于接入的 8B/10B编 码信号的速率 因此, 不能直接将 8B/10B编码信号映射到 OPUk中, 须将 8B/10B编码信号转换为特定编码信号, 该特定编码信号的速率必须小于或等 于 OPUk的速率。  The rate of OPUk carrying the accessed 8B/10B coded signal is slightly lower than the rate of the accessed 8B/10B coded signal. Therefore, the 8B/10B coded signal cannot be directly mapped into the OPUk, and the 8B/10B coded signal must be converted into The specific coded signal, the rate of which must be less than or equal to the rate of OPUk.

这里, 首先将接收的 8B/10B编码信号进行解码, 获得解码后的业务码码 流, 即从 10比特的连续业务码码流解码为 8比特的连续业务码码流, 其中, 业务码为数据码或控制码, 每个业务码包括 8比特。  Here, the received 8B/10B coded signal is first decoded to obtain a decoded service code code stream, that is, a 10-bit continuous service code code stream is decoded into an 8-bit continuous service code code stream, where the service code is data. Code or control code, each service code includes 8 bits.

然后, 将解码后的业务码码流中每 N个业务码组成一个编码块, 每个编 码块包括 Nx 8比特, 对每个 Nx8比特的编码块进行同步扰码后, 在每个扰码 后的编码块前添加一个设定位数 M的比特同步帧头, 这样组成每个特定编码 块, 其中, 每个特定编码块的长度是固定为 NX8 + M比特, 并为了便于识别, M大于等于 2。 其中, N是由接入的 8B/10B编码信号的速率 、 OPUk的速 率 以及所述比特同步帧头的设定位数 M确定。  Then, each N service code in the decoded service code stream is composed into one coding block, and each coding block includes Nx 8 bits, and each Nx8-bit coding block is synchronously scrambled, after each scrambling code. A bit synchronization frame header of a set number of bits M is added before the coding block, so that each specific coding block is formed, wherein the length of each specific coding block is fixed to NX8 + M bits, and M is greater than or equal to 2. Where N is determined by the rate of the accessed 8B/10B coded signal, the rate of OPUk, and the set number of bits M of the bit sync frame header.

最后, 由每个特定编码块组成了特定编码信号。  Finally, a specific coded signal is composed of each specific coded block.

步骤 103: 将所述特定编码信号映射到所述 OPUk进行传输。  Step 103: Map the specific encoded signal to the OPUk for transmission.

将编码转换后的特定编码信号映射到 OPUk进行传输, 这里, 特定编码 信号流映射至 OPUk 可以釆用 ITU-T G.709 标准定义的异步映射规程 (Asynchronous Mapping Procedure , AMP)或者比特同 步映射规程 (Bitsynchronous Mapping Procedure , BMP)或者异步通用 映射规程 (Asynchronous Generic Mapping Procedure , AGMP)„  The coded converted specific coded signal is mapped to the OPUk for transmission. Here, the specific coded signal stream is mapped to the OPUk, and the Asynchronous Mapping Procedure (AMP) or the bit synchronization mapping procedure defined by the ITU-T G.709 standard can be used. (Bitsynchronous Mapping Procedure, BMP) or Asynchronous Generic Mapping Procedure (AGMP)

上述步骤 102中, N是由接入的 8B/10B编码信号的速率 、 OPUk的速 率 Vk以及所述比特同步帧头的设定位数 M确定, 具体包括: Step 102, N is, The OPUk rate V k and the bit synchronization header is set to M bits determined by the rate 8B / 10B coded signal access, comprises:

首先根据接入的 8B/10B编码信号的速率 ,获得解码后的业务码码流的 速率 参见公式(1 ) ,

Figure imgf000009_0001
First, according to the rate of the 8B/10B coded signal that is accessed, the rate of the decoded service code stream is obtained by referring to formula (1).
Figure imgf000009_0001

然后根据解码后的业务码码流的速率 、 OPUk的速率 以及比特同步帧 头的设定位数 M, 确定所述 N的取值范围, 参见公式(2 ) : Then according to the rate of the decoded service code stream, the rate of OPUk, and the bit synchronization frame Set the number of bits M of the head, determine the range of values of the N, see formula (2):

T, Nx8 + M τ, 8 Nx8 + M ^ T, , 、 1 Nx8 10 Nx8 k T , Nx8 + M τ , 8 Nx8 + M ^ T , , , 1 Nx8 10 Nx8 k

这样, N的取值范围为 N≥ MVThus, the value of N ranges from N ≥ MV .

\0Vk - W 最后在确定的 N的取值范围中,选择一个大于等于 2的正整数为 N的值。 根据上述的方法, 可以构造一种发射的装置, 参见图 2, 包括: 确定单 元 100、 编码单元 200和映射单元 300。 \0V k - W Finally, in the range of values of the determined N, a value of N greater than or equal to 2 is selected. According to the above method, a transmitting device can be constructed. Referring to FIG. 2, the method includes: a determining unit 100, a coding unit 200, and a mapping unit 300.

确定单元 100, 用于根据 8B/10B编码信号的速率以及 OTN中光净荷单 元 OPUk不同等级的速率, 确定承载接入的 8B/10B编码信号的 OPUk。  The determining unit 100 is configured to determine, according to the rate of the 8B/10B coded signal and the rate of the optical payload unit OPUk in the OTN, the OPUk carrying the accessed 8B/10B coded signal.

编码单元 200, 用于根据所述 8B/10B编码信号的速率以及所述 OPUk的 速率, 将所述 8B/10B编码信号转换为特定编码信号, 其中, 所述特定编码信 号由设定长度的编码块组成, 每个编码块包含比特同步帧头信息, 且所述特 定编码信号的速率不高于所述 OPUk的速率。  The encoding unit 200 is configured to convert the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, where the specific encoded signal is encoded by a set length Block composition, each code block includes bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of the OPUk.

映射单元 300, 用于将所述特定编码信号映射到所述 OPUk进行传输。 其中, 编码单元 200还包括: 解码子单元 210、 插入子单元 220和组成 子单元 230, 这样,  The mapping unit 300 is configured to map the specific encoded signal to the OPUk for transmission. The encoding unit 200 further includes: a decoding subunit 210, an insertion subunit 220, and a constituent subunit 230, such that

解码子单元 210, 用于将所述 8B/10B编码信号进行解码, 获得解码后的 业务码码流, 其中每个业务码为 8比特。  The decoding subunit 210 is configured to decode the 8B/10B encoded signal to obtain a decoded service code stream, where each service code is 8 bits.

插入子单元 220, 用于将解码后的业务码码流中每 N个业务码组成一个 编码块, 每个编码块进行自同步扰码, 并在每个扰码后的编码块前插入设定 位数的比特同步帧头, 形成对应的固定长度的特定编码块, 其中, 根据接入 的 8B/10B编码信号的速率、所述 OPUk的速率以及所述比特同步帧头的设定 位数确定所述 N的值。  The insertion sub-unit 220 is configured to form a coding block for each N service codes in the decoded service code stream, and each coding block performs self-synchronization scrambling, and inserts a setting before each scrambled code block. a bit-synchronized frame header of a number of bits, forming a corresponding fixed-length specific coding block, wherein, according to a rate of the accessed 8B/10B coded signal, a rate of the OPUk, and a set number of bits of the bit synchronization frame header The value of N.

组成子单元 230, 用于将每个固定长度的特定编码块组成特定编码信号。 并且,插入子单元 220还用于首先根据接入的 8B/10B编码信号的速率 , 获得解码后的业务码码流的速率 其中, = x^, 然后根据解码后的业 务码码流的速率^、 所述 OPUk的速率 以及所述比特同步帧头的设定位数 The component subunit 230 is configured to form a specific coded block of each fixed length into a specific coded signal. Moreover, the insertion sub-unit 220 is further configured to first obtain a rate of the decoded service code code stream according to the rate of the accessed 8B/10B coded signal, where = x^, and then according to the rate of the decoded service code code stream ^ The rate of the OPUk and the number of bits of the bit synchronization frame header

M, 确定所述 N的取值范围, 其中, 根据 xNx8 + M = x x Nx 8 + M M, determining a range of values of the N, wherein, according to x Nx8 + M = xx Nx 8 + M

1 Nx8 10 Nx8 k 可以确定?^≥ mv , 最后, 在确定的 Ν的取值范围中, 选择一个大于等于 10Vk - 8V 1 Nx8 10 Nx8 k You can determine ?^≥ mv , and finally, in the range of values of the determined Ν, choose a value greater than or equal to 10V k - 8V

2的正整数为所述 N的值。  A positive integer of 2 is the value of the N.

即 N为大于等于 M 的正整数即可, 可以在此范围内选择任一一个 That is, N is a positive integer greater than or equal to M , and any one of them can be selected within this range.

10Vk - 8V 10V k - 8V

大于等于 2的正整数为 N的值, 也可以最大限度利用 OPUk的带宽, 较佳地 再次选择一个大于等于 2的正整数为 N的值。 A positive integer greater than or equal to 2 is a value of N, and the bandwidth of the OPUk can also be utilized to the utmost, and a value of a positive integer greater than or equal to 2 is preferably selected again.

当然, 本发明实施例中, 映射单元还用于根据 ITU-T G.709标准定义的 异步映射规程 AMP, 比特同步映射规程 BMP或异步通用映射规程 AGMP, 将所述特定编码信号映射到所述 OPUk。  The mapping unit is further used to map the specific coded signal to the OPUk.

上述实施例中描述了将 8B/10B编码信号映射到 OTN传输的发送处理过 程, 本发明实施例还提供一种将 8B/10B编码信号映射到 OTN传输的接收处 理过程, 参见图 3 , 包括:  The foregoing embodiment describes a transmission process for mapping an 8B/10B coded signal to an OTN transmission. The embodiment of the present invention further provides a process for receiving an 8B/10B coded signal into an OTN transmission. Referring to FIG. 3, the method includes:

步骤 301 : 对接收到的 OTN编码信号进行解映射, 获得特定编码信号。 这里, 可以根据 OPUk开销提供的信息, 从 OTN编码信号中, 恢复出特 定编码信号, 即特定编码码流。 该编码信号由设定长度的编码块组成, 每个 编码块包含比特同步帧头信息, 且所述特定编码信号的速率不高于承载所述 特定编码信号的 OPUk的速率。  Step 301: Demap the received OTN coded signal to obtain a specific coded signal. Here, the specific coded signal, that is, the specific coded stream, can be recovered from the OTN coded signal according to the information provided by the OPUk overhead. The encoded signal is composed of coded blocks of a set length, each coded block containing bit sync frame header information, and the rate of the particular coded signal is not higher than the rate of OPUk carrying the particular coded signal.

这里,解映射的特定编码信号中的编码块的长度为 Nx8 + M比特,每个编 码块包含 M比特的比特同步帧头, 特定编码信号的速率为 χ Νχ 8 + Μ , Here, the length of the coding block in the decoded specific coded signal is Nx8 + M bits, and each coding block includes an M-bit bit synchronization frame header, and the rate of the specific coded signal is χ Νχ 8 + Μ ,

10 Nx8 不高于承载所述特定编码信号的 OPUk的速率 。 步骤 302: 对获得的特定编码信号进行解码, 获得业务码码流。  10 Nx8 is not higher than the rate of OPUk carrying the specific coded signal. Step 302: Decode the obtained specific coded signal to obtain a service code code stream.

这里, 首先, 搜索特定编码信号中的比特同步帧头信息。  Here, first, the bit synchronization frame header information in the specific coded signal is searched.

接收到的特定编码信号是由固定长度的特定编码块组成的, 每个特定编 码块包括 M比特的比特同步帧头以及 Nx 8比特的业务码,业务码为数据码或 控制码。 因此, 在接收到的特定编码信号中, 搜索比特同步帧头信息。  The received specific coded signal is composed of a fixed length of a specific code block, each of which includes an M-bit bit sync frame header and an Nx 8-bit service code, and the service code is a data code or a control code. Therefore, in the received specific coded signal, the bit sync frame header information is searched.

然后, 根据搜索到的比特同步帧头信息, 获得接收到的特定编码信号中 包含的业务码码流。 即根据搜索到的比特同步帧头信息, 可得知每个特定编 码块包含的业务码的边界, 从而得到特定编码信号中的业务码码流。 步骤 303: 对获得业务码码流进行 8B/10B编码, 获得 8B/10B编码信号。 根据上述的这种方法, 构造一种接收的装置, 参见图 4, 包括: 解映射 单元 410、 解码单元 420和编码单元 430, 其中: Then, according to the searched bit synchronization frame header information, the service code code stream included in the received specific coded signal is obtained. That is, according to the searched bit synchronization frame header information, the boundary of the service code included in each specific coding block can be known, thereby obtaining the service code code stream in the specific coded signal. Step 303: Perform 8B/10B encoding on the obtained service code stream to obtain an 8B/10B coded signal. According to the above method, a receiving apparatus is constructed. Referring to FIG. 4, the method includes: a demapping unit 410, a decoding unit 420, and an encoding unit 430, where:

解映射单元 410, 用于对接收到的 OTN编码信号进行解映射, 获得特定 编码信号, 其中, 所述特定编码信号由设定长度的编码块组成, 每个编码块 包含比特同步帧头信息, 且所述特定编码信号的速率不高于承载所述特定编 码信号的 OPUk的速率。  The demapping unit 410 is configured to perform demapping on the received OTN coded signal to obtain a specific coded signal, where the specific coded signal is composed of coded blocks of a set length, and each coded block includes bit synchronization frame header information, And the rate of the particular encoded signal is not higher than the rate of OPUk carrying the particular encoded signal.

解码单元 420, 用于对获得的特定编码信号进行解码, 获得业务码码流。 编码单元 430, 将获得业务码码流进行 8B/10B编码, 获得 8B/10B编码 信号。  The decoding unit 420 is configured to decode the obtained specific encoded signal to obtain a service code stream. The coding unit 430 performs 8B/10B coding on the obtained service code stream to obtain an 8B/10B coded signal.

其中, 解映射单元 410可以根据 OPUk开销提供的信息, 从 OTN编码信 号中, 恢复出特定编码信号, 即特定编码码流。  The demapping unit 410 may recover a specific encoded signal, that is, a specific encoded code stream, from the OTN encoded signal according to the information provided by the OPUk overhead.

这样, 解码单元 420首先在接收到的特定编码信号中, 搜索比特同步帧 头信息, 然后根据搜索到的比特同步帧头信息, 可得知每个特定编码块包含 的业务码的边界, 从而得到特定编码信号中的业务码码流。  In this way, the decoding unit 420 first searches for the bit synchronization frame header information in the received specific coded signal, and then, according to the searched bit synchronization frame header information, can learn the boundary of the service code included in each specific coding block, thereby obtaining A stream of traffic codes in a particular encoded signal.

下面结合说明书附图对本发明实施例作进一步详细描述。  The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

实施例 1 ,将速率为 1.25Gbps的千兆以太网 GE中的 8B/10B编码信号映 射到 OTN中传输,且本实施例中,比特同步帧头的设定位数为 2,即公式(2 ) 中, M=2。 参见图 5:  Embodiment 1: The 8B/10B coded signal in the Gigabit Ethernet GE with a rate of 1.25 Gbps is mapped to the OTN for transmission, and in this embodiment, the set bit number of the bit synchronization frame header is 2, that is, the formula (2) ), M=2. See Figure 5:

步骤 501 : 确定承载速率为 1.25 Gbps的 8B/10B编码信号的 OPUk。  Step 501: Determine an OPUk of an 8B/10B coded signal carrying a rate of 1.25 Gbps.

OPU0的速率是 1.2389543 lGbps, 略低于 1.25Gbps, 因此, 承载该编码 信号的 OPUk为 OPU0。  The rate of OPU0 is 1.2389543 lGbps, which is slightly lower than 1.25 Gbps. Therefore, the OPUk carrying the coded signal is OPU0.

步骤 502: 根据接入的 8B/10B编码信号的速率、 OPUk的速率以及比特 同步帧头的设定位数确定组成编码块的业务码个数, 即公式(2 ) 中的 N 的 值。  Step 502: Determine, according to the rate of the accessed 8B/10B coded signal, the rate of the OPUk, and the set number of bits of the bit synchronization frame header, the number of service codes constituting the coded block, that is, the value of N in the formula (2).

这里, V =1.25Gbps , Vk =1.23895431Gbps , Μ=2 , 因此, 根据Here, V = 1.25Gbps, V k = 1.23895431Gbps, Μ = 2, therefore, according to

Ν > MV = 1.046 , 可知 Ν为大于等于 2的正整数即可。 Ν > MV = 1.046, we can see that Ν is a positive integer greater than or equal to 2.

10 t -8 64B/66B编码块的格式如表 2所示, 每 8个字节之前有 2比特的比特同 步帧头, 当比特同步帧头为 01时, 表示后面的 8个字节全部为数据码, 当比 特同步帧头为 10时,表示后面的 8个字节中至少有 1个字节的控制码。此时, 紧邻比特同步帧头的第 1个字节表示编码块类型域(Block Type Field ) , 用 来指示 66Β编码块的类型。 可见, 64Β/66Β编码块的长度和格式是固定的, 方便在接收方向实现字节同步,因此,这里,可以将接入的 1.25Gbps的 8B/10B 编码信号, 转换为 64B/66B的编码信号, 即可以使 N=8 10 t -8 The format of the 64B/66B coding block is as shown in Table 2. There is a 2-bit bit synchronization frame header before every 8 bytes. When the bit synchronization frame header is 01, it means that the next 8 bytes are all data codes. When the bit sync frame header is 10, it indicates a control code of at least 1 byte of the following 8 bytes. At this time, the first byte immediately adjacent to the bit sync frame header indicates a block type field (Block Type Field) indicating the type of the 66 block code block. It can be seen that the length and format of the 64 Β/66 Β code block are fixed, which facilitates byte synchronization in the receiving direction. Therefore, the 1.25 Gbps 8B/10B coded signal can be converted into a 64B/66B coded signal. , that is, you can make N=8

步骤 503: 将接入的 8B/10B编码信号进行解码,得到业务码码流,其中, 每个业务码包括 8比特, 业务码为数据码或控制码。  Step 503: Decode the accessed 8B/10B coded signal to obtain a service code code stream, where each service code includes 8 bits, and the service code is a data code or a control code.

接入的 8B/10B编码信号中的数据码或控制码都是随机出现的, 因此,解 码后的业务码码流中数据码或控制码与 8B/10B编码信号中一致。  The data code or control code in the 8B/10B coded signal is randomly generated. Therefore, the data code or control code in the decoded service code stream is consistent with the 8B/10B coded signal.

步骤 504: 将每 8个业务码组成一组 64比特编码块, 进行自同步扰码。 步骤 505: 在每个扰码后的编码块的前面插入 2比特的比特同步帧头, 形成由 66比特编码块组成的编码码流。  Step 504: Combine every 8 service codes into a 64-bit code block to perform self-synchronization scrambling. Step 505: Insert a 2-bit bit synchronization frame header in front of each scrambled code block to form an encoded code stream composed of 66-bit code blocks.

Figure imgf000013_0001
Figure imgf000014_0001
Figure imgf000013_0001
Figure imgf000014_0001

表 2  Table 2

S  S

按照编码标准的规定, 在 66B编码块中, 帧起始字符 /S/, 只能出现在第 0或第 4字节, 编码块类型域分别为 0x78和 0x33。 然而, 对于 GE业务, 帧 起始字符 /S/, 可能出现的位置为所有的偶数字节, 即第 0、 第 2、 第 4、 第 6 字节。 当 /S/出现在第 2或第 6字节时, 在 66B编码块中, 需要另外两个自定 义的字符来表示。 参见表 3所示, 是一种定义方法, 编码块类型域为 0x36表 示 /S/出现在第 2字节, 编码类型域为 0x63表示 /S/出现在第 6字节。  According to the coding standard, in the 66B code block, the frame start character /S/ can only appear in the 0th or 4th byte, and the coded block type fields are 0x78 and 0x33, respectively. However, for GE services, the frame start character /S/, the possible location is all even bytes, ie 0, 2, 4, 6 bytes. When /S/ appears in the 2nd or 6th byte, in the 66B encoding block, two additional custom characters are required to represent it. See Table 3, which is a definition method. The code block type field is 0x36, the /S/ appears in the 2nd byte, and the code type field is 0x63, and /S/ appears in the 6th byte.

数据码格式 编码块  Data code format coding block

C0C1S2D3D4D5D6D-

Figure imgf000014_0003
C 0 C 1 S 2 D3D 4 D 5 D 6 D-
Figure imgf000014_0003

表 3  table 3

在上述表 2和表 3的编码块中, D表示的是数据字符, C表示的是控制 字符。 每个控制字符占 7个比特, 8B/10B编码的控制码与 66B块中的控制字 符编码对应关系如表 4所示。  In the coding blocks of Tables 2 and 3 above, D represents a data character, and C represents a control character. Each control character occupies 7 bits, and the correspondence between the 8B/10B coded control code and the control character code in the 66B block is as shown in Table 4.

Figure imgf000014_0002
保留 5 0xf7 0x78 K23.7 信号序列集 /Fsig/ 0x5c 码类型域编码 +0码 OxF K28.2 表 4
Figure imgf000014_0002
Reserved 5 0xf7 0x78 K23.7 Signal Sequence Set / Fsig / 0x5c Code Type Domain Code + 0 Code OxF K28.2 Table 4

这样, 对于 GE业务, 当在步骤 503之前, 检测到 8B/10B编码错误时, 则不需对其进行解码, 直接在 64B/66B编码中用控制字符/ E/ ( Oxl e )代替。 这样可以很方便地实现 GE业务的故障透传。  Thus, for the GE service, when the 8B/10B coding error is detected before step 503, it is not necessary to decode it, and the control character / E/(Oxl e ) is directly substituted in the 64B/66B code. This makes it easy to implement fault transparent transmission of GE services.

步骤 506: 将由 66比特编码块组成的编码码流, 映射到 OPU0中进行传 输。  Step 506: Map the coded stream composed of 66-bit coded blocks into OPU0 for transmission.

64B/66B编码后的码流速率, 也就是由 66比特编码块组成的编码码流速 率为 1.25X x = 1.03125 < 1.238954 , 即小于 OPUO的速率, 因此, 将 64B/66B  The code stream rate after 64B/66B encoding, that is, the code code flow rate composed of 66-bit code blocks is 1.25X x = 1.03125 < 1.238954, which is less than the rate of OPUO, therefore, 64B/66B

10 64  10 64

编码后的码流速率映射到 OPU0中。 The encoded code stream rate is mapped into OPU0.

64B/66B编码后的码流速率低于 OPU0的速率, 因此, 向 OPU0映射时, 需要根据两者速率的比例关系,在 OPU0中添加一定的填充字节,并在 OPU0 的开销区做出标识。  The code stream rate after the 64B/66B encoding is lower than the rate of the OPU0. Therefore, when mapping to the OPU0, a certain padding byte needs to be added to the OPU0 according to the proportional relationship between the two rates, and the identifier is set in the overhead area of the OPU0. .

又因为 64B/66B 编码块并不是整数字节, 在装入 OPU0 时, 还需将 64B/66B编码块按照每 8比特一组, 依次添加到 OPU0中需要添加信息数据 的字节中。  Because the 64B/66B code block is not an integer byte, when the OPU0 is loaded, the 64B/66B code block needs to be added to the OPU0 byte to be added with information data in groups of 8 bits.

上述过程中, 将速率为 1.25Gbps的千兆以太网 GE中的 8B/10B编码信 号映射到 OPU0中传输, 那么将 OPU0中信号发送到客户端设备时, 还需进 行解映射过程, 参见图 6, 包括:  In the above process, the 8B/10B coded signal in the Gigabit Ethernet GE with a rate of 1.25 Gbps is mapped to the OPU0 for transmission. Then, when the signal in the OPU0 is sent to the client device, the demapping process needs to be performed, as shown in FIG. 6. , including:

步骤 601 : 根据 OPU0开销提供的信息, 去除 OPU0中的填充字节, 恢 复出 64B/66B编码码流。  Step 601: According to the information provided by the OPU0 overhead, the padding byte in the OPU0 is removed, and the 64B/66B coded stream is recovered.

步骤 602: 对恢复出 64B/66B编码码流进行 64B/66B解码。  Step 602: Perform 64B/66B decoding on the recovered 64B/66B coded stream.

这里, 可以首先按照 IEEE802.3 标准规定的同步检测状态机, 找到 64B/66B编码码流中的比特同步帧头, 进而恢复出字节边界。  Here, the bit synchronization frame header in the 64B/66B coded stream can be found first according to the synchronous detection state machine specified by the IEEE802.3 standard, thereby recovering the byte boundary.

然后, 按照表 2-4描述的映射关系, 将 64B/66B编码块净荷数据转换为 业务码格式, 也即是数据码加控制码的格式。  Then, according to the mapping relationship described in Table 2-4, the 64B/66B coded block payload data is converted into a service code format, that is, a format of the data code plus control code.

在进行编码转换时, 需要注意, 当遇到错误指示编码时, 转换为 GE业 务相应的错误码指示字符。 When coding conversion, it is necessary to pay attention to the conversion to GE when encountering the error indication code. The corresponding error code indicates the character.

步骤 603: 提取 64B/66B解码后的数据, 并进行 8B/10B编码后, 恢复为 GE业务线路编码, 送给客户设备。  Step 603: Extract the 64B/66B decoded data, and after performing 8B/10B encoding, restore the GE service line code and send it to the client device.

在上述实施例中, 将 8B/10B编码信号转换为 64B/66B编码信号, 当然, 也可以将 8B/10B编码转换为 512B/515B编码信号, 或者将 8B/10B编码转换 为 1024B/1027B编码信号等等。  In the above embodiment, the 8B/10B coded signal is converted into a 64B/66B coded signal. Of course, the 8B/10B code may be converted into a 512B/515B coded signal, or the 8B/10B code may be converted into a 1024B/1027B coded signal. and many more.

综上所述, 本发明实施例中, 根据 8B/10B编码信号的速率, 以及 OTN 中光净荷单元 OPUk不同等级的速率, 确定承载接入的 8B/10B编码信号的 OPUk。 根据所述 8B/10B编码信号的速率, 以及所述 OPUk的速率, 将所述 8B/10B 编码信号转换为特定编码信号。 将所述特定编码信号映射到所述 OPUk进行传输。 可见, 只需要将 8B/10B编码信号转换为特定编码的信号, 就能有效降低信号速率,釆用降低速率后的信号进行 OTN传送可以提高传送 的效率, 节省网络带宽。 同时, 由于避免了 GFP封包的过程, 简化了映射处 理, 可以有效减少传送设备的设计成本。  In summary, in the embodiment of the present invention, the OPUk of the 8B/10B coded signal that is accessed is determined according to the rate of the 8B/10B coded signal and the rate of the optical payload unit OPUk in the OTN. The 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission. It can be seen that only converting the 8B/10B coded signal into a specific coded signal can effectively reduce the signal rate, and using the reduced rate signal for OTN transmission can improve the transmission efficiency and save network bandwidth. At the same time, since the process of GFP packet is avoided, the mapping process is simplified, and the design cost of the transmission device can be effectively reduced.

显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本 发明的精神和范围。 这样, 倘若对本发明的这些修改和变型属于本发明权利 要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Therefore, it is intended that the present invention cover the modifications and variations of the invention as claimed.

工业实用性 本发明中,根据 8B/10B编码信号的速率,以及 OTN中光净荷单元 OPUk 不同等级的速率,确定承载接入的 8B/10B编码信号的 OPUk。根据所述 8B/10B 编码信号的速率, 以及所述 OPUk的速率, 将所述 8B/10B编码信号转换为特 定编码信号。 将所述特定编码信号映射到所述 OPUk进行传输。 可见, 只需 要将 8B/10B编码信号转换为特定编码的信号, 就能有效降低信号速率, 釆用 降低速率后的信号进行 OTN传送可以提高传送的效率,节省网络带宽。同时, 由于避免了 GFP封包的过程, 简化了映射处理, 可以有效减少传送设备的设 计成本。 Industrial Applicability In the present invention, the OPUk of the 8B/10B coded signal to be accessed is determined according to the rate of the 8B/10B coded signal and the rate of the different levels of the optical payload unit OPUk in the OTN. The 8B/10B encoded signal is converted to a specific encoded signal based on the rate of the 8B/10B encoded signal and the rate of the OPUk. Mapping the particular encoded signal to the OPUk for transmission. It can be seen that only by converting the 8B/10B coded signal into a specific coded signal, the signal rate can be effectively reduced, and the OTN transmission using the reduced rate signal can improve the transmission efficiency and save the network bandwidth. At the same time, since the process of GFP packet is avoided, the mapping process is simplified, and the design cost of the transmission device can be effectively reduced.

Claims

权 利 要 求 书 Claim 1、一种将 8B/10B编码信号映射到光传送网络 OTN传输的方法,其包括: 根据 8B/10B编码信号的速率, 以及所述 OTN中光净荷单元 OPUk不同 等级的速率, 确定承载接入的所述 8B/10B编码信号的 OPUk;  A method for mapping an 8B/10B coded signal to an optical transport network OTN transmission, comprising: determining a bearer connection according to a rate of the 8B/10B coded signal and a rate of different levels of the optical payload unit OPUk in the OTN The OPUk of the 8B/10B encoded signal; 根据所述 8B/10B编码信号的速率以及所述 OPUk的速率,将所述 8B/10B 编码信号转换为特定编码信号, 其中, 所述特定编码信号由设定长度的编码 块组成, 每个编码块包含比特同步帧头信息, 且所述特定编码信号的速率不 高于所述 OPUk的速率; 以及  Converting the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, wherein the specific encoded signal is composed of coded blocks of a set length, each encoding The block includes bit synchronization frame header information, and the rate of the particular encoded signal is not higher than the rate of the OPUk; 将所述特定编码信号映射到所述 OPUk进行传输。  Mapping the particular encoded signal to the OPUk for transmission. 2、 如权利要求 1所述的方法, 其中, 将所述 8B/10B编码信号转换为特 定编码信号的步骤包括:  2. The method of claim 1 wherein the step of converting the 8B/10B encoded signal to a particular encoded signal comprises: 将所述 8B/10B编码信号进行解码, 获得解码后的业务码码流, 其中, 每 个业务码为 8比特;  Decoding the 8B/10B coded signal to obtain a decoded service code code stream, where each service code is 8 bits; 将所述解码后的业务码码流中每 N个业务码组成一个编码块, 每个编码 块进行自同步扰码, 并在每个扰码后的编码块前插入设定位数的比特同步帧 头, 形成对应的固定长度的特定编码块, 其中, 根据接入的所述 8B/10B编码  And each N service codes in the decoded service code stream is formed into one coding block, and each coding block performs self-synchronization scrambling, and inserts a bit synchronization of a set number of bits before each scrambled code block. a frame header, forming a corresponding fixed length of a specific coding block, wherein the 8B/10B coding according to the access N的值; 以及 The value of N; 将每个固定长度的特定编码块组成特定编码信号。  A specific coded block of each fixed length is composed of a specific coded signal. 3、 如权利要求 2所述的方法, 其中, 所述根据接入的 8B/10B编码信号 值的步骤包括:  3. The method of claim 2, wherein the step of encoding the signal value according to the accessed 8B/10B comprises: 根据接入的 8B/10B编码信号的速率 ,获得解码后的业务码码流的速率 K , 其中, Obtaining a rate K of the decoded service code stream according to the rate of the accessed 8B/10B coded signal, where
Figure imgf000017_0001
Figure imgf000017_0001
根据解码后的业务码码流的速率 所述 OPUk的速率 ^以及所述比特 同步帧头的设定位数 M , 确定所述 N 的取值范围, 其中, 根据 Determining the value range of the N according to the rate of the decoded service code code stream, the rate of the OPUk, and the set number of bits M of the bit synchronization frame header, where „ Νχ8 + Μ τ, 8 Nx8 + M ^ T. τ、 MV„ Νχ8 + Μ τ, 8 Nx8 + M ^ T . τ , MV x = V — x < , 确足 Ν≥ 以及  x = V — x < , sure enough Ν ≥ and 1 Nx8 10 Nx8 k \0V, - W 在确定的所述 N的取值范围中, 选择一个大于等于 2的正整数作为所述 N的值。 1 Nx8 10 Nx8 k \0V, - W In the determined range of values of the N, a positive integer greater than or equal to 2 is selected as the value of the N.
4、 如权利要求 1 所述的方法, 其中, 将所述特定编码信号映射到所述 OPUk进行传输的步骤包括:  4. The method of claim 1, wherein the step of mapping the specific encoded signal to the OPUk for transmission comprises: 根据 ITU-T G.709标准定义的异步映射规程 AMP、 或比特同步映射规程 Asynchronous mapping procedure AMP, or bit synchronization mapping procedure as defined by the ITU-T G.709 standard BMP, 或异步通用映射规程 AGMP, 将所述特定编码信号映射到所述 OPUk 进行传输。 BMP, or asynchronous universal mapping procedure AGMP, mapping the specific encoded signal to the OPUk for transmission. 5、 一种发射装置, 其应用在光传送网络 OTN中, 所述发射装置包括: 确定单元, 其设置为根据 8B/10B编码信号的速率, 以及所述 OTN中光 净荷单元 OPUk不同等级的速率, 确定承载接入的所述 8B/10B编码信号的 OPUk;  5. A transmitting device, which is applied in an optical transport network OTN, the transmitting device comprising: a determining unit configured to set a rate according to an 8B/10B encoded signal, and a different level of the optical payload unit OPUk in the OTN Rate, determining an OPUk carrying the 8B/10B coded signal that is accessed; 编码单元, 其设置为根据所述 8B/10B编码信号的速率, 以及所述 OPUk 的速率, 将所述 8B/10B编码信号转换为特定编码信号, 其中, 所述特定编码 信号由设定长度的编码块组成, 每个编码块包含比特同步帧头信息, 且所述 特定编码信号的速率不高于所述 OPUk的速率; 以及  a coding unit configured to convert the 8B/10B encoded signal into a specific encoded signal according to a rate of the 8B/10B encoded signal and a rate of the OPUk, wherein the specific encoded signal is of a set length Composed of coding blocks, each coding block containing bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of the OPUk; 映射单元, 其设置为将所述特定编码信号映射到所述 OPUk进行传输。 A mapping unit arranged to map the particular encoded signal to the OPUk for transmission. 6、 如权利要求 5所述的装置, 其中, 所述编码单元包括: 6. The apparatus according to claim 5, wherein the encoding unit comprises: 解码子单元,其设置为将所述 8B/10B编码信号进行解码, 获得解码后的 业务码码流, 其中每个业务码为 8比特;  a decoding subunit, configured to decode the 8B/10B encoded signal to obtain a decoded service code code stream, where each service code is 8 bits; 插入子单元, 其设置为将解码后的业务码码流中每 N个业务码组成一个 编码块, 每个编码块进行自同步扰码, 并在每个扰码后的编码块前插入设定 位数的比特同步帧头, 形成对应的固定长度的特定编码块, 其中, 根据接入 的 8B/10B编码信号的速率、所述 OPUk的速率以及所述比特同步帧头的设定 位数确定所述 N的值; 以及  Inserting a subunit, which is configured to form a coding block for each N service codes in the decoded service code stream, and each coding block performs self-synchronization scrambling, and inserts a setting before each scrambled code block. a bit-synchronized frame header of a number of bits, forming a corresponding fixed-length specific coding block, wherein, according to a rate of the accessed 8B/10B coded signal, a rate of the OPUk, and a set number of bits of the bit synchronization frame header The value of N; 组成子单元,其设置为将每个固定长度的特定编码块组成特定编码信号。 A subunit is formed which is arranged to compose a specific coded block of each fixed length into a specific coded signal. 7、 如权利要求 6所述的装置, 其中, 所述插入子单元还设置为: 根据接入的 8B/10B编码信号的速率 ,获得解码后的业务码码流的速率 K , 其中, = x , 以及 7. The apparatus according to claim 6, wherein the insertion subunit is further configured to: obtain a rate of the decoded service code code stream according to a rate of the accessed 8B/10B coded signal. K , where = x , and 1 1 10 1 1 10 根据解码后的业务码码流的速率 所述 OPUk的速率 ^以及所述比特 同步帧头的设定位数 M, 确定所述 N的取值范围, 其中,  Determining the value range of the N according to the rate of the decoded service code code stream, the rate of the OPUk, and the set number of bits M of the bit synchronization frame header, where 根据^^^ = ^<^<^^ 确定 N^^, 在确定的所述 1 Nx8 10 Nx8 k \0Vk - W According to ^^^ = ^<^<^^ N ^^, the determined 1 Nx8 10 Nx8 k \0V k - W N的取值范围中, 选择一个大于等于 2的正整数作为所述 N的值。 In the range of values of N, a positive integer greater than or equal to 2 is selected as the value of the N. 8、 如权利要求 5所述的装置, 其中, 所述映射单元还设置为:  8. The apparatus according to claim 5, wherein the mapping unit is further configured to: 根据 ITU-T G.709标准定义的异步映射规程 AMP, 或比特同步映射规程 BMP, 或异步通用映射规程 AGMP, 将所述特定编码信号映射到所述 OPUk。  The specific mapping signal is mapped to the OPUk according to the asynchronous mapping procedure AMP defined by the ITU-T G.709 standard, or the bit synchronization mapping procedure BMP, or the asynchronous universal mapping procedure AGMP. 9、 一种将光传送网络 OTN编码信号解映射到 8B/10B编码信号的方法, 其包括:  9. A method of demapping an optical transport network OTN coded signal to an 8B/10B coded signal, comprising: 对接收到的所述 OTN编码信号进行解映射, 获得特定编码信号, 其中, 所述特定编码信号由设定长度的编码块组成, 每个编码块包含比特同步帧头 信息, 且所述特定编码信号的速率不高于承载所述特定编码信号的 OPUk的 速率;  Performing demapping on the received OTN coded signal to obtain a specific coded signal, where the specific coded signal is composed of coded blocks of a set length, each coded block includes bit synchronization frame header information, and the specific coded The rate of the signal is not higher than the rate of the OPUk carrying the particular encoded signal; 对获得的特定编码信号进行解码, 获得业务码码流; 以及  Decoding the obtained specific coded signal to obtain a service code stream; 将获得的业务码码流进行 8B/10B编码, 获得所述 8B/10B编码信号。  The obtained service code stream is subjected to 8B/10B encoding to obtain the 8B/10B coded signal. 10、 如权利要求 9所述的方法, 其中, 所述对获得的特定编码信号进行 解码, 获得业务码码流的步骤包括:  10. The method according to claim 9, wherein the step of decoding the obtained specific coded signal to obtain a service code code stream comprises: 在接收到的特定编码信号中, 搜索比特同步帧头信息; 以及  Searching for bit synchronization frame header information in the received specific coded signal; 根据搜索到的比特同步帧头信息 , 获得接收到的特定编码信号中包含的 业务码码流。  And obtaining, according to the searched bit synchronization frame header information, a service code code stream included in the received specific coded signal. 11、 一种接收装置, 其应用在光传送网络 OTN中, 所述接收装置包括: 解映射单元, 其设置为对接收到的 OTN编码信号进行解映射, 获得特定 编码信号, 其中, 所述特定编码信号由设定长度的编码块组成, 每个编码块 包含比特同步帧头信息, 且所述特定编码信号的速率不高于承载所述特定编 码信号的 OPUk的速率; A receiving device, which is applied in an optical transport network OTN, the receiving device comprising: a demapping unit configured to demap the received OTN encoded signal to obtain a specific encoded signal, wherein the specific The encoded signal is composed of coded blocks of a set length, each coded block containing bit synchronization frame header information, and the rate of the specific coded signal is not higher than the rate of OPUk carrying the specific coded signal; 解码单元, 其设置为对获得的特定编码信号进行解码, 获得业务码码流; 以及 a decoding unit configured to decode the obtained specific encoded signal to obtain a service code stream; as well as 编码单元, 其设置为将获得的业务码码流进行 8B/10B 编码, 获得所述 8B/10B编码信号。  And a coding unit configured to perform 8B/10B coding on the obtained service code code stream to obtain the 8B/10B coded signal. 12、 如权利要求 11所述的装置, 其中, 所述解码单元包括:  The device of claim 11, wherein the decoding unit comprises: 搜索子单元, 其设置为在接收到的特定编码信号中, 搜索比特同步帧头 信息; 以及  Searching for a subunit, configured to search for bit synchronization header information in the received specific encoded signal; 获得子单元, 其设置为根据搜索到的比特同步帧头信息, 获得接收到的 特定编码信号中包含的业务码码流。  Obtaining a subunit, configured to obtain a service code code stream included in the received specific coded signal according to the searched bit synchronization frame header information.
PCT/CN2009/075368 2009-09-10 2009-12-07 Encoding/decoding method and apparatus Ceased WO2011029247A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910161981.7 2009-09-10
CN2009101619817A CN101692633B (en) 2009-09-10 2009-09-10 Coding/decoding methods and devices

Publications (1)

Publication Number Publication Date
WO2011029247A1 true WO2011029247A1 (en) 2011-03-17

Family

ID=42081293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/075368 Ceased WO2011029247A1 (en) 2009-09-10 2009-12-07 Encoding/decoding method and apparatus

Country Status (2)

Country Link
CN (1) CN101692633B (en)
WO (1) WO2011029247A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3813281A4 (en) * 2018-08-07 2021-08-25 Huawei Technologies Co., Ltd. CODE BLOCK STREAM RECEIVING METHOD, CODE BLOCK STREAM SENDING METHOD AND COMMUNICATION DEVICE

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579583A (en) * 2015-02-09 2015-04-29 浪潮电子信息产业股份有限公司 Improved method for 8b/10b coding mode
CN106712893B (en) * 2015-07-23 2020-10-09 华为技术有限公司 Method and device for data transmission
CN110830153B (en) 2018-08-07 2021-04-09 华为技术有限公司 Method for receiving code block stream, method for transmitting code block stream and communication device
CN111225301B (en) * 2019-12-27 2021-07-20 广州芯德通信科技股份有限公司 Device and method for mutual conversion between 8B/10B code and 64B/66B code
EP4203354A4 (en) * 2020-09-18 2023-11-22 Huawei Technologies Co., Ltd. ONLINE CODING METHOD AND DEVICE
CN118694475A (en) * 2023-03-21 2024-09-24 中兴通讯股份有限公司 8B/10B coded signal processing method and device, electronic device, and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217334A (en) * 2004-08-11 2008-07-09 华为技术有限公司 Method and device for transmitting low-rate service signal in optical transport network
CN101291179A (en) * 2007-04-17 2008-10-22 华为技术有限公司 Customer signal transmission method in optical transport network and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998054863A1 (en) * 1997-05-27 1998-12-03 Ciena Corporation Span management system for wavelength division multiplexed network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217334A (en) * 2004-08-11 2008-07-09 华为技术有限公司 Method and device for transmitting low-rate service signal in optical transport network
CN101291179A (en) * 2007-04-17 2008-10-22 华为技术有限公司 Customer signal transmission method in optical transport network and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3813281A4 (en) * 2018-08-07 2021-08-25 Huawei Technologies Co., Ltd. CODE BLOCK STREAM RECEIVING METHOD, CODE BLOCK STREAM SENDING METHOD AND COMMUNICATION DEVICE
US11251905B2 (en) 2018-08-07 2022-02-15 Huawei Technologies Co., Ltd. Method for receiving code block stream, method for transmitting code block stream, and communications apparatus

Also Published As

Publication number Publication date
CN101692633B (en) 2012-12-19
CN101692633A (en) 2010-04-07

Similar Documents

Publication Publication Date Title
JP4754646B2 (en) Signal block sequence processing method and signal block sequence processing apparatus
EP1133123B1 (en) 64b/66b decoding, for packetized serial data
WO2011029247A1 (en) Encoding/decoding method and apparatus
EP1133124B1 (en) Coding for packetized serial data
US8199772B2 (en) Systems and methods for synchronous generic framing protocol mapping
US8270433B2 (en) Sending method, receiving and processing method and apparatus for adapting payload bandwidth for data transmission
JP5522547B2 (en) Method and device for realizing data error reporting
WO2009067899A1 (en) A method and device for encoding data and decoding data
JP2003289286A (en) Multiplex converter, demultiplex converter and multiplex transmission system
WO2009003401A1 (en) Method and device for mapping ethernet code blocks to otn for transmission
US20040075594A1 (en) Multiplexing an additional bit stream with a primary bit stream with conversion between qB/rB and xB/yB encoded bit streams
JP2000124868A (en) Communications system
CN110890936B (en) A code block generating method, receiving method and device
JP2011182287A (en) Data transfer device and data transfer system
CN103380584A (en) Adaptor system for an ethernet network
WO2008055441A1 (en) Transmission method and apparatus for fiber channel services and system thereof
JP4741090B2 (en) Data stream transmission method
TWI279091B (en) Multiplexing an additional bit stream with a primary bit stream
US20060193343A1 (en) Apparatus and method for recognizing Frame Check Sequence in Generic Framing Procedure encapsulation mode
JP2012165334A (en) Multiplex transmission apparatus, multiplex transmission method, and computer program
US7953101B2 (en) Encoding fibre channel over ethernet transport
JP3707608B2 (en) Channel multiplexing transmission system and its transmission system and reception system
CN115086440B (en) Method and system for mutual conversion between Ethernet data primary group data and secondary group data
EP4664915A1 (en) Data processing method and related device
CN103763057B (en) Method and device for conversion between EOP and EOS

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: 09849123

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: 09849123

Country of ref document: EP

Kind code of ref document: A1