WO2021259121A1 - 一种数据帧的传输方法以及相关设备 - Google Patents
一种数据帧的传输方法以及相关设备 Download PDFInfo
- Publication number
- WO2021259121A1 WO2021259121A1 PCT/CN2021/100534 CN2021100534W WO2021259121A1 WO 2021259121 A1 WO2021259121 A1 WO 2021259121A1 CN 2021100534 W CN2021100534 W CN 2021100534W WO 2021259121 A1 WO2021259121 A1 WO 2021259121A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target
- multiframe
- value
- frame
- frames
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000005540 biological transmission Effects 0.000 title claims abstract description 13
- 230000003287 optical effect Effects 0.000 claims abstract description 35
- 238000012545 processing Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 10
- 238000009432 framing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- FWBHETKCLVMNFS-UHFFFAOYSA-N 4',6-Diamino-2-phenylindol Chemical compound C1=CC(C(=N)N)=CC=C1C1=CC2=CC=C(C(N)=N)C=C2N1 FWBHETKCLVMNFS-UHFFFAOYSA-N 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1652—Optical Transport Network [OTN]
- H04J3/167—Optical Transport Network [OTN] interaction with SDH/SONET, e.g. carrying SDH/SONET frames, interfacing with SDH/SONET
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1652—Optical Transport Network [OTN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/12—Arrangements providing for calling or supervisory signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0053—Allocation of signaling, i.e. of overhead other than pilot signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J2203/00—Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
- H04J2203/0001—Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
- H04J2203/0089—Multiplexing, e.g. coding, scrambling, SONET
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0086—Network resource allocation, dimensioning or optimisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q2213/00—Indexing scheme relating to selecting arrangements in general and for multiplex systems
- H04Q2213/1301—Optical transmission, optical switches
Definitions
- This application relates to the field of optical communications, and in particular to a data frame transmission method and related equipment.
- optical transport network has become the mainstream technology adopted by the transport network due to its high bandwidth, large capacity, high reliability, and low latency.
- MFAS multiframe alignment signal
- MFAS occupies one byte of the OTN frame.
- MFAS indicates different multi-frames through the different number of bits it includes. Different multiframes are used to carry different overhead information.
- MFAS occupies a large number of bits, which causes a waste of OTN bandwidth resources.
- MFAS occupies a large number of bits, which causes a waste of OTN bandwidth resources.
- the complexity of inserting and parsing MFAS in the OTN frame is relatively high, and the efficiency is reduced.
- the embodiment of the present application provides a data frame transmission method and related equipment, which effectively improves the utilization rate of the bandwidth used to indicate the multi-frame.
- an embodiment of the present invention provides a data frame transmission method.
- the method includes: first, the sending device generates a data frame.
- the overhead area of the data frame includes a target bit, and the target bit is used to indicate at least two multi-frames at the same time.
- the multi-frame includes a plurality of consecutive data frames, and the number of the data frames included in different multi-frames is different.
- the different multiframes are used to insert different overhead information.
- the data frame is an OTN data frame of the optical transport network.
- the sending device sends the data frame to the receiving device.
- the target bit in the data frame indicates at least two multi-frames at the same time, which improves the efficiency of indicating the multi-frame.
- the bandwidth resources are effectively saved, and the utilization efficiency of the bandwidth resources used to indicate the multi-frame is improved.
- generating the data frame by the sending device includes: the sending device inserts a plurality of the target bits into the overhead areas of the plurality of data frames included in the first multiframe, respectively.
- the first multiframe is any one of at least two multiframes.
- the values of any two adjacent target bits of the multiple target bits are both the first value, or the values of any two adjacent target bits jump from the first value to the second value. Wherein, the first value and the second value are different.
- the sending device can accurately indicate each data frame located in the same first multiframe.
- the efficiency of the target bit to indicate the first multiframe is improved.
- the sending device generating the data frame includes: the sending device inserts the first target bit and the second target bit into two adjacent first multiframes.
- the first target bit is located in the last data frame of the previous multiframe in two adjacent first multiframes.
- the second target bit is located in the first data frame in the subsequent multi-frames in two adjacent first multi-frames.
- the value of the first target bit is the second value, and the value of the second target bit is the first value.
- an optional implementation manner is to insert the first target bit and the second target bit into two consecutive data frames, the two consecutive multiframes belong to different multiframes, and the first target The value of the bit is the second value, and the value of the second target bit is the first value.
- the sending device accurately indicates the frame boundary of the first multi-frame by jumping from the first target bit whose value is the second value to the second target bit whose value is the first value.
- At least two multi-frames further include a second multi-frame
- the second multi-frame includes a plurality of first multi-frames
- generating a data frame by the sending device includes: determining a target number, the target The number is used to indicate the order of the target first multiframe in the second multiframe.
- the target first multiframe is one of the multiple first multiframes included in the second multiframe.
- the value of the target bit included in the first multiframe of the target is determined according to the number of targets, and the value of the target bit is also used to indicate the frame boundary of the second multiframe.
- the target number is N, and N is a positive integer greater than or equal to 1.
- Determining the value of the target bit included in the target first multiframe according to the number of targets includes: determining that among the multiple target bits included in the target first multiframe, the values of the first N target bits are all the first value.
- the target number is N, and N is a positive integer greater than or equal to 1.
- Determining the value of the target bit included in the first multiframe of the target according to the number of targets includes: determining that among the multiple target bits included in the first multiframe of the target, the values of the first C target bits are all the first value, The C is an integer multiple of N.
- the frame boundary of the second multi-frame includes a multi-frame with the smallest number of target bits that takes the first value.
- the frame boundary of the second multi-frame also includes the multi-frame with the largest number of the target bits whose value is the first value.
- the sending device accurately indicates the frame boundary of the second multiframe through the target bit, which improves the efficiency of indicating the second multiframe by the target bit.
- the number of bits of the target bit is 1.
- the indication of at least two multi-frames can be realized by only having a target bit with a size of 1 bit, which improves the efficiency of indicating the multi-frames.
- the bandwidth resource used to indicate the multi-frame is saved.
- an embodiment of the present invention provides a data frame transmission method.
- the method includes: first, a receiving device receives multiple data frames.
- the overhead area of each data frame includes the target bit.
- the target bit is used to indicate at least two multi-frames at the same time.
- the multi-frame includes a plurality of consecutive data frames, and the number of data frames included in different multi-frames is different. Different multiframes are used to insert different overhead information.
- the data frame is an OTN data frame of the optical transport network.
- the receiving device obtains the target bit from each data frame.
- the receiving device determines at least two multi-frames among multiple data frames according to the target bit.
- the receiving device can determine at least two multi-frames only by the target bit, which improves the efficiency of the receiving device to determine at least two multi-frames. Moreover, the accuracy of the framing of at least two multi-frames by the receiving device is improved. The bandwidth resources are effectively saved, and the utilization efficiency of the bandwidth resources used to indicate the multi-frame is improved.
- the receiving device determining the at least two multiframes among the multiple data frames according to the target bit includes: determining the first multiframe among the multiple data frames.
- the first multi-frame is any one of at least two multi-frames, and among the multiple target bits included in the first multi-frame, the value of any two adjacent target bits is the first value, Or, the value of any two adjacent target bits jumps from a first value to a second value, and the first value and the second value are different from each other.
- the receiving device determining the at least two multi-frames in the multiple data frames according to the target bits includes: determining adjacent first target bits in the multiple data frames And the second target bit, the value of the first target bit is the second value, and the value of the second target bit is the first value. It is determined that the first target bit and the second target bit are located in two adjacent first multi-frames. The first target bit is located in the last data frame of the preceding multi-frame in two adjacent first multi-frames, and the second target bit is located in the next multi-frame of the two adjacent first multi-frames. Within the first data frame.
- the receiving device can accurately frame the first multiframe based on the target bit, which improves the efficiency and accuracy of framing the first multiframe.
- the at least two multiframes further include a second multiframe, and the second multiframe includes a plurality of first multiframes.
- the receiving device determining at least two multi-frames in the multiple data frames according to the target bit includes: determining the target number according to the value of the target bit included in the target first multi-frame. The target number is used to indicate the order of the target first multiframe in the second multiframe.
- the target first multiframe is one of the multiple first multiframes included in the second multiframe.
- that the receiving device determines the target number according to the value of the target bit included in the target first multiframe includes: if among the multiple target bits included in the target first multiframe, The values of the target bits located in the first N are all the first value, and it is determined that the number of targets is equal to N.
- that the receiving device determines the target number according to the value of the target bit included in the target first multiframe includes: if among the multiple target bits included in the target first multiframe, The values of the first C target bits are all the first value, and the quotient of the target number equal to C is determined.
- the receiving device determines the at least two multi-frames in the multiple data frames according to the target bit, including: determining the frame boundary of the second multi-frame, and the frame of the second multi-frame The boundary includes a multiframe with a minimum target number, and the frame boundary of the second multiframe also includes a multiframe with a maximum target number.
- the receiving device can accurately determine the second multi-frame for framing based on the target bit, which improves the efficiency and accuracy of framing the second multi-frame.
- the number of bits of the target bit is 1.
- the number of bits used to indicate the target bits of at least two multi-frames is small, which effectively reduces the difficulty of framing at least two multi-frames based on the target bits by the receiving device, and improves the efficiency of framing.
- an embodiment of the present application provides a digital processing chip.
- the chip includes a processor and a memory.
- the memory and the processor are interconnected by wires.
- the memory stores instructions.
- the processor is used to execute the first Aspect or the method shown in the second aspect.
- an embodiment of the present application provides a sending device including a processor and a memory, wherein the processor and the memory are interconnected, and the processor calls the program code in the memory to execute any of the above-mentioned first aspect.
- a sending device including a processor and a memory, wherein the processor and the memory are interconnected, and the processor calls the program code in the memory to execute any of the above-mentioned first aspect.
- an embodiment of the present application provides a receiving device, including a processor and a memory, where the processor and the memory are interconnected, and the processor calls the program code in the memory to execute any of the above-mentioned second aspect.
- a receiving device including a processor and a memory, where the processor and the memory are interconnected, and the processor calls the program code in the memory to execute any of the above-mentioned second aspect.
- an embodiment of the present invention provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the method shown in any one of the first aspect or the second aspect.
- embodiments of the present invention provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method shown in any one of the first aspect or the second aspect.
- FIG. 1 is a schematic diagram of a structure of an optical network provided by an embodiment of the present invention
- FIG. 2 is a structural example diagram of an embodiment of a data frame provided by this application.
- FIG. 3 is a flowchart of an embodiment of a method for transmitting a data frame provided by an embodiment of the present invention
- FIG. 5 is an example diagram of the second embodiment of the target bit value of the data frame provided by this application.
- FIG. 6 is an example diagram of a third embodiment of the target bit value of the data frame provided by this application.
- FIG. 7 is an example diagram of a fourth embodiment of the target bit value of the data frame provided by this application.
- FIG. 8 is a structural example diagram of the first embodiment of the network device provided by this application.
- FIG. 9 is a structural example diagram of a second embodiment of a network device provided by this application.
- Fig. 10 is a structural example diagram of the third embodiment of the network device provided by the present application.
- FIG. 1 is a schematic diagram of a structure of an optical network provided by an embodiment of the present invention.
- the data frame transmission method provided in this application is suitable for optical networks, such as OTN.
- An OTN is usually formed by connecting multiple network devices through optical fibers, and can be composed of different topology types such as linear, ring, and mesh according to specific needs.
- the OTN 200 shown in Figure 1 is composed of 8 OTN devices 201, namely devices A-H.
- 202 indicates optical fiber, which is used to connect two devices.
- 203 indicates the customer service interface, which is used to receive or send customer service data.
- an OTN device may have different functions.
- OTN equipment is divided into optical layer equipment, electrical layer equipment, and photoelectric hybrid equipment.
- Optical layer equipment refers to equipment capable of processing optical layer signals, such as optical amplifier (optical amplifier, OA), optical add-drop multiplexer (optical add-drop multiplexer, OADM).
- OA may also be called an optical line amplifier (OLA), which is mainly used to amplify optical signals to support longer distances under the premise of ensuring the specific performance of optical signals.
- OVA optical line amplifier
- OADM is used to spatially transform the optical signal so that it can be output from different output ports (sometimes called directions).
- Electrical layer equipment refers to equipment capable of processing electrical layer signals, for example: equipment capable of processing OTN signals.
- Optoelectronic hybrid equipment refers to equipment capable of processing optical layer signals and electrical layer signals. It should be noted that, according to specific integration needs, one OTN device can integrate multiple different functions. The technical solutions provided in this application are applicable to OTN devices with different forms and integration levels that include electrical layer functions.
- the data frame in the embodiment of the present application is an OTN frame as an example for illustration.
- the OTN frame is used to carry various service data and provide rich management and monitoring functions.
- the OTN frame may be an optical service unit (OSU), ODUk, ODUCn, ODUflex, or an optical channel transmission unit k (optical transport unit k, OTUk), OTUCn, or a flexible OTN (FlexO) frame.
- ODU frame includes ODU frame and OTU overhead;
- Cn means variable rate, specifically A rate of positive integer multiples of 100Gbps.
- an ODU frame refers to any of ODUk, ODUCn, or ODUflex
- an OTU frame refers to any of OTUk, OTUCn, or FlexO. It should also be pointed out that with the development of OTN technology, a new type of OTN frame may be defined, which is also applicable to this application.
- data frame in this embodiment is an optional example and is not limited.
- the data frame provided in this application can also be applied to passive optical networks (PON) and flexible Ethernet (flexible Ethernet). ethernet, FlexE).
- the OTN frame may also be an optical service unit flex (OSUflex).
- OSUflex optical service unit flex
- the name OSU is only an example, and should not constitute a limitation on the frame structure defined in this application.
- the name can also be replaced with other names such as low-rate frame, low-rate service frame, or optical service data unit frame.
- FIG. 2 is a schematic diagram of a possible OSU frame structure. This embodiment does not limit the specific number of overhead areas and payload areas included in the OSU frame. As shown in FIG. 2, the OSU includes one overhead area and multiple payload areas as an example for illustration.
- the OSU frame has 192 bytes, of which the overhead area is 7 bytes and the payload area is 185 bytes.
- Various overhead information needs to be inserted in the overhead area, such as general overhead, mapping overhead, and 1-byte 8-bit cyclic redundancy check (cyclic redundancy check-8 bits, CRC8).
- the general overhead may include overhead information as shown below:
- VER Version number
- tributary port number tributary port number
- TPN general communication channel
- general communication channel general communication channel
- GCC general communication channel
- FT tandem connection monitoring overhead
- path monitoring path monitoring, PM
- the byte size of the overhead area of the OSU frame is limited, but more overhead information needs to be inserted.
- the purpose of the method provided in this application is how to improve the efficiency of inserting overhead information into the overhead area of the OSU frame.
- FIG. 3 is a flowchart of steps in an embodiment of a method for transmitting a data frame provided by an embodiment of the present invention.
- the sending device and the receiving device that execute the method shown in this embodiment are two interconnected OTN devices included in the OTN 201 shown in FIG.
- the sending device and the receiving device may also be two devices in the PON that need to exchange data frames, for example, two devices that need to exchange data frames in FlexE.
- Step 301 The sending device determines at least two pieces of overhead information.
- the number of overhead information sent by the sending device to the receiving device through the multiframe shown in this embodiment is not limited, as long as the number of overhead information sent through the multiframe is two or more.
- the sending device needs to send the first overhead information and the second overhead information to the receiving device, and the number of bits occupied by the second overhead information is greater than the number of bits occupied by the first overhead information.
- the first overhead information is automatic protection switching (APS) or delay measurement (DM) in TCM or PM shown in FIG. 2.
- the second overhead information is a trail trace identifier (TTI).
- Step 302 The sending device generates multiple data frames.
- the sending device In order for the sending device to send the first overhead information and the second overhead information shown above to the receiving device, the sending device generates multiple data frames, and determines the first multiframe and the second multiframe among the multiple data frames. Wherein, the multiple data frames included in the first multiframe are used to insert the first overhead information, and the multiple data frames included in the second multiframe are used to insert the second overhead information.
- the overhead area of each data frame included in the first multiframe includes the first field.
- the overhead area of each data frame included in the second multiframe includes a second field.
- the sending device inserts the second overhead information into the second field.
- the sending device indicates to the receiving device the first multiframe into which the first overhead information has been inserted and the second multiframe into which the second overhead information has been inserted, and the sending device needs to insert the target bit into the data during the process of generating multiple data frames In the overhead area of the frame.
- the target bit is used to indicate the first multiframe and the second multiframe to the receiving device.
- the receiving device can parse the first overhead information from the first multiframe and parse the second overhead information from the second multiframe according to the target bits.
- the position of the target bit in the overhead area of the data frame is different from the first field and the second field.
- the target bit may be located in TCM or PM, and at a position different from the first field and the second field.
- This embodiment does not limit the specific bit number of the target bit, as long as the target bit can indicate the first multiframe and the second multiframe at the same time.
- the number of target bits shown in this embodiment is less than the number of bits occupied by MFAS in the existing OTN frame.
- the number of target bits shown in this embodiment can be any integer between less than 8 and greater than or equal to 1.
- the number of bits of the target bit is 1, the 1-bit target bit can indicate the first multiframe and the second multiframe. It can be seen that when the target bit can indicate the first multiframe and the second multiframe at the same time, the efficiency of inserting the overhead information in the overhead area of the data frame is effectively improved, and bandwidth resources are effectively saved.
- the target bit In order to achieve the purpose of the target bit being able to indicate the first multiframe and the second multiframe at the same time, it is necessary that the target bit can achieve the following two purposes:
- the target bit can indicate the frame boundary of the first multiframe.
- the frame boundary of the first multiframe is the first data frame and the last data frame among the consecutive multiple data frames included in the first multiframe.
- the target bit can indicate the frame boundary of the second multiframe.
- the frame boundary of the second multiframe is the first first multiframe and the last first multiframe among the consecutive multiple first multiframes included in the second multiframe.
- FIG. 4 is an example diagram of the first embodiment of the target bit value of the data frame provided by this application.
- the first multi-frame shown in this embodiment includes M consecutive data frames, that is, the first multi-frame includes the first data frame, the second data frame, and the M-th data frame.
- This embodiment does not limit the specific value of M, as long as M is a positive integer greater than 1.
- the sending device sets the value of the target bit of the first data frame included in the first multiframe to the first value.
- This embodiment does not limit the first value. For example, if the number of bits of the target bit is 1, the first value may be "0" or "1". For another example, if the number of bits of the target bit is 2, the first value may be "01" and so on.
- the sending device sets the value of the target bit of the last data frame included in the first multiframe to the second value.
- the first numerical value and the second numerical value shown in this embodiment are different from each other, and this embodiment does not limit the second numerical value. For example, if the first numerical value is "1", the second numerical value is "0".
- the values of the target bits in the two data frames located at the frame boundary are different from each other.
- the value of the target bit in the first data frame is the same, and the target bit in the last data frame is also the same.
- the value of the target bit of the data frame located between the frame boundaries included in the first multiframe has two cases: in one case, the values of two adjacent target bits included in the first multiframe are both the first multiframe. A value. In another case, the values of two adjacent target bits included in the first multiframe are transitioned from a first value to a second value. Wherein, two adjacent target bits included in the first multiframe are located in the overhead area of two adjacent data frames.
- the sending device jumps from the second value to the first value through the target bit, so as to instruct the receiving device to identify the frame boundary of two adjacent first multi-frames.
- the two adjacent first multi-frames (401 and 402) shown in FIG. 4 are taken as an example. Among them, the first multiframe 401 is the preceding multiframe of two adjacent multiframes, and the second multiframe 402 is the subsequent multiframe of the two adjacent multiframes.
- the sending device determines the first target bit and the second target bit.
- the first target bit is the target bit of the last data frame (that is, the fifth data frame) of the first multi-frame 401.
- the second target bit is the target bit of the first data frame of the first multiframe 402.
- the sending device sets the value of the first target bit to the second value.
- the sending device sets the value of the second target bit to the first value. It can be seen that the receiving device can determine that the data frame including the first target bit is the first multi-frame 401 based on the jump from the first target bit with the first value to the second target bit with the second value. The last data frame in. It may also be determined that the data frame including the second target bit is the first data frame of the first multi-frame 402.
- the sending device can indicate the frame boundary of the second multiframe according to the value of each target bit in each first multiframe. Two ways of indicating the frame boundary of the second multiframe are described as follows:
- Method 1 First, the sending device determines the target number N.
- the target number N is used to indicate the order of the first multiframe in the second multiframe.
- the first multi-frame 401 is the first multi-frame ranked first in the second multi-frame, and the target number N of the first multi-frame 401 is 1.
- the first multi-frame 404 is the first multi-frame ranked last in the second multi-frame, and the target number N of the first multi-frame 404 is 4.
- the sending device sets the value of the first N target bits among all target bits included in the first multiframe to be the first value. For example, the sending device determines that the value of the first target bit of the first multiframe 401 ranked first in the second multiframe is the first value, and the values of the remaining target bits are all the second value. For another example, the sending device determines that the values of the first 4 target bits of the first multiframe 404 ranked as the 4th in the second multiframe are all the first value, and the values of the remaining target bits are all the second value .
- the number of target bits whose value is the first value included in each first multiframe shown in this manner indicates the order of each first multiframe in the second multiframe.
- the receiving device can then determine the frame boundary of the second multiframe according to the order of each first multiframe in the second multiframe.
- the frame boundary of the second multiframe includes the multiframe with the smallest number of target bits taking the first value (the first multiframe among the multiple first multiframes included in the second multiframe), and the second The frame boundary of the multiframe also includes the multiframe with the largest number of target bits whose value is the first value (the last first multiframe among the multiple first multiframes included in the second multiframe).
- the order of each first multiframe in the second multiframe is represented by the increasing order of the target bits included in the first multiframe with a value of the first value as an example for exemplification. Not limited.
- the order of each first multiframe in the second multiframe may also be represented by the descending order of the target bits that are included in the first multiframe and the value is the first value.
- Manner 2 First, the sending device determines the target number N. For the specific process, please refer to the method 1 for details.
- Step 303 The sending device sends a data frame to the receiving device.
- Step 304 The receiving device obtains the target bit from each data frame.
- the receiving device presets the search period.
- the receiving device continuously obtains M data frames in the search period. From the foregoing description, it can be seen that the first multiframe includes M data frames. In this embodiment, the receiving device continuously obtains M data frames in the search period as an example for exemplification.
- the receiving device acquires the target bits included in each data frame in the M data frames acquired in the search period.
- the sending device and the receiving device may pre-determine that, in the TCM of the overhead area of each data frame, the target bit is carried by a preset field.
- the description of the specific location of the preset field in the overhead area of the data frame in this embodiment is an optional example and is not limited.
- Step 305 The receiving device determines at least two multiframes according to the target bits.
- the multiframes sent by the sending device to the receiving device are the first multiframe and the second multiframe as an example.
- the following first describes the process for the receiving device to determine the first multiframe:
- the receiving device can identify the frame boundary of each first multi-frame according to the value of the target bit of any two adjacent data frames. Among them, if in the first search period, among the two target bits included in the two consecutively searched data frames, the value of the previous target bit is the second value, and the value of the next target bit is the second value. If the value is the first value, it means that the two data frames including the two target bits are located at the frame boundary of the two first multi-frames.
- the receiving device determines that the values of the two target bits included in the two consecutively searched data frames are both the first value or the second value, it means that the two data frames are located in the same first multiframe. Moreover, if the receiving device determines that among the two target bits included in the two consecutively searched data frames, the value of the previous target bit is the first value, and the value of the next target bit is the second value. The numerical value also shows that the two data frames including the two target bits are located in the same first multi-frame.
- the receiving device searches for two data frames in which the first target bit with the value of the second value jumps to the second target bit with the value of the first value, and it can be determined that there is a gap between the two first multi-frames. The jump.
- the receiving device searches for the first target bit whose value is the second value to the second target bit whose value is the first value. After the jump of, wait for M frames, and identify whether there is a jump from the second first target bit whose value is the second value to the second target bit whose value is the first value. If it does, it is determined that no bit error has occurred. That is, it can be determined that the data frame including the first target bit is the last data frame of the first multiframe. It may also be determined that the data frame including the second target bit is the first data frame of the first multiframe. By analogy, until the receiving device can sequentially determine the first data frame and the last data frame included in each first multiframe.
- the frame boundary of the second multiframe can be determined according to the target bits included in each first multiframe with the value of the first value. Specifically, first, the receiving device determines one first multiframe as the target first multiframe among the multiple first multiframes. Secondly, the receiving device determines the number of targets according to the target bits included in the target first multiframe whose value is the first value. For example, based on the method 1 shown in step 302, if the number of target bits included in the target first multi-frame with a value of the first value is N, then it is determined that the number of targets is N.
- the target number is used to indicate the order of the first multiframe in the second multiframe.
- the receiving device may obtain the frame number of the first multiframe included in each second multiframe in advance, and the receiving device may determine the frame boundary of the second multiframe.
- the number of targets of each first multiframe included in the second multiframe is from small to large in sequence. If the receiving device detects that the target number of two adjacent first multiframes has jumped from small to large, it indicates that the two adjacent first multiframes are located in the same second multiframe. If the receiving device detects that the target number of two adjacent first multiframes has jumped from large to small, it means that these two adjacent first multiframes are located in two adjacent second multiframes. And among the two adjacent first multiframes, the first multiframe with a larger target number is the last first multiframe in the previous second multiframe. The first multiframe with the smaller number of targets is the first first multiframe in the subsequent second multiframe.
- the target number of each first multiframe included in the second multiframe is sequentially from small to large as an example for illustration.
- the number of targets in each first multiframe included in the second multiframe can also be from large to small in sequence, as long as the number of targets included in each first multiframe can indicate that each first multiframe is in the first multiframe.
- the sorting in the second multi-frame is sufficient.
- the number of targets included in the first multi-frames 401, 402, 403, and 404 increases sequentially, which means that the first multi-frames 401, 402, 403, and 404 are located in the same second multi-frame.
- the target number N included in the first multiframe 404 is equal to 4
- the target number N of the first multiframe 405 is equal to 1, indicating that the first multiframe 404 is the last first multiframe in the previous second multiframe.
- Frame, and the first multi-frame 405 is the first first multi-frame in the subsequent second multi-frame.
- Step 306 The receiving device parses out the overhead information from at least two multi-frames.
- the first multiframe is used to carry first overhead information
- the second multiframe is used to carry second overhead information.
- the receiving device can parse out the first overhead information from each of the determined first multiframes. From each of the determined second multiframes, the second overhead information is parsed.
- At least two multi-frames are indicated at the same time through the target bit located in the data frame.
- the efficiency of indicating multi-frames is improved, and the complexity of indicating multi-frames is reduced. Improve the efficiency and accuracy of framing the multi-frame through the target bit.
- the number of target bits is smaller than the number of existing bits used to indicate multi-frame information (such as MFAS), which effectively saves bandwidth resources and improves the utilization efficiency of bandwidth resources used to indicate multi-frames.
- FIG. 5 is an example diagram of the second embodiment of the target bit value of the data frame provided by this application.
- the first overhead information is APS and the second overhead information is TTI as an example for illustration.
- the first multiframe used to carry the first overhead information needs to pass through the 32 data frames included in it to be able to carry an APS in its entirety.
- the second multiframe used to carry the second overhead information needs to pass through the 16 first multiframes included therein, and a total of 512 data frames can carry one TTI completely.
- the sending device determines that each first multiframe includes 32 data frames, and each second multiframe includes 16 first multiframes.
- the number of bits of the target bit is 1 as an example for illustration.
- the number of target bits with a value of "1” is 1, and the number of target bits with a value of "0" is 31.
- the value of the target bit of the first data frame included in the first multiframe is "1"
- the value of the target bit of the second data frame to the target bit of the 32nd data frame is "0".
- the number of target bits with a value of "1" is 2, and the number of target bits with a value of "0" is 30.
- the value of the target bit of the first data frame to the second data frame included in the first multiframe is "1".
- the value of the target bit of the third data frame included in the first multiframe up to the target bit of the 32nd data frame is "0".
- the number of target bits with a value of "1” is 16, and the number of target bits with a value of "0" is 16.
- the value of the target bit of the first data frame included in the first multiframe up to the target bit of the 16th data frame is "1".
- the value of the target bit of the 17th data frame up to the target bit of the 32nd data frame is "0".
- the following describes how the sending device inserts the first overhead information in the first multiframe:
- the sending device inserts an APS used to indicate the request and/or status in the first field of the first data frame to the fourth data frame included in the first multiframe.
- the APS indicating the protection type is inserted in the first field of the fifth data frame to the eighth data frame included in the first multiframe.
- the APS used to indicate the request signal is inserted in the first field of the 9th to 16th data frame included in the first multiframe.
- the APS used to indicate the bridge signal is inserted in the first field of the 17th to the 24th data frame included in the first multiframe.
- An APS used to indicate user response (RES) and/or reservation is inserted into the first field of the 25th data frame to the 32nd data frame included in the first multiframe. It can be seen that a complete APS is carried through the first field of each data frame included in a complete first multiframe.
- the sending device inserts the second field for a total of 256 data frames included in the first multiframe to the eighth first multiframe included in the second multiframe for Indicates the TTI of the source access point identifier (SAPI).
- SAPI source access point identifier
- the sending device inserts a destination access point identifier into the second field of the 256 data frames included in the 9th first multiframe to the 16th first multiframe included in the second multiframe.
- identifier, DAPI TTI. It can be seen that the second field of each data frame included in a completed second multiframe carries a complete TTI.
- each first multiframe can be determined from the multiple data frames. That is, when the receiving device determines that the value of the target bit changes from "0" to "1" (ie transition from 0 to 1), it means that the data frame including these two target bits is located at the frame boundary of the first multiframe.
- the process please refer to step 304 to step 305 shown in FIG. 3, and the details are not described in detail.
- the specific process please refer to step 304 to step 305 shown in FIG. 3, and the details are not described in detail.
- the receiving device determines the first multiframe and the second multiframe
- the first overhead information can be parsed in the first multiframe
- the second overhead information can be parsed in the second multiframe
- FIG. 6 is an example diagram of a third embodiment of the value of the target bit of the data frame provided by this application.
- each first multi-frame includes 32 data frames
- each second multi-frame includes 8 first multi-frames as an example for illustration.
- each target bit included in each first multiframe shown in FIG. 6 please refer to FIG. 5, and will not be repeated.
- FIG. 7 is an example diagram of a fourth embodiment of the target bit value of the data frame provided by this application.
- each first multi-frame includes 32 data frames
- each second multi-frame includes 8 first multi-frames as an example for illustration.
- the number of bits of the target bit is 1 as an example for illustration.
- the number of target bits with a value of "1” is two.
- the number of target bits with a value of "0” is 30.
- the value of the target bit of the first data frame to the second data frame included in the first multiframe is "1”
- the target bit of the third data frame up to the target bit of the 32nd data frame is selected The values are all "0".
- the number of target bits with a value of "1" is 16.
- the number of target bits whose value is “0” is 16.
- the value of the target bit of the first data frame included in the first multiframe up to the target bit of the 16th data frame is "1"
- the target bit of the 17th data frame up to the target of the 32nd data frame The values of the bits are all "0".
- the number of target bits with a value of "1" is twice the order of the first multiframe in the second multiframe.
- the receiving device determines the first multiframe, it can divide the data of the target bit whose value is "1" included in the first multiframe by 2, and the obtained quotient is that the first multiframe is in the second multiframe. Sequence of multi-frames.
- FIG. 8 is a structural example diagram of an embodiment of the network device provided by the application.
- the network device 800 shown in this embodiment includes a processor 801 and a memory 802. Among them, the memory 802 is used to store program instructions and data.
- the network device can be either the sending device shown in the above embodiment or the receiving device.
- the processor 801 When the network device 800 is used as a sending device, the processor 801 is configured to implement steps 301 to 303 shown in FIG. 3. It should be clarified that when the processor 801 executes the sending step shown in step 303, the processor 801 may send the data frame to the optical transceiver, so that the optical transceiver sends the data frame to the receiving device.
- the processor 801 When the network device 800 serves as a receiving device, the processor 801 is used to implement steps 304 to 306 shown in FIG. 3. It should be clarified that the data frame obtained by the processor 801 can be received by an optical transceiver located in the receiving device, and the optical transceiver then sends the received data frame to the processor 801.
- the processor 801 in the embodiment of the present application may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, which can implement or execute The methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
- the general-purpose processor may be a microprocessor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software units in the processor.
- the program code executed by the processor 801 for implementing the foregoing method may be stored in the memory 802.
- the memory 802 is coupled with the processor 801.
- the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
- the processor 801 may cooperate with the memory 802 to operate.
- the memory 802 may be a non-volatile memory, such as a hard disk drive (HDD), etc., and may also be a volatile memory (volatile memory), such as a random-access memory (RAM).
- the memory 802 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
- FIG. 9 provides schematic diagrams of two possible network devices.
- the network device 900 shown in FIG. 9 includes a generating unit 901 and a sending unit 902. Wherein, the generating unit 901 is configured to execute step 301 to step 302 shown in FIG. 3.
- the sending unit 902 is configured to execute step 303 shown in FIG. 3.
- the network device 1000 shown in FIG. 10 includes a receiving unit 1001 and a processing unit 1002.
- the receiving unit 1001 is used to receive a data frame from a sending device.
- the processing unit is used to execute step 304 to step 306 shown in FIG. 3.
- network device 900 and the units included in the network device 1000 may be implemented by one or more processors.
- the embodiments of the present application also provide a computer-readable storage medium in which a software program is stored, and the software program can be read and executed by one or more processors to implement the above-mentioned embodiments.
- the computer-readable storage medium may include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk, or optical disk and other media that can store program codes.
- the embodiments of the present application also provide a chip that includes a processor, which is used to implement the functions involved in any one or more of the above embodiments, such as acquiring or processing data frames involved in the above methods .
- the chip also includes memory and memory for necessary program instructions and data to be executed by the processor.
- the chip can be composed of a chip, or it can include a chip and other discrete devices.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
本发明实施例公开了一种数据帧的传输方法以及相关设备,有效地提高了用于指示复帧的带宽资源的利用效率。所述方法包括:首先,生成数据帧,所述数据帧的开销区中包括目标比特,所述目标比特同时用于指示至少两个复帧,所述复帧包括多个连续的数据帧,且不同的所述复帧所包括的所述数据帧的数量不同,不同的所述复帧用于插入不同的开销信息,所述数据帧为光传送网OTN数据帧;其次,发送所述数据帧。
Description
本申请要求于2020年6月22日提交中国国家知识产权局、申请号为202010575556.9、申请名称为“一种数据帧的传输方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及光通信领域,尤其涉及一种数据帧的传输方法以及相关设备。
光传送网(optical transport network,OTN)由于其高带宽,大容量,高可靠,低时延等特性,已经成为传送网采用的主流技术。
为扩展OTN帧用于承载开销的空间,会在OTN帧中设置复帧定位信号(multiframe alignment signal,MFAS)。MFAS占用OTN帧的一个字节。MFAS通过其所包括的不同数量的比特,指示不同的复帧。而不同的复帧用于承载不同的开销信息。
但是,MFAS占用的比特数较多,造成OTN的带宽资源的浪费。而且通过具有不同数量的比特对不同的复帧的指示,导致在OTN帧中插入和解析MFAS的复杂度较高,降低了效率。
发明内容
本申请实施例提供了一种数据帧的传输方法以及相关设备,有效地提高了用于指示复帧的带宽的利用率。
第一方面,本发明实施例提供了一种数据帧的传输方法。该方法包括:首先,发送设备生成数据帧。该数据帧的开销区中包括目标比特,该目标比特同时用于指示至少两个复帧。该复帧包括多个连续的数据帧,且不同的该复帧所包括的该数据帧的数量不同。不同的该复帧用于插入不同的开销信息。该数据帧为光传送网OTN数据帧。其次,发送设备向接收设备发送该数据帧。
可见,通过位于数据帧中的目标比特同时指示至少两个复帧,提高了指示复帧的效率。降低了对复帧进行指示的复杂度。有效地节省了带宽资源,提高了用于指示复帧的带宽资源的利用效率。
基于第一方面,一种可选地实现方式,发送设备生成数据帧包括:发送设备将多个该目标比特,分别插入第一复帧所包括的多个该数据帧的开销区中。该第一复帧为至少两个复帧中的任一个。该多个目标比特任意相邻的两个目标比特的取值均为第一数值,或,任意相邻的两个目标比特的取值由第一数值跳变至第二数值。其中,该第一数值和该第二数值不同。
可见,基于目标比特的取值,发送设备能够准确的指示位于同一第一复帧内的各个数据帧。提高了目标比特对第一复帧进行指示的效率。
基于第一方面,一种可选地实现方式,发送设备生成数据帧包括:发送设备将第一目标比特和第二目标比特分别插入两个相邻的第一复帧中。该第一目标比特位于两个相邻的第一复帧中在先的复帧的最后一个数据帧内。该第二目标比特位于两个相邻的第一复帧中 在后的复帧中的第一个数据帧内。第一目标比特的取值为第二数值,第二目标比特的取值为第一数值。
基于第一方面,一种可选地实现方式,将第一目标比特和第二目标比特插入连续的两个数据帧中,该连续的两个复帧分别属于不同的复帧,该第一目标比特的取值为该第二取值,该第二目标比特的取值为该第一取值。
可见,发送设备通过取值为第二数值的第一目标比特向取值为第一数值的第二目标比特的跳变,准确地指示了第一复帧的帧边界,提高了目标比特对第一复帧进行指示的效率。
基于第一方面,一种可选地实现方式,至少两个复帧还包括第二复帧,第二复帧包括多个第一复帧,发送设备生成数据帧包括:确定目标数目,该目标数目用于指示目标第一复帧在该第二复帧中的排序。该目标第一复帧为该第二复帧所包括的多个该第一复帧中的一个。根据该目标数目确定该目标第一复帧所包括的该目标比特的取值,该目标比特的取值还用于指示该第二复帧的帧边界。
基于第一方面,一种可选地实现方式,目标数目为N,N为大于或等于1的正整数。根据目标数目确定目标第一复帧所包括的目标比特的取值包括:确定目标第一复帧所包括的多个目标比特中,位于前N个的目标比特的取值均为第一数值。
基于第一方面,一种可选地实现方式,目标数目为N,N为大于或等于1的正整数。根据目标数目确定目标第一复帧所包括的目标比特的取值包括:确定目标第一复帧所包括的多个目标比特中,位于前C个的目标比特的取值均为第一数值,该C为N的整数倍。
基于第一方面,一种可选地实现方式,第二复帧的帧边界包括取值为第一数值的该目标比特的数量最少的复帧。该第二复帧的帧边界还包括取值为第一数值的该目标比特的数量最多的复帧。
可见,发送设备通过目标比特准确地指示第二复帧的帧边界,提高了目标比特对第二复帧进行指示的效率。
基于第一方面,一种可选地实现方式,该目标比特的比特数为1。
可见,通过仅具有1比特大小的目标比特即可实现对至少两个复帧的指示,提高了对复帧进行指示的效率。节省了用于对复帧进行指示的带宽资源。
第二方面,本发明实施例提供了一种数据帧的传输方法,该方法包括:首先,接收设备接收多个数据帧。各数据帧的开销区中包括目标比特。该目标比特同时用于指示至少两个复帧。该复帧包括多个连续的该数据帧,且不同的复帧所包括的数据帧的数量不同。不同的复帧用于插入不同的开销信息。该数据帧为光传送网OTN数据帧。其次,接收设备从各数据帧中获取目标比特。最后,接收设备根据目标比特,在多个数据帧中确定至少两个复帧。
可见,接收设备仅通过目标比特即可确定至少两个复帧,提高了接收设备确定至少两个复帧的效率。而且提高了接收设备对至少两个复帧进行定帧准确性。有效地节省了带宽资源,提高了用于指示复帧的带宽资源的利用效率。
基于第二方面,一种可选地实现方式中,接收设备根据目标比特,在该多个数据帧中确定该至少两个复帧包括:在多个数据帧中确定第一复帧。该第一复帧为至少两个复帧中 的任一个,且该第一复帧所包括的多个该目标比特中,任意相邻的两个该目标比特的取值均为第一数值,或,该任意相邻的两个该目标比特的取值由第一数值跳变至第二数值,该第一数值和该第二数值互不相同。
基于第二方面,一种可选地实现方式中,接收设备根据目标比特,在该多个数据帧中确定该至少两个复帧包括:在多个数据帧中确定相邻的第一目标比特和第二目标比特,该第一目标比特的取值为第二数值,第二目标比特的取值为第一数值。确定第一目标比特和第二目标比特位于两个相邻的第一复帧中。第一目标比特位于两个相邻的第一复帧中在先的复帧的最后一个数据帧内,第二目标比特位于该两个相邻的第一复帧中在后的复帧中的第一个数据帧内。
可见,接收设备基于目标比特能够准确地对第一复帧进行定帧,提高了对第一复帧进行定帧的效率和准确性。
基于第二方面,一种可选地实现方式中,至少两个复帧还包括第二复帧,第二复帧包括多个第一复帧。接收设备根据目标比特,在多个数据帧中确定至少两个复帧包括:根据目标第一复帧所包括的目标比特的取值确定目标数目。该目标数目用于指示该目标第一复帧在第二复帧中的排序。该目标第一复帧为第二复帧所包括的多个该第一复帧中的一个。
基于第二方面,一种可选地实现方式中,接收设备根据目标第一复帧所包括的目标比特的取值确定目标数目包括:若目标第一复帧所包括的多个目标比特中,位于前N个的该目标比特的取值均为第一数值,则确定目标数目等于N。
基于第二方面,一种可选地实现方式中,接收设备根据目标第一复帧所包括的目标比特的取值确定目标数目包括:若目标第一复帧所包括的多个目标比特中,位于前C个的目标比特的取值均为第一数值,且确定目标数目等于C的商。
基于第二方面,一种可选地实现方式中,接收设备根据目标比特,在多个数据帧中确定该至少两个复帧包括:确定第二复帧的帧边界,第二复帧的帧边界包括具有目标数目最小值的复帧,该第二复帧的帧边界还包括具有目标数目最大值的复帧。
可见,接收设备基于目标比特能够准确地确定第二复帧进行定帧,提高了对第二复帧进行定帧的效率和准确性。
基于第二方面,一种可选地实现方式中,该目标比特的比特数为1。
可见,用于指示至少两个复帧的目标比特的比特数很少,则有效地降低了接收设备基于目标比特对至少两个复帧进行定帧的难度,提高了定帧的效率。
第三方面,本申请实施例提供了一种数字处理芯片,该芯片包括处理器和存储器,该存储器和该处理器通过线路互联,该存储器中存储有指令,该处理器用于执行如上述第一方面或第二方面所示的方法。
第三方面,本申请实施例提供了一种发送设备,包括处理器和存储器,其中,该处理器和该存储器互联,该处理器调用该存储器中的程序代码用于执行如上述第一方面任一项所示的方法。
第四方面,本申请实施例提供了一种接收设备,包括处理器和存储器,其中,该处理器和该存储器互联,该处理器调用该存储器中的程序代码用于执行如上述第二方面任一项 所示的方法。
第五方面,本发明实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面任一项所示的方法。
第六方面,本发明实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面任一项所示的方法。
图1为本发明实施例所提供的一种光网络的一种结构示意图;
图2为本申请所提供的数据帧的一种实施例结构示例图;
图3为本发明实施例所提供的数据帧的传输方法的一种实施例步骤流程图;
图4为本申请所提供的数据帧的目标比特取值的第一种实施例示例图;
图5为本申请所提供的数据帧的目标比特取值的第二种实施例示例图;
图6为本申请所提供的数据帧的目标比特取值的第三种实施例示例图;
图7为本申请所提供的数据帧的目标比特取值的第四种实施例示例图;
图8为本申请所提供的网络设备的第一种实施例结构示例图;
图9为本申请所提供的网络设备的第二种实施例结构示例图;
图10本申请所提供的网络设备的第三种实施例结构示例图。
为更好的理解本申请所提供的数据帧的传输方法,以下首先结合图1所示对本申请所示的方法所应用的光网络进行说明。图1为本发明实施例所提供的一种光网络的一种结构示意图。
本申请所提供的数据帧的传输方法适用于光网络,例如:OTN。一个OTN通常由多个网络设备通过光纤连接而成,可以根据具体需要组成如线型、环形和网状等不同的拓扑类型。如图1所示的OTN 200由8个OTN设备201组成,即设备A-H。其中,202指示光纤,用于连接两个设备。203指示客户业务接口,用于接收或发送客户业务数据。根据实际的需要,一个OTN设备可能具备不同的功能。一般地来说,OTN设备分为光层设备、电层设备以及光电混合设备。光层设备指的是能够处理光层信号的设备,例如:光放大器(optical amplifier,OA)、光分插复用器(optical add-drop multiplexer,OADM)。OA也可被称为光线路放大器(optical line amplifier,OLA),主要用于对光信号进行放大,以支持在保证光信号的特定性能的前提下传输更远的距离。OADM用于对光信号进行空间的变换,从而使其可以从不同的输出端口(有时也称为方向)输出。电层设备指的是能够处理电层信号的设备,例如:能够处理OTN信号的设备。光电混合设备指的是具备处理光层信号和电层信号能力的设备。需要说明的是,根据具体的集成需要,一台OTN设备可以集合多种不同的功能。本申请提供的技术方案适用于不同形态和集成度的包含电层功能的OTN设备。
需要说明的是,本申请实施例中的数据帧是OTN帧为例进行示例性说明,该OTN帧用于承载各种业务数据,并提供丰富的管理和监控功能。OTN帧可以是光业务单元(optical service unit,OSU)、ODUk、ODUCn、ODUflex,或者光通道传输单元k(optical transport unit k,OTUk),OTUCn,或者灵活OTN(FlexO)帧等。其中,ODU帧和OTU帧区别在于,OTU帧包括ODU帧和OTU开销;k代表了不同的速率等级,例如,k=1表示2.5Gbps,k=4表示100Gbps;Cn表示可变速率,具体为100Gbps的正整数倍的速率。除非特殊的说明,ODU帧指的是ODUk、ODUCn或ODUflex的任意一种,OTU帧指的是OTUk、OTUCn或者FlexO的任意一种。还需要指出的是,随着OTN技术发展,可能定义出新的类型的OTN帧,也适用于本申请。
需说明的是,本实施例对数据帧的说明为可选地示例,不做限定,本申请所提供的数据帧还可应用在无源光网络(passive optical network,PON)以及灵活以太(flexible ethernet,FlexE)中。
为提高OTN帧承载低速率帧的承载效率,则本申请以OTN帧为OSU为例进行示例性说明。在其他示例中,该OTN帧还可为灵活光业务单元(optical service unit flex,OSUflex)。需要说明的是,OSU这个名称仅是一个示例,不应对本申请定义的帧结构构成限定。该名称也可以替换为低速率帧、低速业务帧或光业务数据单元帧等其他名称。
图2为可能的OSU帧的结构示意图。本实施例对OSU帧所包括的开销区和净荷区的具体数量不做限定,图2所示以OSU包括一个开销区和多个净荷区为例进行示例性说明。
OSU帧有192字节,其中,开销区为7字节,净荷区为185字节。需要在开销区中插入各种开销信息,例如,通用开销、映射开销以及1字节的8比特循环冗余校验(cyclic redundancy check-8bits,CRC8)。其中,通用开销中可包括如下所示的开销信息:
版本号(VER)、支路端口号(tributary port number,TPN)、通用通信通道(general communication channel,GCC)、帧类型(FT),串联连接监控开销(tandem connection monitoring,TCM)以及路径监控(path monitoring,PM)等。
可见,OSU帧的开销区的字节大小有限,但是需要插入的开销信息较多。本申请所提供的方法的目的在于,如何提高OSU帧的开销区插入开销信息的效率。
图3为本发明实施例所提供的数据帧的传输方法的一种实施例步骤流程图。
首先需明确的是,执行本实施例所示的方法的发送设备和接收设备为图1所示的OTN201所包括的两个互联的OTN设备为例进行示例性说明,不做限定。在其他实施例中,发送设备和接收设备也可为PON中需要进行数据帧交互的两个设备,又如,在FlexE中需要进行数据帧交互的两个设备等。
步骤301、发送设备确定至少两个开销信息。
本实施例所示的发送设备通过复帧向接收设备所发送的开销信息的数量不做限定,只要通过复帧发送的开销信息的数量为两个或两个以上即可。本实施例以发送设备需要向接收设备发送第一开销信息和第二开销信息,且第二开销信息所占用的比特数大于第一开销信息所占用的比特数为例进行示例性说明。
本实施例对第一开销信息和第二开销信息的具体类型不做限定。例如,第一开销信息为图2所示的TCM或PM中的自动保护倒换(automatic protection switching,APS)或延时测量(delay measurement,DM)。又如,第二开销信息为路径踪迹指示(trail trace identifier,TTI)。
步骤302、发送设备生成多个数据帧。
发送设备为向接收设备发送上述所示的第一开销信息和第二开销信息,则发送设备生成多个数据帧,并在多个数据帧中确定第一复帧和第二复帧。其中,第一复帧所包括的多个数据帧用于插入第一开销信息,第二复帧所包括的多个数据帧用于插入第二开销信息。
具体地,第一复帧所包括的各个数据帧的开销区均包括第一字段。发送设备将第一开销信息插入第一字段中。例如,若第一字段在数据帧中所占用的比特数为1,且在第一复帧包括32个数据帧的情况下,则发送设备即可将第一开销信息插入至第一复帧所具有的32*1=32个比特的比特空间内。
第二复帧所包括的各个数据帧的开销区包括第二字段。发送设备将第二开销信息插入第二字段中。其中,第一字段的位置与第二字段的位置在数据帧中不同。例如,若第二字段在数据帧中所占用的比特数为1,且在第二复帧包括512个数据帧的情况下,则发送设备接口将第二开销信息插入至第二复帧所具有的512*1=512个比特的比特空间。
发送设备为向接收设备指示已插入第一开销信息的第一复帧以及已插入第二开销信息的第二复帧,则发送设备在生成多个数据帧的过程中,需要将目标比特插入数据帧的开销区中。通过该目标比特向接收设备指示第一复帧以及第二复帧。接收设备即可根据目标比特从第一复帧中解析出第一开销信息以及从第二复帧中解析出第二开销信息。其中,目标比特在数据帧的开销区中的位置,与第一字段和第二字段均不同。例如,目标比特可位于TCM或PM中,且与第一字段和第二字段互不相同的位置处。
本实施例对目标比特的具体比特数不做限定,只要目标比特能够同时指示第一复帧和第二复帧即可。例如,本实施例所示的目标比特的比特数小于已有OTN帧中的MFAS所占用的比特数。在MFAS占用8个比特的情况下,本实施例所示的目标比特的比特数可为小于8且大于或等于1之间的任意整数。例如,若目标比特的比特数为1,则通过该1个比特的目标比特能够指示第一复帧和第二复帧。可见,在目标比特能够同时指示第一复帧和第二复帧的情况下,有效地提高了数据帧的开销区插入开销信息的效率,而且有效地节省了带宽资源。
为实现目标比特能够同时指示第一复帧和第二复帧的目的,则需要目标比特能够实现如下所示的两个目的:
目的1:目标比特能够指示第一复帧的帧边界。其中,第一复帧的帧边界为第一复帧所包括的连续多个数据帧中的第1个数据帧和最后一个数据帧。
目的2:目标比特能够指示第二复帧的帧边界。其中,第二复帧的帧边界为第二复帧所包括的连续多个第一复帧中的第1个第一复帧和最后一个第一复帧。
以下结合图4所示对目标比特如何实现目的1的过程进行说明,其中,图4为本申请所提供的数据帧的目标比特取值的第一种实施例示例图。
本实施例所示的第一复帧包括M个连续的数据帧,即第一复帧包括第1个数据帧、第2个数据帧直至第M个数据帧。本实施例对M的具体取值不做限定,只要M为大于1的正整数即可。图4所示以M=5为例进行示例性说明,可见,在本示例中,第一复帧包括5个 数据帧。
发送设备将第一复帧所包括的第1个数据帧的目标比特的取值设置为第一数值。本实施例对第一数值不做限定,例如,若目标比特的比特数为1个,则第一数值可为“0”也可为“1”。又如,若目标比特的比特数为2个,则第一数值可为“01”等。
发送设备将第一复帧所包括的最后一个数据帧的目标比特的取值设置为第二数值。本实施例所示的第一数值和第二数值互不相同,本实施例对第二数值不做限定,例如,若第一数值为“1”,则第二数值为“0”。
可见,本实施例所示的第一复帧所包括的M个连续的数据帧中,位于帧边界的两个数据帧中的目标比特的取值互不相同。而不同的第一复帧中,位于第1个数据帧中的目标比特的取值相同,而位于最后一个数据帧中的目标比特也相同。
第一复帧所包括的位于帧边界之间的数据帧的目标比特的取值有两种情况:一种情况,第一复帧所包括的相邻的两个目标比特的取值均为第一数值。另一种情况,第一复帧所包括的相邻的两个目标比特的取值由第一数值跳变(transition)至第二数值。其中,第一复帧所包括的相邻的两个目标比特位于相邻的两个数据帧的开销区中。
以下对第一复帧所包括的多个连续的目标比特具体是如何指示第一复帧的帧边界的进行说明:
发送设备通过目标比特由第二数值向第一数值进行跳变,以指示接收设备识别相邻的两个第一复帧的帧边界。如图4所示的相邻的两个第一复帧(401以及402)为例。其中,第一复帧401为相邻的两个复帧中在先的复帧,第二复帧402为该相邻的两个复帧中在后的复帧。
发送设备确定第一目标比特和第二目标比特。其中,该第一目标比特为第一复帧401的最后一个数据帧(即第5个数据帧)的目标比特。该第二目标比特为第一复帧402的第1个数据帧的目标比特。
为指示第一复帧401和第一复帧402之间的跳变,则发送设备将第一目标比特的取值设置为第二数值。发送设备将第二目标比特的取值设置为第一数值。可见,接收设备基于取值为第一数值的第一目标比特向取值为第二数值的第二目标比特的跳变,即可确定出包括第一目标比特的数据帧为第一复帧401中的最后一个数据帧。还可确定包括第二目标比特的数据帧为第一复帧402的第1个数据帧。
需明确的是,本实施例所示的第一复帧中,不存在相邻的两个数据帧的目标比特的取值由第二数值跳变至第一数值的情况,有效地避免第一复帧所包括的帧边界和位于帧边界之间的数据帧的混淆。
以下对发送设备如何实现目的2的过程进行说明:
具体地,发送设备能够根据在各第一复帧内的各个目标比特的取值,指示第二复帧的帧边界。如下所示对如何指示第二复帧的帧边界的两种方式进行说明:
方式1:首先,发送设备确定目标数目N。目标数目N用于指示第一复帧在第二复帧中的排序。继续结合图4所示,第一复帧401为第二复帧中排序为第一位的第一复帧,则第一复帧401的目标数目N为1。第一复帧404为第二复帧中排序为最后一位的第一复帧, 则第一复帧404的目标数目N为4。
其次,发送设备设置第一复帧所包括的所有目标比特中,位于前N个的目标比特的取值均为第一数值。例如,发送设备确定在第二复帧中排序为第1位的第一复帧401的第1个目标比特的取值为第一数值,其余的目标比特的取值均为第二数值。又如,发送设备确定在第二复帧中排序为第4位的第一复帧404的前4个目标比特的取值均为第一数值,其余的目标比特的取值均为第二数值。
可见,本方式所示的各第一复帧所包括的取值为第一数值的目标比特的数量,指示各个第一复帧在第二复帧中的排序。接收设备即可根据各个第一复帧在第二复帧中的排序,确定第二复帧的帧边界。
第二复帧的帧边界包括取值为第一数值的目标比特的数量最少的复帧(第二复帧所包括的多个第一复帧中的第1个第一复帧),第二复帧的帧边界还包括取值为第一数值的目标比特的数量最多的复帧(第二复帧所包括的多个第一复帧中的最后一个第一复帧)。
需明确的是,本实施例通过第一复帧所包括的取值为第一数值的目标比特的增序来表示各个第一复帧在第二复帧中的排序为例进行示例性说明,不做限定。例如,在其他示例中,也可通过第一复帧所包括的取值为第一数值的目标比特的降序来表示各个第一复帧在第二复帧中的排序。
方式2:首先,发送设备确定目标数目N,具体过程请详见方式1所示,不做赘述。
其次,发送设备确定第一复帧所包括的所有目标比特中,位于前C个的目标比特的取值均为第一数值,其中,C为N的整数倍。例如,若第二复帧所包括的一个第一复帧的目标数目N为3,则发送设备可将该第一复帧的前C=3*2=6个目标比特的取值均设置为第一数值,而将其余的目标比特的取值设置为第二取值。
步骤303、发送设备向接收设备发送数据帧。
步骤304、接收设备从各数据帧中获取目标比特。
具体地,接收设备预先设置搜索周期。接收设备在搜索周期内连续获取M个数据帧。由上述说明可知,第一复帧包括M个数据帧,本实施例以接收设备在搜索周期内也连续获取M个数据帧为例进行示例性说明。
接收设备在搜索周期所获取到的M个数据帧中,获取各个数据帧所包括的目标比特。例如,发送设备和接收设备可预先约定,在各个数据帧的开销区的TCM中,通过预设字段承载目标比特。本实施例对预设字段在数据帧的开销区的具体位置的说明为可选地示例,不做限定。
步骤305、接收设备根据目标比特确定至少两个复帧。
由上述说明可知,本实施例以发送设备向接收设备所发送的复帧为第一复帧和第二复帧为例。以下首先对接收设备确定第一复帧的过程进行说明:
接收设备可根据任意相邻的两个数据帧的目标比特的取值,识别各个第一复帧的帧边界。其中,若在第1个搜索周期内,连续搜索到的两个数据帧所包括的两个目标比特中,位于在先的目标比特的取值为第二数值,而位于在后的目标比特的取值为第一数值,则说明包括这两个目标比特的两个数据帧位于两个第一复帧的帧边界。
若接收设备确定连续搜索到的两个数据帧所包括的两个目标比特的取值均为第一数值或第二数值,则说明这两个数据帧位于同一第一复帧内。而且,若接收设备确定连续搜索到的两个数据帧所包括的两个目标比特中,位于在先的目标比特的取值为第一数值,而位于在后的目标比特的取值为第二数值,也说明包括这两个目标比特的两个数据帧,位于同一第一复帧内。
继续结合图4所示对接收设备具体的搜索过程进行示例性说明:
若接收设备在搜索周期所搜索到的第1个数据帧为第一复帧401的第3个数据帧。该第3个数据帧的目标比特的取值为第二数值,则说明该第3个数据帧位于第一复帧401的帧边界之间的数据帧。依次搜索,直至接收设备搜索到包括第一目标比特的数据帧和包括第二目标比特的数据帧。第一目标比特和第二目标比特的说明,请详见上述步骤302所示,具体不做赘述。可见,接收设备搜索到取值为第二数值的第一目标比特向取值为第一数值的第二目标比特跳变的两个数据帧,即可确定出现了两个第一复帧之间的跳变。
但是,为避免因误码导致的对第一复帧的帧边界的误判,则接收设备在搜索到取值为第二数值的第一目标比特向取值为第一数值的第二目标比特的跳变后,等待M帧后,识别是否出现第2个取值为第二数值的第一目标比特向取值为第一数值的第二目标比特的跳变。如果出现,则确定没有出现误码。即可确定包括第一目标比特的数据帧为第一复帧的最后一个数据帧。还可确定包括第二目标比特的数据帧为第一复帧的第1个数据帧。依次类推,直至接收设备能够依次确定出各个第一复帧所包括的第1个数据帧以及最后一个数据帧。
其次,对接收设备确定第二复帧的过程进行说明:
在接收设备已确定了各个第一复帧的情况下,即可根据各个第一复帧所包括的取值为第一数值的目标比特,确定第二复帧的帧边界。具体地,首先,接收设备在多个第一复帧中确定一个第一复帧为目标第一复帧。其次,接收设备根据该目标第一复帧所包括的取值为第一数值的目标比特确定目标数目。例如,基于步骤302所示的方式1,若目标第一复帧包括取值为第一数值的目标比特的数目为N,则确定目标数目为N。又如,基于步骤302所示的方式2,若目标第一复帧包括取值为第一数值的目标比特的数目为C,则确定目标数目N=C/X,其中,C为N的X倍。具体例如,若接收设备确定C=6,且预先确定X为2,则即可确定N=6/2=3。其中,目标数目用于指示第一复帧在第二复帧中的排序。
具体地,若根据目标第一复帧所确定出的N=1,则说明该目标第一复帧在第二复帧中位于第1个第一复帧。可选地,接收设备可预先获取各个第二复帧所包括的第一复帧的帧数量,接收设备即可确定第二复帧的帧边界。其中,接收设备确定连续的多个第一复帧中,目标数目N=1的第一复帧为第二复帧中的第1个第一复帧(如图4所示的第一复帧401)。而目标数目N=帧数量的第一复帧为第二复帧中的最后一个第一复帧。例如,若帧数量为4,则接收设备确定第一复帧404的N=4,则说明第一复帧404为第二复帧所包括的最后一个第一复帧。
由上述所示可知,第二复帧所包括的各个第一复帧的目标数目是依次由小到大的。若接收设备检测到相邻的两个第一复帧的目标数目出现由小到大的跳变,则说明这两个相邻的第一复帧位于同一第二复帧中。若接收设备检测到相邻的两个第一复帧的目标数目出现 由大到小的跳变,则说明这两个相邻的第一复帧位于相邻的两个第二复帧中。且这两个相邻的第一复帧中,具有较大的目标数目的第一复帧为在先的第二复帧中的最后一个第一复帧。具有较小的目标数目的第一复帧为在后的第二复帧中的第1个第一复帧。
需明确的是,本实施例以第二复帧所包括的各个第一复帧的目标数目是依次由小到大为例进行示例性说明。在其他示例中,第二复帧所包括的各个第一复帧的目标数目也可以是依次由大到小的,只要各个第一复帧所包括的目标数目能够指示各第一复帧在第二复帧中的排序即可。
继续如图4所示,第一复帧401、402、403以及404所包括的目标数目依次递增,则说明第一复帧401、402、403以及404位于同一第二复帧中。而第一复帧404所包括的目标数目N等于4,而第一复帧405的目标数目N等于1,则说明第一复帧404为在先的第二复帧中的最后一个第一复帧,而第一复帧405为在后的第二复帧中的第1个第一复帧。
步骤306、接收设备从至少两个复帧中解析出开销信息。
由上述所示可知,第一复帧用于承载第一开销信息,第二复帧用于承载第二开销信息。接收设备即可从已确定的各个第一复帧中,解析出第一开销信息。从已确定的各个第二复帧中,解析出第二开销信息。
采用本实施例所示的方法,通过位于数据帧中的目标比特同时指示至少两个复帧。提高了指示复帧的效率,降低了对复帧进行指示的复杂度。提高了通过目标比特对复帧进行定帧的效率和准确性。而且目标比特的比特数小于已有的用于指示复帧的信息(如MFAS)的比特数,有效地节省了带宽资源,提高了用于指示复帧的带宽资源的利用效率。
为更好的理解本申请所提供目标比特对至少两个复帧进行指示的过程,以下结合图5所示,对本申请所提供的目标比特的第一种应用场景进行说明。其中,图5为本申请所提供的数据帧的目标比特取值的第二种实施例示例图。
在图5所示的应用场景中,以第一开销信息为APS,第二开销信息为TTI为例进行示例性说明。用于承载第一开销信息的第一复帧需要通过其所包括的32个数据帧,才能够完整的承载一个APS。用于承载第二开销信息的第二复帧需要通过其所包括的16个第一复帧,共512个数据帧才能够完整的承载一个TTI。为此,发送设备确定每个第一复帧包括32个数据帧,而每个第二复帧包括16个第一复帧。
本应用场景以目标比特的比特数为1为例进行示例性说明。具体地,发送设备所生成的第1个第一复帧中,取值为“1”的目标比特的数量为1个,而取值为“0”的目标比特的数量为31个。且第一复帧所包括的第1个数据帧的目标比特的取值为“1”,第2个数据帧的目标比特直至第32个数据帧的目标比特的取值均为“0”。
发送设备所生成的第2个第一复帧中,取值为“1”的目标比特的数量为2个,而取值为“0”的目标比特的数量为30个。且第一复帧所包括的第1个数据帧至第2个数据帧的目标比特的取值均为“1”。第一复帧所包括的第3个数据帧的目标比特直至第32个数据帧的目标比特的取值均为“0”。
依次类推,发送设备所生成的第16个第一复帧中,取值为“1”的目标比特的数量为16个,而取值为“0”的目标比特的数量为16个。且第一复帧所包括的第1个数据帧的目 标比特直至第16个数据帧的目标比特的取值均为“1”。第17个数据帧的目标比特直至第32个数据帧的目标比特的取值均为“0”。
以下对发送设备如何在第一复帧中插入第一开销信息的进行说明:
在每个第一复帧中,发送设备在第一复帧所包括的第1个数据帧至第4个数据帧的第一字段中插入用于指示请求和/或状态的APS。对第一字段的说明,请详见图3所示,具体不做赘述。在第一复帧所包括的第5个数据帧至第8个数据帧的第一字段中插入用于指示保护类型的APS。在第一复帧所包括的第9个数据帧至第16个数据帧的第一字段中插入用于指示请求信号的APS。在第一复帧所包括的第17个数据帧至第24个数据帧的第一字段中插入用于指示桥接信号的APS。在第一复帧所包括的第25个数据帧至第32个数据帧的第一字段中插入用于指示用户响应(user response,RES)和/或保留的APS。可见,通过一个完整的第一复帧所包括的各个数据帧的第一字段,承载了一个完整的APS。
以下对发送设备如何在第二复帧中插入第二开销信息的进行说明:
在每个第二复帧中,发送设备在第二复帧所包括的第1个第一复帧至第8个第一复帧所包括的共256个数据帧的第二字段中插入用于指示源接入点标识(source access point identifier,SAPI)的TTI。发送设备在第二复帧所包括的第9个第一复帧至第16个第一复帧所包括的256个数据帧的第二字段中插入用于指示目的接入点标识(destination access point identifier,DAPI)的TTI。可见,通过一个完成的第二复帧所包括的各个数据帧的第二字段,承载了一个完整的TTI。
接收设备在接收到来自发送设备的多个数据帧的情况下,即可在多个数据帧中确定出各个第一复帧。即接收设备在确定出目标比特的取值由“0”跳变至“1”(即transition from 0to 1),则说明包括这两个目标比特的数据帧位于第一复帧的帧边界,具体过程的说明请详见图3所示的步骤304至步骤305所示,具体不做赘述。
接收设备还能够根据各第一复帧所包括的帧数量(本示例帧数量=16)确定第二复帧的帧边界。若第1个第一复帧包括1个取值为“1”的目标比特,则说明该第1个第一复帧为第二复帧所包括的多个第一复帧中的第1个。若第16个第一复帧包括16个取值为“1”的目标比特,则说明该第16个第一复帧为第二复帧所包括的多个第一复帧中的最后一个。具体过程的说明请详见图3所示的步骤304至步骤305所示,具体不做赘述。
接收设备确定出第一复帧和第二复帧的情况下,即可在第一复帧中解析出第一开销信息,并在第二复帧中解析出第二开销信息。
以下结合图6所示对本申请所提供的目标比特的第二种应用场景进行说明。其中,图6为本申请所提供的数据帧的目标比特取值的第三种实施例示例图。
本应用场景中第一复帧所承载的第一开销信息以及第二复帧所承载的第二开销信息的说明,请参见图5所示,具体不做赘述。本应用场景以每个第一复帧包括32个数据帧,且每个第二复帧包括8个第一复帧为例进行示例性说明。
对图6所示的各第一复帧所包括的各目标比特的取值的具体说明,请参见图5所示,不做赘述。
以下结合图7所示对本申请所提供的目标比特的第三种应用场景进行说明。其中,图 7为本申请所提供的数据帧的目标比特取值的第四种实施例示例图。
本应用场景中第一复帧所承载的第一开销信息以及第二复帧所承载的第二开销信息的说明,请参见图5所示,具体不做赘述。本应用场景以每个第一复帧包括32个数据帧,且每个第二复帧包括8个第一复帧为例进行示例性说明。
本应用场景以目标比特的比特数为1为例进行示例性说明。具体地,发送设备所生成的第1个第一复帧中,取值为“1”的目标比特的数量为2个。而取值为“0”的目标比特的数量为30个。且第一复帧所包括的第1个数据帧至第2个数据帧的目标比特的取值均为“1”,第3个数据帧的目标比特直至第32个数据帧的目标比特的取值均为“0”。
依次类推,发送设备所生成的第8个第一复帧中,取值为“1”的目标比特的数量为16个。取值为“0”的目标比特的数量为16个。且第一复帧所包括的第1个数据帧的目标比特直至第16个数据帧的目标比特的取值均为“1”,第17个数据帧的目标比特直至第32个数据帧的目标比特的取值均为“0”。
可见,本应用场景所示的各个第一复帧中,取值为“1”的目标比特的数量是该第一复帧在第二复帧的中的排序的2倍。接收设备在确定出第一复帧中,即可对该第一复帧所包括的取值为“1”的目标比特的数据除2,所得出的商即为该第一复帧在第二复帧的排序。
以下结合图8所示对本申请所提供的网络设备的结构进行说明,其中,图8为本申请所提供的网络设备的一种实施例结构示例图。
本实施例所示的网络设备800包括处理器801以及存储器802。其中,存储器802用于存储程序指令和数据。该网络设备即可为上述实施例所示的发送设备,也可为接收设备。
当网络设备800作为发送设备时,处理器801用于实现图3所示的步骤301至步骤303。需明确的是,处理器801执行步骤303所示的发送步骤时,可能是处理器801将数据帧发送给光收发器,以使光收发器将数据帧向接收设备发送。
当网络设备800作为接收设备时,处理器801用于实现图3所示的步骤304至步骤306。需明确是的,处理器801所获取到的数据帧,可由位于接收设备中的光收发器接收,该光光收发器再将所接收到的数据帧向处理器801发送。
本申请实施例中处理器801可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件单元组合执行完成。
处理器801用于实现上述方法所执行的程序代码可以存储在存储器802中。存储器802和处理器801耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器801可能和存储器802协同操作。存储器802可以是非易失性存储器,比如硬盘(hard disk drive,HDD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器802是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。
图9和图10提供了两种可能的网络设备的结构示意图。图9所示的网络设备900包括生成单元901和发送单元902。其中,生成单元901用于执行图3所示的步骤301至步骤302。发送单元902用于执行图3所示的步骤303。图10所示的网络设备1000包括了接收单元1001和处理单元1002。接收单元1001用于接收来自发送设备的数据帧。处理单元用于执行图3所示的步骤304至步骤306。
本领域技术人员应理解,网络设备900和网络设备1000所包括的单元可以通过一个或者多个处理器来实现。
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现上述实施例提供的方法。计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
基于以上实施例,本申请实施例还提供了一种芯片,该芯片包括处理器,用于实现上述任意一个或多个实施例所涉及的功能,例如获取或处理上述方法中所涉及的数据帧。可选地,芯片还包括存储器,存储器,用于处理器所执行必要的程序指令和数据。该芯片,可以由芯片构成,也可以包含芯片和其他分立器件。
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (30)
- 一种数据帧的传输方法,其特征在于,所述方法包括:生成数据帧,所述数据帧的开销区包括目标比特,所述目标比特同时用于指示至少两个复帧,所述复帧包括多个连续的数据帧,且不同的所述复帧所包括的所述数据帧的数量不同,不同的所述复帧用于插入不同的开销信息,所述数据帧为光传送网OTN数据帧;发送所述数据帧。
- 根据权利要求1所述的方法,其特征在于,所述生成数据帧包括:将多个所述目标比特分别插入第一复帧所包括的所述多个连续的数据帧的开销区中,所述第一复帧为所述至少两个复帧中的任一个,所述多个目标比特任意相邻的两个所述目标比特的取值均为第一数值,或,所述任意相邻的两个所述目标比特的取值由第一数值跳变至第二数值,所述第一数值和所述第二数值不同。
- 根据权利要求2所述的方法,其特征在于,所述生成数据帧包括:将第一目标比特和第二目标比特分别插入两个相邻的第一复帧中,所述第一目标比特位于所述两个相邻的第一复帧中在先的复帧的最后一个数据帧内,所述第二目标比特位于所述两个相邻的第一复帧中在后的复帧中的第一个数据帧内,所述第一目标比特的取值为所述第二数值,所述第二目标比特的取值为所述第一数值。
- 根据权利要求2或3所述的方法,其特征在于,所述至少两个复帧还包括第二复帧,所述第二复帧包括多个所述第一复帧,所述生成数据帧包括:确定目标数目,所述目标数目用于指示目标第一复帧在所述第二复帧中的排序,所述目标第一复帧为所述第二复帧所包括的多个所述第一复帧中的一个;根据所述目标数目确定所述目标第一复帧所包括的所述目标比特的取值,所述目标比特的取值还用于指示所述第二复帧的帧边界。
- 根据权利要求4所述的方法,其特征在于,所述目标数目为N,所述N为大于或等于1的正整数,所述根据所述目标数目确定所述目标第一复帧所包括的所述目标比特的取值包括:确定所述目标第一复帧所包括的多个所述目标比特的前N个的所述目标比特的取值均为所述第一数值。
- 根据权利要求4所述的方法,其特征在于,所述目标数目为N,所述N为大于或等于1的正整数,所述根据所述目标数目确定所述目标第一复帧所包括的所述目标比特的取值包括:确定所述目标第一复帧所包括的多个所述目标比特中,位于前C个的所述目标比特的取值均为所述第一数值,所述C为所述N的整数倍。
- 根据权利要求5或6所述的方法,其特征在于,所述第二复帧的帧边界包括取值为所述第一数值的所述目标比特的数量最少的复帧,所述第二复帧的帧边界还包括取值为所述第一数值的所述目标比特的数量最多的复帧。
- 根据权利要求1至7任一项所述的方法,其特征在于,所述目标比特的比特数为1。
- 一种数据帧的传输方法,其特征在于,所述方法包括:接收多个数据帧,所述多个数据帧的开销区包括目标比特,所述目标比特同时用于指示至少两个复帧,所述复帧包括多个连续的所述数据帧,且不同的所述复帧所包括的所述数据帧的数量不同,不同的所述复帧用于插入不同的开销信息,所述数据帧为光传送网OTN数据帧;从所述多个数据帧中获取所述目标比特;根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧。
- 根据权利要求9所述的方法,其特征在于,所述根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧包括:在所述多个数据帧中确定第一复帧,所述第一复帧为所述至少两个复帧中的任一个,且所述第一复帧所包括的多个所述目标比特中,任意相邻的两个所述目标比特的取值均为第一数值,或,所述任意相邻的两个所述目标比特的取值由第一数值跳变至第二数值,所述第一数值和所述第二数值互不相同。
- 根据权利要求10所述的方法,其特征在于,所述根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧包括:在多个所述数据帧中确定相邻的第一目标比特和第二目标比特,所述第一目标比特的取值为所述第二数值,所述第二目标比特的取值为所述第一数值;确定所述第一目标比特和所述第二目标比特位于两个相邻的第一复帧中,所述第一目标比特位于所述两个相邻的第一复帧中在先的复帧的最后一个数据帧内,所述第二目标比特位于所述两个相邻的第一复帧中在后的复帧中的第一个数据帧内。
- 根据权利要求10或11所述的方法,其特征在于,所述至少两个复帧还包括第二复帧,所述第二复帧包括多个所述第一复帧,所述根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧包括:根据目标第一复帧所包括的所述目标比特的取值确定目标数目,所述目标数目用于指示所述目标第一复帧在所述第二复帧中的排序,所述目标第一复帧为所述第二复帧所包括的多个所述第一复帧中的一个。
- 根据权利要求12所述的方法,其特征在于,所述根据目标第一复帧所包括的所述目标比特的取值确定目标数目包括:若所述目标第一复帧所包括的多个所述目标比特中,位于前N个的所述目标比特的取值均为所述第一数值,则确定所述目标数目等于N。
- 根据权利要求12所述的方法,其特征在于,所述根据目标第一复帧所包括的所述目标比特的取值确定目标数目包括:若所述目标第一复帧所包括的多个所述目标比特中,位于前C个的所述目标比特的取值均为所述第一数值,且确定所述目标数目等于所述C的商。
- 根据权利要求12至14任一项所述的方法,其特征在于,所述根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧包括:确定所述第二复帧的帧边界,所述第二复帧的帧边界包括具有所述目标数目最小值的复帧,所述第二复帧的帧边界还包括具有所述目标数目最大值的复帧。
- 根据权利要求9至15任一项所述的方法,其特征在于,所述目标比特的比特数为1。
- 一种数字处理芯片,其特征在于,所述芯片包括处理器和存储器,所述存储器和所述处理器通过线路互联,所述存储器中存储有指令,所述处理器用于执行如权利要求1至16中任一项的数据帧的传输方法。
- 一种发送设备,其特征在于,包括处理器和存储器,其中,所述处理器和所述存储器互联,所述处理器调用所述存储器中的程序代码用于执行如下步骤:生成数据帧,所述数据帧的开销区中包括目标比特,所述目标比特同时用于指示至少两个复帧,所述复帧包括多个连续的数据帧,且不同的所述复帧所包括的所述数据帧的数量不同,不同的所述复帧用于插入不同的开销信息,所述数据帧为光传送网OTN数据帧;发送所述数据帧。
- 根据权利要求18所述的发送设备,其特征在于,所述处理器具体用于:将多个所述目标比特分别插入第一复帧所包括的所述多个连续的数据帧的开销区中,所述第一复帧为所述至少两个复帧中的任一个,所述多个目标比特任意相邻的两个所述目标比特的取值均为第一数值,或,所述任意相邻的两个所述目标比特的取值由第一数值跳变至第二数值,所述第一数值和所述第二数值不同。
- 根据权利要求19所述的发送设备,其特征在于,所述处理器具体用于:将第一目标比特和第二目标比特分别插入两个相邻的第一复帧中,所述第一目标比特位于所述两个相邻的第一复帧中在先的复帧的最后一个数据帧内,所述第二目标比特位于所述两个相邻的第一复帧中在后的复帧中的第一个数据帧内,所述第一目标比特的取值为所述第二数值,所述第二目标比特的取值为所述第一数值。
- 根据权利要求19或20所述的发送设备,其特征在于,所述至少两个复帧还包括第二复帧,所述第二复帧包括多个所述第一复帧,所述处理器具体用于:确定目标数目,所述目标数目用于指示目标第一复帧在所述第二复帧中的排序,所述目标第一复帧为所述第二复帧所包括的多个所述第一复帧中的一个;根据所述目标数目确定所述目标第一复帧所包括的所述目标比特的取值,所述目标比特的取值还用于指示所述第二复帧的帧边界。
- 根据权利要求21所述的发送设备,其特征在于,所述目标数目为N,所述N为大于或等于1的正整数,所述处理器具体用于:确定所述目标第一复帧所包括的多个所述目标比特的前N个的所述目标比特的取值均为所述第一数值。
- 根据权利要求21所述的发送设备,其特征在于,所述目标数目为N,所述N为大于或等于1的正整数,所述处理器具体用于:确定所述目标第一复帧所包括的多个所述目标比特中,位于前C个的所述目标比特的取值均为所述第一数值,所述C为所述N的整数倍。
- 一种接收设备,其特征在于,包括处理器和存储器,其中,所述处理器和所述存储器互联,所述处理器调用所述存储器中的程序代码用于执行如下步骤:接收多个数据帧,所述多个数据帧的开销区包括目标比特,所述目标比特同时用于指示至少两个复帧,所述复帧包括多个连续的所述数据帧,且不同的所述复帧所包括的所述数据帧的数量不同,不同的所述复帧用于插入不同的开销信息,所述数据帧为光传送网OTN数据帧;从所述多个数据帧中获取所述目标比特;根据所述目标比特,在所述多个数据帧中确定所述至少两个复帧。
- 根据权利要求24所述的接收设备,其特征在于,所述处理器具体用于:在所述多个数据帧中确定第一复帧,所述第一复帧为所述至少两个复帧中的任一个,且所述第一复帧所包括的多个所述目标比特中,任意相邻的两个所述目标比特的取值均为第一数值,或,所述任意相邻的两个所述目标比特的取值由第一数值跳变至第二数值,所述第一数值和所述第二数值互不相同。
- 根据权利要求25所述的接收设备,其特征在于,所述处理器具体用于:在多个所述数据帧中确定相邻的第一目标比特和第二目标比特,所述第一目标比特的取值为所述第二数值,所述第二目标比特的取值为所述第一数值;确定所述第一目标比特和所述第二目标比特位于两个相邻的第一复帧中,所述第一目标比特位于所述两个相邻的第一复帧中在先的复帧的最后一个数据帧内,所述第二目标比特位于所述两个相邻的第一复帧中在后的复帧中的第一个数据帧内。
- 根据权利要求25或26所述的接收设备,其特征在于,所述至少两个复帧还包括第二复帧,所述第二复帧包括多个所述第一复帧,所述处理器具体用于:根据目标第一复帧所包括的所述目标比特的取值确定目标数目,所述目标数目用于指示所述目标第一复帧在所述第二复帧中的排序,所述目标第一复帧为所述第二复帧所包括的多个所述第一复帧中的一个。
- 根据权利要求27所述的接收设备,其特征在于,所述处理器具体用于:若所述目标第一复帧所包括的多个所述目标比特中,位于前N个的所述目标比特的取值均为所述第一数值,则确定所述目标数目等于N。
- 根据权利要求27所述的接收设备,其特征在于,所述处理器具体用于:若所述目标第一复帧所包括的多个所述目标比特中,位于前C个的所述目标比特的取值均为所述第一数值,且确定所述目标数目等于所述C的商。
- 根据权利要求27至29任一项所述的接收设备,其特征在于,所述处理器具体用于:确定所述第二复帧的帧边界,所述第二复帧的帧边界包括具有所述目标数目最小值的复帧,所述第二复帧的帧边界还包括具有所述目标数目最大值的复帧。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022579095A JP2023532241A (ja) | 2020-06-22 | 2021-06-17 | データフレーム伝送方法および関連デバイス |
EP21829041.9A EP4160949A4 (en) | 2020-06-22 | 2021-06-17 | METHOD FOR DATA FRAME TRANSMISSION AND ASSOCIATED DEVICE |
US18/069,659 US20230122525A1 (en) | 2020-06-22 | 2022-12-21 | Data Frame Transmission Method and Related Device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010575556.9A CN113904750A (zh) | 2020-06-22 | 2020-06-22 | 一种数据帧的传输方法以及相关设备 |
CN202010575556.9 | 2020-06-22 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/069,659 Continuation US20230122525A1 (en) | 2020-06-22 | 2022-12-21 | Data Frame Transmission Method and Related Device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021259121A1 true WO2021259121A1 (zh) | 2021-12-30 |
Family
ID=79186377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/100534 WO2021259121A1 (zh) | 2020-06-22 | 2021-06-17 | 一种数据帧的传输方法以及相关设备 |
Country Status (5)
Country | Link |
---|---|
US (1) | US20230122525A1 (zh) |
EP (1) | EP4160949A4 (zh) |
JP (1) | JP2023532241A (zh) |
CN (1) | CN113904750A (zh) |
WO (1) | WO2021259121A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023134513A1 (zh) * | 2022-01-14 | 2023-07-20 | 华为技术有限公司 | 开销信息传输方法、通信装置和系统 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120250739A1 (en) * | 2011-04-01 | 2012-10-04 | Fujitsu Limited | Transmission device and transmission method |
US20120251127A1 (en) * | 2011-03-29 | 2012-10-04 | Fujitsu Limited | Frame mapping apparatus and frame mapping method |
CN107437973A (zh) * | 2016-05-25 | 2017-12-05 | 中兴通讯股份有限公司 | 灵活以太网开销复帧锁定方法及装置、otn设备 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6086964B1 (ja) * | 2015-09-14 | 2017-03-01 | Nttエレクトロニクス株式会社 | フレーム伝送システムおよびフレーム伝送装置 |
-
2020
- 2020-06-22 CN CN202010575556.9A patent/CN113904750A/zh active Pending
-
2021
- 2021-06-17 JP JP2022579095A patent/JP2023532241A/ja active Pending
- 2021-06-17 EP EP21829041.9A patent/EP4160949A4/en active Pending
- 2021-06-17 WO PCT/CN2021/100534 patent/WO2021259121A1/zh unknown
-
2022
- 2022-12-21 US US18/069,659 patent/US20230122525A1/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120251127A1 (en) * | 2011-03-29 | 2012-10-04 | Fujitsu Limited | Frame mapping apparatus and frame mapping method |
US20120250739A1 (en) * | 2011-04-01 | 2012-10-04 | Fujitsu Limited | Transmission device and transmission method |
CN107437973A (zh) * | 2016-05-25 | 2017-12-05 | 中兴通讯股份有限公司 | 灵活以太网开销复帧锁定方法及装置、otn设备 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4160949A4 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023134513A1 (zh) * | 2022-01-14 | 2023-07-20 | 华为技术有限公司 | 开销信息传输方法、通信装置和系统 |
Also Published As
Publication number | Publication date |
---|---|
CN113904750A (zh) | 2022-01-07 |
EP4160949A4 (en) | 2023-12-06 |
EP4160949A1 (en) | 2023-04-05 |
US20230122525A1 (en) | 2023-04-20 |
JP2023532241A (ja) | 2023-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11967992B2 (en) | Data transmission method and apparatus in optical transport network | |
US11233571B2 (en) | Method for processing low-rate service data in optical transport network, apparatus, and system | |
EP4027650A1 (en) | Method and device for service processing in optical transport network, and system | |
WO2021180007A1 (zh) | 一种业务承载的方法、装置和系统 | |
WO2020192533A1 (zh) | 一种业务数据的处理方法及装置 | |
US11223422B2 (en) | Method and apparatus for processing ethernet data in optical network, and system | |
US12021615B2 (en) | Data processing method, optical transmission device, and digital processing chip | |
WO2019047110A1 (zh) | 一种光传送网中时延测量的方法、装置和系统 | |
CN101043281B (zh) | 波分复用网络同步数字系列光通道性能检测装置 | |
US20230122525A1 (en) | Data Frame Transmission Method and Related Device | |
WO2021218639A1 (zh) | 一种业务处理的方法、装置及设备 | |
WO2020051851A1 (zh) | 光传送网中的数据传输方法及装置 | |
EP4221009A1 (en) | Data frame check method, receiving device, and transmitting device | |
RU2817007C1 (ru) | Способ передачи кадров данных и соответствующее устройство | |
WO2021218721A1 (zh) | 业务处理的方法和装置 | |
CN115039358B (zh) | 一种数据传输方法及装置 | |
WO2023143577A1 (zh) | 一种光传送网中的数据帧的处理方法、装置和系统 | |
WO2017118042A1 (zh) | 通道状态的确定方法及装置 | |
WO2023221966A1 (zh) | 一种传输数据的方法和装置 | |
WO2024046465A1 (zh) | 一种传输数据的方法和装置 | |
RU2827136C1 (ru) | Способ обработки услуги, аппарат и устройство | |
WO2024045869A1 (zh) | 一种数据传输方法和数据传输装置 | |
WO2024002146A1 (zh) | 一种配置时隙的方法、装置和系统 | |
WO2023083254A1 (zh) | 一种光信号传送方法及装置 | |
WO2024051586A1 (zh) | 一种光传送网中的数据帧的处理方法、装置和系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21829041 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022579095 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2021829041 Country of ref document: EP Effective date: 20221229 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |