WO2022261931A1 - Method and apparatus for transmitting data - Google Patents

Method and apparatus for transmitting data Download PDF

Info

Publication number
WO2022261931A1
WO2022261931A1 PCT/CN2021/100879 CN2021100879W WO2022261931A1 WO 2022261931 A1 WO2022261931 A1 WO 2022261931A1 CN 2021100879 W CN2021100879 W CN 2021100879W WO 2022261931 A1 WO2022261931 A1 WO 2022261931A1
Authority
WO
WIPO (PCT)
Prior art keywords
osu
stm
cell
frame
padding field
Prior art date
Application number
PCT/CN2021/100879
Other languages
French (fr)
Chinese (zh)
Inventor
侯培杰
陈玉杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/100879 priority Critical patent/WO2022261931A1/en
Priority to CN202180098528.5A priority patent/CN117378214A/en
Publication of WO2022261931A1 publication Critical patent/WO2022261931A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

The present application provides a method and apparatus for transmitting data. The method comprises: a first device obtains an optical service unit (OSU) cell; the first device maps the OSU cell to an STM-1 frame; the first device sends the STM-1 frame to a second device; the second device receives the STM-1 frame from the first device, the STM-1 frame comprising the OSU cell; and the second device demaps the STM-1 frame to obtain the OSU cell. According to the solution of the present application, when an SDH/MSTP network is between the first device and the second device, the first device maps the OSU cell to the STM-1 frame and sends same, and the second device receives the STM-1 frame and demaps the OSU cell from the STM-1 frame, thereby implementing end-to-end transmission once data is mapped to the OSU cell.

Description

传输数据的方法和装置Method and device for transmitting data 技术领域technical field
本申请涉及光通信领域,具体涉及一种传输数据的方法和装置。The present application relates to the field of optical communication, in particular to a method and device for transmitting data.
背景技术Background technique
在光通信领域,将数据映射到光业务单元(optical service unit,OSU)中传输具有颗粒小、带宽灵活、时延低、可靠性高等优点。然而,当前OSU只能通过光传送网(optical transport network,OTN)传输。在当前的光通信网络中,数字同步体系(synchronous digital hierarchy,SDH)网络和多业务传输平台(multi-service transport platform,MSTP)网络仍然具有较大规模。因此,为了推广OSU业务,如何将OSU通过SDH/MSTP网络传输是一个亟待解决的问题。In the field of optical communication, mapping data to an optical service unit (OSU) for transmission has the advantages of small particles, flexible bandwidth, low delay, and high reliability. However, currently the OSU can only be transmitted through an optical transport network (OTN). In the current optical communication network, the synchronous digital hierarchy (SDH) network and the multi-service transport platform (multi-service transport platform, MSTP) network still have relatively large scale. Therefore, in order to promote OSU business, how to transmit OSU through SDH/MSTP network is an urgent problem to be solved.
发明内容Contents of the invention
本申请提供一种传输数据的方法和装置。The present application provides a method and device for transmitting data.
第一方面,提供了一种传输数据的方法,包括:第一设备获取光业务单元OSU信元。第一设备将OSU信元映射到第1级同步传输模块STM-1帧中。第一设备向第二设备发送STM-1帧。In a first aspect, a data transmission method is provided, including: a first device acquires an OSU cell. The first device maps the OSU cell into a first-level synchronous transport module STM-1 frame. The first device sends an STM-1 frame to the second device.
根据本申请的方案,在将OSU信元映射到STM-1帧中后,可以通过SDH/MSTP网络传输STM-1帧,从而实现了将OSU信元通过SDH/MSTP网络传输。According to the solution of the present application, after the OSU cell is mapped into the STM-1 frame, the STM-1 frame can be transmitted through the SDH/MSTP network, thereby realizing the transmission of the OSU cell through the SDH/MSTP network.
结合第一方面,在第一方面的某些实现方式中,第一设备将OSU信元映射到第1级同步传输模块STM-1帧中,包括:第一设备在STM-1帧中确定M个第一填充域,M个第一填充域中的每个第一填充域的大小大于或等于一个OSU信元的大小,M为正整数。当调度出OSU信元时,第一设备将OSU信元填充到第一填充域中。当未调度出OSU信元时,第一设备将空闲单元填充到第一填充域中。With reference to the first aspect, in some implementation manners of the first aspect, the first device maps the OSU cell to the first-level synchronous transport module STM-1 frame, including: the first device determines the M in the STM-1 frame The size of each first padding field in the M first padding fields is greater than or equal to the size of one OSU cell, and M is a positive integer. When the OSU cell is scheduled, the first device fills the OSU cell into the first padding field. When no OSU cells are scheduled, the first device fills idle cells into the first padding field.
根据本申请的方案,可以预先在STM-1帧的净荷区划分出M个第一填充域,将OSU信元填充到第一填充域中,从而提供了将OSU信元映射到STM-1帧的一种可能的方式。According to the solution of the present application, M first padding fields can be divided in the payload area of the STM-1 frame in advance, and OSU cells are filled into the first padding fields, thereby providing a method for mapping OSU cells to STM-1 One possible way to frame.
结合第一方面,在第一方面的某些实现方式中,第一设备将OSU信元映射到第1级同步传输模块STM-1帧中,还包括:第一设备在STM-1帧中确定M个第二填充域,M个第二填充域与M个第一填充域一一对应。第一设备根据第i个第一填充域的填充情况,在第i个第二填充域中填充第一开销信息和第二开销信息,第i个第一填充域与第i个第二填充域对应。其中,第一开销信息指示第i个第一填充域中是否填充了OSU信元,当第i个第一填充域中填充了OSU信元时,第二开销信息指示第i个第一填充域中填充的OSU信元对应业务的带宽,i为小于或等于M的正整数。With reference to the first aspect, in some implementation manners of the first aspect, the first device maps the OSU cell to the first-level synchronous transport module STM-1 frame, and further includes: the first device determines in the STM-1 frame There are M second padding fields, and the M second padding fields are in one-to-one correspondence with the M first padding fields. The first device fills the first overhead information and the second overhead information in the i-th second padding field according to the filling condition of the i-th first padding field, and the i-th first padding field and the i-th second padding field correspond. Wherein, the first overhead information indicates whether OSU cells are filled in the i-th first padding field, and when the i-th first padding field is filled with OSU cells, the second overhead information indicates that the i-th first padding field The OSU cell filled in corresponds to the bandwidth of the service, and i is a positive integer less than or equal to M.
根据本申请的方案,通过设置第二填充域可以更方便地确定第一填充域中是否填充有OSU信元,从而提高对STM-1帧解映射的效率。According to the solution of the present application, by setting the second padding field, it is more convenient to determine whether the first padding field is filled with OSU cells, thereby improving the efficiency of demapping the STM-1 frame.
结合第一方面,在第一方面的某些实现方式中,第一设备将OSU信元映射到第1级同步传输模块STM-1帧中,包括:第一设备在STM-1帧中确定第三填充域。当调度出OSU信元时,第一设备将起始定界字符、OSU信元和结束定界字符填充到第三填充域中,起始定界字符在OSU信元之前,结束定界字符在OSU信元之后。当未调度出OSU信元时,第一设备将空闲单元填充到第三填充域中。With reference to the first aspect, in some implementation manners of the first aspect, the first device maps the OSU cell to the first-level synchronous transport module STM-1 frame, including: the first device determines in the STM-1 frame Three fill fields. When dispatching the OSU cell, the first device fills the start delimiter, the OSU cell and the end delimiter into the third padding field, the start delimiter is before the OSU cell, and the end delimiter is before the OSU cell After the OSU cell. When no OSU cells are scheduled, the first device fills idle cells into the third filling field.
根据本申请的方案,通过起始定界字符和结束定界字符可以确定一个OSU信元,此时不需将STM-1帧的净荷区划分为M个第一填充域,因此,通过这种方式可以更灵活地将OSU信元映射到STM-1帧中。According to the scheme of the present application, an OSU cell can be determined by the start delimiter character and the end delimiter character, and at this moment, it is not necessary to divide the payload area of the STM-1 frame into M first padding domains, therefore, through this This way can more flexibly map OSU cells into STM-1 frames.
结合第一方面,在第一方面的某些实现方式中,第一设备将起始定界字符、OSU信元和结束定界字符填充到第三填充域中,包括:第一设备将起始定界字符、OSU信元和结束定界字符封装,将封装后的OSU信元填充到第三填充域中。或者,第一设备在第三填充域中依次填充起始定界字符、OSU信元和结束定界字符。With reference to the first aspect, in some implementation manners of the first aspect, the first device fills the start delimiter, the OSU cell, and the end delimiter into the third padding field, including: the first device fills the start The delimiter character, the OSU cell and the end delimiter character are encapsulated, and the encapsulated OSU cell is filled into the third padding field. Alternatively, the first device sequentially fills the start delimiter character, the OSU cell and the end delimiter character in the third padding field.
结合第一方面,在第一方面的某些实现方式中,该方法还包括:第一设备从第三设备接收第一指示信息,第一指示信息指示将OSU信元映射到STM-1帧中的模式。With reference to the first aspect, in some implementations of the first aspect, the method further includes: the first device receives first indication information from the third device, and the first indication information indicates that OSU cells are mapped into STM-1 frames mode.
根据本申请的方案,通过第三设备(例如网管设备)向第一设备发送指示信息,可以使第一设备明确对OSU信元的处理方式。According to the solution of the present application, the third device (for example, the network management device) sends instruction information to the first device, so that the first device can specify the processing method for the OSU cells.
结合第一方面,在第一方面的某些实现方式中,第一设备将OSU信元映射到第1级同步传输模块STM-1帧中,还包括:第一设备在STM-1帧中确定第四填充域。第一设备在第四填充域中填充第二指示信息,第二指示信息指示对STM-1帧解映射的模式,其中,对STM-1帧解映射的模式与将OSU信元映射到STM-1帧中的模式对应。With reference to the first aspect, in some implementation manners of the first aspect, the first device maps the OSU cell to the first-level synchronous transport module STM-1 frame, and further includes: the first device determines in the STM-1 frame Fourth padding field. The first device fills the second indication information in the fourth padding field, and the second indication information indicates the mode of demapping the STM-1 frame, wherein the mode of demapping the STM-1 frame is the same as mapping the OSU cell to the STM-1 Pattern correspondence in 1 frame.
根据本申请的方案,通过设置第四填充域,可以使接收端正确对STM-1帧进行解映射,避免接收端解映射时出现错误。According to the solution of the present application, by setting the fourth padding field, the receiving end can correctly demap the STM-1 frame, and avoid errors during demapping at the receiving end.
第二方面,提供了一种传输数据的方法,包括:第二设备从第一设备接收第1级同步传输模块STM-1帧,STM-1帧中包括OSU信元。第二设备对第一STM-1帧解映射,获取OSU信元。In a second aspect, a data transmission method is provided, including: a second device receives a first-level synchronous transport module STM-1 frame from a first device, and the STM-1 frame includes an OSU cell. The second device demaps the first STM-1 frame to obtain the OSU cell.
根据本申请的方案,当第一设备与第二设备之间是SDH/MSTP网络时,第一设备将OSU信元映射到STM-1帧中发送,第二设备接收STM-1帧,并从STM-1帧中解映射出OSU信元,从而实现了数据映射到OSU信元后的端到端传输。According to the solution of this application, when the SDH/MSTP network is between the first device and the second device, the first device maps the OSU cell into an STM-1 frame and sends it, and the second device receives the STM-1 frame and sends it from The OSU cells are demapped in the STM-1 frame, so that the end-to-end transmission of data after being mapped to the OSU cells is realized.
结合第二方面,在第二方面的某些实现方式中,第二设备对STM-1帧解映射,包括:With reference to the second aspect, in some implementation manners of the second aspect, the demapping of the STM-1 frame by the second device includes:
第二设备检索STM-1帧中的M个第二填充域,M个第二填充域与M个第一填充域一一对应,M为正整数。其中,第i个第二填充域中包括第一开销信息,第一开销信息指示第i个第一填充域中是否填充了OSU信元,第i个第一填充域与第i个第二填充域对应,i为小于或等于M的正整数。当第一开销信息指示第i个第一填充域中填充了OSU信元时,第二设备从第i个第一填充域中获取OSU信元。当第一开销信息指示第i个第一填充域中未填充OSU信元时,第二设备继续检索其他的第二填充域。The second device retrieves M second padding fields in the STM-1 frame, where the M second padding fields are in one-to-one correspondence with the M first padding fields, and M is a positive integer. Wherein, the i-th second padding field includes first overhead information, and the first overhead information indicates whether OSU cells are filled in the i-th first padding field, and the i-th first padding field and the i-th second padding field Domain corresponds, i is a positive integer less than or equal to M. When the first overhead information indicates that the i-th first padding field is filled with OSU cells, the second device acquires the OSU cells from the i-th first padding field. When the first overhead information indicates that the i-th first padding field is not filled with OSU cells, the second device continues to search for other second padding fields.
结合第二方面,在第二方面的某些实现方式中,第i个第二填充域中还包括第二开销信息。第二设备对STM-1帧解映射,还包括:With reference to the second aspect, in some implementation manners of the second aspect, the i-th second padding field further includes second overhead information. The second device demaps the STM-1 frame, further comprising:
当第一开销信息指示第i个第一填充域中填充了OSU信元时,第二设备获取第二开销信息,第二开销信息指示第i个第一填充域中填充的OSU信元对应业务的带宽。When the first overhead information indicates that OSU cells are filled in the ith first padding field, the second device obtains the second overhead information, and the second overhead information indicates the service corresponding to the OSU cell filled in the ith first padding field bandwidth.
结合第二方面,在第二方面的某些实现方式中,第二设备对STM-1帧解映射,包括:第二设备检索STM-1帧中的第三填充域,第三填充域包括起始定界字符和结束定界字符。第二设备根据起始定界字符和结束定界字符获取OSU信元。With reference to the second aspect, in some implementation manners of the second aspect, the demapping of the STM-1 frame by the second device includes: the second device retrieves a third padding field in the STM-1 frame, and the third padding field includes The beginning and end delimiting characters. The second device obtains the OSU cell according to the start delimiter character and the end delimiter character.
结合第二方面,在第二方面的某些实现方式中,第三填充域中还包括第二开销信息,第二开销信息指示OSU信元对应业务的带宽。第二设备对STM-1帧解映射,还包括:第二设备从起始定界字符和结束定界字符之间获取第二开销信息。With reference to the second aspect, in some implementation manners of the second aspect, the third padding field further includes second overhead information, and the second overhead information indicates the bandwidth of the service corresponding to the OSU cell. Demapping the STM-1 frame by the second device further includes: the second device acquires second overhead information from between the start delimiter character and the end delimiter character.
结合第二方面,在第二方面的某些实现方式中,第二设备对STM-1帧解映射,还包括:第二设备从STM-1帧的第四填充域中获取第二指示信息,第二指示信息指示对STM-1帧解映射的模式。With reference to the second aspect, in some implementation manners of the second aspect, the demapping of the STM-1 frame by the second device further includes: the second device acquires the second indication information from the fourth padding field of the STM-1 frame, The second indication information indicates the mode of demapping the STM-1 frame.
或者,方法还包括:Alternatively, the method also includes:
第二设备从第三设备接收第三指示信息,第三指示信息指示对STM-1帧解映射的模式。The second device receives third indication information from the third device, where the third indication information indicates a mode for demapping the STM-1 frame.
根据本申请的方案,在一种可能的实现方式中,STM-1帧中可以携带第二指示信息。在另一种可能的实现方式中,第二设备可以从第三设备接收第三指示信息。通过这两种方式使第二设备正确解映射STM-1帧。According to the solution of the present application, in a possible implementation manner, the STM-1 frame may carry the second indication information. In another possible implementation manner, the second device may receive third indication information from the third device. Through these two methods, the second device can correctly demap the STM-1 frame.
第三方面,提供一种通信设备,该通信设备包括用于执行该第一方面或其各种实现方式中的方法的单元。或者,该通信设备包括用于执行该第二方面或其各种实现方式中的方法的单元。In a third aspect, a communication device is provided, and the communication device includes a unit for performing the method in the first aspect or various implementations thereof. Alternatively, the communications device includes a unit for performing the method in the second aspect or various implementations thereof.
第四方面,提供一种通信设备,包括至少一个处理器。该存储器用于存储计算机程序,当该通信装置运行时,处理器执行存储器存储的计算机程序或指令,使得该通信装置执行第一方面或其各种实现方式中的方法。或者,使得该通信装置执行第二方面或其各种实现方式中的方法。In a fourth aspect, a communication device is provided, including at least one processor. The memory is used to store computer programs. When the communication device is running, the processor executes the computer programs or instructions stored in the memory, so that the communication device executes the method in the first aspect or its various implementations. Or, make the communication device execute the method in the second aspect or its various implementation manners.
第五方面,提供一种计算机可读存储介质,包括计算机程序,当计算机程序在计算机上运行时,使得计算机执行第一方面或其各种实现方式中的方法。或者,使得计算机执行第二方面或其各种实现方式中的方法。In a fifth aspect, a computer-readable storage medium is provided, including a computer program. When the computer program is run on a computer, the computer is made to execute the method in the first aspect or various implementations thereof. Or, make the computer execute the method in the second aspect or various implementations thereof.
第六方面,提供一种芯片,芯片上设置有处理电路,处理电路用于执行该第一方面或其各种实现方式中的方法。或者,处理电路用于执行第二方面或其各种实现方式中的方法。According to a sixth aspect, a chip is provided, and a processing circuit is disposed on the chip, and the processing circuit is used to execute the method in the first aspect or various implementation manners thereof. Alternatively, the processing circuit is configured to execute the method in the second aspect or various implementations thereof.
第七方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行第一方面或其各种实现方式中的方法。或者,使得计算机执行第二方面或其各种实现方式中的方法。In a seventh aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is run, causes the computer to execute the program described in the first aspect or its various implementations. Methods. Or, make the computer execute the method in the second aspect or various implementations thereof.
附图说明Description of drawings
图1示出了可适用本申请实施例的一种网络架构示意图。FIG. 1 shows a schematic diagram of a network architecture applicable to this embodiment of the present application.
图2示出了一种将OSU映射到STM-1帧中的方法。Figure 2 shows a method for mapping OSUs into STM-1 frames.
图3示出了STM-1帧的一种帧结构。Fig. 3 shows a frame structure of an STM-1 frame.
图4示出了一种对STM-1帧解映射的方法。Fig. 4 shows a method for demapping STM-1 frames.
图5示出了另一种将OSU映射到STM-1帧中的方法。Fig. 5 shows another method for mapping OSUs into STM-1 frames.
图6示出了STM-1帧的另一种帧结构。Fig. 6 shows another frame structure of the STM-1 frame.
图7示出了对OSU信元进行封装处理的方式。FIG. 7 shows the way of encapsulating OSU cells.
图8示出了一种对STM-1帧解映射的方法。Fig. 8 shows a method for demapping STM-1 frames.
图9示出了适用于本申请提出的方法的一种场景。Fig. 9 shows a scenario applicable to the method proposed in this application.
图10示出了在图9场景下发送数据的过程。FIG. 10 shows the process of sending data in the scenario of FIG. 9 .
图11示出了适用于本申请提出的方法的另一种场景。Fig. 11 shows another scenario applicable to the method proposed in this application.
图12示出了在图10场景下发送数据的过程。FIG. 12 shows the process of sending data in the scenario of FIG. 10 .
图13示出本申请提供的通信设备的示意性框图。Fig. 13 shows a schematic block diagram of a communication device provided in this application.
图14示出本申请提供的通信设备的示意性框图。Fig. 14 shows a schematic block diagram of a communication device provided by the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
图1示出了可适用本申请实施例的一种网络架构示意图。如图1所示包括OTN网络和SDH/MSTP网络。每个网络中包括一定数量的设备(图中用N表示)。FIG. 1 shows a schematic diagram of a network architecture applicable to this embodiment of the present application. As shown in Figure 1, it includes OTN network and SDH/MSTP network. Each network includes a certain number of devices (indicated by N in the figure).
如图2所示,本申请提出了一种将OSU信元映射到第1级同步传输模块(synchronous transport module level 1,STM-1)帧中的方法,该方法也可称之为第一模式。As shown in Figure 2, the present application proposes a method for mapping OSU cells to a first-level synchronous transport module (synchronous transport module level 1, STM-1) frame, which can also be referred to as the first mode .
该方法包括:The method includes:
S201,在STM-1帧的净荷区中确定M个第一填充域和M个第二填充域。S201. Determine M first padding fields and M second padding fields in the payload area of the STM-1 frame.
如图3所示,M个第一填充域与M个第二填充域一一对应。M个第一填充域中的每个第一填充域用于承载空闲单元或一个OSU信元,M个第二填充域中的每个第二填充域用于承载所对应的第一填充域的开销信息。应理解,每个第一填充域的大小应大于或等于一个OSU信元的大小,从而可以将一个OSU信元作为一个整体填充到第一填充域中。As shown in FIG. 3 , there is a one-to-one correspondence between the M first padding fields and the M second padding fields. Each of the M first padding fields is used to carry an idle unit or an OSU cell, and each of the M second padding fields is used to carry the corresponding first padding field overhead information. It should be understood that the size of each first padding field should be greater than or equal to the size of one OSU cell, so that one OSU cell can be filled into the first padding field as a whole.
根据本申请的方案,可以预先在STM-1帧的净荷区划分出M个第一填充域,将OSU信元填充到第一填充域中,从而给出了将OSU信元映射到STM-1帧的一种可能的方式。According to the scheme of the present application, M first padding fields can be divided in the payload area of the STM-1 frame in advance, and OSU cells are filled into the first padding fields, thus providing a method for mapping OSU cells to STM-1 One possible way for 1 frame.
在一种可能的实现方式中,还可以在STM-1的净荷区中确定第四填充域,第四填充域用于填充第二指示信息,第二指示信息指示对STM-1帧解映射的模式。此时,第二指示信息指示的对STM-1帧解映射的模式与图2中将OSU映射到STM-1帧中的模式对应。后续将详细介绍与图2中的映射模式相对应的STM-1帧解映射的模式。In a possible implementation manner, a fourth padding field may also be determined in the STM-1 payload area, the fourth padding field is used to fill in the second indication information, and the second indication information indicates demapping the STM-1 frame mode. At this time, the mode of demapping the STM-1 frame indicated by the second indication information corresponds to the mode of mapping the OSU into the STM-1 frame in FIG. 2 . The mode of STM-1 frame demapping corresponding to the mapping mode in FIG. 2 will be introduced in detail later.
根据本申请的方案,通过设置第四填充域的方式,可以使接收端正确对STM-1帧进行解映射,避免接收端解映射时出现错误。According to the solution of the present application, by setting the fourth padding field, the receiving end can correctly demap the STM-1 frame, and avoid errors during demapping at the receiving end.
每个第二填充域中的开销信息包括第一开销信息和第二开销信息,第一开销信息指示所对应的第一填充域中是否填充有OSU信元,在所对应的第一填充域中填充有OSU信元的情况下,第二开销信息指示所对应的第一填充域中填充的OSU信元对应的业务的带宽,在所对应的第一填充域中未填充OSU信元的情况下,第二开销信息可以为预设的字符。在一种可能的实现方式中,OSU信元对应的业务的带宽用于下游接收端进行带宽校验、异常拦截等。通过设置第二填充域可以更方便地确定第一填充域中是否填充有OSU信元,从而提高对STM-1帧解映射的效率。The overhead information in each second padding field includes first overhead information and second overhead information, the first overhead information indicates whether the corresponding first padding field is filled with OSU cells, and in the corresponding first padding field In the case of filling with OSU cells, the second overhead information indicates the bandwidth of the service corresponding to the filled OSU cells in the corresponding first padding field, and if the corresponding first padding field is not filled with OSU cells , the second overhead information may be preset characters. In a possible implementation manner, the bandwidth of the service corresponding to the OSU cell is used by the downstream receiving end to perform bandwidth verification, exception interception, and the like. By setting the second padding field, it is more convenient to determine whether the first padding field is filled with OSU cells, thereby improving the efficiency of demapping the STM-1 frame.
OSU信元对应的业务的带宽以k为基本单位,例如,k的取值可以为2.6Mb/s,即,一个OSU信元对应的业务的带宽为S倍的k。在所对应的第一填充域中填充有OSU信元的情况下,第二开销信息可以指示S的具体取值,从而指示OSU信元对应的业务的带宽信息。The bandwidth of a service corresponding to an OSU cell takes k as a basic unit, for example, the value of k may be 2.6 Mb/s, that is, the bandwidth of a service corresponding to an OSU cell is S times k. In the case that the corresponding first filling field is filled with OSU cells, the second overhead information may indicate a specific value of S, thereby indicating the bandwidth information of the service corresponding to the OSU cells.
在一种可能的实现方式中,M个第一填充域的大小相同。M个第二填充域的大小相同。例如,M个第一填充域中,每个第一填充域的大小可以为192比特;M个第二填充域中每个第二填充域的大小可以为10比特,其中第一开销信息可以占2比特,第二开销信息可以占8比特。In a possible implementation manner, the M first padding fields have the same size. The size of the M second padding fields is the same. For example, in the M first padding fields, the size of each first padding field may be 192 bits; in the M second padding fields, the size of each second padding field may be 10 bits, where the first overhead information may occupy 2 bits, and the second overhead information may occupy 8 bits.
S202,将OSU信元存入数据缓存中。S202. Store the OSU cell into the data cache.
下面介绍将OSU信元存入数据缓存的方式。The following describes how to store OSU cells into the data cache.
方式1:Method 1:
当多个OSU信元属于一路数据流时,将多个OSU信元存入一个数据缓存中。即,当多个OSU信元为同一个业务的数据时,可以通过一路数据流进行传输。When multiple OSU cells belong to one data flow, store multiple OSU cells into a data buffer. That is, when multiple OSU cells are data of the same service, they can be transmitted through one data flow.
方式2:Method 2:
当多个OSU信元属于P路数据流时,P路数据流对应P个数据缓存,将每个OSU信元缓存到其对应的数据缓存中,P为大于或等于2的正整数。即,当多个OSU信元为P个业务的数据时,可以通过P路数据流进行传输。When multiple OSU cells belong to P data streams, the P data streams correspond to P data caches, and each OSU cell is cached in its corresponding data cache, where P is a positive integer greater than or equal to 2. That is, when multiple OSU cells are data of P services, they can be transmitted through P data streams.
S203,向数据队列发起信元调度,并对数据缓存出口进行带宽监管。S203. Initiate cell scheduling to the data queue, and perform bandwidth supervision on data cache egress.
应理解,当将OSU信元缓存到数据缓存中时,可以将OSU信元的标识符存储到该数据缓存对应的数据队列中。当发送OSU信元时,首先向数据队列发起信元调度,获取OSU信元的标识符,再根据OSU信元的标识符,从数据缓存中读取OSU信元。It should be understood that when the OSU cell is cached in the data cache, the identifier of the OSU cell may be stored in a data queue corresponding to the data cache. When sending an OSU cell, first initiate cell scheduling to the data queue, obtain the identifier of the OSU cell, and then read the OSU cell from the data buffer according to the identifier of the OSU cell.
当S202中按照方式2进行时,由于共有P路数据流,此时可以按照轮询(round robin,RR)调度的方式,对P个数据缓存对应的P个数据队列进行调度。When S202 is performed according to mode 2, since there are P data streams in total, the P data queues corresponding to the P data buffers can be scheduled according to the round robin (RR) scheduling mode.
此外,根据数据流的带宽信息,对数据缓存出口进行带宽监管,控制数据流的数据传输速率,使数据流的数据传输速率在对应的带宽范围之内,同时避免出现数据流的突发。In addition, according to the bandwidth information of the data stream, bandwidth supervision is performed on the data cache outlet, and the data transmission rate of the data stream is controlled, so that the data transmission rate of the data stream is within the corresponding bandwidth range, and at the same time, bursts of the data stream are avoided.
应理解,本申请中“突发”的含义为不均匀发送数据。例如,数据流的带宽信息为2Mb/s,现有8Mb的数据待发送,一种发送方式为每秒发送2Mb,通过4秒的时间完成8Mb数据的发送;另一种发送方式为在第1秒内将8Mb数据全部发送,在接下来的3秒内不发送数据。可以看出,两种方式在4秒的时间内数据的平均传输速率都满足带宽要求,但第二种方式相比于第一种方式数据的发送是不均匀的。It should be understood that "burst" in this application means sending data unevenly. For example, the bandwidth information of the data stream is 2Mb/s, and there is 8Mb of data to be sent. One sending method is to send 2Mb per second, and the sending of 8Mb data is completed in 4 seconds; All 8Mb data will be sent in seconds, and no data will be sent in the next 3 seconds. It can be seen that the average transmission rate of data within 4 seconds in the two methods meets the bandwidth requirement, but the data transmission of the second method is uneven compared with the first method.
S204,填充M个第一填充域。S204. Fill M first filling fields.
当从数据队列中调度出OSU信元时,将调度出的OSU信元填充到第一填充域中。When dispatching OSU cells from the data queue, fill the dispatched OSU cells into the first filling field.
在一种可能的实现方式中,当第一填充域的大小大于OSU信元的大小时,即,调度出的OSU信元并未将一个第一填充域填满,此时可以在该第一填充域中继续填充空闲单元,直至将第一填充域填满。In a possible implementation, when the size of the first padding field is larger than the size of the OSU cell, that is, the scheduled OSU cell does not fill up a first padding field, at this time, the first padding field can be The idle units are continuously filled in the padding field until the first padding field is full.
当从数据队列中未调度出OSU信元时,将空闲单元填充到第一填充域中。When no OSU cell is dispatched from the data queue, idle cells are filled into the first padding field.
在一种可能的实现方式中,可以按照从上到下、从左至右的顺序填充M个第一填充域。在另一种可能的实现方式中,对于P路数据流中的一路或多路数据流,可以指定M个第一填充域中的一个或多个第一填充域,该一个或多个第一填充域为该一路或多路数据流的专用填充域。In a possible implementation manner, the M first padding fields may be filled in order from top to bottom and from left to right. In another possible implementation manner, for one or more data streams in the P data streams, one or more first padding fields among the M first padding fields may be specified, and the one or more first padding fields The padding field is a dedicated padding field for the one or more data streams.
S205,根据M个第一填充域中每个第一填充域的填充情况,在每个第一填充域对应的第二填充域中填充第一开销信息和第二开销信息。S205. Fill the first overhead information and the second overhead information in the second padding field corresponding to each first padding field according to the filling condition of each first padding field in the M first padding fields.
例如,第一填充域#1中填充了OSU信元#1,OSU信元#1对应的业务的带宽信息为 10倍的2.6Mb/s,则可以在第一填充域#1对应的第二填充域#1中填充第一开销信息指示第一填充域#1中填充了OSU信元#1,填充第二开销信息指示“S为10”。例如,如果第一开销信息占2个比特,可以用“11”进行指示;如果第二开销信息占8个比特,则可以用“00001010”进行指示。For example, OSU cell #1 is filled in the first padding field #1, and the bandwidth information of the service corresponding to OSU cell #1 is 10 times 2.6Mb/s, then the second padding field corresponding to the first padding field #1 can The padding field #1 is filled with the first overhead information indicating that the first padding field #1 is filled with the OSU cell #1, and the padding of the second overhead information indicates "S is 10". For example, if the first overhead information occupies 2 bits, "11" may be used for indication; if the second overhead information occupies 8 bits, "00001010" may be used for indication.
再例如,第一填充域#2中没有填充OSU信元,则在第一填充域#2对应的第二填充域#2中填充第一开销信息指示第一填充域#2中未填充OSU信元,在第二开销信息对应的比特中填充预设的字符。如果第一开销信息占2个比特,则可以用“00”进行指示;如果第二开销信息占8个比特,则该预设的字符的一种可能的实现方式可以为“11111111”。For another example, if the first padding field #2 is not filled with OSU information, then the first overhead information is filled in the second padding field #2 corresponding to the first padding field #2 to indicate that no OSU information is filled in the first padding field #2. element, filling preset characters in bits corresponding to the second overhead information. If the first overhead information occupies 2 bits, "00" may be used for indication; if the second overhead information occupies 8 bits, a possible implementation manner of the preset character may be "11111111".
在一种可能的实现方式中,该方法还包括:S206,在第四填充域中填充第二指示信息。第二指示信息指示对STM-1帧解映射的模式。In a possible implementation manner, the method further includes: S206, filling the second indication information in the fourth filling field. The second indication information indicates the mode of demapping the STM-1 frame.
S207,添加段开销和管理单元指针构成STM-1帧。S207, adding the section overhead and the management unit pointer to form the STM-1 frame.
其中,段开销可以包括再生段开销和复用段开销。在一种可能的实现方式中,可以将段开销添加到STM-1帧的第1-3行及第1-9列,将复用段开销添加到STM-1帧的第5-9行及第1-9列,将管理单元指针添加到STM-1帧的第4行及第1-9列。具体过程可以参考现有的SDH协议。Wherein, the section overhead may include regeneration section overhead and multiplexing section overhead. In a possible implementation, segment overhead can be added to rows 1-3 and columns 1-9 of the STM-1 frame, and multiplex segment overhead can be added to rows 5-9 and columns 1-9 of the STM-1 frame. Columns 1-9, add the snap-in pointer to row 4 and columns 1-9 of the STM-1 frame. The specific process can refer to the existing SDH protocol.
如图4所示,本申请提出了一种将OSU信元从STM-1帧中解映射的方法,该方法也可称之为第二模式。该方法与图2所示的将OSU信元映射到STM-1帧中的方法对应。该方法包括:As shown in FIG. 4 , the present application proposes a method for demapping OSU cells from STM-1 frames, and this method can also be called the second mode. This method corresponds to the method for mapping OSU cells into STM-1 frames shown in FIG. 2 . The method includes:
S401,剥离STM-1帧中的段开销和管理单元指针。S401. Strip the segment overhead and the management unit pointer in the STM-1 frame.
在一种可能的实现方式中,该方法还包括:S402,检索第四填充域,根据第二指示信息确定对STM-1帧解映射的模式。In a possible implementation manner, the method further includes: S402. Retrieve a fourth padding field, and determine a demapping mode for the STM-1 frame according to the second indication information.
S403,检索M个第二填充域,从M个第一填充域中获取OSU信元。S403. Retrieve M second padding fields, and obtain an OSU cell from M first padding fields.
该过程包括:The process includes:
检索第i个第二填充域。应理解,第i个第二填充域与第i个第一填充域对应。Retrieve the ith second padding field. It should be understood that the i-th second padding field corresponds to the i-th first padding field.
当第i个第二填充域中的第一开销信息指示第i个第一填充域中填充有OSU信元时,从第i个第一填充域中获取OSU信元,并根据第i个第二填充域中的第二开销信息获取第i个第一填充域中所填充的OSU信元对应的带宽信息。When the first overhead information in the i-th second padding field indicates that the i-th first padding field is filled with OSU cells, obtain the OSU cell from the i-th first padding field, and The second overhead information in the second padding field obtains the bandwidth information corresponding to the i-th OSU cell filled in the first padding field.
当第i个第二填充域中的第一开销信息指示第i个第一填充域中未填充OSU信元时,继续检索M个第二填充域中的其他第二填充域,直至将M个第二填充域全部检索完毕。When the first overhead information in the i-th second padding field indicates that OSU cells are not filled in the i-th first padding field, continue to search for other second padding fields in the M second padding fields until M The second padding fields are all retrieved.
如图5所示,本申请提出了另一种将OSU信元映射到第1级同步传输模块STM-1帧中的方法,该方法也可称之为第三模式。As shown in FIG. 5 , the present application proposes another method for mapping OSU cells into STM-1 frames of the first-level synchronous transport module, and this method can also be called the third mode.
该方法包括:The method includes:
S501,在STM-1的净荷区中确定第三填充域。S501. Determine a third padding field in the payload area of the STM-1.
如图6所示,第三填充域用于承载OSU信元或空闲单元。As shown in FIG. 6, the third padding field is used to carry OSU cells or idle cells.
在一种可能的实现方式中,还需在STM-1的净荷区中确定第四填充域,第四填充域用于填充第二指示信息,第二指示信息指示对STM-1帧解映射的模式。此时,第二指示信息指示的对STM-1帧解映射的模式与图5中将OSU映射到STM-1帧中的模式对应。后续将详细介绍与图5中的映射模式相对应的STM-1帧解映射的模式。In a possible implementation, it is also necessary to determine a fourth padding field in the STM-1 payload area, the fourth padding field is used to fill in the second indication information, and the second indication information indicates demapping the STM-1 frame mode. At this time, the mode of demapping the STM-1 frame indicated by the second indication information corresponds to the mode of mapping the OSU into the STM-1 frame in FIG. 5 . The mode of STM-1 frame demapping corresponding to the mapping mode in FIG. 5 will be introduced in detail later.
S502,将OSU信元存入数据缓存中。S502. Store the OSU cell into the data cache.
该过程可以与S202相同,具体可以参考S202的描述。This process may be the same as S202, for details, please refer to the description of S202.
S503,向数据队列发起信元调度,并对数据缓存出口进行带宽监管。S503. Initiate cell scheduling to the data queue, and perform bandwidth supervision on data cache egress.
该过程可以与S203相同,具体可以参考S203的描述。This process may be the same as S203, for details, please refer to the description of S203.
S504,填充第三填充域。S504. Fill the third filling field.
下面介绍填充第三填充域的方式:Here's how to populate the third padding field:
方式A:Method A:
当从数据队列中调度出OSU信元时,对调度出的OSU信元进行封装处理,下文中将经过封装处理后的OSU信元称为E-OSU信元。将E-OSU信元填充到第三填充域中。When the OSU cells are dispatched from the data queue, the dispatched OSU cells are encapsulated. Hereinafter, the encapsulated OSU cells are referred to as E-OSU cells. Fill the E-OSU cells into the third padding field.
当从数据队列中未调度出OSU信元时,将空闲单元填充到第三填充域中。When no OSU cells are dispatched from the data queue, the idle cells are filled into the third padding field.
在一种可能的实现方式中,可以按照从上到下、从左至右的顺序填充第三填充域。In a possible implementation manner, the third padding fields may be filled in order from top to bottom and from left to right.
下面介绍对OSU信元进行封装处理的方式:The following describes how to encapsulate OSU cells:
方式1:Method 1:
如图7中的(a)所示,在OSU信元之前添加起始定界字符,在OSU信元之后添加结束定界字符。因此,通过起始定界字符和结束定界字符可以确定一个OSU信元。As shown in (a) in FIG. 7, a start delimiter character is added before the OSU cell, and an end delimiter character is added after the OSU cell. Therefore, an OSU cell can be determined by the start delimiter character and the end delimiter character.
方式2:Method 2:
如图7中的(b)所示,在OSU信元之前添加起始定界字符,在OSU信元之后添加结束定界字符,在起始定界字符和结束定界字符之间添加第二开销信息。例如,第二开销信息可以在OSU信元之后、结束定界字符之前。该第二开销信息指示OSU信元对应业务的带宽。As shown in (b) in Figure 7, a start delimiter character is added before the OSU cell, an end delimiter character is added after the OSU cell, and a second delimiter character is added between the start delimiter character and the end delimiter character. overhead information. For example, the second overhead information may be after the OSU cell and before the end delimiter character. The second overhead information indicates the bandwidth of the service corresponding to the OSU cell.
方式3:Method 3:
如图7中的(c)所示,在OSU信元之前添加起始定界字符,在OSU信元之后添加结束定界字符,在起始定界字符和结束定界字符之间添加前向纠错(forward error correction,FEC)字符。例如,FEC字符可以在OSU信元之后、结束定界字符之前。在数据传输的过程中,如果误码率较高,可以添加FEC字符以提高传输的可靠性。As shown in (c) in Figure 7, add a start delimiter character before the OSU cell, add an end delimiter character after the OSU cell, and add a forward direction between the start delimiter character and the end delimiter character Error correction (forward error correction, FEC) characters. For example, the FEC character may follow the OSU cell and precede the End Delimiter character. During data transmission, if the bit error rate is high, FEC characters can be added to improve transmission reliability.
方式4:Method 4:
如图7中的(d)所示,在OSU信元之前添加起始定界字符,在OSU信元之后添加结束定界字符,在起始定界字符和结束定界字符之间添加第二开销信息和FEC字符。例如,第二开销信息可以在OSU信元之后、结束定界字符之前,FEC字符可以在第二开销信息之后、结束定界字符之前。As shown in (d) in Figure 7, a start delimiter character is added before the OSU cell, an end delimiter character is added after the OSU cell, and a second delimiter character is added between the start delimiter character and the end delimiter character. Overhead information and FEC characters. For example, the second overhead information may be after the OSU cell and before the end delimiter character, and the FEC character may be after the second overhead information and before the end delimiter character.
相比于图2中的方法,由于图5中的方法未在净荷区中预配置多个确定的第一填充域,按照图5中的方法可以更灵活地填充STM-1帧的净荷区。Compared with the method in Fig. 2, since the method in Fig. 5 does not pre-configure a plurality of determined first padding fields in the payload area, the method in Fig. 5 can fill the payload of the STM-1 frame more flexibly Area.
方式B:Method B:
当从数据队列中调度出OSU信元时,在第三填充域中依次填充起始定界字符、OSU信元和结束定界字符。即,不对OSU信元进行封装处理,而是按照一定的顺序进行填充。当从数据队列中未调度出OSU信元时,将空闲单元填充到第三填充域中。空闲单元的大小根据实际情况确定。When the OSU cell is dispatched from the data queue, the start delimiter, the OSU cell and the end delimiter are filled in sequence in the third padding field. That is, OSU cells are not encapsulated, but filled in a certain order. When no OSU cells are dispatched from the data queue, the idle cells are filled into the third padding field. The size of the free unit is determined according to the actual situation.
在一种可能的实现方式中,还可以填充第二开销信息。具体可以参考上述方式2中的描述。In a possible implementation manner, the second overhead information may also be filled. For details, refer to the description in the above method 2.
在另一种可能的实现方式中,还可以填充FEC字符。具体可以参考上述方式3中的 描述。In another possible implementation manner, FEC characters may also be filled. For details, refer to the description in Method 3 above.
在另一种可能的实现方式中,还可以填充第二开销信息和FEC字符。具体可以参考上述方式4中的描述。In another possible implementation manner, the second overhead information and FEC characters may also be filled. For details, refer to the description in the above-mentioned mode 4.
根据S504中的方案,通过起始定界字符和结束定界字符确定一个OSU信元,并且空闲单元的大小根据实际情况确定,此时不需将STM-1帧的净荷区划分为M个第一填充域,因此,通过这种方式可以更灵活地将OSU信元映射到STM-1帧中。According to the scheme in S504, an OSU cell is determined by the start delimiter character and the end delimiter character, and the size of the idle unit is determined according to the actual situation. At this time, it is not necessary to divide the payload area of the STM-1 frame into M The first padding field, so in this way OSU cells can be mapped more flexibly into STM-1 frames.
在一种可能的实现方式中,该方法还包括:S505,在第四填充域中填充第二指示信息。第二指示信息指示对STM-1帧解映射的模式。In a possible implementation manner, the method further includes: S505, filling the second indication information in the fourth filling field. The second indication information indicates the mode of demapping the STM-1 frame.
S506,添加段开销和管理单元指针构成STM-1帧。S506, adding the section overhead and the management unit pointer to form the STM-1 frame.
该过程可以与S207相同,具体可以参考S207的描述。This process may be the same as that of S207, and for details, reference may be made to the description of S207.
如图8所示,本申请提出了另一种将OSU信元从STM-1帧中解映射的方法,该方法也可称之为第四模式。该方法与图5所示的将OSU信元映射到STM-1帧中的方法对应。该方法包括:As shown in FIG. 8 , this application proposes another method for demapping OSU cells from STM-1 frames, and this method can also be called the fourth mode. This method corresponds to the method for mapping OSU cells into STM-1 frames shown in FIG. 5 . The method includes:
S801,剥离STM-1帧中的段开销和管理单元指针。S801. Strip the section overhead and the management unit pointer in the STM-1 frame.
在一种可能的实现方式中,该方法还包括:S802,检索第四填充域,根据第二指示信息确定对STM-1帧解映射的模式。In a possible implementation manner, the method further includes: S802. Retrieve the fourth padding field, and determine a demapping mode for the STM-1 frame according to the second indication information.
S803,检索STM-1帧中的第三填充域,根据起始定界字符和结束定界字符获取OSU信元。S803. Retrieve the third padding field in the STM-1 frame, and obtain the OSU cell according to the start delimiter character and the end delimiter character.
下面介绍根据起始定界字符和结束定界字符获取OSU信元的方式:The following describes how to obtain OSU cells based on the start delimiter character and the end delimiter character:
方式C:Method C:
与S504中的方式A对应,根据起始定界字符和结束定界字符获取E-OSU信元,剥离E-OSU信元中的起始定界字符和结束定界字符,获取OSU信元。Corresponding to mode A in S504, the E-OSU cell is obtained according to the start delimiter character and the end delimiter character, and the start delimiter character and the end delimiter character in the E-OSU cell are stripped to obtain the OSU cell.
在一种可能的方式中,当S504的方式A按照方式2进行时,该方法还包括剥离E-OSU信元中的第二开销信息。In a possible manner, when the manner A of S504 is performed according to the manner 2, the method further includes stripping the second overhead information in the E-OSU information element.
在一种可能的方式中,当S504的方式A按照方式3进行时,该过程还包括剥离E-OSU信元中的FEC字符。In a possible manner, when the manner A of S504 is performed according to the manner 3, the process further includes stripping the FEC character in the E-OSU cell.
在一种可能的方式中,当S504的方式A按照方式4进行时,该过程还包括剥离E-OSU信元中的第二开销信息和FEC字符。In a possible manner, when manner A of S504 is performed according to manner 4, the process further includes stripping the second overhead information and the FEC character in the E-OSU cell.
方式D:Method D:
与S504中的方式B对应,在起始定界字符和结束定界字符之间获取OSU信元。此时,不需获取E-OSU信元,在检索到起始定界字符和结束定界字符之后,直接在起始定界字符和结束定界字符之间确定OSU信元。Corresponding to mode B in S504, the OSU cell is obtained between the start delimiter character and the end delimiter character. At this time, there is no need to obtain the E-OSU information element, and after the initial delimiter character and the end delimiter character are retrieved, the OSU information element is directly determined between the initial delimiter character and the end delimiter character.
图9为适用于本申请提出的方法的一种场景,设备#A和设备#B之间是通过OTN网络连接的,设备#B和设备#C之间是通过SDH/MSTP网络连接的,设备#D为设备#A、设备#B、设备#C的上层设备,例如设备#D可以为网管设备,设备#D用于控制设备#A、设备#B、设备#C。FIG. 9 is a scenario applicable to the method proposed in this application. The device #A and the device #B are connected through the OTN network, and the device #B and the device #C are connected through the SDH/MSTP network. The device #D is the upper layer device of device #A, device #B, and device #C. For example, device #D can be a network management device, and device #D is used to control device #A, device #B, and device #C.
假设设备#A要向设备#C发送数据,可以使用如图10所示的方法进行发送,该方法包括:Assuming that device #A wants to send data to device #C, the method shown in Figure 10 can be used to send data, the method includes:
S1001,设备#D(第三设备的一例)向设备#B(第一设备的一例)发送第一指示信息。 相应地,设备#B接收第一指示信息。S1001. Device #D (an example of a third device) sends first indication information to a device #B (an example of a first device). Correspondingly, device #B receives the first indication information.
第一指示信息所指示的情况可以有两种:There may be two situations indicated by the first indication information:
情况1:Case 1:
第一指示信息指示设备#B根据第一模式将OSU信元映射到STM-1帧中。The first indication information instructs the device #B to map the OSU cells into the STM-1 frame according to the first mode.
情况2:Case 2:
第一指示信息指示设备#B根据第三模式将OSU信元映射到STM-1帧中。The first indication information instructs the device #B to map the OSU cells into the STM-1 frame according to the third mode.
S1002,设备#D向设备#C(第二设备的一例)发送第三指示信息。S1002. The device #D sends third indication information to the device #C (an example of the second device).
第三指示信息所指示的情况也可以有两种:There may also be two situations indicated by the third indication information:
情况3:Case 3:
与S1001中的情况1对应,第三指示信息指示设备#C根据第二模式对STM-1帧解映射。Corresponding to case 1 in S1001, the third indication information instructs device #C to demap the STM-1 frame according to the second mode.
情况4:Case 4:
与S1001中的情况2对应,第三指示信息指示设备#C根据第四模式对STM-1帧解映射。Corresponding to case 2 in S1001, the third indication information instructs device #C to demap the STM-1 frame according to the fourth mode.
S1003,设备#A将数据映射到OSU信元中,再将OSU信元映射到ODUk帧中,向设备#B(第一设备的一例)发送ODUk帧。相应地,设备#B接收ODUk帧。S1003. Device #A maps data to OSU cells, then maps OSU cells to ODUk frames, and sends ODUk frames to device #B (an example of the first device). Accordingly, device #B receives the ODUk frame.
S1004,设备#B对接收到的ODUk帧进行解映射处理,获取OSU信元。S1004, the device #B performs demapping processing on the received ODUk frame, and obtains an OSU cell.
S1005,设备#B将OSU信元映射到STM-1帧中。S1005. The device #B maps the OSU cell into the STM-1 frame.
设备#B将OSU信元映射到STM-1帧中也分为两种情况:Device #B maps OSU cells to STM-1 frames in two cases:
情况5:Case 5:
与S1001中的情况1对应,设备#B根据第一模式将OSU信元映射到STM-1帧中。具体映射方式可以参考S201-S207中的描述。即,由设备#B执行方法S201-S207。Corresponding to case 1 in S1001, device #B maps OSU cells into STM-1 frames according to the first mode. For the specific mapping manner, refer to the description in S201-S207. That is, methods S201-S207 are performed by device #B.
情况6:Case 6:
与S1001中的情况2对应,设备#B根据第三模式将OSU信元映射到STM-1帧中。具体映射方式可以参考S501-S506中的描述。即,由设备#B执行方法S501-S506。Corresponding to case 2 in S1001, device #B maps OSU cells into STM-1 frames according to the third mode. For the specific mapping manner, refer to the description in S501-S506. That is, methods S501-S506 are performed by device #B.
S1006,设备#B向设备#C发送STM-1帧。相应地,设备#C接收STM-1帧。S1006. The device #B sends the STM-1 frame to the device #C. Accordingly, device #C receives the STM-1 frame.
在另一种可能的实现方式中,设备#B可以将多个STM-1帧复用成STM-N帧,向设备#C发送STM-N帧。相应地,设备#C接收STM-N帧。In another possible implementation manner, the device #B may multiplex multiple STM-1 frames into an STM-N frame, and send the STM-N frame to the device #C. Accordingly, device #C receives the STM-N frame.
S1007,设备#C对接收到的STM-1帧进行解映射处理,获取OSU信元。S1007, the device #C performs demapping processing on the received STM-1 frame, and obtains an OSU cell.
设备#C对STM-1帧进行解映射处理也可以分为两种情况:The demapping process of the STM-1 frame by device #C can also be divided into two cases:
情况7:Case 7:
与S1002中的情况3对应,设备#C根据第二模式对接收到的STM-1帧进行解映射处理。具体的解映射方式可以参考S401-S403中的描述,即,由设备#C执行方法S401-S403。Corresponding to case 3 in S1002, device #C performs demapping processing on the received STM-1 frame according to the second mode. For the specific demapping manner, refer to the description in S401-S403, that is, the device #C executes the methods S401-S403.
情况8:Case 8:
与S1002中的情况4对应,设备#C根据第四模式对接收到的STM-1帧进行解映射处理。具体的解映射方式可以参考S801-S803中的描述,即,由设备#C执行方法S801-S803。Corresponding to case 4 in S1002, device #C performs demapping processing on the received STM-1 frame according to the fourth mode. For the specific demapping manner, reference may be made to the description in S801-S803, that is, the method S801-S803 is performed by the device #C.
S1008,设备#C对OSU信元进行解映射处理,获取数据。S1008. The device #C performs demapping processing on the OSU cell to obtain data.
图11为适用于本申请提出的方法的一种场景,设备#E和设备#F之间是通过SDH/MSTP网络连接的,设备#F和设备#G之间是通过OTN网络连接的,设备#H为设备 #E、设备#F、设备#G的上层设备,例如设备#H可以为网管设备,设备#H用于控制设备#E、设备#F、设备#G。Figure 11 is a scenario applicable to the method proposed in this application. The device #E and the device #F are connected through the SDH/MSTP network, and the device #F and the device #G are connected through the OTN network. The device #H is the upper layer device of equipment #E, equipment #F, and equipment #G. For example, equipment #H can be a network management equipment, and equipment #H is used to control equipment #E, equipment #F, and equipment #G.
假设设备#E要向设备#G发送数据,可以使用如图12所示的方法进行发送,该方法包括:Assuming that device #E wants to send data to device #G, it can send data using the method shown in Figure 12, which includes:
S1201,设备#H(第三设备的另一例)向设备#E(第一设备的另一例)发送第一指示信息。S1201. The device #H (another example of the third device) sends first indication information to the device #E (another example of the first device).
与S1001类似,第一指示信息所指示的情况可以有两种。具体可以参考S1001的描述。Similar to S1001, there may be two situations indicated by the first indication information. For details, refer to the description of S1001.
S1202,设备#H向设备#F(第二设备的另一例)发送第三指示信息。S1202. The device #H sends third indication information to the device #F (another example of the second device).
与S1002类似,第三指示信息所指示的情况也可以有两种。具体可以参考S1002的描述。Similar to S1002, there may be two situations indicated by the third indication information. For details, refer to the description of S1002.
S1203,设备#E(第一设备的另一例)将数据映射到OSU信元中,再将OSU信元映射到STM-1帧中,向设备#F发送STM-1帧。相应地,设备#F接收STM-1帧。S1203. Device #E (another example of the first device) maps data to OSU cells, then maps OSU cells to STM-1 frames, and sends STM-1 frames to device #F. Accordingly, device #F receives the STM-1 frame.
与S1005类似,设备#E将OSU信元映射到STM-1帧中可以有两种情况。具体可以参考S1005的描述。Similar to S1005, there are two cases where the device #E maps the OSU cell to the STM-1 frame. For details, refer to the description of S1005.
S1204,设备#F对接收到的STM-1帧进行解映射处理,获取OSU信元。S1204, the device #F performs demapping processing on the received STM-1 frame, and obtains an OSU cell.
与S1007类似,设备#F对STM-1帧进行解映射处理也可以分为两种情况。具体可以参考S1007的描述。Similar to S1007, the demapping process performed by the device #F on the STM-1 frame can also be divided into two cases. For details, refer to the description of S1007.
S1205,设备#F将OSU信元映射到ODUk帧中。S1205. The device #F maps the OSU cells into the ODUk frame.
S1206,设备#F向设备#G发送ODUk帧。相应地,设备#G接收ODUk帧。S1206. The device #F sends the ODUk frame to the device #G. Correspondingly, device #G receives the ODUk frame.
S1207,设备#G对接收到的ODUk帧进行解映射处理,获取OSU信元。S1207, the device #G performs demapping processing on the received ODUk frame, and obtains an OSU cell.
S1208,设备#G对OSU信元进行解映射处理,获取数据。S1208. The device #G performs demapping processing on the OSU cell to obtain data.
根据前述方法,图13为本申请实施例提供的一种通信设备,该通信设备包括收发单元1301和处理单元1302。收发单元1301可用于实现方法实施例中的接收和发送功能。方法实施例中的其他的功能可以通过处理单元1302来实现。收发单元可以通过数据处理芯片中的输入接口和输出接口来实现,方法实施例中的发送和接收分别对应芯片中的输出和输入。收发单元1301还可以拆分为接收单元和发送单元,接收单元可用于实现方法实施例中的接收功能,发送单元可用于实现方法实施例中的发送功能。接收单元可通过数据处理芯片中的输出接口来实现,发送单元可通过数据处理芯片的输入接口来实现。此外,收发单元和处理单元可以通过同一芯片来实现,本申请在此不作限定。应理解,本申请实施例中的收发单元1301还可以由收发器(包括发射器和接收器)或收发器相关电路组件实现,处理单元1302还可以由处理器或处理器相关电路组件(或者,称为处理电路)实现。According to the foregoing method, FIG. 13 is a communication device provided by an embodiment of the present application, and the communication device includes a transceiver unit 1301 and a processing unit 1302 . The transceiver unit 1301 can be used to implement the receiving and sending functions in the method embodiments. Other functions in the method embodiments may be implemented by the processing unit 1302 . The transceiver unit can be realized through the input interface and output interface in the data processing chip, and the sending and receiving in the method embodiment correspond to the output and input in the chip respectively. The transceiver unit 1301 can also be divided into a receiving unit and a sending unit. The receiving unit can be used to realize the receiving function in the method embodiment, and the sending unit can be used to realize the sending function in the method embodiment. The receiving unit can be realized through the output interface of the data processing chip, and the sending unit can be realized through the input interface of the data processing chip. In addition, the transceiver unit and the processing unit may be implemented by the same chip, which is not limited in this application. It should be understood that the transceiver unit 1301 in the embodiment of the present application may also be implemented by a transceiver (including a transmitter and a receiver) or a transceiver-related circuit component, and the processing unit 1302 may also be implemented by a processor or a processor-related circuit component (or, Called the processing circuit) implementation.
示例性地,通信设备可以是通信装置设备,也可以是应用于通信装置设备中的芯片或者其他具有上述通信装置设备功能的组合器件、部件等。Exemplarily, the communication device may be a communication device, and may also be a chip applied in the communication device or other combined devices, components, etc. having the functions of the above-mentioned communication device.
示例性地,当该通信设备为第一设备时,收发单元1301和处理单元1302能够支持上述方法示例中由第一设备完成的动作。Exemplarily, when the communication device is the first device, the transceiving unit 1301 and the processing unit 1302 can support actions performed by the first device in the foregoing method examples.
示例性地,当该通信设备为第二设备时,收发单元1301和处理单元1302能够支持上述方法示例中由第二设备完成的动作。Exemplarily, when the communication device is the second device, the transceiving unit 1301 and the processing unit 1302 can support actions performed by the second device in the foregoing method examples.
本申请实施例还提供一种通信设备,如图14所示,包括:处理器1401、通信接口1402、 存储器1403。其中,处理器1401、通信接口1402以及存储器1403可以通过总线14014相互连接;总线14014可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。上述总线14014可以分为地址总线、数据总线和控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。处理器1401可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器1403可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。The embodiment of the present application also provides a communication device, as shown in FIG. 14 , including: a processor 1401 , a communication interface 1402 , and a memory 1403 . Wherein, the processor 1401, the communication interface 1402 and the memory 1403 can be connected to each other through the bus 14014; the bus 14014 can be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus etc. The above bus 14014 can be divided into address bus, data bus and control bus. For ease of representation, only one thick line is used in FIG. 14 , but it does not mean that there is only one bus or one type of bus. The processor 1401 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP. The processor may further include hardware chips. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof. Memory 1403 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory.
处理器1401用于实现通信装置的数据处理操作。通信接口1402用于实现通信装置的收发操作。The processor 1401 is used to implement data processing operations of the communication device. The communication interface 1402 is used to realize the transceiving operation of the communication device.
示例性地,当该通信装置为第一设备时,处理器1401、通信接口1402和存储器1403能够支持上述方法示例中由第一设备完成的动作。Exemplarily, when the communication apparatus is the first device, the processor 1401, the communication interface 1402, and the memory 1403 can support actions performed by the first device in the foregoing method examples.
示例性地,当该通信装置为第二设备时,处理器1401、通信接口1402和存储器1403能够支持上述方法示例中由第二设备完成的动作。Exemplarily, when the communication apparatus is the second device, the processor 1401, the communication interface 1402, and the memory 1403 can support actions performed by the second device in the foregoing method examples.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (31)

  1. 一种传输数据的方法,其特征在于,包括:A method for transmitting data, comprising:
    第一设备获取光业务单元OSU信元;The first device obtains an optical service unit OSU cell;
    所述第一设备将所述OSU信元映射到第1级同步传输模块STM-1帧中;The first device maps the OSU cell to a first-level synchronous transport module STM-1 frame;
    所述第一设备向第二设备发送所述STM-1帧。The first device sends the STM-1 frame to the second device.
  2. 如权利要求1所述的方法,其特征在于,The method of claim 1, wherein
    所述第一设备将所述OSU信元映射到第1级同步传输模块STM-1帧中,包括:The first device maps the OSU cell into a first-level synchronous transport module STM-1 frame, including:
    所述第一设备在所述STM-1帧中确定M个第一填充域,所述M个第一填充域中的每个第一填充域的大小大于或等于一个OSU信元的大小,M为正整数;The first device determines M first padding fields in the STM-1 frame, the size of each first padding field in the M first padding fields is greater than or equal to the size of an OSU cell, M is a positive integer;
    当调度出所述OSU信元时,所述第一设备将所述OSU信元填充到第一填充域中;When the OSU information element is scheduled, the first device fills the OSU information element into a first padding field;
    当未调度出所述OSU信元时,所述第一设备将空闲单元填充到第一填充域中。When the OSU cell is not scheduled, the first device fills idle cells into the first padding field.
  3. 如权利要求2所述的方法,其特征在于,The method of claim 2, wherein
    所述第一设备将所述OSU信元映射到第1级同步传输模块STM-1帧中,还包括:The first device maps the OSU cell into a first-level synchronous transport module STM-1 frame, and further includes:
    所述第一设备在所述STM-1帧中确定M个第二填充域,所述M个第二填充域与所述M个第一填充域一一对应;The first device determines M second padding fields in the STM-1 frame, and the M second padding fields are in one-to-one correspondence with the M first padding fields;
    所述第一设备根据第i个第一填充域的填充情况,在第i个第二填充域中填充第一开销信息和第二开销信息,所述第i个第一填充域与所述第i个第二填充域对应;The first device fills the first overhead information and the second overhead information in the i-th second padding field according to the filling condition of the i-th first padding field, and the i-th first padding field is the same as the The i second padding fields correspond to;
    其中,所述第一开销信息指示所述第i个第一填充域中是否填充了所述OSU信元,当所述第i个第一填充域中填充了所述OSU信元时,所述第二开销信息指示所述第i个第一填充域中填充的所述OSU信元对应业务的带宽,i为小于或等于M的正整数。Wherein, the first overhead information indicates whether the ith first padding field is filled with the OSU cell, and when the ith first padding field is filled with the OSU cell, the The second overhead information indicates the bandwidth of the service corresponding to the OSU cell filled in the ith first padding field, where i is a positive integer less than or equal to M.
  4. 如权利要求1所述的方法,其特征在于,The method of claim 1, wherein
    所述第一设备将所述OSU信元映射到第1级同步传输模块STM-1帧中,包括:The first device maps the OSU cell into a first-level synchronous transport module STM-1 frame, including:
    所述第一设备在所述STM-1帧中确定第三填充域;The first device determines a third padding field in the STM-1 frame;
    当调度出所述OSU信元时,所述第一设备将起始定界字符、所述OSU信元和结束定界字符填充到所述第三填充域中,所述起始定界字符在所述OSU信元之前,所述结束定界字符在所述OSU信元之后;When the OSU cell is dispatched, the first device fills the start delimiter, the OSU cell and the end delimiter into the third padding field, and the start delimiter is in the Before the OSU cell, the end delimiter character is after the OSU cell;
    当未调度出所述OSU信元时,所述第一设备将空闲单元填充到所述第三填充域中。When the OSU cell is not scheduled, the first device fills idle cells into the third filling field.
  5. 如权利要求4所述的方法,其特征在于,The method of claim 4, wherein
    所述第一设备将起始定界字符、所述OSU信元和结束定界字符填充到所述第三填充域中,包括:The first device fills the start delimiter character, the OSU cell and the end delimiter character into the third padding field, including:
    所述第一设备将所述起始定界字符、所述OSU信元和所述结束定界字符封装,将封装后的OSU信元填充到所述第三填充域中;或者,The first device encapsulates the start delimiter, the OSU cell, and the end delimiter, and fills the encapsulated OSU cell into the third padding field; or,
    所述第一设备在所述第三填充域中依次填充所述起始定界字符、所述OSU信元和所述结束定界字符。The first device sequentially fills the start delimiter character, the OSU cell, and the end delimiter character in the third padding field.
  6. 如权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, further comprising:
    所述第一设备从第三设备接收第一指示信息,所述第一指示信息指示将所述OSU信元映射到所述STM-1帧中的模式。The first device receives first indication information from the third device, where the first indication information indicates a mode of mapping the OSU cell into the STM-1 frame.
  7. 如权利要求1-6中所述的方法,其特征在于,A method as claimed in claims 1-6, characterized in that,
    所述第一设备将所述OSU信元映射到第1级同步传输模块STM-1帧中,还包括:The first device maps the OSU cell into a first-level synchronous transport module STM-1 frame, and further includes:
    所述第一设备在所述STM-1帧中确定第四填充域;The first device determines a fourth padding field in the STM-1 frame;
    所述第一设备在所述第四填充域中填充第二指示信息,所述第二指示信息指示对所述STM-1帧解映射的模式,其中,对所述STM-1帧解映射的模式与将所述OSU信元映射到所述STM-1帧中的模式对应。Filling, by the first device, second indication information in the fourth padding field, where the second indication information indicates a mode for demapping the STM-1 frame, where the demapping mode for the STM-1 frame The pattern corresponds to the pattern of mapping the OSU cell into the STM-1 frame.
  8. 一种传输数据的方法,其特征在于,包括:A method for transmitting data, comprising:
    第二设备从第一设备接收第1级同步传输模块STM-1帧,所述STM-1帧中包括OSU信元;The second device receives a first-level synchronous transport module STM-1 frame from the first device, and the STM-1 frame includes an OSU cell;
    所述第二设备对所述STM-1帧解映射,获取所述OSU信元。The second device demaps the STM-1 frame to obtain the OSU information element.
  9. 如权利要求8所述的方法,其特征在于,The method of claim 8, wherein
    所述第二设备对所述STM-1帧解映射,包括:Demapping the STM-1 frame by the second device includes:
    所述第二设备检索所述STM-1帧中的M个第二填充域,所述M个第二填充域与M个第一填充域一一对应,M为正整数;The second device retrieves M second padding fields in the STM-1 frame, the M second padding fields correspond to the M first padding fields one-to-one, and M is a positive integer;
    其中,第i个第二填充域中包括第一开销信息,所述第一开销信息指示第i个第一填充域中是否填充了所述OSU信元,所述第i个第一填充域与所述第i个第二填充域对应,i为小于或等于M的正整数;Wherein, the i-th second padding field includes first overhead information, and the first overhead information indicates whether the ith first padding field is filled with the OSU cell, and the i-th first padding field is the same as The ith second padding field corresponds, i is a positive integer less than or equal to M;
    当所述第一开销信息指示所述第i个第一填充域中填充了所述OSU信元时,所述第二设备从所述第i个第一填充域中获取所述OSU信元;When the first overhead information indicates that the i-th first padding field is filled with the OSU information element, the second device obtains the OSU information element from the i-th first padding field;
    当所述第一开销信息指示所述第i个第一填充域中未填充所述OSU信元时,所述第二设备继续检索其他的第二填充域。When the first overhead information indicates that the i-th first padding field is not filled with the OSU information element, the second device continues to search for other second padding fields.
  10. 如权利要求9所述的方法,其特征在于,The method of claim 9, wherein
    所述第i个第二填充域中还包括第二开销信息;The ith second padding field further includes second overhead information;
    所述第二设备对所述STM-1帧解映射,还包括:Demapping the STM-1 frame by the second device further includes:
    当所述第一开销信息指示所述第i个第一填充域中填充了所述OSU信元时,所述第二设备获取所述第二开销信息,所述第二开销信息指示所述第i个第一填充域中填充的所述OSU信元对应业务的带宽。When the first overhead information indicates that the i-th first padding field is filled with the OSU information element, the second device acquires the second overhead information, and the second overhead information indicates that the i-th The OSU cell filled in the i first padding fields corresponds to the bandwidth of the service.
  11. 如权利要求8所述的方法,其特征在于,The method of claim 8, wherein
    所述第二设备对所述STM-1帧解映射,包括:Demapping the STM-1 frame by the second device includes:
    所述第二设备检索所述STM-1帧中的第三填充域,所述第三填充域包括起始定界字符和结束定界字符;The second device retrieves a third padding field in the STM-1 frame, the third padding field including a start delimiter and an end delimiter;
    所述第二设备根据所述起始定界字符和所述结束定界字符获取所述OSU信元。The second device acquires the OSU information element according to the start delimiter character and the end delimiter character.
  12. 如权利要求11所述的方法,其特征在于,The method of claim 11, wherein,
    所述第二设备根据所述起始定界字符和所述结束定界字符获取所述OSU信元,包括:The second device acquires the OSU information element according to the start delimiter character and the end delimiter character, including:
    所述第二设备获取封装后的OSU信元;The second device obtains the encapsulated OSU cell;
    所述第二设备剥离所述封装后的OSU信元中的所述起始定界字符和所述结束定界字符后,获取所述OSU信元。After the second device strips the start delimiter character and the end delimiter character in the encapsulated OSU cell, it acquires the OSU cell.
  13. 如权利要求11或12所述的方法,其特征在于,The method according to claim 11 or 12, characterized in that,
    所述第三填充域中还包括第二开销信息,所述第二开销信息指示所述OSU信元对应 业务的带宽;The third padding field also includes second overhead information, and the second overhead information indicates the bandwidth of the service corresponding to the OSU cell;
    所述第二设备对所述STM-1帧解映射,还包括:Demapping the STM-1 frame by the second device further includes:
    所述第二设备从所述起始定界字符和所述结束定界字符之间获取所述第二开销信息。The second device acquires the second overhead information from between the start delimiter character and the end delimiter character.
  14. 如权利要求8-13中任一项所述的方法,其特征在于,The method according to any one of claims 8-13, characterized in that,
    所述第二设备对所述STM-1帧解映射,还包括:Demapping the STM-1 frame by the second device further includes:
    所述第二设备从所述STM-1帧的第四填充域中获取第二指示信息,所述第二指示信息指示对所述STM-1帧解映射的模式;The second device acquires second indication information from the fourth padding field of the STM-1 frame, where the second indication information indicates a demapping mode for the STM-1 frame;
    或者,or,
    所述方法还包括:The method also includes:
    所述第二设备从第三设备接收第三指示信息,所述第三指示信息指示对所述STM-1帧解映射的模式。The second device receives third indication information from a third device, where the third indication information indicates a mode for demapping the STM-1 frame.
  15. 一种通信设备,其特征在于,包括:A communication device, characterized in that it includes:
    收发单元,用于获取光业务单元OSU信元;The transceiver unit is used to obtain the optical service unit OSU cell;
    处理单元,用于将所述OSU信元映射到第1级同步传输模块STM-1帧中;A processing unit, configured to map the OSU cell into a first-level synchronous transport module STM-1 frame;
    所述收发单元,还用于向第二设备发送所述STM-1帧。The transceiving unit is further configured to send the STM-1 frame to the second device.
  16. 如权利要求15所述的通信设备,其特征在于,A communication device as claimed in claim 15, characterized in that,
    所述处理单元,用于将所述OSU信元映射到第1级同步传输模块STM-1帧中,包括:The processing unit is configured to map the OSU cell into a first-level synchronous transport module STM-1 frame, including:
    所述处理单元在所述STM-1帧中确定M个第一填充域,所述M个第一填充域中的每个第一填充域的大小大于或等于一个OSU信元的大小,M为正整数;The processing unit determines M first padding fields in the STM-1 frame, the size of each first padding field in the M first padding fields is greater than or equal to the size of an OSU cell, and M is positive integer;
    当调度出所述OSU信元时,所述处理单元将所述OSU信元填充到第一填充域中;When the OSU information element is dispatched, the processing unit fills the OSU information element into a first padding field;
    当未调度出所述OSU信元时,所述处理单元将空闲单元填充到第一填充域中。When the OSU cells are not scheduled, the processing unit fills idle cells into the first filling field.
  17. 如权利要求16所述的通信设备,其特征在于,The communications device of claim 16, wherein:
    所述处理单元,用于将所述OSU信元映射到第1级同步传输模块STM-1帧中,还包括:The processing unit is configured to map the OSU cell into a first-level synchronous transport module STM-1 frame, and further includes:
    所述处理单元在所述STM-1帧中确定M个第二填充域,所述M个第二填充域与所述M个第一填充域一一对应;The processing unit determines M second padding fields in the STM-1 frame, and the M second padding fields are in one-to-one correspondence with the M first padding fields;
    所述处理单元根据第i个第一填充域的填充情况,在第i个第二填充域中填充第一开销信息和第二开销信息,所述第i个第一填充域与所述第i个第二填充域对应;The processing unit fills the first overhead information and the second overhead information in the i-th second padding field according to the filling condition of the i-th first padding field, and the i-th first padding field is the same as the i-th A second padding domain corresponds to;
    其中,所述第一开销信息指示所述第i个第一填充域中是否填充了所述OSU信元,当所述第i个第一填充域中填充了所述OSU信元时,所述第二开销信息指示所述第i个第一填充域中填充的所述OSU信元对应业务的带宽,i为小于或等于M的正整数。Wherein, the first overhead information indicates whether the ith first padding field is filled with the OSU cell, and when the ith first padding field is filled with the OSU cell, the The second overhead information indicates the bandwidth of the service corresponding to the OSU cell filled in the ith first padding field, where i is a positive integer less than or equal to M.
  18. 如权利要求15所述的通信设备,其特征在于,A communication device as claimed in claim 15, characterized in that,
    所述处理单元,用于将所述OSU信元映射到第1级同步传输模块STM-1帧中,包括:The processing unit is configured to map the OSU cell into a first-level synchronous transport module STM-1 frame, including:
    所述处理单元在所述STM-1帧中确定第三填充域;The processing unit determines a third padding field in the STM-1 frame;
    当调度出所述OSU信元时,所述处理单元将起始定界字符、所述OSU信元和结束定界字符填充到所述第三填充域中,所述起始定界字符在所述OSU信元之前,所述结束定界字符在所述OSU信元之后;When the OSU cell is dispatched, the processing unit fills the start delimiter character, the OSU cell and the end delimiter character into the third padding field, and the start delimiter character is in the Before the OSU cell, the end delimiter character is after the OSU cell;
    当未调度出所述OSU信元时,所述处理单元将空闲单元填充到所述第三填充域中。When the OSU cells are not scheduled, the processing unit fills idle units into the third filling field.
  19. 如权利要求18所述的通信设备,其特征在于,The communications device of claim 18, wherein:
    所述处理单元将起始定界字符、所述OSU信元和结束定界字符填充到所述第三填充域中,包括:The processing unit fills the start delimiter character, the OSU cell and the end delimiter character into the third filling field, including:
    所述处理单元将所述起始定界字符、所述OSU信元和所述结束定界字符封装,将封装后的OSU信元填充到所述第三填充域中;或者,The processing unit encapsulates the start delimiter, the OSU cell, and the end delimiter, and fills the encapsulated OSU cell into the third padding field; or,
    所述处理单元在所述第三填充域中依次填充所述起始定界字符、所述OSU信元和所述结束定界字符。The processing unit sequentially fills the start delimiter character, the OSU cell and the end delimiter character in the third padding field.
  20. 如权利要求15-19中任一项所述的通信设备,其特征在于,The communication device according to any one of claims 15-19, characterized in that,
    所述收发单元,还用于从第三设备接收第一指示信息,所述第一指示信息指示将所述OSU信元映射到所述STM-1帧中的模式。The transceiving unit is further configured to receive first indication information from a third device, where the first indication information indicates a mode of mapping the OSU cell into the STM-1 frame.
  21. 如权利要求15-20中任一项所述的通信设备,其特征在于,The communication device according to any one of claims 15-20, characterized in that,
    所述处理单元,用于将所述OSU信元映射到第1级同步传输模块STM-1帧中,还包括:The processing unit is configured to map the OSU cell into a first-level synchronous transport module STM-1 frame, and further includes:
    所述处理单元在所述STM-1帧中确定第四填充域;The processing unit determines a fourth padding field in the STM-1 frame;
    所述处理单元在所述第四填充域中填充第二指示信息,所述第二指示信息指示对所述STM-1帧解映射的模式,其中,对所述STM-1帧解映射的模式与将所述OSU信元映射到所述STM-1帧中的模式对应。Filling, by the processing unit, second indication information in the fourth padding field, where the second indication information indicates a mode for demapping the STM-1 frame, where the mode for demapping the STM-1 frame It corresponds to the mode of mapping the OSU cell into the STM-1 frame.
  22. 一种通信设备,其特征在于,包括:A communication device, characterized in that it includes:
    收发单元,用于从第一设备接收第1级同步传输模块STM-1帧,所述STM-1帧中包括OSU信元;A transceiver unit, configured to receive a first-level synchronous transport module STM-1 frame from the first device, and the STM-1 frame includes an OSU cell;
    处理单元,用于对所述STM-1帧解映射,获取所述OSU信元。A processing unit, configured to demap the STM-1 frame and obtain the OSU information element.
  23. 如权利要求22所述的通信设备,其特征在于,The communications device of claim 22, wherein:
    所述处理单元,用于对所述STM-1帧解映射,包括:The processing unit, configured to demap the STM-1 frame, includes:
    所述处理单元检索所述STM-1帧中的M个第二填充域,所述M个第二填充域与M个第一填充域一一对应,M为正整数;The processing unit retrieves M second padding fields in the STM-1 frame, the M second padding fields correspond to the M first padding fields one-to-one, and M is a positive integer;
    其中,第i个第二填充域中包括第一开销信息,所述第一开销信息指示第i个第一填充域中是否填充了所述OSU信元,所述第i个第一填充域与所述第i个第二填充域对应,i为小于或等于M的正整数;Wherein, the ith second padding field includes first overhead information, and the first overhead information indicates whether the ith first padding field is filled with the OSU cell, and the ith first padding field is related to The ith second padding field corresponds, i is a positive integer less than or equal to M;
    当所述第一开销信息指示所述第i个第一填充域中填充了所述OSU信元时,所述处理单元从所述第i个第一填充域中获取所述OSU信元;When the first overhead information indicates that the i-th first padding field is filled with the OSU information element, the processing unit acquires the OSU information element from the i-th first padding field;
    当所述第一开销信息指示所述第i个第一填充域中未填充所述OSU信元时,所述处理单元继续检索其他的第二填充域。When the first overhead information indicates that the i-th first padding field is not filled with the OSU cell, the processing unit continues to search for other second padding fields.
  24. 如权利要求23所述的通信设备,其特征在于,The communications device of claim 23, wherein:
    所述第i个第二填充域中还包括第二开销信息;The ith second padding field further includes second overhead information;
    所述处理单元,用于对所述STM-1帧解映射,还包括:The processing unit, configured to demap the STM-1 frame, further includes:
    当所述第一开销信息指示所述第i个第一填充域中填充了所述OSU信元时,所述处理单元获取所述第二开销信息,所述第二开销信息指示所述第i个第一填充域中填充的所述OSU信元对应业务的带宽。When the first overhead information indicates that the i-th first padding field is filled with the OSU information element, the processing unit acquires the second overhead information, and the second overhead information indicates that the i-th The bandwidth of the service corresponding to the OSU cell filled in the first padding field.
  25. 如权利要求22所述的通信设备,其特征在于,The communications device of claim 22, wherein:
    所述处理单元,用于对所述STM-1帧解映射,包括:The processing unit, configured to demap the STM-1 frame, includes:
    所述处理单元检索所述STM-1帧中的第三填充域,所述第三填充域包括起始定界字符和结束定界字符;The processing unit retrieves a third padding field in the STM-1 frame, the third padding field including a start delimiter character and an end delimiter character;
    所述处理单元根据所述起始定界字符和所述结束定界字符获取所述OSU信元。The processing unit acquires the OSU information element according to the start delimiter character and the end delimiter character.
  26. 如权利要求25所述的通信设备,其特征在于,The communications device of claim 25, wherein:
    所述处理单元根据所述起始定界字符和所述结束定界字符获取所述OSU信元,包括:The processing unit acquires the OSU information element according to the start delimiter character and the end delimiter character, including:
    所述处理单元获取封装后的OSU信元;The processing unit obtains the encapsulated OSU cell;
    所述处理单元剥离所述封装后的OSU信元中的所述起始定界字符和所述结束定界字符后,获取所述OSU信元。The processing unit acquires the OSU letter after stripping the start delimiter and the end delimiter in the encapsulated OSU letter.
  27. 如权利要求25或26所述的通信设备,其特征在于,A communication device as claimed in claim 25 or 26, characterized in that,
    所述第三填充域中还包括第二开销信息,所述第二开销信息指示所述OSU信元对应业务的带宽;The third padding field further includes second overhead information, and the second overhead information indicates the bandwidth of the service corresponding to the OSU cell;
    所述处理单元,用于对所述STM-1帧解映射,还包括:The processing unit, configured to demap the STM-1 frame, further includes:
    所述处理单元从所述起始定界字符和所述结束定界字符之间获取所述第二开销信息。The processing unit acquires the second overhead information from between the start delimiter character and the end delimiter character.
  28. 如权利要求22-27中任一项所述的通信设备,其特征在于,The communication device according to any one of claims 22-27, characterized in that,
    所述处理单元,用于对所述STM-1帧解映射,还包括:The processing unit, configured to demap the STM-1 frame, further includes:
    所述处理单元从所述STM-1帧的第四填充域中获取第二指示信息,所述第二指示信息指示对所述STM-1帧解映射的模式;The processing unit acquires second indication information from the fourth padding field of the STM-1 frame, where the second indication information indicates a mode for demapping the STM-1 frame;
    或者,or,
    所述收发单元还用于从第三设备接收第三指示信息,所述第三指示信息指示对所述STM-1帧解映射的模式。The transceiving unit is further configured to receive third indication information from a third device, where the third indication information indicates a mode for demapping the STM-1 frame.
  29. 一种通信设备,其特征在于,包括:处理器和存储器,所述处理器用于执行所述存储器中存储的计算机程序或指令,使得所述通信设备执行如权利要求1-7中任一项所述的方法;或者,A communication device, characterized by comprising: a processor and a memory, the processor is used to execute computer programs or instructions stored in the memory, so that the communication device performs the process described in any one of claims 1-7. method described; or,
    使得所述通信设备执行如权利要求8-14中任一项所述的方法。The communication device is made to execute the method according to any one of claims 8-14.
  30. 一种计算机可读存储介质,其特征在于,包括计算机程序或指令,当所述计算机程序或所述指令在计算机上运行时,A computer-readable storage medium, characterized in that it includes a computer program or an instruction, and when the computer program or the instruction is run on a computer,
    使得所述计算机执行如权利要求1-7中任意一项所述的方法;或者,causing the computer to perform the method according to any one of claims 1-7; or,
    使得所述计算机执行如权利要求8-14中任意一项所述的方法。The computer is made to execute the method according to any one of claims 8-14.
  31. 一种芯片系统,其特征在于,包括:至少一个处理器,用于执行存储器中的计算机程序或指令,A chip system, characterized in that it includes: at least one processor for executing computer programs or instructions in memory,
    使得如权利要求1-7中任一项所述的方法被实现;或者,causing the method according to any one of claims 1-7 to be implemented; or,
    使得如权利要求8-14中任一项所述的方法被实现。The method according to any one of claims 8-14 is realized.
PCT/CN2021/100879 2021-06-18 2021-06-18 Method and apparatus for transmitting data WO2022261931A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/100879 WO2022261931A1 (en) 2021-06-18 2021-06-18 Method and apparatus for transmitting data
CN202180098528.5A CN117378214A (en) 2021-06-18 2021-06-18 Method and device for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/100879 WO2022261931A1 (en) 2021-06-18 2021-06-18 Method and apparatus for transmitting data

Publications (1)

Publication Number Publication Date
WO2022261931A1 true WO2022261931A1 (en) 2022-12-22

Family

ID=84526074

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/100879 WO2022261931A1 (en) 2021-06-18 2021-06-18 Method and apparatus for transmitting data

Country Status (2)

Country Link
CN (1) CN117378214A (en)
WO (1) WO2022261931A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006009732A1 (en) * 2004-06-16 2006-01-26 Infinera Corporation Universal digital architecture for transport of client signals of any client payload and format type
CN111490845A (en) * 2019-01-28 2020-08-04 中兴通讯股份有限公司 Method, device and system for transmitting customer service
CN112584259A (en) * 2019-09-30 2021-03-30 华为技术有限公司 Method, device and system for processing service in optical transport network
CN112752173A (en) * 2021-01-04 2021-05-04 烽火通信科技股份有限公司 Method and device for dynamic lossless bandwidth adjustment of M-OTN system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006009732A1 (en) * 2004-06-16 2006-01-26 Infinera Corporation Universal digital architecture for transport of client signals of any client payload and format type
CN111490845A (en) * 2019-01-28 2020-08-04 中兴通讯股份有限公司 Method, device and system for transmitting customer service
CN112584259A (en) * 2019-09-30 2021-03-30 华为技术有限公司 Method, device and system for processing service in optical transport network
CN112752173A (en) * 2021-01-04 2021-05-04 烽火通信科技股份有限公司 Method and device for dynamic lossless bandwidth adjustment of M-OTN system

Also Published As

Publication number Publication date
CN117378214A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
US11038610B2 (en) OTN adaptation for support of subrate granularity and flexibility and for distribution across multiple modem engines
US7391728B2 (en) Apparatus and method for improved Fibre Channel oversubscription over transport
US7230917B1 (en) Apparatus and technique for conveying per-channel flow control information to a forwarding engine of an intermediate network node
WO2017088517A1 (en) Method and device for optical transport network to bear flex ethernet service
US10411790B2 (en) Apparatus and method for accessing star network/mesh network of time division multiple access (TDMA)/single channel per carrier (SCPC) integrated satellite communication
EP3605975B1 (en) Client service transmission method and device
US20190159104A1 (en) Radio Link Aggregation
US6934301B2 (en) Method and apparatus for converting data packets between a higher bandwidth network and a lower bandwidth network
EP0027006B1 (en) Decoding terrestrial interface modules bus structure
CN101119152B (en) Multi-service transmission method and device for microwave communication
US8166183B2 (en) Method and system for fast virtual concatenation setup in a communication network
US7817656B1 (en) Fibre-channel over-subscription over DWDM/SONET/SDH optical transport systems
CN111601186A (en) PON multichannel dynamic binding transmission method, PON node and storage medium
WO2022261931A1 (en) Method and apparatus for transmitting data
SE524254C2 (en) Method and apparatus for increasing channel capacity in fixed mobile communication networks
WO2019232760A1 (en) Data exchange method, data exchange node and data center network
US6330251B1 (en) Method and apparatus for data extraction from a bit stream
US7379467B1 (en) Scheduling store-forwarding of back-to-back multi-channel packet fragments
CN101674145B (en) Data transmission method and apparatus thereof
US6771655B1 (en) Method and apparatus for managing data transportation
KR100236035B1 (en) Method of scheduling virtual channels by using subtables in an atm nic
US6728254B1 (en) Multiple access parallel memory and method
US6618374B1 (en) Method for inverse multiplexing of ATM using sample prepends
US6393033B1 (en) Method and apparatus for encapsulating ISDN data in a broadband network
US7558260B2 (en) Byte-timeslot-synchronous, dynamically switched multi-source-node data transport bus system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21945516

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE