CN101938454A - A mapping device and method for an optical transmission data unit - Google Patents

A mapping device and method for an optical transmission data unit Download PDF

Info

Publication number
CN101938454A
CN101938454A CN2009100886030A CN200910088603A CN101938454A CN 101938454 A CN101938454 A CN 101938454A CN 2009100886030 A CN2009100886030 A CN 2009100886030A CN 200910088603 A CN200910088603 A CN 200910088603A CN 101938454 A CN101938454 A CN 101938454A
Authority
CN
China
Prior art keywords
data
fifo
oduk
address
tfi
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
CN2009100886030A
Other languages
Chinese (zh)
Other versions
CN101938454B (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.)
Yongtai County State Owned Asset Management Co
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
Priority to CN 200910088603 priority Critical patent/CN101938454B/en
Publication of CN101938454A publication Critical patent/CN101938454A/en
Application granted granted Critical
Publication of CN101938454B publication Critical patent/CN101938454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a mapping device for optical transport data units, which comprises a first-in first-out (FIFO) cache and a data assembly and output module, wherein the FIFO cache is used for reading optical data unit (ODUk) data; and the data assembly and output module is used for reassembling the ODUk data in the FIFO cache, and writing the reassembled ODUk data into a backboard bus interface standard (TFI-5) bus. The invention also provides a mapping method for the optical transport data units. Through the device and the method, the ODUk data can be mapped onto the TFI-5 bus.

Description

一种光传送数据单元的映射装置和方法 A mapping device and method for an optical transmission data unit

技术领域technical field

本发明涉及光传送领域,特别是指一种光传送数据单元的映射装置和方法。The invention relates to the field of optical transmission, in particular to a mapping device and method for an optical transmission data unit.

背景技术Background technique

随着通信技术的飞速发展,通信网络所承载的数据业务量急剧增长,特别是宽带、IPTV、视频等数据业务的飞速发展,对运营商的传送网络提出了新的要求。传送网络要能够提供适应这种数据增长的海量带宽,更重要的是传送网络要能够进行快速灵活的业务调度,提供完善便捷的网络维护管理、如操作管理维护(OAM,Operation Administration and Maintenance)功能,以适应数据业务的需求。With the rapid development of communication technology, the amount of data services carried by communication networks has increased rapidly, especially the rapid development of data services such as broadband, IPTV, and video, which puts forward new requirements for operators' transmission networks. The transmission network must be able to provide massive bandwidth to adapt to this kind of data growth, and more importantly, the transmission network must be able to perform fast and flexible business scheduling, and provide comprehensive and convenient network maintenance and management, such as OAM (Operation Administration and Maintenance) functions , to meet the needs of data services.

光传送网(OTN,Optical Transport Network)是国际电信联盟远程通信标准化组(ITU-T,ITU Telecommunication Standardization Sector)制定的光通信骨干传送网络标准,OTN的出现给传送网络的发展带来了新的契机。与同步数字系列(SDH,Synchronous Digital Hierarchy)相比,OTN具有较强的组网能力、具备良好的可扩展性、支持多种上层业务或协议、对客户信号进行完全透明的传输、提供多级串联连接监视功能和具有更强的前向纠错能力;同时OTN还能够提供与波分复用(WDM,Wavelength Division Multiplexing)同样高的带宽。因此,OTN将成为下一代传送网络,特别是骨干层的主要组网技术。Optical Transport Network (OTN, Optical Transport Network) is an optical communication backbone transport network standard formulated by the International Telecommunication Union Telecommunication Standardization Sector (ITU-T, ITU Telecommunications Standardization Sector). The emergence of OTN has brought new challenges to the development of transport networks. opportunity. Compared with Synchronous Digital Hierarchy (SDH, Synchronous Digital Hierarchy), OTN has strong networking capabilities, good scalability, supports multiple upper-layer services or protocols, fully transparent transmission of customer signals, and provides multi-level Serial connection monitoring function and stronger forward error correction capability; at the same time, OTN can also provide the same high bandwidth as Wavelength Division Multiplexing (WDM, Wavelength Division Multiplexing). Therefore, OTN will become the main networking technology of the next generation transmission network, especially the backbone layer.

TFI-5(TDM Fabric to Framer Interface-5)是由光联网互联论坛(OIF,OpticalInternetworking Forum)制定的一种类似于同步光纤网(SONET,SynchronousOptical Network)/SDH的背板总线接口标准,用来连接各种业务的成帧器和时分复用和复用器(TDM,Time Division Multiplex and Multiplexer)交叉设备,TFI-5支持SONET/SDH、OTN等协议的业务信号。TFI-5 (TDM Fabric to Framer Interface-5) is a backplane bus interface standard similar to Synchronous Optical Network (SONET, Synchronous Optical Network)/SDH developed by the Optical Internetworking Forum (OIF, Optical Internetworking Forum). Connect framer and time division multiplexer (TDM, Time Division Multiplex and Multiplexer) crossover devices of various services, TFI-5 supports service signals of protocols such as SONET/SDH and OTN.

OTN中的传送数据在交叉时要映射进TFI-5总线上,交叉设备对TFI-5总线进行交叉,交叉完后再从TFI-5总线上解映射出光网络的传送数据。其中,现有的OIF-TFI-5-01.0协议针对传送数据映射到TFI-5总线提出了一种光传送数据单元的映射思想:将整个映射过程分为两步完成,具体为先将数据从光数据单元(ODUk,Optical Data Unit,k=1,2,3)映射到虚容器C-4-Xc,再从C-4-Xc映射到TFI-5总线。但是,目前还没有一种具体的实施方式来支持和实现上述思想。The transmission data in the OTN needs to be mapped to the TFI-5 bus during crossover, and the crossover device crosses the TFI-5 bus, and then demaps the transmission data of the optical network from the TFI-5 bus after the crossover is completed. Among them, the existing OIF-TFI-5-01.0 protocol proposes a mapping idea of the optical transmission data unit for the mapping of transmission data to the TFI-5 bus: the whole mapping process is divided into two steps to complete, specifically, the data is first transferred from The optical data unit (ODUk, Optical Data Unit, k=1, 2, 3) is mapped to the virtual container C-4-Xc, and then mapped to the TFI-5 bus from C-4-Xc. However, there is currently no specific implementation manner to support and realize the above idea.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种光传送数据单元的映射装置和方法,能够将OTN传送数据映射到TFI-5总线。In view of this, the main purpose of the present invention is to provide an optical transmission data unit mapping device and method, which can map OTN transmission data to a TFI-5 bus.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

本发明提供了一种光传送数据单元的映射装置,该装置包括:先进先出FIFO缓存器和数据组装输出模块,其中,The present invention provides a mapping device for optical transmission data unit, the device includes: a first-in-first-out FIFO buffer and a data assembly output module, wherein,

所述FIFO缓存器,用于读取光数据单元ODUk数据;The FIFO buffer is used to read optical data unit ODUk data;

所述数据组装输出模块,用于对所述FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的所述ODUk数据写入背板总线接口标准TFI-5总线。The data assembly output module is used to reassemble the ODUk data in the FIFO buffer, and write the reassembled ODUk data into the backplane bus interface standard TFI-5 bus.

其中,该装置进一步包括控制模块,用于控制所述FIFO缓存器读取所述ODUk数据;还用于控制所述数据组装输出模块对所述ODUk数据的重新组装,并控制所述数据组装输出模块将所述重新组装后的数据写入所述TFI-5总线。Wherein, the device further includes a control module, which is used to control the FIFO buffer to read the ODUk data; it is also used to control the reassembly of the ODUk data by the data assembly output module, and control the data assembly output The module writes the reassembled data into the TFI-5 bus.

该装置进一步包括:地址设置模块,用于根据需要将所述FIFO缓存器划分为多个FIFO小块,并为所述FIFO小块设置FIFO地址、FIFO写地址和FIFO读地址。The device further includes: an address setting module, configured to divide the FIFO buffer into a plurality of FIFO small blocks as required, and set a FIFO address, a FIFO write address and a FIFO read address for the FIFO small blocks.

所述FIFO缓存器,还用于依据所述FIFO地址和所述FIFO写地址,将所述读取的ODUk数据写入所述FIFO小块;The FIFO buffer is also used to write the read ODUk data into the FIFO small block according to the FIFO address and the FIFO write address;

该装置进一步包括:地址监控模块,用于依据所述FIFO地址和所述FIFO写地址监控所述FIFO缓存器将所述ODUk数据写入所述FIFO小块的状态;并在所述状态发生错误时,通知所述FIFO缓存器立即复位。The device further includes: an address monitoring module, configured to monitor the state of the FIFO buffer writing the ODUk data into the FIFO small block according to the FIFO address and the FIFO write address; and an error occurs in the state , notify the FIFO buffer to reset immediately.

该装置进一步包括数据源模块和计数器,其中,The device further includes a data source module and a counter, wherein,

所述数据源模块,用于为所述数据组装输出模块提供调整字节和固定填充字节;The data source module is used to provide adjustment bytes and fixed filling bytes for the data assembly output module;

所述计数器,用于依据所述TFI-5总线的数据结构计算出当前需要写入所述TFI-5总线的数据;The counter is used to calculate the data that currently needs to be written into the TFI-5 bus according to the data structure of the TFI-5 bus;

相应地,所述数据组装输出模块,还用于依据所述当前需要写入TFI-5总线的数据,从所述FIFO小块中读出所述ODUk数据、或从所述数据源模块中读出所述调整字节或所述固定填充字节,并进行重新组装。Correspondingly, the data assembly output module is also used to read the ODUk data from the FIFO small block or read the ODUk data from the data source module according to the current data that needs to be written into the TFI-5 bus. Output the adjustment byte or the fixed padding byte, and reassemble.

其特征在于,所述数据组装输出模块,还用于依据所述FIFO地址和所述FIFO读地址从所述FIFO小块中读出所述ODUk数据;It is characterized in that the data assembly output module is also used to read the ODUk data from the FIFO block according to the FIFO address and the FIFO read address;

所述地址监控模块,还用于依据所述FIFO地址和所述FIFO读地址监控所述数据组装输出模块从所述FIFO小块中读出所述ODUk数据的状态;并在所述状态发生错误时,通知所述FIFO缓存器立即复位。The address monitoring module is also used to monitor the state of the ODUk data read by the data assembly output module from the FIFO block according to the FIFO address and the FIFO read address; and an error occurs in the state , notify the FIFO buffer to reset immediately.

所述数据组装输出模块,还用于对所述FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的所述ODUk数据写入虚容器C-4-Xc;The data assembly output module is also used to reassemble the ODUk data in the FIFO buffer, and write the reassembled ODUk data into the virtual container C-4-Xc;

相应地,所述FIFO缓存器还用于读取所述C-4-Xc数据。Correspondingly, the FIFO buffer is also used to read the C-4-Xc data.

所述数据组装输出模块,还用于对所述FIFO缓存器中的所述C-4-Xc数据进行重新组装,并将重新组装后的所述C-4-Xc数据写入所述TFI-5总线。The data assembly output module is also used to reassemble the C-4-Xc data in the FIFO buffer, and write the reassembled C-4-Xc data into the TFI- 5 buses.

本发明还提供了一种光传送数据单元的映射方法,该方法包括:The present invention also provides a method for mapping an optical transmission data unit, the method comprising:

FIFO缓存器读取ODUk数据;FIFO buffer reads ODUk data;

数据组装输出模块对所述FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的所述ODUk数据写入TFI-5总线。The data assembly output module reassembles the ODUk data in the FIFO buffer, and writes the reassembled ODUk data into the TFI-5 bus.

该方法进一步包括:The method further includes:

所述数据组装输出模块对所述FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的所述ODUk数据写入C-4-Xc;The data assembly output module reassembles the ODUk data in the FIFO buffer, and writes the reassembled ODUk data into C-4-Xc;

所述FIFO缓存器读取所述C-4-Xc数据;The FIFO buffer reads the C-4-Xc data;

所述数据组装输出模块对所述C-4-Xc数据进行重新组装,并写入所述TFI-5总线。The data assembly output module reassembles the C-4-Xc data and writes it into the TFI-5 bus.

本发明的光传送数据单元的映射装置,通过先进先出(FIFO)缓存器和数据组装输出模块的协调工作,由FIFO缓存器读取ODUk数据;再由数据组装输出模块对FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的ODUk数据写入TFI-5总线,如此可以直接将ODUk数据映射到TFI-5总线上;本发明的光传送数据单元的映射装置,还可以通过FIFO缓存器和数据组装输出模块的协调工作,先将ODUk数据映射到C-4-Xc;再将C-4-Xc数据映射到TFI-5总线上,如此可以间接地将ODUk数据映射到TFI-5总线上。The mapping device of the optical transmission data unit of the present invention reads the ODUk data by the FIFO buffer through the coordinated work of the first-in-first-out (FIFO) buffer and the data assembly output module; The ODUk data is reassembled, and the reassembled ODUk data is written into the TFI-5 bus, so that the ODUk data can be directly mapped to the TFI-5 bus; the mapping device of the optical transmission data unit of the present invention can also pass through the FIFO The coordination of the buffer and the data assembly output module first maps the ODUk data to the C-4-Xc; then maps the C-4-Xc data to the TFI-5 bus, so that the ODUk data can be indirectly mapped to the TFI- 5 on the bus.

附图说明Description of drawings

图1为C-4-17c数据块示意图;Figure 1 is a schematic diagram of the C-4-17c data block;

图2为C-4-17c数据块在TFI-5总线上的时隙分配示意图;Fig. 2 is the time slot allocation schematic diagram of C-4-17c data block on TFI-5 bus line;

图3为本发明光传送数据单元的映射装置结构示意图;3 is a schematic structural diagram of a mapping device for an optical transmission data unit of the present invention;

图4为本发明光传送数据单元实施一的映射装置结构示意图;FIG. 4 is a schematic structural diagram of a mapping device for an implementation 1 of an optical transmission data unit of the present invention;

图5为本发明FIFO缓存器的数据结构示意图;Fig. 5 is the data structure schematic diagram of FIFO register of the present invention;

图6为本发明光传送数据单元实施二的映射装置结构示意图;FIG. 6 is a schematic structural diagram of a mapping device in Embodiment 2 of the optical transmission data unit of the present invention;

图7为本发明光传送数据单元映射方法流程示意图。FIG. 7 is a schematic flowchart of an optical transport data unit mapping method according to the present invention.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。The technical solutions of the present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments.

本发明的光传送数据单元的映射装置可以将数据从ODUk、如ODU1、ODU2直接映射到TFI-5总线;也可以先将数据从ODUk映射到虚容器C-4-Xc、如C-4-17c、C_4_68c,再从C-4-Xc映射到TFI-5总线。The mapping device of the optical transport data unit of the present invention can directly map data from ODUk, such as ODU1, ODU2 to the TFI-5 bus; it can also first map data from ODUk to virtual container C-4-Xc, such as C-4- 17c, C_4_68c, and then mapped to the TFI-5 bus from C-4-Xc.

其中,ODU1的数据传输速率为2.498775126Gbps,ODU2的数据传输速率为10.037273924Gbps,TFI-5的数据传输速率为2.48832Gbps,则5根TFI-5总线可以容纳4路ODU1或1路ODU2。当将数据从ODUk映射到虚容器C-4-Xc时,根据OIF-TFI-5-01.0协议的规定,可以将ODU1的数据映射到C-4-17c,将ODU2的数据映射到C-4-68c。Among them, the data transmission rate of ODU1 is 2.498775126Gbps, the data transmission rate of ODU2 is 10.037273924Gbps, and the data transmission rate of TFI-5 is 2.48832Gbps, then 5 TFI-5 buses can accommodate 4 channels of ODU1 or 1 channel of ODU2. When mapping data from ODUk to virtual container C-4-Xc, according to the OIF-TFI-5-01.0 agreement, the data of ODU1 can be mapped to C-4-17c, and the data of ODU2 can be mapped to C-4 -68c.

下面以ODU1数据的映射为例,来说明C-4-17c和TFI-5的数据结构。OIF-TFI-5-01.0协议规定,一个C-4-17c数据块中有884个字节,分为17个小块,每小块52个字节,每个小块的第一个字节为调整字节、包含调整字节R、J和负调整机会字节S,后51个字节为数据字节、即用来填充ODU1的有效数据。图1所示为C-4-17c数据块示意图,包含17个小块,共11个R字节和5个J字节,R和J字节在C-4-17c数据块中的填充依据OIF-TFI-5-01.0协议规定的固定原则;D为每小块51个字节的有效数据;需要指出的是,最后一个小块的第一个字节可以填充S字节,也可以填充ODU1的有效数据、即该字节为数据字节;其中,可以依据5个J字节来判断最后一个小块的第一个字节是否为S字节,具体的,J字节的最后一个比特为调整机会比特C,5个J字节的C组成CCCCC,如果CCCCC=00000,则最后一个小块的第一个字节为数据字节;如果CCCCC=11111,则最后一个小块的第一个字节填充S字节。需要指出的是,CCCCC的值遵循多数判决原则,即当5个C的值多数为1时,判定CCCCC=11111,当5个C的值多数为0时,判定CCCCC=00000。The following takes the mapping of ODU1 data as an example to illustrate the data structures of C-4-17c and TFI-5. The OIF-TFI-5-01.0 protocol stipulates that there are 884 bytes in a C-4-17c data block, divided into 17 small blocks, each with 52 bytes, and the first byte of each small block It is an adjustment byte, including adjustment bytes R, J and a negative adjustment opportunity byte S, and the last 51 bytes are data bytes, which are valid data used to fill ODU1. Figure 1 shows a schematic diagram of the C-4-17c data block, which contains 17 small blocks, a total of 11 R bytes and 5 J bytes, and the filling basis of R and J bytes in the C-4-17c data block The fixed principle stipulated in the OIF-TFI-5-01.0 agreement; D is valid data of 51 bytes per small block; it should be pointed out that the first byte of the last small block can be filled with S bytes or The valid data of ODU1, that is, the byte is a data byte; among them, it can be judged based on 5 J bytes whether the first byte of the last small block is S byte, specifically, the last byte of J byte The bit is the adjustment opportunity bit C, 5 J bytes of C form CCCCC, if CCCCC=00000, the first byte of the last small block is a data byte; if CCCCC=11111, the first byte of the last small block One byte fills S bytes. It should be pointed out that the value of CCCCC follows the principle of majority judgment, that is, when the values of five Cs are mostly 1, judge CCCCC=11111, and when the values of five Cs are mostly 0, judge CCCCC=00000.

将ODU1的数据映射C-4-17c后,再将C-4-17c中的数据映射到TFI-5总线。图2所示为C-4-17c数据块在TFI-5总线上的时隙分配示意图,包含5根TFI-5总线,用来容纳4路ODU1,每路ODU1轮流占用TFI-5的一列,如第161列、165列、169列、173列等为第1路ODU1,其中数字填充对应了C-4-17c中有效数据字节的顺序;斜纹填充占用的一列为第2路ODU1、点状填充占用的一列为第3路ODU1、网格填充占用的一列为第4路ODU1。每根TFI-5总线有4320个时隙,每个时隙可以填充一个字节,其中前160个时隙填充开销字节,从第161个时隙到第4320个时隙用来填充C-4-17c的数据。需要指出的是,将1路ODU1对应的C-4-17c数据块的数据按照字节顺序依次写入一列TFI-5中,并且每隔17个时隙空闲出3个时隙,这3个空闲时隙用来填充固定填充字节,如图2中灰色填充的时隙即为空闲时隙。After mapping the data of ODU1 to C-4-17c, map the data in C-4-17c to the TFI-5 bus. Figure 2 is a schematic diagram of the time slot allocation of the C-4-17c data block on the TFI-5 bus, including 5 TFI-5 buses, which are used to accommodate 4 ODU1s, and each ODU1 occupies a column of the TFI-5 in turn. For example, the 161st column, 165th column, 169th column, 173rd column, etc. are the first ODU1, where the number padding corresponds to the sequence of valid data bytes in C-4-17c; the column occupied by the twill padding is the second ODU1, dot The column occupied by the shape fill is the third ODU1, and the column occupied by the grid fill is the fourth ODU1. Each TFI-5 bus has 4320 time slots, and each time slot can be filled with one byte, among which the first 160 time slots are filled with overhead bytes, from the 161st time slot to the 4320th time slot are used to fill C- Data from 4-17c. It should be pointed out that the data of the C-4-17c data block corresponding to 1 ODU1 is written into a column of TFI-5 in byte order, and 3 time slots are free every 17 time slots. Free time slots are used to fill fixed filling bytes, as shown in Figure 2, the time slots filled in gray are free time slots.

需要指出的是,直接将ODUk的数据映射到TFI-5总线上得到的TFI-5数据结构和上述通过C-4-17c将数据映射到TFI-5总线上得到的TFI-5数据结构相同,以ODU1数据的映射为例,两种映射方式得到的TFI-5的数据结构均如图2所示。It should be pointed out that the TFI-5 data structure obtained by directly mapping the ODUk data to the TFI-5 bus is the same as the TFI-5 data structure obtained by mapping the data to the TFI-5 bus through C-4-17c above, Taking the mapping of ODU1 data as an example, the data structures of TFI-5 obtained by the two mapping methods are shown in Figure 2.

为了实现上述ODUk数据的映射,本发明光传送数据单元的映射装置如图3所示,包括:先进先出(FIFO,First Input First Output)缓存器10和数据组装输出模块20,其中,In order to realize the mapping of the above-mentioned ODUk data, the mapping device of the optical transmission data unit of the present invention is as shown in Figure 3, comprising: a first-in-first-out (FIFO, First Input First Output) buffer 10 and a data assembly output module 20, wherein,

FIFO缓存器10,用于读取ODUk数据;FIFO buffer 10, for reading ODUk data;

数据组装输出模块20,用于对FIFO缓存器10中的数据进行重新组装,并将重新组装后的ODUk数据写入TFI-5总线。The data assembly output module 20 is configured to reassemble the data in the FIFO buffer 10, and write the reassembled ODUk data into the TFI-5 bus.

下面结合具体的实施例来说明本发明的装置,如图4所示为本发明光传送数据单元实施一的映射装置,包括:FIFO缓存器10、数据组装输出模块20、地址设置模块30、地址监控模块40、计数器50、数据源模块60和控制模块70,其中,The device of the present invention will be described below in conjunction with specific embodiments. As shown in FIG. Monitoring module 40, counter 50, data source module 60 and control module 70, wherein,

1、FIFO缓存器10用于读取ODUk中的数据。在实际的应用中,需要使用多个FIFO缓存器来同时读取ODUk中的数据,具体的FIFO缓存器数量取决于系统要求的数据输入位宽。该数据输入位宽是指FIFO缓存器10一次可以读取的ODUk数据的比特数,数据输入位宽≤(FIFO数据位宽×FIFO个数),其中FIFO数据位宽为2n,n为正整数。假设系统要求的数据输入位宽为16bit,FIFO数据位宽为23=8bit,则需要FIFO缓存器的个数为2。1. The FIFO buffer 10 is used to read data in the ODUk. In practical applications, multiple FIFO buffers are required to read data in the ODUk at the same time, and the specific number of FIFO buffers depends on the data input bit width required by the system. The data input bit width refers to the number of bits of ODUk data that can be read by the FIFO buffer 10 at one time, and the data input bit width≤(FIFO data bit width×FIFO number), wherein the FIFO data bit width is 2n, and n is positive integer. Assuming that the data input bit width required by the system is 16 bits, and the FIFO data bit width is 2 3 =8 bits, the number of FIFO buffers required is 2.

根据图3的实施例可以看出,FIFO缓存器10读取ODUk中的数据后,需要将数据输出给数据组装输出模块20,因此,本发明将FIFO缓存器10读取ODUk数据称为写入数据、将数据输出给数据组装输出模块20称为读出数据。承接上述FIFO缓存器个数为2的例子,FIFO缓存器10写入ODUk数据时,需要同时启动2个FIFO缓存器;在写入数据时,将ODUk数据按FIFO地址顺序写入FIFO缓存器的1列,如图5所示为本发明FIFO缓存器的数据结构,将一个FIFO缓存器的数据块分为n个FIFO小块、则FIFO缓存器10共有n列,每个FIFO小块的大小为FIFO数据位宽、如8bit;可以通过地址设置模块30为每个FIFO小块设置一个标识地址、即FIFO地址,该地址同时也指示了ODUk数据的写入顺序,如图5中FIFO缓存器1的第1个FIFO小块的FIFO地址为1、FIFO缓存器2的第1个FIFO小块的地址为2,FIFO缓存器1的第2个FIFO小块的FIFO地址为3、FIFO缓存器2第2个FIFO小块的地址为4,以此类推。当系统要求的数据输入位宽为16bit时,FIFO缓存器1和FIFO缓存器2同时写入8bit的ODUk数据,依据FIFO地址,FIFO缓存器1将ODUk第1个8bit的数据写入FIFO地址为1的FIFO小块;FIFO缓存器2将ODUk第2个8bit的数据写入FIFO地址为2的FIFO小块,以此类推,FIFO缓存器10依据FIFO地址写入ODUk数据;其中FIFO缓存器1和FIFO缓存器2可以同时写入数据,也可以依据ODUk数据的顺序写入数据,如FIFO缓存器1写入ODUk第1个8bit数据后,FIFO缓存器2再写入ODUk第2个8bit数据。According to the embodiment of Fig. 3, it can be seen that after the FIFO buffer 10 reads the data in the ODUk, the data needs to be output to the data assembly output module 20, therefore, the present invention refers to the reading of the ODUk data by the FIFO buffer 10 as writing Data, outputting data to the data assembly output module 20 is referred to as read data. Following the above example where the number of FIFO buffers is 2, when FIFO buffer 10 writes ODUk data, two FIFO buffers need to be started at the same time; when writing data, write ODUk data into the FIFO buffer in sequence 1 column, as shown in Figure 5, is the data structure of FIFO buffer of the present invention, the data block of a FIFO buffer is divided into n FIFO fritters, then FIFO buffer 10 has n columns altogether, the size of each FIFO fritter Be FIFO data bit width, such as 8bit; Can set an identification address, i.e. FIFO address, for each FIFO small block by address setting module 30, this address also indicates the writing order of ODUk data simultaneously, as shown in Fig. 5 in FIFO register The FIFO address of the first FIFO small block of 1 is 1, the address of the first FIFO small block of FIFO buffer 2 is 2, the FIFO address of the second FIFO small block of FIFO buffer 1 is 3, and the FIFO buffer 2 The address of the second FIFO block is 4, and so on. When the data input bit width required by the system is 16 bits, FIFO buffer 1 and FIFO buffer 2 write 8-bit ODUk data at the same time. According to the FIFO address, FIFO buffer 1 writes the first 8-bit data of ODUk into the FIFO address. 1 FIFO small block; FIFO buffer 2 writes the second 8bit data of ODUk into the FIFO small block whose FIFO address is 2, and so on, FIFO buffer 10 writes ODUk data according to the FIFO address; among them, FIFO buffer 1 Data can be written simultaneously with FIFO buffer 2, or data can be written in the order of ODUk data. For example, after FIFO buffer 1 writes the first 8-bit data of ODUk, FIFO buffer 2 writes the second 8-bit data of ODUk .

同时,还可以通过地址设置模块30为FIFO缓存器10中的每个FIFO小块设置一个FIFO写地址,较佳地,在初始状态时、即还没有写入数据时,设置每个FIFO小块的FIFO写地址都为0,在第一次向当前FIFO小块写入数据时,将其FIFO写地址加1,则当前FIFO写地址为1;第二次向当前FIFO小块写入数据时,在当前FIFO写地址的基础上再加1,则当前FIFO写地址为2,以此类推;由此可以看出,相邻的两个FIFO写地址可以是相等的,或者前一个FIFO写地址比后一个FIFO写地址大1,如图5所示,FIFO地址为1和2的两个FIFO小块为相邻的FIFO小块,当FIFO缓存器1和FIFO缓存器2同时写入数据时,上述两个FIFO小块的FIFO写地址是相等的,并且在写入数据后,两者的FIFO写地址同时加1;当FIFO缓存器1写入数据后,FIFO缓存器2才开始写入数据,此时FIFO地址为1的FIFO小块的FIFO写地址比FIFO地址为2的FIFO小块的FIFO写地址大1。At the same time, a FIFO write address can also be set for each FIFO small block in the FIFO buffer 10 through the address setting module 30. Preferably, when the initial state, that is, when no data is written, each FIFO small block is set The FIFO write address of each is 0. When writing data to the current FIFO small block for the first time, add 1 to the FIFO write address, then the current FIFO write address is 1; when writing data to the current FIFO small block for the second time , add 1 to the current FIFO write address, then the current FIFO write address is 2, and so on; it can be seen that two adjacent FIFO write addresses can be equal, or the previous FIFO write address 1 larger than the last FIFO write address, as shown in Figure 5, the two FIFO blocks with FIFO addresses 1 and 2 are adjacent FIFO blocks, when FIFO buffer 1 and FIFO buffer 2 write data at the same time , the FIFO write addresses of the above two FIFO small blocks are equal, and after the data is written, the FIFO write addresses of the two are increased by 1 at the same time; when the data is written in the FIFO buffer 1, the FIFO buffer 2 starts to write Data, at this time, the FIFO write address of the FIFO small block whose FIFO address is 1 is 1 larger than the FIFO write address of the FIFO small block whose FIFO address is 2.

为了防止FIFO缓存器10在写入数据时发生写地址错误、即将数据写入错误的FIFO小块,较佳地,图4所示的装置还可以包括一个地址监控模块40,依据上述设置的FIFO缓存器10中FIFO小块的FIFO地址和FIFO写地址来监控FIFO缓存器10写入数据的状态,当发生FIFO写地址错误时,通知FIFO缓存器10立即复位,即回到FIFO写地址发生错误之前的状态,FIFO缓存器10继续写入数据。In order to prevent the FIFO buffer 10 from writing address errors when writing data, that is, to write data into wrong FIFO small blocks, preferably, the device shown in Figure 4 can also include an address monitoring module 40, according to the FIFO set above The FIFO address and FIFO write address of the FIFO small block in the buffer 10 are used to monitor the state of the data written in the FIFO buffer 10. When an error occurs in the FIFO write address, the FIFO buffer 10 is notified to reset immediately, that is, an error occurs in the FIFO write address In the previous state, the FIFO buffer 10 continues to write data.

2、数据组装输出模块20对FIFO缓存器10中的数据进行重新组装,并将重新组装后的数据写入TFI-5总线。2. The data assembly output module 20 reassembles the data in the FIFO buffer 10, and writes the reassembled data into the TFI-5 bus.

由于TFI-5总线的数据结构中含有ODUk数据、固定填充字节和调整字节,因此数据组装输出模块20需要选择当前可以从哪个数据源读出数据,所述的数据源即为FIFO缓存器10中的ODUk数据、固定填充字节和调整字节,较佳地,本发明的装置还可以包括一个计数器50,在进行数据源的选择时,可以根据TFI-5总线的数据结构和计数器50通过计算得到当前需要向TFI-5时隙写入的数据。由图1和图2所示的实施例可知,对于具体的ODUk类型、如ODU1,TFI-5总线的数据结构是固定的,此处不再赘述,因此,通过计数器50就可以计算出当前TFI-5时隙需要写入的数据。Since the data structure of the TFI-5 bus contains ODUk data, fixed filling bytes and adjustment bytes, the data assembly output module 20 needs to select which data source can currently read data from, and the data source is the FIFO buffer ODUk data in 10, fixed filling byte and adjustment byte, preferably, the device of the present invention can also comprise a counter 50, when carrying out the selection of data source, can according to the data structure of TFI-5 bus line and counter 50 The current data that needs to be written to the TFI-5 time slot is obtained through calculation. As can be seen from the embodiments shown in Figures 1 and 2, for a specific ODUk type, such as ODU1, the data structure of the TFI-5 bus is fixed and will not be described here. Therefore, the current TFI can be calculated through the counter 50 -5 slots need to write data.

根据计数器50的计算,若当前需要向TFI-5时隙填充ODUk数据时,数据组装输出模块20从FIFO缓存器10读出数据,并将该数据写入TFI-5当前的时隙。具体的,可以依据FIFO缓存器10中FIFO小块的FIFO地址和FIFO读地址来读出数据。其中,可以通过地址设置模块30为FIFO缓存器10中的FIFO小块设置FIFO读地址,较佳地,可以设置所有FIFO小块的FIFO读地址初始值为0,当第一次从当前FIFO小块读取数据时,将其FIFO读地址加1,则FIFO读地址变更为1;第二次从当前FIFO小块读取数据时,将其FIFO读地址再加1,则FIFO读地址变更为2,以此类推。假设某一个FIFO小块的FIFO读地址为x,依据FIFO地址,确认其相邻的前一个FIFO小块的FIFO读地址为x+1时,则从FIFO读地址为x的FIFO小块中读出数据。当数据组装输出模块20依据FIFO缓存器10中FIFO小块的FIFO地址和FIFO读地址读出所需的数据后,FIFO缓存器10将该数据从对应的FIFO小块中删除。同时地址监控模块40还可以监控FIFO小块的FIFO读地址,当FIFO读地址发生错误时,如数据组装输出模块20连续两次从一个FIFO小块中读出数据、或者没有按照FIFO地址从FIFO小块中读出数据,则地址监控模块40通知FIFO缓存器10立即复位,同时数据组装输出模块20重新读出FIFO读地址发生错误的数据。According to the calculation of the counter 50, if the ODUk data needs to be filled into the TFI-5 time slot currently, the data assembly output module 20 reads the data from the FIFO buffer 10, and writes the data into the current time slot of the TFI-5. Specifically, the data can be read out according to the FIFO address of the FIFO block in the FIFO buffer 10 and the FIFO read address. Wherein, the FIFO read address can be set for the FIFO small block in the FIFO buffer 10 by the address setting module 30, preferably, the FIFO read address initial value of all FIFO small blocks can be set to 0, when the first time from the current FIFO small block When reading data from a block, add 1 to its FIFO read address, then the FIFO read address will be changed to 1; 2, and so on. Assuming that the FIFO read address of a certain FIFO small block is x, according to the FIFO address, when confirming that the FIFO read address of the previous adjacent FIFO small block is x+1, then read from the FIFO small block whose FIFO read address is x out the data. When the data assembly output module 20 reads the required data according to the FIFO address and FIFO read address of the FIFO block in the FIFO buffer 10, the FIFO buffer 10 deletes the data from the corresponding FIFO block. Simultaneously, the address monitoring module 40 can also monitor the FIFO read address of the FIFO small block. When an error occurs in the FIFO read address, as the data assembly output module 20 reads data from a FIFO small block twice in a row, or does not read the data from the FIFO according to the FIFO address. When the data is read out from the small block, the address monitoring module 40 notifies the FIFO buffer 10 to reset immediately, and at the same time, the data assembly output module 20 re-reads the data whose FIFO read address is wrong.

需要指出的是,由于TFI-5的数据传输速率和ODUk的数据传输速率不同,因此数据组装输出模块20从FIFO缓存器10一次可以读出的数据与FIFO缓存器10一次可以写入的数据位宽可能不同,假设系统设定的FIFO缓存器10数据输出位宽为40bit,FIFO数据位宽为8bit,则数据组装输出模块20可以同时从5个FIFO缓存器10中FIFO地址连续的FIFO小块中读出数据。It should be pointed out that since the data transmission rate of TFI-5 is different from that of ODUk, the data that the data assembly output module 20 can read from the FIFO buffer 10 at one time is different from the data bits that the FIFO buffer 10 can write at one time. The width may be different, assuming that the FIFO buffer 10 data output bit width set by the system is 40 bits, and the FIFO data bit width is 8 bits, then the data assembly output module 20 can simultaneously obtain FIFO small blocks with continuous FIFO addresses in five FIFO buffers 10 read data from.

根据计数器50的计算,若当前需要向TFI-5时隙填充固定填充字节时,数据组装输出模块20停止读取ODUk数据、或停止读取调整字节,而是读取固定填充字节,并写入TFI-5当前的时隙。According to the calculation of the counter 50, if the current TFI-5 time slot needs to be filled with fixed filling bytes, the data assembly output module 20 stops reading the ODUk data or stops reading the adjustment bytes, but reads the fixed filling bytes, And write the current time slot of TFI-5.

根据计数器50的计算,若当前需要向TFI-5时隙填充调整字节时、如R、J或S字节时,数据组装输出模块20停止读取ODUk数据、或停止读取固定填充字节,而是读取R、J或S字节,并写入TFI-5当前的时隙。具体的R、J或S字节的选择为:R、J字节在TFI-5时隙中有固定的位置,而S字节可以依据J字节的最后一个比特C来判定,如图1所示的实施例中关于S字节的判定,此处不再赘述。According to the calculation of the counter 50, if the current needs to fill the adjustment byte to the TFI-5 time slot, such as R, J or S byte, the data assembly output module 20 stops reading ODUk data, or stops reading the fixed filling byte , instead read the R, J or S byte and write to the current slot of the TFI-5. The specific choice of R, J or S byte is: R, J byte has a fixed position in the TFI-5 time slot, and S byte can be determined according to the last bit C of J byte, as shown in Figure 1 The determination of the S byte in the illustrated embodiment will not be repeated here.

针对上述固定填充字节和调整字节,本发明的装置还可以包含一个数据源模块60,用于为数据组装输出模块20提供固定填充字节和调整字节。Regarding the above-mentioned fixed stuffing bytes and adjustment bytes, the device of the present invention may further include a data source module 60 for providing the data assembly output module 20 with fixed stuffing bytes and adjustment bytes.

基于上述FIFO缓存器10、数据组装输出模块20、地址设置模块30、地址监控模块40、计数器50和数据源模块60之间的协调工作就可以直接将ODUk数据映射到TFI-5总线上。ODUk data can be directly mapped to the TFI-5 bus based on the coordination among the FIFO buffer 10, data assembly output module 20, address setting module 30, address monitoring module 40, counter 50 and data source module 60.

3、为了保证FIFO缓存器10和数据组装输出模块20正常且高效的工作,本发明的装置还可以包含一个控制模块70,用于控制FIFO缓存器10从ODUk中读取数据;还用于控制数据组装输出模块20对FIFO缓存器10中的数据进行重新组装。如,控制模块70可以根据FIFO缓存器10的空满状态、和FIFO地址来产生FIFO读、写使能信号。由于FIFO缓存器10的数据输入位宽和数据输出位宽不同,因此FIFO缓存器10的数据输入和输出不平衡,当FIFO缓存器10数据块存储的数据快满时,控制模块70产生FIFO读、写使能信号,加快FIFO缓存器10中数据的读出、减慢数据的写入;当FIFO缓存器10快空时,控制模块70产生FIFO读、写使能信号,减慢数据的读出、加快数据的写入,使FIFO缓存器10维持在一个平衡的状态,保持了FIFO缓存器10的稳定性。3. In order to ensure the normal and efficient work of the FIFO buffer 10 and the data assembly output module 20, the device of the present invention may also include a control module 70 for controlling the FIFO buffer 10 to read data from the ODUk; The data assembly output module 20 reassembles the data in the FIFO buffer 10 . For example, the control module 70 can generate the FIFO read and write enable signals according to the fullness status of the FIFO buffer 10 and the FIFO address. Since the data input bit width of the FIFO buffer 10 is different from the data output bit width, the data input and output of the FIFO buffer 10 are unbalanced. When the data stored in the FIFO buffer 10 data blocks is almost full, the control module 70 generates a FIFO read , write enable signal, speed up the readout of data in the FIFO buffer 10, slow down the writing of data; when the FIFO buffer 10 was fast empty, the control module 70 generates FIFO read and write enable signals, slow down the reading of data output and speed up the writing of data, maintain the FIFO buffer 10 in a balanced state, and maintain the stability of the FIFO buffer 10.

同时,FIFO读、写使能信号还需要依据FIFO缓存器10中FIFO小块的FIFO地址、FIFO写地址和FIFO读地址来产生,如,根据FIFO地址和FIFO写地址可以确定当前可以写入数据的FIFO小块的FIFO地址;根据FIFO地址和FIFO读地址可以确定当前可以读出数据的FIFO小块的FIFO地址。Simultaneously, FIFO read, write enabling signal also needs to produce according to the FIFO address, FIFO write address and FIFO read address of FIFO small block in FIFO buffer 10, as, can determine current can write data according to FIFO address and FIFO write address The FIFO address of the FIFO small block; the FIFO address of the FIFO small block that can currently read data can be determined according to the FIFO address and the FIFO read address.

另外,控制模块70还可以根据TFI-5总线的数据结构和计数器50,控制数据组装输出模块20选择数据源,并控制数据组装输出模块20将选择的数据源写入TFI-5总线,如,根据当前需要选择的数据源,控制模块70控制数据组装输出模块20从数据源模块60中相应的数据源读出数据,并写入TFI-5总线相应的时隙。In addition, the control module 70 can also control the data assembly output module 20 to select a data source according to the data structure of the TFI-5 bus and the counter 50, and control the data assembly output module 20 to write the selected data source into the TFI-5 bus, such as, According to the currently selected data source, the control module 70 controls the data assembly output module 20 to read data from the corresponding data source in the data source module 60, and write the data into the corresponding time slot of the TFI-5 bus.

图6所示为本发明光传送数据单元实施例二的映射装置结构,基于该实施例的装置,可以先将数据从ODUk映射到C-4-Xc,再从C-4-Xc映射到TFI-5总线,该装置包括两部分ODUk_TO_C-4-Xc、即将数据从ODUk映射到C-4-Xc部分的装置和C-4-Xc_TO_TFI-5、即将数据从C-4-Xc映射到TFI-5总线部分的装置。从图6可知,ODUk_TO_C-4-Xc和C-4-Xc_TO_TFI-5部分的装置结构相同,并且分别与图4所示装置的结构相同,其中各个模块的协调工作原理同图4所示的实施例,此处不再赘述。图6与图4所示的实施例的不同有以下几点:Figure 6 shows the structure of the mapping device of Embodiment 2 of the optical transmission data unit of the present invention. Based on the device of this embodiment, data can be mapped from ODUk to C-4-Xc first, and then from C-4-Xc to TFI -5 bus, the device includes two parts ODUk_TO_C-4-Xc, the device that maps data from ODUk to C-4-Xc part and C-4-Xc_TO_TFI-5, that maps data from C-4-Xc to TFI- 5 bus part of the device. It can be seen from Figure 6 that the device structures of ODUk_TO_C-4-Xc and C-4-Xc_TO_TFI-5 are the same, and are the same as those of the device shown in Figure 4, and the coordinated working principle of each module is the same as the implementation shown in Figure 4 example, which will not be repeated here. The difference between Fig. 6 and the embodiment shown in Fig. 4 has the following points:

1、ODUk_TO_C-4-Xc部分的装置中,数据组装输出模块20将从FIFO缓存器10读出的ODUk数据依据C-4-Xc的数据结构写入C-4-Xc中;同时C-4-Xc_TO_TFI-5部分的装置中,FIFO缓存器10需要写入的ODUk数据是从C-4-Xc中读取的,即ODUk_TO_C-4-Xc部分的数据组装输出模块20将ODUk数据通过C-4-Xc提供给C-4-Xc_TO_TFI-5部分的FIFO缓存器10;1. In the device of the ODUk_TO_C-4-Xc part, the data assembly output module 20 writes the ODUk data read from the FIFO buffer 10 into the C-4-Xc according to the data structure of C-4-Xc; at the same time, C-4 -In the device of the Xc_TO_TFI-5 part, the ODUk data to be written into the FIFO buffer 10 is read from the C-4-Xc, that is, the data assembly output module 20 of the ODUk_TO_C-4-Xc part passes the ODUk data through the C- 4-Xc provides the FIFO buffer 10 of the C-4-Xc_TO_TFI-5 part;

2、ODUk_TO_C-4-Xc部分的装置中,FIFO缓存器10和数据源模块60为数据组装输出模块20提供的数据源分别为ODUk数据和调整字节;C-4-Xc_TO_TFI-5部分的装置中,数据源模块60为数据组装输出模块20提供的数据源仅为固定填充字节,而FIFO缓存器10为数据组装输出模块20提供的数据为C-4-Xc数据、即ODUk数据和调整字节;2. In the device of the ODUk_TO_C-4-Xc part, the data sources provided by the FIFO buffer 10 and the data source module 60 for the data assembly output module 20 are ODUk data and adjustment bytes respectively; the device of the C-4-Xc_TO_TFI-5 part Among them, the data source provided by the data source module 60 for the data assembly output module 20 is only fixed padding bytes, and the data provided by the FIFO buffer 10 for the data assembly output module 20 is C-4-Xc data, that is, ODUk data and adjustment byte;

3、ODUk_TO_C-4-Xc部分的装置中,计数器50需要依据C-4-Xc的数据结构计算出当前需要向C-4-Xc中写入的ODUk数据和调整字节;C-4-Xc_TO_TFI-5部分的装置中,计数器50需要依据TFI-5的数据结构计算出当前需要向TFI-5总线写入的C-4-Xc数据和固定填充字节;3. In the device of the ODUk_TO_C-4-Xc part, the counter 50 needs to calculate the ODUk data and adjustment bytes that need to be written into the C-4-Xc according to the data structure of the C-4-Xc; C-4-Xc_TO_TFI -In the device of part 5, the counter 50 needs to calculate the C-4-Xc data and fixed filling bytes that need to be written to the TFI-5 bus according to the data structure of TFI-5;

4、ODUk_TO_C-4-Xc部分的FIFO缓存器10与C-4-Xc_TO_TFI-5部分的FIFO缓存器10的个数、或者FIFO数据位宽可能不同。如系统设定ODUk_TO_C-4-Xc部分的装置中FIFO缓存器10的数据输入位宽为16bit,FIFO数据位宽为8bit,则FIFO缓存器个数为2,并且FIFO缓存器10向数据组装输出模块20输出的位宽为16bit,即数据组装输出模块20向C-4-Xc_TO_TFI-5部分的FIFO缓存器10的输出位宽为16比特;若系统设定C-4-Xc_TO_TFI-5部分的FIFO缓存器10的数据输出位宽为40比特,则该部分的FIFO缓存器10需要采用3个FIFO数据位宽为16bit的FIFO缓存器。4. The number of FIFO buffers 10 in the ODUk_TO_C-4-Xc part and the FIFO buffers 10 in the C-4-Xc_TO_TFI-5 part may be different, or the FIFO data bit width may be different. If the system sets the data input bit width of the FIFO buffer 10 in the device of the ODUk_TO_C-4-Xc part to 16 bits, and the FIFO data bit width is 8 bits, then the number of FIFO buffers is 2, and the FIFO buffer 10 outputs to the data assembly The output bit width of module 20 is 16 bits, that is, the output bit width of data assembly output module 20 to the FIFO buffer 10 of C-4-Xc_TO_TFI-5 part is 16 bits; The data output bit width of the FIFO buffer 10 is 40 bits, so the FIFO buffer 10 of this part needs to adopt three FIFO buffers with a FIFO data bit width of 16 bits.

为了实现上述映射装置,本发明还提供了一种映射方法,如图7所示,包括:一种光传送数据单元的映射方法,该方法包括:In order to realize the above-mentioned mapping device, the present invention also provides a mapping method, as shown in FIG. 7 , including: a mapping method of an optical transmission data unit, the method including:

步骤701,FIFO缓存器读取ODUk数据。In step 701, the FIFO buffer reads ODUk data.

FIFO缓存器需要根据系统预设的数据输入位宽读取ODUk数据,并将该ODUk数据提供给数据组装输出模块。The FIFO buffer needs to read ODUk data according to the data input bit width preset by the system, and provide the ODUk data to the data assembly output module.

步骤702,数据组装输出模块对FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的ODUk数据写入TFI-5总线。Step 702, the data assembly output module reassembles the ODUk data in the FIFO buffer, and writes the reassembled ODUk data into the TFI-5 bus.

数据组装输出模块对FIFO缓存器中的ODUk数据进行重新组装为:系统预设的计数器依据TFI-5总线的数据结构,计算出当前需要写入TFI-5总线的数据、如ODUk数据、调整字节、或固定填充字节,然后数据组装输出模块读取相应的数据,并写入TFI-5总线。The data assembly output module reassembles the ODUk data in the FIFO buffer as follows: the counter preset by the system calculates the data that needs to be written into the TFI-5 bus, such as ODUk data and adjustment words, based on the data structure of the TFI-5 bus. section, or fixed padding bytes, and then the data assembly output module reads the corresponding data and writes it into the TFI-5 bus.

另外,本发明的光传送数据单元的映射方法还可以先将ODUk数据映射到C-4-Xc,再从C-4-Xc映射到TFI-5总线,具体为:基于图7的实施例,数据组装输出模块对FIFO缓存器中的ODUk数据进行重新组装,并将重新组装后的ODUk数据先写入C-4-Xc;然后,FIFO缓存器读取C-4-Xc数据;数据组装输出模块对FIFO缓存器中的C-4-Xc数据进行重新组装,并写入TFI-5总线,由此完成ODUk数据到TFI-5总线的映射。In addition, the ODUk mapping method of the present invention can also first map ODUk data to C-4-Xc, and then map from C-4-Xc to TFI-5 bus, specifically: based on the embodiment of Figure 7, The data assembly output module reassembles the ODUk data in the FIFO buffer, and writes the reassembled ODUk data into C-4-Xc first; then, the FIFO buffer reads the C-4-Xc data; the data assembly output The module reassembles the C-4-Xc data in the FIFO buffer and writes it into the TFI-5 bus, thus completing the mapping of the ODUk data to the TFI-5 bus.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (10)

1. a light transmits the mapping device of data cell, it is characterized in that this device comprises: fifo fifo buffer and data assembling output module, wherein,
Described FIFO buffer is used to read light data cell ODUk data;
Described data assembling output module be used for the ODUk data of described FIFO buffer are re-assemblied, and the described ODUk data after will re-assemblying writes core bus interface standard TFI-5 bus.
2. transmit the mapping device of data cell according to the described light of claim 1, it is characterized in that this device further comprises control module, be used to control described FIFO buffer and read described ODUk data; Also be used to control described data assembling output module to the re-assemblying of described ODUk data, and control the data of described data assembling output module after and write described TFI-5 bus described re-assemblying.
3. transmit the mapping device of data cell according to the described light of claim 1, it is characterized in that, this device further comprises: the address setting module, be used for as required described FIFO buffer being divided into a plurality of FIFO fritters, and read the address for described FIFO fritter is provided with fifo address, FIFO write address and FIFO.
4. transmit the mapping device of data cell according to the described light of claim 3, it is characterized in that, described FIFO buffer also is used for according to described fifo address and described FIFO write address the described ODUk data that read being write described FIFO fritter;
This device further comprises: the address monitoring module is used for monitoring the state that described FIFO buffer writes described ODUk data described FIFO fritter according to described fifo address and described FIFO write address; And when described state makes a mistake, notify described FIFO buffer to reset immediately.
5. transmit the mapping device of data cell according to the described light of claim 3, it is characterized in that this device further comprises data source module sum counter, wherein,
Described data source module is used to described data assembling output module to provide to adjust byte and fixing byte of padding;
Described counter is used for calculating the data that current needs write described TFI-5 bus according to the data structure of described TFI-5 bus;
Correspondingly, described data assembling output module, also be used for writing the data of TFI-5 bus, from described FIFO fritter, read described ODUk data or from described data source module, read described adjustment byte or described fixedly byte of padding, and re-assembly according to described current needs.
6. according to the mapping device of claim 3 or 4 or 5 described light transmission data cells, it is characterized in that described data assembling output module also is used for reading the address according to described fifo address and described FIFO and reads described ODUk data from described FIFO fritter;
Described address monitoring module also is used for reading the address according to described fifo address and described FIFO and monitors described data assembling output module and read the state of described ODUk data from described FIFO fritter; And when described state makes a mistake, notify described FIFO buffer to reset immediately.
7. transmit the mapping device of data cell according to the described light of claim 1, it is characterized in that, described data assembling output module also be used for the ODUk data of described FIFO buffer are re-assemblied, and the described ODUk data after will re-assemblying writes virtual container C-4-Xc;
Correspondingly, described FIFO buffer also is used to read described C-4-Xc data.
8. transmit the mapping device of data cell according to the described light of claim 7, it is characterized in that,
Described data assembling output module also be used for the described C-4-Xc data of described FIFO buffer are re-assemblied, and the described C-4-Xc data after will re-assemblying writes described TFI-5 bus.
9. a light transmits the mapping method of data cell, it is characterized in that this method comprises:
The FIFO buffer reads the ODUk data;
Data assembling output module re-assemblies the ODUk data in the described FIFO buffer, and the described ODUk data after will re-assemblying write the TFI-5 bus.
10. transmit the mapping method of data cell according to the described light of claim 9, it is characterized in that this method further comprises:
Described data assembling output module re-assemblies the ODUk data in the described FIFO buffer, and the described ODUk data after will re-assemblying write C-4-Xc;
Described FIFO buffer reads described C-4-Xc data;
Described data assembling output module re-assemblies described C-4-Xc data, and writes described TFI-5 bus.
CN 200910088603 2009-06-30 2009-06-30 Mapping device and method for optical transport data units Active CN101938454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910088603 CN101938454B (en) 2009-06-30 2009-06-30 Mapping device and method for optical transport data units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910088603 CN101938454B (en) 2009-06-30 2009-06-30 Mapping device and method for optical transport data units

Publications (2)

Publication Number Publication Date
CN101938454A true CN101938454A (en) 2011-01-05
CN101938454B CN101938454B (en) 2013-03-27

Family

ID=43391589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910088603 Active CN101938454B (en) 2009-06-30 2009-06-30 Mapping device and method for optical transport data units

Country Status (1)

Country Link
CN (1) CN101938454B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012171160A1 (en) * 2011-06-13 2012-12-20 华为技术有限公司 Method and backplane for bit width conversion from time division to space division of optical transport network backplane
CN102882627A (en) * 2012-09-13 2013-01-16 华为技术有限公司 Methods and related devices for mapping and demapping service data
WO2020056927A1 (en) * 2018-09-21 2020-03-26 烽火通信科技股份有限公司 Method and system for performing low-latency gmp mapping using adaptive control of state machine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098298A (en) * 2006-06-29 2008-01-02 北京邮电大学 Burst packet transmission system and method based on optical burst switching network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098298A (en) * 2006-06-29 2008-01-02 北京邮电大学 Burst packet transmission system and method based on optical burst switching network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012171160A1 (en) * 2011-06-13 2012-12-20 华为技术有限公司 Method and backplane for bit width conversion from time division to space division of optical transport network backplane
CN102882627A (en) * 2012-09-13 2013-01-16 华为技术有限公司 Methods and related devices for mapping and demapping service data
CN102882627B (en) * 2012-09-13 2015-05-13 华为技术有限公司 Methods and related devices for mapping and demapping service data
WO2020056927A1 (en) * 2018-09-21 2020-03-26 烽火通信科技股份有限公司 Method and system for performing low-latency gmp mapping using adaptive control of state machine

Also Published As

Publication number Publication date
CN101938454B (en) 2013-03-27

Similar Documents

Publication Publication Date Title
CN111201728B (en) Data transmission method and optical network equipment in optical network
JP4899708B2 (en) Transmission equipment
US20040156325A1 (en) Optical transmission network with asynchronous mapping and demapping and digital wrapper frame for the same
US11683739B2 (en) Radio link aggregation
US7957429B2 (en) Transmission system
CN101267386A (en) Method, device and system for transmitting multiple independent Ethernet data
CN1354927A (en) Method and device for converting virtually concatenated data streams into contiguously concatenated data streams
CN101146091A (en) Multi-channel data output method and system
WO2008077280A1 (en) A method and device for supporting optical transmission network service dispatch in optical synchronization network
US20100265969A1 (en) System and Method for Multiplexing PDH and Packet Data
Choy Virtual concatenation tutorial: enhancing SONET/SDH networks for data transport
CN101384093B (en) Service data mapping method and device, composite mapping method
ITMI20001731A1 (en) VIRTUAL CONCATENATION OF OPTICAL CHANNELS IN WDM NETWORKS
JP4485348B2 (en) System and device for increasing LAN service unit bandwidth
CN101938454A (en) A mapping device and method for an optical transmission data unit
US7630397B2 (en) Efficient scalable implementation of VCAT/LCAS for SDH and PDH signals
WO2024109695A1 (en) Bandwidth adjustment method and apparatus
CN102439883B (en) Method, system and device for transmitting synchronous digital hierarchy signals by microwave
US20060215553A1 (en) Data transmission apparatus for transmitting data using virtual concatenation
US20030043838A1 (en) Transmission method allocating a time-division multiplex transmission band according to a channel band of a user packet frame
Wang et al. On designing of LCAS over VCAT for an EOS chip
WO2024051586A1 (en) Method for processing data frame in optical transport network, apparatus and system
CN118157809A (en) Time delay information transmission method, clock recovery method and device
WO2013029411A1 (en) Hybrid granularity virtual concatenation delay compensation method and device
Manke et al. VCAT synchroniser—reduction of buffer size in VCAT enabled next generation SDH networks

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110105

Assignee: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Assignor: ZTE Corporation

Contract record no.: 2015440020319

Denomination of invention: Mapping device and method for optical transport data units

Granted publication date: 20130327

License type: Common License

Record date: 20151123

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
TR01 Transfer of patent right

Effective date of registration: 20171113

Address after: 350700 building, two Financial Bureau, Yongtai County, Fujian, Fuzhou

Patentee after: Yongtai County State owned asset management company

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

TR01 Transfer of patent right