WO2024109349A1 - Data transmission method and apparatus - Google Patents
Data transmission method and apparatus Download PDFInfo
- Publication number
- WO2024109349A1 WO2024109349A1 PCT/CN2023/122564 CN2023122564W WO2024109349A1 WO 2024109349 A1 WO2024109349 A1 WO 2024109349A1 CN 2023122564 W CN2023122564 W CN 2023122564W WO 2024109349 A1 WO2024109349 A1 WO 2024109349A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time slot
- indication information
- data
- slot block
- group
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 137
- 230000005540 biological transmission Effects 0.000 title abstract description 27
- 238000013507 mapping Methods 0.000 claims abstract description 15
- 230000003287 optical effect Effects 0.000 claims description 56
- 238000004891 communication Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 12
- 230000006978 adaptation Effects 0.000 abstract description 20
- 230000008859 change Effects 0.000 description 50
- 230000006870 function Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 21
- 238000012545 processing Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 15
- 239000000243 solution Substances 0.000 description 11
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 8
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 8
- 238000012795 verification Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 239000000945 filler Substances 0.000 description 5
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000005693 optoelectronics Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000012086 standard solution Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1652—Optical Transport Network [OTN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
Definitions
- the present application relates to the field of optical communications, and more specifically, to a method and device for transmitting data.
- Optical Transport Network is the core infrastructure network of the 5th generation fixed network. It is widely deployed in trunk lines, metro core and metro edge. It has the natural advantages of high quality, large capacity and wide coverage. Adding small-granularity pipes to the OTN network to carry these high-quality connections has become a hot topic.
- the Optical Service Unit (OSU) currently developed by the China Communications Standards Association (CCSA) is used to carry small-granularity services in the OTN network. Multiple services are mapped and encapsulated into multiple OSUs. Different OSUs correspond to different Flexible Tributary Units (TUflex), and then multiple TUflexes are multiplexed into the Optical Payload Unit (OPU).
- TUflex Flexible Tributary Units
- OSU Optical Payload Unit
- CRC-8 check code in the cyclic redundancy check (CRC) is used to perform cyclic redundancy check on the general overhead and special overhead of the OSU frame.
- CRC check fails, the entire 192-byte payload block (PB) of the OSU frame is discarded, and the bit error is expanded to data loss, which affects the reliability of data transmission. Due to the above problems with 192-byte PB, a small slot granularity (e.g., 10M) is proposed, and the control of rate adaptation in the small slot granular
- the present application provides a method and device for transmitting data, which can realize rate adaptation control when transmitting data with small time slot granularity.
- an embodiment of the present application provides a method for transmitting data, which can be executed by a sending device, or can also be executed by a component of the sending device (for example, a chip or a circuit), without limitation.
- the method for transmitting data includes: receiving service data; mapping the service data to an optical transport network (OTN) frame, the overhead area of the OTN frame includes a group of indication information, the payload area of the OTN frame includes a group of time slot blocks, the group of indication information is used to indicate that the object carried by the group of time slot blocks is data or padding, the group of indication information is located in at least one row in the overhead area of the OTN frame, the group of time slot blocks is located in at least one row in the payload area of the OTN frame, and the at least one row where the group of indication information is located is located before the at least one row where the group of time slot blocks is located; sending the OTN frame.
- OTN optical transport network
- a group of indication information is generally continuous in the overhead area of the OTN frame, so the following description is taken as an example of a group of indication information being a group of continuous indication information.
- the relevant description of the indication information can also refer to the case where the indication information is continuous, and the description will not be repeated in this application.
- multiple indication information is defined in the overhead area of the OTN frame, and the multiple indication information is used to indicate that the objects carried by multiple time slot blocks located after the multiple indication information in the payload area of the OTN frame (for example, the row where the indication information is located is before the row where the time slot block is located) are data or padding. Indicating that a certain time slot block is data or padding is to indicate whether the time slot block is a time slot block carrying data or a padding block, so that the receiving end device can parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
- mapping the service data to the OTN frame includes: mapping the service data to multiple time slot blocks in the group of time slot blocks in the payload area of the OTN frame, wherein the indication information corresponding to the first time slot block in the multiple time slot blocks is used to indicate that the object carried by the first time slot block is data or padding, and the multiple time slot blocks The objects carried by the time slot blocks in the block except the first time slot block are data.
- indication information can be used to indicate that the object carried by one of the multiple time slot blocks is data or padding, and the objects carried by other time slot blocks are data (no indication is required for the other time slot blocks, or they are fixedly indicated as data), which can further reduce the indication overhead.
- an embodiment of the present application provides a method for transmitting data.
- the method may be executed by a receiving device, or may be executed by a component (eg, a chip or a circuit) of the receiving device, without limitation.
- the method for transmitting data comprises: receiving an optical transport network (OTN) frame, the OTN frame being used to carry service data, the overhead area of the OTN frame comprising a group of continuous indication information, the payload area of the OTN frame comprising a group of time slot blocks, the group of continuous indication information being used to indicate that the objects carried by the group of time slot blocks are data or padding, the group of continuous indication information being located in at least one row in the overhead area of the OTN frame, the group of time slot blocks being located in at least one row in the payload area of the OTN frame, the at least one row in which the group of indication information is located being located before the at least one row in which the group of time slot blocks are located; and determining, according to the group of continuous indication information, that the objects carried by the group of time slot blocks are data or padding.
- OTN optical transport network
- the receiving end device can determine whether the objects carried by the multiple time slot blocks in the OTN frame are data or padding based on the overhead area of the OTN frame.
- the method when the service data is mapped to multiple time slot blocks in the group of time slot blocks, the method also includes: determining that the objects carried by the time slot blocks other than the first time slot block in the multiple time slot blocks are data; and determining that the object carried by the first time slot block is data or padding based on the indication information corresponding to the first time slot block in the group of continuous indication information.
- the receiving end device can default to the objects carried by the time slot blocks other than the first time slot block in the multiple time slot blocks as data, so that the first time slot block object can be indicated as data or filler, further reducing the indication overhead.
- the first indication information in the set of continuous indication information includes multiple bits, and the multiple bits are multiple bits in the same column of at least one row of the overhead area of the OTN frame.
- the first indication information is used to indicate that the object carried by the second time slot block in the set of time slot blocks is data or padding, wherein the position of the second time slot block in the set of time slot blocks is the same as the position of the first indication information in the set of continuous indication information.
- each indication information may occupy multiple bits or one bit, and there is no specific restriction on the number of bits occupied by the indication information, thereby improving the flexibility of the solution.
- the first indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the value of more than half of the multiple bits is 0, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding; or, the value of more than half of the multiple bits is 1, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding.
- the first indication information when it is determined that the first indication information satisfies a first condition, it is determined that the object carried by the first time slot block is data, wherein the first condition is that the value of more than half of the multiple bits occupied by the first indication information is 0 or 1.
- the bearer object of the corresponding time slot block can be indicated by majority decision, thereby improving the reliability of the solution.
- the number of the multiple bits is 3, and at least one row where the set of indication information is located is row 1 to row 3 of the overhead area of the OTN frame.
- the number of bits occupied by each indication information may be 3.
- the bearer object of the corresponding time slot block can be indicated based on majority decision, a smaller number of bits is used to achieve rate adaptation control.
- the set of continuous indication information is a set of continuous indication information included in a first frame indicated by a multiframe alignment signal MFAS in an overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame of the at least one frame includes at least one indication information.
- the above set of continuous indication information is the overhead in one frame indicated by MFAS, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks in one frame, thereby improving the control efficiency.
- the group of time slot blocks is a time slot block corresponding to the group of continuous indication information in y time slot blocks included in the first time slot block period, and the first time slot block period is from One of at least one time slot block period, each time slot block period in the at least one time slot block period includes the y time slot blocks.
- the overhead area of the OTN frame also includes second indication information, and the second indication information is used to indicate that the group of time slot blocks belongs to the first time slot block group among the multiple time slot block groups.
- the rate of each of the time slot blocks is 10.4 megabits per second Mbit/s.
- an embodiment of the present application provides a method for transmitting data, which can be executed by a sending device, or can also be executed by a component of the sending device (for example, a chip or circuit), without limitation.
- the method for transmitting data includes: receiving service data; mapping the service data to an optical transport network (OTN) frame, wherein the overhead area of the first cycle of the OTN frame includes multiple indication information, the payload area of the second cycle of the OTN frame includes multiple time slot block groups, the multiple indication information is used to indicate the change in the amount of data carried by each of the multiple time slot block groups, the second cycle is the next cycle of the first cycle, each of the multiple time slot block groups includes multiple time slot blocks, and the multiple time slot blocks are in the same position in multiple time slot block cycles.
- the multiple indication information is generally continuous in the overhead area of the OTN frame, so the following description is taken as an example of multiple indication information being multiple continuous indication information. In the case where the multiple indication information is not continuous, the relevant description of the indication information can also refer to the case where the indication information is continuous, and the description will not be repeated in this application.
- multiple indication information is defined in the overhead area of the current cycle of the OTN frame, and the multiple indication information respectively indicates the change in the amount of data carried by multiple time slot block groups in the payload area of the next cycle of the OTN frame.
- the change in the amount of data of a certain time slot block group is indicated to determine whether the objects carried by the multiple time slot blocks included in the time slot block are data or padding, so as to facilitate the receiving end device to parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
- mapping the service data to the OTN frame includes: mapping the service data to at least two time slot block groups among the multiple time slot block groups, wherein at least one of the indication information corresponding to the at least two time slot block groups is used to indicate a change in the amount of data of the at least two time slot block groups.
- the change in the amount of data in the multiple time slot block groups can be indicated by at least one indication information, which can further reduce the indication overhead.
- an embodiment of the present application provides a method for transmitting data.
- the method may be executed by a receiving device, or may be executed by a component (eg, a chip or a circuit) of the receiving device, without limitation.
- the method for transmitting data comprises: receiving an optical transport network (OTN) frame, the OTN frame being used to carry service data, an overhead area of a first cycle of the OTN frame comprising a plurality of continuous indication information, a payload area of a second cycle of the OTN frame comprising a plurality of time slot block groups, the plurality of continuous indication information being respectively used to indicate a change in the amount of data carried by each of the plurality of time slot block groups, the second cycle being a cycle next to the first cycle, each of the plurality of time slot block groups comprising a plurality of time slot blocks, the plurality of time slot blocks being at the same position in a plurality of time slot block cycles; and determining a change in the amount of data carried by each of the plurality of time slot block groups according to the plurality of continuous indication information.
- OTN optical transport network
- the receiving end device can determine the change in the amount of data carried by multiple time slot block groups in the OTN frame based on the overhead area of the OTN frame, thereby determining whether the objects carried by the multiple time slot blocks included in the time slot block group are data or padding, and completing the rate adaptation control of the multiple time slot blocks divided in the OTN frame.
- the method when the service data is mapped to at least two time slot block groups among the multiple time slot block groups, the method further includes: determining the change in the amount of data carried by the at least two time slot block groups based on at least one of the indication information corresponding to the at least two time slot block groups in the multiple consecutive indication information.
- the receiving end device can determine the change in the amount of data carried by the multiple time slot block groups based on at least one of the indication information corresponding to the multiple time slot block groups, which is equivalent to considering the multiple time slot block groups as a group, further reducing the indication overhead.
- the third indication information in the multiple consecutive indication information includes multiple bits, and the multiple bits are multiple bits in the same column of at least one row of the overhead area of the OTN frame.
- the third indication information is used to indicate the change in the amount of data carried by the first time slot block group in the multiple time slot block groups, wherein the position of the first time slot block group in the multiple time slot block groups is the same as the position of the third indication information in the multiple consecutive indication information.
- each indication information may occupy multiple bits or one bit, and there is no specific restriction on the number of bits occupied by the indication information, thereby improving the flexibility of the solution.
- the third indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the value of more than half of the multiple bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 1; or, the value of more than half of the multiple bits is 1, indicating that the change in the amount of data carried by the first time slot block group is 1, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 0.
- the bearer object of the corresponding time slot block can be indicated by majority decision, thereby improving the reliability of the solution.
- the multiple continuous indication information is continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame of the at least one frame includes at least one indication information.
- some descriptions of the indication information involved in the third aspect or the fourth aspect can refer to the description of the indication information in the first aspect or the second aspect, and will not be repeated here.
- the transmission rate of the time slot block can also refer to the description of the time slot block in the first aspect or the second aspect, and will not be repeated here.
- an embodiment of the present application provides a device for transmitting data.
- the device is used to execute the method provided in the first aspect or the third aspect.
- the device for transmitting data may include a unit and/or module, such as a processing unit and an acquisition unit, for executing the method provided in any one of the above implementations of the first aspect or the third aspect.
- the device for transmitting data is a transmitting end device.
- the acquisition unit may be a transceiver, or an input/output interface; the processing unit may be at least one processor.
- the transceiver may be a transceiver circuit.
- the input/output interface may be an input/output circuit.
- the device for transmitting data is a chip, a chip system or a circuit in a transmitting device.
- the acquisition unit may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, the chip system or the circuit;
- the processing unit may be at least one processor, a processing circuit or a logic circuit.
- the beneficial effects of the method shown in the fifth aspect and its possible design can refer to the beneficial effects in the first aspect or the third aspect and its possible design.
- an embodiment of the present application provides a device for transmitting data.
- the device is used to execute the method provided in the second aspect or the fourth aspect above.
- the device for transmitting data may include units and/or modules for executing the method provided in the second aspect or the fourth aspect, such as a processing unit and an acquisition unit.
- the device for transmitting data is a receiving device.
- the acquisition unit may be a transceiver, or an input/output interface; the processing unit may be at least one processor.
- the transceiver may be a transceiver circuit.
- the input/output interface may be an input/output circuit.
- the device for transmitting data is a chip, a chip system or a circuit in a receiving device.
- the acquisition unit may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, the chip system or the circuit;
- the processing unit may be at least one processor, a processing circuit or a logic circuit.
- an embodiment of the present application provides a processor for executing the methods provided in the above aspects.
- an embodiment of the present application provides a computer-readable storage medium.
- the computer-readable storage medium stores program codes for execution by a device, and the program codes include codes for executing the methods provided in the above aspects.
- an embodiment of the present application provides a computer program product comprising instructions.
- the computer program product is run on a computer, the computer is enabled to execute the methods provided in the above aspects.
- an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the processor reads The instructions stored in the memory execute the methods provided by the above aspects.
- the chip also includes a memory, in which a computer program or instruction is stored, and the processor is used to execute the computer program or instruction stored in the memory.
- the processor is used to execute the methods provided by the above aspects.
- an embodiment of the present application provides a communication system, comprising the device for transmitting data described in the fifth aspect and the device for transmitting data described in the sixth aspect.
- FIG1 is a schematic diagram of an application scenario to which the present application is applicable.
- FIG. 2 is a schematic diagram of the structure of an optical transmission device.
- FIG. 3 is a schematic diagram of several possible structures of a signal frame in the present application.
- FIG. 4 is a schematic diagram of an OTN frame structure.
- FIG5 is a schematic flowchart of a method for transmitting data provided in an embodiment of the present application.
- FIG6 is a schematic diagram of an OTN frame structure provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram showing that business data occupies multiple time slot blocks.
- FIG8 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
- FIG. 9 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
- FIG. 10 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
- FIG. 11 is a schematic diagram showing that business data occupies multiple time slot block groups.
- FIG. 12 is a schematic diagram of the structure of a possible network device.
- words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions, and the embodiments or designs described as “exemplary” or “for example” should not be interpreted as being more preferred or more advantageous than other embodiments or designs.
- the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific way for easy understanding.
- service data refers to services that can be carried by the optical transport network.
- it can be Ethernet services, packet services, wireless backhaul services, etc.
- Service data can also be called service signals, customer data, or customer service data. It should be understood that the types of service data are not limited in the embodiments of the present application.
- used to indicate includes direct indication and indirect indication.
- the information directly indicates A or indirectly indicates A, and does not mean that A must be carried in the information.
- OTN optical transport network
- MTN metropolitan transport network
- a device may also be referred to as a node or a node device, and a sending device may be referred to as a sending node, a sending end, or a source node.
- a receiving device may be referred to as a receiving end device, a receiving end, or a sink node.
- FIG1 is a schematic diagram of an OTN optical network system applicable to an embodiment of the present application.
- the technical solution of the embodiment of the present application can be applied to a communication system 100 including an OTN and multiple customer devices (customer device #1 to customer device #6 as shown in FIG1). It includes multiple interconnected OTN devices (such as OTN device #1 to OTN device #4 as shown in FIG1 ).
- FIG1 only shows the OTN equipment used to connect the customer equipment. In actual applications, OTN may also include more equipment, which is not shown in FIG1. In addition, FIG1 does not show the specific connection relationship of the OTN equipment. Specifically, the connection method between OTN equipment can refer to the introduction in the current related technology, and this application does not elaborate on it.
- OTN devices in an OTN network are connected by optical fibers and can be formed into different topology types such as linear, ring, and mesh according to specific needs.
- the customer equipment may also be referred to as customer premises equipment (CPE).
- CPE customer premises equipment
- the specific form of the customer equipment is not limited in this application, including but not limited to: a terminal communicating with an OTN device, wherein the terminal may also be referred to as a terminal device, an access terminal, a user unit, a user station, a mobile station, a mobile device, a wireless communication device, a user agent or a user device.
- the customer equipment may be a device that has service data to be transmitted.
- OTN devices may have different functions.
- OTN devices are divided into optical layer devices, electrical layer devices, and optoelectronic hybrid devices.
- Optical layer devices refer to devices that can process optical layer signals, such as optical amplifiers (OA) and optical add-drop multiplexers (OADM).
- OAs can also be called optical line amplifiers (OLA), which are mainly used to amplify optical signals to support longer distances while ensuring the specific performance of optical signals.
- OOADM optical line amplifiers
- OADM is used to transform optical signals in space so that they can be output from different output ports (sometimes also called directions).
- OADM can be divided into fixed OADM (FOADM), reconfigurable OADM (ROADM), etc.
- Electrical layer devices refer to devices that can process electrical layer signals, such as devices that can process OTN electrical signals.
- Optoelectronic hybrid devices refer to devices that have the ability to process both optical layer signals and electrical layer signals.
- an OTN device can integrate multiple different functions.
- the technical solution provided in this application is applicable to OTN devices of different forms and integration levels, and is particularly applicable to OTN devices used to connect customer devices.
- FIG2 is a schematic diagram of a possible hardware structure of a network device.
- the optical transmission device shown in FIG2 is one of the OTN devices #1 to #4 in FIG1.
- the OTN device 200 includes a branch board 201, a cross board 202, a line board 203, an optical layer processing board (not shown in the figure), and a system control and communication board 204.
- the type and quantity of boards included in the network device may be different.
- a network device that serves as a core node does not have a branch board 201.
- a network device that serves as an edge node has multiple branch boards 201, or does not have an optical cross board 202.
- a network device that only supports electrical layer functions may not have an optical layer processing board.
- the tributary board 201, the cross board 202 and the line board 203 are used to process the electrical layer signals of the OTN.
- the tributary board 201 is used to realize the reception and transmission of various customer services, such as SDH services, packet services, Ethernet services and fronthaul services.
- the tributary board 201 can be divided into a customer-side optical transceiver module and a signal processor.
- the customer-side optical transceiver module can also be called an optical transceiver, which is used to receive and/or send service data.
- the signal processor is used to realize the mapping and demapping processing of service data to data frames.
- the cross board 202 is used to realize the exchange of data frames and complete the exchange of one or more types of data frames.
- the line board 203 mainly realizes the processing of line-side data frames.
- the line board 203 can be divided into a line-side optical module and a signal processor.
- the line-side optical module can be called an optical transceiver, which is used to receive and/or send data frames.
- the signal processor is used to realize the multiplexing and demultiplexing of the data frames on the line side, or the mapping and demapping processing.
- the system control and communication type single board 204 is used to realize system control. Specifically, information can be collected from different boards, or control instructions can be sent to the corresponding board.
- the specific components (such as signal processors) can be one or more, and this application does not limit this.
- the network device may also include a power supply for backup, a fan for heat dissipation, etc.
- the method provided in the embodiment of the present application can be applied to an optical transmission network, for example, the communication system shown in Figure 1.
- the embodiment of the present application does not limit the scenario in which the method can be applied, for example, it is also applicable to other communication systems including devices that can implement corresponding functions (such as OTN devices or other communication devices).
- the signal frame can specifically be a Flexible Optical Service Unit (OSUflex) frame (also referred to as an OSU frame for short), a Flexible Tributary Unit (TUflex) frame or an Optical Payload Unit k (OPUk) frame.
- OSUflex Flexible Optical Service Unit
- TUflex Flexible Tributary Unit
- OSUflex Optical Payload Unit k
- the OSUflex frame includes an overhead area and a payload area, and the payload area is used to carry customer services.
- the OSUflex frame is used to map to the TUflex frame.
- the TUflex frame includes multiple payload blocks (PB), and each OSUflex frame has a corresponding payload block.
- PB payload blocks
- each payload block includes a Tributary Port Number (TPN), which is used to Indicates the number of the service carried in the current payload block.
- TPN Tributary Port Number
- the payload area of the OPUk frame is divided into multiple payload blocks, and the payload block in the TUflex frame can be mapped to the payload area of the OPUk frame.
- flexible optical service unit frame can also have other naming methods. For example, it can also be called a flexible optical service data unit (Flexible Optical Service data Unit, OSDUflex) frame, which is not limited here.
- the signal frame in the present application may also be an optical data unit k (Optical Data Unit k, ODUk) frame or an optical transport unit k (Optical Transport Unit k, OTUk) frame, etc., which is not specifically limited here.
- optical data unit k Optical Data Unit k, ODUk
- optical transport unit k Optical Transport Unit k, OTUk
- the OSU frame involved in the present application can be understood as a type of optical transport network (OTN) frame.
- the data frame structure used by the OTN device is the OTN frame.
- the OTN frame can also be called the OTN transmission frame.
- the OTN frame is used to carry various service data and provide rich management and monitoring functions.
- the OTN frame can be an OSU frame.
- the OTN frame can also be an ODUk, ODUCn, ODUflex, or OTUk, OTUCn, or a flexible OTN (FlexO) frame, etc.
- ODU frame includes ODU frame and OTU overhead
- Cn represents variable rate, specifically a rate of positive integer multiples of 100Gbps.
- ODU frame refers to any one of ODUk, ODUCn or ODUflex
- OTU frame refers to any one of OTUk, OTUCn or FlexO.
- the OTN frame structure is a 4-row multi-column structure, including an overhead area, a payload area, and a forward error correction (FEC) area.
- the payload area of the OTN frame is divided into multiple payload blocks (PB).
- PB payload blocks
- Each PB occupies a fixed length (also called size) in the payload area.
- the overhead that the OTN frame may include includes: a frame alignment signal (FAS), a multiframe indication signal (MFAS), and a reserved bit (RES) reserved for future international standardization, where FAS is used for frame alignment and FAS can be set to a fixed value.
- FAS frame alignment signal
- MFAS multiframe indication signal
- RES reserved bit reserved for future international standardization
- OTN frame structure is only an example.
- Other variant OTN frames are also applicable to the present application.
- an OTN frame that does not include an FEC area is another example.
- PB can also be called a time slot, a time slot block, or a time slice, etc.
- the present application does not restrict its name.
- FIG. 4 is a schematic diagram of an OTN frame structure. It can be seen from Figure 4 that the frame structure of OTN can be a single-byte unit structure of 4 rows * 3824 columns, where the first 4 rows * 16 columns are the overhead area of the OTU/ODU/OPU, and 4 rows * (3824-16) columns are the OPU payload area. Among them, the payload area of the OTN frame is divided into multiple PBs. Each PB occupies a fixed length (also called size) in the payload area, for example, 128 bytes.
- the overhead area of the OTN frame includes FAS, which is used for frame alignment, etc.
- the OSU currently developed by the China Communications Standards Association (CCSA) is used to carry small-granularity services in the OTN network, and the International Telecommunications Union-Telecommunication Standardization Sector (ITU-T) is also discussing the OSU standard solution.
- CCSA China Communications Standards Association
- ITU-T International Telecommunications Union-Telecommunication Standardization Sector
- multiple services are mapped and encapsulated into multiple OSUs, different OSUs correspond to different flexible tributary units, and then multiple TUflexes are multiplexed into the OPU.
- the payload area of the OSU includes a 192-byte PB
- the overhead area of the OSU includes 7 bytes, wherein the last byte of the 7-byte overhead area is a CRC-8 check field, which is used to check the first 6 bytes. Once the check fails, the content of the 192-byte payload block is discarded. The bit error is expanded to data loss, which affects the reliability of data transmission.
- the embodiments shown below do not particularly limit the specific structure of the execution subject of the method provided in the embodiments of the present application.
- the execution subject of the method provided in the embodiments of the present application may be an OTN device, or an OTN device that can call a program.
- a functional module that executes the program (such as a chip or a chip system, etc.), or it can also be other communication devices.
- FIG5 is a schematic flow chart of a method for transmitting data provided in the present application, which includes the following steps.
- S610 The sending end device receives service data and maps the service data to an OTN frame.
- the OTN frame is used to carry service data.
- a transmitting end device obtains service data to be transmitted, maps the service data to a payload area of the OTN frame, and transmits the OTN frame to complete the transmission of the service data.
- the sending end device is the above-mentioned OTN device (such as OTN device #1 as shown in FIG. 1), which receives service data from a client device (such as client device #1 or client device #2 as shown in FIG. 1).
- the sending end device is other devices that can implement the functions of the OTN device.
- the service data involved in the embodiments of the present application refers to services that can be carried by the optical transport network, including but not limited to: Ethernet services, packet services, wireless backhaul services, etc. It should be understood that the types of service data are not limited in the embodiments of the present application.
- this embodiment does not specifically describe how to map service data to the payload area of the OTN frame. For details, reference may be made to the introduction in the current related technology. This embodiment mainly involves how to define the meaning of different bits in the overhead area of the OTN frame.
- the OTN frame may be a currently defined OTN frame or a metro transport network (MTN) frame.
- MTN metro transport network
- the payload area of the OTN frame can be divided into time slot blocks (or referred to as payload blocks, time slots, etc.) with a small bandwidth.
- it can be divided into time slot blocks of 8 bytes, time slot blocks of 16 bytes, time slot blocks of 32 bytes, 64 bytes, etc.
- time slot blocks of 8 bytes
- time slot blocks of 16 bytes
- time slot blocks of 32 bytes
- 64 bytes etc.
- the specific division method of the payload area of the OTN frame is not limited in this embodiment, and will not be described one by one here.
- the following two methods can be used to indicate whether the object carried by the time slot block is data or padding, thereby realizing rate adaptation control.
- Method 1 directly indicating that the object carried by the time slot block is data or padding.
- the overhead area of the OTN frame includes a group of continuous indication information
- the payload area of the OTN frame includes a group of time slot blocks
- the group of continuous indication information is used to indicate that the object carried by the group of time slot blocks is data or padding.
- a group of continuous indication information is located in at least one row in the overhead area of the OTN frame
- a group of time slot blocks is located in at least one row in the payload area of the OTN frame
- at least one row where a group of indication information is located is before at least one row where a group of time slot blocks are located.
- At least one row where a group of indication information is located can be called at least one first row, that is, the row where the indication information is located in this embodiment can be called "first row”, and multiple first rows can be multiple different rows; at least one row where a group of time slot blocks is located can be called at least one second row, that is, the row where the time slot blocks are located in this embodiment can be called "second row”, and multiple second rows can be multiple different rows.
- a group of continuous indication information and a group of time slot blocks are in the same frame, it can be determined that at least one first row is before at least one second row through the relationship between row numbers, such as, if multiple rows of the OTN frame are numbered from small to large, then the row number of at least one first row is smaller than the row number of the second row; or, if multiple rows of the OTN frame are numbered from large to small, then the row number of at least one first row is larger than the row number of the second row.
- a group of continuous indication information and a group of time slot blocks are not in the same frame, such as, a group of time slot blocks are located in multiple second rows, at least one second row of the multiple second rows is located in frame #2, at least one first row is located in frame #1, and frame #2 is after frame #1. It can be understood that a group of continuous indication information is used to indicate that the objects carried by a group of time slot blocks after the group of continuous indication information are data or padding.
- multiple indication information is defined in the overhead area of the OTN frame, and the multiple indication information is used to indicate that the objects carried by multiple time slot blocks located after the multiple indication information in the payload area of the OTN frame (for example, the row where the indication information is located is before the row where the time slot block is located) are data or padding. Indicating that a certain time slot block is data or padding is to indicate whether the time slot block is a time slot block carrying data or a padding block, so that the receiving end device can parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
- the payload area of the OTN frame includes multiple time slot blocks, and the time slot blocks in the multiple time slot blocks are time slot blocks in Y time slot block periods, and each time slot block period in the Y time slot block periods includes y time slot blocks, wherein Y is an integer greater than or equal to 1, y is an integer greater than 1, and the y time slot blocks in each time slot block period are sequentially numbered from 1 to y.
- the overhead area of the OTN frame includes y indication information.
- Each indication information in the y indication information is used to indicate that the object carried by the corresponding time slot block is data or padding.
- the i-th indication information in the y indication information is used to indicate that the object carried by time slot block #i is data or padding, which can be understood as the i-th indication information corresponding to time slot block #i.
- the i-th indication information is the y indication information numbered i, and the indication information numbered i is used
- the object carried by the time slot block numbered i is indicated as data or padding, and the time slot block numbered i is the time slot block numbered i after the indication information numbered i (e.g., one after the first or i-th indication information).
- each of the Y time slot block periods includes a time slot block numbered i, and there are a total of Y time slot blocks numbered i, but the indication information numbered i only indicates that the object carried by the time slot block numbered i after the indication information numbered i is data or padding, and the objects carried by the other Y-1 time slot blocks numbered i are data.
- the indication of whether the object carried by the time slot block is data or padding involved in this embodiment can also be understood as an indication of rate adaptation for the time slot block.
- the reason is that the receiving end device can determine whether the object carried by the corresponding time slot block is data or padding based on the indication information, and determine whether the time slot block is a rate adaptation block.
- the number Y of time slot block periods is related to the size of each time slot block, the size of the payload area of the OTN frame, the transmission rate of the OTN frame, the transmission rate of each time slot block, and the size of the service data to be transmitted.
- no limitation is imposed on the service data to be transmitted, and thus no limitation is imposed on the number Y of time slot block periods.
- the number of time slot blocks y included in each time slot block period is related to the size of each time slot block, the size of the payload area of the OTN frame, the transmission rate of the OTN frame, and the transmission rate of each time slot block.
- the size of the payload area of the OTN frame is as shown in Figure 4, from 17 bytes to 3824 bytes, which are all the payload areas of the OTN frame.
- the size of each time slot block is 16 bytes. From the size point of view, 17 bytes to 3824 bytes can be divided into 238 time slot blocks of 16 bytes.
- the transmission rate of each time slot block is defined as 10.4Mbit/s
- the transmission rate of the OTN frame is 1238.95431Mbit/s
- the OTN frame can be divided into 119 time slot blocks with a transmission rate of 10.4Mbit/s, so that 17 bytes to 3824 bytes can be divided into two time slot block periods, and each time slot block period includes 119 time slot blocks.
- the size of the payload area of the data frame is shown in Figure 4, from 17 bytes to 3824 bytes, which are all the payload areas of the OTN frame.
- the size of each time slot block is 16 bytes. From the size point of view, 17 bytes to 3824 bytes can be divided into 238 time slot blocks of 16 bytes.
- the transmission rate of each time slot block is defined as 10.4Mbit/s, and the transmission rate of the OTN frame is 2.5G bit/s, then from the transmission rate point of view, the OTN frame can be divided into 238 time slot blocks with a transmission rate of 10.4Mbit/s, so that 17 bytes to 3824 bytes can be divided into 1 time slot block period, and the time slot block period includes 238 time slot blocks.
- the number of indication information y is equal to the number of time slot blocks included in each time slot block period y.
- each time slot block period includes 119 time slot blocks, and the overhead area of the OTN frame includes 119 indication information.
- each time slot block period includes 238 time slot blocks, and the overhead area of the OTN frame includes 238 indication information.
- the above-mentioned group of time slot blocks may be multiple time slot blocks in a certain time slot block period, and a group of continuous indication information is the indication information corresponding to the multiple time slot blocks and located before the multiple continuous time slot blocks in the y indication information.
- a group of time slot blocks is 16 time slot blocks numbered 1 to 16 in the first time slot block period
- a group of continuous indication information is 16 continuous indication information numbered 1 to 16 before the 16 time slot blocks
- the group of continuous indication information is M bits in different columns from the jth to the j+M-1th rows in the OTN frame
- the first time slot block period is located in the M+Nth row in the OTN frame
- M is a positive integer.
- the number of bits occupied by each indication information in the above set of indication information is multiple.
- the first indication information in a set of continuous indication information includes multiple bits, and the multiple bits are multiple bits of the same column of the jth to j+M-1th rows of the overhead area of the OTN frame, and the first indication information is used to indicate that the object carried by the first time slot block in a set of time slot blocks is data or padding, wherein the position of the first time slot block in the set of time slot blocks is the same as the position of the first indication information in a set of continuous indication information.
- the number of bits occupied by each indication information in the above set of indication information is one.
- the number of bits occupied by the indication information is not limited and may be at least one.
- the reliability of the scheme can be improved by majority judgment; when the number of bits occupied by the indication information is less than 3, the reliability of the scheme can be improved by adding a verification code.
- the first indication information occupies multiple bits, and the first indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the value of more than half of the bits in the multiple bits is 0, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding; or, the value of more than half of the bits in the multiple bits is 1, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding. For example, if the first indication information occupies 3 bits, and the value of more than 2 bits is 1, then the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding.
- the first indication information occupies 1 bit, and the first indication information can be verified by adding a verification code.
- the first indication information passes the verification by verifying the verification code, and the value of the 1 bit is 1, then the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding.
- time slot blocks occupied by the service data can be used.
- a fixed time slot block is used for rate adaptation, and the adaptation positions of other time slot blocks are fixed as data, that is, the indication information indicates that the object carried by one of the time slot blocks (such as the last time slot block or any time slot block) is data or filler, and the objects carried by other time slot blocks are data.
- the indication information can be used to indicate that the object carried by one of the multiple time slot blocks is data or filler, and the objects carried by other time slot blocks are data (no indication is required for the other time slot blocks, or fixed indication is data), which can further reduce the indication overhead.
- the time slot blocks occupied by the service data include the first time slot block and the time slot blocks other than the first time slot block, then the first indication information is used to indicate that the object carried by the first time slot block is data or filler, and the objects carried by other time slot blocks are data.
- the object carried by the other time slot blocks as data can also be indicated by the indication information corresponding to the other time slot blocks, or it can be predefined, which is not limited in this embodiment.
- the above-mentioned set of continuous indication information is a set of continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame in the at least one frame includes at least one indication information.
- the rate adaptation control of multiple time slot blocks can be completed in one frame, thereby improving the control efficiency.
- the 119 indication information can be divided into 8 groups of continuous indication information, such as, indication information numbered 1 to 16 is a group, indication information numbered 17 to 32 is a group, indication information numbered 33 to 48 is a group, indication information numbered 49 to 64 is a group, indication information numbered 65 to 80 is a group, indication information numbered 81 to 96 is a group, indication information numbered 97 to 112 is a group, and indication information numbered 113 to 119 is a group, and the 8 groups of continuous indication information are divided into 8 frames through MFAS (for example, 6 to 8 bits of MFAS are divided into 8 frames, and some bits in the 8th frame are reserved bits) and transmitted separately.
- MFAS for example, 6 to 8 bits of MFAS are divided into 8 frames, and some bits in the 8th frame are reserved bits
- the 238 indication information can be divided into 15 groups of continuous indication information, such as, indication information numbered 1 to 16 is a group, indication information numbered 17 to 32 is a group, indication information numbered 33 to 48 is a group, indication information numbered 49 to 64 is a group, indication information numbered 65 to 80 is a group, indication information numbered 81 to 96 is a group, indication information numbered 97 to 112 is a group, indication information numbered 113 to 128 is a group, indication information numbered 129 to 144 is a group, indication information numbered 145 to 160 is a group...
- indication information numbered 225 to 238 is a group, and the 15 groups of continuous indication information are divided into 15 frames (such as 5 to 8 bits of MFAS are divided into 16 frames, and the 16th frame is a reserved bit) through MFAS and transmitted separately.
- the y time slot blocks included in each time slot block period may be divided into multiple time slot block groups.
- the time slot blocks numbered 1 to y/2 in the y time slot blocks are one time slot block group, and the time slot blocks numbered y/2+1 to y are another time slot block group.
- the overhead area of the OTN frame also includes second indication information for indicating the time slot block group to which the indicated time slot block belongs.
- the second indication information may be an optical payload unit multi-frame indicator (OPU Multi-Frame Identifier, OMFI).
- OPU Multi-Frame Identifier OPU Multi-Frame Identifier
- the 238 time slot blocks may be divided into two groups of time slot block groups, wherein time slot block group #1 includes 119 time slot blocks numbered from 1 to 119, and time slot block group #2 includes 119 time slot blocks numbered from 120 to 238.
- the frame structure of the OTN frame shown in the above-mentioned method 1 (eg, the overhead area includes a group of continuous indication information, and the payload area includes a group of time slot blocks) is described below in conjunction with Examples 1 to 3.
- Example 1 A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (1.25G bit/s) is divided into 119 time slot blocks, that is, each time slot block period includes 119 time slot blocks.
- Example 1 it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 6th to 8th bits of the MFAS in Example 1 are divided into 8 frames to respectively transmit the indication information of the 119 time slot blocks in a time slot block cycle.
- FIG6 is a schematic diagram of an OTN frame structure provided by an embodiment of the present application.
- the number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG6), wherein the indication information can be called Justification Control (JC).
- JC Justification Control
- the three JC1s shown in FIG. 6 are used to indicate the object carried by the first time slot block numbered 1 in the fourth row of the payload area. For data or padding.
- the three JC119s shown in FIG. 6 are used to indicate that the object carried by the first time slot block numbered 119 in the fourth row of the payload area is data or padding.
- a fixed time slot block of the service data is used for rate adaptation, that is, the object carried by the time slot block is indicated by the indication information as data or padding.
- the objects carried by other time slot blocks except the fixed time slot block are data.
- a service occupies the first time slot block and the second time slot block, the object carried by the first time slot block is data, and the object carried by the second time slot block is data or padding, which is indicated by the indication information corresponding to the second time slot block.
- the indication information JC1 corresponding to the first time slot block may not need to be defined, or may be defined to indicate that the object carried is data, and the indication information JC2 corresponding to the second time slot block is used to indicate that the object carried by the second time slot block is data or padding.
- Example 2 A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (2.5Gbit/s) is divided into 238 time slot blocks, that is, each time slot block period includes 238 time slot blocks.
- Example 2 it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 6th to 8th bits of the MFAS in Example 2 are divided into 8 frames to respectively transmit the indication information of the 119 time slot blocks in a time slot block cycle, and the 238 time slot blocks are divided into two groups of 119 time slot blocks in combination with the OMFI field.
- FIG8 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application.
- the number of bits of the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG8 ).
- OMFI is used to indicate which group of 119 time slot blocks the indication information transmitted by the 6 to 8 bits of MFAS in 8 frames is.
- the three JC1s shown in FIG8 are used to indicate that the object carried by the first time slot block numbered 1 in the fourth row of the payload area is data or padding.
- the three JC238s shown in FIG8 are used to indicate that the object carried by the first time slot block numbered 238 in the fourth row of the payload area is data or padding.
- Example 3 A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (2.5Gbit/s) is divided into 238 time slot blocks, that is, each time slot block period includes 238 time slot blocks.
- Example 3 it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 5 to 8 bits of the MFAS in Example 2 are divided into 16 frames to respectively transmit the indication information of the 238 time slot blocks in a time slot block cycle.
- FIG9 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application.
- the number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG9).
- a group of continuous indication information shown in the first mode respectively indicates that the objects carried by a group of time slot blocks are data or filler.
- a group of time slot blocks is a group of time slot blocks in multiple rows after a group of continuous indication information (for example, the time slot block size is 8 bytes, the OPU is divided into 476 time slot blocks, a group of continuous indication information is JC232 to JC248, and the indicated group of time slot blocks: time slot block #232 to time slot block #248 are in different rows). Examples are not given one by one here.
- Method 2 By indicating the change in the amount of data carried by a time slot block group (a plurality of time slot blocks), it is indicated that the objects carried by the time slot blocks in the time slot block group are data or padding.
- the overhead area of the first cycle of the OTN frame includes multiple continuous indication information
- the payload area of the second cycle of the OTN frame includes multiple time slot block groups
- the multiple continuous indication information is used to indicate the change in the amount of data carried by each time slot block group in the multiple time slot block groups.
- the second cycle is the next cycle of the first cycle, each time slot block group in the multiple time slot block groups includes multiple time slot blocks, and the positions of the multiple time slot blocks in the multiple time slot block cycles are the same. It can be understood that the multiple indication information in the current cycle is used to indicate Indicates the change in the amount of data carried by multiple time slot block groups in the next cycle.
- multiple indication information is defined in the overhead area of the current cycle of the OTN frame, and the multiple indication information is used to indicate the change in the amount of data carried by multiple time slot block groups in the payload area of the next cycle of the OTN frame.
- the change in the amount of data carried by a certain time slot block group is indicated to determine whether the objects carried by the multiple time slot blocks included in the time slot block are data or padding, so as to facilitate the receiving end device to parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of the multiple time slot blocks divided in the OTN frame.
- the payload area of the second cycle of the OTN frame includes multiple time slot blocks, and the time slot blocks in the multiple time slot blocks are time slot blocks in Y1 time slot block periods, and each time slot block period in the Y1 time slot block periods includes y1 time slot blocks, wherein Y1 is an integer greater than or equal to 1, y1 is an integer greater than 1, and the y1 time slot blocks in each time slot block period are numbered sequentially from 1 to y1.
- the time slot blocks numbered i1 in each time slot block period form a time slot block group, where i1 is an integer greater than or equal to 1 and less than or equal to y1.
- time slot group #i1 is a time slot group composed of time slot blocks #i1 in Y1 time slot block periods.
- the overhead area of the first period of the OTN frame includes y1 indication information.
- Each indication information in the Y1 indication information is used to indicate the change in the amount of data carried by the corresponding time slot block group.
- the i1th indication information in the y1 indication information is used to indicate the change in the amount of data carried by the time slot block group #i, which can be understood as the i-th indication information corresponding to the time slot block group #i1.
- the indication information in this embodiment indicates the change in the amount of data carried by the corresponding time slot block group.
- the basic amount of data carried by the time slot block group may be pre-configured or determined by negotiation between the transmitting device and the receiving device, which is not limited in this embodiment.
- a time slot block group includes 64 time slot blocks, and the basic amount of data carried by the time slot block group may be 62, indicating that 62 of the 64 time slot blocks carry data. If the indication information corresponding to the time slot block group indicates that the change in the amount of data carried by the time slot block group is 1, it proves that 63 of the 64 time slot blocks actually carry data.
- the change in the amount of data carried by the time slot block group involved in this embodiment can be understood as indicating that the object carried by the time slot blocks included in the time slot block group is data or padding, and can also be understood as indicating rate adaptation of the time slot block.
- the reason is that the receiving end device can determine whether the object carried by the corresponding time slot block is data or padding based on the indication information, and determine whether the time slot block is a rate adaptation block.
- the amount of data carried and the arrangement in the time slot block group can be obtained by an algorithm (such as ⁇ - ⁇ ), wherein the arrangement refers to which time slot blocks in the time slot group the amount of data carried by the time slot block group is carried on.
- an algorithm such as ⁇ - ⁇
- the specific method for determining the arrangement is not limited in this embodiment.
- the number of time slot block periods Y1 and the number of time slot blocks y1 included in each time slot block period can refer to the description of the number of time slot block periods Y and the number of time slot blocks y in method 1, and will not be repeated here.
- the above-mentioned multiple time slot block groups may be multiple time slot block groups composed of time slot blocks at the same position in each time slot block period in Y1 time slot block periods, and the multiple continuous indication information is the indication information corresponding to the multiple time slot block groups in the y1 indication information.
- the multiple time slot block groups are a time slot block group composed of 64 time slot blocks numbered 1 in 64 time slot block periods in period #1, a time slot block group composed of 64 time slot blocks numbered 2, a time slot block group composed of 64 time slot blocks numbered 3, ..., and a time slot block group composed of 64 time slot blocks numbered 16.
- the multiple continuous indication information is 16 continuous indication information numbered 1 to 16 in the period before the period #1, and the multiple continuous indication information is M2 bits in different columns of the j 1th to j1+M2-1th rows in the OTN frame, where M2 is a positive integer.
- the number of bits occupied by each indication information in the above-mentioned multiple indication information is multiple.
- the third indication information in multiple consecutive indication information includes multiple bits, and the multiple bits are multiple bits of the same column of at least one row of the overhead area of the OTN frame, and the third indication information is used to indicate the change in the amount of data carried by the first time slot block group in multiple time slot block groups, wherein the position of the first time slot block group in the multiple time slot block groups is the same as the position of the third indication information in the multiple consecutive indication information.
- the first time slot block group is the i-th time slot block group in the multiple time slot block groups
- the third indication information is the i-th indication information in the multiple consecutive indication information.
- each of the plurality of indication information occupies one bit.
- the number of bits occupied by the indication information there is no limitation on the number of bits occupied by the indication information, which may be at least one.
- the reliability of the scheme can be improved by majority judgment; when the number of bits occupied by the indication information is less than 3, the reliability of the scheme can be improved by adding a verification code.
- the third indication information occupies a plurality of bits, and the third indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the value of more than half of the bits in the plurality of bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 1; or, the value of more than half of the bits in the plurality of bits is 1, indicating that the change in the amount of data carried by the first time slot block group is 1, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 0.
- the third indication information occupies 3 bits, and if more than 2 bits have a value of 1, the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0.
- the third indication information occupies 1 bit, and the third indication information can be verified to be credible by adding a verification code.
- the third indication information is determined to have passed the verification by verifying the verification code, and the value of the 1 bit is 1, the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0.
- the time slot blocks occupied by a certain service data include at least two time slot block groups
- at least one of the indication information corresponding to the multiple time slot block groups can be used to indicate the change in the amount of data of the at least two time slot block groups, thereby further reducing the indication overhead.
- the time slot blocks occupied by the service data include time slot block group #1 and time slot block group #2
- the time slot block group #1 and time slot block group #2 correspond to indication information #1 and indication information #2, respectively
- the change in the amount of data carried by the time slot block group #1 and the time slot block group #2 can be indicated by at least one of the indication information #1 and the indication information #2.
- the time slot block group #1 includes 64 time slot blocks #1 and the time slot block group #2 includes 64 time slot blocks #2, then at least one of the indication information #1 and the indication information #2 can be used to determine whether the objects carried by the 128 time slot blocks are data or padding.
- the above-mentioned multiple continuous indication information is multiple continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame in the at least one frame includes at least one indication information.
- the frame structure of the OTN frame shown in the above-mentioned method 2 (eg, the overhead area of the first cycle includes multiple continuous indication information, and the payload area of the second cycle includes multiple time slot block groups) is explained below in conjunction with Example 4.
- Example 4 A 16-byte time slot block is defined in the OPU payload area, and the 16-byte time slot block rate is defined to be approximately 10.4M, then the OPU (1.25Gbit/s) is divided into 119 time slot blocks, that is, each time slot block period includes 119 time slot blocks.
- Example 4 it can be seen from the OTN frame structure shown in FIG. 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (e.g., the 6th and 7th bytes shown in FIG. 4). Specifically, the 6 to 8 bits of the MFAS in Example 4 are divided into 8 frames to respectively transmit the indication information of 119 time slot blocks in a time slot block cycle, and the indication information of 119 time slot blocks in another time slot block cycle can be transmitted again through the 6 to 8 bits of the MFAS divided into 8 frames.
- the 6 to 8 bits of the MFAS in Example 4 are divided into 8 frames to respectively transmit the indication information of 119 time slot blocks in a time slot block cycle, and the indication information of 119 time slot blocks in another time slot block cycle can be transmitted again through the 6 to 8 bits of the MFAS divided into 8 frames.
- FIG10 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application.
- the number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG10), where the indication information can be called JC.
- the three JC1s in cycle #1 shown in FIG. 10 are used to indicate the change in the amount of data carried by time slot block group #1 consisting of 64 time slot blocks numbered 1 in the payload area in cycle #2.
- the three JC119s in cycle #1 shown in FIG10 are used to indicate the change in the amount of data carried by time slot group #119 consisting of 64 time slot blocks numbered 119 in the payload area of cycle #2.
- time slot block groups with other OPU frames e.g., 2.5 Gbit/s
- a certain service data occupies at least two time slot block groups
- at least one of the indication information corresponding to the at least two time slot block groups is used to indicate the change in the data volume of the at least two time slot block groups.
- a service occupies time slot block groups #1 and #2.
- the 128 time slot blocks included in time slot block groups #1 and #2 (such as 64 time slot blocks 1 and 64 time slot blocks 2 as shown in FIG11 ) can be understood as a time slot block group.
- the change in the data volume carried by the time slot block group can be indicated by JC1 and/or JC2.
- the transmitting end device maps the service data into the OTN frame
- the OTN frame may be sent to the receiving end device.
- the method flow shown in FIG5 further includes:
- S620 The transmitting device sends an OTN frame to the receiving device.
- the transmission method of the OTN frame is not limited in this embodiment, and the current transmission process of the OTN frame can be referred to, which will not be described here.
- it can be the mapping process shown in Figure 3.
- the difference from the mapping process shown in Figure 3 lies in the definition of the overhead area bit information in the OTN frame and the definition of the time slot block in the payload area of the OTN frame.
- the receiving end device can determine through majority decision whether the object carried by the time slot block indicated by the indication information is data or padding.
- the i-th indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the M1 bit in the M bits is 0 to indicate that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is Filling; or, the M1 bit in the M bits has a value of 1 to indicate that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is filling, where M1 is equal to M, or M1 is greater than or equal to Indicates rounding up.
- the receiving end device can determine the change in the amount of data carried by the time slot block group indicated by the indication information by majority decision.
- the i1th indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the M3 bit in the M2 bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise the change in the amount of data carried by the first time slot block group is 1; or,
- the M3 bit in the M2 bits is set to 1 to indicate that the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0, wherein M3 is equal to M2, or M3 is greater than or equal to Indicates rounding up.
- the devices in the existing network architecture are mainly used as examples for exemplary description (such as OTN devices). It should be understood that the embodiments of the present application do not limit the specific form of the devices. For example, devices that can achieve the same function in the future are applicable to the embodiments of the present application.
- the methods and operations implemented by devices can also be implemented by components that can be used in devices (such as chips or circuits).
- the above is a detailed description of the method for transmitting data provided by the embodiment of the present application in conjunction with Figures 5-11.
- the above method is mainly introduced from the perspective of interaction between the receiving device and the sending device. It can be understood that the receiving device and the sending device, in order to implement the above functions, include hardware structures and/or software modules corresponding to the execution of each function.
- the embodiment of the present application can divide the functional modules of the transmitting end device or the receiving end device according to the above method example.
- each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
- FIG12 is a schematic diagram of the structure of a possible network device.
- the network device 1300 includes a processor 1301, an optical transceiver 1302, and a memory 1303. Among them, the memory 1303 is optional.
- the network device 1300 can be applied to both a sending side device (e.g., the network device 1300 can be the above-mentioned sending end device) and a receiving side device (e.g., the network device 1300 can be the above-mentioned receiving end device).
- the processor 1301 and the optical transceiver 1302 are used to implement the method performed by the sending end device shown in FIG5.
- each step of the processing flow can be completed by the hardware integrated logic circuit or software instructions in the processor 1301 to complete the method performed by the sending device in the above figure.
- the optical transceiver 1302 is used to receive the OTN frame sent by the processor to send it to the opposite end device (also called the receiving end device).
- the processor 1301 and the optical transceiver 1302 are used to implement the method performed by the receiving device shown in FIG. 5.
- each step of the processing flow can be completed by the hardware integrated logic circuit in the processor 1301 or the instructions in the form of software to complete the method performed by the receiving device described in the above figure.
- the optical transceiver 1302 is used to receive the opposite end device (also called The OTN frame sent by the transmitting end device is sent to the processor 1301 for subsequent processing.
- the memory 1303 is used to store instructions so that the processor 1301 can be used to perform the steps mentioned in the above figure. And/or, the memory 1303 is used to store other instructions to configure the parameters of the processor 1301 to implement the corresponding functions.
- processor 1301 and the memory 1303 may be located in a branch board in the network device hardware structure diagram shown in FIG2 ; or may be located in a single board that integrates the branch and the line.
- the processor 1301 and the memory 1303 both include multiple ones, which are located in the branch board and the line board respectively, and the two boards cooperate to complete the aforementioned method steps.
- FIG. 12 can also be used to execute the method steps involved in the embodiment variations shown in the aforementioned figures, which will not be described in detail here.
- the embodiments of the present application further provide a computer-readable storage medium.
- the storage medium stores a software program, and the software program can implement the method provided by any one or more of the above embodiments when read and executed by one or more processors.
- the computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.
- the embodiments of the present application further provide a chip.
- the chip includes a processor for implementing the functions involved in any one or more of the above embodiments, such as acquiring or processing the OTN frames involved in the above methods.
- the chip also includes a memory, which is used for the processor to execute necessary program instructions and data.
- the chip can be composed of a chip, or it can include a chip and other discrete devices.
- processors mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
- the memory mentioned in the embodiments of the present application may be a volatile memory and/or a non-volatile memory.
- the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
- the volatile memory may be a random access memory (RAM).
- a RAM may be used as an external cache.
- RAM may include the following forms: static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus RAM (DR RAM).
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDR SDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous link DRAM
- DR RAM direct RAM bus RAM
- the disclosed devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be 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 distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement the solution provided by the present application.
- each functional unit in each embodiment of the present application may be integrated into one unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer can be a personal computer, a server, or a network device, etc.
- the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
- the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations.
- the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)).
- the aforementioned available medium may include, but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
The present application provides a data transmission method. The method comprises: a sending end device receiving service data, mapping the service data to an OTN frame, and finally sending the OTN frame to a receiving end device, wherein an overhead area of the OTN frame comprises a group of indication information, and the group of indication information is respectively used for indicating that an object borne by a group of time slot blocks included in a payload area of the OTN frame is data or filling. By defining, in an overhead area of an OTN frame, indication information of an object carried by a plurality of time slot blocks, rate adaptation control of the plurality of time slot blocks, which are divided in the OTN frame, is realized.
Description
本申请要求于2022年11月22日提交国家知识产权局、申请号为202211469121.1、发明名称为“一种传输数据的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on November 22, 2022, with application number 202211469121.1 and invention name “A method and device for transmitting data”, the entire contents of which are incorporated by reference in this application.
本申请涉及光通信领域,并且更具体地,涉及一种传输数据的方法和装置。The present application relates to the field of optical communications, and more specifically, to a method and device for transmitting data.
随着第5代固定网络(Fifth Generation Fixed Network,F5G)时代的到来,企业专线、金融专线、政府专线、行业生产网、高品质用户终端等对高品质连接的需求日益增长。With the advent of the Fifth Generation Fixed Network (F5G) era, the demand for high-quality connections for enterprise dedicated lines, financial dedicated lines, government dedicated lines, industry production networks, and high-quality user terminals is growing.
光传送网(Optical Transport Network,OTN)是第5代固定网络的核心基础网络,其广泛部署在干线、城域核心和城域边缘,具有高品质、大容量、覆盖广的天然优势,在OTN网络中增加小颗粒管道以承载这些高品质连接已成为当前的热点方向。Optical Transport Network (OTN) is the core infrastructure network of the 5th generation fixed network. It is widely deployed in trunk lines, metro core and metro edge. It has the natural advantages of high quality, large capacity and wide coverage. Adding small-granularity pipes to the OTN network to carry these high-quality connections has become a hot topic.
当前中国通信标准化协会(China Communications Standards Association,CCSA)制定的光业务单元(Optical Service Unit,OSU)用于在OTN网络中承载小颗粒业务,将多路业务分别映射封装到多路OSU中,不同的OSU对应不同的灵活支路单元(Flexible Tributary Unit,TUflex),然后将多路TUflex复用到光净荷单元(Optical Payload Unit,OPU)中。具体地,采用循环冗余校验(cyclic redundancy check,CRC)中的CRC-8校验码对OSU帧的通用开销和专用开销进行循环冗余校验。当CRC校验失败即丢弃OSU帧的整个192字节净荷块(payload block,PB),将误码扩大为数据的丢失,对数据传输可靠性存在影响。由于192字节PB存在上述的问题,因此小时隙颗粒度(如,10M)被提出,小时隙颗粒度场景下实现速率适配的控制成为亟待解决的问题。The Optical Service Unit (OSU) currently developed by the China Communications Standards Association (CCSA) is used to carry small-granularity services in the OTN network. Multiple services are mapped and encapsulated into multiple OSUs. Different OSUs correspond to different Flexible Tributary Units (TUflex), and then multiple TUflexes are multiplexed into the Optical Payload Unit (OPU). Specifically, the CRC-8 check code in the cyclic redundancy check (CRC) is used to perform cyclic redundancy check on the general overhead and special overhead of the OSU frame. When the CRC check fails, the entire 192-byte payload block (PB) of the OSU frame is discarded, and the bit error is expanded to data loss, which affects the reliability of data transmission. Due to the above problems with 192-byte PB, a small slot granularity (e.g., 10M) is proposed, and the control of rate adaptation in the small slot granularity scenario becomes an urgent problem to be solved.
发明内容Summary of the invention
本申请提供一种传输数据的方法和装置,能够在传输小时隙颗粒度的数据的情况下,实现速率适配的控制。The present application provides a method and device for transmitting data, which can realize rate adaptation control when transmitting data with small time slot granularity.
第一方面,本申请实施例提供了一种传输数据的方法,该方法可以由发送端设备执行,或者,也可以由发送端设备的组成部件(例如,芯片或者电路)执行,对此不作限定。In a first aspect, an embodiment of the present application provides a method for transmitting data, which can be executed by a sending device, or can also be executed by a component of the sending device (for example, a chip or a circuit), without limitation.
该传输数据的方法包括:接收业务数据;将所述业务数据映射到光传送网OTN帧,所述OTN帧的开销区包括一组指示信息,所述OTN帧的净荷区包括一组时隙块,所述一组指示信息分别用于指示所述一组时隙块承载的对象为数据或填充,所述一组指示信息位于所述OTN帧的开销区中的至少一行,所述一组时隙块位于所述OTN帧的净荷区中的至少一行,所述一组指示信息所位于的至少一行位于所述一组时隙块所位于的至少一行之前;发送所述OTN帧。其中,一组指示信息在OTN帧的开销区中一般为连续的,所以下文中以一组指示信息为一组连续的指示信息为例进行说明,在一组指示信息不连续的情况下,对于指示信息的相关描述也可以参考指示信息为连续的情况,本申请中不再重复说明。The method for transmitting data includes: receiving service data; mapping the service data to an optical transport network (OTN) frame, the overhead area of the OTN frame includes a group of indication information, the payload area of the OTN frame includes a group of time slot blocks, the group of indication information is used to indicate that the object carried by the group of time slot blocks is data or padding, the group of indication information is located in at least one row in the overhead area of the OTN frame, the group of time slot blocks is located in at least one row in the payload area of the OTN frame, and the at least one row where the group of indication information is located is located before the at least one row where the group of time slot blocks is located; sending the OTN frame. Among them, a group of indication information is generally continuous in the overhead area of the OTN frame, so the following description is taken as an example of a group of indication information being a group of continuous indication information. In the case where a group of indication information is not continuous, the relevant description of the indication information can also refer to the case where the indication information is continuous, and the description will not be repeated in this application.
基于上述传输数据的方法,在OTN帧的开销区中定义多个指示信息,通过该多个指示信息分别指示OTN帧的净荷区中位于该多个指示信息之后的多个时隙块(如,指示信息所位于的行在时隙块所位于的行之前)承载的对象为数据或填充。指示某个时隙块为数据或者填充是为了:指示该时隙块是承载数据的时隙块,还是的填充块,以便于接收端设备对接收到的OTN帧进行解析,也就是说该传输数据的方法可以完成OTN帧中划分的多个时隙块的速率适配控制。Based on the above method for transmitting data, multiple indication information is defined in the overhead area of the OTN frame, and the multiple indication information is used to indicate that the objects carried by multiple time slot blocks located after the multiple indication information in the payload area of the OTN frame (for example, the row where the indication information is located is before the row where the time slot block is located) are data or padding. Indicating that a certain time slot block is data or padding is to indicate whether the time slot block is a time slot block carrying data or a padding block, so that the receiving end device can parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
结合第一方面,在第一方面的某些实现方式中,所述将所述业务数据映射到所述OTN帧,包括:将所述业务数据映射到所述OTN帧的净荷区的所述一组时隙块中的多个时隙块,其中,所述多个时隙块中的第一时隙块对应的指示信息用于指示所述第一时隙块承载的对象为数据或填充,所述多个时隙
块中除所述第一时隙块之外的时隙块承载的对象为数据。In combination with the first aspect, in some implementations of the first aspect, mapping the service data to the OTN frame includes: mapping the service data to multiple time slot blocks in the group of time slot blocks in the payload area of the OTN frame, wherein the indication information corresponding to the first time slot block in the multiple time slot blocks is used to indicate that the object carried by the first time slot block is data or padding, and the multiple time slot blocks The objects carried by the time slot blocks in the block except the first time slot block are data.
基于上述传输数据的方法,当某个业务数据在OTN帧中占用多个时隙块的情况下,可以通过指示信息指示该多个时隙块中的一个时隙块承载的对象为数据或填充,其他的时隙块承载的对象为数据(针对该其他的时隙块可以无需指示,或者固定指示为数据),可以进一步地降低了指示开销。Based on the above-mentioned method for transmitting data, when a certain service data occupies multiple time slot blocks in an OTN frame, indication information can be used to indicate that the object carried by one of the multiple time slot blocks is data or padding, and the objects carried by other time slot blocks are data (no indication is required for the other time slot blocks, or they are fixedly indicated as data), which can further reduce the indication overhead.
第二方面,本申请实施例提供了一种传输数据的方法。该方法可以由接收端设备执行,或者,也可以由接收端设备的组成部件(例如,芯片或者电路)执行,对此不作限定。In a second aspect, an embodiment of the present application provides a method for transmitting data. The method may be executed by a receiving device, or may be executed by a component (eg, a chip or a circuit) of the receiving device, without limitation.
该传输数据的方法包括:接收光传送网OTN帧,所述OTN帧用于承载业务数据,所述OTN帧的开销区包括一组连续的指示信息,所述OTN帧的净荷区包括一组时隙块,所述一组连续的指示信息分别用于指示所述一组时隙块承载的对象为数据或填充,所述一组连续的指示信息位于所述OTN帧的开销区中的至少一行,所述一组时隙块位于所述OTN帧的净荷区中的至少一行,所述一组指示信息所位于的至少一行位于所述一组时隙块所位于的至少一行之前;根据所述一组连续的指示信息确定所述一组时隙块承载的对象为数据或填充。The method for transmitting data comprises: receiving an optical transport network (OTN) frame, the OTN frame being used to carry service data, the overhead area of the OTN frame comprising a group of continuous indication information, the payload area of the OTN frame comprising a group of time slot blocks, the group of continuous indication information being used to indicate that the objects carried by the group of time slot blocks are data or padding, the group of continuous indication information being located in at least one row in the overhead area of the OTN frame, the group of time slot blocks being located in at least one row in the payload area of the OTN frame, the at least one row in which the group of indication information is located being located before the at least one row in which the group of time slot blocks are located; and determining, according to the group of continuous indication information, that the objects carried by the group of time slot blocks are data or padding.
基于上述传输数据的方法,接收端设备在接收到OTN帧之后,可以基于OTN帧的开销区确定OTN帧中的多个时隙块承载的对象为数据或填充。Based on the above method for transmitting data, after receiving the OTN frame, the receiving end device can determine whether the objects carried by the multiple time slot blocks in the OTN frame are data or padding based on the overhead area of the OTN frame.
结合第二方面,在第二方面的某些实现方式中,在所述业务数据映射到所述一组时隙块中的多个时隙块的情况下,所述方法还包括:确定所述多个时隙块中除第一时隙块之外的时隙块承载的对象为数据;根据所述一组连续的指示信息中与所述第一时隙块对应的指示信息确定所述第一时隙块承载的对象为数据或填充。In combination with the second aspect, in certain implementations of the second aspect, when the service data is mapped to multiple time slot blocks in the group of time slot blocks, the method also includes: determining that the objects carried by the time slot blocks other than the first time slot block in the multiple time slot blocks are data; and determining that the object carried by the first time slot block is data or padding based on the indication information corresponding to the first time slot block in the group of continuous indication information.
基于上述传输数据的方法,当某个业务数据在OTN帧中占用多个时隙块的情况下,接收端设备可以默认该多个时隙块中除第一时隙块之外的时隙块承载的对象为数据,从而可以指示该第一时隙块对象为数据或填充即可,进一步地降低了指示开销。Based on the above method of transmitting data, when a certain service data occupies multiple time slot blocks in the OTN frame, the receiving end device can default to the objects carried by the time slot blocks other than the first time slot block in the multiple time slot blocks as data, so that the first time slot block object can be indicated as data or filler, further reducing the indication overhead.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,所述一组连续的指示信息中第一指示信息包括多个比特,所述多个比特为所述OTN帧的开销区的至少一行的同一列的多个比特,所述第一指示信息用于指示所述一组时隙块中第二时隙块承载的对象为数据或填充,其中,所述第二时隙块在所述一组时隙块中的位置与所述第一指示信息在所述一组连续的指示信息中的位置相同。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, the first indication information in the set of continuous indication information includes multiple bits, and the multiple bits are multiple bits in the same column of at least one row of the overhead area of the OTN frame. The first indication information is used to indicate that the object carried by the second time slot block in the set of time slot blocks is data or padding, wherein the position of the second time slot block in the set of time slot blocks is the same as the position of the first indication information in the set of continuous indication information.
基于上述传输数据的方法,每个指示信息可以占用多个比特也可以占用一个比特,对于指示信息所占用的比特数不做具体限制,提高方案的灵活性。Based on the above method for transmitting data, each indication information may occupy multiple bits or one bit, and there is no specific restriction on the number of bits occupied by the indication information, thereby improving the flexibility of the solution.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,所述第一指示信息用于指示所述第一时隙块承载的对象为数据或填充,包括:所述多个比特中超过一半的比特的值为0指示所述第一时隙块承载的对象为数据,否则所述第一时隙块承载的对象为填充;或者,所述多个比特中超过一半的比特的值为1指示所述第一时隙块承载的对象为数据,否则所述第一时隙块承载的对象为填充。或者,可以理解为:确定所述第一指示信息满足第一条件时,确定所述第一时隙块承载的对象为数据,其中,所述第一条件为所述第一指示信息占用的多个比特中超过一半的比特的值为0或1。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, the first indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the value of more than half of the multiple bits is 0, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding; or, the value of more than half of the multiple bits is 1, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding. Alternatively, it can be understood as: when it is determined that the first indication information satisfies a first condition, it is determined that the object carried by the first time slot block is data, wherein the first condition is that the value of more than half of the multiple bits occupied by the first indication information is 0 or 1.
基于上述传输数据的方法,在指示信息占用多个比特的情况下,可以通过多数判决的方式指示对应的时隙块的承载对象,提高方案的可靠性。Based on the above method for transmitting data, when the indication information occupies multiple bits, the bearer object of the corresponding time slot block can be indicated by majority decision, thereby improving the reliability of the solution.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,所述多个比特的数量为3,所述一组指示信息所位于的至少一行为所述OTN帧的开销区的第1行至第3行。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, the number of the multiple bits is 3, and at least one row where the set of indication information is located is row 1 to row 3 of the overhead area of the OTN frame.
基于上述传输数据的方法,每个指示信息占用的比特数量可以为3,在可以基于多数判决的方式指示对应的时隙块的承载对象的前提下,采用较少的比特数实现速率适配的控制。Based on the above method for transmitting data, the number of bits occupied by each indication information may be 3. On the premise that the bearer object of the corresponding time slot block can be indicated based on majority decision, a smaller number of bits is used to achieve rate adaptation control.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,所述一组连续的指示信息为所述OTN帧的开销区中的复帧对齐信号MFAS指示的第一帧中包括的一组连续的指示信息,其中,所述第一帧为所述MFAS指示的至少一个帧中的一个,所述至少一个帧中的每个帧包括至少一个指示信息。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, the set of continuous indication information is a set of continuous indication information included in a first frame indicated by a multiframe alignment signal MFAS in an overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame of the at least one frame includes at least one indication information.
基于上述传输数据的方法,上述的一组连续的指示信息为MFAS指示的一帧中的开销,也就是说该传输数据的方法可以在一帧中完成多个时隙块的速率适配控制,提高控制效率。Based on the above method for transmitting data, the above set of continuous indication information is the overhead in one frame indicated by MFAS, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks in one frame, thereby improving the control efficiency.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,所述一组时隙块为第一时隙块周期包括的y个时隙块中与所述一组连续的指示信息相对应的时隙块,所述第一时隙块周期为至
少一个时隙块周期中的一个,所述至少一个时隙块周期中每个时隙块周期包括所述y个时隙块。In combination with the first aspect or the second aspect, in some implementations of the first aspect or the second aspect, the group of time slot blocks is a time slot block corresponding to the group of continuous indication information in y time slot blocks included in the first time slot block period, and the first time slot block period is from One of at least one time slot block period, each time slot block period in the at least one time slot block period includes the y time slot blocks.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,在所述第一时隙块周期包括的y个时隙块分为多个时隙块组的情况下,所述OTN帧的开销区还包括第二指示信息,所述第二指示信息用于指示所述一组时隙块属于所述多个时隙块组中的第一时隙块组。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, when the y time slot blocks included in the first time slot block period are divided into multiple time slot block groups, the overhead area of the OTN frame also includes second indication information, and the second indication information is used to indicate that the group of time slot blocks belongs to the first time slot block group among the multiple time slot block groups.
结合第一方面或第二方面,在第一方面或第二方面的某些实现方式中,每个所述时隙块的速率为10.4兆比特每秒Mbit/s。In combination with the first aspect or the second aspect, in certain implementations of the first aspect or the second aspect, the rate of each of the time slot blocks is 10.4 megabits per second Mbit/s.
第三方面,本申请实施例提供了一种传输数据的方法,该方法可以由发送端设备执行,或者,也可以由发送端设备的组成部件(例如,芯片或者电路)执行,对此不作限定。On the third aspect, an embodiment of the present application provides a method for transmitting data, which can be executed by a sending device, or can also be executed by a component of the sending device (for example, a chip or circuit), without limitation.
该传输数据的方法包括:接收业务数据;将所述业务数据映射到光传送网OTN帧,所述OTN帧的第一周期的开销区包括多个指示信息,所述OTN帧的第二周期的净荷区包括多个时隙块组,所述多个指示信息分别用于指示所述多个时隙块组中每一个时隙块组承载的数据量的变化量,所述第二周期为所述第一周期的下一个周期,所述多个时隙块组中每个时隙块组包括多个时隙块,所述多个时隙块在多个时隙块周期中的位置相同。其中,多个指示信息在OTN帧的开销区中一般为连续的,所以下文中以多个指示信息为多个连续的指示信息为例进行说明,在多个指示信息不连续的情况下,对于指示信息的相关描述也可以参考指示信息为连续的情况,本申请中不再重复说明。The method for transmitting data includes: receiving service data; mapping the service data to an optical transport network (OTN) frame, wherein the overhead area of the first cycle of the OTN frame includes multiple indication information, the payload area of the second cycle of the OTN frame includes multiple time slot block groups, the multiple indication information is used to indicate the change in the amount of data carried by each of the multiple time slot block groups, the second cycle is the next cycle of the first cycle, each of the multiple time slot block groups includes multiple time slot blocks, and the multiple time slot blocks are in the same position in multiple time slot block cycles. Among them, the multiple indication information is generally continuous in the overhead area of the OTN frame, so the following description is taken as an example of multiple indication information being multiple continuous indication information. In the case where the multiple indication information is not continuous, the relevant description of the indication information can also refer to the case where the indication information is continuous, and the description will not be repeated in this application.
基于上述传输数据的方法,在OTN帧的当前周期的开销区中定义多个指示信息,通过该多个指示信息分别指示OTN帧的下一个周期的净荷区中的多个时隙块组承载的数据量的变化量。指示某个时隙块组的数据量的变化量是为了确定该时隙块中包括的多个时隙块承载的对象为数据还是填充,从而便于接收端设备对接收到的OTN帧进行解析,也就是说该传输数据的方法可以完成OTN帧中划分的多个时隙块的速率适配控制。Based on the above method for transmitting data, multiple indication information is defined in the overhead area of the current cycle of the OTN frame, and the multiple indication information respectively indicates the change in the amount of data carried by multiple time slot block groups in the payload area of the next cycle of the OTN frame. The change in the amount of data of a certain time slot block group is indicated to determine whether the objects carried by the multiple time slot blocks included in the time slot block are data or padding, so as to facilitate the receiving end device to parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
结合第三方面,在第三方面的某些实现方式中,所述将所述业务数据映射到所述OTN帧,包括:将所述业务数据映射到所述多个时隙块组中的至少两个时隙块组,其中,所述至少两个时隙块组分别对应的指示信息中的至少一个用于指示所述至少两个时隙块组的数据量的变化量。In combination with the third aspect, in certain implementations of the third aspect, mapping the service data to the OTN frame includes: mapping the service data to at least two time slot block groups among the multiple time slot block groups, wherein at least one of the indication information corresponding to the at least two time slot block groups is used to indicate a change in the amount of data of the at least two time slot block groups.
基于上述传输数据的方法,当某个业务数据在OTN帧中占用多个时隙块组的情况下,可以通过至少一个指示信息指示多个时隙块组中的数据量的变化量,可以进一步地降低了指示开销。Based on the above data transmission method, when a certain service data occupies multiple time slot block groups in an OTN frame, the change in the amount of data in the multiple time slot block groups can be indicated by at least one indication information, which can further reduce the indication overhead.
第四方面,本申请实施例提供了一种传输数据的方法。该方法可以由接收端设备执行,或者,也可以由接收端设备的组成部件(例如,芯片或者电路)执行,对此不作限定。In a fourth aspect, an embodiment of the present application provides a method for transmitting data. The method may be executed by a receiving device, or may be executed by a component (eg, a chip or a circuit) of the receiving device, without limitation.
该传输数据的方法包括:接收光传送网OTN帧,所述OTN帧用于承载业务数据,所述OTN帧的第一周期的开销区包括多个连续的指示信息,所述OTN帧的第二周期的净荷区包括多个时隙块组,所述多个连续的指示信息分别用于指示所述多个时隙块组中每一个时隙块组承载的数据量的变化量,所述第二周期为所述第一周期的下一个周期,所述多个时隙块组中每个时隙块组包括多个时隙块,所述多个时隙块在多个时隙块周期中的位置相同;根据所述多个连续的指示信息确定所述多个时隙块组中每一个时隙块组承载的数据量的变化量。The method for transmitting data comprises: receiving an optical transport network (OTN) frame, the OTN frame being used to carry service data, an overhead area of a first cycle of the OTN frame comprising a plurality of continuous indication information, a payload area of a second cycle of the OTN frame comprising a plurality of time slot block groups, the plurality of continuous indication information being respectively used to indicate a change in the amount of data carried by each of the plurality of time slot block groups, the second cycle being a cycle next to the first cycle, each of the plurality of time slot block groups comprising a plurality of time slot blocks, the plurality of time slot blocks being at the same position in a plurality of time slot block cycles; and determining a change in the amount of data carried by each of the plurality of time slot block groups according to the plurality of continuous indication information.
基于上述传输数据的方法,接收端设备在接收到OTN帧之后,可以基于OTN帧的开销区确定OTN帧中的多个时隙块组承载的数据量的变化量,从而确定该时隙块组中包括的多个时隙块承载的对象为数据还是填充,完成OTN帧中划分的多个时隙块的速率适配控制。Based on the above method for transmitting data, after receiving the OTN frame, the receiving end device can determine the change in the amount of data carried by multiple time slot block groups in the OTN frame based on the overhead area of the OTN frame, thereby determining whether the objects carried by the multiple time slot blocks included in the time slot block group are data or padding, and completing the rate adaptation control of the multiple time slot blocks divided in the OTN frame.
结合第四方面,在第四方面的某些实现方式中,在所述业务数据映射到所述多个时隙块组中至少两个时隙块组的情况下,所述方法还包括:根据所述多个连续的指示信息中与所述至少两个时隙块组相对应的指示信息中的至少一个确定所述至少两个时隙块组承载的数据量的变化量。In combination with the fourth aspect, in certain implementations of the fourth aspect, when the service data is mapped to at least two time slot block groups among the multiple time slot block groups, the method further includes: determining the change in the amount of data carried by the at least two time slot block groups based on at least one of the indication information corresponding to the at least two time slot block groups in the multiple consecutive indication information.
基于上述传输数据的方法,当某个业务数据在OTN帧中占用多个时隙块组的情况下,接收端设备可以基于多个时隙块组相对应的指示信息中的至少一个,确定多个时隙块组承载的数据量的变化量,相当于将多个时隙块组作为一个组考虑,进一步地降低了指示开销。Based on the above-mentioned method of transmitting data, when a certain service data occupies multiple time slot block groups in the OTN frame, the receiving end device can determine the change in the amount of data carried by the multiple time slot block groups based on at least one of the indication information corresponding to the multiple time slot block groups, which is equivalent to considering the multiple time slot block groups as a group, further reducing the indication overhead.
结合第三方面或第四方面,在第三方面或第四方面的某些实现方式中,所述多个连续的指示信息中第三指示信息包括多个比特,所述多个比特为所述OTN帧的开销区的至少一行的同一列的多个比特,所述第三指示信息用于指示所述多个时隙块组中第一时隙块组承载的数据量的变化量,其中,所述第一时隙块组在所述多个时隙块组中的位置与所述第三指示信息在所述多个连续的指示信息的位置相同。
In combination with the third aspect or the fourth aspect, in certain implementations of the third aspect or the fourth aspect, the third indication information in the multiple consecutive indication information includes multiple bits, and the multiple bits are multiple bits in the same column of at least one row of the overhead area of the OTN frame. The third indication information is used to indicate the change in the amount of data carried by the first time slot block group in the multiple time slot block groups, wherein the position of the first time slot block group in the multiple time slot block groups is the same as the position of the third indication information in the multiple consecutive indication information.
基于上述传输数据的方法,每个指示信息可以占用多个比特也可以占用一个比特,对于指示信息所占用的比特数不做具体限制,提高方案的灵活性。Based on the above method for transmitting data, each indication information may occupy multiple bits or one bit, and there is no specific restriction on the number of bits occupied by the indication information, thereby improving the flexibility of the solution.
结合第三方面或第四方面,在第三方面或第四方面的某些实现方式中,所述第三指示信息用于指示所述第一时隙块组承载的数据量的变化量,包括:所述多个比特中超过一半的比特的值为0指示所述第一时隙块组承载的数据量的变化量为0,否则指示所述第一时隙块组承载的数据量的变化量为1;或者,所述多个比特中超过一半的比特的值为1指示所述第一时隙块组承载的数据量的变化量为1,否则指示所述第一时隙块组承载的数据量的变化量为0。或者,可以理解为:确定所述第三指示信息满足第二条件时,确定所述第一时隙块组承载的数据量的变化量为1,其中,所述第二条件为所述第三指示信息占用的多个比特中超过一半的比特的值为0或1。In combination with the third aspect or the fourth aspect, in certain implementations of the third aspect or the fourth aspect, the third indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the value of more than half of the multiple bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 1; or, the value of more than half of the multiple bits is 1, indicating that the change in the amount of data carried by the first time slot block group is 1, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 0. Alternatively, it can be understood that: when it is determined that the third indication information satisfies the second condition, it is determined that the change in the amount of data carried by the first time slot block group is 1, wherein the second condition is that the value of more than half of the multiple bits occupied by the third indication information is 0 or 1.
基于上述传输数据的方法,在指示信息占用多个比特的情况下,可以通过多数判决的方式指示对应的时隙块的承载对象,提高方案的可靠性。Based on the above method for transmitting data, when the indication information occupies multiple bits, the bearer object of the corresponding time slot block can be indicated by majority decision, thereby improving the reliability of the solution.
结合第三方面或第四方面,在第三方面或第四方面的某些实现方式中,所述多个连续的指示信息为所述OTN帧的开销区中的复帧对齐信号MFAS指示的第一帧中包括的连续的指示信息,其中,所述第一帧为所述MFAS指示的至少一个帧中的一个,所述至少一个帧中的每个帧包括至少一个指示信息。In combination with the third aspect or the fourth aspect, in certain implementations of the third aspect or the fourth aspect, the multiple continuous indication information is continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame of the at least one frame includes at least one indication information.
另外,第三方面或第四方面中涉及的指示信息的某些描述(如,占用的比特位置)可以参考上述第一方面或第二方面中对于指示信息的描述,这里不再重复说明。以及时隙块的传输速率也可以参考上述第一方面或第二方面中对于时隙块的描述,这里不再重复说明。In addition, some descriptions of the indication information involved in the third aspect or the fourth aspect (such as the occupied bit position) can refer to the description of the indication information in the first aspect or the second aspect, and will not be repeated here. And the transmission rate of the time slot block can also refer to the description of the time slot block in the first aspect or the second aspect, and will not be repeated here.
第五方面,本申请实施例提供了一种传输数据的装置。该装置用于执行上述第一方面或第三方面提供的方法。具体地,该传输数据的装置可以包括用于执行第一方面或第三方面的上述任意一种实现方式提供的方法的单元和/或模块,如处理单元和获取单元。In a fifth aspect, an embodiment of the present application provides a device for transmitting data. The device is used to execute the method provided in the first aspect or the third aspect. Specifically, the device for transmitting data may include a unit and/or module, such as a processing unit and an acquisition unit, for executing the method provided in any one of the above implementations of the first aspect or the third aspect.
在一种实现方式中,该传输数据的装置为发送端设备。获取单元可以是收发器,或,输入/输出接口;处理单元可以是至少一个处理器。可选地,收发器可以为收发电路。可选地,输入/输出接口可以为输入/输出电路。In one implementation, the device for transmitting data is a transmitting end device. The acquisition unit may be a transceiver, or an input/output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
在另一种实现方式中,该传输数据的装置为发送端设备中的芯片、芯片系统或电路。获取单元可以是该芯片、芯片系统或电路上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等;处理单元可以是至少一个处理器、处理电路或逻辑电路等。In another implementation, the device for transmitting data is a chip, a chip system or a circuit in a transmitting device. The acquisition unit may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, the chip system or the circuit; the processing unit may be at least one processor, a processing circuit or a logic circuit.
以上第五方面及其可能的设计所示方法的有益效果可参照第一方面或第三方面及其可能的设计中的有益效果。The beneficial effects of the method shown in the fifth aspect and its possible design can refer to the beneficial effects in the first aspect or the third aspect and its possible design.
第六方面,本申请实施例提供了一种传输数据的装置。该装置用于执行上述第二方面或第四方面提供的方法。具体地,该传输数据的装置可以包括用于执行第二方面或第四方面提供的方法的单元和/或模块,如处理单元和获取单元。In a sixth aspect, an embodiment of the present application provides a device for transmitting data. The device is used to execute the method provided in the second aspect or the fourth aspect above. Specifically, the device for transmitting data may include units and/or modules for executing the method provided in the second aspect or the fourth aspect, such as a processing unit and an acquisition unit.
在一种实现方式中,该传输数据的装置为接收端设备。获取单元可以是收发器,或,输入/输出接口;处理单元可以是至少一个处理器。可选地,收发器可以为收发电路。可选地,输入/输出接口可以为输入/输出电路。In one implementation, the device for transmitting data is a receiving device. The acquisition unit may be a transceiver, or an input/output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
在另一种实现方式中,该传输数据的装置为接收端设备中的芯片、芯片系统或电路。获取单元可以是该芯片、芯片系统或电路上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等;处理单元可以是至少一个处理器、处理电路或逻辑电路等。In another implementation, the device for transmitting data is a chip, a chip system or a circuit in a receiving device. The acquisition unit may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip, the chip system or the circuit; the processing unit may be at least one processor, a processing circuit or a logic circuit.
第七方面,本申请实施例提供一种处理器,用于执行上述各方面提供的方法。In a seventh aspect, an embodiment of the present application provides a processor for executing the methods provided in the above aspects.
对于处理器所涉及的发送和获取/接收等操作,如果没有特殊说明,或者,如果未与其在相关描述中的实际作用或者内在逻辑相抵触,则可以理解为处理器输出和接收、输入等操作,也可以理解为由射频电路和天线所进行的发送和接收操作,本申请对此不做限定。For the operations such as sending and acquiring/receiving involved in the processor, unless otherwise specified, or unless they conflict with their actual function or internal logic in the relevant description, they can be understood as operations such as processor output, reception, input, etc., or as sending and receiving operations performed by the radio frequency circuit and antenna, and this application does not limit this.
第八方面,本申请实施例提供一种计算机可读存储介质。该计算机可读存储介质存储用于设备执行的程序代码,该程序代码包括用于执行上述各方面提供的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores program codes for execution by a device, and the program codes include codes for executing the methods provided in the above aspects.
第九方面,本申请实施例提供一种包含指令的计算机程序产品。当该计算机程序产品在计算机上运行时,使得计算机执行上述各方面提供的方法。In a ninth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is enabled to execute the methods provided in the above aspects.
第十方面,本申请实施例提供一种芯片,芯片包括处理器与通信接口,处理器通过通信接口读取
存储器上存储的指令,执行上述各方面提供的方法。In a tenth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the processor reads The instructions stored in the memory execute the methods provided by the above aspects.
可选地,作为一种实现方式,芯片还包括存储器,存储器中存储有计算机程序或指令,处理器用于执行存储器上存储的计算机程序或指令,当计算机程序或指令被执行时,处理器用于执行上述各方面提供的方法。Optionally, as an implementation method, the chip also includes a memory, in which a computer program or instruction is stored, and the processor is used to execute the computer program or instruction stored in the memory. When the computer program or instruction is executed, the processor is used to execute the methods provided by the above aspects.
第十一方面,本申请实施例提供一种通信系统,包括第五方面所述的传输数据的装置和第六方面所述的传输数据的装置。In an eleventh aspect, an embodiment of the present application provides a communication system, comprising the device for transmitting data described in the fifth aspect and the device for transmitting data described in the sixth aspect.
图1是本申请适用的应用场景示意图。FIG1 is a schematic diagram of an application scenario to which the present application is applicable.
图2为一种光传送设备的结构示意图。FIG. 2 is a schematic diagram of the structure of an optical transmission device.
图3为本申请中信号帧几种可能的结构示意图。FIG. 3 is a schematic diagram of several possible structures of a signal frame in the present application.
图4是一种OTN帧结构的示意图。FIG. 4 is a schematic diagram of an OTN frame structure.
图5是本申请实施例提供的传输数据的方法的示意性流程图。FIG5 is a schematic flowchart of a method for transmitting data provided in an embodiment of the present application.
图6是本申请实施例提供的一种OTN帧结构的示意图。FIG6 is a schematic diagram of an OTN frame structure provided in an embodiment of the present application.
图7是业务数据占用多个时隙块的示意图。FIG. 7 is a schematic diagram showing that business data occupies multiple time slot blocks.
图8是本申请实施例提供的另一种OTN帧结构的示意图。FIG8 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
图9是本申请实施例提供的又一种OTN帧结构的示意图。FIG. 9 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
图10是本申请实施例提供的又一种OTN帧结构的示意图。FIG. 10 is a schematic diagram of another OTN frame structure provided in an embodiment of the present application.
图11是业务数据占用多个时隙块组的示意图。FIG. 11 is a schematic diagram showing that business data occupies multiple time slot block groups.
图12为一种可能的网络设备的结构示意图。FIG. 12 is a schematic diagram of the structure of a possible network device.
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
为了便于理解本申请实施例,作出以下几点说明。In order to facilitate understanding of the embodiments of the present application, the following explanations are made.
第一、在下文示出的本申请实施例中的文字说明或附图中的术语“第一”、“第二”、“第三”等以及各种数字编号仅为描述方便进行的区分,而不必用于描述特定的顺序或者先后次序,并不用来限制本申请实施例的范围。例如,区分不同的指示信息等。First, the terms "first", "second", "third", etc. and various numerical numbers in the text descriptions or drawings of the embodiments of the present application shown below are only used for the convenience of description, and are not necessarily used to describe a specific order or sequence, and are not used to limit the scope of the embodiments of the present application. For example, to distinguish different indication information, etc.
第二、下文示出的本申请实施例中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可以包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其他步骤或者单元。Second, the terms "including" and "having" and any variations thereof in the embodiments of the present application shown below are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatuses.
第三、在本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明,被描述为“示例性的”或者“例如”的实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。Third, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions, and the embodiments or designs described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. The use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way for easy understanding.
第四、在本申请实施例中,业务数据指的是光传送网络可以承载的业务。例如,可以是以太网业务、分组业务、无线回传业务等。业务数据也可以称业务信号、客户数据或客户业务数据。应理解,本申请实施例中对于业务数据的类型不做限定。Fourth, in the embodiments of the present application, service data refers to services that can be carried by the optical transport network. For example, it can be Ethernet services, packet services, wireless backhaul services, etc. Service data can also be called service signals, customer data, or customer service data. It should be understood that the types of service data are not limited in the embodiments of the present application.
第五、在本申请中,“用于指示”包括直接指示和间接指示。当描述某一信息用于指示A时,包括该信息直接指示A或间接指示A,而并不代表该信息中一定携带有A。Fifth, in this application, "used to indicate" includes direct indication and indirect indication. When describing that a certain information is used to indicate A, it includes that the information directly indicates A or indirectly indicates A, and does not mean that A must be carried in the information.
第六、下文示出的本申请实施例中,仅以光传送网(optical transport network,OTN)中的OTN帧作为示例对实施例进行说明的,应理解,对于其他承载OTN帧,或者城域传送网(metro transport network,MTN)帧,或者随着OTN技术以及MTN技术的发展,可能定义出新的类型的OTN帧和MTN帧,也适用于本申请。Sixth, in the embodiments of the present application shown below, only the OTN frame in the optical transport network (OTN) is used as an example to illustrate the embodiment. It should be understood that for other OTN frames, or metropolitan transport network (MTN) frames, or with the development of OTN technology and MTN technology, new types of OTN frames and MTN frames may be defined, which are also applicable to the present application.
第七、在本申请实施例中,设备也可以称为节点或者节点设备,发送设备可以称为发送节点、发送端或源节点。同样的,接收设备可以称为接收端设备、接收端或者宿节点。Seventh, in the embodiments of the present application, a device may also be referred to as a node or a node device, and a sending device may be referred to as a sending node, a sending end, or a source node. Similarly, a receiving device may be referred to as a receiving end device, a receiving end, or a sink node.
图1为本申请实施例适用的一种OTN光网络系统的示意图。本申请实施例的技术方案可以应用于包括OTN和多个客户设备(如图1所示的客户设备#1-客户设备#6)的通信系统100。其中,OTN
包括多个互连的OTN设备(如图1所示的OTN设备#1-OTN设备#4)。FIG1 is a schematic diagram of an OTN optical network system applicable to an embodiment of the present application. The technical solution of the embodiment of the present application can be applied to a communication system 100 including an OTN and multiple customer devices (customer device #1 to customer device #6 as shown in FIG1). It includes multiple interconnected OTN devices (such as OTN device #1 to OTN device #4 as shown in FIG1 ).
需要说明的是,图1仅给出了用于连接客户设备的OTN设备。在实际应用中,OTN还可能包括更多的设备,图1中未示出。另外,图1为也未给出OTN设备具体的连接关系。具体地,OTN设备之间的连接方式可以参考目前相关技术中的介绍,本申请对此不赘述。It should be noted that FIG1 only shows the OTN equipment used to connect the customer equipment. In actual applications, OTN may also include more equipment, which is not shown in FIG1. In addition, FIG1 does not show the specific connection relationship of the OTN equipment. Specifically, the connection method between OTN equipment can refer to the introduction in the current related technology, and this application does not elaborate on it.
应理解,OTN网络中的OTN设备通过光纤连接而成,可以根据具体需要组成如线型、环形和网状等不同的拓扑类型。It should be understood that OTN devices in an OTN network are connected by optical fibers and can be formed into different topology types such as linear, ring, and mesh according to specific needs.
示例性地,客户设备也可以称为用户终端设备(customer premise equipment,CPE)。本申请中对于客户设备的具体形式不做限制,包括但不限于:与OTN设备通信的终端,其中,终端也可以称为终端设备、接入终端、用户单元、用户站、移动站、移动设备、无线通信设备、用户代理或用户装置。客户设备可以是有业务数据需要传输的设备。Exemplarily, the customer equipment may also be referred to as customer premises equipment (CPE). The specific form of the customer equipment is not limited in this application, including but not limited to: a terminal communicating with an OTN device, wherein the terminal may also be referred to as a terminal device, an access terminal, a user unit, a user station, a mobile station, a mobile device, a wireless communication device, a user agent or a user device. The customer equipment may be a device that has service data to be transmitted.
一个OTN设备可能具备不同的功能。一般地来说,OTN设备分为光层设备、电层设备以及光电混合设备。光层设备指的是能够处理光层信号的设备,例如:光放大器(optical amplifier,OA)、光分插复用器(optical add-drop multiplexer,OADM)。OA也可被称为光线路放大器(optical line amplifier,OLA),主要用于对光信号进行放大,以支持在保证光信号的特定性能的前提下传输更远的距离。OADM用于对光信号进行空间的变换,从而使其可以从不同的输出端口(有时也称为方向)输出。根据能力不同,OADM可以分为固定的OADM(fixed OADM,FOADM),可配置的OADM(reconfigurable OADM,ROADM)等。电层设备指的是能够处理电层信号的设备,例如:能够处理OTN电信号的设备。光电混合设备指的是具备处理光层信号和电层信号能力的设备。An OTN device may have different functions. Generally speaking, OTN devices are divided into optical layer devices, electrical layer devices, and optoelectronic hybrid devices. Optical layer devices refer to devices that can process optical layer signals, such as optical amplifiers (OA) and optical add-drop multiplexers (OADM). OAs can also be called optical line amplifiers (OLA), which are mainly used to amplify optical signals to support longer distances while ensuring the specific performance of optical signals. OADM is used to transform optical signals in space so that they can be output from different output ports (sometimes also called directions). According to different capabilities, OADM can be divided into fixed OADM (FOADM), reconfigurable OADM (ROADM), etc. Electrical layer devices refer to devices that can process electrical layer signals, such as devices that can process OTN electrical signals. Optoelectronic hybrid devices refer to devices that have the ability to process both optical layer signals and electrical layer signals.
需要说明的是,根据具体的集成需要,一个OTN设备可以集合多种不同的功能。本申请提供的技术方案适用于不同形态和集成度的OTN设备,尤其适用于用于连接客户设备的OTN设备。It should be noted that, according to specific integration requirements, an OTN device can integrate multiple different functions. The technical solution provided in this application is applicable to OTN devices of different forms and integration levels, and is particularly applicable to OTN devices used to connect customer devices.
图2为一种可能的网络设备硬件结构示意图。例如,图2所示的光传送设备为图1中的OTN设备#1-OTN设备#4中的一个。具体地,OTN设备200包括支路板201、交叉板202、线路板203、光层处理单板(图中未示出)以及系统控制和通信类单板204。根据需要,网络设备包含的单板类型和数量可能不相同。例如,作为核心节点的网络设备没有支路板201。又如,作为边缘节点的网络设备有多个支路板201,或者没有光交叉板202。再如,只支持电层功能的网络设备可能没有光层处理单板。FIG2 is a schematic diagram of a possible hardware structure of a network device. For example, the optical transmission device shown in FIG2 is one of the OTN devices #1 to #4 in FIG1. Specifically, the OTN device 200 includes a branch board 201, a cross board 202, a line board 203, an optical layer processing board (not shown in the figure), and a system control and communication board 204. As required, the type and quantity of boards included in the network device may be different. For example, a network device that serves as a core node does not have a branch board 201. For another example, a network device that serves as an edge node has multiple branch boards 201, or does not have an optical cross board 202. For another example, a network device that only supports electrical layer functions may not have an optical layer processing board.
支路板201、交叉板202和线路板203用于处理OTN的电层信号。其中,支路板201用于实现各种客户业务的接收和发送,例如SDH业务、分组业务、以太网业务和前传业务等。更进一步地,支路板201可以划分为客户侧光收发模块和信号处理器。其中,客户侧光收发模块也可以称为光收发器,用于接收和/或发送业务数据。信号处理器用于实现对业务数据到数据帧的映射和解映射处理。交叉板202用于实现数据帧的交换,完成一种或多种类型的数据帧的交换。线路板203主要实现线路侧数据帧的处理。具体地,线路板203可以划分为线路侧光模块和信号处理器。其中,线路侧光模块可以称为光收发器,用于接收和/或发送数据帧。信号处理器用于实现对线路侧的数据帧的复用和解复用,或者映射和解映射处理。系统控制和通信类单板204用于实现系统控制。具体地,可以从不同的单板收集信息,或将控制指令发送到对应的单板上去。需要说明的是,除非特殊说明,具体的组件(例如信号处理器)可以是一个或多个,本申请不做限制。还需要说明的是,对设备包含的单板类型以及单板的功能设计和数量,本申请不做任何限制。需要说明的是,在具体的实现中,上述两个单板也可能设计为一个单板。此外,网络设备还可能包括用于备用的电源、用于散热的风扇等。The tributary board 201, the cross board 202 and the line board 203 are used to process the electrical layer signals of the OTN. Among them, the tributary board 201 is used to realize the reception and transmission of various customer services, such as SDH services, packet services, Ethernet services and fronthaul services. Further, the tributary board 201 can be divided into a customer-side optical transceiver module and a signal processor. Among them, the customer-side optical transceiver module can also be called an optical transceiver, which is used to receive and/or send service data. The signal processor is used to realize the mapping and demapping processing of service data to data frames. The cross board 202 is used to realize the exchange of data frames and complete the exchange of one or more types of data frames. The line board 203 mainly realizes the processing of line-side data frames. Specifically, the line board 203 can be divided into a line-side optical module and a signal processor. Among them, the line-side optical module can be called an optical transceiver, which is used to receive and/or send data frames. The signal processor is used to realize the multiplexing and demultiplexing of the data frames on the line side, or the mapping and demapping processing. The system control and communication type single board 204 is used to realize system control. Specifically, information can be collected from different boards, or control instructions can be sent to the corresponding board. It should be noted that, unless otherwise specified, the specific components (such as signal processors) can be one or more, and this application does not limit this. It should also be noted that this application does not impose any restrictions on the types of boards included in the device and the functional design and quantity of the boards. It should be noted that in a specific implementation, the above two boards may also be designed as one board. In addition, the network device may also include a power supply for backup, a fan for heat dissipation, etc.
应理解,本申请实施例提供的方法可以应用于光传送网络,例如,图1所示的通信系统。但是,本申请实施例中并不限定该方法能够应用的场景,例如,其他包括能够实现相应功能的设备(如,OTN设备、或其他通信设备)的通信系统中同样适用。It should be understood that the method provided in the embodiment of the present application can be applied to an optical transmission network, for example, the communication system shown in Figure 1. However, the embodiment of the present application does not limit the scenario in which the method can be applied, for example, it is also applicable to other communication systems including devices that can implement corresponding functions (such as OTN devices or other communication devices).
下面结合附图对本申请中涉及的几种可能的信号帧进行说明。图3为本申请中信号帧几种可能的结构示意图。如图3所示,信号帧具体可以是灵活光业务单元(Flexible Optical Service Unit,OSUflex)帧(也可以简称为OSU帧)、灵活支路单元(Flexible Tributary Unit,TUflex)帧或光净荷单元k(Optical Payload Unit k,OPUk)帧。其中,OSUflex帧包括开销区和净荷区,净荷区用于承载客户业务。OSUflex帧用于映射到TUflex帧,TUflex帧包括多个净荷块(payload block,PB),每个OSUflex帧都有与之对应的净荷块。并且,每个净荷块都包括支路端口编号(Tributary Port Number,TPN),用
于指示当前净荷块中承载业务的编号。OPUk帧的净荷区划分为多个净荷块,TUflex帧中的净荷块可以映射到OPUk帧的净荷区中。应理解,上述“灵活光业务单元帧”还可以有其他的命名方式。例如,还可以称之为灵活光业务数据单元(Flexible Optical Service data Unit,OSDUflex)帧,具体此处不做限定。Several possible signal frames involved in the present application are described below in conjunction with the accompanying drawings. Figure 3 is a schematic diagram of several possible structures of signal frames in the present application. As shown in Figure 3, the signal frame can specifically be a Flexible Optical Service Unit (OSUflex) frame (also referred to as an OSU frame for short), a Flexible Tributary Unit (TUflex) frame or an Optical Payload Unit k (OPUk) frame. Among them, the OSUflex frame includes an overhead area and a payload area, and the payload area is used to carry customer services. The OSUflex frame is used to map to the TUflex frame. The TUflex frame includes multiple payload blocks (PB), and each OSUflex frame has a corresponding payload block. In addition, each payload block includes a Tributary Port Number (TPN), which is used to Indicates the number of the service carried in the current payload block. The payload area of the OPUk frame is divided into multiple payload blocks, and the payload block in the TUflex frame can be mapped to the payload area of the OPUk frame. It should be understood that the above-mentioned "flexible optical service unit frame" can also have other naming methods. For example, it can also be called a flexible optical service data unit (Flexible Optical Service data Unit, OSDUflex) frame, which is not limited here.
需要说明的是,除了上述列举的几种帧类型,本申请中的信号帧还可以是光数据单元k(Optical Data Unit k,ODUk)帧或光传输单元k(Optical Transport Unit k,OTUk)帧等,具体此处不做限定。It should be noted that, in addition to the several frame types listed above, the signal frame in the present application may also be an optical data unit k (Optical Data Unit k, ODUk) frame or an optical transport unit k (Optical Transport Unit k, OTUk) frame, etc., which is not specifically limited here.
另外,需要说明的是,本申请中涉及的OSU帧可以理解为光传送网络(optical transport network,OTN)帧的一种。具体地,OTN设备使用的数据帧结构是OTN帧。OTN帧也可以称为OTN传输帧。OTN帧用于承载各种业务数据,并提供丰富的管理和监控功能。OTN帧可以是OSU帧。或者,OTN帧也可以是ODUk、ODUCn、ODUflex,或者OTUk,OTUCn,或者灵活OTN(flexible OTN,FlexO)帧等。In addition, it should be noted that the OSU frame involved in the present application can be understood as a type of optical transport network (OTN) frame. Specifically, the data frame structure used by the OTN device is the OTN frame. The OTN frame can also be called the OTN transmission frame. The OTN frame is used to carry various service data and provide rich management and monitoring functions. The OTN frame can be an OSU frame. Alternatively, the OTN frame can also be an ODUk, ODUCn, ODUflex, or OTUk, OTUCn, or a flexible OTN (FlexO) frame, etc.
其中,ODU帧和OTU帧区别在于,OTU帧包括ODU帧和OTU开销;k代表了不同的速率等级,例如,k=1表示2.5Gbps,k=4表示100Gbps;Cn表示可变速率,具体为100Gbps的正整数倍的速率。除非特殊的说明,ODU帧指的是ODUk、ODUCn或ODUflex的任意一种,OTU帧指的是OTUk、OTUCn或者FlexO的任意一种。The difference between ODU frame and OTU frame is that OTU frame includes ODU frame and OTU overhead; k represents different rate levels, for example, k=1 represents 2.5Gbps, k=4 represents 100Gbps; Cn represents variable rate, specifically a rate of positive integer multiples of 100Gbps. Unless otherwise specified, ODU frame refers to any one of ODUk, ODUCn or ODUflex, and OTU frame refers to any one of OTUk, OTUCn or FlexO.
还需要指出的是,随着OTN技术发展,可能定义出新的类型的OTN帧,也适用于本申请。It should also be pointed out that, with the development of OTN technology, new types of OTN frames may be defined, which are also applicable to the present application.
具体地,OTN帧结构为4行多列的结构,包括开销区、净荷区和前向纠错(Forward Error Correction,FEC)区域。具体地,OTN帧结构可以参考目前协议中相关描述,这里不再赘述。OTN帧的净荷区划分为多个净荷块(Payload Block,PB)。每个PB占据净荷区中固定的一定长度(也可以称为大小)的位置。示例性地,OTN帧可能包括的开销有:帧对齐信号(Frame Alignment Signal,FAS)、复帧指示信号(Multiframe alignment signal,MFAS)以及保留位(reserved for future international standardization,RES),其中,FAS用于帧对齐,可以将FAS设置为固定的数值。如,4字节的“0xF6F62828”;N个数据帧构成一个复帧,每个帧带一个编号:0~N-1,该编号理解为复帧指示信号。Specifically, the OTN frame structure is a 4-row multi-column structure, including an overhead area, a payload area, and a forward error correction (FEC) area. Specifically, the OTN frame structure can refer to the relevant description in the current protocol, which will not be repeated here. The payload area of the OTN frame is divided into multiple payload blocks (PB). Each PB occupies a fixed length (also called size) in the payload area. Exemplarily, the overhead that the OTN frame may include includes: a frame alignment signal (FAS), a multiframe indication signal (MFAS), and a reserved bit (RES) reserved for future international standardization, where FAS is used for frame alignment and FAS can be set to a fixed value. For example, 4 bytes of "0xF6F62828"; N data frames constitute a multiframe, and each frame has a number: 0 to N-1, which is understood as a multiframe indication signal.
应理解,上述对OTN帧结构的描述仅是一个示例。其他变形的OTN帧也适用于本申请。例如,不包含FEC区域的OTN帧。又如,行数和列数跟OTN帧不同的帧结构。应理解,PB也可以称作时隙、时隙块或时间片等。本申请对其名称不做约束。It should be understood that the above description of the OTN frame structure is only an example. Other variant OTN frames are also applicable to the present application. For example, an OTN frame that does not include an FEC area. Another example is a frame structure with different numbers of rows and columns from an OTN frame. It should be understood that PB can also be called a time slot, a time slot block, or a time slice, etc. The present application does not restrict its name.
为了便于理解,结合图4简单介绍本申请涉及的OTN帧可能的帧结构,图4是一种OTN帧结构的示意图,从图4中可以看出OTN的帧结构可以为4行*3824列的单字节单位结构,其中前4行*16列为OTU/ODU/OPU的开销区域,4行*(3824-16)列为OPU净荷区域。其中,OTN帧的净荷区划分为多个PB。每个PB占据净荷区中固定长度(也可以称为大小)的位置,例如128个字节。OTN帧的开销区包括FAS,用于帧对齐等。For ease of understanding, the possible frame structure of the OTN frame involved in this application is briefly introduced in conjunction with Figure 4. Figure 4 is a schematic diagram of an OTN frame structure. It can be seen from Figure 4 that the frame structure of OTN can be a single-byte unit structure of 4 rows * 3824 columns, where the first 4 rows * 16 columns are the overhead area of the OTU/ODU/OPU, and 4 rows * (3824-16) columns are the OPU payload area. Among them, the payload area of the OTN frame is divided into multiple PBs. Each PB occupies a fixed length (also called size) in the payload area, for example, 128 bytes. The overhead area of the OTN frame includes FAS, which is used for frame alignment, etc.
当前中国通信标准化协会(China Communications Standards Association,CCSA)制定的OSU用于在OTN网络中承载小颗粒业务,并且当前国际电信联盟电信标准分局(International Telecommunications Union-Telecommunication Standardization Sector,ITU-T)也正在对OSU标准方案进行讨论。在该方案中,将多路业务分别映射封装到多路OSU中,不同的OSU对应不同的灵活支路单元,然后将多路TUflex复用到OPU中。The OSU currently developed by the China Communications Standards Association (CCSA) is used to carry small-granularity services in the OTN network, and the International Telecommunications Union-Telecommunication Standardization Sector (ITU-T) is also discussing the OSU standard solution. In this solution, multiple services are mapped and encapsulated into multiple OSUs, different OSUs correspond to different flexible tributary units, and then multiple TUflexes are multiplexed into the OPU.
具体地,OSU的净荷区包括192字节的PB,OSU的开销区包括7字节,其中,开销区7字节中的最后一个字节为CRC-8校验字段,用于对前6个字节进行校验,一旦校验失败即丢弃该192字节的净荷块的内容。将误码扩大为数据的丢失,对数据传输可靠性存在影响。Specifically, the payload area of the OSU includes a 192-byte PB, and the overhead area of the OSU includes 7 bytes, wherein the last byte of the 7-byte overhead area is a CRC-8 check field, which is used to check the first 6 bytes. Once the check fails, the content of the 192-byte payload block is discarded. The bit error is expanded to data loss, which affects the reliability of data transmission.
上文结合图1介绍了本申请实施例能够应用的场景,并且介绍了目前灵活支路单元的映射方式中存在的缺陷,下文中将结合附图详细介绍本申请提供的传输数据的方法,定义小带宽(如,16字节)的净荷块,并且通过指示信息指示小带宽PB承载的对象为数据或填充,实现速率适配的控制。The above text, in combination with Figure 1, introduces the scenarios in which the embodiments of the present application can be applied, and introduces the defects existing in the current mapping method of the flexible branch unit. The following text will introduce in detail the method for transmitting data provided by the present application in combination with the accompanying drawings, define a payload block with a small bandwidth (such as 16 bytes), and indicate through indication information that the object carried by the small bandwidth PB is data or padding, thereby realizing rate adaptation control.
下文示出的实施例并未对本申请实施例提供的方法的执行主体的具体结构特别限定,只要能够通过运行记录有本申请实施例的提供的方法的代码的程序,以根据本申请实施例提供的方法进行通信即可,例如,本申请实施例提供的方法的执行主体可以是OTN设备,或者是OTN设备中能够调用程序
并执行程序的功能模块(如芯片或芯片系统等),或者还可以是其他的通信设备。The embodiments shown below do not particularly limit the specific structure of the execution subject of the method provided in the embodiments of the present application. As long as it is possible to communicate according to the method provided in the embodiments of the present application by running a program that records the code of the method provided in the embodiments of the present application, for example, the execution subject of the method provided in the embodiments of the present application may be an OTN device, or an OTN device that can call a program. And a functional module that executes the program (such as a chip or a chip system, etc.), or it can also be other communication devices.
图5是本申请提供的传输数据的方法的示意性流程图,包括以下步骤。FIG5 is a schematic flow chart of a method for transmitting data provided in the present application, which includes the following steps.
S610,发送端设备接收业务数据,并将业务数据映射到OTN帧。S610: The sending end device receives service data and maps the service data to an OTN frame.
具体地,该OTN帧用于承载业务数据。例如,发送端设备获取待传输的业务数据,将该业务数据映射到OTN帧的净荷区,传输该OTN帧完成业务数据的传输。Specifically, the OTN frame is used to carry service data. For example, a transmitting end device obtains service data to be transmitted, maps the service data to a payload area of the OTN frame, and transmits the OTN frame to complete the transmission of the service data.
示例性地,发送端设备为上述的OTN设备(如图1中所示的OTN设备#1),从客户设备(如图1中所示的客户设备#1或客户设备#2)接收业务数据。或者,发送端设备为能够实现OTN设备功能的其他设备。本申请实施例中对于发送端设备的具体形式不做限制,能够实现相应传输数据的功能即可。Exemplarily, the sending end device is the above-mentioned OTN device (such as OTN device #1 as shown in FIG. 1), which receives service data from a client device (such as client device #1 or client device #2 as shown in FIG. 1). Alternatively, the sending end device is other devices that can implement the functions of the OTN device. In the embodiments of the present application, there is no limitation on the specific form of the sending end device, as long as it can implement the corresponding function of transmitting data.
示例性地,本申请实施例中涉及的业务数据指的是光传送网络可以承载的业务。包括但不限于:以太网业务、分组业务、无线回传业务等。应理解,本申请实施例中对于业务数据的类型不做限定。Exemplarily, the service data involved in the embodiments of the present application refers to services that can be carried by the optical transport network, including but not limited to: Ethernet services, packet services, wireless backhaul services, etc. It should be understood that the types of service data are not limited in the embodiments of the present application.
应理解,该实施例中对于如何将业务数据映射至OTN帧的净荷区不做具体说明,可以参考目前相关技术中的介绍,该实施例主要涉及如何定义OTN帧的开销区不同比特位的含义。It should be understood that this embodiment does not specifically describe how to map service data to the payload area of the OTN frame. For details, reference may be made to the introduction in the current related technology. This embodiment mainly involves how to define the meaning of different bits in the overhead area of the OTN frame.
在本申请实施例中,该OTN帧可以是目前定义的OTN帧或者城域传送网(metro transport network,MTN)帧。或者随着OTN技术以及MTN技术的发展,可能定义出新的类型的OTN帧和MTN帧,也适用于本申请。In the embodiment of the present application, the OTN frame may be a currently defined OTN frame or a metro transport network (MTN) frame. Alternatively, with the development of OTN technology and MTN technology, new types of OTN frames and MTN frames may be defined, which are also applicable to the present application.
具体地,在该实施例中,OTN帧的净荷区可以划分为下小带宽的时隙块(或者称为净荷块、时隙等)。如,划分为8字节的时隙块、16字节的时隙块、32字节、64字节的时隙块等。应理解,该实施例中对于OTN帧的净荷区的具体划分方式不做限定,这里不再一一举例说明。Specifically, in this embodiment, the payload area of the OTN frame can be divided into time slot blocks (or referred to as payload blocks, time slots, etc.) with a small bandwidth. For example, it can be divided into time slot blocks of 8 bytes, time slot blocks of 16 bytes, time slot blocks of 32 bytes, 64 bytes, etc. It should be understood that the specific division method of the payload area of the OTN frame is not limited in this embodiment, and will not be described one by one here.
该实施例中可以通过如下两种方式(如下述的方式一和方式二)指示时隙块承载的对象为数据或者填充,实现速率适配的控制。In this embodiment, the following two methods (such as the following method 1 and method 2) can be used to indicate whether the object carried by the time slot block is data or padding, thereby realizing rate adaptation control.
方式一:直接指示时隙块承载的对象为数据或者填充。Method 1: directly indicating that the object carried by the time slot block is data or padding.
方式一中,该OTN帧的开销区包括一组连续的指示信息,该OTN帧的净荷区包括一组时隙块,且该一组连续的指示信息分别用于指示该一组时隙块承载的对象为数据或填充。其中,一组连续的指示信息位于OTN帧的开销区中的至少一行,一组时隙块位于OTN帧的净荷区中的至少一行,一组指示信息所位于的至少一行在一组时隙块所位于的至少一行之前。其中,一组指示信息所位于的至少一行可以称为至少一个第一行,也就是说该实施例中指示信息所位于的行可以称为“第一行”,且多个第一行可以是多个不同的行;一组时隙块所位于的至少一行可以称为至少一个第二行,也就是说该实施例中时隙块所位于的行可以称为“第二行”,且多个第二行可以是多个不同的行。In the first mode, the overhead area of the OTN frame includes a group of continuous indication information, the payload area of the OTN frame includes a group of time slot blocks, and the group of continuous indication information is used to indicate that the object carried by the group of time slot blocks is data or padding. Among them, a group of continuous indication information is located in at least one row in the overhead area of the OTN frame, a group of time slot blocks is located in at least one row in the payload area of the OTN frame, and at least one row where a group of indication information is located is before at least one row where a group of time slot blocks are located. Among them, at least one row where a group of indication information is located can be called at least one first row, that is, the row where the indication information is located in this embodiment can be called "first row", and multiple first rows can be multiple different rows; at least one row where a group of time slot blocks is located can be called at least one second row, that is, the row where the time slot blocks are located in this embodiment can be called "second row", and multiple second rows can be multiple different rows.
若一组连续的指示信息和一组时隙块在同一帧中可以通过行号大小关系确定至少一个第一行在至少一个第二行之前,如,OTN帧的多个行从小到大编号,则至少一个第一行的行号小于第二行的行号;还如,OTN帧的多个行从大到小编号,则至少一个第一行的行号大于第二行的行号。若一组连续的指示信息和一组时隙块不在同一帧中,如一组时隙块位于多个第二行,该多个第二行中的至少一个第二行位于帧#2,至少一个第一行位于帧#1,且帧#2在帧#1之后。可以理解为,一组连续的指示信息用于指示该一组连续的指示信息之后的一组时隙块承载的对象为数据或填充。If a group of continuous indication information and a group of time slot blocks are in the same frame, it can be determined that at least one first row is before at least one second row through the relationship between row numbers, such as, if multiple rows of the OTN frame are numbered from small to large, then the row number of at least one first row is smaller than the row number of the second row; or, if multiple rows of the OTN frame are numbered from large to small, then the row number of at least one first row is larger than the row number of the second row. If a group of continuous indication information and a group of time slot blocks are not in the same frame, such as, a group of time slot blocks are located in multiple second rows, at least one second row of the multiple second rows is located in frame #2, at least one first row is located in frame #1, and frame #2 is after frame #1. It can be understood that a group of continuous indication information is used to indicate that the objects carried by a group of time slot blocks after the group of continuous indication information are data or padding.
方式一下,在OTN帧的开销区中定义多个指示信息,通过该多个指示信息分别指示OTN帧的净荷区中位于该多个指示信息之后的多个时隙块(如,指示信息所位于的行在时隙块所位于的行之前)承载的对象为数据或填充。指示某个时隙块为数据或者填充是为了:指示该时隙块是承载数据的时隙块,还是的填充块,以便于接收端设备对接收到的OTN帧进行解析,也就是说该传输数据的方法可以完成OTN帧中划分的多个时隙块的速率适配控制。In the first way, multiple indication information is defined in the overhead area of the OTN frame, and the multiple indication information is used to indicate that the objects carried by multiple time slot blocks located after the multiple indication information in the payload area of the OTN frame (for example, the row where the indication information is located is before the row where the time slot block is located) are data or padding. Indicating that a certain time slot block is data or padding is to indicate whether the time slot block is a time slot block carrying data or a padding block, so that the receiving end device can parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of multiple time slot blocks divided in the OTN frame.
例如,该实施例中OTN帧的净荷区包括多个时隙块,该多个时隙块中的时隙块为Y个时隙块周期中的时隙块,该Y个时隙块周期中的每个时隙块周期包括y个时隙块,其中,Y为大于或者等于1的整数,y为大于1的整数,每个时隙块周期中的y个时隙块从1至y顺序编号。该OTN帧的开销区包括y个指示信息。y个指示信息中的每个指示信息用于指示相对应的时隙块承载的对象为数据或填充。如,所述y个指示信息中的第i个指示信息用于指示时隙块#i承载的对象为数据或填充,可以理解为第i个指示信息与时隙块#i相对应。For example, in this embodiment, the payload area of the OTN frame includes multiple time slot blocks, and the time slot blocks in the multiple time slot blocks are time slot blocks in Y time slot block periods, and each time slot block period in the Y time slot block periods includes y time slot blocks, wherein Y is an integer greater than or equal to 1, y is an integer greater than 1, and the y time slot blocks in each time slot block period are sequentially numbered from 1 to y. The overhead area of the OTN frame includes y indication information. Each indication information in the y indication information is used to indicate that the object carried by the corresponding time slot block is data or padding. For example, the i-th indication information in the y indication information is used to indicate that the object carried by time slot block #i is data or padding, which can be understood as the i-th indication information corresponding to time slot block #i.
需要说明的是,第i个指示信息为y个指示信息编号为i的指示信息,该编号为i的指示信息用
于指示编号为i的时隙块承载的对象为数据或填充,且该编号为i的时隙块为该编号为i的指示信息之后的一个(如,第一个或第i个指示信息后面的某一个)编号为i时隙块。也就是说Y个时隙块周期中每个时隙块周期中都包括一个编号为i的时隙块,一共有Y个编号为i的时隙块,但是该编号为i的指示信息仅指示该编号为i的指示信息之后的一个编号为i时隙块承载的对象为数据或填充,另外的Y-1个编号为i的时隙块承载的对象为数据。It should be noted that the i-th indication information is the y indication information numbered i, and the indication information numbered i is used The object carried by the time slot block numbered i is indicated as data or padding, and the time slot block numbered i is the time slot block numbered i after the indication information numbered i (e.g., one after the first or i-th indication information). That is to say, each of the Y time slot block periods includes a time slot block numbered i, and there are a total of Y time slot blocks numbered i, but the indication information numbered i only indicates that the object carried by the time slot block numbered i after the indication information numbered i is data or padding, and the objects carried by the other Y-1 time slot blocks numbered i are data.
另外需要说明的是,该实施例中涉及的指示时隙块承载的对象为数据或填充也可以理解为对时隙块进行速率适配指示,原因在于,接收端设备可以根据指示信息确定相对应的时隙块承载的对象为数据或填充,确定该时隙块是否为速率适配块。It should also be noted that the indication of whether the object carried by the time slot block is data or padding involved in this embodiment can also be understood as an indication of rate adaptation for the time slot block. The reason is that the receiving end device can determine whether the object carried by the corresponding time slot block is data or padding based on the indication information, and determine whether the time slot block is a rate adaptation block.
其中,时隙块周期的数量Y与每个时隙块的大小、该OTN帧的净荷区的大小、该OTN帧的传输速率、每个时隙块的传输速率以及待传输的业务数据的大小有关,该实施例中对待传输的业务数据不做任何的限定,从而对于时隙块周期的数量Y也不做任何的限定。The number Y of time slot block periods is related to the size of each time slot block, the size of the payload area of the OTN frame, the transmission rate of the OTN frame, the transmission rate of each time slot block, and the size of the service data to be transmitted. In this embodiment, no limitation is imposed on the service data to be transmitted, and thus no limitation is imposed on the number Y of time slot block periods.
每个时隙块周期包括的时隙块数量y与每个时隙块的大小、该OTN帧的净荷区的大小、该OTN帧的传输速率、每个时隙块的传输速率有关。例如,OTN帧的净荷区的大小如图4所示从17字节至3824字节均为OTN帧的净荷区,每个时隙块的大小为16字节,从大小看17字节至3824字节可以划分为238个大小为16字节的时隙块。若,定义每个时隙块的传输速率为10.4Mbit/s,且OTN帧的传输速率为1238.95431Mbit/s,则从传输速率看OTN帧可以划分为119个传输速率为10.4Mbit/s的时隙块,从而17字节至3824字节可以划分为两个时隙块周期,每个时隙块周期包括119个时隙块。又例如,数据帧的净荷区的大小如图4所示从17字节至3824字节均为OTN帧的净荷区,每个时隙块的大小为16字节,从大小看17字节至3824字节可以划分为238个大小为16字节的时隙块。若,定义每个时隙块的传输速率为10.4Mbit/s,且OTN帧的传输速率为2.5G bit/s,则从传输速率看OTN帧可以划分为238个传输速率为10.4Mbit/s的时隙块,从而17字节至3824字节可以划分为1个时隙块周期,该时隙块周期包括238个时隙块。The number of time slot blocks y included in each time slot block period is related to the size of each time slot block, the size of the payload area of the OTN frame, the transmission rate of the OTN frame, and the transmission rate of each time slot block. For example, the size of the payload area of the OTN frame is as shown in Figure 4, from 17 bytes to 3824 bytes, which are all the payload areas of the OTN frame. The size of each time slot block is 16 bytes. From the size point of view, 17 bytes to 3824 bytes can be divided into 238 time slot blocks of 16 bytes. If the transmission rate of each time slot block is defined as 10.4Mbit/s, and the transmission rate of the OTN frame is 1238.95431Mbit/s, then from the transmission rate point of view, the OTN frame can be divided into 119 time slot blocks with a transmission rate of 10.4Mbit/s, so that 17 bytes to 3824 bytes can be divided into two time slot block periods, and each time slot block period includes 119 time slot blocks. For another example, the size of the payload area of the data frame is shown in Figure 4, from 17 bytes to 3824 bytes, which are all the payload areas of the OTN frame. The size of each time slot block is 16 bytes. From the size point of view, 17 bytes to 3824 bytes can be divided into 238 time slot blocks of 16 bytes. If the transmission rate of each time slot block is defined as 10.4Mbit/s, and the transmission rate of the OTN frame is 2.5G bit/s, then from the transmission rate point of view, the OTN frame can be divided into 238 time slot blocks with a transmission rate of 10.4Mbit/s, so that 17 bytes to 3824 bytes can be divided into 1 time slot block period, and the time slot block period includes 238 time slot blocks.
具体地,指示信息的数量y和每个时隙块周期包括时隙块的数量y相等。例如,每个时隙块周期包括119个时隙块,则OTN帧的开销区包括119个指示信息。又例如,每个时隙块周期包括238个时隙块,则OTN帧的开销区包括238个指示信息。Specifically, the number of indication information y is equal to the number of time slot blocks included in each time slot block period y. For example, each time slot block period includes 119 time slot blocks, and the overhead area of the OTN frame includes 119 indication information. For another example, each time slot block period includes 238 time slot blocks, and the overhead area of the OTN frame includes 238 indication information.
上述的一组时隙块可以为某个时隙块周期中的多个时隙块,一组连续的指示信息为y个指示信息中位于该连续的多个时隙块之前的与该多个时隙块相对应的指示信息。例如,一组时隙块为第一时隙块周期中的编号为1至16的16个时隙块,一组连续的指示信息为该16个时隙块之前的编号为1至16的连续的16个指示信息,该一组连续的指示信息为OTN帧中第j至第j+M-1行不同列的M个比特,该第一时隙块周期位于OTN帧中第M+N行,M为正整数。The above-mentioned group of time slot blocks may be multiple time slot blocks in a certain time slot block period, and a group of continuous indication information is the indication information corresponding to the multiple time slot blocks and located before the multiple continuous time slot blocks in the y indication information. For example, a group of time slot blocks is 16 time slot blocks numbered 1 to 16 in the first time slot block period, a group of continuous indication information is 16 continuous indication information numbered 1 to 16 before the 16 time slot blocks, and the group of continuous indication information is M bits in different columns from the jth to the j+M-1th rows in the OTN frame, and the first time slot block period is located in the M+Nth row in the OTN frame, and M is a positive integer.
作为一种可能的实现方式,上述一组指示信息中每个指示信息所占的比特数量是多个。例如,一组连续的指示信息中第一指示信息包括多个比特,多个比特为OTN帧的开销区的第j至第j+M-1行的同一列的多个比特,第一指示信息用于指示一组时隙块中第一时隙块承载的对象为数据或填充,其中,第一时隙块在一组时隙块中的位置与第一指示信息在一组连续的指示信息中的位置相同。As a possible implementation, the number of bits occupied by each indication information in the above set of indication information is multiple. For example, the first indication information in a set of continuous indication information includes multiple bits, and the multiple bits are multiple bits of the same column of the jth to j+M-1th rows of the overhead area of the OTN frame, and the first indication information is used to indicate that the object carried by the first time slot block in a set of time slot blocks is data or padding, wherein the position of the first time slot block in the set of time slot blocks is the same as the position of the first indication information in a set of continuous indication information.
作为另一种可能的实现方式,上述一组指示信息中每个指示信息所占的比特位为一位。该实施例中对于指示信息所占的比特位数不做限定,可以为至少一位。当指示信息所占的比特位数至少为3位时,可以通过多数判决的方式提高方案的可靠性;当指示信息所占的比特位数少于3位时,可以通过增加验证码的方式提高方案的可靠性。As another possible implementation, the number of bits occupied by each indication information in the above set of indication information is one. In this embodiment, the number of bits occupied by the indication information is not limited and may be at least one. When the number of bits occupied by the indication information is at least 3, the reliability of the scheme can be improved by majority judgment; when the number of bits occupied by the indication information is less than 3, the reliability of the scheme can be improved by adding a verification code.
示例性地,第一指示信息占多个比特位,第一指示信息用于指示第一时隙块承载的对象为数据或填充,包括:多个比特中超过一半的比特的值为0指示第一时隙块承载的对象为数据,否则第一时隙块承载的对象为填充;或者,多个比特中超过一半的比特的值为1指示第一时隙块承载的对象为数据,否则第一时隙块承载的对象为填充。例如,第一指示信息占3个比特位,多于2个比特的值为1,则第一时隙块承载的对象为数据,否则第一时隙块承载的对象为填充。又例如,第一指示信息占1个比特位,可以通过增加验证码的方式,验证该第一指示信息是否可信。当通过验证该验证码确定第一指示信息通过验证,且该1个比特位的值为1,则第一时隙块承载的对象为数据,否则第一时隙块承载的对象为填充。Exemplarily, the first indication information occupies multiple bits, and the first indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the value of more than half of the bits in the multiple bits is 0, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding; or, the value of more than half of the bits in the multiple bits is 1, indicating that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding. For example, if the first indication information occupies 3 bits, and the value of more than 2 bits is 1, then the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding. For another example, the first indication information occupies 1 bit, and the first indication information can be verified by adding a verification code. When it is determined that the first indication information passes the verification by verifying the verification code, and the value of the 1 bit is 1, then the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is padding.
示例性地,在某个业务数据占用的时隙块包括多个时隙块的情况下,可以使用该业务数据占用的
一个固定时隙块进行速率适配,其他时隙块的适配位置固定为数据,也就是说通过指示信息指示其中一个时隙块(如,最后一个时隙块或任意的一个时隙块)承载的对象为数据或填充即可,其他的时隙块承载的对象为数据。也就是说,当某个业务数据在OTN帧中占用多个时隙块的情况下,可以通过指示信息指示该多个时隙块中的一个时隙块承载的对象为数据或填充,其他的时隙块承载的对象为数据(针对该其他的时隙块可以无需指示,或者固定指示为数据),可以进一步地降低了指示开销。例如,业务数据占用的时隙块包括第一时隙块和除第一时隙块之外的时隙块,则使用第一指示信息指示第一时隙块承载的对象为数据或填充即可,其他时隙块承载的对象为数据。其中,该其他时隙块承载的对象为数据也可以通过该其他时隙块对应的指示信息指示,或者可以为预定义的,该实施例中不做限定。Exemplarily, when a time slot block occupied by a certain service data includes multiple time slot blocks, the time slot blocks occupied by the service data can be used. A fixed time slot block is used for rate adaptation, and the adaptation positions of other time slot blocks are fixed as data, that is, the indication information indicates that the object carried by one of the time slot blocks (such as the last time slot block or any time slot block) is data or filler, and the objects carried by other time slot blocks are data. In other words, when a certain service data occupies multiple time slot blocks in an OTN frame, the indication information can be used to indicate that the object carried by one of the multiple time slot blocks is data or filler, and the objects carried by other time slot blocks are data (no indication is required for the other time slot blocks, or fixed indication is data), which can further reduce the indication overhead. For example, the time slot blocks occupied by the service data include the first time slot block and the time slot blocks other than the first time slot block, then the first indication information is used to indicate that the object carried by the first time slot block is data or filler, and the objects carried by other time slot blocks are data. Among them, the object carried by the other time slot blocks as data can also be indicated by the indication information corresponding to the other time slot blocks, or it can be predefined, which is not limited in this embodiment.
示例性地,上述的一组连续的指示信息为OTN帧的开销区中的复帧对齐信号MFAS指示的第一帧中包括的一组连续的指示信息,其中,第一帧为MFAS指示的至少一个帧中的一个,至少一个帧中的每个帧包括至少一个指示信息。可以在一帧中完成多个时隙块的速率适配控制,提高控制效率。例如,上述的y个指示信息为119个,则该119个指示信息可以划分为8组连续的指示信息,如,编号为1~16的指示信息为一组、编号为17~32的指示信息为一组、编号为33~48的指示信息为一组、编号为49~64的指示信息为一组、编号为65~80的指示信息为一组、编号为81~96的指示信息为一组、编号为97~112的指示信息为一组、编号为113~119的指示信息为一组,并且该8组连续的指示信息通过MFAS划分为8帧(如,MFAS的6~8比特分8帧,第8帧中部分位为保留位)分别传递。又如,上述的y个指示信息为238个,则该238个指示信息可以划分为15组连续的指示信息,如,编号为1~16的指示信息为一组、编号为17~32的指示信息为一组、编号为33~48的指示信息为一组、编号为49~64的指示信息为一组、编号为65~80的指示信息为一组、编号为81~96的指示信息为一组、编号为97~112的指示信息为一组、编号为113~128的指示信息为一组、编号为129~144的指示信息为一组、编号为145~160的指示信息为一组…编号为225~238的指示信息为一组,并且该15组连续的指示信息通过MFAS划分为15帧(如,MFAS的5~8比特分16帧,第16帧为保留位)分别传递。Exemplarily, the above-mentioned set of continuous indication information is a set of continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame in the at least one frame includes at least one indication information. The rate adaptation control of multiple time slot blocks can be completed in one frame, thereby improving the control efficiency. For example, if the y indication information mentioned above is 119, then the 119 indication information can be divided into 8 groups of continuous indication information, such as, indication information numbered 1 to 16 is a group, indication information numbered 17 to 32 is a group, indication information numbered 33 to 48 is a group, indication information numbered 49 to 64 is a group, indication information numbered 65 to 80 is a group, indication information numbered 81 to 96 is a group, indication information numbered 97 to 112 is a group, and indication information numbered 113 to 119 is a group, and the 8 groups of continuous indication information are divided into 8 frames through MFAS (for example, 6 to 8 bits of MFAS are divided into 8 frames, and some bits in the 8th frame are reserved bits) and transmitted separately. For another example, the y indication information mentioned above is 238, then the 238 indication information can be divided into 15 groups of continuous indication information, such as, indication information numbered 1 to 16 is a group, indication information numbered 17 to 32 is a group, indication information numbered 33 to 48 is a group, indication information numbered 49 to 64 is a group, indication information numbered 65 to 80 is a group, indication information numbered 81 to 96 is a group, indication information numbered 97 to 112 is a group, indication information numbered 113 to 128 is a group, indication information numbered 129 to 144 is a group, indication information numbered 145 to 160 is a group... indication information numbered 225 to 238 is a group, and the 15 groups of continuous indication information are divided into 15 frames (such as 5 to 8 bits of MFAS are divided into 16 frames, and the 16th frame is a reserved bit) through MFAS and transmitted separately.
或者,上述的每个时隙块周期包括的y个时隙块可以分为多个时隙块组。例如,y个时隙块中编号为1至y/2的时隙块为一个时隙块组,编号为y/2+1至y的时隙块为另一个时隙块组。Alternatively, the y time slot blocks included in each time slot block period may be divided into multiple time slot block groups. For example, the time slot blocks numbered 1 to y/2 in the y time slot blocks are one time slot block group, and the time slot blocks numbered y/2+1 to y are another time slot block group.
具体地,在每个时隙块周期包括的y个时隙块分为多个时隙块组的情况下,OTN帧的开销区还包括第二指示信息,用于指示被指示的时隙块所属的时隙块组。其中,第二指示信息可以是光净荷单元复帧指示(OPU Multi-Frame Identifier,OMFI)。例如,在每个时隙块周期包括238个时隙块的情况下,该238个时隙块可以分为两组时隙块组,其中,时隙块组#1中包括编号为1至119的119个时隙块,时隙块组#2中包括编号为120至238的119个时隙块。在该OPU的第4行中定义OMFI用于指示第i个指示信息为第几组119个时隙块的指示信息。如,当OMFI=0时,第i个指示信息为1至119的119个时隙块的指示信息,当OMFI=1时,第i个指示信息为120至238的119个时隙块的指示信息。Specifically, in the case where the y time slot blocks included in each time slot block period are divided into multiple time slot block groups, the overhead area of the OTN frame also includes second indication information for indicating the time slot block group to which the indicated time slot block belongs. The second indication information may be an optical payload unit multi-frame indicator (OPU Multi-Frame Identifier, OMFI). For example, in the case where each time slot block period includes 238 time slot blocks, the 238 time slot blocks may be divided into two groups of time slot block groups, wherein time slot block group #1 includes 119 time slot blocks numbered from 1 to 119, and time slot block group #2 includes 119 time slot blocks numbered from 120 to 238. In the 4th row of the OPU, OMFI is defined to indicate which group of 119 time slot blocks the i-th indication information belongs to. For example, when OMFI=0, the i-th indication information is the indication information of 119 time slot blocks from 1 to 119, and when OMFI=1, the i-th indication information is the indication information of 119 time slot blocks from 120 to 238.
为了便于理解,下面结合示例一至三说明上述的方式一所示的OTN帧(如,开销区包括一组连续的指示信息,净荷区包括一组时隙块)的帧结构。For ease of understanding, the frame structure of the OTN frame shown in the above-mentioned method 1 (eg, the overhead area includes a group of continuous indication information, and the payload area includes a group of time slot blocks) is described below in conjunction with Examples 1 to 3.
示例一:在OPU净荷区定义16字节的时隙块,且定义16字节的时隙块速率约为10.4M,则OPU(1.25G bit/s)被划分成119个时隙块,即每个时隙块周期中包括119个时隙块。Example 1: A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (1.25G bit/s) is divided into 119 time slot blocks, that is, each time slot block period includes 119 time slot blocks.
示例一中,由前文图4所示的OTN帧结构可知,OTN帧开销中包括的MFAS可以占用2个字节(如,图4所示的第6和第7字节)。具体地,该示例一中MFAS的6~8比特分8帧分别传递一个时隙块周期中的119个时隙块的指示信息。In Example 1, it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 6th to 8th bits of the MFAS in Example 1 are divided into 8 frames to respectively transmit the indication information of the 119 time slot blocks in a time slot block cycle.
图6是本申请实施例提供的一种OTN帧结构的示意图。从图6中可以看出,每个时隙块周期包括的时隙块个数y=119,每个时隙块周期中的119个时隙块从1至119顺序编号(如,图6中所示的1至119),每个时隙块为16字节(如,图6中所示的16B)。指示信息包括的比特数为3(如,图6中所示的OPU开销的第1~3行的纵向3个比特),其中,指示信息可以称为调整控制(Justification Control,JC)。FIG6 is a schematic diagram of an OTN frame structure provided by an embodiment of the present application. As can be seen from FIG6, the number of time slot blocks included in each time slot block period is y=119, and the 119 time slot blocks in each time slot block period are numbered sequentially from 1 to 119 (e.g., 1 to 119 shown in FIG6), and each time slot block is 16 bytes (e.g., 16B shown in FIG6). The number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG6), wherein the indication information can be called Justification Control (JC).
示例性地,图6中所示的3个JC1用于指示净荷区第4行的第一个编号为1的时隙块承载的对象
为数据或填充。Exemplarily, the three JC1s shown in FIG. 6 are used to indicate the object carried by the first time slot block numbered 1 in the fourth row of the payload area. For data or padding.
示例性地,图6中所示的3个JC119用于指示净荷区第4行的第一个编号为119的时隙块承载的对象为数据或填充。Exemplarily, the three JC119s shown in FIG. 6 are used to indicate that the object carried by the first time slot block numbered 119 in the fourth row of the payload area is data or padding.
由方式一中所述,在某个业务数据占用多个时隙块的情况下,使用该业务占用数据的一个固定时隙块进行速率适配,即通过指示信息指示该时隙块承载的对象为数据或填充。除该固定时隙块之外的其他时隙块承载的对象为数据,如图7所示,一个业务占用第1个时隙块和第2个时隙块,第1个时隙块承载的对象为数据,第2个时隙块承载的对象为数据或填充由第2个时隙块对应的指示信息进行指示。As described in the first method, when a certain service data occupies multiple time slot blocks, a fixed time slot block of the service data is used for rate adaptation, that is, the object carried by the time slot block is indicated by the indication information as data or padding. The objects carried by other time slot blocks except the fixed time slot block are data. As shown in FIG7 , a service occupies the first time slot block and the second time slot block, the object carried by the first time slot block is data, and the object carried by the second time slot block is data or padding, which is indicated by the indication information corresponding to the second time slot block.
从图7中可以看出,第1个时隙块对应的指示信息JC1可以无需定义,或者定义为指示承载的对象为数据,第2个时隙块对应的指示信息JC2用于指示第2个时隙块承载的对象为数据或填充。As can be seen from Figure 7, the indication information JC1 corresponding to the first time slot block may not need to be defined, or may be defined to indicate that the object carried is data, and the indication information JC2 corresponding to the second time slot block is used to indicate that the object carried by the second time slot block is data or padding.
示例二:在OPU净荷区定义16字节的时隙块,且定义16字节的时隙块速率约为10.4M,则OPU(2.5Gbit/s)被划分成238个时隙块,即每个时隙块周期中包括238个时隙块。Example 2: A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (2.5Gbit/s) is divided into 238 time slot blocks, that is, each time slot block period includes 238 time slot blocks.
示例二中,由前文图4所示的OTN帧结构可知,OTN帧开销中包括的MFAS可以占用2个字节(如,图4所示的第6和第7字节)。具体地,该示例二中MFAS的6~8比特分8帧分别传递一个时隙块周期中的119个时隙块的指示信息,并且结合OMFI字段将238个时隙块分为两组119个时隙块。In Example 2, it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 6th to 8th bits of the MFAS in Example 2 are divided into 8 frames to respectively transmit the indication information of the 119 time slot blocks in a time slot block cycle, and the 238 time slot blocks are divided into two groups of 119 time slot blocks in combination with the OMFI field.
图8是本申请实施例提供的另一种OTN帧结构的示意图。如图8所示,每个时隙块周期包括的时隙块个数y=238,每个时隙块周期中的238个时隙块从1至238顺序编号(如,图8中所示的1至238),每个时隙块为16字节(如,图8中所示的16B)。指示信息的比特数为3(如,图8中所示的OPU开销的第1~3行的纵向3个比特)。OMFI用于指示MFAS的6~8比特分8帧分别传递的指示信息为第几组119个时隙块的指示信息。FIG8 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application. As shown in FIG8 , the number of time slot blocks included in each time slot block period is y=238, and the 238 time slot blocks in each time slot block period are sequentially numbered from 1 to 238 (e.g., 1 to 238 shown in FIG8 ), and each time slot block is 16 bytes (e.g., 16B shown in FIG8 ). The number of bits of the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG8 ). OMFI is used to indicate which group of 119 time slot blocks the indication information transmitted by the 6 to 8 bits of MFAS in 8 frames is.
如图8所示,当OMFI=0时,则MFAS的6~8比特分8帧传递的为编号为1~119的119个时隙块的指示信息,当OMFI=1时,则MFAS的6~8比特分8帧传递的为编号为120~230的119个时隙块的指示信息。As shown in FIG8 , when OMFI=0, the 6 to 8 bits of the MFAS are divided into 8 frames to transmit the indication information of the 119 time slot blocks numbered 1 to 119; when OMFI=1, the 6 to 8 bits of the MFAS are divided into 8 frames to transmit the indication information of the 119 time slot blocks numbered 120 to 230.
示例性地,图8中所示的3个JC1用于指示净荷区第4行的第一个编号为1的时隙块承载的对象为数据或填充。示例性地,图8中所示的3个JC238用于指示净荷区第4行的第一个编号为238的时隙块承载的对象为数据或填充。Exemplarily, the three JC1s shown in FIG8 are used to indicate that the object carried by the first time slot block numbered 1 in the fourth row of the payload area is data or padding. Exemplarily, the three JC238s shown in FIG8 are used to indicate that the object carried by the first time slot block numbered 238 in the fourth row of the payload area is data or padding.
示例三:在OPU净荷区定义16字节的时隙块,且定义16字节的时隙块速率约为10.4M,则OPU(2.5Gbit/s)被划分成238个时隙块,即每个时隙块周期中包括238个时隙块。Example 3: A 16-byte time slot block is defined in the OPU payload area, and the rate of the 16-byte time slot block is defined to be approximately 10.4M, then the OPU (2.5Gbit/s) is divided into 238 time slot blocks, that is, each time slot block period includes 238 time slot blocks.
示例三中,由前文图4所示的OTN帧结构可知,OTN帧开销中包括的MFAS可以占用2个字节(如,图4所示的第6和第7字节)。具体地,该示例二中MFAS的5~8比特分16帧分别传递一个时隙块周期中的238个时隙块的指示信息。In Example 3, it can be seen from the OTN frame structure shown in Figure 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (such as the 6th and 7th bytes shown in Figure 4). Specifically, the 5 to 8 bits of the MFAS in Example 2 are divided into 16 frames to respectively transmit the indication information of the 238 time slot blocks in a time slot block cycle.
图9是本申请实施例提供的又一种OTN帧结构的示意图。从图9中可以看出,每个时隙块周期包括的时隙块个数y=238,每个时隙块周期中的238个时隙块从1至238顺序编号(如,图9中所示的1至238),每个时隙块为16字节(如,图9中所示的16B)。指示信息包括的比特数为3(如,图9中所示的OPU开销的第1~3行的纵向3个比特)。FIG9 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application. As can be seen from FIG9, the number of time slot blocks included in each time slot block period is y=238, and the 238 time slot blocks in each time slot block period are numbered sequentially from 1 to 238 (e.g., 1 to 238 shown in FIG9), and each time slot block is 16 bytes (e.g., 16B shown in FIG9). The number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG9).
应理解,上述的示例一至三仅是举例说明方式一下OTN帧结构可能的形式,对本申请的保护范围不构成任何的限定,方式一所示的一组连续的指示信息分别指示一组时隙块承载的对象为数据或填充还可以有其他的方式,例如,一组时隙块为一组连续的指示信息之后的多个行中时隙块(如,时隙块大小为8字节,OPU被划分成476个时隙块,一组连续的指示信息为JC232至JC248,所指示的一组时隙块:时隙块#232至时隙块#248在不同的行中),这里不再一一举例说明。It should be understood that the above examples 1 to 3 are only examples of possible forms of the OTN frame structure in the first mode, and do not constitute any limitation on the protection scope of the present application. A group of continuous indication information shown in the first mode respectively indicates that the objects carried by a group of time slot blocks are data or filler. There may be other ways. For example, a group of time slot blocks is a group of time slot blocks in multiple rows after a group of continuous indication information (for example, the time slot block size is 8 bytes, the OPU is divided into 476 time slot blocks, a group of continuous indication information is JC232 to JC248, and the indicated group of time slot blocks: time slot block #232 to time slot block #248 are in different rows). Examples are not given one by one here.
方式二:通过指示时隙块组(多个时隙块)承载的数据量的变化量,指示该时隙块组中的时隙块承载的对象为数据或者填充。Method 2: By indicating the change in the amount of data carried by a time slot block group (a plurality of time slot blocks), it is indicated that the objects carried by the time slot blocks in the time slot block group are data or padding.
方式二中该OTN帧的第一周期的开销区包括多个连续的指示信息,OTN帧的第二周期的净荷区包括多个时隙块组,且多个连续的指示信息分别用于指示多个时隙块组中每一个时隙块组承载的数据量的变化量,第二周期为所述第一周期的下一个周期,多个时隙块组中每个时隙块组包括多个时隙块,多个时隙块在多个时隙块周期中的位置相同。可以理解为当前周期中的多个指示信息分别用于指
示下一个周期中的多个时隙块组承载的数据量的变化量。In the second mode, the overhead area of the first cycle of the OTN frame includes multiple continuous indication information, the payload area of the second cycle of the OTN frame includes multiple time slot block groups, and the multiple continuous indication information is used to indicate the change in the amount of data carried by each time slot block group in the multiple time slot block groups. The second cycle is the next cycle of the first cycle, each time slot block group in the multiple time slot block groups includes multiple time slot blocks, and the positions of the multiple time slot blocks in the multiple time slot block cycles are the same. It can be understood that the multiple indication information in the current cycle is used to indicate Indicates the change in the amount of data carried by multiple time slot block groups in the next cycle.
方式二下在OTN帧的当前周期的开销区中定义多个指示信息,通过该多个指示信息分别指示OTN帧的下一个周期的净荷区中的多个时隙块组承载的数据量的变化量。指示某个时隙块组的数据量的变化量是为了确定该时隙块中包括的多个时隙块承载的对象为数据还是填充,从而便于接收端设备对接收到的OTN帧进行解析,也就是说该传输数据的方法可以完成OTN帧中划分的多个时隙块的速率适配控制。例如,该实施例中OTN帧的第二周期的净荷区包括多个时隙块,该多个时隙块中的时隙块为Y1个时隙块周期中的时隙块,该Y1个时隙块周期中的每个时隙块周期包括y1个时隙块,其中,Y1为大于或者等于1的整数,y1为大于1的整数,每个时隙块周期中的y1个时隙块从1至y1顺序编号。每个时隙块周期中的编号为i1的时隙块组成一个时隙块组,i1为大于或者等于1,且小于或者等于y1的整数。如,时隙组#i1为Y1个时隙块周期中的时隙块#i1组成的时隙组。该OTN帧的第一周期的开销区包括y1个指示信息。Y1个指示信息中的每个指示信息用于指示相对应的时隙块组承载的数据量的变化量。如,所述y1个指示信息中的第i1个指示信息用于指示时隙块组#i承载的数据量的变化量,可以理解为第i个指示信息与时隙块组#i1相对应。In the second mode, multiple indication information is defined in the overhead area of the current cycle of the OTN frame, and the multiple indication information is used to indicate the change in the amount of data carried by multiple time slot block groups in the payload area of the next cycle of the OTN frame. The change in the amount of data carried by a certain time slot block group is indicated to determine whether the objects carried by the multiple time slot blocks included in the time slot block are data or padding, so as to facilitate the receiving end device to parse the received OTN frame, that is, the method for transmitting data can complete the rate adaptation control of the multiple time slot blocks divided in the OTN frame. For example, in this embodiment, the payload area of the second cycle of the OTN frame includes multiple time slot blocks, and the time slot blocks in the multiple time slot blocks are time slot blocks in Y1 time slot block periods, and each time slot block period in the Y1 time slot block periods includes y1 time slot blocks, wherein Y1 is an integer greater than or equal to 1, y1 is an integer greater than 1, and the y1 time slot blocks in each time slot block period are numbered sequentially from 1 to y1. The time slot blocks numbered i1 in each time slot block period form a time slot block group, where i1 is an integer greater than or equal to 1 and less than or equal to y1. For example, time slot group #i1 is a time slot group composed of time slot blocks #i1 in Y1 time slot block periods. The overhead area of the first period of the OTN frame includes y1 indication information. Each indication information in the Y1 indication information is used to indicate the change in the amount of data carried by the corresponding time slot block group. For example, the i1th indication information in the y1 indication information is used to indicate the change in the amount of data carried by the time slot block group #i, which can be understood as the i-th indication information corresponding to the time slot block group #i1.
需要说明的是,该实施例中指示信息指示的为对应的时隙块组承载的数据量的变化量,该时隙块组承载的数据量的基础量可以为预配置的,也可以为发送端设备和接收端设备协商确定的,该实施例中不限定。例如,某个时隙块组中包括64个时隙块,该时隙块组承载的数据量的基础量可以为62,表明该64个时隙块中的62个时隙块承载的对象为数据。如果该时隙块组对应的指示信息指示该时隙块组承载的数据量的变化量为1,则证明该64个时隙块中的实际有63个时隙块承载的对象为数据。It should be noted that the indication information in this embodiment indicates the change in the amount of data carried by the corresponding time slot block group. The basic amount of data carried by the time slot block group may be pre-configured or determined by negotiation between the transmitting device and the receiving device, which is not limited in this embodiment. For example, a time slot block group includes 64 time slot blocks, and the basic amount of data carried by the time slot block group may be 62, indicating that 62 of the 64 time slot blocks carry data. If the indication information corresponding to the time slot block group indicates that the change in the amount of data carried by the time slot block group is 1, it proves that 63 of the 64 time slot blocks actually carry data.
另外,还需要说明的是,该实施例中涉及的指示时隙块组承载的数据量的变化量,可以理解为指示该时隙块组中包括的时隙块承载的对象为数据或填充,也可以理解为对时隙块进行速率适配指示,原因在于,接收端设备可以根据指示信息确定相对应的时隙块承载的对象为数据或填充,确定该时隙块是否为速率适配块。例如,在已知某个时隙块组承载的数据量的变化量的前提下,可以通过算法(如,∑-δ)得到该时隙块组中承载的数据量和排布,其中,排布指的是该时隙块组承载的数据量具体在该时隙组中的哪些时隙块上承载。该实施例中对于确定排布的具体方式不做限定。In addition, it should be noted that the change in the amount of data carried by the time slot block group involved in this embodiment can be understood as indicating that the object carried by the time slot blocks included in the time slot block group is data or padding, and can also be understood as indicating rate adaptation of the time slot block. The reason is that the receiving end device can determine whether the object carried by the corresponding time slot block is data or padding based on the indication information, and determine whether the time slot block is a rate adaptation block. For example, on the premise that the change in the amount of data carried by a certain time slot block group is known, the amount of data carried and the arrangement in the time slot block group can be obtained by an algorithm (such as ∑-δ), wherein the arrangement refers to which time slot blocks in the time slot group the amount of data carried by the time slot block group is carried on. The specific method for determining the arrangement is not limited in this embodiment.
该实施例中时隙块周期的数量Y1,以及每个时隙块周期中包括的时隙块数量y1可以参考方式一中对于时隙块周期的数量Y以及时隙块数量y的说明,这里不再重复说明。In this embodiment, the number of time slot block periods Y1 and the number of time slot blocks y1 included in each time slot block period can refer to the description of the number of time slot block periods Y and the number of time slot blocks y in method 1, and will not be repeated here.
上述的多个时隙块组可以为Y1个时隙块周期中每个时隙块周期中相同位置的时隙块组成的多个时隙块组,多个连续的指示信息为y1个指示信息中与该多个时隙块组相对应的指示信息。例如,多个时隙块组为周期#1中包括64个时隙块周期中编号为1的64个时隙块组成的时隙块组、编号为2的64个时隙块组成的时隙块组、编号为3的64个时隙块组成的时隙块组、…、以及编号为16的64个时隙块组成的时隙块组。多个连续的指示信息为该周期#1之前的周期中编号为1至16的连续的16个指示信息,该多个连续的指示信息为OTN帧中第j 1至第j1+M2-1行不同列的M2个比特,M2为正整数。The above-mentioned multiple time slot block groups may be multiple time slot block groups composed of time slot blocks at the same position in each time slot block period in Y1 time slot block periods, and the multiple continuous indication information is the indication information corresponding to the multiple time slot block groups in the y1 indication information. For example, the multiple time slot block groups are a time slot block group composed of 64 time slot blocks numbered 1 in 64 time slot block periods in period #1, a time slot block group composed of 64 time slot blocks numbered 2, a time slot block group composed of 64 time slot blocks numbered 3, ..., and a time slot block group composed of 64 time slot blocks numbered 16. The multiple continuous indication information is 16 continuous indication information numbered 1 to 16 in the period before the period #1, and the multiple continuous indication information is M2 bits in different columns of the j 1th to j1+M2-1th rows in the OTN frame, where M2 is a positive integer.
作为一种可能的实现方式,上述多个指示信息中每个指示信息所占的比特数量是多个。例如,多个连续的指示信息中第三指示信息包括多个比特,多个比特为OTN帧的开销区的至少一行的同一列的多个比特,第三指示信息用于指示多个时隙块组中第一时隙块组承载的数据量的变化量,其中,第一时隙块组在多个时隙块组中的位置与第三指示信息在多个连续的指示信息的位置相同。例如,第一时隙块组为多个时隙块组中的第i个时隙块组,则第三指示信息为多个连续的指示信息中的第i个指示信息。As a possible implementation, the number of bits occupied by each indication information in the above-mentioned multiple indication information is multiple. For example, the third indication information in multiple consecutive indication information includes multiple bits, and the multiple bits are multiple bits of the same column of at least one row of the overhead area of the OTN frame, and the third indication information is used to indicate the change in the amount of data carried by the first time slot block group in multiple time slot block groups, wherein the position of the first time slot block group in the multiple time slot block groups is the same as the position of the third indication information in the multiple consecutive indication information. For example, the first time slot block group is the i-th time slot block group in the multiple time slot block groups, and the third indication information is the i-th indication information in the multiple consecutive indication information.
作为另一种可能的实现方式,上述多个指示信息中每个指示信息所占的比特位为一位。As another possible implementation manner, each of the plurality of indication information occupies one bit.
该实施例中对于指示信息所占的比特位数不做限定,可以为至少一位。当指示信息所占的比特位数至少为3位时,可以通过多数判决的方式提高方案的可靠性;当指示信息所占的比特位数少于3位时,可以通过增加验证码的方式提高方案的可靠性。In this embodiment, there is no limitation on the number of bits occupied by the indication information, which may be at least one. When the number of bits occupied by the indication information is at least 3, the reliability of the scheme can be improved by majority judgment; when the number of bits occupied by the indication information is less than 3, the reliability of the scheme can be improved by adding a verification code.
示例性地,第三指示信息占多个比特位,第三指示信息用于指示第一时隙块组承载的数据量的变化量,包括:多个比特中超过一半的比特的值为0指示第一时隙块组承载的数据量的变化量为0,否则指示第一时隙块组承载的数据量的变化量为1;或者,多个比特中超过一半的比特的值为1指示第一时隙块组承载的数据量的变化量为1,否则指示第一时隙块组承载的数据量的变化量为0。例如,
第三指示信息占3个比特位,多于2个比特的值为1,则第一时隙块组承载的数据量的变化量为1,否则第一时隙块组承载的数据量的变化量为0。又例如,第三指示信息占1个比特位,可以通过增加验证码的方式,验证该第三指示信息是否可信。当通过验证该验证码确定第三指示信息通过验证,且该1个比特位的值为1,则第一时隙块组承载的数据量的变化量为1,否则第一时隙块组承载的数据量的变化量为0。Exemplarily, the third indication information occupies a plurality of bits, and the third indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the value of more than half of the bits in the plurality of bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 1; or, the value of more than half of the bits in the plurality of bits is 1, indicating that the change in the amount of data carried by the first time slot block group is 1, otherwise, indicating that the change in the amount of data carried by the first time slot block group is 0. For example, The third indication information occupies 3 bits, and if more than 2 bits have a value of 1, the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0. For another example, the third indication information occupies 1 bit, and the third indication information can be verified to be credible by adding a verification code. When the third indication information is determined to have passed the verification by verifying the verification code, and the value of the 1 bit is 1, the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0.
示例性地,在某个业务数据占用的时隙块包括至少两个时隙块组的情况下,可以通过多个时隙块组对应的指示信息中的至少一个指示至少两个时隙块组的数据量的变化量,进一步地降低了指示开销。例如,业务数据占用的时隙块包括时隙块组#1和时隙块组#2,且该隙块组#1和时隙块组#2分别和指示信息#1和指示信息#2相对应,则可以通过指示信息#1和指示信息#2中至少一个指示隙块组#1和时隙块组#2承载的数据量的变化量。如,隙块组#1包括64个时隙块#1,时隙块组#2包括64个时隙块#2,则可以通过指示信息#1和指示信息#2中至少一个确定128个时隙块承载的对象为数据或填充。Exemplarily, in the case where the time slot blocks occupied by a certain service data include at least two time slot block groups, at least one of the indication information corresponding to the multiple time slot block groups can be used to indicate the change in the amount of data of the at least two time slot block groups, thereby further reducing the indication overhead. For example, the time slot blocks occupied by the service data include time slot block group #1 and time slot block group #2, and the time slot block group #1 and time slot block group #2 correspond to indication information #1 and indication information #2, respectively, then the change in the amount of data carried by the time slot block group #1 and the time slot block group #2 can be indicated by at least one of the indication information #1 and the indication information #2. For example, if the time slot block group #1 includes 64 time slot blocks #1 and the time slot block group #2 includes 64 time slot blocks #2, then at least one of the indication information #1 and the indication information #2 can be used to determine whether the objects carried by the 128 time slot blocks are data or padding.
示例性地,上述的多个连续的指示信息为OTN帧的开销区中的复帧对齐信号MFAS指示的第一帧中包括的多个连续的指示信息,其中,第一帧为MFAS指示的至少一个帧中的一个,至少一个帧中的每个帧包括至少一个指示信息。Exemplarily, the above-mentioned multiple continuous indication information is multiple continuous indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame, wherein the first frame is one of at least one frame indicated by the MFAS, and each frame in the at least one frame includes at least one indication information.
为了便于理解下面结合示例四说明上述的方式二所示的OTN帧(如,第一周期的开销区包括多个连续的指示信息,第二周期的净荷区包括多个时隙块组)的帧结构。To facilitate understanding, the frame structure of the OTN frame shown in the above-mentioned method 2 (eg, the overhead area of the first cycle includes multiple continuous indication information, and the payload area of the second cycle includes multiple time slot block groups) is explained below in conjunction with Example 4.
示例四:在OPU净荷区定义16字节的时隙块,且定义16字节的时隙块速率约为10.4M,则OPU(1.25Gbit/s)被划分成119个时隙块,即每个时隙块周期中包括119个时隙块。Example 4: A 16-byte time slot block is defined in the OPU payload area, and the 16-byte time slot block rate is defined to be approximately 10.4M, then the OPU (1.25Gbit/s) is divided into 119 time slot blocks, that is, each time slot block period includes 119 time slot blocks.
示例四中,由前文图4所示的OTN帧结构可知,OTN帧开销中包括的MFAS可以占用2个字节(如,图4所示的第6和第7字节)。具体地,该示例四中MFAS的6~8比特分8帧分别传递一个时隙块周期中的119个时隙块的指示信息,另外的时隙块周期中的119个时隙块的指示信息可以通过MFAS的6~8比特分8帧再次传递。In Example 4, it can be seen from the OTN frame structure shown in FIG. 4 above that the MFAS included in the OTN frame overhead can occupy 2 bytes (e.g., the 6th and 7th bytes shown in FIG. 4). Specifically, the 6 to 8 bits of the MFAS in Example 4 are divided into 8 frames to respectively transmit the indication information of 119 time slot blocks in a time slot block cycle, and the indication information of 119 time slot blocks in another time slot block cycle can be transmitted again through the 6 to 8 bits of the MFAS divided into 8 frames.
图10是本申请实施例提供的又一种OTN帧结构的示意图。从图10中可以看出,每个时隙块周期包括的时隙块个数y1=119,每个时隙块周期中的119个时隙块从1至119顺序编号(如,图10中所示的1至119),每个时隙块为16字节(如,图10中所示的16B)。指示信息包括的比特数为3(如,图10中所示的OPU开销的第1~3行的纵向3个比特),其中,指示信息可以称为JC。FIG10 is a schematic diagram of another OTN frame structure provided by an embodiment of the present application. As can be seen from FIG10, the number of time slot blocks included in each time slot block period is y1=119, and the 119 time slot blocks in each time slot block period are numbered sequentially from 1 to 119 (e.g., 1 to 119 shown in FIG10), and each time slot block is 16 bytes (e.g., 16B shown in FIG10). The number of bits included in the indication information is 3 (e.g., the vertical 3 bits of the 1st to 3rd rows of the OPU overhead shown in FIG10), where the indication information can be called JC.
示例性地,图10中所示的周期#1中的3个JC1用于指示周期#2中的净荷区64个编号为1的时隙块组成的时隙块组#1承载的数据量的变化量。Exemplarily, the three JC1s in cycle #1 shown in FIG. 10 are used to indicate the change in the amount of data carried by time slot block group #1 consisting of 64 time slot blocks numbered 1 in the payload area in cycle #2.
示例性地,图10中所示的周期#1中的3个JC119用于指示周期#2中的净荷区64个编号为119的时隙块组成的时隙组#119承载的数据量的变化量。对于传输速率为其他的OPU帧(如,2.5Gbit/s)时隙块组的划分以及时隙块组中包括的时隙块的描述,可以参考图10中的描述,不再赘述。Exemplarily, the three JC119s in cycle #1 shown in FIG10 are used to indicate the change in the amount of data carried by time slot group #119 consisting of 64 time slot blocks numbered 119 in the payload area of cycle #2. For the division of time slot block groups with other OPU frames (e.g., 2.5 Gbit/s) for transmission rates and the description of the time slot blocks included in the time slot block groups, reference may be made to the description in FIG10 and no further details will be given.
由方式二中所述,在某个业务数据占用至少两个时隙块组的情况下,至少两个时隙块组分别对应的指示信息中的至少一个用于指示所述至少两个时隙块组的数据量的变化量,如图11所示,一个业务占用时隙块组#1和#2,时隙块组#1和#2包括的128个时隙块(如图11中所示的64个时隙块1和64个时隙块2)可以理解为一个时隙块组,该时隙块组承载的数据量的变化量可以由JC1和/或JC2指示。As described in the second method, when a certain service data occupies at least two time slot block groups, at least one of the indication information corresponding to the at least two time slot block groups is used to indicate the change in the data volume of the at least two time slot block groups. As shown in FIG11 , a service occupies time slot block groups #1 and #2. The 128 time slot blocks included in time slot block groups #1 and #2 (such as 64 time slot blocks 1 and 64 time slot blocks 2 as shown in FIG11 ) can be understood as a time slot block group. The change in the data volume carried by the time slot block group can be indicated by JC1 and/or JC2.
进一步地,该实施例中发送端设备将业务数据映射到OTN帧之后,可以向接收端设备发送该OTN帧,图5所示的方法流程还包括:Furthermore, in this embodiment, after the transmitting end device maps the service data into the OTN frame, the OTN frame may be sent to the receiving end device. The method flow shown in FIG5 further includes:
S620,发送端设备向接收端设备发送OTN帧。S620: The transmitting device sends an OTN frame to the receiving device.
具体地,该实施例中对于OTN帧的传输方式不做限定,可以参考目前OTN帧的传输过程,这里不再赘述,例如,可以是图3所示的映射流程。与图3所示的映射过程不同点在于OTN帧中的开销区比特信息的定义,以及OTN帧中的净荷区的时隙块的定义。Specifically, the transmission method of the OTN frame is not limited in this embodiment, and the current transmission process of the OTN frame can be referred to, which will not be described here. For example, it can be the mapping process shown in Figure 3. The difference from the mapping process shown in Figure 3 lies in the definition of the overhead area bit information in the OTN frame and the definition of the time slot block in the payload area of the OTN frame.
对应上述的方式一,该实施例中接收端设备可以通过多数判决确定指示信息所指示的时隙块承载的对象为数据或填充。例如,第i个指示信息用于指示第一时隙块承载的对象为数据或填充,包括:M个比特中的M1个比特取值为0指示第一时隙块承载的对象为数据,否则第一时隙块承载的对象为
填充;或者,M个比特中的M1个比特取值为1指示所述第一时隙块承载的对象为数据,否则第一时隙块承载的对象为填充,其中,M1等于M,或者,M1大于或者等于表示向上取整。Corresponding to the above-mentioned method 1, in this embodiment, the receiving end device can determine through majority decision whether the object carried by the time slot block indicated by the indication information is data or padding. For example, the i-th indication information is used to indicate that the object carried by the first time slot block is data or padding, including: the M1 bit in the M bits is 0 to indicate that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is Filling; or, the M1 bit in the M bits has a value of 1 to indicate that the object carried by the first time slot block is data, otherwise the object carried by the first time slot block is filling, where M1 is equal to M, or M1 is greater than or equal to Indicates rounding up.
对应上述的方式二,该实施例中接收端设备可以通过多数判决确定指示信息所指示的时隙块组承载的数据量的变化量。例如,第i1个指示信息用于指示第一时隙块组承载的数据量的变化量,包括:M2个比特中的M3个比特取值为0指示第一时隙块组承载的数据量的变化量为0,否则第一时隙块组承载的数据量的变化量为1;或者,Corresponding to the above-mentioned method 2, in this embodiment, the receiving end device can determine the change in the amount of data carried by the time slot block group indicated by the indication information by majority decision. For example, the i1th indication information is used to indicate the change in the amount of data carried by the first time slot block group, including: the M3 bit in the M2 bits is 0, indicating that the change in the amount of data carried by the first time slot block group is 0, otherwise the change in the amount of data carried by the first time slot block group is 1; or,
M2个比特中的M3个比特取值为1指示第一时隙块组承载的数据量的变化量为1,否则第一时隙块组承载的数据量的变化量为0,其中,M3等于M2,或者,M3大于或者等于表示向上取整。The M3 bit in the M2 bits is set to 1 to indicate that the change in the amount of data carried by the first time slot block group is 1, otherwise the change in the amount of data carried by the first time slot block group is 0, wherein M3 is equal to M2, or M3 is greater than or equal to Indicates rounding up.
应理解,本申请实施例中的图5至图11所示的具体的例子只是为了帮助本领域技术人员更好地理解本申请实施例,而非限制本申请实施例的范围。还应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the specific examples shown in Figures 5 to 11 in the embodiments of the present application are only to help those skilled in the art better understand the embodiments of the present application, and do not limit the scope of the embodiments of the present application. It should also be understood that the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
还应理解,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。此外,在上述一些实施例中,主要以现有的网络架构中的设备为例进行了示例性说明(如OTN设备),应理解,对于设备的具体形式本申请实施例不作限定。例如,在未来可以实现同样功能的设备都适用于本申请实施例。It should also be understood that in the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. In addition, in some of the above embodiments, the devices in the existing network architecture are mainly used as examples for exemplary description (such as OTN devices). It should be understood that the embodiments of the present application do not limit the specific form of the devices. For example, devices that can achieve the same function in the future are applicable to the embodiments of the present application.
可以理解的是,上述各个方法实施例中,由设备(如接收端设备和发送端设备)实现的方法和操作,也可以由可用于设备的部件(例如芯片或者电路)实现。It can be understood that in the above-mentioned various method embodiments, the methods and operations implemented by devices (such as receiving devices and transmitting devices) can also be implemented by components that can be used in devices (such as chips or circuits).
以上结合图5-11详细说明了本申请实施例提供的传输数据的方法。上述方法主要从接收端设备和发送端设备之间交互的角度进行了介绍。可以理解的是,接收端设备和发送端设备,为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。The above is a detailed description of the method for transmitting data provided by the embodiment of the present application in conjunction with Figures 5-11. The above method is mainly introduced from the perspective of interaction between the receiving device and the sending device. It can be understood that the receiving device and the sending device, in order to implement the above functions, include hardware structures and/or software modules corresponding to the execution of each function.
本领域技术人员应该可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
以下,结合图12详细说明本申请实施例提供的通信的装置。应理解,装置实施例的描述与方法实施例的描述相互对应,因此,未详细描述的内容可以参见上文方法实施例,为了简洁,部分内容不再赘述。The communication device provided in the embodiment of the present application is described in detail below in conjunction with Figure 12. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the content not described in detail can refer to the above method embodiment, and for the sake of brevity, some content will not be repeated.
本申请实施例可以根据上述方法示例对发送端设备或者接收端设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。下面以采用对应各个功能划分各个功能模块为例进行说明。The embodiment of the present application can divide the functional modules of the transmitting end device or the receiving end device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
图12为一种可能的网络设备的结构示意图。如图12所示,网络设备1300包括处理器1301、光收发器1302和存储器1303。其中,存储器1303是可选的。网络设备1300既可以应用于发送侧设备(如,网络设备1300可以是上述的发送端设备),也应用于接收侧设备(如,网络设备1300可以是上述的接收端设备)。FIG12 is a schematic diagram of the structure of a possible network device. As shown in FIG12, the network device 1300 includes a processor 1301, an optical transceiver 1302, and a memory 1303. Among them, the memory 1303 is optional. The network device 1300 can be applied to both a sending side device (e.g., the network device 1300 can be the above-mentioned sending end device) and a receiving side device (e.g., the network device 1300 can be the above-mentioned receiving end device).
在应用于发送侧设备时,处理器1301和光收发器1302用于实现图5所示中所示的发送端设备所执行的方法。在实现过程中,处理流程的各步骤可以通过处理器1301中的硬件的集成逻辑电路或软件形式的指令完成上述附图的发送设备所执行的方法。光收发器1302用于接收处理器发送的OTN帧,以发送给对端设备(亦称为接收端设备)。When applied to the sending side device, the processor 1301 and the optical transceiver 1302 are used to implement the method performed by the sending end device shown in FIG5. In the implementation process, each step of the processing flow can be completed by the hardware integrated logic circuit or software instructions in the processor 1301 to complete the method performed by the sending device in the above figure. The optical transceiver 1302 is used to receive the OTN frame sent by the processor to send it to the opposite end device (also called the receiving end device).
在应用于接收侧设备时,处理器1301和光收发器1302用于实现图5所示的接收端设备所执行的方法。在实现过程中,处理流程的各步骤可以通过处理器1301中的硬件的集成逻辑电路或者软件形式的指令完成前述附图中所述的接收侧设备所执行的方法。光收发器1302用于接收对端设备(亦称
为发送端设备)发送的OTN帧,以发送给处理器1301使其进行后续的处理。When applied to a receiving device, the processor 1301 and the optical transceiver 1302 are used to implement the method performed by the receiving device shown in FIG. 5. In the implementation process, each step of the processing flow can be completed by the hardware integrated logic circuit in the processor 1301 or the instructions in the form of software to complete the method performed by the receiving device described in the above figure. The optical transceiver 1302 is used to receive the opposite end device (also called The OTN frame sent by the transmitting end device is sent to the processor 1301 for subsequent processing.
存储器1303用于存储指令,以使得处理1301可以用于执行如上述图中提及的步骤。和/或,存储1303用于存储其他指令,以配置处理器1301的参数以实现对应的功能。The memory 1303 is used to store instructions so that the processor 1301 can be used to perform the steps mentioned in the above figure. And/or, the memory 1303 is used to store other instructions to configure the parameters of the processor 1301 to implement the corresponding functions.
需要说明的是,处理器1301和存储器1303在图2所述的网络设备硬件结构图中,可能位于支路板中;也可能位于支路和线路合一的单板中。或者,处理器1301和存储器1303都包括多个,分别位于支路板和线路板,两个板配合完成前述的方法步骤。It should be noted that the processor 1301 and the memory 1303 may be located in a branch board in the network device hardware structure diagram shown in FIG2 ; or may be located in a single board that integrates the branch and the line. Alternatively, the processor 1301 and the memory 1303 both include multiple ones, which are located in the branch board and the line board respectively, and the two boards cooperate to complete the aforementioned method steps.
需要说明的是,图12所述的装置也可以用于执行前述提及的附图所示的实施例变形所涉及的方法步骤,在此不再赘述。It should be noted that the device described in FIG. 12 can also be used to execute the method steps involved in the embodiment variations shown in the aforementioned figures, which will not be described in detail here.
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质。该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现上述任意一个或多个实施例提供的方法。所述计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium. The storage medium stores a software program, and the software program can implement the method provided by any one or more of the above embodiments when read and executed by one or more processors. The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.
基于以上实施例,本申请实施例还提供了一种芯片。该芯片包括处理器,用于实现上述任意一个或多个实施例所涉及的功能,例如获取或处理上述方法中所涉及的OTN帧。可选地,所述芯片还包括存储器,所述存储器,用于处理器所执行必要的程序指令和数据。该芯片,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, the embodiments of the present application further provide a chip. The chip includes a processor for implementing the functions involved in any one or more of the above embodiments, such as acquiring or processing the OTN frames involved in the above methods. Optionally, the chip also includes a memory, which is used for the processor to execute necessary program instructions and data. The chip can be composed of a chip, or it can include a chip and other discrete devices.
应理解,本申请实施例中提及的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
还应理解,本申请实施例中提及的存储器可以是易失性存储器和/或非易失性存储器。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM)。例如,RAM可以用作外部高速缓存。作为示例而非限定,RAM可以包括如下多种形式:静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或其他可编程逻辑器件、分立门或晶体管逻辑器件、分立硬件组件时,存储器(存储模块)可以集成在处理器中。It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory and/or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM). For example, a RAM may be used as an external cache. As an example and not limitation, RAM may include the following forms: static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus RAM (DR RAM). It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated in the processor.
本领域普通技术人员应理解,结合本文中所公开的实施例描述的各示例的单元及步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。It should be understood by those skilled in the art that the units and steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of protection of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。此外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be 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 distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement the solution provided by the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
In addition, each functional unit in each embodiment of the present application may be integrated into one unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。例如,所述计算机可以是个人计算机,服务器,或者网络设备等。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD)等。例如,前述的可用介质可以包括但不限于:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). For example, the aforementioned available medium may include, but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (16)
- 一种传输数据的方法,其特征在于,包括:A method for transmitting data, comprising:接收业务数据;Receive business data;将所述业务数据映射到光传送网OTN帧,所述OTN帧的开销区包括一组指示信息,所述OTN帧的净荷区包括一组时隙块,所述一组指示信息分别用于指示所述一组时隙块承载的对象为数据或填充,所述一组指示信息位于所述OTN帧的开销区中的至少一行,所述一组时隙块位于所述OTN帧的净荷区中的至少一行,所述一组指示信息所位于的至少一行位于所述一组时隙块所位于的至少一行之前;Mapping the service data to an optical transport network (OTN) frame, wherein the overhead area of the OTN frame includes a set of indication information, the payload area of the OTN frame includes a set of time slot blocks, the set of indication information is respectively used to indicate that the objects carried by the set of time slot blocks are data or padding, the set of indication information is located in at least one row in the overhead area of the OTN frame, the set of time slot blocks is located in at least one row in the payload area of the OTN frame, and the at least one row where the set of indication information is located is located before the at least one row where the set of time slot blocks is located;发送所述OTN帧。The OTN frame is sent.
- 根据权利要求1所述的方法,其特征在于,所述将所述业务数据映射到所述OTN帧,包括:The method according to claim 1, characterized in that mapping the service data to the OTN frame comprises:将所述业务数据映射到所述OTN帧的净荷区的所述一组时隙块中的多个时隙块,Mapping the service data to a plurality of time slot blocks in the group of time slot blocks in the payload area of the OTN frame,其中,所述多个时隙块中的第一时隙块对应的指示信息用于指示所述第一时隙块承载的对象为数据或填充,所述多个时隙块中除所述第一时隙块之外的时隙块承载的对象为数据。Among them, the indication information corresponding to the first time slot block among the multiple time slot blocks is used to indicate that the object carried by the first time slot block is data or padding, and the objects carried by the time slot blocks other than the first time slot block among the multiple time slot blocks are data.
- 一种传输数据的方法,其特征在于,包括:A method for transmitting data, comprising:接收光传送网OTN帧,所述OTN帧用于承载业务数据,所述OTN帧的开销区包括一组指示信息,所述OTN帧的净荷区包括一组时隙块,所述一组指示信息分别用于指示所述一组时隙块承载的对象为数据或填充,所述一组指示信息位于所述OTN帧的开销区中的至少一行,所述一组时隙块位于所述OTN帧的净荷区中的至少一行,所述一组指示信息所位于的至少一行位于所述一组时隙块所位于的至少一行之前;Receive an optical transport network (OTN) frame, the OTN frame is used to carry service data, an overhead area of the OTN frame includes a group of indication information, a payload area of the OTN frame includes a group of time slot blocks, the group of indication information is used to indicate that an object carried by the group of time slot blocks is data or padding, the group of indication information is located in at least one row in the overhead area of the OTN frame, the group of time slot blocks is located in at least one row in the payload area of the OTN frame, and the at least one row where the group of indication information is located is located before the at least one row where the group of time slot blocks are located;根据所述一组指示信息确定所述一组时隙块承载的对象为数据或填充。Determine, according to the set of indication information, whether the objects carried by the set of time slot blocks are data or padding.
- 根据权利要求3所述的方法,其特征在于,在所述业务数据映射到所述一组时隙块中的多个时隙块的情况下,所述方法还包括:The method according to claim 3, characterized in that, when the service data is mapped to multiple time slot blocks in the set of time slot blocks, the method further comprises:确定所述多个时隙块中除第一时隙块之外的时隙块承载的对象为数据;Determining that objects carried by time slot blocks other than the first time slot block among the multiple time slot blocks are data;根据所述一组指示信息中与所述第一时隙块对应的指示信息确定所述第一时隙块承载的对象为数据或填充。Determine, according to the indication information corresponding to the first time slot block in the group of indication information, whether the object carried by the first time slot block is data or padding.
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述一组指示信息中第一指示信息包括多个比特,所述多个比特为所述OTN帧的开销区的至少一行的同一列的多个比特,所述第一指示信息用于指示所述一组时隙块中第二时隙块承载的对象为数据或填充,The method according to any one of claims 1 to 4, characterized in that the first indication information in the set of indication information comprises a plurality of bits, the plurality of bits being a plurality of bits in the same column of at least one row of the overhead area of the OTN frame, the first indication information being used to indicate that an object carried by the second time slot block in the set of time slot blocks is data or padding,其中,所述第二时隙块在所述一组时隙块中的位置与所述第一指示信息在所述一组指示信息中的位置相同。The position of the second time slot block in the group of time slot blocks is the same as the position of the first indication information in the group of indication information.
- 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, characterized in that the method further comprises:确定所述第一指示信息满足第一条件时,确定所述第一时隙块承载的对象为数据,其中,所述第一条件为所述第一指示信息包括的多个比特中超过一半的比特的值为0或1。When it is determined that the first indication information satisfies a first condition, it is determined that the object carried by the first time slot block is data, wherein the first condition is that the value of more than half of the multiple bits included in the first indication information is 0 or 1.
- 根据权利要求5或6所述的方法,其特征在于,所述多个比特的数量为3,所述一组指示信息所位于的至少一行为所述OTN帧的开销区的第1行至第3行。The method according to claim 5 or 6 is characterized in that the number of the multiple bits is 3, and the at least one row where the set of indication information is located is row 1 to row 3 of the overhead area of the OTN frame.
- 根据权利要求1至7中任一项所述的方法,其特征在于,所述一组指示信息为所述OTN帧的开销区中的复帧对齐信号MFAS指示的第一帧中包括的一组指示信息,The method according to any one of claims 1 to 7, characterized in that the set of indication information is a set of indication information included in the first frame indicated by the multiframe alignment signal MFAS in the overhead area of the OTN frame,其中,所述第一帧为所述MFAS指示的至少一个帧中的一个,所述至少一个帧中的每个帧包括至少一个指示信息。The first frame is one of at least one frame indicated by the MFAS, and each frame in the at least one frame includes at least one indication information.
- 根据权利要求1至8中任一项所述的方法,其特征在于,所述一组时隙块为第一时隙块周期包括的y个时隙块中与所述一组指示信息相对应的时隙块,所述第一时隙块周期为至少一个时隙块周期中的一个,所述至少一个时隙块周期中每个时隙块周期包括所述y个时隙块。The method according to any one of claims 1 to 8 is characterized in that the group of time slot blocks is a time slot block corresponding to the group of indication information among y time slot blocks included in a first time slot block period, the first time slot block period is one of at least one time slot block period, and each time slot block period in the at least one time slot block period includes the y time slot blocks.
- 根据权利要求9所述的方法,其特征在于,在所述第一时隙块周期包括的y个时隙块分为多个时隙块组的情况下,所述OTN帧的开销区还包括第二指示信息,所述第二指示信息用于指示所述一组时隙块属于所述多个时隙块组中的第一时隙块组。The method according to claim 9 is characterized in that, when the y time slot blocks included in the first time slot block period are divided into multiple time slot block groups, the overhead area of the OTN frame also includes second indication information, and the second indication information is used to indicate that the group of time slot blocks belongs to the first time slot block group among the multiple time slot block groups.
- 根据权利要求1至10中任一项所述的方法,其特征在于,每个所述时隙块的速率为10.4兆比 特每秒Mbit/s。The method according to any one of claims 1 to 10, characterized in that the rate of each of the time slot blocks is 10.4 Mbps Mbit/s per second.
- 一种传输数据的装置,其特征在于,包括:用于执行如权利要求1或2或5至11中任一项所述方法的模块,或用于执行如权利要求3或4或5至11中任一项所述方法的模块。A device for transmitting data, characterized in that it comprises: a module for executing the method as described in any one of claims 1 or 2 or 5 to 11, or a module for executing the method as described in any one of claims 3 or 4 or 5 to 11.
- 一种传输数据的装置,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于执行所述至少一个存储器中存储的计算机程序或指令,以使所述通信装置执行如权利要求1或2或5至11中任一项所述方法,或者执行如权利要求3或4或5至11中任一项所述方法。A device for transmitting data, characterized in that it includes at least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to execute a computer program or instruction stored in the at least one memory so that the communication device performs the method as claimed in any one of claims 1 or 2 or 5 to 11, or performs the method as claimed in any one of claims 3 or 4 or 5 to 11.
- 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口用于将光传送网OTN帧发送给包括所述芯片的通信装置之外的其他通信装置,所述处理器用于执行如权利要求1或2或5至11中任一项所述方法;或A chip, characterized in that the chip comprises a processor and a communication interface, the communication interface is used to send an optical transport network (OTN) frame to other communication devices other than the communication device including the chip, and the processor is used to execute the method as claimed in any one of claims 1 or 2 or 5 to 11; or所述通信接口用于接收OTN帧并传输至所述处理器,所述处理器用于执行如权利要求3或4或5至11中任一项所述方法。The communication interface is used to receive the OTN frame and transmit it to the processor, and the processor is used to execute the method as claimed in any one of claims 3 or 4 or 5 to 11.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当计算机指令在计算机上运行时,使得如权利要求1或2或5至11中任一项所述方法,或如权利要求3或4或5至11中任一项所述方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, which, when executed on a computer, implement the method as claimed in claim 1 or 2 or any one of claims 5 to 11, or the method as claimed in claim 3 or 4 or any one of claims 5 to 11.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得如权利要求1或2或5至11中任一项所述方法,或如权利要求3或4或5至11中任一项所述方法。 A computer program product, characterized in that the computer program product comprises a computer program code, which, when executed on a computer, implements the method as claimed in any one of claims 1 or 2 or 5 to 11, or the method as claimed in any one of claims 3 or 4 or 5 to 11.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211469121.1A CN118074854A (en) | 2022-11-22 | 2022-11-22 | Method and device for transmitting data |
CN202211469121.1 | 2022-11-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024109349A1 true WO2024109349A1 (en) | 2024-05-30 |
Family
ID=91094166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/122564 WO2024109349A1 (en) | 2022-11-22 | 2023-09-28 | Data transmission method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118074854A (en) |
WO (1) | WO2024109349A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110135304A1 (en) * | 2009-12-07 | 2011-06-09 | Fujitsu Limited | Transmission apparatus and signal mapping method |
CN112511921A (en) * | 2020-03-27 | 2021-03-16 | 中兴通讯股份有限公司 | Service processing method and device in optical transport network and electronic equipment |
CN113630206A (en) * | 2020-05-08 | 2021-11-09 | 中兴通讯股份有限公司 | Service processing method, device, network equipment and storage medium |
CN114915375A (en) * | 2022-04-27 | 2022-08-16 | 烽火通信科技股份有限公司 | Method and device for realizing service mapping |
-
2022
- 2022-11-22 CN CN202211469121.1A patent/CN118074854A/en active Pending
-
2023
- 2023-09-28 WO PCT/CN2023/122564 patent/WO2024109349A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110135304A1 (en) * | 2009-12-07 | 2011-06-09 | Fujitsu Limited | Transmission apparatus and signal mapping method |
CN112511921A (en) * | 2020-03-27 | 2021-03-16 | 中兴通讯股份有限公司 | Service processing method and device in optical transport network and electronic equipment |
CN113630206A (en) * | 2020-05-08 | 2021-11-09 | 中兴通讯股份有限公司 | Service processing method, device, network equipment and storage medium |
CN114915375A (en) * | 2022-04-27 | 2022-08-16 | 烽火通信科技股份有限公司 | Method and device for realizing service mapping |
Also Published As
Publication number | Publication date |
---|---|
CN118074854A (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11082199B2 (en) | Data transmission method in optical network and optical network device | |
US11700083B2 (en) | Method and apparatus for processing service data in optical transport network | |
US11967992B2 (en) | Data transmission method and apparatus in optical transport network | |
EP2388964A1 (en) | Method and device for transmitting and receiving service data | |
WO2020253628A1 (en) | Data processing method, optical transmission device and digital processing chip | |
WO2020051851A1 (en) | Data transmission method and apparatus in optical transport network | |
WO2024109349A1 (en) | Data transmission method and apparatus | |
WO2021218721A1 (en) | Service processing method and apparatus | |
WO2024109580A1 (en) | Data transmission method and apparatus | |
WO2010028572A1 (en) | Method and device for large capacity cross in optical channel data unit | |
WO2023232097A1 (en) | Service data processing method and apparatus | |
WO2024051586A1 (en) | Method for processing data frame in optical transport network, apparatus and system | |
WO2024188099A1 (en) | Data transmission method and apparatus | |
WO2023221966A1 (en) | Data transmission method and apparatus | |
WO2023231764A1 (en) | Service data processing method and device | |
WO2023134513A1 (en) | Overhead information transmission method, communication apparatus, and system | |
WO2024046465A1 (en) | Data transmission method and apparatus | |
US20240322934A1 (en) | Service data processing method and apparatus | |
WO2024002146A1 (en) | Time slot configuration method, apparatus, and system | |
WO2019061406A1 (en) | Service data transmission method and apparatus | |
WO2024109725A1 (en) | Data mapping method, data de-mapping method, and related device | |
CN117135498A (en) | Method and device for transmitting data | |
CN118555314A (en) | Method and device for transmitting data | |
CN116489704A (en) | Method for transmitting data | |
CN118075641A (en) | Bandwidth adjustment method and device |
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: 23893441 Country of ref document: EP Kind code of ref document: A1 |