CN118074850A - Method and device for transmitting data - Google Patents

Method and device for transmitting data Download PDF

Info

Publication number
CN118074850A
CN118074850A CN202211469131.5A CN202211469131A CN118074850A CN 118074850 A CN118074850 A CN 118074850A CN 202211469131 A CN202211469131 A CN 202211469131A CN 118074850 A CN118074850 A CN 118074850A
Authority
CN
China
Prior art keywords
time slot
clock information
transmission period
data
data frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211469131.5A
Other languages
Chinese (zh)
Inventor
郑述乾
管冬根
孙亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211469131.5A priority Critical patent/CN118074850A/en
Publication of CN118074850A publication Critical patent/CN118074850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

The embodiment of the application provides a method and a device for transmitting data, which are beneficial to reducing the transmission period of clock information and improving the transparent transmission performance of the clock information. The method may be performed by the receiving device or by a component of the receiving device (e.g., a chip or a system-on-chip, etc.). The method comprises the following steps: the receiving equipment receives the data frame and acquires service data carried by the payload area of the data frame according to clock information included in the payload area of the data frame. The payload area of the data frame comprises a first transmission period, a first time slot block in a plurality of time slot blocks included in the first transmission period carries clock information, time slot blocks except for the at least one first time slot block in the plurality of time slot blocks carry service data, and the clock information indicates the bit number of the service data carried on the at least one first time slot in the payload area, which is transmitted in the mapping period of the data frame.

Description

Method and device for transmitting data
Technical Field
The embodiment of the application relates to the field of optical communication, and more particularly relates to a method and a device for transmitting data.
Background
With the advent of the 5 th generation fixed network (fifth generation fixed network, F5G) age, high quality connections are progressively offering more pipe links to more end users. The optical service unit (optical service unit, OSU) is used as a high-quality special line bearing which can be applied to different bandwidth levels, takes an optical transport network (optical transport network, OTN) as a basic core, has a flexible bandwidth pipeline facing to the efficient bearing of a metropolitan area network, and can realize the efficient bearing of 10 Mbit/s-100 Gbit/s-level granularity service.
In the process of transmitting low-rate service based on the OSU bearer, the sending device maps the service (or the data flow of the service) to a plurality of data frames, and if the receiving device can determine the data volume of the service carried in the received data frames in unit time, the receiving device can recover the service from the received data frames.
Disclosure of Invention
The embodiment of the application provides a method for transmitting data, which is beneficial to reducing the clock information transmission period and improving the clock information transparent transmission performance.
In a first aspect, embodiments of the present application provide a method for transmitting data, where the method may be performed by a receiving device or by a component of the receiving device (e.g., a chip or a system-on-chip, etc.), which is not limited in this regard. The method comprises the following steps: receiving a data frame, the data frame comprising an overhead region and a payload region, a first transmission period in the payload region comprising a plurality of time slot blocks, at least one first time slot block of the plurality of time slot blocks carrying clock information, a time slot block of the plurality of time slot blocks other than the at least one first time slot block carrying traffic data, the clock information indicating a number of bits of traffic data carried on the at least one first time slot in the payload region to be transmitted in a mapping period of the data frame; wherein the payload region includes blocks of slots at the same position in one or more transmission periods that include the first transmission period to form a slot; and acquiring service data carried on the at least one first time slot according to the clock information.
Based on the above technical solution, since the first transmission period in the payload area of the data frame includes a plurality of time slot blocks, and the number of bytes included in the time slot blocks is greater than the number of bytes included in the adjustment control (justification control, JC) overhead area of the data frame, compared with the existing manner of carrying clock information through the JC overhead area of the data frame, the method is beneficial to reducing the transmission period of the clock information and improving the transparent transmission performance of the clock information by carrying the clock information through the first time slot blocks in the plurality of time slot blocks included in the first transmission period.
After the receiving device obtains the clock information, the number of bits transmitted by the service data carried in the payload area of the data frame in the mapping period of the data frame can be determined according to the clock information, and then the receiving device determines the data volume of the service data carried in the payload area according to the number of bits transmitted by the service data carried in the payload area in the mapping period of the data frame, so that the service is recovered.
It should be noted that the payload area of the data frame includes a plurality of slots. If the payload area of the data frame includes a plurality of transmission periods, each time slot of the plurality of time slots included in the payload area is divided into a plurality of time slot blocks. The payload region includes a t-th slot block of each of a plurality of slots constituting a t-th transmission period. In other words, the payload region includes blocks of slots at the same position in one or more transmission periods that constitute one slot.
With reference to the first aspect, the data frame includes a plurality of transmission periods, and the position of the at least one first time slot within the payload area is determined according to the position of the first transmission period in the plurality of transmission periods.
Wherein the position of the first transmission period in the plurality of transmission periods refers to the ordering of the first transmission period in the plurality of transmission periods.
Based on the technical scheme, the clock information carried by each transmission period in a plurality of transmission periods included in the data frame is different, so that the clock information of the service carried by more time slots carried by one data frame is facilitated, and the transmission period of the clock information is reduced. For example, if the payload area of the data frame includes T transmission periods, one slot block in the transmission period may carry clock information of service data carried on 4 slots, and one data frame may at least carry clock information of service data carried on t×4 slots.
Taking a second transmission period of the plurality of transmission periods as an example, the second transmission period is different from the first transmission period. The second transmission period includes at least one second time slot block of the plurality of time slot blocks carrying clock information, the clock information carried on the at least one second time slot block indicating a number of bits of traffic data carried on the at least one second time slot in the payload region transmitted within a mapping period of the data frame, a position of the at least one first time slot within the payload region being different from a position of the at least one second time slot within the payload region.
Wherein the position of a time slot in the payload area refers to the ordering of the time slot in a plurality of time slots comprised in the payload area.
It will be appreciated that since the position of the at least one first time slot within the payload area is different from the position of the at least one second time slot within the payload area, the traffic data carried on the at least one first time slot is different from the traffic data carried on the at least one second time slot such that the clock information carried by the at least one first time slot block is different from the clock information carried by the at least one second time slot block.
With reference to the first aspect, in certain implementations of the first aspect, the overhead area of the data frame includes a first indication field, where the first indication field is used to indicate the number of the first slot blocks.
Based on the above technical solution, in the case that the overhead area of the data frame includes the first indication field, the receiving device may determine the number of the first slot blocks according to the first indication field, so that the receiving device may correctly acquire clock information from the data frame.
Illustratively, the number of first slot blocks is 1.
With reference to the first aspect, in certain implementations of the first aspect, the overhead area of the data frame includes a second indication field for indicating a position of the first slot block within the first transmission period.
Wherein the position of the slot blocks within the transmission period refers to the ordering of the slot blocks among the plurality of slot blocks comprised by the transmission period.
Based on the above technical solution, in the case that the overhead area of the data frame includes the second indication field, the receiving device may determine the position of the first slot block in the first transmission period according to the second indication field, so that the receiving device may correctly acquire the clock information from the data frame.
Illustratively, the at least one first slot block is a first n slot blocks and/or a last m slot blocks within the first transmission period; m and n are positive integers.
Illustratively, when the number of first time slot blocks is greater than 1, the at least one first time slot block is contiguous in position within the first transmission period.
With reference to the first aspect, in some implementations of the first aspect, the at least one first timeslot carries service data of k services, where the number of first timeslot blocks is k, the k first timeslot blocks are in one-to-one correspondence with the k services, and each first timeslot block in the k first timeslot blocks is used to carry clock information of the corresponding service data; k is a positive integer.
Based on the above technical scheme, the sending device can allocate a time slot for carrying clock information to each service in k services carried on at least one first time slot of the payload area, so that the clock information of the k services can be transmitted through one data frame, and based on the existing mode of carrying the clock information through the JC overhead area, the clock information of the k services can be transmitted through k data frames, so that the method provided by the application is beneficial to reducing the transmission period of the clock information.
With reference to the first aspect, in some implementations of the first aspect, the overhead area of the data frame includes a third indication field and a fourth indication field, where the third indication field is used to indicate a plurality of slots corresponding to a first service in the k services, and the fourth indication field is used to indicate a slot including the first slot block and/or the first slot in the plurality of slots corresponding to the first service.
Based on the above technical solution, the receiving device may determine, according to the third indication field, a plurality of timeslots allocated by the transmitting device for the first service, and determine, according to the fourth indication field, timeslots allocated by the transmitting device for the first service and used for carrying service data (i.e., the first timeslots), and/or timeslots used for carrying clock information of the service (i.e., timeslots including the first timeslot block), so that the receiving device may correctly acquire the service data of the first service from the data frame.
Illustratively, a first one of the k services corresponds to a plurality of time slots, and a first or last one of the plurality of time slots corresponding to the first service includes the first time slot block.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: and receiving indication information, wherein the indication information is used for indicating that the payload area comprises clock information of service data carried by the payload area.
Based on the technical scheme, the receiving device determines that the payload area of the data frame carries the clock information according to the indication information, so that the receiving device is helped to correctly analyze the received data frame.
In a second aspect, embodiments of the present application provide a method for transmitting data, where the method may be performed by a transmitting device or by a component of the transmitting device (e.g., a chip or a system-on-chip, etc.), which is not limited in this regard. The method comprises the following steps: transmitting a data frame, the data frame comprising an overhead region and a payload region, a first transmission period in the payload region comprising a plurality of time slot blocks, at least one first time slot block of the plurality of time slot blocks carrying clock information, a time slot block of the plurality of time slot blocks other than the at least one first time slot block carrying traffic data, the clock information indicating a number of bits of traffic data carried on the at least one first time slot in the payload region to be transmitted in a mapping period of the data frame; wherein the payload region includes blocks of slots at the same position in one or more transmission periods that include the first transmission period to form a slot.
With reference to the second aspect, in certain implementations of the second aspect, the data frame includes a plurality of transmission periods, and the position of the at least one first time slot within the payload area is determined according to the position of the first transmission period in the plurality of transmission periods.
With reference to the second aspect, in certain implementations of the second aspect, the plurality of transmission periods includes a second transmission period, at least one second timeslot block of the plurality of timeslot blocks included in the second transmission period carries clock information, the clock information carried on the at least one second timeslot block indicates a number of bits of traffic data carried on at least one second timeslot in the payload area transmitted in a mapping period of the data frame, and a position of the at least one first timeslot in the payload area is different from a position of the at least one second timeslot in the payload area.
With reference to the second aspect, in certain implementations of the second aspect, the overhead area of the data frame includes a first indication field, where the first indication field is used to indicate the number of the first slot blocks.
With reference to the second aspect, in certain implementations of the second aspect, the overhead area of the data frame includes a second indication field, where the second indication field is used to indicate a position of the first slot block within the first transmission period.
With reference to the second aspect, in some implementations of the second aspect, the number of the first slot blocks is 1.
With reference to the second aspect, in certain implementations of the second aspect, the at least one first slot block is a first n slot blocks and/or a last m slot blocks within the first transmission period; m and n are positive integers.
With reference to the second aspect, in certain implementations of the second aspect, when the number of the first slot blocks is greater than 1, positions of the at least one first slot block within the first transmission period are consecutive.
With reference to the second aspect, in some implementations of the second aspect, the at least one first timeslot carries service data of k services, where the number of first timeslot blocks is k, the k first timeslot blocks are in one-to-one correspondence with the k services, and each first timeslot block in the k first timeslots is used to carry clock information of the corresponding service data; k is a positive integer.
With reference to the second aspect, in some implementations of the second aspect, the overhead area of the data frame includes a third indication field and a fourth indication field, where the third indication field is used to indicate a plurality of timeslots corresponding to a first service in the k services, and the fourth indication field is used to indicate timeslots including the first timeslot block and/or the first timeslot in a plurality of timeslots corresponding to the first service.
With reference to the second aspect, in some implementations of the second aspect, a first service of the k services corresponds to a plurality of slots, and a first slot or a last slot of the plurality of slots corresponding to the first service includes the first slot block.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes: and sending indication information, wherein the indication information is used for indicating that the payload area comprises clock information of service data carried by the payload area.
In a third aspect, an embodiment of the present application provides an apparatus for transmitting data. The apparatus is for performing the method provided in the first aspect above. In particular, the means for transmitting data may comprise means and/or modules, such as a processing module and a transceiver module, for performing the method provided in the first aspect or any of the above-mentioned implementations of the first aspect.
In an implementation manner, the apparatus for transmitting data may include a unit and/or a module configured to perform the method provided in the first aspect or any one of the implementation manners of the first aspect, and be a receiving device. The transceiver module may be a transceiver, or an input/output interface. The processing module may be at least one processor. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In another implementation, the means for transmitting data is a chip, a system-on-chip or a circuit in the receiving device. The transceiver module may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, system on a chip or circuit, etc. The processing module may be at least one processor, processing circuit or logic circuit, etc.
In a fourth aspect, an embodiment of the present application provides an apparatus for transmitting data. The apparatus is for performing the method provided in the second aspect above. In particular, the means for transmitting data may comprise means and/or modules, such as a processing module and a transceiver module, for performing the method provided by the second aspect or any of the above-mentioned implementations of the second aspect.
In an implementation manner, the apparatus for transmitting data may include a unit and/or a module configured to perform the method provided in the second aspect or any one of the implementation manners of the second aspect, which is a transmitting device. The transceiver module may be a transceiver, or an input/output interface. The processing module may be at least one processor. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In another implementation, the means for transmitting data is a chip, a system-on-chip, or a circuit in the transmitting device. The transceiver module may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, system on a chip or circuit, etc. The processing module may be at least one processor, processing circuit or logic circuit, etc.
In a fifth aspect, embodiments of the present application provide a processor configured to perform the method provided in the above aspects.
The operations such as transmitting and acquiring/receiving, etc. related to the processor may be understood as operations such as outputting and receiving, inputting, etc. by the processor, and may be understood as operations such as transmitting and receiving by the radio frequency circuit and the antenna, if not specifically stated, or if not contradicted by actual function or inherent logic in the related description, which is not limited by the present application.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium. The computer readable storage medium stores program code for execution by a device, the program code comprising instructions for performing the method provided by any one of the implementations of the first to second aspects described above.
In a seventh aspect, embodiments of the present application provide a computer program product comprising instructions. The computer program product, when run on a computer, causes the computer to perform the method provided by any one of the implementations of the first to second aspects described above.
In an eighth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, and the processor reads an instruction stored on a memory through the communication interface, and performs a method provided by any one of the foregoing first to second implementations.
Optionally, as an implementation manner, the chip further includes a memory, where a computer program or an instruction is stored in the memory, and the processor is configured to execute the computer program or the instruction stored in the memory, and when the computer program or the instruction is executed, the processor is configured to perform a method provided in any implementation manner of the first aspect to the second aspect.
In a ninth aspect, an embodiment of the present application provides a communication system, including the apparatus for transmitting data according to the third aspect and the apparatus for transmitting data according to the fourth aspect.
The advantages of the second to ninth aspects may be specifically referred to the description of the advantages of the first aspect, and are not repeated here.
Drawings
Fig. 1 is a schematic diagram of an OTN optical network system to which the embodiment of the present application is applicable.
Fig. 2 is a schematic diagram of a possible hardware architecture of a network device.
Fig. 3 is a schematic diagram of a frame structure of an OTN frame.
Fig. 4 is a schematic flow chart of a method 400 for transmitting data according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a first position of a time slot for carrying clock information in a payload area of a data frame according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a position of a time slot for carrying clock information in a payload area of a data frame according to a second embodiment of the present application.
Fig. 7 is a schematic block diagram of an apparatus 1000 for transmitting data according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a possible apparatus for transmitting data according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
The following description is made in order to facilitate understanding of embodiments of the present application.
The words "first," "second," and the like in the first, the following description and the accompanying drawings of embodiments of the application are merely for descriptive convenience and are not necessarily for describing particular sequences or successes, and are not intended to limit the scope of embodiments of the application. For example, different indication information or error correction information is distinguished.
The terms "comprises," "comprising," or any other variation thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Third, in embodiments of the application, the words "exemplary" or "such as" are used to mean examples, illustrations, or descriptions, and embodiments or designs described as "exemplary" or "such as" should not be construed as being preferred or advantageous over other embodiments or designs. The use of the word "exemplary" or "such as" is intended to present the relevant concepts in a concrete fashion to facilitate understanding.
Fourth, in the embodiment of the present application, service data refers to a service that can be carried by an optical transport network. For example, it may be an ethernet service, a packet service, a wireless backhaul service, etc. The traffic data may also be referred to as traffic signals, customer data or customer traffic data. It should be understood that the type of service data is not limited in the embodiment of the present application.
Fifth, in the present application, "for indication" includes direct indication and indirect indication. When describing that a certain information is used to indicate a, it is included that the information indicates a directly or indirectly, and does not necessarily represent that a is carried in the information.
Sixth, in the embodiments of the present application shown below, the embodiments are described only by taking OTN frames in an optical transport network (optical transport network, OTN) as examples, and it should be understood that, for other bearer OTN frames, or metropolitan transport network (metro transport network, MTN) frames, or as OTN technology and MTN technology develop, new types of OTN frames and MTN frames may be defined, which is also applicable to the present application.
Seventh, in the embodiment of the present application, the device may also be referred to as a node or a node device, and the transmitting device may be referred to as a transmitting node, a transmitting end, or a source node. Also, the receiving device may be referred to as a receiving end device, a receiving end, or a sink node.
Fig. 1 is a schematic diagram of an OTN optical network system to which the embodiment of the present application is applicable. In general, an OTN optical network is formed by connecting a plurality of devices through optical fibers, and can be composed of different topology types such as a line type, a ring type, a mesh type and the like according to specific needs. In the OTN 100 shown in fig. 1, 8 OTN devices 101, i.e., devices a to H, are included. Wherein 102 indicates an optical fiber for connecting two devices, 103 indicates a customer service interface for receiving or transmitting customer service data. As shown in fig. 1, the OTN 100 is used to transmit traffic data for the client devices 1-3. The client device is connected with the OTN device through the client service interface. For example, in FIG. 1, client devices 1-3 are connected to OTN devices A, H, and F, respectively. In fig. 1, when a client device 1 needs to communicate with a client device 3, it can transmit service data through OTN devices a-F, for example, OTN device a is a transmitting device, OTN devices B-E are intermediate devices, and OTN device F is a receiving device.
It should be understood that in the system provided by the present application, there may be one or more intermediate devices, although in some scenarios there may also be no intermediate devices. For simplicity of explanation, in the following description, the method flow for configuring a time slot provided in the embodiment of the present application is described by taking no intermediate device as an example.
Generally, OTN devices are classified into optical layer devices, electrical layer devices, and opto-electronic hybrid devices. An optical layer device refers to a device capable of processing an optical layer signal, such as: an optical amplifier (optical amplifier, OA), an optical add-drop multiplexer (OADM). OA may also be referred to as Optical Line Amplifier (OLA), and is mainly used for amplifying an optical signal to support transmission over a longer distance while ensuring specific performance of the optical signal. OADM is used to spatially transform an optical signal so that it may be output from different output ports (sometimes also referred to as directions). An electrical layer device refers to a device capable of processing an electrical layer signal, such as: a device capable of processing OTN signals. An opto-electronic hybrid device refers to a device that has the capability to process both optical layer signals and electrical layer signals. It should be noted that, depending on the specific integration requirement, one OTN device may integrate a plurality of different functions. The technical scheme provided by the application is suitable for OTN equipment with different forms and integration levels and containing an electric layer function.
It should be noted that, the data frame structure used by the OTN device in the embodiment of the present application is an OTN frame, which is used for carrying various service data and providing rich management and monitoring functions. The OTN frame may be an optical data unit frame (optical data unit k, ODUk), ODUCn, ODUflex, an optical channel transmission unit k (optical transport unit k, OTUk), OTUCn, or flexible OTN (FlexO) frame, or the like. The ODU frame is different from the OTU frame in that the OTU frame includes an ODU frame and an OTU overhead. k represents different rate levels, e.g., k=1 represents 2.5Gbps and k=4 represents 100Gbps; cn represents a variable rate, in particular a rate that is a positive integer multiple of 100 Gbps. Unless specifically stated, an ODU frame refers to any one of ODUk, ODUCn, or ODUflex, and an OTU frame refers to any one of OTUk, OTUCn, or FlexO. As OTN technology advances, new types of OTN frames may be defined, and are also suitable for use in the present application.
Fig. 2 is a schematic diagram of a possible hardware architecture of a network device. For example, device a in fig. 1. Specifically, the OTN device 200 includes a tributary board 201, a cross board 202, a circuit board 203, an optical layer processing board (shown in fig. 2), and a system control and communication-like board 204. The types and numbers of boards included in the network device may be different as desired. For example, the network device as a core node does not have a tributary board 201. As another example, a network device that is an edge node has multiple tributary boards 201, or no optical cross boards 202. For another example, a network device that supports only electrical layer functions may not have an optical layer processing board.
The tributary board 201, the cross board 202 and the wiring board 203 are used to process the electrical layer signals of the OTN. The tributary board 201 is used to implement reception and transmission of various customer services, such as SDH service, packet service, ethernet service, and forwarding service, among others. Still further, the tributary board 201 may be divided into a client side transceiver module and a signal processor. The client-side transceiver module may also be referred to as an optical transceiver, for receiving and/or transmitting traffic data. The signal processor is used for realizing the mapping and demapping processing of the business data to the data frame. The cross board 202 is used to implement exchange of data frames, and exchange of one or more types of data frames is completed. The line board 203 mainly realizes processing of line-side data frames. Specifically, the wiring board 203 may be divided into a line-side optical module and a signal processor. The line-side optical module may be referred to as an optical transceiver, for receiving and/or transmitting data frames. The signal processor is used for multiplexing and demultiplexing data frames at the line side or mapping and demapping processing. The system control and communication class board 204 is used to implement system control. Specifically, information may be collected from different boards, or control instructions may be sent to corresponding boards. It should be noted that the specific components (e.g., signal processor) may be one or more, and the application is not limited unless specifically stated. It should also be noted that the present application is not limited in any way by the type of boards included in the device and the functional design and number of boards. It should be noted that, in a specific implementation, the 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, and the like.
Fig. 3 is a schematic diagram of a frame structure of an OTN frame. As shown in fig. 3, the OTN frame is a frame structure of 4 rows and a plurality of columns, and includes an overhead area and a payload area. Wherein the payload area of the OTN frame is divided into a plurality of Payload Blocks (PB). Each PB occupies a fixed length (also referred to as size) position in the payload area, e.g., 128 bytes. The overhead area of the OTN frame includes, for example, a frame alignment signal (FRAME ALIGNMENT SIGNAL, FAS), for frame alignment, etc. Specifically, the OTN frame structure may refer to related descriptions in the current protocol, and will not be described herein.
An optical service unit (optical service unit, OSU) which is one of the key technologies in OTN technology is mainly used for carrying 10M-100 Gbps rate customer service. By carrying low-speed small-particle service signals through the OSU and mapping the OSU into the ODUk/ODUflex, the transmission delay of the service can be reduced, the number of ports carrying the service is increased, and the problem of low efficiency of carrying the low-quick-acting-rate small-particle service in the original OTN technology is solved.
In the process of transmitting low-rate service based on the OSU bearer, the sending device maps the service (or the data stream of the service) to a plurality of data frames, and if the receiving device can determine the data volume of the service carried in the data frames received in unit time, the receiving device can recover the service from the received data frames.
In view of this, the present application proposes a method for transmitting data, in which clock information is transmitted through a data frame, so that a receiving device can determine the data amount of service data carried in a received data frame according to the clock information, and further recover the service from the received data frame.
Fig. 4 is a schematic flowchart of a method for transmitting data according to an embodiment of the present application, as shown in fig. 4, where the sending device may be an OTN device or be executed by a component (such as a chip or a chip system) of the OTN device. The receiving device may be an OTN device or may be implemented by a component of the OTN device (e.g., a chip or a system-on-chip). Specifically, the method 400 shown in FIG. 4 includes the following steps.
S410, the transmitting device transmits the data frame.
Accordingly, in S410, the receiving device receives a data frame.
Specifically, the data frame includes an overhead area and a payload area, and the payload area of the data frame is used to carry service data and clock information of the service data.
Exemplary, the service data referred to in the embodiments of the present application refers to a service that may be carried by an optical transport network, including, but not limited to: fixed bit rate (constant bit rate, CBR) traffic, variable bit rate (variable bit rate, VBR) traffic, etc. CBR is encoded in a constant bit rate manner, and by way of example and not limitation, CBR traffic may include, but is not limited to, multimedia streaming traffic, such as video streaming traffic, virtual Reality (VR) traffic, augmented reality (augmented reality, AR) traffic, and the like. VBR is a bit rate used in real-time determination based on the complexity of the service data, and by way of example and not limitation, VBR services may include voice services, video services, and the like.
The payload region of the data frame includes a first transmission period including a plurality of time slot blocks (tributary slot, TS), and at least one first time slot block of the plurality of time slot blocks carries clock information, and a time slot block of the plurality of time slot blocks other than the at least one first time slot block carries at least one of traffic data or padding. The clock information carried by the at least one first time slot block is used to determine the data amount of traffic data carried on the at least one first time slot in the payload area. Illustratively, the clock information carried by the at least one first time slot block indicates a number of bits of traffic data carried on the at least one first time slot transmitted within a mapping period of the data frame. If the sending device maps the service data to a data frame, the mapping period of the data frame refers to the transmission duration of the data frame. If the service data of the sending device is mapped to a plurality of multiframes, and the multiframes include the data frame, the mapping period of the data frame refers to the transmission duration of the multiframes. The mapping period of the data frame may also be referred to as a transmission period of clock information of service data carried in a payload area of the data frame.
The payload region includes a plurality of slots. If the payload area includes a plurality of transmission periods, each time slot of the plurality of time slots included in the payload area is divided into a plurality of time slot blocks. The payload region includes a t-th slot block of each of a plurality of slots constituting a t-th transmission period. In other words, the payload region includes blocks of slots at the same position in one or more transmission periods that constitute one slot.
As shown in fig. 5, taking an example that the data frame is an ODU0 frame corresponding to the multiframe alignment signal (multiframe ALIGNMENT SIGNAL, MFAS) =0, the ODU0 frame is a frame structure of 4 rows and 3824 columns, where the first 16 columns are overhead areas, and the 17 th to 3824 th columns are payload areas. The payload area includes 119 slots and includes 8 transmission periods, in which case each slot included in the payload area is equally divided into 8 slot blocks, a first slot block of each slot constituting a first transmission period (i.e., transmission period #1 shown in fig. 5), a second slot block of each slot constituting a second transmission period (i.e., transmission period #2 shown in fig. 5), … …, and an eighth slot block of each slot constituting an eighth transmission period (i.e., transmission period #8 shown in fig. 5). In the case where the payload area includes 119 slots, each transmission period included in the payload area includes 119 slot blocks, i.e., TS1 to TS119 shown in fig. 5. In other words, for an ODU0 frame corresponding to mfas=0, the 1 st slot block (i.e., TS 1) included in each transmission period constitutes the 1 st slot, the 2 nd slot block (i.e., TS 2) included in each transmission period constitutes the 2 nd slot, … …, and the 119 th slot block (i.e., TS 119) included in each transmission period constitutes the 119 th slot.
For example, the first slot block included in the first transmission period may be referred to as a clock slot block or a clock information slot block.
It should be noted that the payload area of the data frame may include one or more transmission periods. In the case where the payload region of the data frame includes a plurality of transmission periods, the first transmission period may be one of the plurality of transmission periods included in the payload region of the data frame.
In the case where the payload area of the data frame includes a plurality of transmission periods, the clock information carried by the different transmission periods is the same or different.
In one possible implementation, the data frame includes a plurality of transmission periods including a first transmission period, and the position of the at least one first time slot within the payload region is determined based on the position of the first transmission period in the plurality of transmission periods. Wherein the position of the first transmission period in the plurality of transmission periods refers to the ordering of the first transmission period in the plurality of transmission periods.
As can be seen from the above, in the case where the data frame includes a plurality of transmission periods, the clock information carried by the slot blocks for carrying the clock information in the different transmission periods is different.
Taking as an example a second transmission period of the plurality of transmission periods included in the data frame, the second transmission period is different from the first transmission period. The second transmission period includes a plurality of slot blocks, and at least one second slot block of the plurality of slot blocks included in the second transmission period carries clock information. The clock information carried on the at least one second time slot block is used to determine the data amount of the traffic data carried on the at least one second time slot in the payload area. Illustratively, the clock information carried by the at least one second time slot block indicates a number of bits of traffic data carried on the at least one second time slot transmitted within a mapping period of the data frame. The position of the at least one first time slot within the payload area is different from the position of the at least one second time slot within the payload area. Wherein the position of a time slot within the payload area refers to the ordering of the time slot among a plurality of time slots comprised in the payload area.
For example, the second block of slots included in the second transmission period may be referred to as a block of clock slots or a block of clock information slots.
It will be appreciated that in the case where the position of at least one first time slot within the payload area is different from the position of at least one second time slot within the payload area, the traffic data carried on the at least one first time slot is different from the traffic data carried on the at least one second time slot, and further, the clock information carried on the at least one first time slot block is different from the clock information carried on the at least one second time slot block.
It should be noted that the position of at least one first slot block in the first transmission period is the same as the position of at least one second slot block in the second transmission period, and the number of at least one first slot block is the same as the number of at least one second slot block. In other words, in the case where the data frame includes a plurality of transmission periods, the positions of the slot blocks for carrying clock information in the different transmission periods are the same in the transmission periods, and the number of the slot blocks for carrying clock information in the different transmission periods is the same. Wherein the position of the slot blocks within the transmission period refers to the ordering of the slot blocks within the transmission period.
The number of the first time slot blocks included in the first transmission period is not limited in the embodiment of the present application. For example, the first transmission period includes a number of first slot blocks of 1, or the first transmission period includes a number of first slot blocks greater than 1.
The number of first time slot blocks comprised by the first transmission period may be preconfigured, predefined in protocol, or determined by the transmitting device negotiating with the receiving device.
Optionally, if the number of the first time slot blocks included in the first transmission period is determined by negotiation between the transmitting device and the receiving device, the overhead area of the data frame sent by the transmitting device further includes a first indication field, where the first indication field is used to indicate the number of the first time slot blocks included in the first transmission period. It will be appreciated that, since the number of time slot blocks for carrying clock information in different transmission periods included in the data frame is the same, the first indication field may also be used to indicate the number of time slot blocks for carrying clock information included in each transmission period in the data frame. It will also be appreciated that, since the data frame includes the same position of the slot blocks for carrying clock information in different transmission periods, and the slot blocks in the same position in a plurality of transmission periods included in the data frame form one slot, the first indication field may also be used to indicate the number of slots included in the payload area of the data frame for carrying clock information.
The embodiment of the application does not limit the position of at least one first time slot block in the first transmission period. For example, the at least one first slot block is the first n slot blocks in the first transmission period, or the at least one first slot block is the last m slot blocks in the first transmission period, or the at least one first slot block is the first n slot blocks and the last m slot blocks in the first transmission period. Wherein m and n are positive integers.
Optionally, if the number of first time slot blocks included in the first transmission period is greater than 1, the positions of at least one first time slot block in the first transmission period are continuous. For example, if the number of first slot blocks included in the first transmission period is m, the m first slot blocks are the i-th slot block to the (i+m-1) -th slot block in the first transmission period, and i is a positive integer.
The location of the at least one first time slot block within the first transmission period may be preconfigured, predefined by a protocol, or determined by a transmitting device negotiating with a receiving device.
Optionally, if the position of the at least one first timeslot block in the first transmission period is determined by negotiation between the transmitting device and the receiving device, the overhead area of the data frame sent by the transmitting device further includes a second indication field, where the second indication field is used to indicate the position of the at least one first timeslot block in the first transmission period. It will be appreciated that since the positions of the slots for carrying clock information are the same in different transmission periods of the data frame packet, the second indication field may also be used to indicate the position of the slot blocks for carrying clock information included in each transmission period of the data frame. It will also be appreciated that, since the data frame includes the same position of the slot blocks for carrying clock information in different transmission periods, and the slot blocks in the same position in a plurality of transmission periods included in the data frame form one slot, the second indication field may also be used to indicate the position of the slot for carrying clock information included in the payload area of the data frame.
The relationship between the position of at least one first time slot within the payload region and the position of the first transmission period over a plurality of transmission periods is described below.
For example, the number of transmission periods included in the data frame is denoted as T, the first transmission period is the T-th transmission period of the T transmission periods included in the data frame, the number of time slot blocks included in the first transmission period is denoted as S, and the first transmission period is used for carrying the first transmission period of the payload regionTime slot to/>Clock information of service data carried on each time slot. T and S are both positive integers, t=1, 2, …, T,/>Representing an upward rounding.
Optionally, the position of the at least one first time slot in the payload region is further related to the number of first time slot blocks, the number of clock information that the first time slot blocks can carry. For example, the number of first slot blocks included in the first transmission period is denoted as m, and the number of clock information that can be carried by the first slot blocks is denoted as g, so that the first transmission period is used for carrying the clock information of the traffic data carried on the [ (t-1) ×g+1] th slot to the t×m×g slot of the payload area, and the m ' th first slot block in the first transmission period is used for carrying the clock information of the traffic data carried on the [ (t-1) ×m×g+ (m ' -1) ×g+1] th slot to the [ (t-1) ×m×g+m ' ×g ] th slot of the payload area. Wherein m, g and m 'are positive integers, m' =1, 2, …, m.
It can be appreciated that if [ (t-1) mg+1 ] < S, n mg > S, the first transmission period is used to carry the clock information of the traffic data carried on the [ (t-1) mg+1 ] th to S-th slots of the payload area. If [ (t-1) ×m×g+1] > S, m first slot blocks included in the first transmission period are idle.
It can be further understood that if [ (t-1) m×g+ (m ' -1) g+1] < S, [ (t-1) m×g+m ' ×g ] > S, the mth first slot block in the first transmission period is used to carry clock information of traffic data carried on the [ (t-1) m×g+ (m ' -1) g+1] slot to the S slot of the payload area. If [ (t-1) mg+ (m '-1) g+1] > S, the m' th first slot block of the first transmission period is idle.
Optionally, if the data frame is one of a plurality of multiframes, the position of the at least one first slot in the payload area is determined according to the position of the first transmission period in the plurality of transmission periods and the position of the data frame in the plurality of multiframes. Wherein the position of the data frame in the plurality of multiframes refers to the ordering of the data frame in the plurality of multiframes.
As can be seen from the above, when the data frame is one of a plurality of multiframes, clock information transmitted by different multiframes is different.
Exemplary, the number of transmission periods included in the data frame is denoted as T, the first transmission period is the T-th transmission period of the T transmission periods included in the data frame, the number of time slot blocks included in the first transmission period is denoted as S, the data frame is the first of the L multiframes, and the data frame is used for transmitting the first of the payload areasTime slot to/>Clock information of service data carried on each time slot, and a first transmission period is used for carrying the/>, of a payload areaTime slot to/>Clock information of service data carried on each time slot. L is a positive integer, l=1, 2, …, L.
Optionally, the position of the at least one first time slot in the payload region is further related to the number of first time slot blocks, the number of clock information that the first time slot blocks can carry. In an exemplary embodiment, the number of first slot blocks included in the first transmission period is denoted as m, the number of clock information that can be carried by the first slot blocks is denoted as g, where the data frame is the first multiframe of the L multiframes, the data frame is used to carry clock information of service data carried by [ (L-1) ×m+1 ] th slot to the first mth slot in the payload area, the first transmission period is used to carry clock information of service data carried by [ (L-1) ×m×g+t+ (T-1) ×m+1 ] th slot to [ (L-1) ×m×t+t+g ] th slot in the payload area, and the m' first slot block in the first transmission period is used to carry clock information of service data carried by [ (L-1) ×g+ (T-1) + (T-1) ×t+1) + (t+g) ×1) ×g ] th slot in the payload area.
It can be appreciated that if [ (l-1) m×g×t+1] < S, l×m×g×t > S, the data frame is used to transmit the clock information of the traffic data carried on the [ (l-1) m×g×t+1] th slot to the S-th slot of the payload area.
It can be further understood that if [ (l-1) mmg+t+ (T-1) mmg+1 ] < S, [ (l-1) mmg+tmg ] > S, the first transmission period is used to carry the clock information of the traffic data carried on the [ (l-1) mmg+t+ (T-1) mmg+1 ] time slot to the S time slot of the payload area. If [ (l-1) m g t+ (T-1) m g+1] > S, then m first slot blocks included in the first transmission period are idle.
It can be further understood that if [ (l-1) mmg+t+ (T-1) mmg+ (m ' -1) g1 ] < S, [ (l-1) mmg+t+ (T-1) mmg+m '. G ] > S, the mth first slot block of the first transmission period is used to carry clock information of traffic data carried on the [ (l-1) mmg+t+ (T-1) mmg+ (m ' -1) mmg+1 ] slot to the S slot of the payload area. If [ (l-1) m g t+ (T-1) m g+ (m '-1) g+1] > S, the m' th first slot block of the first transmission period is idle.
Next, in connection with fig. 5, a relationship between a position of at least one first slot in the payload area and a position of the first transmission period in a plurality of transmission periods will be described, taking as an example that the data frame is an ODU0 frame and the number of first slot blocks included in the first transmission period is 1. As shown in fig. 5, the ODU0 frame is a frame structure of 4 rows and 3824 columns, the first 16 columns are overhead areas, and the 17 th to 3824 th columns are payload areas. The payload area includes 8 transmission periods (i.e., t=8), the 17 th to 3824 th columns of the first row include a first transmission period and a second transmission period, the 17 th to 3824 th columns of the second row include a third transmission period and a fourth transmission period, the 17 th to 3824 th columns of the third row include a fifth transmission period and a sixth transmission period, and the 17 th to 3824 th columns of the fourth row include a seventh transmission period and an eighth transmission period. Each transmission cycle includes 119 slot blocks of 16 bytes (B), denoted TS 1-TS 119, and each slot block included in the transmission cycle may also be referred to as OSU slot block. The first time slot block of each transmission period (i.e., TS 1) is used to carry clock information, and the first time slot block of each transmission period may carry clock information of traffic carried on 4 time slots, i.e., m=m' =1, g=4.
If the data frame is an ODU0 frame corresponding to mfas=0, it indicates that the data frame is the first frame of 4 frames, i.e. l=1. If the first transmission period is the first transmission period in the ODU0 frame corresponding to mfas=0 (i.e. transmission period #1 shown in fig. 5), t=1, [ (l-1) m×g×t+ (T-1) m×g+ (m '-1) g+1] =1, [ (l-1) m×g×t+ (T-1) m×g+m' ×g ] =4, so that the TS1 of the transmission period #1 is used to carry the clock information of the traffic data carried on the 1 st time slot (i.e. the time slot consisting of the TS1 in the transmission period #1 to the transmission period # 8) to the 4 th time slot (i.e. the time slot consisting of the TS4 in the transmission period #1 to the transmission period # 8) in the payload area. If the first transmission period is the second transmission period of the ODU0 frame corresponding to mfas=0 (i.e. transmission period #2 shown in fig. 5), t=2, [ (l-1) m×g×t+ (T-1) m×g+ (m '-1) g+1] =5, [ (l-1) m×g×t+ (T-1) m×g+m' ×g ] =8, so that TS1 of the transmission period #2 is used to carry the clock information of the traffic data carried on the 5 th time slot (i.e. the time slot consisting of TS5 in transmission period #1 to transmission period # 8) to the 8 th time slot (i.e. the time slot consisting of TS8 in transmission period #1 to transmission period # 8) in the payload area. If the first transmission period is the third transmission period of the ODU0 frame corresponding to mfas=0 (i.e. the transmission period #3 shown in fig. 5), t=3, [ (l-1) m×g×t+ (T-1) m×g+ (m '-1) g+1] =9, [ (l-1) m×g×t+ (T-1) m×g+m' ×g ] =12, so that the TS1 of the transmission period #3 is used to carry the clock information of the traffic data carried on the 9 th time slot (i.e. the time slot consisting of the TS9 in the transmission period #1 to the transmission period # 8) to the 12 th time slot (i.e. the time slot consisting of the TS12 in the transmission period #1 to the transmission period # 8) in the payload area.
If the data frame is an ODU0 frame corresponding to mfas=3, it indicates that the data frame is the 4 th multiframe of the 4 multiframes, i.e., l=4. If the first transmission period is the sixth transmission period in the ODU0 frame corresponding to mfas=3 (i.e. the transmission period #30 shown in fig. 5), t=6, [ (l-1) m×g×t+ (T-1) m×g+ (m '-1) g+1] =117, [ (l-1) m×g×t+ (T-1) m×g+m' ×g ] =120, and because 120 is greater than 119, the TS1 of the transmission period #30 is used to carry the clock information of the traffic data carried in the 117 th time slot (i.e. the time slot consisting of the TS117 in the transmission period #25 to the transmission period # 32) to the 119 th time slot (i.e. the time slot consisting of the TS119 in the transmission period #25 to the transmission period # 32) in the payload area. If the first transmission period is the seventh transmission period in the ODU0 frame corresponding to mfas=3 (i.e., the transmission period #31 shown in fig. 5), t=7, and TS1 of the transmission period #31 is idle because [ (l-1) ×m×g×t+ (T-1) ×m×g+ (m' -1) ×g+1] =121 > 119. Similarly, TS1 for transmission period #32 is idle.
As can be seen from fig. 5, for the multiplexing procedure from OSU to ODU0, if each transmission period includes a time slot block for carrying clock information, the clock information of the service data carried on 119 time slots included in the payload area of ODU0 can be transmitted by using 4 multiframes. It can be further understood that, for an ODU service layer pipe with a bandwidth of n×odu0, if each transmission period includes a slot block for carrying clock information, N 2 ×4 multiframes are used to transmit clock information of service data carried on all slots included in an ODU frame with a bandwidth of n×odu0. For example, for an ODU1 service layer pipe with a bandwidth of 2×odu0, ODU1 includes 4 transmission periods, and includes 238 timeslots, and in the case where each transmission period includes a timeslot block for carrying clock information, the clock information of service data carried on 238 timeslots can be transmitted using 16 multiframes. Or for an ODU service layer pipe with a bandwidth of n×odu0, if each transmission period includes N time slot blocks for carrying clock information, n×4 multiframes are used to transmit clock information of service data carried on all time slots included in an ODU frame with a bandwidth of n×odu0. For example, for an ODU1 service layer pipe with a bandwidth of 2×odu0, ODU1 includes 4 transmission periods and 238 timeslots, and in the case that each transmission period includes 2 timeslot blocks for carrying clock information, the clock information of the service data carried on 238 timeslots can be transmitted using 8 multiframes.
It should be noted that, in the case where at least one first timeslot block in the first transmission period is used to carry clock information of service data carried on at least one first timeslot, if the service data carried on at least one first timeslot has no clock information, for example, the service data carried on at least one first timeslot is VBR service data, at least one first timeslot block in the first transmission period is idle. For example, as shown in fig. 5, if the first transmission period is a transmission period #2, the TS1 in the transmission period #2 is used to carry the clock information of the service data carried in the 5 th time slot to the 8 th time slot in the payload area, and if the service data carried in the 5 th time slot has no clock information, the 4B on the TS1 in the transmission period #2, which is used to carry the clock information of the service data carried in the 5 th time slot, remains idle.
The method for generating the data frame including at least one time slot for carrying clock information by the transmitting device is not limited in the embodiment of the present application.
Illustratively, the payload area of the data frame generated by the transmitting device includes at least one time slot for carrying clock information, regardless of whether the traffic data carried on the plurality of time slots included in the payload area of the data frame has clock information. In other words, the payload area of the data frame generated by the transmitting device includes at least one time slot for carrying clock information, regardless of whether the service data carried on the plurality of time slots included in the payload area of the data frame includes the service data of the CBR service.
As another example, if the payload area of the data frame includes a plurality of time slots, and the service data carried on at least one time slot has clock information, the payload area of the data frame generated by the transmitting device includes at least one time slot for carrying the clock information; if the payload area of the data frame includes a plurality of time slots carrying service data without clock information, the payload area of the data frame generated by the sending device does not include the time slots carrying the clock information. In other words, if the payload area of the data frame includes a plurality of time slots, and the service data carried on at least one time slot is the service data of the CBR service, the payload area of the data frame generated by the transmitting device includes at least one time slot for carrying clock information; if the service data carried on the plurality of time slots included in the payload area of the data frame does not include the service data of the CBR service, the payload area of the data frame generated by the transmitting device does not include the time slot for carrying the clock information.
In another possible implementation manner, the payload area includes at least one first timeslot carrying service data of k services, the number of first timeslot blocks included in the first transmission period is k, the k first timeslot blocks included in the first transmission period are in one-to-one correspondence with the k services, and each first timeslot block in the k first timeslot blocks is used for carrying clock information of the corresponding service data.
Illustratively, the payload region includes traffic data carrying k CBR traffic on at least one first time slot. For example, the payload area includes at least one first timeslot carrying service data of two CBR services, denoted as service data of CBR service #1 and service data of CBR service #2, and the first transmission period includes two first timeslot blocks, where one first timeslot block corresponds to CBR service #1 and the other first timeslot block corresponds to CBR service # 2. The first time slot block corresponding to CBR service #1 is used to transmit clock information of service data of CBR service #1, and the first time slot block corresponding to CBR service #2 is used to transmit clock information of service data of CBR service # 2.
In the case where the payload area of the data frame includes a plurality of transmission periods, the first transmission period is any one of the plurality of transmission periods. In other words, in the case that the payload area of the data frame includes a plurality of transmission periods, each transmission period of the plurality of transmission periods includes k first slot blocks, and the k first slot blocks are in one-to-one correspondence with k services carried on at least one first slot included in the payload area.
As can be seen from the above, in the case where the data frame includes a plurality of transmission periods, the slot information carried by the slot blocks for carrying the clock information in the different transmission periods is the same. That is, k first time slot blocks in different transmission periods are all used to carry clock information of service data of k services carried on at least one first time slot in the payload area.
According to the relationship between the time slots and the time slot blocks, the k first time slot blocks in the transmission periods included in the data frame may form k time slots, where the k time slots are in one-to-one correspondence with k services carried on at least one first time slot included in the payload area, and each time slot in the k time slots is used to carry clock information of service data of the corresponding service.
As can be seen from the above, in the process of generating the data frame, the transmitting device allocates a time slot for carrying service data of the service to each of the k services, and also allocates a time slot for carrying clock information of the service to each of the k services.
It can be understood that, in the process of generating a data frame, if a certain service has clock information, the sending device allocates a time slot for carrying service data of the service and a time slot for carrying clock information of the service for the service. If a certain service has no clock information, the sending device allocates a time slot for carrying service data of the service for the service. In other words, the transmitting apparatus allocates, for CBR traffic, a time slot for carrying traffic data of the traffic and a time slot for carrying clock information of the traffic in generating the data frame. For other traffic than CBR traffic, such as VBR traffic, the transmitting device allocates timeslots for the VBR traffic for carrying traffic data of the traffic.
As shown in fig. 6, for a CBR service #1 occupying 20M bandwidth, the transmitting device allocates two 10M bandwidth slots for the CBR service #1 to carry service data of the CBR service #1, i.e., the 3 rd slot and the 119 th slot in the payload area, and allocates a 10M bandwidth slot for the CBR service #1 to carry clock information of the CBR service #1, i.e., the 2 nd slot in the payload area.
As shown in fig. 6, in the case where the data frame includes 8 transmission periods, each slot included in the payload region is equally divided into 8 16B slot blocks. For example, the 2 nd slot included in the payload area is equally divided into 8 slot blocks, that is, TS2 included in transmission period #1 to transmission period # 8. TS2 in each transmission period is used to transmit clock information of CBR service # 1.
The TS2 in each transmission period includes 16B, the clock information of the CBR service #1 occupies 4B, and in the case that the TS2 in each transmission period is used to carry the clock information of the CBR service #1, the TS2 in each transmission period further includes reserved (reserved) 12B. Illustratively, the reserved 12B remains idle, or the reserved 12B is used to carry the check information of the clock information of CBR service #1, or the reserved 12B is used to carry other information related to CBR service # 1.
Taking the first service of the k services as an example, the embodiment of the application does not limit the positions of the time slots for carrying the clock information of the first service in the plurality of time slots corresponding to the first service, where the plurality of time slots corresponding to the first service include the time slots for carrying the service data of the first service and the time slots for carrying the clock information of the first service.
The time slot for carrying the clock information of the first service is, for example, a first time slot of a plurality of time slots corresponding to the first service or a last time slot of a plurality of time slots corresponding to the first service.
The positions of the time slots for carrying the clock information of the first service in the plurality of time slots corresponding to the first service may be preconfigured, predefined by a protocol, or determined by negotiation between the transmitting device and the receiving device.
Optionally, if the positions of the timeslots used for carrying the clock information of the first service in the timeslots corresponding to the first service are determined by negotiating between the transmitting device and the receiving device, the overhead area of the data frame sent by the transmitting device further includes a third indication field and a fourth indication field, where the third indication field is used to indicate the positions of the timeslots corresponding to the first service in the payload area, and the fourth indication field is used to indicate the timeslots including the timeslots of the first timeslot block and/or the first timeslots in the timeslots corresponding to the first service. In other words, the fourth indication field is used to indicate a time slot for carrying traffic data of the first traffic (i.e., the first time slot) and/or a time slot for carrying clock information of the first traffic (i.e., a time slot including the first time slot block) among a plurality of time slots corresponding to the first traffic.
Optionally, in order to enable the receiving device to correctly parse the data frame after receiving the data frame, the method 400 further includes: the transmitting device transmits indication information, wherein the indication information is used for indicating that a payload area of a data frame comprises clock information of service data carried by the payload area. Accordingly, the receiving device receives the indication information.
S420, the receiving device obtains service data carried on the payload area according to clock information included in the payload area of the data frame.
In an exemplary embodiment, the receiving device obtains service data carried by at least one first timeslot in the payload area according to clock information carried by at least one first timeslot block in a first transmission period of the payload area.
As described above, the clock information carried by the at least one first timeslot block indicates the number of bits of the traffic data carried by the at least one first timeslot in the payload area that are transmitted in the mapping period of the data frame, after the receiving device receives the data frame, the receiving device may determine the number of bits of the traffic data carried by the at least one first timeslot in the payload area that are transmitted in the mapping period of the data frame according to the clock information carried by the at least one first timeslot, and further determine the data amount of the traffic data carried by the at least one first timeslot according to the number of bits of the traffic data carried by the at least one first timeslot that are transmitted in the mapping period of the data frame.
In the embodiment of the application, the sending equipment carries the clock information of the service data carried by other time slots or time slots of the payload area through at least one time slot in the payload area of the data frame, thereby being beneficial to reducing the clock information transmission period and improving the clock information transparent transmission performance.
For example, if the payload area includes T transmission periods, and one time slot block in the transmission period can carry clock information of service data carried on 4 time slots, one data frame can carry at least clock information of service data carried on t×4 time slots, and based on the existing manner that clock information is carried by the overhead area (6B) through adjustment control (justification control, JC) of the data frame, one data frame can only carry clock information of service data carried on one time slot, so the method provided by the application is beneficial to reducing the transmission period of clock information. For another example, if the sending device allocates a time slot for carrying clock information to each of k services carried on at least one first time slot of the payload area, the clock information of the k services can be transmitted through one data frame, and based on the existing mode of carrying the clock information through the JC overhead area, the clock information of the k services can be transmitted through k data frames.
In the embodiment provided by the application, each scheme of the method for transmitting data provided by the embodiment of the application is introduced from the interaction point of each device. It will be appreciated that each device, in order to implement the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 7 is a schematic block diagram of an apparatus 1000 for transmitting data according to an embodiment of the present application. The apparatus 1000 comprises a receiving module 1010, the receiving module 1010 being operable to implement a corresponding receiving function. The receiving module 1010 may also be referred to as a receiving unit.
The apparatus 1000 further comprises a processing module 1020, which processing module 1020 may be adapted to implement the respective processing functions, which processing module 1020 may also be referred to as a processing unit.
The apparatus 1000 further comprises a sending module 1030, the sending module 1030 may be configured to implement a corresponding sending function, and the sending module 1030 may also be referred to as a sending unit.
Optionally, the apparatus 1000 further includes a storage module, where the storage unit may be configured to store instructions and/or data, and the processing module 1020 may read the instructions and/or data in the storage module, so that the apparatus implements the actions of the relevant apparatus in the foregoing method embodiments.
The apparatus 1000 may be configured to perform the actions performed by the transmitting device or the receiving device in the above method embodiments, where the apparatus 1000 may be a component of the transmitting device or the receiving device, the receiving module 1010 is configured to perform the operations related to the reception by the transmitting device or the receiving device in the above method embodiments, the processing module 1020 is configured to perform the operations related to the processing by the transmitting device or the receiving device in the above method embodiments, and the transmitting module 1030 is configured to perform the operations related to the transmission by the transmitting device or the receiving device in the above method embodiments.
As a design, the apparatus 1000 is configured to perform the actions performed by any of the above method embodiments. In one embodiment, the apparatus may be used to perform the operations of the transmitting device of fig. 4 described above. For example: a transmitting module 1030, configured to transmit a data frame, where the data frame includes an overhead area and a payload area, and a first transmission period in the payload area includes a plurality of slot blocks, at least one first slot block in the plurality of slot blocks carries clock information, and slot blocks other than the at least one first slot block in the plurality of slot blocks carry service data, where the clock information indicates a number of bits that are transmitted in a mapping period of the data frame by the service data carried in the at least one first slot in the payload area; wherein the payload region includes blocks of slots at the same position in one or more transmission periods that include the first transmission period to form a slot.
It should be understood that the specific process of each module to perform the corresponding steps is described in detail in the above method embodiments, and is not described herein for brevity.
In addition, the receiving module 1010, the processing module 1020, and the sending module 1030 in the apparatus may also implement other operations or functions of the receiving device in the above method, which are not described herein.
In another embodiment, the apparatus may be used to perform the operations of the receiving device of fig. 4 described above. For example: a receiving module 1010, configured to receive a data frame, where the data frame includes an overhead area and a payload area, and a first transmission period in the payload area includes a plurality of slot blocks, at least one first slot block in the plurality of slot blocks carries clock information, and slot blocks other than the at least one first slot block in the plurality of slot blocks carry service data, where the clock information indicates a number of bits that are transmitted in a mapping period of the data frame by the service data carried in the at least one first slot in the payload area; wherein the payload region includes blocks of slots at the same position in one or more transmission periods that include the first transmission period to form a slot.
And a processing module 1020, configured to obtain service data carried on the at least one first timeslot according to the clock information.
It should be understood that the specific process of each module to perform the corresponding steps is described in detail in the above method embodiments, and is not described herein for brevity.
Next, a device for transmitting data according to an embodiment of the present application is described in detail with reference to fig. 8. It should be understood that the descriptions of apparatus embodiments and the descriptions of method embodiments correspond to each other. Therefore, reference may be made to the above method embodiments for details, and some of these are not described again for brevity.
Fig. 8 is a schematic structural diagram of a possible device for transmitting data according to an embodiment of the present application, where the communication device is a transmitting device or a receiving device. As shown in fig. 8, the communication device 2000 includes a processor 2010, an optical transceiver 2020, and a memory 2030. Wherein the memory 2030 is optional. The communication device 2000 can be applied to both a transmitting-side device (e.g., a transmitting device) and a receiving-side device (e.g., the receiving device described above).
When applied to a transmitting-side device, the processor 2010 and the optical transceiver 2020 are used to implement a method performed by the transmitting device shown in fig. 7. In implementation, each step of the process flow may implement the method performed by the transmitting device of the above figures through instructions in the form of integrated logic circuits of hardware or software in the processor 2010. The optical transceiver 2020 is configured to receive and process a transmitted data frame for transmission to a peer device (also referred to as a receiving device).
When applied to a receiving side device, the processor 2010 and the optical transceiver 2020 are used to implement a method performed by the receiving device shown in fig. 7. In implementation, each step of the process flow may implement the method performed by the receiving-side device described in the foregoing figures through an integrated logic circuit of hardware or an instruction in software form in the processor 2010. The optical transceiver 2020 is configured to receive a data frame sent by a peer device (also referred to as a transmitting device) and send the data frame to the processor 2010 for subsequent processing.
Memory 2030 is used for storing instructions to cause processor 2010 to perform steps as mentioned in the above figures. And/or memory 2030 is used for storing other instructions to configure parameters of processor 2010 to perform corresponding functions.
It should be noted that, in the hardware configuration diagram of the network device illustrated in fig. 2, the processor 2010 and the memory 2030 may be located in a tributary board, or may be located in a board where the tributaries and the lines are combined. Alternatively, processor 2010 and memory 2030 may each comprise a plurality of boards located on the tributary board and the circuit board, respectively, the two boards cooperating to perform the method steps described above.
It should be noted that the apparatus shown in fig. 8 may also be used to perform the method steps related to the embodiment modification shown in the aforementioned drawings, which are not described herein.
Based on the above embodiments, the present application further provides a computer-readable storage medium. The storage medium has stored therein a software program which, when read and executed by one or more processors, performs the methods provided by any one or more of the embodiments described above. The computer readable storage medium may include: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
Based on the above embodiments, the present application further provides a chip. The chip comprises a processor for implementing the functions involved in any one or more of the embodiments described above, such as obtaining or processing data frames involved in the methods described above. Optionally, the chip further comprises a memory for the necessary program instructions and data to be executed by the processor. The chip may be formed by a chip, or may include a chip and other discrete devices.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the scope of the embodiments of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is also intended to include such modifications and variations.
It should be appreciated that the processor referred to in the embodiments of the present application may be a central processing unit (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (field programmable GATE ARRAY, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be understood that the memory referred to in embodiments of the present application may be volatile memory and/or nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM). For example, RAM may be used as an external cache. By way of example, and not limitation, RAM may include the following forms: static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM) and direct memory bus random access memory (direct rambus 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 components, the memory (storage module) may be integrated into the processor.
Those of ordinary skill in the art will appreciate that the elements and steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application; such implementation should not be considered beyond the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Furthermore, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. For example, the computer may be a personal computer, a server, or a network device, etc. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. For example, the aforementioned usable medium may include, but is not limited to, a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk or an optical disk, etc. various media that can store program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A method of transmitting data, comprising:
Receiving a data frame, wherein the data frame comprises an overhead area and a payload area, a first transmission period in the payload area comprises a plurality of time slot blocks, at least one first time slot block in the plurality of time slot blocks carries clock information, time slot blocks except for the at least one first time slot block in the plurality of time slot blocks carry service data, and the clock information indicates the bit number of the service data carried on the at least one first time slot in the payload area, which is transmitted in the mapping period of the data frame; wherein the payload region comprises blocks of time slots at the same position in one or more transmission periods to form a time slot, and the one or more transmission periods comprise the first transmission period;
and acquiring service data carried on the at least one first time slot according to the clock information.
2. The method of claim 1, wherein the data frame comprises a plurality of transmission periods, and wherein the position of the at least one first time slot within the payload region is determined based on the position of the first transmission period in the plurality of transmission periods.
3. The method of claim 1 or2, wherein the plurality of transmission periods includes a second transmission period, the second transmission period including at least one second time slot block of the plurality of time slot blocks carrying clock information, the clock information carried on the at least one second time slot block indicating a number of bits transmitted by traffic data carried on at least one second time slot of the payload region within a mapping period of the data frame, a position of the at least one first time slot within the payload region being different from a position of the at least one second time slot within the payload region.
4. A method according to claim 2 or 3, characterized in that the overhead area of the data frame comprises a first indication field for indicating the number of the first time slot blocks.
5. The method according to any of claims 2 to 4, wherein the overhead area of the data frame comprises a second indication field for indicating the position of the first slot block within the first transmission period.
6. The method according to any of claims 2 to 5, wherein the number of first time slot blocks is 1.
7. The method according to any of claims 2 to 6, wherein the at least one first slot block is a first n slot blocks and/or a last m slot blocks within the first transmission period.
8. The method according to any of claims 2 to 7, wherein the at least one first time slot block is consecutive in position within the first transmission period when the number of first time slot blocks is greater than 1.
9. The method of claim 1, wherein the at least one first time slot carries service data of k services, the number of first time slot blocks is k, the k first time slot blocks are in one-to-one correspondence with the k services, and each first time slot block in the k first time slot blocks is used for carrying clock information of the corresponding service data.
10. The method of claim 9, wherein the step of determining the position of the substrate comprises,
The overhead area of the data frame includes a third indication field and a fourth indication field, where the third indication field is used to indicate a plurality of time slots corresponding to a first service in the k services, and the fourth indication field is used to indicate a time slot including the first time slot block and/or the first time slot in a plurality of time slots corresponding to the first service.
11. The method according to claim 9 or 10, wherein a first one of the k services corresponds to a plurality of time slots, a first or last one of the plurality of time slots to which the first service corresponds comprising the first time slot block.
12. The method according to any one of claims 1 to 11, further comprising:
and receiving indication information, wherein the indication information is used for indicating that the payload area comprises clock information of service data carried by the payload area.
13. A method of transmitting data, comprising:
Transmitting a data frame, wherein the data frame comprises an overhead area and a payload area, a first transmission period in the payload area comprises a plurality of time slot blocks, at least one first time slot block in the plurality of time slot blocks carries clock information, time slot blocks except for the at least one first time slot block in the plurality of time slot blocks carry service data, and the clock information indicates the bit number of the service data carried on the at least one first time slot in the payload area transmitted in the mapping period of the data frame;
Wherein the payload region includes blocks of slots at the same position in one or more transmission periods that include the first transmission period to form a slot.
14. The method of claim 13, wherein the method further comprises:
And sending indication information, wherein the indication information is used for indicating that the payload area comprises clock information of service data carried by the payload area.
15. An apparatus for transmitting data, comprising: a module for performing the method of any one of claims 1 to 12, or a module for performing the method of claim 13 or 14.
16. An apparatus for transmitting data, comprising at least one processor coupled to at least one memory, the at least one processor configured to execute a computer program or instructions stored in the at least one memory to cause the communication apparatus to perform the method of any one of claims 1 to 12 or the method of claim 13 or 14.
17. A chip comprising a processor and a communication interface for receiving data frames and transmitting to the processor or sending data frames to other communication devices than the communication device comprising the chip, the processor being configured to perform the method of any of claims 1 to 14.
CN202211469131.5A 2022-11-22 2022-11-22 Method and device for transmitting data Pending CN118074850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211469131.5A CN118074850A (en) 2022-11-22 2022-11-22 Method and device for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211469131.5A CN118074850A (en) 2022-11-22 2022-11-22 Method and device for transmitting data

Publications (1)

Publication Number Publication Date
CN118074850A true CN118074850A (en) 2024-05-24

Family

ID=91102707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211469131.5A Pending CN118074850A (en) 2022-11-22 2022-11-22 Method and device for transmitting data

Country Status (1)

Country Link
CN (1) CN118074850A (en)

Similar Documents

Publication Publication Date Title
US11234055B2 (en) Service data processing method and apparatus
CN111865887B (en) Data transmission method and device in optical transport network
CN112042138B (en) Method, device and system for processing low-speed service data in optical transport network
US9307303B2 (en) Method and system for communication in optical communication system
EP2079177A1 (en) Method and device to adjust the signal of the optical transport network
WO2011116595A1 (en) Method and system for establishing end-to-end service and optical transport network
WO2010121520A1 (en) Signal transmission method, apparatus and communication system for optical transport network
WO2020192533A1 (en) Service data processing method and apparatus
CN102201973B (en) A kind of based on multistage multiplexing route control method G.709 and Gateway Network Element
WO2019170064A1 (en) Method, apparatus and system for processing ethernet data in optical network
CN111989933B (en) Data transmission method and device in optical transport network
CN102202247A (en) G.709-based multi-stage multiplexing signaling control method and system
CN118074850A (en) Method and device for transmitting data
WO2019052539A1 (en) Signal processing device and method
WO2016074484A1 (en) Method and apparatus for sending packet service signal, and receiving method and apparatus
CN113573174A (en) Service processing method and device
WO2023231764A1 (en) Service data processing method and device
WO2024051586A1 (en) Method for processing data frame in optical transport network, apparatus and system
WO2023232097A1 (en) Service data processing method and apparatus
WO2024109349A1 (en) Data transmission method and apparatus
WO2023221966A1 (en) Data transmission method and apparatus
WO2024046465A1 (en) Data transmission method and apparatus
CN118074851A (en) Method and device for data transmission
CN118075641A (en) Bandwidth adjustment method and device
CN116489704A (en) Method for transmitting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication