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 PDFInfo
- 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
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000005540 biological transmission Effects 0.000 title claims description 29
- 230000003287 optical effect Effects 0.000 title abstract description 31
- 239000000872 buffer Substances 0.000 claims description 120
- 238000012544 monitoring process Methods 0.000 claims description 11
- 238000000429 assembly Methods 0.000 claims 3
- 238000010586 diagram Methods 0.000 description 8
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- RGNPBRKPHBKNKX-UHFFFAOYSA-N hexaflumuron Chemical compound C1=C(Cl)C(OC(F)(F)C(F)F)=C(Cl)C=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F RGNPBRKPHBKNKX-UHFFFAOYSA-N 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
Images
Landscapes
- Communication Control (AREA)
Abstract
Description
技术领域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
图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
图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)
FIFO缓存器10,用于读取ODUk数据;
数据组装输出模块20,用于对FIFO缓存器10中的数据进行重新组装,并将重新组装后的ODUk数据写入TFI-5总线。The data
下面结合具体的实施例来说明本发明的装置,如图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.
1、FIFO缓存器10用于读取ODUk中的数据。在实际的应用中,需要使用多个FIFO缓存器来同时读取ODUk中的数据,具体的FIFO缓存器数量取决于系统要求的数据输入位宽。该数据输入位宽是指FIFO缓存器10一次可以读取的ODUk数据的比特数,数据输入位宽≤(FIFO数据位宽×FIFO个数),其中FIFO数据位宽为2n,n为正整数。假设系统要求的数据输入位宽为16bit,FIFO数据位宽为23=8bit,则需要FIFO缓存器的个数为2。1. The
根据图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
同时,还可以通过地址设置模块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缓存器10在写入数据时发生写地址错误、即将数据写入错误的FIFO小块,较佳地,图4所示的装置还可以包括一个地址监控模块40,依据上述设置的FIFO缓存器10中FIFO小块的FIFO地址和FIFO写地址来监控FIFO缓存器10写入数据的状态,当发生FIFO写地址错误时,通知FIFO缓存器10立即复位,即回到FIFO写地址发生错误之前的状态,FIFO缓存器10继续写入数据。In order to prevent the
2、数据组装输出模块20对FIFO缓存器10中的数据进行重新组装,并将重新组装后的数据写入TFI-5总线。2. The data
由于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
根据计数器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
需要指出的是,由于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
根据计数器50的计算,若当前需要向TFI-5时隙填充固定填充字节时,数据组装输出模块20停止读取ODUk数据、或停止读取调整字节,而是读取固定填充字节,并写入TFI-5当前的时隙。According to the calculation of the
根据计数器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
针对上述固定填充字节和调整字节,本发明的装置还可以包含一个数据源模块60,用于为数据组装输出模块20提供固定填充字节和调整字节。Regarding the above-mentioned fixed stuffing bytes and adjustment bytes, the device of the present invention may further include a
基于上述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
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读、写使能信号还需要依据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
另外,控制模块70还可以根据TFI-5总线的数据结构和计数器50,控制数据组装输出模块20选择数据源,并控制数据组装输出模块20将选择的数据源写入TFI-5总线,如,根据当前需要选择的数据源,控制模块70控制数据组装输出模块20从数据源模块60中相应的数据源读出数据,并写入TFI-5总线相应的时隙。In addition, the
图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
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
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
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
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
为了实现上述映射装置,本发明还提供了一种映射方法,如图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
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总线。
数据组装输出模块对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)
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)
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)
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 |
-
2009
- 2009-06-30 CN CN 200910088603 patent/CN101938454B/en active Active
Patent Citations (1)
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)
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 |