CN103825668B - General mapping code GMP mapping methods, de-mapping method and device - Google Patents
General mapping code GMP mapping methods, de-mapping method and device Download PDFInfo
- Publication number
- CN103825668B CN103825668B CN201410061906.4A CN201410061906A CN103825668B CN 103825668 B CN103825668 B CN 103825668B CN 201410061906 A CN201410061906 A CN 201410061906A CN 103825668 B CN103825668 B CN 103825668B
- Authority
- CN
- China
- Prior art keywords
- gmp
- change
- mapping
- frames
- timeslots
- 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.)
- Active
Links
Landscapes
- Time-Division Multiplex Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种通用映射规程GMP映射方法、解映射方法及装置。The invention relates to the field of communication technology, in particular to a general mapping procedure GMP mapping method, demapping method and device.
背景技术Background technique
OTN(Optical transport network,光传送网)作为下一代传送网的核心技术,包括电层和光层的技术规范。OTN具备丰富的OAM(Operation Administration andMaintenance,操作、管理和维护)、强大的TCM(Tandem Connection Monitoring,串联连接监视)能力和带外FEC(Forward Error Correction,前向纠错)能力,能够实现大容量业务的灵活调度和管理,日益成为骨干传送网的主流技术。OTN (Optical transport network, Optical Transport Network) is the core technology of the next-generation transport network, including the technical specifications of the electrical layer and the optical layer. OTN has rich OAM (Operation Administration and Maintenance, operation, management and maintenance), powerful TCM (Tandem Connection Monitoring, tandem connection monitoring) capabilities and out-of-band FEC (Forward Error Correction, forward error correction) capabilities, which can achieve large capacity Flexible scheduling and management of services has increasingly become the mainstream technology of the backbone transmission network.
在电处理层,OTN技术定义了功能强大的“数字包封(Digital Wrapper)”结构,将客户业务数据映射包封处理以便在OTN中传送,并能够实现对客户业务数据的管理和监控。数字包封技术包括:光通道传输单元(OTU,Optical Channel Transport Unit)的映射、复用结构,光通道数据单元(ODU,Optical Channel Data Unit)的时分复用,光通道净荷单元(OPU,Optical Channel Payload Unit-k Overhead)的时分复用,以及客户业务数据的映射等技术手段。At the electrical processing layer, OTN technology defines a powerful "Digital Wrapper" structure, which maps and encapsulates customer service data for transmission in OTN, and enables management and monitoring of customer service data. Digital encapsulation technology includes: mapping and multiplexing structure of Optical Channel Transport Unit (OTU, Optical Channel Transport Unit), time division multiplexing of Optical Channel Data Unit (ODU, Optical Channel Data Unit), Optical Channel Payload Unit (OPU, Optical Channel Payload Unit-k Overhead) time-division multiplexing, and customer business data mapping and other technical means.
随着数据业务的飞速发展,越来越多的客户业务都需要通过OTN进行传送,当前的OTN体制已无法很好地满足直接承载速率各异的多种业务。针对这一问题,ITU-T(International Telecommunication Union-Telecommunication StandardizationSector,国际电信联盟-电信标准化组)正在讨论制定一种新的光传送网帧ODUflex帧解决这个问题。该ODUflex仍然保持原有的ODU结构,可承载任意速率的CBR(Constant BitRate,固定比特率)业务以及包业务。对于不同的业务,分别采用不同的映射规程将业务信号映射入OPU。With the rapid development of data services, more and more customer services need to be transmitted through the OTN. The current OTN system can no longer meet the requirements of directly carrying various services with different rates. In response to this problem, ITU-T (International Telecommunication Union-Telecommunication Standardization Sector, International Telecommunication Union-Telecommunications Standardization Sector) is discussing the formulation of a new optical transport network frame ODUflex frame to solve this problem. The ODUflex still maintains the original ODU structure, and can carry CBR (Constant BitRate, fixed bit rate) services and packet services at any rate. For different services, different mapping procedures are used to map service signals into the OPU.
ODUflex不能直接发送到线路上去,需要封装到HO ODU(Higher Order OpticalChannel Data unit,高阶光通道数据单元),通过HO OTU(Higher Order Optical ChannelTransport unit,高阶光通道传输单元)进行传送。ODUflex cannot be directly sent to the line, it needs to be encapsulated into HO ODU (Higher Order Optical Channel Data unit, high-order optical channel data unit), and transmitted through HO OTU (Higher Order Optical Channel Transport unit, high-order optical channel transmission unit).
当前,ODUflex到HO ODU的映射方式采用GMP(Generic Mapping Procedure,通用映射规程),其中ODUflex占用HO ODU中的若干TS(Time Slot,时隙)。GMP为OTN的一种通用映射规程,具体是产生每服务帧周期中的客户实体数量Cn值以及时钟信息,然后通过“sigma-delta”算法计算客户数据在净荷区中的分布图案,并将Cn数量的客户数据映射入分布图案所对应位置。Currently, the mapping method from ODUflex to HO ODU adopts GMP (Generic Mapping Procedure, general mapping procedure), wherein ODUflex occupies several TS (Time Slot, time slots) in the HO ODU. GMP is a general mapping procedure of OTN, which specifically generates the number of customer entities Cn value and clock information in each service frame period, and then calculates the distribution pattern of customer data in the payload area through the "sigma-delta" algorithm, and The customer data of Cn quantity is mapped into the position corresponding to the distribution pattern.
由于包业务流量具有不定期变化的特性,在不同时间段,ODUflex需要提供不同的带宽来满足其不同的流量,并且需要在包业务不断的情况下进行ODUflex通道带宽调整。在这个调整过程中就涉及到HO ODU承载ODUflex时被占用的带宽调整,也即HO ODU中的TS调整。GMP块容器为承载ODUflex的空间,其由多个TS组成。因此,为了适应包业务流量的变化,就需要一种机制能够对GMP块容器进行大小调整。Due to the irregular change of packet service traffic, ODUflex needs to provide different bandwidths to meet its different traffic in different time periods, and it is necessary to adjust the ODUflex channel bandwidth when the packet service is continuous. This adjustment process involves the adjustment of the occupied bandwidth when the HO ODU carries ODUflex, that is, the TS adjustment in the HO ODU. The GMP block container is a space for carrying ODUflex, which consists of multiple TSs. Therefore, in order to adapt to changes in packet traffic, a mechanism is needed to adjust the size of the GMP block container.
发明内容Contents of the invention
本发明实施例提供了一种通用映射规程GMP映射方法、解映射方法及装置。The embodiment of the present invention provides a general mapping procedure GMP mapping method, demapping method and device.
一方面,本发明实施例提供了一种通用映射规程GMP映射方法,所述方法包括:在第i个GMP块容器的开销GMP OH中,携带第i+n个GMP块容器需要占用的时隙TS信息;根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个GMP块容器进行调整;根据调整后的第i+n个GMP块容器对待发送的客户业务数据进行GMP映射。On the one hand, an embodiment of the present invention provides a general mapping procedure GMP mapping method, the method includes: in the overhead GMP OH of the i-th GMP block container, carrying the time slot that the i+n-th GMP block container needs to occupy TS information; according to the TS information that the i+nth GMP block container needs to occupy, adjust the i+nth GMP block container; according to the adjusted i+nth GMP block container, the customer service data to be sent Carry out GMP mapping.
另一方面,本发明实施例提供了一种通用映射规程GMP解映射方法,所述方法包括:获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的时隙TS信息;根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个块容器的客户业务数据进行GMP解映射。On the other hand, an embodiment of the present invention provides a general mapping procedure GMP demapping method, the method includes: obtaining the time required for the i+nth GMP block container carried by the overhead GMP OH of the i-th GMP block container Slot TS information; perform GMP demapping on the customer service data of the i+nth GMP block container according to the TS information to be occupied by the i+nth GMP block container.
又一方面,本发明实施例提供了一种通用映射规程GMP映射装置,所述装置包括:封装单元,用于在第i个GMP块容器的开销GMP OH中,携带第i+n个GMP块容器需要占用的时隙TS信息;适配单元,用于根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个GMP块容器进行调整;映射单元,用于根据调整后的第i+n个GMP块容器对待发送的客户业务数据进行GMP映射。In yet another aspect, an embodiment of the present invention provides a general mapping protocol GMP mapping device, the device comprising: an encapsulation unit, configured to carry the i+nth GMP block in the overhead GMP OH of the i-th GMP block container The time slot TS information that the container needs to occupy; the adaptation unit is used to adjust the i+nth GMP block container according to the TS information that the i+nth GMP block container needs to occupy; the mapping unit is used to adjust the i+nth GMP block container according to The adjusted i+nth GMP block container performs GMP mapping on the customer service data to be sent.
最后一方面,本发明实施例提供了一种通用映射规程GMP解映射装置,所述装置包括:解封装单元,用于获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的时隙TS信息;解映射单元,用于根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个块容器的客户业务数据进行GMP解映射。In the last aspect, the embodiment of the present invention provides a general mapping procedure GMP demapping device, the device includes: a decapsulation unit for obtaining the i+nth GMP carried by the overhead GMP OH of the ith GMP block container The time slot TS information that the block container needs to occupy; the demapping unit is configured to perform GMP demapping on the customer service data of the i+nth GMP block container according to the TS information that the i+nth GMP block container needs to occupy.
本发明实施例的技术方案,提供了一种TS调整的触发机制,发送端在GMP块容器的GMP OH中添加GMP块容器需要占用的TS信息,使接收端能够根据块容器的变化采用相应的解映射方式,实现了采用GMP针对可变块容器的无损映射解映射处理。The technical solution of the embodiment of the present invention provides a trigger mechanism for TS adjustment. The sending end adds the TS information that the GMP block container needs to occupy in the GMP OH of the GMP block container, so that the receiving end can adopt the corresponding TS information according to the change of the block container. The demapping method realizes the non-destructive mapping and demapping processing for variable block containers using GMP.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例的OTN帧结构图;Fig. 1 is the OTN frame structure figure of the embodiment of the present invention;
图1a为本发明实施例的一种TS分布示例图;FIG. 1a is an example diagram of a TS distribution according to an embodiment of the present invention;
图2为本发明实施例1的整体方法流程图;Fig. 2 is the overall method flowchart of embodiment 1 of the present invention;
图3为本发明实施例1的M信息的封装方式示意图一;FIG. 3 is a first schematic diagram of the encapsulation method of M information in Embodiment 1 of the present invention;
图4为本发明实施例1的M信息的封装方式示意图二;FIG. 4 is a second schematic diagram of the encapsulation method of M information in Embodiment 1 of the present invention;
图5为本发明实施例1的具体方法流程图一;Fig. 5 is the specific method flow chart 1 of embodiment 1 of the present invention;
图6为本发明实施例依据图5的方法进行GMP映射的示例图;Fig. 6 is an example diagram of GMP mapping according to the method of Fig. 5 according to an embodiment of the present invention;
图7为本发明实施例1的具体方法流程图二;Fig. 7 is the specific method flow chart II of embodiment 1 of the present invention;
图8为本发明实施例1依据图7的方法进行GMP映射的示例图;FIG. 8 is an example diagram of GMP mapping according to the method in FIG. 7 according to Embodiment 1 of the present invention;
图9为本发明实施例1中TS调整和映射粒度变化的示意图;9 is a schematic diagram of TS adjustment and mapping granularity changes in Embodiment 1 of the present invention;
图10为本发明实施例2的整体方法流程图;FIG. 10 is a flow chart of the overall method of Embodiment 2 of the present invention;
图11为本发明实施例2的具体方法流程图一;Figure 11 is a flow chart 1 of the specific method of Embodiment 2 of the present invention;
图12为本发明实施例2的具体方法流程图二;Figure 12 is the second flow chart of the specific method of Embodiment 2 of the present invention;
图13为本发明实施例3的GMP映射装置的整体功能框图;13 is an overall functional block diagram of a GMP mapping device according to Embodiment 3 of the present invention;
图14为本发明实施例3的GMP映射装置的详细功能框图;14 is a detailed functional block diagram of the GMP mapping device of Embodiment 3 of the present invention;
图15为本发明实施例4的GMP解映射装置的整体功能框图;15 is an overall functional block diagram of a GMP demapping device according to Embodiment 4 of the present invention;
图16为本发明实施例4的GMP解映射装置的详细功能框图。Fig. 16 is a detailed functional block diagram of a GMP demapping device according to Embodiment 4 of the present invention.
具体实施方式detailed description
为了满足ODUflex带宽调整的需求,做到TS调整无损,本发明实施例提供了一种TS调整机制以及针对TS调整时的GMP自适应处理实现方法与装置。为了实现无损数据的TS调整,发送端在GMP开销中包含用于对TS调整进行指示的TS信息(本实施例表示为M信息),以将TS调整同GMP映射与解映射处理相关联;接收端根据M信息的内容感知到发送端GMP块容器的TS变化,并根据调整后的GMP块容器进行无损的解映射处理。In order to meet the requirements of ODUflex bandwidth adjustment and achieve lossless TS adjustment, the embodiment of the present invention provides a TS adjustment mechanism and a method and device for implementing GMP adaptive processing during TS adjustment. In order to realize TS adjustment of lossless data, the sending end includes TS information for indicating TS adjustment in the GMP overhead (this embodiment is represented as M information), so as to associate TS adjustment with GMP mapping and de-mapping processing; The end perceives the TS change of the GMP block container at the sending end according to the content of the M information, and performs lossless demapping processing according to the adjusted GMP block container.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例1:Example 1:
图1为本实施例的OTN帧格式图。如图1所示,OTN帧为4080列×4行的标准模块化结构,OTN帧头部的16列为开销字节,中部的3808列为净荷,尾部256列为FEC校验字节。该OTN帧包括:位于第1行第1-7列的FAS(Frame Alignment Signal,帧对齐信号)字节,用于提供帧同步定位的功能,FAS的第7个字节为复帧指示(Multi-Frame Alignment Signal,MFAS),用于指示以时分复用方式承载多个客户业务数据时的开销分配;位于第1行第8-14列的OTUk OH(Optical Channel Transport Unit-k Overhead,光通道传输单元k开销)字节,用于提供光通道传送单元级别的网络管理功能;位于第2-4行第1-14列的ODUk OH(OpticalChannel Data Unit-k Overhead,光通道数据单元k开销)字节,用于提供维护和操作功能;位于第15-16列的OPUk OH(Optical Channel Payload Unit-k Overhead,光通道净荷单元k开销)字节,用于提供客户业务数据适配的功能。OPUk OH字节中包括净荷结构标识(Payload Structure Identifier,PSI),PSI在MFAS指示下分别对应有0~255个可能值,其中第0字节为客户业务数据类型指示(Payload Type,PT),其余为保留字节(Reserved,RES),留做未来扩展使用;位于第17-3824列的OPUk(Optical Channel Payload Unit-k,光通道净荷单元k)字节,用于提供客户业务数据承载的功能,待传输的客户业务数据被封装入OPUk中;以及位于第3825-4080列的FEC字节,用于提供错误探测和纠错功能。FIG. 1 is a diagram of an OTN frame format in this embodiment. As shown in Figure 1, the OTN frame has a standard modular structure of 4080 columns × 4 rows. The 16 columns in the OTN frame header are overhead bytes, the 3808 columns in the middle are payload, and the 256 columns in the tail are FEC check bytes. The OTN frame includes: FAS (Frame Alignment Signal, Frame Alignment Signal) bytes located in row 1, columns 1-7, used to provide the function of frame synchronization positioning, and the seventh byte of FAS is a multiframe indication (Multi -Frame Alignment Signal, MFAS), used to indicate the overhead allocation when carrying multiple customer service data in a time-division multiplexed manner; OTUk OH (Optical Channel Transport Unit-k Overhead, Optical Channel Transport Unit-k Overhead, located in row 1, columns 8-14 ODUk OH (OpticalChannel Data Unit-k Overhead, Optical Channel Data Unit-k Overhead) in rows 2-4, columns 1-14) Bytes, used to provide maintenance and operation functions; OPUk OH (Optical Channel Payload Unit-k Overhead, optical channel payload unit k overhead) bytes located in columns 15-16, used to provide customer service data adaptation functions . The OPUk OH byte includes the payload structure identifier (Payload Structure Identifier, PSI), and the PSI corresponds to 0 to 255 possible values under the indication of MFAS, among which the 0th byte is the customer service data type indication (Payload Type, PT) , and the rest are reserved bytes (Reserved, RES), which are reserved for future expansion; the OPUk (Optical Channel Payload Unit-k, Optical Channel Payload Unit-k) byte located in the 17th-3824th column is used to provide customer service data Bearer functions, customer service data to be transmitted are encapsulated into OPUk; and FEC bytes located in columns 3825-4080 are used to provide error detection and error correction functions.
系数k表示所支持的比特速率,不同的比特速率对应于不同种类的OPUk、ODUk和OTUk。其中,k=0表示比特速率为1.25Gbit/s,k=1表示比特速率为2.5Gbit/s,k=2表示比特速率为10Gbit/s,k=3表示比特速率为40Gbit/s,k=4表示比特速率为100Gbit/s。其中,OPUk和OPUk OH构成了OPUk帧,OPUk帧、ODUk OH和FAS构成ODUk帧,ODUk帧、OTUk OH和FEC构成了OTUk帧。The coefficient k represents the supported bit rate, and different bit rates correspond to different types of OPUk, ODUk and OTUk. Among them, k=0 means that the bit rate is 1.25Gbit/s, k=1 means that the bit rate is 2.5Gbit/s, k=2 means that the bit rate is 10Gbit/s, k=3 means that the bit rate is 40Gbit/s, k= 4 means the bit rate is 100Gbit/s. Among them, OPUk and OPUk OH constitute the OPUk frame, OPUk frame, ODUk OH and FAS constitute the ODUk frame, ODUk frame, OTUk OH and FEC constitute the OTUk frame.
映射规程是指将待发送的不同类型的各种业务映射入OPU净荷区(Payload Area)的方法。本实施例采用GMP映射规程将客户业务数据映射入OPU中。图1a为本实施例采用GMP映射的一种TS分布示例图,图1a中的GMP OH相当于图1中的OPUk OH,本实施例的GMP OH中包含了用于对TS调整进行指示的TS信息,图1a中的一个或多个TS组成GMP块容器来传送客户业务数据。The mapping procedure refers to the method of mapping various types of services to be sent into the OPU payload area (Payload Area). In this embodiment, the GMP mapping procedure is used to map the customer service data into the OPU. Figure 1a is an example diagram of a TS distribution using GMP mapping in this embodiment. The GMP OH in Figure 1a is equivalent to the OPUk OH in Figure 1. The GMP OH in this embodiment includes the TS used to indicate the TS adjustment Information, one or more TSs in Figure 1a form a GMP block container to transmit customer service data.
图1a以OPU2来说明具体的GMP映射方法,OPU2帧的净荷区被划分为8个TS,每一列的4行组成一个时隙,依次标识为TS1、TS2、TS3,直到TS8,循环下去,直到完成净荷区的所有列的时隙分配。8个OPU2帧构成一个OPU2的8-复帧。客户业务数据可以映射到上述OPU2的8-复帧净荷区的一个或多个时隙中,上述OPU2的8-复帧中的一个或多个TS可以构成GMP块容器来承载业务数据,此处采用3个TS来传送业务数据,分别为TS1、TS3和TS4。Figure 1a uses OPU2 to illustrate the specific GMP mapping method. The payload area of the OPU2 frame is divided into 8 TSs, and 4 rows in each column form a time slot, which is marked as TS1, TS2, TS3 in turn, until TS8, and the cycle continues. Until the time slot allocation of all columns in the payload area is completed. Eight OPU2 frames constitute an OPU2 8-multiframe. Customer service data can be mapped to one or more time slots in the 8-multiframe payload area of the above-mentioned OPU2, and one or more TSs in the 8-multiframe of the above-mentioned OPU2 can form a GMP block container to carry service data. There are three TSs used to transmit business data, namely TS1, TS3 and TS4.
在将客户业务数据放入GMP块容器时,是以行为单位进行放入。在一行的相应时隙内放满后,再在下一行的相应时隙内执行类似的放入操作。如图1a所示,此时GMP块容器占用的TS数量为3个,映射粒度为3-byte(字节),在将客户数据放入GMP块容器时,是在一个时钟周期内(由映射时的时钟信息所决定)将3个bytes的客户数据分别放入到第17、19及20列的第一行,然后在第二个时钟周期内将另外3个bytes的客户数据放入到第25、27及28列的第一行,依次类推,在一行放满后,再在下一行执行类似的放入操作。When putting customer business data into the GMP block container, put it in units of behavior. After the corresponding time slot of one row is full, a similar put operation is performed in the corresponding time slot of the next row. As shown in Figure 1a, the number of TSs occupied by the GMP block container is 3 at this time, and the mapping granularity is 3-byte (byte). When customer data is put into the GMP block container, it is within one clock cycle (by mapping determined by the clock information at the time) put 3 bytes of customer data into the first row of the 17th, 19th and 20th columns respectively, and then put the other 3 bytes of customer data into the first row in the second clock cycle The first row of columns 25, 27, and 28, and so on. After one row is full, perform a similar insertion operation on the next row.
本发明实施例1提供了一种通用映射规程GMP映射方法,该方法可以基于图1的帧结构,该映射方法为发端的处理方法。Embodiment 1 of the present invention provides a general mapping procedure GMP mapping method, which may be based on the frame structure in FIG. 1 , and the mapping method is a processing method at the sending end.
图2为本发明实施例1的整体方法流程图。如图2所示,该方法包括:FIG. 2 is a flow chart of the overall method of Embodiment 1 of the present invention. As shown in Figure 2, the method includes:
S201、在第i个GMP块容器的开销GMP OH中,携带第i+n个GMP块容器需要占用的时隙TS信息;S201. In the overhead GMP OH of the i-th GMP block container, carry the time slot TS information to be occupied by the i+n-th GMP block container;
S202、根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个GMP块容器进行调整;S202. Adjust the i+nth GMP block container according to the TS information to be occupied by the i+nth GMP block container;
S203、根据调整后的第i+n个GMP块容器对待发送的客户业务数据进行GMP映射。S203. Perform GMP mapping on the customer service data to be sent according to the adjusted i+nth GMP block container.
本实施例中,TS调整的时机可以是,当发端收到外部TS调整指令或者触发命令时。In this embodiment, the timing of TS adjustment may be when the originator receives an external TS adjustment instruction or trigger command.
为了便于描述,本实施例以n=1为例来详细说明该GMP映射的原理。假设第i+1个GMP块容器大小发生改变,则从第i个块容器的GMP OH中携带的TS信息中就能得知改变后的第i+1个块容器需要占用的TS信息。由于后一个GMP块容器的改变会在前一个GMP块容器中提前告知,因此,接收端也能够自适应地调整解映射方式,以实现数据无损。接收端的具体实现方式将在后续实施例中详细描述。For ease of description, this embodiment takes n=1 as an example to describe the principle of the GMP mapping in detail. Assuming that the size of the (i+1)th GMP block container changes, the TS information to be occupied by the (i+1)th block container after the change can be known from the TS information carried in the GMP OH of the ith block container. Since the change of the latter GMP block container will be notified in advance in the previous GMP block container, the receiving end can also adaptively adjust the demapping method to achieve lossless data. The specific implementation manner of the receiving end will be described in detail in subsequent embodiments.
本实施例的TS信息可以包含TS数量信息,该TS数量信息与映射粒度相关联,即TS数量与映射粒度保持一致,TS数量与映射粒度同时调整;或者,本实施例的TS信息还可以包含TS数量信息和映射粒度信息,TS数量和映射粒度分别调整。本实施例中,TS的具体分布情况,即具体由哪些TS来传送客户业务数据,是在OTN帧的PSI中指示的。The TS information in this embodiment may include TS quantity information, and the TS quantity information is associated with the mapping granularity, that is, the TS quantity is consistent with the mapping granularity, and the TS quantity and the mapping granularity are adjusted at the same time; or, the TS information in this embodiment may also include TS quantity information and mapping granularity information, TS quantity and mapping granularity are adjusted respectively. In this embodiment, the specific distribution of TSs, that is, which TSs are used to transmit customer service data, is indicated in the PSI of the OTN frame.
1)TS数量和映射粒度同时调整的情况。对于该情况,上述TS信息包括TS数量信息,可选地,该数量信息可以表示为TS数量的变化指示。1) The case where the number of TSs and mapping granularity are adjusted at the same time. For this case, the above TS information includes TS quantity information, and optionally, the quantity information may be expressed as a change indication of the TS quantity.
对于这种情况,步骤S202和步骤S203可以具体包括:根据所述TS数量,同时调整第i+1个GMP块容器的大小和映射粒度;根据调整后的第i+1个GMP块容器的大小和映射粒度对所述待发送的客户业务数据进行GMP映射。For this case, steps S202 and S203 may specifically include: adjusting the size and mapping granularity of the i+1th GMP block container at the same time according to the number of TSs; according to the adjusted size of the i+1th GMP block container and mapping granularity to perform GMP mapping on the customer service data to be sent.
2)TS数量和映射粒度分别调整的情况。对于该情况,上述TS信息包括TS数量以及映射粒度。可以先调整TS数量,再调整映射粒度;或者先调整映射粒度,再调整数量,最终使两者达到一致。2) The case where the number of TSs and mapping granularity are adjusted separately. For this case, the above TS information includes TS quantity and mapping granularity. You can adjust the number of TSs first, and then adjust the mapping granularity; or adjust the mapping granularity first, and then adjust the number, and finally make the two consistent.
当调整TS数量时,在第i个GMP块容器的开销GMP OH中携带需要调整的第i+1个GMP块容器的TS数量;步骤S202和S203包括:根据所述TS数量,对第i+1个GMP块容器的大小进行调整;根据调整后的第i+1个GMP块容器的大小和第i个GMP块容器的映射粒度对所述待发送的客户业务数据进行GMP映射。When adjusting the number of TSs, the overhead GMP OH of the i-th GMP block container carries the TS number of the i+1th GMP block container that needs to be adjusted; steps S202 and S203 include: according to the number of TSs, for the i+th GMP block container The size of one GMP block container is adjusted; GMP mapping is performed on the customer service data to be sent according to the adjusted size of the i+1th GMP block container and the mapping granularity of the i-th GMP block container.
当调整TS数量后再调整映射粒度时,在步骤S202和步骤S203之后还包括:在第j个GMP块容器的开销GMP OH中携带需要调整的第j+m个GMP块容器的映射粒度;根据携带的所述映射粒度,对第j+m个GMP块容器的映射粒度进行调整;根据第j个GMP块容器的大小和第j+m个GMP块容器的映射粒度对所述待发送的客户业务数据进行GMP映射。为了便于描述,本实施例以m=1为例来详细说明该GMP映射的原理。When adjusting the mapping granularity after adjusting the number of TSs, after step S202 and step S203, it also includes: carrying the mapping granularity of the j+mth GMP block container that needs to be adjusted in the overhead GMP OH of the jth GMP block container; The mapping granularity carried, adjusts the mapping granularity of the j+mth GMP block container; according to the size of the jth GMP block container and the mapping granularity of the j+mth GMP block container, the customer to be sent Business data is GMP mapped. For ease of description, this embodiment takes m=1 as an example to describe the principle of the GMP mapping in detail.
本实施例中,可选地,当需要增大带宽时,先做TS调整,后进行映射粒度变化;当需要减少带宽,即TS做减少调整时,先进行映射粒度变化,后做TS调整。本发明实施例不以此为限,也可以按照与上述方式相反的顺序执行调整。无论是同时调整还是分别调整,最终的目标是要将TS与M-byte调整为一致。例如原来为3个TS和3-byte映射粒度,如果TS增大1个,则无论是同时调整还是分时调整,最终的结果是要达到4TS和4-byte映射粒度。In this embodiment, optionally, when the bandwidth needs to be increased, the TS adjustment is performed first, and then the mapping granularity is changed; when the bandwidth needs to be reduced, that is, the TS is reduced and adjusted, the mapping granularity is changed first, and then the TS adjustment is performed. The embodiment of the present invention is not limited thereto, and the adjustment may also be performed in a reverse order of the foregoing manner. Whether it is adjusted at the same time or separately, the ultimate goal is to adjust TS and M-byte to be consistent. For example, the original mapping granularity is 3 TS and 3-byte. If TS is increased by 1, the final result is to achieve 4TS and 4-byte mapping granularity regardless of simultaneous adjustment or time-sharing adjustment.
以下详细描述本发明实施例1的S201中,GMP块容器需要占用的TS信息(以下简称M信息)的封装方式。The encapsulation method of TS information (hereinafter referred to as M information) that needs to be occupied by the GMP block container in S201 of Embodiment 1 of the present invention will be described in detail below.
图3为本发明实施例的M信息的一种封装方式示意图,该图适用于TS数量与映射粒度同时调整的情况。如图3所示:在通用映射规程开销GMP OH的第15列第1-3行,放置3个相同的M信息,此处M信息为TS数量信息,取值范围为[1~80]。具体地,在第15列第1行的一个字节中,其bit1~bit8可以均用于放置M信息,即GMP块容器占用的TS数量信息。同理,分别在第15列第2行、第15列第3行各自的8bits空间放置与第15列第1行相同的TS数量信息。当需要进行TS调整时,对M信息进行修改,直接将其修改为调整后的TS所对应的值,以便将下一GMP块容器调整为修改后的M信息所表示的大小。FIG. 3 is a schematic diagram of an encapsulation method of M information according to an embodiment of the present invention, which is applicable to the situation where the number of TSs and the mapping granularity are adjusted at the same time. As shown in Figure 3: In column 15, row 1-3 of the general mapping procedure overhead GMP OH, three identical M information are placed, where the M information is TS quantity information, and the value range is [1-80]. Specifically, in a byte in column 15, row 1, bits 1 to 8 may all be used to store M information, that is, information on the number of TSs occupied by the GMP block container. Similarly, the same TS quantity information as that in the first row of the fifteenth column is placed in the respective 8-bit spaces of the fifteenth column, the second row, and the fifteenth row, the third row. When the TS needs to be adjusted, the M information is modified directly to the value corresponding to the adjusted TS, so that the next GMP block container can be adjusted to the size indicated by the modified M information.
假设当前GMP块容器占用的TS数量为3个,而下一GMP块容器需要占用4个TS,则在当前GMP块容器的GMP OH中将上述3个M信息的值统一修改为二进制表示的4,以触发在下一GMP块容器中将块容器的大小调整为占用4个TS。放置3个相同M信息的目的是保证正确性,防止在传输过程中引入错误,接收端可以通过大数判决来获取M信息。例如,当3个M信息一致时,表示传输正确,取任一M信息来表示GMP块容器占用的TS数量;当3个M信息中有两个一致,另一个不同时,则取相一致的两个M信息中任一个来表示GMP块容器占用的TS数量;当3个M信息均不一致时,表示传输错误,GMP块容器占用的TS数量保持不变。Suppose the number of TSs occupied by the current GMP block container is 3, and the next GMP block container needs to occupy 4 TSs, then in the GMP OH of the current GMP block container, the values of the above three M information are uniformly modified to 4 in binary representation , to trigger resizing the chunk container to occupy 4 TS in the next GMP chunk container. The purpose of placing three identical M messages is to ensure correctness and prevent errors from being introduced during transmission. The receiving end can obtain M messages through large-number judgments. For example, when the three M information are consistent, it means that the transmission is correct, and any M information is used to indicate the number of TSs occupied by the GMP block container; when two of the three M information are consistent and the other is different, the consistent one is used Either one of the two M messages indicates the number of TSs occupied by the GMP block container; when the three M messages are inconsistent, it indicates a transmission error, and the number of TSs occupied by the GMP block container remains unchanged.
本实施例中,当TS数量信息和映射粒度信息同时调整时,在上述封装方式中,M信息不但是TS数量信息,同时也是映射粒度信息M-bytes。映射粒度的概念是指以多少个字节为单位将待发送的客户数据映射到OPUk。如映射粒度为1,就是把待发送的客户数据一个字节、一个字节地放入到OPUk;如果映射粒度为3-bytes,则将待发送的客户数据以3个字节为单位的方式放入到OPUk。在此种情况下,当TS数量发生改变时,映射粒度也同时相应地改变。图3的封装方式适合GMP块容器和映射粒度同时变化的情形。In this embodiment, when the TS quantity information and the mapping granularity information are adjusted at the same time, in the above encapsulation manner, the M information is not only the TS quantity information, but also the mapping granularity information M-bytes. The concept of mapping granularity refers to how many bytes are used to map the customer data to be sent to the OPUk. If the mapping granularity is 1, it is to put the customer data to be sent into the OPUk one byte at a time; if the mapping granularity is 3-bytes, the customer data to be sent is in units of 3 bytes Put it into OPUk. In this case, when the number of TSs changes, the mapping granularity also changes accordingly. The encapsulation method in Fig. 3 is suitable for the situation where the GMP block container and the mapping granularity change simultaneously.
但本领域技术人员应当理解,M信息不局限于只包含TS数量信息或者映射粒度信息,在其它具体应用中,还可以进一步包括TS当前状态信息或者源宿端交互信息等。并且,本发明实施例中的M信息放置位置以及封装方式不局限于以上所描述方式。即触发TS调整的开销指示,不局限于为M信息的变化,也可以特定为触发TS调整而专门制定的开销指示。However, those skilled in the art should understand that the M information is not limited to only including TS quantity information or mapping granularity information, and may further include TS current state information or source-sink interaction information in other specific applications. Moreover, the M information placement location and encapsulation manner in the embodiment of the present invention are not limited to the manner described above. That is, the overhead indication that triggers the TS adjustment is not limited to the change of the M information, and may also be a specific overhead indication specially formulated for triggering the TS adjustment.
图4为本发明实施例的M信息的另一种封装方式示意图,该封装方式不仅适用于TS数量与映射粒度同时调整的情况也适用于TS数量与映射粒度分别调整的情况。为了统一描述,后续实施例将结合图4以及具体的表格来对本实施例的多种封装方法进行详细描述。FIG. 4 is a schematic diagram of another encapsulation method of M information according to an embodiment of the present invention. This encapsulation method is not only applicable to the situation where the number of TSs and the mapping granularity are adjusted at the same time, but also the situation where the number of TSs and the mapping granularity are adjusted separately. For unified description, subsequent embodiments will describe in detail various packaging methods of this embodiment with reference to FIG. 4 and specific tables.
在如下的表1-表6中,M信息封装方式适用于TS数量和映射粒度同时变化的情况,TS数量信息即为映射粒度信息,当TS数量发生变化时,映射粒度也相应变化。例如,当指示TS数量增加1个时,同时也指示了映射粒度也增大1。表1-表6描述了M信息变化所对应的6种状态,即为M信息不变、增1、减1、增2、减2、增减大于2等状态。In the following Tables 1-6, the M information encapsulation method is applicable to the situation where the number of TSs and the mapping granularity change at the same time. The TS number information is the mapping granularity information. When the number of TSs changes, the mapping granularity changes accordingly. For example, when indicating that the number of TSs increases by 1, it also indicates that the mapping granularity also increases by 1. Table 1-Table 6 describe the 6 states corresponding to the change of M information, that is, the states of M information unchanged, increased by 1, decreased by 1, increased by 2, decreased by 2, and increased or decreased by more than 2.
表1,M信息变化指示表Table 1, M information change indicator table
如表1所示,将图4中第15列第1-2行的16比特位展开以形成表1,图4中的第15列第1-2行的bit1~bit14同表1中的bit1~bit14一一对应,且都用于存放M信息,其中’U’表示数据,其取值为0或1;图4中的bit15~bit16同表1中的bit15~bit16一一对应,且I表示增指示,D表示减指示。当I/D=00时,用于指示TS数量不变,此时,bit1~bit14中的’U’表示TS的实际数值。As shown in Table 1, expand the 16 bits of the 15th column, row 1-2 in Figure 4 to form Table 1, bit1~bit14 in the 15th column, row 1-2 in Figure 4 are the same as bit1 in Table 1 ~bit14 correspond one-to-one, and are used to store M information, where 'U' represents data, and its value is 0 or 1; bit15-bit16 in Figure 4 corresponds to bit15-bit16 in Table 1, and I Indicates an increase instruction, and D indicates a decrease instruction. When I/D=00, it is used to indicate that the number of TS remains unchanged. At this time, 'U' in bit1~bit14 indicates the actual value of TS.
表2,M信息变化指示表Table 2, M information change indicator table
如表2所示,其中’U’表示数据,’I’表示该比特位反转。表2中,bit1~bit14的奇数比特位在表1的基础上进行了反转,即bit1、bit3、bit5、bit7、bit9、bit11、bit13进行了比特位反转,且I/D=10,用于指示M信息发生变化,具体指示在下一GMP块容器中,TS数量要增加1个。As shown in Table 2, where 'U' represents the data, and 'I' represents the inversion of the bit. In Table 2, the odd-numbered bits of bit1 to bit14 are inverted on the basis of Table 1, that is, bit1, bit3, bit5, bit7, bit9, bit11, and bit13 are bit-inverted, and I/D=10, It is used to indicate that the M information changes, and specifically indicates that in the next GMP block container, the number of TSs should be increased by one.
表3,M信息变化指示表Table 3, M information change indicator table
如表3所示,当bit1~bit14的偶数比特位在表1的基础上进行了反转,即bit2、bit4、bit6、bit8、bit10、bit12、bit14进行了比特位反转,且I/D=01时,用于指示在下一GMP块容器中TS数量要减少1个。As shown in Table 3, when the even-numbered bits of bit1 to bit14 are reversed on the basis of Table 1, that is, bit2, bit4, bit6, bit8, bit10, bit12, and bit14 are reversed, and the I/D =01, it is used to indicate that the number of TS in the next GMP block container should be reduced by 1.
表4,M信息变化指示表Table 4, M information change indicator table
如表4所示,当bit2、bit3、bit6、bit7、bit10、bit11、bit14在表1的基础上进行了比特位反转,且I/D=10时,用于在指示下一GMP块容器中TS数量要增加2个。As shown in Table 4, when bit2, bit3, bit6, bit7, bit10, bit11, and bit14 are bit-reversed on the basis of Table 1, and I/D=10, it is used to indicate the next GMP block container The number of medium TS should be increased by 2.
表5,M信息变化指示表Table 5, M information change indicator table
如表5所示,当bit1、bit4、bit5、bit8、bit9、bit12、bit13在表1的基础上进行了比特位反转,且I/D=01时,用于指示在下一GMP块容器中TS数量要减少2个。As shown in Table 5, when bit1, bit4, bit5, bit8, bit9, bit12, and bit13 are bit-reversed on the basis of Table 1, and I/D=01, it is used to indicate that in the next GMP block container The number of TS should be reduced by 2.
表6,M信息变化指示表Table 6, M information change indicator table
如表6所示,当I/D=11时,指示TS数量值的增减幅度大于2,此时,直接在bit1~bit14中输入二进制值,以指示大幅度调整后的TS数量值。例如原来GMP块容器占用的TS数量为30个,现在需要将块容器大小调整为占用35个TS,由于TS变化幅度大于2,则将I/D=11,并将bit1~bit14中的M信息修改为35所表示的二进制值。As shown in Table 6, when I/D=11, it indicates that the increase or decrease range of the TS value is greater than 2. At this time, directly input the binary value in bit1~bit14 to indicate the greatly adjusted TS value. For example, the original GMP block container occupies 30 TSs, now it is necessary to adjust the size of the block container to occupy 35 TSs, since the change range of TS is greater than 2, set I/D=11, and change the M information in bit1~bit14 Modified to the binary value represented by 35.
以上只是优选的实施方式,也可以采用其它比特位反转规则结合不同I/D值来指示TS数量的各种变化情况,本发明实施例不对此进行限制。The above is only a preferred implementation manner, and other bit inversion rules combined with different I/D values may also be used to indicate various changes in the number of TSs, which is not limited in this embodiment of the present invention.
本实施例中,当TS数量信息和映射粒度信息分别调整时,可以对图4所示的封装方式进行修改,使其在GMP OH中既包含TS数量信息M,也包括映射粒度信息M’,由于14bits空间可以放置两倍的M信息,因此可以考虑适当节省空间数量,将放置M信息的空间缩减为7bits,另外的7bits空间用于放置M’信息。如图4所示,其中GMP OH的第15列第1-2行的bit1~bit7用于存放M信息,M信息为TS数量信息,取值范围为[1~80];bit8~bit14用于存放M’信息,M’信息为映射粒度信息,取值范围为[1~80];I/D为增减指示,取值为0或1,被M信息和M’信息公用。In this embodiment, when the TS quantity information and the mapping granularity information are adjusted separately, the encapsulation method shown in Figure 4 can be modified so that the GMP OH includes both the TS quantity information M and the mapping granularity information M', Since the 14bits space can place twice as much M information, it can be considered to appropriately save the amount of space, reducing the space for placing M information to 7bits, and the other 7bits space is used to place M' information. As shown in Figure 4, bits1~bit7 in the 15th column and row 1-2 of the GMP OH are used to store M information, and the M information is TS quantity information, with a value range of [1~80]; bit8~bit14 are used for Store M' information, M' information is the mapping granularity information, the value range is [1~80]; I/D is the increase or decrease instruction, the value is 0 or 1, shared by M information and M' information.
表7-表17为M信息(TS数量)和M’信息(映射粒度)的分时变化指示表。如表7-表17所示,此种封装方式适用于GMP块容器和映射粒度分时变化的情况,即当TS数量变化时,映射粒度保持不变;当映射粒度变化时,TS数量保持不变。本实施例通过M信息、M’信息以及I/D的值这三者的取值来共同指示TS数量及映射粒度的变化情况。Table 7-Table 17 are time-division change indication tables of M information (number of TSs) and M' information (mapping granularity). As shown in Table 7-Table 17, this encapsulation method is suitable for the time-sharing change of GMP block container and mapping granularity, that is, when the number of TSs changes, the mapping granularity remains unchanged; when the mapping granularity changes, the number of TSs remains the same Change. In this embodiment, the values of the M information, the M' information, and the value of I/D are used to jointly indicate the change of the number of TSs and the mapping granularity.
表7,M信息不变,M’信息不变的指示表Table 7, M information unchanged, M' information unchanged instruction table
如表7所示,当I/D=00时,表示TS数量信息与映射粒度信息都保持不变。As shown in Table 7, when I/D=00, it means that both the TS quantity information and the mapping granularity information remain unchanged.
表8,M信息变化,M’信息不变的指示表Table 8, M information change, M' information unchanged instruction table
如表8所示,TS数量与映射粒度之一进行变化,另一个保持不变。例如当TS数量变化时,将I/D=10,且将bit1~bit7中的奇数比特位bit1、bit3、bit5、bit7在表7的基础上进行比特位反转,指示在下一GMP块容器中TS数量加1,并保持bit8~bit14中的数据不发生变化,以指示映射粒度保持不变。As shown in Table 8, one of the TS number and mapping granularity is varied, and the other is kept constant. For example, when the number of TSs changes, set I/D=10, and perform bit inversion on the odd-numbered bits bit1, bit3, bit5, and bit7 in bit1~bit7 on the basis of Table 7, indicating that in the next GMP block container Add 1 to the number of TSs, and keep the data in bit8-bit14 unchanged to indicate that the mapping granularity remains unchanged.
表9,M信息变化,M’信息不变的指示表Table 9, M information changes, M' information unchanged instruction table
如表9所示,当bit1~bit7中偶数比特位在表7的基础上进行比特位反转,并且I/D=01,而且bit8~bit14中的数据不发生变化时,用于指示在下一GMP块容器中TS数量要减少1,但映射粒度保持不变。As shown in Table 9, when the even-numbered bits in bit1~bit7 are bit reversed on the basis of Table 7, and I/D=01, and the data in bit8~bit14 does not change, it is used to indicate the next The number of TSs in the GMP block container is reduced by 1, but the mapping granularity remains the same.
表10,M信息变化,M’信息不变的指示表Table 10, M information changes, M' information unchanged instruction table
如表10所示,当bit1~bit7中bit2、bit3、bit6、bit7在表7的基础上进行比特位反转,I/D=10,并且bit8~bit14中的数据不发生变化时,用于指示在下一GMP块容器中TS数量要增加2,但映射粒度保持不变。As shown in Table 10, when bit2, bit3, bit6, and bit7 in bit1~bit7 are bit-inverted on the basis of Table 7, I/D=10, and the data in bit8~bit14 does not change, use Indicates that the number of TSs in the next GMP chunk container is to be increased by 2, but the mapping granularity remains the same.
表11,M信息变化,M’信息不变的指示表Table 11, M information change, M' information unchanged instruction table
如表11所示,当bit1~bit7中bit1、bit4、bit5在表7的基础上进行比特位反转,及I/D=01,并且bit8~bit14中的数据不发生变化时,用于指示在下一GMP块容器中TS数量要减少2,但映射粒度保持不变。As shown in Table 11, when bit1, bit4, and bit5 in bit1~bit7 are bit reversed on the basis of Table 7, and I/D=01, and the data in bit8~bit14 does not change, it is used to indicate The number of TSs in the next GMP block container is reduced by 2, but the mapping granularity remains the same.
表12,M信息变化,M’信息不变的指示表Table 12, M information change, M' information unchanged instruction table
如表12所示,当TS数量的增减幅度大于2时,直接在bit1~bit7中输入二进制数值,以指示大幅度调整后的TS数量值,即指示在下一GMP块容器中,TS数量变化为该二进制数值所表示的值,同时由于bit8~bit14中的数据不发生变化,故映射粒度仍然保持不变。As shown in Table 12, when the increase or decrease of the number of TSs is greater than 2, directly input binary values in bit1~bit7 to indicate the value of the number of TSs after a large adjustment, that is, to indicate the change of the number of TSs in the next GMP block container is the value represented by the binary value, and since the data in bit8~bit14 does not change, the mapping granularity remains unchanged.
表13,M信息不变,M’信息变化的指示表Table 13, M information unchanged, M' information change instruction table
如表13所示,也可以当映射粒度变化时,TS数量保持不变。例如,将I/D=10,并将bit8~bit14中的偶数比特位在表7的基础上进行比特位反转,并保持bit1~bit7的数据不发生变化,以指示在下一GMP块容器中映射粒度要增加1,但TS数量保持不变。As shown in Table 13, it is also possible that when the mapping granularity changes, the number of TSs remains unchanged. For example, set I/D=10, and invert the even-numbered bits in bit8~bit14 based on Table 7, and keep the data of bit1~bit7 unchanged to indicate that in the next GMP block container The mapping granularity is increased by 1, but the number of TS remains the same.
表14,M信息不变,M’信息变化的指示表Table 14, M information unchanged, M' information change instruction table
如表14所示,通过将I/D=01,将bit8~bit14的奇数比特位在表7的基础上进行比特位反转,并保持bit1~bit7的数据不发生变化,以指示在下一GMP块容器中映射粒度要减少1,但TS数量保持不变。As shown in Table 14, by setting I/D=01, the odd-numbered bits of bit8~bit14 are bit-reversed on the basis of Table 7, and the data of bit1~bit7 are kept unchanged to indicate that in the next GMP The mapping granularity in the block container is reduced by 1, but the number of TS remains the same.
表15,M信息不变,M’信息变化的指示表Table 15, M information unchanged, M' information change instruction table
如表15所示,通过将I/D=10,将bit8~bit14中的bit9、bit10、bit13、bit14在表7的基础上进行比特位反转,并保持bit1~bit7的数据不发生变化,以指示在下一GMP块容器中映射粒度要增加2,但TS数量保持不变。As shown in Table 15, by setting I/D=10, bit9, bit10, bit13, and bit14 in bit8~bit14 are bit-inverted on the basis of Table 7, and the data of bit1~bit7 is kept unchanged. to indicate that the mapping granularity is to be increased by 2 in the next GMP block container, but the number of TS remains the same.
表16,M信息不变,M’信息变化的指示表Table 16, M information unchanged, M' information change instruction table
如表16所示,通过将I/D=01,将bit8~bit14中的bit8、bit11、bit12在表7的基础上进行比特位反转,并保持bit1~bit7的数据不发生变化,以指示在下一GMP块容器中映射粒度要减少2,但TS数量保持不变。As shown in Table 16, by setting I/D=01, bit8, bit11, and bit12 of bit8~bit14 are bit-inverted on the basis of Table 7, and the data of bit1~bit7 are kept unchanged to indicate In the next GMP block container the mapping granularity is reduced by 2, but the number of TS remains the same.
表17,M信息不变,M’信息变化的指示表Table 17, M information unchanged, M' information change instruction table
如表17所示,当映射粒度的增减幅度大于2时,直接在bit8~bit14中输入二进制数值,以指示大幅度调整后的映射粒度,即指示在下一GMP块容器中,映射粒度变化为该二进制数值所表示的值,同时由于bit1~bit7中的数据不发生变化,故TS数量仍然保持不变。As shown in Table 17, when the increase or decrease of the mapping granularity is greater than 2, directly input binary values in bit8~bit14 to indicate the greatly adjusted mapping granularity, that is, to indicate that in the next GMP block container, the mapping granularity changes as The value represented by the binary value, meanwhile, since the data in bit1~bit7 does not change, the number of TS remains unchanged.
以上具体的封装方式仅用于对本发明实施例进行说明,本发明实施例1的M信息或M’信息的放置位置以及封装方式不局限于以上所描述方式。The specific encapsulation manner above is only used to illustrate the embodiment of the present invention, and the placement position and encapsulation manner of the M information or M' information in Embodiment 1 of the present invention are not limited to the manner described above.
图5为本发明实施例1的具体方法流程图一,该方法的执行主体为发端。图5描述了GMP块容器和映射粒度同时变化的情况,如图5所示,该方法包括:FIG. 5 is a flow chart 1 of a specific method in Embodiment 1 of the present invention, and the execution subject of the method is the originator. Figure 5 depicts the simultaneous variation of the GMP block container and mapping granularity, as shown in Figure 5, the method includes:
S501、采用HO ODU的256-复帧的PSI[0~255],完成光传送网帧ODUflex占用HOODU的TS情况指示;S501. Use the PSI [0-255] of the 256-multiframe of the HO ODU to complete the indication of the TS situation of the ODUflex occupying the HOODU by the optical transport network frame;
具体地,上述TS情况指示表示该ODUflex具体由哪些TS组成(即TS的具体分布情况)等指示。Specifically, the above TS situation indication indicates which TSs the ODUflex is specifically composed of (that is, the specific distribution of TSs) and the like.
S502、当TS情况指示完成后,通过GMP OH中的M信息变化触发TS切换和映射粒度变化操作;上述M信息为GMP块容器占用的TS情况信息,至少包括GMP块容器占用的TS数量信息,还可以包括比如TS当前状态信息或者源宿端交互信息等;S502. After the TS situation indication is completed, trigger TS switching and mapping granularity change operations through the M information change in the GMP OH; the above M information is the TS situation information occupied by the GMP block container, at least including the TS quantity information occupied by the GMP block container, It can also include, for example, TS current state information or source-sink interaction information;
可选地,S502的具体过程可以包括:Optionally, the specific process of S502 may include:
在第i个GMP块容器的GMP OH中修改M信息,其中i为正整数,i≥1,可以在TS情况指示完成后根据调整需求灵活控制,即可以在TS情况指示完成后的第1个、第2个…或者第i个GMP块容器的GMP OH中修改M信息。若GMP采用同TS数量相关联的映射粒度进行映射,则M信息也即为映射粒度信息M-byte。对第i个GMP块容器的GMP OH中的M信息进行修改,指示在下一个(第i+1)GMP块容器中将进行容器调整和映射粒度变化。而第i个GMP块容器的大小仍然保持原先占用的TS数量不变,并且第i个GMP块容器中仍然采用原先的映射粒度对客户业务数据进行映射处理。Modify the M information in the GMP OH of the i-th GMP block container, where i is a positive integer, i≥1, and can be flexibly controlled according to the adjustment requirements after the TS status indication is completed, that is, the first one after the TS status indication is completed , the second ... or modify the M information in the GMP OH of the i-th GMP block container. If the GMP uses the mapping granularity associated with the number of TSs for mapping, the M information is also the mapping granularity information M-byte. Modify the M information in the GMP OH of the i-th GMP block container, indicating that container adjustment and mapping granularity changes will be performed in the next (i+1) GMP block container. However, the size of the i-th GMP block container remains the same as the number of TSs originally occupied, and the original mapping granularity is still used in the i-th GMP block container to perform mapping processing on customer service data.
在下一个(第i+1个)GMP块容器中完成TS切换和映射粒度变化。根据上一个(第i个)GMP块容器的GMP OH中的M信息,可获得第i+1个GMP块容器需要进行的调整情况,将第i+1个GMP块容器的大小调整为第i个GMP块容器的GMP OH中修改后的M信息所表示的大小。若GMP采用同TS数量相关联的映射粒度进行映射,此时M信息也即映射粒度信息M-byte,则第i+1个GMP块容器也采用第i个GMP块容器的GMP OH中修改后的M信息所表示的映射粒度。TS switching and mapping granularity changes are done in the next (i+1th) GMP block container. According to the M information in the GMP OH of the last (i-th) GMP block container, the adjustments required for the i+1-th GMP block container can be obtained, and the size of the i+1-th GMP block container is adjusted to the i-th The size indicated by the modified M information in the GMP OH of a GMP block container. If GMP uses the mapping granularity associated with the number of TSs for mapping, then the M information is also the mapping granularity information M-byte, then the i+1th GMP block container is also modified in the GMP OH of the i-th GMP block container The mapping granularity represented by the M information.
S503、当TS调整和映射粒度变化完成后,第i+1个GMP块容器中,按照调整后的容器大小和变化后的映射粒度对待发送的客户业务数据进行映射处理,即采用GMP映射处理方法将客户业务数据以变化后的映射粒度放入到调整后的GMP块容器中。在后续的GMP块容器中,按照变化后的映射粒度在调整后的块容器中对待发送的客户业务数据进行正常GMP映射处理。S503. After the TS adjustment and mapping granularity change are completed, in the i+1th GMP block container, the customer service data to be sent is mapped according to the adjusted container size and the changed mapping granularity, that is, the GMP mapping processing method is adopted Put customer business data into the adjusted GMP block container with the changed mapping granularity. In the subsequent GMP block container, normal GMP mapping processing is performed on the customer service data to be sent in the adjusted block container according to the changed mapping granularity.
图6为本发明实施例依据图5的方法进行GMP映射的示例图。如图6所示为例,第i个GMP块容器占用了3个TS,同时以3-byte映射粒度将客户业务数据映射入GMP块容器中;第i+1个GMP块容器的大小调整为了4个TS,同时以4-byte映射粒度将客户业务数据映射入GMP块容器中。FIG. 6 is an example diagram of GMP mapping performed according to the method in FIG. 5 according to an embodiment of the present invention. As shown in Figure 6 as an example, the i-th GMP block container occupies 3 TS, and at the same time, the customer service data is mapped into the GMP block container at a 3-byte mapping granularity; the size of the i+1-th GMP block container is adjusted to 4 TSs, at the same time map customer business data into GMP block containers with 4-byte mapping granularity.
图7为本发明实施例1的具体方法流程图二,该方法的执行主体为发端。图7描述了GMP块容器和映射粒度分时变化的情况,如图7所示,该方法包括:FIG. 7 is the second flow chart of the specific method in Embodiment 1 of the present invention, and the execution subject of the method is the originator. Figure 7 describes the situation of GMP block container and mapping granularity time-sharing change, as shown in Figure 7, the method includes:
S701、采用HO ODU的256-复帧的PSI[0~255],完成ODUflex占用HO ODU的TS情况指示。S701. Use the PSI [0-255] of the 256-multiframe of the HO ODU to complete the indication of the TS status of the ODUflex occupying the HO ODU.
S702、当上述TS情况指示完成后,通过GMP OH中的M信息变化进行TS切换操作,采用切换后的TS来进行GMP映射。S702. After the above TS status indication is completed, perform a TS switching operation through the change of the M information in the GMP OH, and use the switched TS to perform GMP mapping.
可选地,上述S702的具体过程可以包括:Optionally, the specific process of the above S702 may include:
在第i个GMP块容器的GMP OH中对M信息进行修改,指示在下一个(第i+1个)GMP块容器中将进行容器调整,其中i为正整数。该步骤可以在TS指示完成后,根据调整需求灵活控制,即可以在TS情况指示完成后的第1个、第2个…或者第i个GMP块容器的GMP OH中修改M信息。M信息为GMP块容器占用的TS信息,至少包括TS数量信息。第i个GMP块容器大小仍然保持原先占用的TS数量;第i个GMP块容器中仍然采用原先的映射粒度对数据进行映射处理。The M information is modified in the GMP OH of the i-th GMP block container, indicating that container adjustment will be performed in the next (i+1th) GMP block container, where i is a positive integer. This step can be flexibly controlled according to adjustment requirements after the TS indication is completed, that is, the M information can be modified in the GMP OH of the first, second... or i-th GMP block container after the TS indication is completed. The M information is the TS information occupied by the GMP block container, at least including TS quantity information. The size of the i-th GMP block container still maintains the number of TSs originally occupied; the i-th GMP block container still adopts the original mapping granularity for data mapping.
在第i+1个GMP块容器中完成TS切换。根据上一个(第i个)GMP块容器的GMP OH中的M信息,可获知第i+1个GMP块容器调整情况,将第i+1个GMP块容器调整到上述M信息所表示的大小。第i+1个GMP块容器中进行映射处理时所采用的映射粒度保持不变。Complete TS switching in the i+1th GMP block container. According to the M information in the GMP OH of the last (i-th) GMP block container, the adjustment situation of the i+1-th GMP block container can be known, and the i+1-th GMP block container can be adjusted to the size indicated by the above M information . The mapping granularity used when performing mapping processing in the i+1th GMP block container remains unchanged.
S703、通过GMP OH中的M’信息变化来触发映射粒度变化操作。S703. Trigger the mapping granularity change operation through the change of the M' information in the GMP OH.
可选地,S703的具体过程可以包括:Optionally, the specific process of S703 may include:
在第j个GMP块的GMP OH中修改M’信息。其中j为正整数,当先调整TS数量,后调整映射粒度时,j>i+1,但是本实施例中也可以先调整映射粒度后调整TS数量,因此,本实施例对i和j之间的关系不做限定。Modify the M' information in the GMP OH of the jth GMP block. Where j is a positive integer. When the number of TSs is adjusted first, and then the mapping granularity is adjusted, j>i+1, but in this embodiment, the mapping granularity can also be adjusted first, and then the number of TSs is adjusted. Therefore, in this embodiment, between i and j The relationship is not limited.
此时M’信息为GMP映射粒度信息,也即M-byte。对M’信息进行修改,指示在下一个(第j+1个)GMP块容器中映射粒度将变化为M’信息所表示的映射粒度大小。At this time, the M' information is GMP mapping granularity information, that is, M-byte. Modify the M' information to indicate that the mapping granularity in the next (j+1th) GMP block container will change to the mapping granularity indicated by the M' information.
第j个GMP块容器大小保持不变,第j个GMP块容器中仍然采用原先的映射粒度对待发送的客户业务数据进行映射处理;在第j+1个GMP块容器中完成映射粒度变化。第j+1个GMP块容器大小保持不变,即第j+1个GMP块容器大小与第j个GMP块容器的大小保持一致。根据上一个(第j个)GMP块容器的GMP OH中的M’信息,可获知第j+1个GMP块容器采用的映射粒度,将第j+1个GMP块容器中的映射粒度变化到上述M’信息所表示的大小。The size of the jth GMP block container remains unchanged, and the original mapping granularity is still used in the jth GMP block container to map the customer service data to be sent; the change of the mapping granularity is completed in the j+1th GMP block container. The size of the j+1 th GMP block container remains unchanged, that is, the size of the j+1 th GMP block container is consistent with the size of the j th GMP block container. According to the M' information in the GMP OH of the last (jth) GMP block container, the mapping granularity adopted by the j+1th GMP block container can be known, and the mapping granularity in the j+1th GMP block container is changed to The size indicated by the above M' information.
S704、当TS调整和映射粒度变化完成后,在第j+1个GMP块容器中采用变化后的映射粒度对待发送的客户业务数据进行映射处理。在后续的GMP块容器中,按照变化后的映射粒度和调整后的块容器大小对待发送的客户业务数据进行正常GMP映射处理。S704. After the TS adjustment and mapping granularity change are completed, use the changed mapping granularity to perform mapping processing on the customer service data to be sent in the j+1th GMP block container. In the subsequent GMP block container, normal GMP mapping processing is performed on the customer service data to be sent according to the changed mapping granularity and the adjusted block container size.
图8为本发明实施例1依据图7的方法进行GMP映射的示例图。如图8所示,第i个GMP块容器占用了3个TS,同时以3-byte粒度将客户业务数据映射入GMP块容器中;第i+1个GMP块容器的大小调整为了4个TS,同时仍然以3-byte粒度将客户业务数据映射入GMP块容器中;第j个GMP块容器的大小仍然保持占用4个TS,同时仍然以3-byte粒度将客户业务数据映射入GMP块容器中;第j+1个GMP块容器的大小仍然保持占用4个TS,同时映射粒度调整为4-byte,以4-byte粒度将客户业务数据映射入GMP块容器中。FIG. 8 is an example diagram of GMP mapping according to the method in FIG. 7 according to Embodiment 1 of the present invention. As shown in Figure 8, the i-th GMP block container occupies 3 TS, and at the same time, the customer service data is mapped into the GMP block container at a 3-byte granularity; the size of the i+1-th GMP block container is adjusted to 4 TS , while still mapping customer business data into GMP block containers at 3-byte granularity; the size of the jth GMP block container still occupies 4 TS, while still mapping customer business data into GMP block containers at 3-byte granularity Middle; the size of the j+1th GMP block container still occupies 4 TS, and the mapping granularity is adjusted to 4-byte, and the customer business data is mapped into the GMP block container at a 4-byte granularity.
图9为本发明实施例1中TS调整和映射粒度变化的示意图。图9中的M信息或M’信息放在每个GMP块容器的第一个GMP开销位置。如图9所示,假设ODUflex通过HO ODU2进行传送,其中ODUflex占用3个HO ODU2的TS(分别为TS1、TS3、TS4,TS速率等级为1.25Gb/s),通过GMP映射到HO ODTU2.3之后,HO ODTU2.3复用到HO ODU2。由于ODUflex速率即将增大,需要占用4个HO ODU2的TS(分别为TS1、TS3、TS4、TS5)。那么采用本发明实施例的GMP处理方法,按照如下方式操作(GMP块容器和映射粒度同时变化方式),FIG. 9 is a schematic diagram of TS adjustment and mapping granularity changes in Embodiment 1 of the present invention. The M information or M' information in Figure 9 is placed in the first GMP overhead position of each GMP chunk container. As shown in Figure 9, it is assumed that ODUflex is transmitted through HO ODU2, where ODUflex occupies three TS of HO ODU2 (TS1, TS3, TS4 respectively, and the TS rate level is 1.25Gb/s), and is mapped to HO ODTU2.3 through GMP After that, HO ODTU2.3 is multiplexed into HO ODU2. Since the rate of ODUflex is about to increase, it needs to occupy 4 TSs of HO ODU2 (TS1, TS3, TS4, TS5 respectively). Then adopt the GMP processing method of the embodiment of the present invention, operate in the following manner (GMP block container and mapping granularity change simultaneously),
1、通过HO ODU2的256-复帧的PSI[0~255]完成ODUflex占用HO ODU2的TS情况指示。其中PSI[2]、PSI[4]、PSI[5]、PSI[6]指示当前ODUflex需要占用TS1、TS3、TS4、TS5。1. Through the PSI [0-255] of the 256-multiframe of HO ODU2, complete the indication of ODUflex occupying TS of HO ODU2. Among them, PSI[2], PSI[4], PSI[5], and PSI[6] indicate that the current ODUflex needs to occupy TS1, TS3, TS4, and TS5.
2、当TS情况指示完成后,通过改变GMP OH中的M信息,触发TS切换和映射粒度变化。2. After the TS status indication is completed, trigger TS switching and mapping granularity change by changing the M information in the GMP OH.
2.1在第i个GMP块容器的GMP OH中修改M信息,M信息由3TS变为4TS。2.1 Modify the M information in the GMP OH of the i-th GMP block container, and the M information changes from 3TS to 4TS.
第i个GMP块容器大小仍然保持为HO ODTU2.3。The i-th GMP block container size remains HO ODTU2.3.
第i个GMP块中仍然采用3-bytes映射粒度对ODUflex进行映射处理。In the i-th GMP block, the ODUflex is still mapped with a 3-bytes mapping granularity.
其中i为正整数,可以在TS情况指示完成后根据调整需求灵活控制。Wherein, i is a positive integer, which can be flexibly controlled according to adjustment requirements after the TS status indication is completed.
2.2在第i+1个GMP块中完成TS切换和映射粒度变化。2.2 Complete TS switching and mapping granularity change in the i+1th GMP block.
根据上一个(第i个)GMP块容器的GMP OH中的M信息,将当前GMP块容器调整为HOODTU2.4。Adjust the current GMP block container to HOODTU2.4 according to the M information in the GMP OH of the previous (i-th) GMP block container.
同时在第i+1个GMP块容器中采用4-bytes映射粒度对ODUflex进行映射处理。At the same time, the ODUflex is mapped with a 4-bytes mapping granularity in the i+1th GMP block container.
3、当TS调整和映射粒度变化完成后,GMP按照4-bytes映射粒度在块容器HOODTU2.4中进行正常映射处理。3. After TS adjustment and mapping granularity changes are completed, GMP performs normal mapping processing in the block container HOODTU2.4 according to the 4-bytes mapping granularity.
现有技术中,当需要进行TS调整时,发端只能通过向收端发送256-复帧的PSI[0~255]完成ODUflex占用HO ODU的TS情况指示,但无法让收端感知到发端在何时进行TS切换操作。由于HO ODUk的速率等级不一,存在GMP块容器同256-复帧周期边界不对齐现象(例如,在ODU3中,其GMP块容器占用到了ODU3的32-复帧TS;在ODU4中,其GMP块容器占用到了ODU4的80-复帧TS。80同256不存在倍数关系,因此会存在GMP块容器同256-复帧周期边界不对齐现象),从而导致TS切换时造成数据损伤。In the existing technology, when TS adjustment is required, the sender can only complete the indication of the TS status of ODUflex occupying HO ODU by sending 256-multiframe PSI [0~255] to the receive end, but it cannot make the receive end perceive that the sender is in the When to perform TS switching operation. Due to the different rate levels of HO ODUk, there is a phenomenon that the GMP block container is not aligned with the boundary of the 256-multiframe period (for example, in ODU3, the GMP block container occupies the 32-multiframe TS of ODU3; in ODU4, the GMP The block container occupies the 80-multiframe TS of ODU4. There is no multiple relationship between 80 and 256, so there will be a phenomenon that the GMP block container is not aligned with the 256-multiframe cycle boundary), which will cause data damage when TS is switched.
综上所述,现有技术的GMP只能做到针对固定容器下的映射处理,但无法做到针对可变容器情况下的有效处理。随着GMP块容器的调整,为了做到不损伤数据,需要GMP针对容器调整时具有自适应的能力,而现有技术中GMP无法做到针对可变容器的自适应处理,故无法达到无损数据的目的。To sum up, the GMP in the prior art can only perform mapping processing for fixed containers, but cannot effectively process for variable containers. With the adjustment of GMP block containers, in order not to damage data, GMP needs to have the ability to adapt to container adjustments. However, in the prior art, GMP cannot achieve adaptive processing for variable containers, so lossless data cannot be achieved. the goal of.
本发明实施例1的方法,通过在通用映射规程开销GMP OH中,携带GMP块容器需要占用的时隙TS信息,并通过TS信息的变化来触发调整下一GMP块容器的大小,实现了在TS调整的过程中无损切换TS。由于采用同占用的TS信息相关联的映射粒度进行映射处理,所以通过修改GMP OH中添加的TS信息,同时可以相应地改变下一GMP块容器采用的映射粒度;或通过分别修改GMPOH添加的TS信息和映射粒度信息,可以使GMP块容器和映射粒度分时进行变化。该方法增强了GMP的自适应,能够针对可变容器和可变映射粒度做到无损映射解映射处理。In the method of Embodiment 1 of the present invention, by carrying the time slot TS information that the GMP block container needs to occupy in the general mapping procedure overhead GMP OH, and triggering the adjustment of the size of the next GMP block container through the change of the TS information, it is realized in the Lossless switching of TS during TS adjustment. Since the mapping process is performed using the mapping granularity associated with the occupied TS information, by modifying the TS information added in GMP OH, the mapping granularity used by the next GMP block container can be changed accordingly; or by modifying the TS added by GMPOH respectively The information and mapping granularity information can make the GMP block container and mapping granularity change in time-sharing. The method enhances the self-adaptation of GMP, and can achieve lossless mapping and demapping processing for variable containers and variable mapping granularity.
实施例2:Example 2:
本发明实施例2提供了一种通用映射规程GMP解映射方法,该方法为收端的处理方法。Embodiment 2 of the present invention provides a general mapping procedure GMP demapping method, which is a processing method at the receiving end.
图10为本发明实施例2的整体方法流程图。如图10所示,该方法包括:FIG. 10 is a flow chart of the overall method of Embodiment 2 of the present invention. As shown in Figure 10, the method includes:
S1001、获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的时隙TS信息;S1001. Obtain the time slot TS information to be occupied by the i+n GMP block container carried by the overhead GMP OH of the i-th GMP block container;
S1002、根据第i+n个GMP块容器的TS信息,对第i+n个块容器的客户业务数据进行GMP解映射。S1002. Perform GMP demapping on the customer service data of the i+nth GMP block container according to the TS information of the i+nth GMP block container.
解映射的处理对象也是客户业务数据,即将客户业务数据从GMP块容器中解映射出来。The processing object of the demapping is also the customer service data, that is, the customer service data is demapped from the GMP block container.
在一可选实施方式中,所述TS信息包括TS数量,所述TS数量与映射粒度相关联,GMP块容器和映射粒度同时变化,对应于该可选的实施方式:In an optional implementation manner, the TS information includes the number of TSs, the number of TSs is associated with the mapping granularity, and the GMP block container and the mapping granularity change at the same time, corresponding to this optional implementation manner:
上述方法具体包括:获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的TS数量;根据第i+n个GMP块容器的TS数量以及与所述TS数量相关联的映射粒度,对第i+n个块容器的客户业务数据进行GMP解映射。The above method specifically includes: obtaining the number of TSs that need to be occupied by the i+n GMP block container carried by the overhead GMP OH of the i-th GMP block container; The associated mapping granularity performs GMP demapping on the customer service data of the i+nth block container.
在另一可选实施方式中,TS信息包括TS数量和映射粒度,GMP块容器和映射粒度分时变化,对应于该可选的实施方式:In another optional implementation, the TS information includes TS quantity and mapping granularity, GMP block container and mapping granularity time-sharing change, corresponding to this optional implementation:
上述方法具体包括:获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的TS数量;根据第i+n个GMP块容器的TS数量和第i个GMP块容器的映射粒度对第i+n个GMP块容器的客户业务数据进行GMP解映射;获取第j个GMP块容器的开销GMP OH携带的第j+m个GMP块容器的映射粒度;根据第j个GMP块容器的TS数量和第j+m个GMP块容器的映射粒度对第j+m个GMP块容器的客户业务数据进行GMP解映射。The above method specifically includes: obtaining the number of TSs that need to be occupied by the i+n GMP block container carried by the overhead GMP OH of the i-th GMP block container; The mapping granularity of the container performs GMP demapping on the customer service data of the i+nth GMP block container; obtains the mapping granularity of the j+mth GMP block container carried by the overhead GMP OH of the jth GMP block container; according to the jth The TS quantity of the first GMP block container and the mapping granularity of the j+mth GMP block container perform GMP demapping on the customer service data of the j+mth GMP block container.
为了便于描述,本实施例以n=1为例来详细说明该GMP解映射的原理。图11为本发明实施例2的具体方法流程图一,该流程图对应于GMP块容器和映射粒度同时变化的情形。如图11所示,该方法包括:For ease of description, this embodiment takes n=1 as an example to describe the principle of the GMP demapping in detail. FIG. 11 is a flow chart 1 of the specific method of Embodiment 2 of the present invention, which corresponds to the situation where the GMP block container and mapping granularity change simultaneously. As shown in Figure 11, the method includes:
S1101、根据接收到HO ODU的256-复帧的PSI[0~255]指示,获取ODUflex需占用HOODU的TS情况;S1101. According to the PSI [0-255] indication of the 256-multiframe of the received HO ODU, obtain the TS situation that the ODUflex needs to occupy the HOODU;
S1102、当获取到上述TS情况指示后,通过检测GMP OH中的M信息变化进行相应GMP解映射处理;S1102. After obtaining the above-mentioned TS status indication, perform corresponding GMP demapping processing by detecting the change of M information in the GMP OH;
可选地,S1102的过程具体可以包括:Optionally, the process of S1102 may specifically include:
1)检测GMP块容器的GMP OH中的M信息,并进行相应处理。1) Detect the M information in the GMP OH of the GMP block container and handle it accordingly.
当检测到某一个(例如第i个)GMP块容器的GMP OH中的M信息发生变化,则表示在下一个(第i+1个)GMP块容器中,进行了TS调整,也即GMP块容器大小进行了调整,同时映射粒度也进行了变化,指示在下一个(第i+1个)GMP块容器需要按照M信息所表示的映射粒度和块容器进行解映射处理。否则,指示在下一个(第i+1个)GMP块容器,仍然按照原有映射粒度和原有块容器进行GMP解映射处理。When it is detected that the M information in the GMP OH of a certain (for example, i-th) GMP block container has changed, it means that in the next (i+1) GMP block container, TS adjustment has been performed, that is, the GMP block container The size is adjusted, and the mapping granularity is also changed, indicating that the next (i+1th) GMP block container needs to be demapped according to the mapping granularity and block container represented by the M information. Otherwise, it indicates that in the next (i+1th) GMP block container, the GMP demapping process is still performed according to the original mapping granularity and the original block container.
2)在下一个GMP块容器中进行解映射处理。2) Demap processing in the next GMP block container.
根据上一个(第i个)GMP块容器的GMP OH中的M信息指示,进行相应解映射处理。当上述M信息指示TS进行了切换,则在M信息所表示的GMP块容器中,按照M信息所表示的映射粒度进行解映射处理,即在第i+1个GMP块容器中,按照上述M信息所表示的块容器大小和上述M信息所表示的映射粒度进行解映射处理,也即在上述M信息所表示大小的块容器中,通过GMP解映射处理,将客户业务数据以上述M信息所表示的映射粒度解映射出来;否则,仍然在原有GMP块容器中采用原有映射粒度进行GMP解映射处理。According to the M information indication in the GMP OH of the previous (i-th) GMP block container, corresponding demapping processing is performed. When the above M information indicates that the TS has been switched, in the GMP block container represented by the M information, the demapping process is performed according to the mapping granularity represented by the M information, that is, in the i+1th GMP block container, according to the above M The size of the block container represented by the information and the mapping granularity represented by the above-mentioned M information are demapped, that is, in the block container of the size represented by the above-mentioned M information, the customer service data is converted into The mapping granularity indicated by is demapped; otherwise, the original mapping granularity is still used in the original GMP block container for GMP demapping processing.
S1103、当TS调整和映射粒度变化完成后,按照变化后的映射粒度在调整后的块容器中进行正常GMP解映射处理。S1103. After the TS adjustment and mapping granularity change are completed, perform normal GMP demapping processing in the adjusted block container according to the changed mapping granularity.
本发明实施例2依据图11所示的方法进行GMP解映射的示例图可以参考图6。如图6所示,第i个GMP块容器占用了3个TS,同时以3-byte粒度将客户业务数据从GMP块容器中解映射出来;第i+1个GMP块容器的大小调整为了4个TS,同时以4-byte粒度将客户业务数据从GMP块容器中解映射出来。Refer to FIG. 6 for an example diagram of performing GMP demapping according to the method shown in FIG. 11 in Embodiment 2 of the present invention. As shown in Figure 6, the i-th GMP block container occupies 3 TSs, and at the same time demaps customer service data from the GMP block container at a 3-byte granularity; the size of the i+1-th GMP block container is adjusted to 4 TS, and at the same time demap customer business data from the GMP block container at a 4-byte granularity.
图12为本发明实施例2的具体方法流程图二,该流程图对应于GMP块容器和映射粒度分时变化的情形。如图12所示,该方法包括:FIG. 12 is the second flow chart of the specific method of Embodiment 2 of the present invention, which corresponds to the time-division change of the GMP block container and mapping granularity. As shown in Figure 12, the method includes:
S1201、根据接收到HO ODU的256-复帧的PSI[0~255]指示,获取ODUflex需占用HOODU的TS情况。S1201. According to the PSI [0-255] indication of the 256-multiframe of the received HO ODU, obtain the TS situation that the ODUflex needs to occupy the HOODU.
S1202、当获取到TS情况指示后,通过检测GMP OH中的M信息变化进行容器调整时对应的GMP解映射处理。S1202. After the TS condition indication is obtained, the corresponding GMP demapping process is performed when the container is adjusted by detecting the change of the M information in the GMP OH.
可选地,S1202的具体过程包括:Optionally, the specific process of S1202 includes:
1)检测GMP块容器的GMP OH中的M信息,并进行相应处理。1) Detect the M information in the GMP OH of the GMP block container and handle it accordingly.
当检测到第i个GMP块容器的GMP OH中的M信息发生变化,则表示在下一个(第i+1个)GMP块容器中,进行了TS调整,也即第i+1个GMP块容器大小进行了调整,指示在下一个GMP块容器需要按照变化后的M信息所表示的块容器进行解映射处理。否则指示在下一个GMP块容器仍然按照原有块容器进行解映射处理。在第i个GMP块容器中依然按照原有的块容器大小进行解映射处理。When it is detected that the M information in the GMP OH of the i-th GMP block container changes, it means that in the next (i+1th) GMP block container, the TS adjustment is performed, that is, the i+1-th GMP block container The size is adjusted, indicating that the next GMP block container needs to be demapped according to the block container represented by the changed M information. Otherwise, it indicates that the next GMP block container is still demapped according to the original block container. In the i-th GMP block container, the demapping process is still performed according to the size of the original block container.
2)在下一个(第i+1个)GMP块容器中进行解映射处理。2) Perform demapping processing in the next (i+1th) GMP block container.
根据上一个(第i个)GMP块容器的GMP OH中的M信息指示,进行相应解映射处理。当指示TS进行了切换,则第i+1个GMP块容器按照变化后的M信息所表示的块容器大小,进行解映射处理;否则第i+1个GMP块容器仍然按照原有块容器大小进行解映射处理。其中第i+1个GMP块容器解映射时采用的映射粒度保持不变。According to the M information indication in the GMP OH of the previous (i-th) GMP block container, corresponding demapping processing is performed. When the TS is instructed to switch, the i+1th GMP block container is demapped according to the size of the block container represented by the changed M information; otherwise, the i+1th GMP block container is still in accordance with the original block container size Perform demapping processing. Wherein, the mapping granularity adopted when the i+1th GMP block container is demapped remains unchanged.
S1203、通过检测GMP OH中的M’信息变化,进行映射粒度变化时的对应GMP解映射处理。S1203. By detecting the change of M' information in the GMP OH, perform the corresponding GMP demapping process when the mapping granularity changes.
可选地,S1203的具体过程可以包括:Optionally, the specific process of S1203 may include:
1)检测GMP块的GMP OH中的M’信息,并进行相应处理。1) Detect the M' information in the GMP OH of the GMP block and process accordingly.
当第j个GMP块容器的GMP OH中的M’信息发生变化,则表示在下一个(第j+1个)GMP块容器中,映射粒度进行了变化,指示在下一个(第j+1个)GMP块容器需要按照M’信息所表示的映射粒度进行解映射处理。否则指示在下一个(第j+1个)GMP块容器仍然按照原有映射粒度进行解映射处理。其中j为正整数。When the M' information in the GMP OH of the jth GMP block container changes, it means that in the next (j+1th) GMP block container, the mapping granularity has changed, indicating that in the next (j+1th) The GMP block container needs to be demapped according to the mapping granularity indicated by the M' information. Otherwise, it indicates that the next (j+1th) GMP block container is still demapped according to the original mapping granularity. where j is a positive integer.
2)在下一个(第j+1个)GMP块容器中进行解映射处理。2) Perform demapping processing in the next (j+1th) GMP block container.
根据上一个(第j个)GMP块的GMP OH中的M’信息指示,进行相应解映射处理。当指示GMP的映射粒度进行了变化,则在第j+1个GMP块容器中按照M’信息所表示的映射粒度进行解映射处理;否则在第j+1个GMP块容器中仍然采用原有映射粒度进行解映射处理。其中,第j+1个GMP块容器大小保持不变。According to the M' information indication in the GMP OH of the last (jth) GMP block, perform corresponding demapping processing. When the mapping granularity of the indicated GMP has been changed, the demapping process is performed in the j+1th GMP block container according to the mapping granularity represented by the M' information; otherwise, the original j+1th GMP block container is still used Mapping granularity for demapping processing. Wherein, the size of the j+1th GMP block container remains unchanged.
S1204、当TS调整和映射粒度变化完成后按照变化后的映射粒度在调整后的块容器中进行正常GMP解映射处理。S1204. After the TS adjustment and mapping granularity change are completed, perform normal GMP demapping processing in the adjusted block container according to the changed mapping granularity.
本发明实施例2依据图12所示的方法进行GMP解映射的示例图可以参考图8。如图8所示,第i个GMP块容器占用了3个TS,同时以3-byte粒度将客户业务数据从GMP块容器中解映射出来;第i+1个GMP块容器的大小调整为了4个TS,同时仍然以3-byte粒度将客户业务数据从GMP块容器中解映射出来;第j个GMP块容器的大小仍然保持占用4个TS,同时仍然以3-byte粒度将客户业务数据从GMP块容器中解映射出来;第j+1个GMP块容器的大小仍然保持占用4个TS,同时解映射粒度调整为4-byte,以4-byte粒度将客户业务数据从GMP块容器中解映射出来。Refer to FIG. 8 for an example diagram of performing GMP demapping according to the method shown in FIG. 12 in Embodiment 2 of the present invention. As shown in Figure 8, the i-th GMP block container occupies 3 TSs, and at the same time demaps customer service data from the GMP block container at a 3-byte granularity; the size of the i+1-th GMP block container is adjusted to 4 TS, while still demapping customer business data from the GMP block container at a 3-byte granularity; the size of the jth GMP block container still occupies 4 TS, while still demapping customer business data from the GMP block container at a 3-byte granularity It is demapped from the GMP block container; the size of the j+1th GMP block container still occupies 4 TS, and the demapping granularity is adjusted to 4-byte, and the customer business data is decoded from the GMP block container at a 4-byte granularity. Map out.
以下通过具体的例子来说明本发明实施例2的技术方案:The technical scheme of Embodiment 2 of the present invention is illustrated below by specific examples:
1、根据接收到HO ODU2的256-复帧的PSI[0~255]指示,获取ODUflex需占用HOODU2的TS1、TS3、TS4、TS5的指示。1. Obtain the indication that ODUflex needs to occupy TS1, TS3, TS4, and TS5 of HOODU2 according to the received PSI [0-255] indication of the 256-multiframe of HO ODU2.
2、当获取到TS情况指示后,通过检测GMP OH中的M信息变化进行相应GMP解映射处理。2. After the TS status indication is obtained, the corresponding GMP demapping process is performed by detecting the change of the M information in the GMP OH.
2.1检测到第i个GMP块容器的GMP OH中的M信息由3TS变为4TS,并触发响应操作。2.1 Detect that the M information in the GMP OH of the i-th GMP block container changes from 3TS to 4TS, and trigger a response operation.
指示在下一个(第i+1个)GMP块中,进行了TS调整,也即第i+1个GMP块容器调整为HO ODTU2.4,同时映射粒度也变化为4-bytes。Indicates that in the next (i+1th) GMP block, TS adjustment is performed, that is, the i+1th GMP block container is adjusted to HO ODTU2.4, and the mapping granularity is also changed to 4-bytes.
第i个GMP块容器大小仍然保持为HO ODTU2.3。The i-th GMP block container size remains HO ODTU2.3.
第i个GMP块容器中仍然采用3-bytes映射粒度将ODUflex解映射出来。The i-th GMP block container still adopts 3-bytes mapping granularity to demap ODUflex.
2.2在下一个GMP(第i+1个)块容器中进行解映射处理。2.2 Perform demapping processing in the next GMP (i+1th) block container.
根据上一个(第i个)GMP块容器的GMP OH中的M信息指示,在调整后的GMP块容器HOODTU2.4中按照变化后的映射粒度4-bytes进行解映射处理。According to the M information indication in the GMP OH of the last (i-th) GMP block container, the demapping process is performed according to the changed mapping granularity of 4-bytes in the adjusted GMP block container HOODTU2.4.
3、当TS调整和映射粒度变化完成后,GMP按照4-bytes映射粒度在块容器HOODTU2.4中进行正常解映射处理。3. After TS adjustment and mapping granularity changes are completed, GMP performs normal demapping processing in the block container HOODTU2.4 according to the 4-bytes mapping granularity.
本发明实施例2的方法,通过检测在通用映射规程开销GMP OH中,GMP块容器占用的时隙TS信息是否改变;当检测到TS信息或映射粒度信息发生变化时,触发GMP块容器大小和映射粒度做相应的调整,并根据改变后的所述TS信息所表示的块容器大小进行解映射处理,做到了针对可变容器和针对可变映射粒度的自适应处理,实现了对TS的无损调整。In the method of Embodiment 2 of the present invention, by detecting whether the TS information of the time slot occupied by the GMP block container changes in the general mapping procedure overhead GMP OH; when it is detected that the TS information or the mapping granularity information changes, trigger the The mapping granularity is adjusted accordingly, and the demapping process is performed according to the block container size represented by the changed TS information, so as to achieve adaptive processing for variable containers and variable mapping granularity, and realize lossless TS Adjustment.
实施例3:Example 3:
本发明实施例3提供了一种通用映射规程GMP映射装置,该装置能够实现实施例1的映射方法。Embodiment 3 of the present invention provides a general mapping procedure GMP mapping device, which can implement the mapping method in Embodiment 1.
图13为本发明实施例3的一种通用映射规程GMP映射装置的功能框图。如图13所示,该装置10包括:Fig. 13 is a functional block diagram of a general mapping procedure GMP mapping device according to Embodiment 3 of the present invention. As shown in Figure 13, the device 10 includes:
封装单元101,用于在第i个GMP块容器的开销GMP OH中,携带第i+n个GMP块容器需要占用的时隙TS信息;The encapsulation unit 101 is configured to carry the time slot TS information to be occupied by the i+n GMP block container in the overhead GMP OH of the i-th GMP block container;
适配单元102,用于根据所述第i+n个GMP块容器需要占用的TS信息,对第i+n个GMP块容器进行调整;An adaptation unit 102, configured to adjust the i+nth GMP block container according to the TS information that the i+nth GMP block container needs to occupy;
映射单元103,用于根据调整后的第i+n个GMP块容器对待发送的客户业务数据进行GMP映射。The mapping unit 103 is configured to perform GMP mapping on the customer service data to be sent according to the adjusted i+nth GMP block container.
1)可选地,所述TS信息包括TS数量,所述TS数量与映射粒度相关联。1) Optionally, the TS information includes a TS quantity, and the TS quantity is associated with a mapping granularity.
对应于这种情况,所述封装单元101,还可以用于在第i个GMP块容器的开销GMP OH中携带需要调整的第i+n个GMP块容器的TS数量;所述适配单元102,还可以用于根据所述TS数量,同时调整第i+n个GMP块容器的大小和映射粒度;所述映射单元103,还可以用于根据调整后的第i+n个GMP块容器的大小和映射粒度对所述待发送的客户业务数据进行GMP映射。Corresponding to this situation, the encapsulation unit 101 can also be used to carry the TS quantity of the i+nth GMP block container that needs to be adjusted in the overhead GMP OH of the i-th GMP block container; the adaptation unit 102 , can also be used to simultaneously adjust the size and mapping granularity of the i+nth GMP block container according to the number of TSs; the mapping unit 103 can also be used to adjust the size and mapping granularity of the i+nth GMP block container according to the adjusted The size and mapping granularity perform GMP mapping on the customer service data to be sent.
2)可选地,所述TS信息包括TS数量和映射粒度。2) Optionally, the TS information includes TS quantity and mapping granularity.
对应于这种情况,所述封装单元101,还可以用于在第i个GMP块容器的开销GMP OH中携带需要调整的第i+n个GMP块容器的TS数量;所述适配单元102,还可以用于根据所述TS数量,对第i+n个GMP块容器的大小进行调整;所述映射单元103,还可以用于根据调整后的第i+n个GMP块容器的大小和第i个GMP块容器的映射粒度对所述待发送的客户业务数据进行GMP映射。Corresponding to this situation, the encapsulation unit 101 can also be used to carry the TS quantity of the i+nth GMP block container that needs to be adjusted in the overhead GMP OH of the i-th GMP block container; the adaptation unit 102 , can also be used to adjust the size of the i+nth GMP block container according to the number of TSs; the mapping unit 103 can also be used to adjust the size of the i+nth GMP block container according to the adjusted size and The mapping granularity of the i-th GMP block container performs GMP mapping on the customer service data to be sent.
可选地,所述封装单元101,还可以用于在第j个GMP块容器的开销GMPOH中携带需要调整的第j+m个GMP块容器的映射粒度;所述适配单元102,还可以用于根据携带的映射粒度,对第j+m个GMP块容器的映射粒度进行调整;所属映射单元103,还可以用于根据第j个GMP块容器的大小和第j+m个GMP块容器的映射粒度对所述待发送的客户业务数据进行GMP映射。Optionally, the encapsulation unit 101 may also be configured to carry the mapping granularity of the j+mth GMP block container that needs to be adjusted in the overhead GMPOH of the jth GMP block container; the adaptation unit 102 may also be It is used to adjust the mapping granularity of the j+mth GMP block container according to the carried mapping granularity; the mapping unit 103 can also be used to adjust the j+mth GMP block container according to the size of the jth GMP block container and the j+mth GMP block container GMP mapping is performed on the customer service data to be sent at the mapping granularity.
图14为本发明实施例3的装置的详细功能框图。如图14所示,该装置20包括:Fig. 14 is a detailed functional block diagram of the device according to Embodiment 3 of the present invention. As shown in Figure 14, the device 20 includes:
串并变换单元201:用于将串行数据以字节粒度分发到M个缓存管道,其中M为ODUflex占用的HO ODU的TS数量,也为映射粒度;当映射粒度为3-byte时,串并变换单元201一次将3个bytes的客户数据并行写入3个缓存管道,即向上述3个缓存管道中的每个缓存管道分别写入一个byte的客户数据;Serial-to-parallel conversion unit 201: used to distribute serial data to M buffer pipelines at byte granularity, where M is the number of TSs of HO ODUs occupied by ODUflex, and also the mapping granularity; when the mapping granularity is 3-byte, the serial And the conversion unit 201 writes the client data of 3 bytes in parallel into 3 cache pipelines at a time, that is, writes the client data of 1 byte respectively to each cache pipeline in the above-mentioned 3 cache pipelines;
通道单元(Channel1~Channel M)206:为字节粒度缓存管道;Channel unit (Channel1-Channel M) 206: caches pipelines at byte granularity;
信息产生单元202:产生映射时的数据信息C8M和时钟信息C8-delta,其中C8M为映射入GMP块容器的M字节粒度的数据量;时钟信息指将客户数据映射入GMP块容器时的快慢程度或映射速率;Information generation unit 202: generate data information C8M and clock information C8-delta during mapping, wherein C8M is the data volume of M bytes granularity mapped into the GMP block container; clock information refers to the speed when customer data is mapped into the GMP block container degree or mapping rate;
映射单元203:用于按照一定映射算法从M个缓存管道中读取数据,上述映射算法例如为“sigma-delta”算法;如,当映射粒度为3时,以3个bytes为单位的方式从3个缓存管道中读出客户数据至封装单元;Mapping unit 203: used to read data from M buffer pipelines according to a certain mapping algorithm, the above-mentioned mapping algorithm is, for example, a "sigma-delta" algorithm; for example, when the mapping granularity is 3, read data from Read customer data from 3 buffer pipelines to the encapsulation unit;
封装单元204:用于将数据和开销封装成帧;Encapsulation unit 204: for encapsulating data and overhead into frames;
TS适配单元205:用于在GMP映射过程中对TS调整以及映射粒度变化进行触发操作。当TS调整时(假设TS由M-1个变为M个),按照一定次序触发串并变换单元201、映射单元203、封装单元204进行相应处理,具体处理方法包括:TS适配单元205根据缓存管道数据深度(当前缓存管道中存放的数据量)、C8M值以及GMP块周期(映射处理完一个GMP块容器的时间,也指复帧周期),计算在何时触发串并变换单元由分发到M-1个缓存管道,切换为分发到M个缓存管道,即切换后写入缓存管道的数据将被映射到容器调整后的GMP块中。TS adaptation unit 205: for triggering TS adjustment and mapping granularity changes during the GMP mapping process. When the TS is adjusted (assuming that the TS is changed from M-1 to M), the serial-to-parallel conversion unit 201, the mapping unit 203, and the encapsulation unit 204 are triggered in a certain order to perform corresponding processing. The specific processing method includes: the TS adaptation unit 205 according to Cache pipeline data depth (the amount of data stored in the current cache pipeline), C8M value and GMP block cycle (the time to map and process a GMP block container, also refers to the multi-frame cycle), calculate when to trigger the serial-to-parallel conversion unit by the distribution To M-1 cache pipelines, switch to distribute to M cache pipelines, that is, the data written to the cache pipelines after switching will be mapped to the adjusted GMP block of the container.
以下举例说明TS和M同时切换时的处理过程:The following example illustrates the processing when TS and M are switched at the same time:
假设在GMP块容器起始时刻,缓存管道数据深度为D;当前GMP块容器中需要映射入的M-1字节粒度的客户数据量表示为C8(M-1)_cur,其中C8(M-1)_cur>=D>0,则在M-1个缓存管道入口侧写入C8(M-1)_cur-D个M-1字节粒度的数据后,串并变换单元201由分发到M-1个缓存管道切换为分发到M个缓存管道,也即切换为在M个缓存管道入口侧开始写入M字节粒度的数据。Assume that at the initial moment of the GMP block container, the data depth of the cache pipeline is D; the amount of customer data at the M-1 byte granularity that needs to be mapped into the current GMP block container is expressed as C8(M-1)_cur, where C8(M- 1) _cur>=D>0, after writing C8(M-1)_cur-D data of M-1 byte granularity on the entrance side of M-1 cache pipelines, the serial-to-parallel conversion unit 201 is distributed to M -1 cache pipeline is switched to be distributed to M cache pipelines, that is, switched to start writing data of M byte granularity on the entry side of M cache pipelines.
映射单元203,在当前GMP块周期在M-1个缓存管道读取完C8(M-1)_cur个M-1字节粒度数据后,在下个GMP块开始时刻切换为在M个缓存管道读取M字节粒度数据,此切换时刻为GMP块边界。封装单元204,在HO ODU复帧边界处将GMP块容器(HO ODTU.M)复用到HO ODU。信息产生单元202,用于将生成的数据信息和时钟信息输入至封装单元204,上述数据信息和时钟信息包含于GMP OH;封装单元204,还用于生成ODU OH和OTU OH,从而封装单元204可以用于将上述ODU OH、OTU OH和GMP OH作为OTN帧的开销,并将此帧开销与有效的客户数据封装成帧。Mapping unit 203, after reading C8(M-1)_cur pieces of M-1 byte granularity data in M-1 cache pipelines in the current GMP block cycle, switches to read in M cache pipelines at the beginning of the next GMP block Take M-byte granularity data, and this switching moment is the GMP block boundary. The encapsulation unit 204 multiplexes the GMP block container (HO ODTU.M) into the HO ODU at the boundary of the HO ODU multiframe. The information generation unit 202 is used to input the generated data information and clock information to the encapsulation unit 204, and the above data information and clock information are included in the GMP OH; the encapsulation unit 204 is also used to generate ODU OH and OTU OH, so that the encapsulation unit 204 It can be used to use the above ODU OH, OTU OH and GMP OH as the overhead of the OTN frame, and encapsulate the frame overhead and effective customer data into a frame.
本发明实施例的装置,通过对时隙TS调整和映射粒度变化进行触发操作,从而可以增强GMP的自适应性,针对可变容器和可变映射粒度做到无损映射解映射处理。The device of the embodiment of the present invention can enhance the adaptability of GMP by triggering the adjustment of the time slot TS and the change of the mapping granularity, and achieve lossless mapping and demapping processing for variable containers and variable mapping granularity.
实施例4:Example 4:
本发明实施例4提供了一种通用映射规程GMP解映射装置,该装置能够实现实施例2的解映射方法。Embodiment 4 of the present invention provides a general mapping procedure GMP demapping device, which can implement the demapping method in Embodiment 2.
图15为本发明实施例4的GMP解映射装置的的整体功能框图。如图15所示,该装置30包括:FIG. 15 is an overall functional block diagram of a GMP demapping device according to Embodiment 4 of the present invention. As shown in Figure 15, the device 30 includes:
解封装单元301,用于获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的时隙TS信息;The decapsulation unit 301 is configured to obtain the time slot TS information to be occupied by the i+n GMP block container carried by the overhead GMP OH of the i-th GMP block container;
解映射单元302,用于根据第i+n个GMP块容器的TS信息,对第i+n个块容器的客户业务数据进行GMP解映射。The demapping unit 302 is configured to perform GMP demapping on the customer service data of the i+nth GMP block container according to the TS information of the i+nth GMP block container.
可选地,所述TS信息包括TS数量,所述TS数量与映射粒度相关联;所述解封装单元301,用于获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的TS数量;所述解映射单元302,用于根据第i+n个GMP块容器的TS数量以及与所述TS数量相关联的映射粒度,对第i+n个块容器的客户业务数据进行GMP解映射。Optionally, the TS information includes the number of TSs, and the number of TSs is associated with the mapping granularity; the decapsulation unit 301 is configured to obtain the i+nth GMP carried by the overhead GMP OH of the ith GMP block container The number of TSs that the block container needs to occupy; the demapping unit 302 is configured to, according to the number of TSs of the i+nth GMP block container and the mapping granularity associated with the number of TSs, map the i+nth block container GMP de-mapping of customer business data.
可选地,所述TS信息包括TS数量和映射粒度;所述解封装单元301,可以用于获取第i个GMP块容器的开销GMP OH携带的第i+n个GMP块容器需要占用的TS数量;所述解映射单元302,可以用于根据第i+n个GMP块容器的TS数量和第i个GMP块容器的映射粒度对第i+n个GMP块容器的客户业务数据进行GMP解映射;所述解封装单元301,还可以用于获取第j个GMP块容器的开销GMP OH携带的第j+m个GMP块容器的映射粒度;所述解映射单元302,还可以用于根据第j个GMP块容器的TS数量和第j+m个GMP块容器的映射粒度对第j+m个GMP块容器的客户业务数据进行GMP解映射。Optionally, the TS information includes TS quantity and mapping granularity; the decapsulation unit 301 can be used to obtain the TS that needs to be occupied by the i+nth GMP block container carried by the overhead GMP OH of the i-th GMP block container Quantity; the demapping unit 302 can be used to perform GMP resolution on the customer service data of the i+n GMP block container according to the TS quantity of the i+n GMP block container and the mapping granularity of the i GMP block container Mapping; the decapsulation unit 301 can also be used to obtain the mapping granularity of the j+mth GMP block container carried by the overhead GMP OH of the jth GMP block container; the demapping unit 302 can also be used to The TS quantity of the j-th GMP block container and the mapping granularity of the j+m-th GMP block container perform GMP de-mapping on the customer service data of the j+m-th GMP block container.
图16为本发明实施例4的装置的详细功能框图。如图16所示,该装置40包括:Fig. 16 is a detailed functional block diagram of the device according to Embodiment 4 of the present invention. As shown in Figure 16, the device 40 includes:
解封装单元401,用于将开销从光传送网帧中提取出来;A decapsulation unit 401, configured to extract the overhead from the optical transport network frame;
TS适配单元402,用于从所述开销中获取映射过程中的时隙TS变化信息和映射粒度变化信息,并进行相应的触发操作;The TS adaptation unit 402 is configured to obtain the time slot TS change information and mapping granularity change information during the mapping process from the overhead, and perform corresponding trigger operations;
信息获取单元403,用于从所述开销中获取数据信息C8M和时钟信息C8-delta;An information obtaining unit 403, configured to obtain data information C8M and clock information C8-delta from the overhead;
解映射单元404,用于将所述光传送网帧中承载的客户业务数据解映射出来,并写入多个字节粒度缓存管道206;A demapping unit 404, configured to demap the customer service data carried in the optical transport network frame, and write it into a plurality of byte granular buffer pipelines 206;
并串变换单元405,用于将所述多个字节粒度缓存管道(Channel1~Channel M)406中的所述净荷数据合并为串行数据流。A parallel-to-serial conversion unit 405, configured to combine the payload data in the plurality of byte granular buffer pipelines (Channel1˜Channel M) 406 into a serial data stream.
DDS(Direct Digital Synthesizer)为直接数字频率合成器,用于恢复客户业务时钟。DDS (Direct Digital Synthesizer) is a direct digital frequency synthesizer, used to restore customer service clock.
本发明实施例的装置,通过从所述开销中获取映射过程中的时隙TS变化信息和映射粒度变化信息,并进行相应的触发操作,提供了一种针对可变容器和可变映射粒度的GMP自适应处理方法和一种无损切换TS的触发机制,该装置增强了GMP的自适应,针对可变容器和可变映射粒度做到无损映射解映射处理。The device in the embodiment of the present invention provides a variable container and variable mapping granularity by obtaining the time slot TS change information and mapping granularity change information from the overhead, and performing corresponding trigger operations. A GMP adaptive processing method and a trigger mechanism for lossless switching of TS, the device enhances GMP self-adaptation, and achieves lossless mapping and demapping processing for variable containers and variable mapping granularity.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), and the like.
以上实施例仅用以说明本发明实施例的技术方案,而非对其限制;尽管参照前述实施例对本发明实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and are not intended to limit them; although the embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (28)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410061906.4A CN103825668B (en) | 2009-12-24 | 2009-12-24 | General mapping code GMP mapping methods, de-mapping method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200980148543.5A CN102246434B (en) | 2009-12-24 | 2009-12-24 | Generic mapping procedure (GMP) mapping method, de-mapping method and device thereof |
CN201410061906.4A CN103825668B (en) | 2009-12-24 | 2009-12-24 | General mapping code GMP mapping methods, de-mapping method and device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200980148543.5A Division CN102246434B (en) | 2009-12-24 | 2009-12-24 | Generic mapping procedure (GMP) mapping method, de-mapping method and device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103825668A CN103825668A (en) | 2014-05-28 |
CN103825668B true CN103825668B (en) | 2017-06-16 |
Family
ID=50760529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410061906.4A Active CN103825668B (en) | 2009-12-24 | 2009-12-24 | General mapping code GMP mapping methods, de-mapping method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103825668B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102056093B1 (en) | 2014-09-22 | 2019-12-16 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Service mapping processing method for optical transport network, apparatus, and system |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105792031B (en) * | 2016-03-08 | 2019-01-11 | 烽火通信科技股份有限公司 | A kind of method that GMP mapping generates Cn value in OTN |
CN106549732B (en) * | 2016-09-29 | 2019-11-29 | 华为技术有限公司 | A kind of data processing system and wave-division device |
CN108347317B (en) * | 2017-01-22 | 2020-11-10 | 华为技术有限公司 | A service transmission method, network device and network system |
CN107241659B (en) * | 2017-05-27 | 2019-06-21 | 烽火通信科技股份有限公司 | The analogue system and emulation mode of the general mapping regulation of optical transfer network |
EP3737110A4 (en) | 2018-02-09 | 2021-01-13 | Huawei Technologies Co., Ltd. | Service data processing method and device in optical transport network |
CN110830858B (en) * | 2018-08-13 | 2022-07-12 | 中兴通讯股份有限公司 | Customer service data transmission method, device, optical transmission network equipment and storage medium |
CN112929765B (en) * | 2021-01-19 | 2023-05-12 | 赵晋玲 | Multi-service transmission method, system and storage medium based on optical transmission network |
US12095506B2 (en) * | 2022-06-28 | 2024-09-17 | Ciena Corporation | Time-sliced GMP mapping with modified sigma-delta mapping function |
CN118075641A (en) * | 2022-11-22 | 2024-05-24 | 华为技术有限公司 | A bandwidth adjustment method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770673A (en) * | 2004-11-02 | 2006-05-10 | 华为技术有限公司 | An Overhead Processing Method for Service Multiplexing in OTN Network |
CN1790993A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Method for transmitting low-speed service signal in OTN |
WO2006063529A1 (en) * | 2004-12-15 | 2006-06-22 | Huawei Technologies Co., Ltd. | Device and method for transmitting data service in optical transmission net |
CN101155016A (en) * | 2007-09-14 | 2008-04-02 | 中兴通讯股份有限公司 | Method for time slot partition and overhead processing of optical payload unit in light transmission network |
WO2008122218A1 (en) * | 2007-04-06 | 2008-10-16 | Huawei Technologies Co., Ltd. | A method for multiplexing and de-multiplexing the low bit rate service |
CN101834688A (en) * | 2009-03-09 | 2010-09-15 | 华为技术有限公司 | Mapping and demapping method and device in optical transport network |
-
2009
- 2009-12-24 CN CN201410061906.4A patent/CN103825668B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770673A (en) * | 2004-11-02 | 2006-05-10 | 华为技术有限公司 | An Overhead Processing Method for Service Multiplexing in OTN Network |
CN1790993A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Method for transmitting low-speed service signal in OTN |
WO2006063529A1 (en) * | 2004-12-15 | 2006-06-22 | Huawei Technologies Co., Ltd. | Device and method for transmitting data service in optical transmission net |
WO2008122218A1 (en) * | 2007-04-06 | 2008-10-16 | Huawei Technologies Co., Ltd. | A method for multiplexing and de-multiplexing the low bit rate service |
CN101155016A (en) * | 2007-09-14 | 2008-04-02 | 中兴通讯股份有限公司 | Method for time slot partition and overhead processing of optical payload unit in light transmission network |
CN101834688A (en) * | 2009-03-09 | 2010-09-15 | 华为技术有限公司 | Mapping and demapping method and device in optical transport network |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102056093B1 (en) | 2014-09-22 | 2019-12-16 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Service mapping processing method for optical transport network, apparatus, and system |
Also Published As
Publication number | Publication date |
---|---|
CN103825668A (en) | 2014-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103825668B (en) | General mapping code GMP mapping methods, de-mapping method and device | |
EP2680469B1 (en) | Method and apparatus for generic mapping procedure (GMP) mapping and demapping | |
WO2019128934A1 (en) | Service transmitting and receiving method and device in optical transport network | |
EP3462647B1 (en) | Method for transporting client signal in optical transport network, and transport device | |
US10608766B2 (en) | Multi-service transport and receiving method and apparatus | |
CN105429726B (en) | Business mapping treatment method, the apparatus and system of Optical Transmission Network OTN | |
JP5482182B2 (en) | Communication apparatus and communication method | |
EP2209227A1 (en) | A method for realizing time slot partition and spending process of an optical payload unit in an optical transmission network | |
EP2747318B1 (en) | Method and apparatus for transmitting signals in an optical transport network | |
CN101610430B (en) | Method and device for realizing cross scheduling of ODUk | |
US11962349B2 (en) | Signal sending and receiving method, apparatus, and system | |
WO2013159314A1 (en) | Gmp mapping method and device for optical channel data unit | |
CN114915375B (en) | Service mapping realization method and device | |
CN107920030B (en) | Mapping method and device for optical channel data unit frame | |
CN102098595A (en) | Customer signal transmitting method in optical transport network and related equipment | |
WO2024045869A1 (en) | Data transmission method and data transmission apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |