WO2022078225A1 - Communication method, apparatus, and system - Google Patents

Communication method, apparatus, and system Download PDF

Info

Publication number
WO2022078225A1
WO2022078225A1 PCT/CN2021/121969 CN2021121969W WO2022078225A1 WO 2022078225 A1 WO2022078225 A1 WO 2022078225A1 CN 2021121969 W CN2021121969 W CN 2021121969W WO 2022078225 A1 WO2022078225 A1 WO 2022078225A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
otn
data frame
code blocks
frames
Prior art date
Application number
PCT/CN2021/121969
Other languages
French (fr)
Chinese (zh)
Inventor
袁道春
陈玉杰
孙春
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022078225A1 publication Critical patent/WO2022078225A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects

Definitions

  • the present application relates to the field of optical communication, and in particular, to a communication method, device and system.
  • An optical communication system is a system that communicates based on optical signals.
  • a current optical communication system can use an optical service unit (optical service unit, OSU) encapsulation technology to transmit service data, and the minimum transmission unit is an OSU (also called an OSU cell).
  • OSU optical service unit
  • the rotation rate of the state of polarization (SOP) is an important indicator of an optical communication system.
  • the rotation rate of the SOP is less than 1M Rad/s (megaradians per second).
  • an oversized SOP may occur, which makes it impossible to demodulate optical signals, resulting in the loss of at least one OSU, resulting in cell-level service damage.
  • Embodiments of the present application provide a communication method, device, and system to solve the problem of cell-level service damage existing in the prior art.
  • a communication method which is applied to a sender.
  • the method includes: generating multiple optical transport network OTN data frames; and sequentially sending multiple OTN data frames.
  • each OTN data frame includes M data code blocks with equal lengths, and the data code blocks are used to carry service data.
  • the service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to the any data frame set.
  • a data frame set consists of L consecutive OTN data frames, M ⁇ 2, L ⁇ 1.
  • the length of the code block may also be referred to as the size of the code block, which refers to the number of bits or the number of bytes included in the code block.
  • each OTN data frame includes M data code blocks of equal length, and the number of any data frame set in the multiple OTN data frames is
  • the service data carried by the data code block belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • the service data of the OTN data frame is redundantly transmitted, and N data code blocks are used to transmit actual service data, that is, the service data carried by the N data code blocks is the same as that in the previous OTN data frame of the first OTN data frame.
  • the service data carried are different, the service data carried by the N data code blocks can be redundantly transmitted by the data code blocks of the OTN data frame after the first OTN data frame, and N is a positive integer smaller than M.
  • the number of times of redundant transmission of the service data carried by the N data code blocks by the data code blocks of the OTN data frame after the first OTN data frame is (M-N)/N times, that is, It means that the service data carried by the N data code blocks are transmitted [(M-N)/N]+1 times in total.
  • the service data carried in the first OTN data frame belongs to the Lth OTN data frame before the first OTN data frame (that is, before the first OTN data frame and at an interval of L-1 from the first OTN data frame.
  • the service data carried by the data frame of the first OTN data frame) and the Lth OTN data frame after the first OTN data frame (that is, after the first OTN data frame and at an interval of L-1 from the first OTN data frame)
  • the intersection of the service data carried by the data frame of the OTN data frame supports maximum resistance to loss of consecutive M-1 sets of data frames.
  • the M-N data code blocks of the first data frame are used for redundant transmission of service data of the Lth OTN data frame before the first OTN data frame, and the services carried by the N data code blocks are
  • the service data carried by the any data code block is redundantly transmitted for a total of (M-N)/N times, that is, the service data is transmitted [(M-N)/N]+1 times in total.
  • the data code blocks of every two adjacent data frame sets have (M-N) ⁇ L pairs of data code blocks that carry the same service data, and the data code blocks of every two adjacent data frame sets have N
  • the service data carried by ⁇ L is different for the data code block.
  • the service data carried in the M data code blocks are different from each other. In this way, the utilization rate of the OTN data frame can be improved.
  • the sender can support multiple encoding formats.
  • the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before generating a plurality of optical channel service unit OTN data frames, the communication method further includes: receiving a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the sending end; correspondingly, generating a plurality of encoding formats.
  • the process of the OTN data frame includes: generating multiple OTN data frames based on the target coding format.
  • the setting instruction is manually triggered.
  • the multiple encoding formats may be presented to the user through the user interface, and the user selects the target encoding format from the multiple encoding formats, thereby triggering the setting instruction.
  • the setting instruction is triggered by the management device.
  • the sender sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the sender through the setting instruction.
  • each data code block has a sequence number
  • data code blocks with the same sequence number carry the same service data
  • data code blocks with different sequence numbers carry different service data
  • each OTN data frame carries the OTN data frame.
  • each data code block in the OTN data frame carries a sequence number corresponding to the data code block.
  • the receiving end can scan each data code block in the OTN data frame to extract the corresponding sequence number from each data code block.
  • the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame.
  • the receiving end can scan the specified data code block to extract the sequence number corresponding to each data code block.
  • each OTN data frame further includes an identification code block
  • the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame.
  • the length of the identification code block is equal to the length of the data code block. In this way, the lengths of each code block in the OTN data frame can be consistent, which is convenient for the receiving end to perform data decoding and reduces computational overhead.
  • the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an arithmetic sequence (for example, an increasing arithmetic sequence) according to the transmission timing sequence from first to last; and/or, multiple The sequence numbers of the data code blocks located at the same transmission position in each OTN data frame are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last. In this way, it is convenient for the transmitting end and the receiving end to perform encoding and decoding.
  • the aforementioned two encoding methods also satisfy one or more of the following, which facilitates the encoding and decoding of the transmitting end and the receiving end, and realizes the rapid distinction of data code blocks:
  • the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an arithmetic sequence according to the transmission timing sequence from first to last.
  • the difference values of multiple arithmetic progressions corresponding to multiple OTN data frames are equal.
  • the sequence numbers of the data code blocks located at the same transmission position in the multiple OTN data frames are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last.
  • the difference values of the M arithmetic progressions in the one-to-one correspondence of the M transmission positions of the multiple OTN data frames are equal.
  • the starting sequence numbers of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are the same, for example, all are 1.
  • each OSU includes a check code block
  • the check code block includes a check code.
  • the sending end may generate the check code based on the specified check algorithm and the data code block of the OTN data frame.
  • the sender generates a check code based on a specified check algorithm and service data in a data code block of the OTN data frame; in another optional implementation manner, the sender generates a check code based on a specified check algorithm and the serial number of the data code block of the OTN data frame to generate a check code.
  • using the serial number of the data code block to generate the check code has less complexity and less computation.
  • the lengths of the check code block and the data code block are equal.
  • the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
  • the aforementioned identification code block and check code block can be the same code block, and the number of bits occupied by the serial number and the check code can be reduced by the multiplexing of the code blocks, and the utilization rate of the code block can be improved.
  • a communication method which is applied to a receiving end.
  • the method includes: receiving a plurality of OTN data frames of an optical transport network; and analyzing the received plurality of OTN data frames to obtain service data.
  • each OTN data frame includes M data code blocks of equal length, and the data code blocks are used to carry service data.
  • the service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to the any data frame set.
  • the data frame set consists of L consecutive OTN data frames, M ⁇ 2, L ⁇ 1.
  • each OTN data frame includes M data code blocks of equal length, and the number of any data frame set in the multiple OTN data frames is
  • the service data carried by the data code block belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • the data code blocks of every two adjacent data frame sets have (M-1) ⁇ L pairs of data code blocks that carry the same service data, and the data code blocks of every two adjacent data frame sets have the same service data.
  • N ⁇ L pairs of data code blocks that carry different service data There are N ⁇ L pairs of data code blocks that carry different service data, and N is a positive integer smaller than M.
  • the service data carried in the M data code blocks are different from each other. In this way, the utilization rate of the OTN data frame can be improved.
  • the receiving end may first perform deduplication processing on the received OTN data frame, so as to reduce the computational overhead and improve the subsequent parsing efficiency.
  • the process of parsing the received multiple OTN data frames to obtain the service data may include: performing deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; Data code block to obtain service data. After deduplication processing, redundant data code blocks can be discarded, thus reducing the storage load on the receiving end.
  • the receiver can support multiple encoding formats.
  • the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before parsing the received multiple OTN data frames to obtain service data, the communication method further includes: receiving a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the receiving end; correspondingly, parsing
  • the process of obtaining the service data from the received multiple OTN data frames includes: parsing the received multiple OTN data frames based on the target coding format to obtain the service data.
  • the setting instruction is manually triggered, for example, the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format from the multiple encoding formats, thereby triggering the setting instruction.
  • the setting instruction is triggered by the management device. For example, the receiving end sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the receiving end through the setting instruction.
  • the aforementioned process of parsing a plurality of received OTN data frames to obtain service data includes: after each buffering at least two received OTN data frames, parsing the buffered OTN data frames to obtain service data. In this way, the loss of at least one OTN data frame can be achieved.
  • each data code block has a sequence number
  • data code blocks with the same sequence number carry the same service data
  • data code blocks with different sequence numbers carry different service data
  • each OTN data frame carries the OTN data frame.
  • the receiving end may determine whether the service data carried by the data code blocks in different OTN data frames are the same based on the sequence numbers carried in different OTN data frames. In this way, the working efficiency of the receiving end can be improved.
  • each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame; the receiving end can obtain the identification code block from each OTN data frame. Read the serial number.
  • each OSU carries a check code, and the check code is generated based on a data code block of the OSU; the receiving end can also check whether each OSU has a code error based on the check code of each OSU ;Discard the OSU with bit error. The receiving end discards the OTN data frame with bit error, avoids parsing the OTN data frame with bit error, and reduces unnecessary computing overhead.
  • the lengths of the check code block and the data code block are equal.
  • a communication device in a third aspect, includes: a processing circuit and a communication interface, the processing circuit is used for executing any one of the communication methods in the first aspect; the communication interface is used for the processing circuit to communicate with other devices.
  • the processing circuit may be a processing chip or a field programmable gate array (Field Programmable Gate Array, FPGA).
  • a communication device in a fourth aspect, includes: a processing circuit and a communication interface, the processing circuit is used for executing any one of the communication methods in the second aspect; the communication interface is used for the processing circuit to communicate with other devices.
  • the processing circuit may be a processing chip or an FPGA.
  • the present application provides a communication device, where the communication device includes at least one module, and the at least one module can be used to implement the first aspect or the communication method provided by various possible implementations of the first aspect.
  • the present application provides a communication device, the communication device includes at least one module, and the at least one module can be used to implement the second aspect or the communication method provided by various possible implementations of the second aspect.
  • the present application provides an optical communication system, the optical communication system includes a transmitter and a receiver, the transmitter includes the communication device provided in the third aspect, and the receiver includes the communication device provided in the fourth aspect.
  • the sending end includes the communication device provided in the fifth aspect
  • the receiving end includes the communication device in the sixth aspect.
  • the present application provides a computer device including a processor and a memory.
  • the memory stores computer instructions; the processor executes the computer instructions stored in the memory, so that the computer device performs the first aspect or the methods provided by various possible implementations of the first aspect.
  • the processor executes the computer instructions stored in the memory, so that the computer device executes the above-mentioned second aspect or the methods provided by various possible implementations of the second aspect.
  • the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and the computer instructions instruct a computer device to execute the method provided by the first aspect or various possible implementations of the first aspect .
  • computer instructions are stored in the computer-readable storage medium, and the computer instructions instruct a computer device to execute the method provided by the second aspect or various possible implementations of the second aspect.
  • the present application provides a computer program product comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the first aspect or the method provided by various possible implementations of the first aspect;
  • the computer device performs the method provided by the above-mentioned second aspect or various possible implementations of the second aspect.
  • a chip in an eleventh aspect, is provided.
  • the chip may include programmable logic circuits for implementing a communication method as in any of the first aspects when the chip is in operation. Or, when the chip is running, it is used to implement the communication method according to any one of the second aspect.
  • each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames
  • the service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • the communication method provided by the embodiments of the present application can support the bearing of highly reliable services such as power relay protection on the 100G coherent system, and improve the versatility of the 100G coherent system in the power transmission and transformation system.
  • the bandwidth of highly reliable services such as power relay protection is usually small (for example, the bandwidth is 2M).
  • this communication method increases the redundant bandwidth, it does not affect the bearing of services.
  • the communication method provided by the embodiment of the present application may also be applied to a service scenario in which other cell-level and/or millisecond-level communication interruptions occur.
  • FIG. 1 is a schematic diagram of an application environment of an optical communication system involved in a communication method provided by an embodiment of the present application;
  • FIG. 2 is a schematic structural diagram of an OPGW provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another OPGW provided by an embodiment of the present application.
  • FIG. 4 is a schematic cross-sectional view of the OPGW shown in FIG. 2 provided by an embodiment of the present application;
  • FIG. 5 is a schematic cross-sectional view of the OPGW shown in FIG. 3 provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of a frame structure of an ODU using the OSU encapsulation technology provided by an embodiment of the present application;
  • FIG. 7 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using the first encoding format provided by an embodiment of the present application;
  • FIG. 9 is a schematic diagram of the arrangement structure of data code blocks of a plurality of OTN data frames encoded by adopting the second encoding format provided by an embodiment of the present application;
  • FIG. 10 is a schematic diagram of the arrangement structure of data code blocks of a plurality of OTN data frames encoded by a third encoding format provided by an embodiment of the present application;
  • FIG. 11 is a schematic diagram of the arrangement structure of the data code blocks of a plurality of OTN data frames encoded by adopting the fourth encoding format according to an embodiment of the present application;
  • FIG. 12 is a schematic diagram of the actual structure of an OTN data frame provided by an embodiment of the present application.
  • FIG. 13 is a partial structural schematic diagram of a communication frame structure in an optical communication system provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of the relationship between the rotation rate of the SOP over time when a super-large SOP occurs in an optical communication system provided in an embodiment of the present application;
  • FIG. 15 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of still another communication apparatus provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application environment of an optical communication system 10 involved in a communication method provided by an embodiment of the present application.
  • the optical communication system 10 is an optical transport network (OTN).
  • OTN optical transport network
  • the OTN may be a coherent optical fiber (also called optical cable) communication system, or simply a coherent system.
  • the optical communication system 10 includes: a sending end (also called a sending end device) 101 , a receiving end (also called a receiving end device) 102 , an optical fiber 103 , a sending end optical module 104 and an optical signal receiving end 105 .
  • the sending end 101 is used to generate electrical signals and send the electrical signals to the sending end optical module 104; the sending end optical module 104 is used to convert the electrical signals into optical signals, and send the optical signals to the receiving end optical module 105; The end optical module 105 is used to convert the received optical signal into an electrical signal, and transmit it to the receiving end 102 , and the receiving end 102 demodulates the electrical signal.
  • the transmitting end optical module 104 and the receiving end optical module 105 are connected through the optical fiber 103, and use optical signals for long-distance communication.
  • the transmitting end optical module 104 may be integrated in the transmitting end 101 , or may be provided outside the transmitting end 101 ;
  • FIG. 1 is only a schematic illustration, and does not limit the positional relationship of each device in the optical communication system 10 .
  • the transmission rate supported by optical fiber evolves from single-wave 10G (that is, the transmission rate of each wave is 10G) to single-wave 100G (that is, the transmission rate of each wave is 100G).
  • the aforementioned optical communication system is a coherent system using coherent modulation technology, which can reduce the bit rate and improve the single-wave transmission rate.
  • the coherent modulation technique is polarization division multiplexing (PDM)-quadrature phase shift keying (QPSK).
  • the rotation rate of the SOP is an important performance parameter to measure the state of the SOP.
  • the factors affecting the SOP mainly come from the vibration of the optical fiber, and the rotation rate of the SOP is less than 1M Rad/s.
  • super large SOP usually refers to the situation where the rotation rate of the SOP is greater than the preset rotation rate threshold, and the preset rotation threshold may be 1M Rad/s.
  • the use of coherent modulation technology requires coherent modulation of polarized light with a vertical polarization direction at the optical module at the transmitting end, while the SOP of the upper optical signal needs to be tracked when the optical module at the receiving end performs coherent demodulation.
  • the large SOP will cause the optical module at the receiving end to be unable to perform coherent demodulation of the optical signal.
  • the optical fiber for power transmission and transformation is usually an optical fiber composite overhead ground wire (OPGW), also known as a composite optical cable.
  • FIG. 2 and FIG. 3 are schematic structural diagrams of two types of OPGWs provided by embodiments of the present application, respectively.
  • 4 and 5 are schematic cross-sectional views of the OPGW shown in FIGS. 2 and 3 , respectively.
  • the OPGW includes an optical fiber 201 , a central aluminum bundle tube 202 surrounding the optical fiber 201 , and a rotating wire 203 covering the central aluminum bundle tube 202 .
  • the rotating wire 203 is usually a metal wire.
  • FIG. 2 and 4 show the structure of a single-layer POGW, and the aluminum alloy wire 2031 and the aluminum-clad steel wire 2032 are located on the same layer;
  • Figures 3 and 5 show the structure of a double-layer POGW, and the aluminum alloy wire 2031 and the aluminum-clad steel wire 2032 are located in different layers, for example, the layer where the aluminum-clad steel wire 2032 is located is clad with the layer where the aluminum-clad steel wire 2032 is located.
  • OPGWs are usually mounted on top of iron towers used for high-voltage power transmission and transformation. OPGW not only acts as a ground wire for carrying lightning strikes on high-voltage lines, but also acts as a communication optical cable for power transmission and transformation.
  • the OPGW itself is a ground wire used for lightning induction, it is easily attacked by lightning during a thunderstorm, thus forming an induced current on the OPGW.
  • the current According to the skin effect of the current, the current generates a rotating current on the rotating wire 203 and forms a magnetic field in the same direction as the optical fiber 201 .
  • the Faraday rotation effect also called the magneto-optical rotation effect
  • the magnetic field will have a serious impact on the SOP of the optical fiber 201 .
  • the rotation rate of SOP exceeds 20M Rad/s, which is much larger than the rotation rate under normal conditions.
  • the optical module at the receiving end cannot track the SOP of the optical signal, and thus the optical module at the receiving end cannot demodulate the optical signal.
  • the current optical communication system uses the OTN transmission technology to carry service data.
  • Optical channel Data Unit (ODU) and OSU are used in OTN transmission technology.
  • ODU mainly carries business data with high transmission rate (also called service rate), such as business data with a transmission rate of more than 1.25G bit/s (gigabit per second);
  • OSU mainly carries business data with low transmission rate, such as transmission Service data at a rate of 2M bit/s (megabits per second).
  • the embodiments of the present application are described by taking the transmitting end 101 and the receiving end 102 using the OSU encapsulation technology to transmit service data as an example for description. That is, the OSU is used as the basic bearer and exchange cell.
  • FIG. 6 is a schematic structural diagram of an ODU frame carrying an OSU provided by an embodiment of the present application.
  • the frame structure of the ODU includes: Frame Alignment Signal (FAS) area, Optical Transport Unit (OTU) overhead (Overhead, OH) area, ODU OH area, Optical payload unit (Optical payload unit) , OPU) OH area and payload area.
  • the FAS area is used to carry the frame alignment signal;
  • OTU OH, ODU OH and OPU OH are respectively used to carry the operation, management and maintenance overhead information for these three OTN frames.
  • the payload area of the ODU is used to carry the OSU transmission unit.
  • FIG. 6 takes the nth OSU transmission unit as an example.
  • the structures of other OSU transmission units are the same as the nth OSU transmission unit.
  • the nth OSU transmission unit includes a tributary port number (TPN) unit and an OSU.
  • the TPN unit carries a channel identification number, and the channel identification number is the channel number of the OSU, which is used to describe the corresponding OSU as the No. 1 in the ODU.
  • Several OSUs; an OSU includes an overhead area (also called a cell header) and a payload area.
  • the overhead area carries information used to describe the payload area, such as service type, encapsulation length and encapsulation format, etc.
  • the payload area is used to carry service data.
  • the frame length of an OSU is usually a fixed value, such as 192Byte.
  • the transmission rate of the OSU is usually a fixed value, such as 2Mbit/s.
  • the frame structure of the ODU uses the time division multiplexing technology, and by adjusting the correspondence between different services and the OSU, services at different rates can be carried. For example, if a service needs to achieve a fixed rate of R*2Mbit/s, the service is established with R OSUs, and the R OSUs transmit service data of the service, where R is a positive integer.
  • FIG. 7 is a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 7, the method includes the following steps.
  • the transmitting end generates multiple OTN data frames.
  • an OTN data frame also called an OTN frame or an OTN subframe
  • OTN frame is used to carry service data in the OTN
  • it may be an OSU (also called an OSU cell or a subframe in an ODU) or an ODU, or It can be other cells used to carry service data.
  • the frame length of the OTN data frame is 192 Bytes.
  • the OTN data frame For each OTN data frame in the plurality of OTN data frames, the OTN data frame includes M data code blocks of equal length.
  • the length of the code block may also be referred to as the size of the code block, which refers to the number of bits or the number of bytes included in the code block.
  • the data code block is used to carry service data, and the service data carried by the data code block of any data frame set in the multiple OTN data frames belongs to the data code blocks of the two adjacent data frame sets adjacent to the data frame set. The union of carried business data.
  • the arbitrary data frame set is composed of L consecutive OTN data frames, M ⁇ 2, L ⁇ 1.
  • the L OTN data frames are random and continuous L OTN data frames, and do not specifically refer to an OTN data frame at a certain position. There is no overlap of OTN data frames between any data frame set and its adjacent two data frame sets.
  • mapping also called loading or filling
  • any data frame set in the multiple OTN data frames is X
  • the two data frame sets before and after it are X1 and X2
  • X ⁇ (X1 ⁇ X2) the service data carried by the data frame set X can be obtained from the two data frame sets X1 and/or X2 before and after it.
  • the communication method provided by the embodiment of the present application is resistant to the loss of at least one OTN data frame, that is, the service impairment at the cell level.
  • any data frame set is the first data frame set in multiple OTN data frames, the previous data frame set is empty; if any data frame set is the last data frame set in multiple OTN data frames A collection of dataframes followed by an empty collection of dataframes.
  • FIG. 8 and FIG. 9 are schematic diagrams of arrangement structures of data code blocks of multiple OTN data frames encoded by using the first encoding format and the second encoding format, respectively, according to an embodiment of the present application.
  • each square represents a data code block
  • a column of squares represents 4 data code blocks of an OTN data frame
  • the same sequence number represents the data code block carrying the same service data
  • different sequence numbers represent different service data.
  • the unfilled squares represent idle data blocks, that is, data blocks that do not carry service data, and idle data blocks can also be regarded as redundant data blocks (that is, carrying service data and previous OTN data).
  • the service data of the frame repeats the data code block).
  • Data frame set Y and data frame set Y1 have 3 pairs of data code blocks that carry the same service data, namely 1 pair of data code blocks 8, 1 pair of data code blocks 9, and 1 pair of data code blocks 10; There is a pair of data code blocks in frame set Y1 that carry different service data, namely data code block 7 of data frame set Y1 and data code block 11 of data frame set Y; data code blocks exist in data frame set Y and data frame set Y1. There are 5 data code blocks from 7 to 11 that carry different service data.
  • Data frame set Y and data frame set Y2 have 3 pairs of data code blocks that carry the same service data, namely 1 pair of data code blocks 9, 1 pair of data code blocks 10, and 1 pair of data code blocks 11; There is a pair of data code blocks in frame set Y2 that carry different service data, namely data code block 8 of data frame set Y and data code block 12 of data frame set Y2; data code blocks exist in data frame set Y and data frame set Y2 There are 5 data code blocks from 8 to 12 that carry different service data.
  • the data frame set Y includes data code blocks 8, 9, 10, 11 that carry different service data
  • the union of the data frame sets Y1 and Y2 includes data code blocks 7, 8, 9, 10, 11, 12, the data frame set Y belongs to the union of the data frame sets Y1 and Y2.
  • the service data carried by the data code block of any data frame set including one OTN data frame can be carried from the data code block of the previous data frame set and/or the next data frame set. obtained from the business data. Therefore, it is possible to resist the loss of at least one continuous OTN data frame.
  • Data frame set Z and data frame set Z1 have 12 pairs of data code blocks that carry the same service data, that is, data code blocks 5 to 16; data frame set Z and data frame set Z1 have 4 pairs of data code blocks that carry different service data. They are the data code blocks 1 to 4 of the data frame set Z1, and the data code blocks 17 to 20 of the data frame set Z; there are 20 data code blocks 1 to 20 in the data frame set Z and the data frame set Z1, which carry different service data. data block.
  • Data frame set Z and data frame set Z2 have 12 pairs of data code blocks that carry the same service data, that is, data code blocks 9 to 20; data frame set Z and data frame set Z2 have 4 pairs of data code blocks that carry different service data. They are the data code blocks 5 to 8 of the data frame set Z and the data code blocks 21 to 24 of the data frame set Z2; the data frame set Z and the data frame set Z2 have a total of 20 data code blocks 5 to 24 that carry different service data. Data code block.
  • the data frame set Z includes data code blocks 5 to 20 that carry different service data
  • the union of the data frame sets Z1 and Z2 includes data code blocks 1 to 24 that carry different service data
  • the data frame set Z belongs to data.
  • the service data carried by the data code block of any data frame set including four OTN data frames can be carried from the data code block of the previous data frame set and/or the next data frame set. obtained from the business data. Therefore, it is possible to resist the loss of at least 4 consecutive OTN data frames.
  • the first data frame is any data frame among multiple OTN data frames, and among the M data code blocks included in the first OTN data frame, M-N data code blocks are used for matching data in the first OTN data frame.
  • the service data carried by the data code blocks of the OTN data frame before the first OTN data frame is redundantly transmitted, and the M-N data code blocks are called redundant data code blocks.
  • the N data code blocks are used to transmit actual service data, that is, the service data carried by the N data code blocks is different from the service data carried in the OTN data frame before the first OTN data frame, and N is less than M. positive integer.
  • the service data carried by the N data code blocks may be redundantly transmitted by the data code blocks of the OTN data frame after the first OTN data frame.
  • the number of times of redundant transmission of the service data carried by the N data code blocks by the data code blocks of the OTN data frame after the first OTN data frame is (M-N)/N times, that is, It means that the service data carried by the N data code blocks are transmitted [(M-N)/N]+1 times in total.
  • data code blocks 8, 9 and 10 are redundant data code blocks, which are used to compare the data in the OTN data frame before OTN data frame Y
  • the service data carried by the code block is redundantly transmitted, and the data code block 11 is used to transmit actual service data.
  • the service data carried in the first OTN data frame belongs to the Lth OTN data frame before the first OTN data frame (that is, before the first OTN data frame and at an interval of L-1 from the first OTN data frame.
  • the service data carried by the data frame of the first OTN data frame) and the Lth OTN data frame after the first OTN data frame (that is, after the first OTN data frame and at an interval of L-1 from the first OTN data frame)
  • the intersection of the service data carried by the data frame of the OTN data frame supports maximum resistance to loss of consecutive M-1 sets of data frames.
  • the M-N data code blocks of the first data frame are used for redundant transmission of service data of the Lth OTN data frame before the first OTN data frame, and the services carried by the N data code blocks are
  • the service data carried by the any data code block is redundantly transmitted for a total of (M-N)/N times, that is, the service data is transmitted [(M-N)/N]+1 times in total.
  • the service data carried by any OTN data frame belongs to the service carried by the first OTN data frame before the any OTN data frame.
  • any 1 to 3 consecutive data frame sets in the first encoding mode, any 1 to 3 consecutive OTU data frames
  • the service data carried by the lost data frame sets can be
  • the service data carried by the adjacent previous data frame set and/or the next data frame set is obtained.
  • Y3 consists of 3 consecutive OTN data frames, which include different data code blocks 13 to 18.
  • Y3 When the Y3 is lost, Y3 can be obtained from the OTN data frames before and after the Y3: Y4 and Y5.
  • the oblique-lined data code block in FIG. 8 carries the same service data as the data code block in Y3.
  • the service data carried by any OTN data frame belongs to the service data carried by the 4th OTN data frame before the any OTN data frame and the service data carried after the any OTN data frame The intersection of the service data carried in the fourth OTN data frame.
  • Any 1 to 3 consecutive data frame sets (in the first encoding method, any 4, 8 or 12 consecutive OTU data frames) are lost, and the service data carried by the lost data frame sets can be The service data carried by the adjacent previous data frame set and/or the next data frame set is obtained.
  • Z3 consists of 3 consecutive data frame sets, which include different data code blocks 5 to 28. When the Z3 is lost, it can be obtained from the OTN data frame sets before and after the Z3: Z1 and Z4
  • the data code blocks underlined in FIG. 9 carry the same service data as the data code blocks in Z3.
  • the data code blocks of every two adjacent data frame sets have (M-N) ⁇ L pairs of data code blocks that carry the same service data.
  • the data is different, that is, there are 2 ⁇ N ⁇ L data code blocks carrying different service data in the data code blocks of every two adjacent data frame sets.
  • the situation occurs that the service data of 2 is completely duplicated, and the data amount of different service data carried by every two adjacent data frame sets is increased.
  • the service data carried in the M data code blocks are different from each other. In this way, there is no redundancy of service data in the same OTN data frame, which can improve the utilization rate of the OTN data frame.
  • each data code block has a sequence number
  • data code blocks with the same sequence number carry the same service data
  • data code blocks with different sequence numbers carry different service data.
  • Using the serial number to identify the data code block can realize the rapid identification of the data code block, and it is convenient for the receiving end to distinguish whether the service data carried by the data code block is the same based on the serial number, so as to improve the efficiency of the receiving end.
  • the data code blocks are identified by the serial numbers possessed by the data code blocks.
  • the aforementioned two encoding methods can also satisfy one or more of the following, which is convenient for the transmitting end and the receiving end to perform encoding and decoding, and realizes the rapid differentiation of data code blocks:
  • the sequence numbers of the M data code blocks are arranged in an arithmetic sequence according to the order of the transmission timing.
  • the difference values of multiple arithmetic progressions corresponding to multiple OTN data frames are equal.
  • the arithmetic sequence corresponding to any OTN data frame is an arithmetic sequence in FIG. 8 or FIG. 9 .
  • the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an ascending equal difference sequence according to the sending sequence from first to last, and the difference is 1; in Fig. 9, the M data code blocks included in the same OTN data frame
  • the sequence numbers of the data code blocks are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last, and the difference is 4.
  • the sequence numbers of the data code blocks located at the same transmission position are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last.
  • the difference values of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are equal, and the arithmetic progression corresponding to any sending position is a row of arithmetic progressions in FIG. 8 or FIG. 9 .
  • 8 and 9 both take the difference value of 1 as an example for description.
  • the starting sequence numbers of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are the same, and FIG. 8 and FIG. 9 both take the starting sequence number of 1 as an example for description.
  • a new encoding method can also be obtained by simply replacing or improving on the basis of the foregoing two encoding methods according to the application scenario.
  • the sequence numbers of the M data code blocks included in the same OTN data frame are not arranged in an arithmetic sequence according to the transmission timing sequence, but they can form an arithmetic sequence, such as 1, 7, 5 or 8, 4, 6.
  • the sequence numbers of data code blocks located at the same transmission position in multiple OTN data frames are not arranged in an increasing arithmetic sequence according to the transmission timing sequence, but may form an increasing arithmetic sequence.
  • the actually generated multiple OTN data frames do not include the first M-1 data frame sets in FIG. 8 or FIG. 9 . Any simple replacement or improvement based on the communication method provided by the embodiment of the present application shall be included in the protection scope of the embodiment of the present application.
  • FIG. 10 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using a third encoding format according to an embodiment of the present application.
  • sequence numbers of the three data code blocks included in the same OTN data frame are arranged in a descending arithmetic sequence according to the transmission timing sequence, and a plurality of arithmetic differences corresponding to the multiple OTN data frames one-to-one are presented.
  • the difference of the sequence is equal, the difference is 6.
  • the sequence numbers of the data code blocks located at the same transmission position in multiple OTN data frames are arranged in an ascending equal difference sequence according to the transmission timing sequence, and the M transmission positions of the multiple OTN data frames correspond to M one-to-one, etc.
  • the difference values of the difference series are equal, and the difference values are both 2.
  • FIG. 11 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using a fourth encoding format according to an embodiment of the present application.
  • two pairs of data code blocks in every two adjacent data frame sets carry the same service data
  • two pairs of data code blocks in every two adjacent data frame sets carry different service data.
  • the sequence numbers of the 4 data code blocks included in the same OTN data frame are arranged in an ascending equidistant sequence according to the sending timing sequence from first to last, and a plurality of equidistant numbers corresponding to the multiple OTN data frames one-to-one.
  • the difference of the sequence is equal, and the difference is 1.
  • the sequence numbers of the data code blocks located at the same transmission position in multiple OTN data frames are arranged in an ascending equal difference sequence according to the transmission timing sequence, and the M transmission positions of the multiple OTN data frames correspond to M one-to-one, etc.
  • the difference values of the difference series are equal, and the difference values are all 1.
  • the first M-1 data frame sets include idle data code blocks.
  • time can be provided for the receiving end to perform parsing preparations, thereby ensuring effective parsing of the received data code blocks by the receiving end.
  • the multiple OTN data frames shown in FIGS. 8 to 11 are only a part of the actually generated OTN data frames, and the arrangement structure of the OTN data frames of other parts refers to the multiple OTN data frames shown in FIGS. 8 to 11 .
  • Arrange structure
  • each data block has a sequence number.
  • each OTN data frame carries the sequence number of the data code block of the OTN data frame. In this way, it is convenient for the receiving end to determine whether the service data carried by the data code blocks of the OTN data frame is the same by extracting the sequence number from the OTN data frame, thereby improving the working efficiency of the receiving end.
  • each data code block in the OTN data frame carries a sequence number corresponding to the data code block.
  • the sequence number is carried at a specified position of the data code block (eg, the start position or the end position of the data code block).
  • the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame.
  • the specified data code block is the first data code block or the last data code block of the OTN data frame.
  • each OTN data frame further includes an identification code block
  • the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame.
  • the specified data code block or the identification code block carries M serial numbers corresponding to the M data code blocks one-to-one, and the M serial numbers can be arranged in the specified order, In order to facilitate the receiving end to determine the data code block corresponding to each serial number according to the arrangement order of the M serial numbers.
  • the specified order is the transmission timing of the M data code blocks, that is, the arrangement order from first to last in the OTN data frame.
  • the length of the identification code block is equal to that of the data code block.
  • the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
  • the identification code block may be set at a position before or after the M data code blocks in an OTN data frame, and the identification code block may be set adjacent to the M data code blocks.
  • the check code is added in the ODU OH area to check whether the ODU has an error.
  • each OTN data frame carries a check code
  • the check code is generated based on a data code block of the OTN data frame.
  • the sending end may generate the check code based on the specified check algorithm and the data code block of the OTN data frame.
  • the sender generates a check code based on a specified check algorithm and service data in a data code block of the OTN data frame; in another optional implementation manner, the sender generates a check code based on a specified check algorithm and the serial number of the data code block of the OTN data frame to generate a check code.
  • the check algorithm is a forward error correction code (Forward Error Correction, FEC) check, a cyclic redundancy check (Cyclic Redundancy Check, CRC) check, or an algorithm such as a parity check.
  • FEC Forward Error Correction
  • CRC Cyclic Redundancy Check
  • the check code can be used by the receiving end to identify whether there is an error in the OTN data frame, so as to realize the error identification at the cell level.
  • the OTN data frame is OSU
  • the identification granularity of bit errors can be refined and the identification accuracy of bit errors can be improved.
  • a specified data code block in the OTN data frame carries the check code.
  • the specified data code block is the first data code block or the last data code block of the OTN data frame.
  • the receiving end can scan the specified data code block to extract the check code.
  • each OTN data frame further includes a check code block, and the check code block includes a check code.
  • the lengths of the check code block and the data code block are equal.
  • the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
  • the check code block is usually set at a position after the M data code blocks in an OTN data frame. In this way, while generating the data code block of the OTN data frame, the check code can be generated synchronously, thereby saving the generation time of the OTN data frame.
  • the check code block is arranged adjacent to the M data code blocks.
  • the aforementioned identification code block and check code block may be the same code block, and the number of bits occupied by the serial number and the check code can be reduced by the multiplexing of the code blocks, and the utilization rate of the code block can be improved.
  • the embodiment of the present application calls the code block an identification check code block.
  • FIG. 12 is a schematic diagram of an actual structure of an OTN data frame provided by an embodiment of the present application.
  • the OTN data frame includes an overhead area and a payload area that are arranged in sequence from the beginning to the end (ie, the x direction in FIG. 12 ).
  • the overhead area includes information used to describe the payload, such as service type, encapsulation length and encapsulation format, etc.
  • the payload area includes M data code blocks and is located at the end of the payload area (that is, after the M data code blocks)
  • the payload area with a length of 185Byte in the OSU can be equally divided into 5 code blocks of 37Byte, wherein 4 code blocks are data code blocks; 1 Each code block is an identification check code block. If a plurality of OSUs are obtained by using the aforementioned first coding format, 5 times the redundant bandwidth is required.
  • the sender can support multiple encoding formats, such as the first to fourth encoding formats, the OTN data frames obtained by different encoding formats are arranged in different ways, and the anti-OTN data frame loss capability supported by the optical communication system is also different. For example, if the service data carried in the first OTN data frame belongs to the service data carried in the Lth OTN data frame before the first OTN data frame and the service data carried in the Lth OTN data frame after the first OTN data frame , the optical communication system supports the maximum resistance to the loss of M-1 consecutive data frame sets. Users can select the desired target encoding format according to business requirements.
  • the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before the aforementioned process of generating multiple OTN data frames, the communication method further includes: the sending end receives a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the sending end.
  • the transmitting end generates multiple OTN data frames based on the target encoding format.
  • the setting instruction is manually triggered, for example, the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format from the multiple encoding formats, thereby triggering the setting instruction.
  • the setting instruction is triggered by the management device.
  • the sender sends the supported multiple encoding formats to the management device
  • the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the sender through the setting instruction.
  • the transmitting end sends multiple OTN data frames in sequence.
  • FIG. 13 is a schematic partial structural diagram of a communication frame structure in an optical communication system provided by an embodiment of the present application.
  • the communication frame may be an ODU.
  • FIG. 11 for the structure of each OTN data frame in the communication frame structure.
  • Fig. 13 assumes that the encoding format of the data code blocks in the multiple OTN data frames adopts the aforementioned first encoding format, but Fig. 13 is only a schematic illustration, and the encoding format of the data code blocks in the multiple OTN data frames can also adopt the aforementioned second encoding format encoding formats or other encoding formats, which will not be repeated in this embodiment of the present application.
  • the sender sends multiple OTN data frames in the order from head to tail (ie, the y direction in Figure 13).
  • the OTN data frames are transmitted in the order in which the x-direction in FIG. 13 is the same).
  • the sending end sends the OTN data frame every time it generates an OTN data frame (that is, every time an OTN data frame is buffered), so that the sending delay of the sending end is the length of one OTN data frame, The delay is short, and the OTN data frame transmission efficiency is high.
  • the receiving end receives multiple OTN data frames.
  • the sending end sends the multiple OTN data frames in sequence, and after receiving the multiple OTN data frames, the receiving end arranges the multiple OTN data frames according to the sending sequence to ensure the accuracy of decoding. .
  • the receiving end checks whether there is a bit error in each OTN data frame. When there is a bit error in the OTN data frame, go to S305; when there is no bit error in the OTN data frame, go to S306.
  • each OTN data frame may carry a check code, and the check code is generated based on the data code block of the OTN data frame; correspondingly, the receiving end checks each OTN based on the check code of each OTN data frame Whether there is a bit error in the data frame. For example, the receiving end may generate a check code based on the specified check algorithm and the data code block of the OTN data frame, and compare whether the generated check code is the same as the check code carried in the OTN data frame.
  • the generated check code is different from the check code carried in the OTN data frame, it is determined that there is an error in the OTN data frame; if the generated check code is the same as the check code carried in the OTN data frame, it is determined that the OTN data frame No errors occurred.
  • the specified check algorithm is the same as the check algorithm used by the sender to generate the check code. For the process of generating the check code, reference may be made to the process of generating the check code by the sender.
  • OTN data frames may be affected by the environment during transmission, and data code blocks may be lost, resulting in bit errors in OTN data frames. For example, in a thunderstorm, the data block is lost due to the excessive rotation rate of the SOP.
  • the receiving end performs bit error checking on the OTN data frame, and can discard the OTN data frame with bit error, avoid parsing the OTN data frame with bit error, and reduce unnecessary operation overhead.
  • the receiving end parses the received multiple OTN data frames to obtain service data.
  • the receiving end may first perform deduplication processing on the received OTN data frame, so as to reduce the computational overhead and improve the subsequent parsing efficiency.
  • the process of parsing the received multiple OTN data frames to obtain the service data may include: performing deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; Data code block to obtain service data. After deduplication processing, redundant data code blocks can be discarded, thus reducing the storage load on the receiving end.
  • each data code block has a sequence number
  • the data code blocks with the same sequence number carry the same service data
  • the data code blocks with different sequence numbers carry different service data
  • each OTN data frame carries the data of the OTN data frame.
  • the receiving end determines whether the service data carried by the data code blocks in different OTN data frames is the same based on the sequence numbers carried in different OTN data frames. In this way, the receiving end can distinguish whether different data code blocks carry the same service data without acquiring the service data in the data code blocks, thereby effectively reducing the operation cost of the receiving end.
  • the receiving end uses different ways to obtain the serial number carried by the OTN data frame.
  • the following three optional examples are used as examples to illustrate:
  • each data code block in the OTN data frame carries a sequence number corresponding to the data code block.
  • the receiving end can scan each data code block in the OTN data frame to extract the corresponding sequence number from each data code block.
  • the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame.
  • the receiving end can scan the specified data code block to extract the sequence number corresponding to each data code block.
  • each OTN data frame further includes an identification code block
  • the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame.
  • the length of the identification code block is equal to the length of the data code block. In this way, the lengths of each code block in the OTN data frame can be consistent, which is convenient for the receiving end to perform data decoding and reduces computational overhead.
  • the receiving end parses the buffered OTN data frames to obtain service data after buffering at least two received OTN data frames.
  • resistance to at least one OTN data frame loss can be achieved.
  • the receiving end when it parses multiple received OTN data frames, it can cache the OTN data frames first, and then parse the cached OTN data frames. , get business data. However, if the cache time is too long, the parsing delay will increase, affecting the delay of the receiving end outputting the parsed service data, and reducing the user experience.
  • the number of OTN data frames buffered by the receiving end is different, and the parsing time of the receiving end is different. Delay is also different.
  • the service data carried by any OTN data frame belongs to the service data carried by the Lth OTN data frame before the any OTN data frame and the service carried by the Lth OTN data frame after the any OTN data frame If the intersection of data, the optical communication system supports maximum resistance to loss of consecutive (M-N)/N data frame sets.
  • the receiving end supports anti-loss of consecutive i data frame sets, the number of buffered OTN data frames is (i ⁇ L+1), and the parsing delay is (i ⁇ L+1) when transmitting OTN data frames Delay, resist the communication interruption of (i ⁇ L) OTN data frames, 1 ⁇ i ⁇ [(M-N)/N].
  • the embodiments of the present application are described by taking the following situations as examples.
  • the receiving end supports the first encoding method.
  • the service data carried by the data code block including any OTN data frame can be obtained from the adjacent previous OTN data frame and/or the corresponding service data. Obtained from the service data carried in the data code block of the adjacent OTN data frame. In this way, if any OTN data frame is lost in the transmission process, the receiving end can obtain the data from the service data carried by the data code block of the adjacent previous OTN data frame and/or the adjacent latter OTN data frame. Service data carried in the data code block of any OTN data frame.
  • the receiving end since the receiving end has acquired the OTN data frame before and adjacent to the any OTN data frame, the receiving end buffers two received OTN data frames every time. (that is, after the any OTN and the OTN data frame after the any OTN data frame and adjacent to the any OTN data frame), the buffered OTN data frame is parsed to obtain service data. In this way, one OTN data frame loss can be resisted.
  • the service data carried by any OTN data frame belongs to the service data carried by the first OTN data frame before the any OTN data frame and the service data carried by the first OTN data frame after the any OTN data frame 8
  • the service data carried by the lost OTN data frame can be replaced by the previous OTN data frame and/or the next OTN data frame adjacent to the lost OTN data frame.
  • the receiving end When the 3 data code blocks of the any OTN data frame are used to redundantly transmit the service data of the first OTN data frame before the any OTN data frame, and the service data ( That is, when the actual service data) is redundantly transmitted by the data code block of the first OTN data frame after any OTN data frame, the receiving end only needs to obtain the lost OTN data frame from the OTN data frame after the lost OTN data frame.
  • the number of OTN data frames buffered by the receiver is 2, and the parsing delay is the transmission delay of two OTN data frames, and the parsing delay is about 289us (microseconds). ), can resist communication interruption of about 145us; if it is necessary to resist the loss of 2 consecutive OTN data frames, the number of OTN data frames buffered by the receiving end is 3, and the parsing delay is the transmission delay of 3 OTN data frames.
  • the parsing delay is about 434us, which can resist the communication interruption of about 289us; if it needs to resist the loss of 3 OTN data frames, the number of OTN data frames buffered by the receiving end is 4, and the parsing delay is the transmission of 4 OTN data frames. Delay, the analysis delay is about 578us, which can resist the communication interruption of about 434us.
  • the receiving end supports the second encoding method.
  • the service data carried by the data code block of any data frame set including four OTN data frames can be obtained from the previous data frame set and / or obtained from the service data carried by the data code blocks of the latter data frame set. In this way, if any data frame set is lost in the transmission process, the receiving end can obtain the data of the any OTN data frame from the service data carried by the data code blocks of the previous data frame set and/or the next data frame set.
  • the service data carried by the data code block can be obtained from the previous data frame set and / or obtained from the service data carried by the data code blocks of the latter data frame set.
  • the receiving end since the receiving end has acquired the OTN data frame set before and adjacent to the any OTN data frame, the receiving end adds the data frame set to each buffered data frame. After one OTN data frame (that is, the any OTN and the set of OTN data frames following and adjacent to the any OTN data frame), the buffered OTN data frame is parsed to obtain service data. Thereby, at least 4 OTN data frame losses are realized.
  • any 1 to 3 consecutive data frame sets are lost, and the service data carried by the lost data frame set can be replaced by the previous data frame set and/or the next data frame set adjacent to the lost data frame set.
  • the receiving end only needs to obtain the lost OTN data frame from the OTN data frame after the lost OTN data frame.
  • the number of OTN data frames buffered by the receiving end is the number of 1 data frame set plus 1 OTN data frame, that is, 5, and the parsing delay is 5 OTNs
  • the transmission delay of the data frame, the parsing delay is about 723us, which can resist the communication interruption of about 578us; If it is necessary to resist the loss of at most 2 consecutive data frame sets, the number of OTN data frames buffered by the receiver is 2 data
  • the number of frame sets plus 1 OTN data frame, that is, 9, the parsing delay is the transmission delay of 9 OTN data frames, the parsing delay is about 1301us, which can resist communication interruption of about 1156us; if it needs to resist 3
  • the data frame set is lost, the number of OTN data frames buffered by the receiver is the number of 3 data frame sets plus 1 OTN data frame, that is, 13.
  • the parsing delay is the transmission delay of 13 OTN data frames.
  • the analysis delay is about 1879us, which
  • parsing methods of the aforementioned third and fourth encoding methods and other encoding methods reference may be made to the aforementioned first and second encoding methods, wherein the process of parsing each OTN data frame by the receiving end is actually to carry The process of extracting and arranging business data, which is also called the demapping process. After the receiving end parses each OTN data frame, it outputs the parsed OTN data frame.
  • the receiving end may support multiple encoding formats, such as the foregoing first to fourth encoding formats. Users can select the desired target encoding format according to business requirements.
  • the communication method further includes: the receiving end receives a setting instruction, where the setting instruction is used to specify a target encoding format among multiple encoding formats supported by the receiving end.
  • the target encoding format may correspond to any of the aforementioned buffering of 2 OTN data frames, 3 OTN data frames, 4 OTN data frames, 5 OTN data frames, 9 OTN data frames, and 13 OTN data frames, etc. a caching method.
  • the receiving end parses the received multiple OTN data frames based on the target encoding format to obtain service data.
  • the setting instruction is manually triggered.
  • the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format among the multiple encoding formats, thereby triggering the setting instruction.
  • the setting instruction is triggered by the management device.
  • the receiving end sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the receiving end through the setting instruction.
  • redundant data code blocks appear in the data frame set in the embodiments of the present application, certain bandwidth resources will be used, but for some scenarios that require resistance to cell-level communication interruptions, it is acceptable to sacrifice a certain bandwidth.
  • Users or administrators can set an acceptable redundant bandwidth (such as 2 times the redundant bandwidth or 4 times the redundant bandwidth) on the user interface or management device according to their needs.
  • the encoding and decoding of the communication frame structure is performed within the frame. Further, users or managers can also set the values of M, N, and L, the arrangement of the sequence numbers in multiple OTN data frames in the communication frame structure, and/or specify the check algorithm, etc., so as to realize the dynamic adjustment of the communication frame structure. .
  • each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames
  • the service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • Fig. 14 shows that when a super-large SOP occurs in an optical communication system provided by an embodiment of the present application (Fig. 14 is described by taking the case where the rotation rate of the SOP is greater than 1M Rad/s as an example of a super-large SOP), the rotation rate of the SOP varies with time Schematic diagram of the relationship.
  • the schematic diagram can reflect the time-dependent relationship of the rotation rate of the SOP of the OPGW in thunderstorm weather.
  • the action time of the super-large SOP is less than 10ms, and the duration of the SOP greater than 8M Rad/s is less than 1ms, and the time interval between two super-large SOPs is in the range of 15-100ms.
  • the communication interruption at the cell level is a communication interruption of the millisecond level, as shown in FIG. 9 , it is a communication interruption of less than 1 ms.
  • the present application referring to the aforementioned first coding mode and second coding mode, it can resist the loss of 1, 2, 3, at most 4, at most 8 or at most 12 OTN data frames of cells. Due to the ability to resist cell-level and millisecond-level communication interruptions, in the extreme case where the rotation rate of the SOP is greater than 8M rad/s, although the OTN data frame is lost, it is still possible to pass the lost OTN data frame.
  • the data frame set acquires the data carried by the lost OTN data frame, so as to ensure the normal communication of the optical communication system.
  • the communication method provided by the embodiments of the present application can be applied to a traditional optical communication system (for example, an optical communication system with a maximum rotation rate of 8M rad/s SOP), is backward compatible with the traditional optical communication system, and can also be deployed separately It is applied in some optical communication systems, which is not limited in this embodiment of the present application.
  • a traditional optical communication system for example, an optical communication system with a maximum rotation rate of 8M rad/s SOP
  • the communication methods provided by the embodiments of the present application can support the bearing of highly reliable services such as power relay protection (also called relay protection) on the 100G coherent system, and improve the versatility of the 100G coherent system in the power transmission and transformation system.
  • the bandwidth of highly reliable services such as power relay protection is usually small (for example, the bandwidth is 2M).
  • this communication method increases the redundant bandwidth, it does not affect the bearing of services.
  • the communication method provided by the embodiment of the present application may also be applied to other service scenarios where communication at the cell level and/or millisecond level is interrupted, which is not limited in the embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a communication apparatus 40 provided by an embodiment of the present application.
  • the communication device 40 includes: a processing circuit 401 and a communication interface 402 .
  • the processing circuit is used in the communication method performed by the transmitter in the foregoing embodiments of the present application.
  • the processing circuit 402 may be a processing chip or a field programmable gate array (Field Programmable Gate Array, FPGA).
  • the processing chip can be an integrated circuit (Application Specific Integrated Circuit, ASIC) chip; the communication interface 402 is used for the processing circuit 401 to communicate with other devices, for example, the communication interface 402 is used for the processing circuit 401 to communicate with the transmitting end optical module to communicate.
  • the communication interface 402 includes an input interface and an output interface.
  • the communication interface 402 can be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
  • the processing circuit 402 includes a cache structure, such as a storage structure inside an FPGA or ASIC chip, for caching the OTN data frame.
  • the communication apparatus 40 may further include: a memory for buffering the OTN data frame.
  • the memory is flash memory.
  • each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames
  • the service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • FIG. 16 is a schematic structural diagram of a communication device 50 provided by an embodiment of the present application.
  • the communication device 50 includes a processing circuit 501 and a communication interface 502 .
  • the processing circuit is used in the communication method performed by the receiving end in the foregoing embodiments of the present application.
  • the processing circuit 502 can be a processing chip or an FPGA, and the processing chip can be an ASIC chip; the communication interface 502 is used for the processing circuit 501 to communicate with other devices, for example, the communication interface 502 is used for the processing circuit 501 to communicate with the receiving end optical module for communication.
  • the communication interface 502 includes an input interface and an output interface.
  • the communication interface 502 may be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
  • the processing circuit 502 includes a cache structure, such as a storage structure inside an FPGA or ASIC chip, for caching the OTN data frame.
  • the communication apparatus 50 may further include: a memory for buffering the OTN data frame.
  • the memory is flash memory.
  • each OTN data frame includes M data code blocks of equal length, and the multiple OTN data
  • the service data carried by the data code blocks of any data frame set in the frame belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
  • FIG. 17 is a schematic structural diagram of a communication apparatus 60 provided by an embodiment of the present application.
  • the communication apparatus is applied to a sending end, and the apparatus includes: a generating module 601 for generating a plurality of optical transport network OTN data frame.
  • Each of the multiple OTN data frames includes M data code blocks of equal length.
  • Data code blocks are used to carry service data.
  • the service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set.
  • the set consists of L consecutive OTN data frames, M ⁇ 2, L ⁇ 1; the sending module 602 is used for sending multiple OTN data frames in sequence.
  • the service data carried in the M data code blocks are different from each other.
  • the device 60 also includes: a receiving module for receiving a setting instruction before generating a plurality of optical channel service unit OTN data frames, the setting instruction is used to specify the target encoding in the multiple encoding formats supported by the transmitting end. format; the aforementioned generating module 601 is configured to: generate multiple OTN data frames based on the target coding format.
  • each data code block has a sequence number
  • data code blocks with the same sequence number carry the same service data
  • data code blocks with different sequence numbers carry different service data
  • each OTN data frame carries OTN The sequence number of the data code block of the data frame.
  • each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame.
  • sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an equal difference sequence according to the transmission timing sequence; and/or, the data code blocks located at the same transmission position in the multiple OTN data frames have The serial numbers are arranged in an increasing arithmetic sequence according to the sending sequence from first to last.
  • FIG. 18 is a schematic structural diagram of a communication apparatus 70 provided by an embodiment of the present application. As shown in FIG. 18, the communication device is applied to the receiving end.
  • the apparatus 70 includes: a receiving module 701, configured to receive multiple optical transport network OTN data frames.
  • Each OTN data frame in the multiple OTN data frames includes M data code blocks of equal length, and the data code blocks are used to carry service data.
  • the service data carried by the data code blocks of any data frame set in the multiple OTN data frames belong to The union of service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set, where any data frame set consists of L consecutive OTN data frames, M ⁇ 2, L ⁇ 1 ;
  • the parsing module 702 is used for parsing the received multiple OTN data frames to obtain service data.
  • the parsing module 702 is configured to: perform deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; and parse the deduplicated data code blocks to obtain service data.
  • the device 70 further includes: an instruction receiving module, configured to receive a setting instruction before parsing the received multiple OTN data frames and obtaining the service data, and the setting instruction is used to specify the target in the multiple encoding formats supported by the receiving end.
  • an instruction receiving module configured to receive a setting instruction before parsing the received multiple OTN data frames and obtaining the service data
  • the setting instruction is used to specify the target in the multiple encoding formats supported by the receiving end.
  • Encoding format the aforementioned parsing module 702 is used for: parsing the received multiple OTN data frames based on the target encoding format to obtain service data.
  • the parsing module 702 is configured to: after each buffering at least two received OTN data frames, parse the buffered OTN data frames to obtain service data.
  • each data code block has a sequence number
  • data code blocks with the same sequence number carry the same service data
  • data code blocks with different sequence numbers carry different service data
  • each OTN data frame carries OTN The serial number of the data code block of the data frame
  • the apparatus 70 further includes: a determination module for determining whether the service data carried by the data code block in different OTN data frames is the same based on the serial numbers carried by different OTN data frames.
  • each OTN data frame further includes an identification code block
  • the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame
  • the device 70 further includes: a reading module for reading from The sequence number is read in the identification code block of each OTN data frame.
  • An embodiment of the present application provides an optical communication system, where the optical communication system includes a transmitter and a receiver, the transmitter includes the communication device 40 shown in FIG. 15 , and the receiver includes the communication device 50 shown in FIG. 16 .
  • the sending end includes the communication device 60 shown in FIG. 17
  • the receiving end includes the communication device 80 shown in FIG. 18 .
  • the optical communication system further includes a transmitting end optical module and a receiving end optical module, and the structure of the optical communication system may refer to FIG. 1 and FIG. 2 .
  • the terms “first”, “second” and “third” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
  • the term “at least one” refers to one or more, and the term “plurality” refers to two or more, unless expressly limited otherwise.
  • A refers to B, which means that A is the same as B or A is a simple variation of B.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)
  • Optical Communication System (AREA)

Abstract

Disclosed by the present application are a communication method, apparatus, and system, belonging to the field of optical communication. The method comprises: generating a plurality of optical transport network (OTN) data frames, each OTN data frame among the plurality of OTN data frames comprising M data code blocks of equal length, said data code blocks being used for carrying service data, the service data carried by the data code block of any one of the data frame sets of said plurality of OTN data frames being a set union of the service data carried by the data code blocks belonging to the two data frame sets before and after the data frame set adjacent to any one of the data frame sets, said any one data frame set consisting of L consecutive OTN data frames, wherein M ≥ 2 and L ≥ 1; sending the plurality of OTN data frames in sequence. The communication method provided by the present application is resistant to cell-level service impairment.

Description

通信方法、装置及系统Communication method, device and system
本申请要求于2020年10月15日提交、申请号为202011105786.5、申请名称为“通信方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 15, 2020, with the application number of 202011105786.5 and the application name of "communication method, device and system", the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及光通信领域,特别涉及一种通信方法、装置及系统。The present application relates to the field of optical communication, and in particular, to a communication method, device and system.
背景技术Background technique
光通信系统是一种基于光信号进行通信的系统。目前的光通信系统可以采用光通道业务单元(optical service unit,OSU)封装技术进行业务数据的传输,最小传输单位为一个OSU(也称为OSU信元)。An optical communication system is a system that communicates based on optical signals. A current optical communication system can use an optical service unit (optical service unit, OSU) encapsulation technology to transmit service data, and the minimum transmission unit is an OSU (also called an OSU cell).
偏振态(state of polarization,SOP)的旋转速率是光通信系统的一个重要指标。通常情况下,SOP的旋转速率小于1M Rad/s(兆弧度每秒)。但是在一些场景下,会出现超大SOP,导致无法进行光信号解调,造成至少一个OSU的丢失,从而产生信元级业务损伤。The rotation rate of the state of polarization (SOP) is an important indicator of an optical communication system. Typically, the rotation rate of the SOP is less than 1M Rad/s (megaradians per second). However, in some scenarios, an oversized SOP may occur, which makes it impossible to demodulate optical signals, resulting in the loss of at least one OSU, resulting in cell-level service damage.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种通信方法、装置及系统,以解决现有技术存在的信元级业务损伤的问题。Embodiments of the present application provide a communication method, device, and system to solve the problem of cell-level service damage existing in the prior art.
第一方面,提供了一种通信方法,应用于发送端。该方法包括:生成多个光传送网OTN数据帧;依次发送多个OTN数据帧。其中,该多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,该数据码块用于携带业务数据。多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,该任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1。本申请中,码块的长度也可以称为码块的大小,指的是码块包含的比特数量或者字节数量。In a first aspect, a communication method is provided, which is applied to a sender. The method includes: generating multiple optical transport network OTN data frames; and sequentially sending multiple OTN data frames. Among the multiple OTN data frames, each OTN data frame includes M data code blocks with equal lengths, and the data code blocks are used to carry service data. The service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to the any data frame set. A data frame set consists of L consecutive OTN data frames, M≥2, L≥1. In this application, the length of the code block may also be referred to as the size of the code block, which refers to the number of bits or the number of bytes included in the code block.
本申请实施例提供的通信方法中,发送端生成的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。In the communication method provided by the embodiment of the present application, in the multiple OTN data frames generated by the transmitting end, each OTN data frame includes M data code blocks of equal length, and the number of any data frame set in the multiple OTN data frames is The service data carried by the data code block belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
假设第一数据帧为多个OTN数据帧中的任一数据帧,该第一OTN数据帧包含的M个数据码块中,M-N个数据码块用于对在该第一OTN数据帧之前的OTN数据帧的业务数据进行冗余传输,N个数据码块用于传递实际业务数据,也即是该N个数据码块携带的业务数据与该第一OTN数据帧的之前的OTN数据帧中携带的业务数据不相同,该N个数据码块携带的业务数据可以被第一OTN数据帧之后的OTN数据帧的数据码块冗余传输,N为小于M的正整数。示例地,在第一数据帧中,该N个数据码块携带的业务数据被第一OTN数据帧之后的OTN数据帧的数据码块冗余传输的次数为(M-N)/N次,也即是该N个数据码块携带 的业务数据共被传输了[(M-N)/N]+1次。Assuming that the first data frame is any data frame among multiple OTN data frames, among the M data code blocks included in the first OTN data frame, M-N data code blocks are used to The service data of the OTN data frame is redundantly transmitted, and N data code blocks are used to transmit actual service data, that is, the service data carried by the N data code blocks is the same as that in the previous OTN data frame of the first OTN data frame. The service data carried are different, the service data carried by the N data code blocks can be redundantly transmitted by the data code blocks of the OTN data frame after the first OTN data frame, and N is a positive integer smaller than M. For example, in the first data frame, the number of times of redundant transmission of the service data carried by the N data code blocks by the data code blocks of the OTN data frame after the first OTN data frame is (M-N)/N times, that is, It means that the service data carried by the N data code blocks are transmitted [(M-N)/N]+1 times in total.
可选地,第一OTN数据帧携带的业务数据属于该第一OTN数据帧之前的第L个OTN数据帧(即在该第一OTN数据帧之前且与该第一OTN数据帧间隔L-1个OTN数据帧的数据帧)携带的业务数据以及该第一OTN数据帧之后的第L个OTN数据帧(即在该第一OTN数据帧之后且与该第一OTN数据帧间隔L-1个OTN数据帧的数据帧)携带的业务数据的交集。如此,该光通信系统支持最大抗连续M-1个数据帧集合的丢失。Optionally, the service data carried in the first OTN data frame belongs to the Lth OTN data frame before the first OTN data frame (that is, before the first OTN data frame and at an interval of L-1 from the first OTN data frame. The service data carried by the data frame of the first OTN data frame) and the Lth OTN data frame after the first OTN data frame (that is, after the first OTN data frame and at an interval of L-1 from the first OTN data frame) The intersection of the service data carried by the data frame of the OTN data frame). As such, the optical communication system supports maximum resistance to loss of consecutive M-1 sets of data frames.
示例地,第一数据帧的M-N个数据码块用于对在该第一OTN数据帧之前的第L个OTN数据帧的业务数据进行冗余传输,且N个数据码块携带的业务被第一OTN数据帧之后的第L个OTN数据帧的数据码块冗余传输时,对于多个OTN数据帧中的任一数据码块,该任一数据码块携带的业务数据被冗余传输共(M-N)/N次,也即是该业务数据共被传输了[(M-N)/N]+1次。例如,M=4,N=2,该任一数据码块携带的业务数据被冗余传输共1次。Exemplarily, the M-N data code blocks of the first data frame are used for redundant transmission of service data of the Lth OTN data frame before the first OTN data frame, and the services carried by the N data code blocks are When the data code blocks of the Lth OTN data frame after an OTN data frame are redundantly transmitted, for any data code block in the multiple OTN data frames, the service data carried by the any data code block is redundantly transmitted for a total of (M-N)/N times, that is, the service data is transmitted [(M-N)/N]+1 times in total. For example, M=4, N=2, the service data carried by any data code block is redundantly transmitted once in total.
在一种可选方式中,每相邻2个数据帧集合的数据码块存在(M-N)×L对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在N×L对数据码块携带的业务数据不同。如此可以避免每相邻2个数据帧集合的数据码块携带的业务数据完全重复的情况出现,提高每相邻2个数据帧集合携带的不同业务数据的数据量。示例地,N=1或N=2。In an optional manner, the data code blocks of every two adjacent data frame sets have (M-N)×L pairs of data code blocks that carry the same service data, and the data code blocks of every two adjacent data frame sets have N The service data carried by ×L is different for the data code block. In this way, the situation where the service data carried by the data code blocks of every two adjacent data frame sets is completely repeated can be avoided, and the data amount of different service data carried by every two adjacent data frame sets can be increased. Illustratively, N=1 or N=2.
可选地,在同一OTN数据帧中,M个数据码块中携带的业务数据互不相同。如此,可以提高OTN数据帧的利用率。Optionally, in the same OTN data frame, the service data carried in the M data code blocks are different from each other. In this way, the utilization rate of the OTN data frame can be improved.
发送端可以支持多种编码格式。相应地,本申请实施例提供的通信方法支持在该多种编码格式选择需要使用的编码格式。则在生成多个光通道业务单元OTN数据帧之前,该通信方法还包括:接收设置指令,该设置指令用于在发送端支持的多种编码格式中指定目标编码格式;相应的,生成多个OTN数据帧的过程,包括:基于目标编码格式生成多个OTN数据帧。The sender can support multiple encoding formats. Correspondingly, the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before generating a plurality of optical channel service unit OTN data frames, the communication method further includes: receiving a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the sending end; correspondingly, generating a plurality of encoding formats. The process of the OTN data frame includes: generating multiple OTN data frames based on the target coding format.
在一种可选方式中,该设置指令由人工触发。例如该多种编码格式可以通过用户界面呈现给用户,由用户在多个编码格式中选择目标编码格式,从而触发该设置指令。在另一种可选方式中,该设置指令由管理设备触发。例如,发送端将支持的多种编码格式发送至管理设备,由管理设备在多种编码格式中选择目标编码格式,并将目标编码格式通过该设置指令下发给发送端。In an optional manner, the setting instruction is manually triggered. For example, the multiple encoding formats may be presented to the user through the user interface, and the user selects the target encoding format from the multiple encoding formats, thereby triggering the setting instruction. In another optional manner, the setting instruction is triggered by the management device. For example, the sender sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the sender through the setting instruction.
在实际实现时,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号。如此便于接收端通过从OTN数据帧提取序号来确定OTN数据帧的数据码块所携带的业务数据是否相同,提高接收端的工作效率。In actual implementation, each data code block has a sequence number, data code blocks with the same sequence number carry the same service data, data code blocks with different sequence numbers carry different service data, and each OTN data frame carries the OTN data frame. The sequence number that the data code block has. In this way, it is convenient for the receiving end to determine whether the service data carried by the data code blocks of the OTN data frame is the same by extracting the sequence number from the OTN data frame, thereby improving the working efficiency of the receiving end.
在本申请实施例中,数据码块的序号的携带方式有多种。在第一种可选示例中,对于一个OTN数据帧,该OTN数据帧中每个数据码块携带该数据码块对应的序号。接收端可以通过扫描该OTN数据帧中每个数据码块,以从每个数据码块中提取对应的序号。在第二种可选示例中,对于一个OTN数据帧,该OTN数据帧中指定数据码块携带该OTN数据帧中各个数据码块对应的序号。接收端可以通过扫描该指定数据码块,以提取每个数据码块对应的序号。在第三种可选示例中,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号。通过设置独立于数据码块的标识码块,可以实现接收端对OTN数据帧携带的序号的快速提取。相对于前述第一种可选示例,接收端无需扫描OTN数据帧中的每个数据码块,减少接收端的开销;相对于前述第二种可选示例,标识码 块独立于数据码块之外,减少对数据码块的占用,避免携带的序号对业务数据的影响。In the embodiment of the present application, there are various ways of carrying the serial number of the data code block. In a first optional example, for an OTN data frame, each data code block in the OTN data frame carries a sequence number corresponding to the data code block. The receiving end can scan each data code block in the OTN data frame to extract the corresponding sequence number from each data code block. In a second optional example, for an OTN data frame, the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame. The receiving end can scan the specified data code block to extract the sequence number corresponding to each data code block. In a third optional example, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame. By setting an identification code block independent of the data code block, the receiving end can quickly extract the sequence number carried by the OTN data frame. Compared with the foregoing first optional example, the receiving end does not need to scan each data code block in the OTN data frame, reducing the overhead of the receiving end; compared with the foregoing second optional example, the identification code block is independent of the data code block. , reduce the occupation of data code blocks, and avoid the impact of the serial number carried on the service data.
在一种可选示例中,标识码块与数据码块的长度相等。如此,可以实现OTN数据帧中各个码块的长度一致,便于接收端进行数据解码,减少计算开销。In an optional example, the length of the identification code block is equal to the length of the data code block. In this way, the lengths of each code block in the OTN data frame can be consistent, which is convenient for the receiving end to perform data decoding and reduces computational overhead.
在一种可选实现方式中,同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈等差数列排列(例如递增等差数列);和/或,多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列。如此,便于发送端和接收端进行编解码。In an optional implementation manner, the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an arithmetic sequence (for example, an increasing arithmetic sequence) according to the transmission timing sequence from first to last; and/or, multiple The sequence numbers of the data code blocks located at the same transmission position in each OTN data frame are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last. In this way, it is convenient for the transmitting end and the receiving end to perform encoding and decoding.
示例地,本申请实施例支持的第一种编码格式为:M=4,L=1;和/或,第二种编码格式为:M=4,L=4。For example, the first encoding format supported by the embodiment of the present application is: M=4, L=1; and/or, the second encoding format is: M=4, L=4.
前述两种编码方式还满足以下的一种或多种,如此便于发送端和接收端进行编解码,实现数据码块的快速区分:The aforementioned two encoding methods also satisfy one or more of the following, which facilitates the encoding and decoding of the transmitting end and the receiving end, and realizes the rapid distinction of data code blocks:
第一、同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈等差数列排列。可选地,多个OTN数据帧对应的多个等差数列的差值相等。First, the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an arithmetic sequence according to the transmission timing sequence from first to last. Optionally, the difference values of multiple arithmetic progressions corresponding to multiple OTN data frames are equal.
第二、多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列。可选地,多个OTN数据帧的M个发送位置一一对应的M个等差数列的差值相等。可选地,多个OTN数据帧的M个发送位置一一对应的M个等差数列的起始序号相同,如都为1。Second, the sequence numbers of the data code blocks located at the same transmission position in the multiple OTN data frames are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last. Optionally, the difference values of the M arithmetic progressions in the one-to-one correspondence of the M transmission positions of the multiple OTN data frames are equal. Optionally, the starting sequence numbers of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are the same, for example, all are 1.
在一种可选实现方式中,每个OSU包括校验码块,该校验码块包括校验码。示例地,发送端可以基于指定校验算法以及OTN数据帧的数据码块生成校验码。在一种可选实现方式中,发送端基于指定校验算法以及OTN数据帧的数据码块中的业务数据生成校验码;在另一种可选实现方式中,发送端基于指定校验算法以及OTN数据帧的数据码块的序号生成校验码。相对于采用数据码块中的业务数据生成校验码,采用数据码块的序号生成校验码的复杂度较小,运算量较少。In an optional implementation manner, each OSU includes a check code block, and the check code block includes a check code. For example, the sending end may generate the check code based on the specified check algorithm and the data code block of the OTN data frame. In an optional implementation manner, the sender generates a check code based on a specified check algorithm and service data in a data code block of the OTN data frame; in another optional implementation manner, the sender generates a check code based on a specified check algorithm and the serial number of the data code block of the OTN data frame to generate a check code. Compared with using the service data in the data code block to generate the check code, using the serial number of the data code block to generate the check code has less complexity and less computation.
可选地,校验码块与数据码块的长度相等。如此,可以实现OTN数据帧中各个码块的长度一致,便于发送端进行数据编码,减少计算开销。Optionally, the lengths of the check code block and the data code block are equal. In this way, the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
前述标识码块和校验码块可以为同一码块,通过码块的复用可以减少序号和校验码所占用的比特数,提高码块的利用率。The aforementioned identification code block and check code block can be the same code block, and the number of bits occupied by the serial number and the check code can be reduced by the multiplexing of the code blocks, and the utilization rate of the code block can be improved.
第二方面,提供一种通信方法,应用于接收端。该方法包括:接收多个光传送网OTN数据帧;解析接收的多个OTN数据帧,得到业务数据。其中,多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,该数据码块用于携带业务数据。多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1。In a second aspect, a communication method is provided, which is applied to a receiving end. The method includes: receiving a plurality of OTN data frames of an optical transport network; and analyzing the received plurality of OTN data frames to obtain service data. Among the multiple OTN data frames, each OTN data frame includes M data code blocks of equal length, and the data code blocks are used to carry service data. The service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to the any data frame set. The data frame set consists of L consecutive OTN data frames, M≥2, L≥1.
本申请实施例提供的通信方法中,接收端接收的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。In the communication method provided by the embodiment of the present application, among the multiple OTN data frames received by the receiving end, each OTN data frame includes M data code blocks of equal length, and the number of any data frame set in the multiple OTN data frames is The service data carried by the data code block belongs to the union of the service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
在一种可选方式中,每相邻2个数据帧集合的数据码块存在(M-1)×L对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在N×L对数据码块携带的业务数据不同,N为小于M的正整数。如此可以避免每相邻2个数据帧集合的数据码块携带的业务数据完全重复的情况出现,提高每相邻2个数据帧集合携带的不同业务数据的数据量。In an optional manner, the data code blocks of every two adjacent data frame sets have (M-1)×L pairs of data code blocks that carry the same service data, and the data code blocks of every two adjacent data frame sets have the same service data. There are N×L pairs of data code blocks that carry different service data, and N is a positive integer smaller than M. In this way, the situation where the service data carried by the data code blocks of every two adjacent data frame sets is completely repeated can be avoided, and the data amount of different service data carried by every two adjacent data frame sets can be increased.
可选地,在同一OTN数据帧中,M个数据码块中携带的业务数据互不相同。如此,可以提高OTN数据帧的利用率。Optionally, in the same OTN data frame, the service data carried in the M data code blocks are different from each other. In this way, the utilization rate of the OTN data frame can be improved.
由于多个OTN数据帧中存在携带业务数据相同的数据码块,重复进行携带相同业务数据的数据码块的解析,会增大运算开销,导致OTN数据帧的解析效率较低。因此,接收端在接收到OTN数据帧后,对接收的OTN数据帧可以先进行去重处理,以降低运算开销,提高后续解析效率。如此,接收端解析接收的多个OTN数据帧,得到业务数据的过程可以包括:将接收的多个OTN数据帧中携带相同业务数据的不同数据码块进行去重处理;解析去重处理后的数据码块,得到业务数据。去重处理后,冗余的数据码块可以被丢弃,如此减少接收端的存储负荷。Since there are data code blocks carrying the same service data in multiple OTN data frames, repeated parsing of the data code blocks carrying the same service data will increase the computational overhead, resulting in low parsing efficiency of the OTN data frames. Therefore, after receiving the OTN data frame, the receiving end may first perform deduplication processing on the received OTN data frame, so as to reduce the computational overhead and improve the subsequent parsing efficiency. In this way, the process of parsing the received multiple OTN data frames to obtain the service data may include: performing deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; Data code block to obtain service data. After deduplication processing, redundant data code blocks can be discarded, thus reducing the storage load on the receiving end.
接收端可以支持多种编码格式。相应地,本申请实施例提供的通信方法支持在该多种编码格式选择需要使用的编码格式。则在解析接收的多个OTN数据帧,得到业务数据之前,该通信方法还包括:接收设置指令,该设置指令用于在接收端支持的多种编码格式中指定目标编码格式;相应的,解析接收的多个OTN数据帧,得到业务数据的过程,包括:基于目标编码格式解析接收的多个OTN数据帧,得到业务数据。The receiver can support multiple encoding formats. Correspondingly, the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before parsing the received multiple OTN data frames to obtain service data, the communication method further includes: receiving a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the receiving end; correspondingly, parsing The process of obtaining the service data from the received multiple OTN data frames includes: parsing the received multiple OTN data frames based on the target coding format to obtain the service data.
在一种可选方式中,该设置指令由人工触发,例如该多种编码格式可以通过用户界面呈现给用户,由用户在多个编码格式中选择目标编码格式,从而触发该设置指令。在另一种可选方式中,该设置指令由管理设备触发。例如,接收端将支持的多种编码格式发送至管理设备,由管理设备在多种编码格式中选择目标编码格式,并将目标编码格式通过该设置指令下发给接收端。In an optional manner, the setting instruction is manually triggered, for example, the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format from the multiple encoding formats, thereby triggering the setting instruction. In another optional manner, the setting instruction is triggered by the management device. For example, the receiving end sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the receiving end through the setting instruction.
可选地,前述解析接收的多个OTN数据帧,得到业务数据的过程,包括:在每缓存至少两个接收的OTN数据帧之后,解析缓存的OTN数据帧,得到业务数据。如此可以实现抗至少1个OTN数据帧丢失。Optionally, the aforementioned process of parsing a plurality of received OTN data frames to obtain service data includes: after each buffering at least two received OTN data frames, parsing the buffered OTN data frames to obtain service data. In this way, the loss of at least one OTN data frame can be achieved.
在实际实现时,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号。相应的,接收端可以基于不同OTN数据帧携带的序号确定不同OTN数据帧中数据码块携带的业务数据是否相同。如此可以提高接收端的工作效率。In actual implementation, each data code block has a sequence number, data code blocks with the same sequence number carry the same service data, data code blocks with different sequence numbers carry different service data, and each OTN data frame carries the OTN data frame. The sequence number that the data code block has. Correspondingly, the receiving end may determine whether the service data carried by the data code blocks in different OTN data frames are the same based on the sequence numbers carried in different OTN data frames. In this way, the working efficiency of the receiving end can be improved.
在本申请实施例中,OTN数据帧中数据码块的序号的携带方式有多种,相应地,接收端的处理方式也不同,具体过程可以参考前述第一方面的三种可选示例。例如,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号;接收端可以从每个OTN数据帧的标识码块中读取序号。In the embodiment of the present application, there are various ways of carrying the serial number of the data code block in the OTN data frame, and correspondingly, the processing method of the receiving end is also different. For the specific process, refer to the three optional examples in the first aspect. For example, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame; the receiving end can obtain the identification code block from each OTN data frame. Read the serial number.
在一种可选实现方式中,每个OSU携带校验码,该校验码基于OSU的数据码块生成;接收端还可以基于每个OSU的校验码校验每个OSU是否出现误码;丢弃出现误码的OSU。接收端将出现误码的OTN数据帧丢弃,避免对出现误码的OTN数据帧进行解析,减少不必要的运算开销。可选地,校验码块与数据码块的长度相等。In an optional implementation manner, each OSU carries a check code, and the check code is generated based on a data code block of the OSU; the receiving end can also check whether each OSU has a code error based on the check code of each OSU ;Discard the OSU with bit error. The receiving end discards the OTN data frame with bit error, avoids parsing the OTN data frame with bit error, and reduces unnecessary computing overhead. Optionally, the lengths of the check code block and the data code block are equal.
第三方面,提供一种通信装置。该通信装置包括:处理电路及通信接口,该处理电路用 于执行第一方面任一的通信方法;该通信接口用于供该处理电路与其他装置进行通信。该处理电路可以为处理芯片或现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)。In a third aspect, a communication device is provided. The communication device includes: a processing circuit and a communication interface, the processing circuit is used for executing any one of the communication methods in the first aspect; the communication interface is used for the processing circuit to communicate with other devices. The processing circuit may be a processing chip or a field programmable gate array (Field Programmable Gate Array, FPGA).
第四方面,提供一种通信装置。该通信装置包括:处理电路及通信接口,该处理电路用于执行第二方面任一的通信方法;该通信接口用于供该处理电路与其他装置进行通信。该处理电路可以为处理芯片或FPGA。In a fourth aspect, a communication device is provided. The communication device includes: a processing circuit and a communication interface, the processing circuit is used for executing any one of the communication methods in the second aspect; the communication interface is used for the processing circuit to communicate with other devices. The processing circuit may be a processing chip or an FPGA.
第五方面,本申请提供一种通信装置,该通信装置包括至少一个模块,该至少一个模块可以用于实现上述第一方面或者第一方面的各种可能实现方式提供的通信方法。In a fifth aspect, the present application provides a communication device, where the communication device includes at least one module, and the at least one module can be used to implement the first aspect or the communication method provided by various possible implementations of the first aspect.
第六方面,本申请提供一种通信装置,该通信装置包括至少一个模块,该至少一个模块可以用于实现上述第二方面或者第二方面的各种可能实现方式提供的通信方法。In a sixth aspect, the present application provides a communication device, the communication device includes at least one module, and the at least one module can be used to implement the second aspect or the communication method provided by various possible implementations of the second aspect.
第七方面,本申请提供一种光通信系统,该光通信系统包括发送端和接收端,该发送端包括第三方面提供的通信装置,该接收端包括第四方面提供的通信装置。或者,该发送端包括第五方面提供的通信装置,该接收端包括第六方面中的通信装置。In a seventh aspect, the present application provides an optical communication system, the optical communication system includes a transmitter and a receiver, the transmitter includes the communication device provided in the third aspect, and the receiver includes the communication device provided in the fourth aspect. Alternatively, the sending end includes the communication device provided in the fifth aspect, and the receiving end includes the communication device in the sixth aspect.
第八方面,本申请提供一种计算机设备,该计算机设备包括处理器和存储器。该存储器存储计算机指令;该处理器执行该存储器存储的计算机指令,使得该计算机设备执行上述第一方面或者第一方面的各种可能实现提供的方法。或者,该处理器执行该存储器存储的计算机指令,使得该计算机设备执行上述第二方面或者第二方面的各种可能实现提供的方法。In an eighth aspect, the present application provides a computer device including a processor and a memory. The memory stores computer instructions; the processor executes the computer instructions stored in the memory, so that the computer device performs the first aspect or the methods provided by various possible implementations of the first aspect. Alternatively, the processor executes the computer instructions stored in the memory, so that the computer device executes the above-mentioned second aspect or the methods provided by various possible implementations of the second aspect.
第九方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,该计算机指令指示计算机设备执行上述第一方面或者第一方面的各种可能实现提供的方法。或者,该计算机可读存储介质中存储有计算机指令,该计算机指令指示计算机设备执行上述第二方面或者第二方面的各种可能实现提供的方法。In a ninth aspect, the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and the computer instructions instruct a computer device to execute the method provided by the first aspect or various possible implementations of the first aspect . Alternatively, computer instructions are stored in the computer-readable storage medium, and the computer instructions instruct a computer device to execute the method provided by the second aspect or various possible implementations of the second aspect.
第十方面,本申请提供一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器可以从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述第一方面或者第一方面的各种可能实现提供的方法;或者,使得该计算机设备执行上述第二方面或者第二方面的各种可能实现提供的方法。In a tenth aspect, the present application provides a computer program product comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the first aspect or the method provided by various possible implementations of the first aspect; The computer device performs the method provided by the above-mentioned second aspect or various possible implementations of the second aspect.
第十一方面,提供一种芯片。该芯片可以包括可编程逻辑电路,当该芯片运行时用于实现如第一方面任一的通信方法。或者,当该芯片运行时用于实现如第二方面任一的通信方法。In an eleventh aspect, a chip is provided. The chip may include programmable logic circuits for implementing a communication method as in any of the first aspects when the chip is in operation. Or, when the chip is running, it is used to implement the communication method according to any one of the second aspect.
综上所述,本申请实施例提供的通信方法中,发送端生成的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。To sum up, in the communication method provided by the embodiment of the present application, in the multiple OTN data frames generated by the transmitting end, each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames The service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
本申请实施例提供的通信方法可以支持电力继电保护等高可靠的业务在100G相干系统上的承载,提高了100G相干系统在电力输变电系统的通用性。并且电力继电保护等高可靠业务带宽通常很小(例如带宽为2M),虽然该通信方法增加了冗余带宽,但不影响业务的承载。并且,本申请实施例提供的通信方法还可以应用于出现其他的信元级和/或毫秒级通信中断的业务场景。The communication method provided by the embodiments of the present application can support the bearing of highly reliable services such as power relay protection on the 100G coherent system, and improve the versatility of the 100G coherent system in the power transmission and transformation system. In addition, the bandwidth of highly reliable services such as power relay protection is usually small (for example, the bandwidth is 2M). Although this communication method increases the redundant bandwidth, it does not affect the bearing of services. In addition, the communication method provided by the embodiment of the present application may also be applied to a service scenario in which other cell-level and/or millisecond-level communication interruptions occur.
附图说明Description of drawings
图1是本申请实施例提供的通信方法所涉及光通信系统的一种应用环境的示意图;1 is a schematic diagram of an application environment of an optical communication system involved in a communication method provided by an embodiment of the present application;
图2是本申请实施例提供的一种OPGW的结构示意图;2 is a schematic structural diagram of an OPGW provided by an embodiment of the present application;
图3是本申请实施例提供的另一种OPGW的结构示意图;3 is a schematic structural diagram of another OPGW provided by an embodiment of the present application;
图4是本申请实施例提供的一种图2所示的OPGW的截面示意图;FIG. 4 is a schematic cross-sectional view of the OPGW shown in FIG. 2 provided by an embodiment of the present application;
图5是本申请实施例提供的一种图3所示的OPGW的截面示意图;FIG. 5 is a schematic cross-sectional view of the OPGW shown in FIG. 3 provided by an embodiment of the present application;
图6是本申请实施例提供的一种采用OSU封装技术的ODU的帧结构示意图;6 is a schematic diagram of a frame structure of an ODU using the OSU encapsulation technology provided by an embodiment of the present application;
图7是本申请实施例提供的一种通信方法的流程示意图;7 is a schematic flowchart of a communication method provided by an embodiment of the present application;
图8是本申请实施例提供的一种采用第一种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图;8 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using the first encoding format provided by an embodiment of the present application;
图9是本申请实施例提供的一种采用第二种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图;9 is a schematic diagram of the arrangement structure of data code blocks of a plurality of OTN data frames encoded by adopting the second encoding format provided by an embodiment of the present application;
图10是本申请实施例提供的一种采用第三种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图;10 is a schematic diagram of the arrangement structure of data code blocks of a plurality of OTN data frames encoded by a third encoding format provided by an embodiment of the present application;
图11是本申请实施例提供的一种采用第四种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图;11 is a schematic diagram of the arrangement structure of the data code blocks of a plurality of OTN data frames encoded by adopting the fourth encoding format according to an embodiment of the present application;
图12是本申请实施例提供的一种OTN数据帧的实际结构示意图;12 is a schematic diagram of the actual structure of an OTN data frame provided by an embodiment of the present application;
图13是本申请实施例提供的一种光通信系统中的一种通信帧结构的部分结构示意图;13 is a partial structural schematic diagram of a communication frame structure in an optical communication system provided by an embodiment of the present application;
图14是本申请实施例提供的一种光通信系统中出现超大SOP时,SOP的旋转速率随时间变化的关系示意图;14 is a schematic diagram of the relationship between the rotation rate of the SOP over time when a super-large SOP occurs in an optical communication system provided in an embodiment of the present application;
图15是本申请实施例提供的一种通信装置的结构示意图;FIG. 15 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图16是本申请实施例提供的另一种通信装置的结构示意图;FIG. 16 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图17是本申请实施例提供的又一种通信装置的结构示意图;FIG. 17 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图18是本申请实施例提供的再一种通信装置的结构示意图。FIG. 18 is a schematic structural diagram of still another communication apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的原理和技术方案更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。图1是本申请实施例提供的通信方法所涉及光通信系统10的一种应用环境的示意图。该光通信系统10为光传送网(optical transport network,OTN)。示例地,OTN可以为相干光纤(也称光缆)通信系统,或简称为相干系统。光通信系统10包括:发送端(也称发送端设备)101、接收端(也称接收端设备)102、光纤103、发送端光模块104和光信号接收端105。其中,发送端101用于生成电信号,并将电信号发送至发送端光模块104;发送端光模块104用于将电信号转化为光信号,将光信号发送至接收端光模块105;接收端光模块105用于将接收的光信号转化为电信号,并传输至接收端102,由接收端102进行电信号的解调。发送端光模块104和接收端光模块105通过光纤103建立连接,并利用光信号进行长距离通信。在实际实现时,发送端光模块104可以集成在发送端101中,也可以在发送端101外设置;接收端光模块105可以集成在接收端102中,也可以在接收端102外设置。图1仅为示意性说明,并不对光通信系统10中各个装置的位置关系进行限定。In order to make the principles and technical solutions of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. FIG. 1 is a schematic diagram of an application environment of an optical communication system 10 involved in a communication method provided by an embodiment of the present application. The optical communication system 10 is an optical transport network (OTN). Illustratively, the OTN may be a coherent optical fiber (also called optical cable) communication system, or simply a coherent system. The optical communication system 10 includes: a sending end (also called a sending end device) 101 , a receiving end (also called a receiving end device) 102 , an optical fiber 103 , a sending end optical module 104 and an optical signal receiving end 105 . The sending end 101 is used to generate electrical signals and send the electrical signals to the sending end optical module 104; the sending end optical module 104 is used to convert the electrical signals into optical signals, and send the optical signals to the receiving end optical module 105; The end optical module 105 is used to convert the received optical signal into an electrical signal, and transmit it to the receiving end 102 , and the receiving end 102 demodulates the electrical signal. The transmitting end optical module 104 and the receiving end optical module 105 are connected through the optical fiber 103, and use optical signals for long-distance communication. In actual implementation, the transmitting end optical module 104 may be integrated in the transmitting end 101 , or may be provided outside the transmitting end 101 ; FIG. 1 is only a schematic illustration, and does not limit the positional relationship of each device in the optical communication system 10 .
随着光纤传输比特率的进一步提升,光纤支持的传输速率从单波10G(即每个波的传输 速率为10G)向单波100G(即每个波的传输速率为100G)演进。由于光纤的非线性效应,如果采用直调非归零(non-return to zero,NRZ)技术将比特率提升至单波100G,光信噪比(optical signal-to-noise ratio,OSNR)性能无法满足长距离通信的需求。因此在光纤支持单波100G及以上的速率时,前述光通信系统为采用相干调制技术的相干系统,如此可以降低比特率,提升单波传输速率。示例地,该相干调制技术为偏振分割多路复用(polarization division multiplexing,PDM)-正交相移键控(quadrature phase shift keying,QPSK)。With the further improvement of optical fiber transmission bit rate, the transmission rate supported by optical fiber evolves from single-wave 10G (that is, the transmission rate of each wave is 10G) to single-wave 100G (that is, the transmission rate of each wave is 100G). Due to the nonlinear effect of optical fiber, if the direct-adjusted non-return to zero (NRZ) technology is used to increase the bit rate to 100G per wave, the optical signal-to-noise ratio (OSNR) performance cannot be improved. Meet the needs of long-distance communication. Therefore, when the optical fiber supports a single-wave rate of 100G and above, the aforementioned optical communication system is a coherent system using coherent modulation technology, which can reduce the bit rate and improve the single-wave transmission rate. Illustratively, the coherent modulation technique is polarization division multiplexing (PDM)-quadrature phase shift keying (QPSK).
在光通信系统中,SOP的旋转速率是衡量SOP状态的重要性能参数。在通常的光纤通信环境下,影响SOP的因素主要来自于光纤的振动,SOP的旋转速率小于1M Rad/s。但是,在一些场景下,会出现超大SOP旋转速率的情况(简称超大SOP),导致接收端光模块无法进行光信号解调。其中,超大SOP通常指的是SOP的旋转速率大于预设旋转速率阈值的情况,该预设旋转阈值可以为1M Rad/s。示例地,在相干系统中,采用相干调制技术需要在发送端光模块对偏振方向垂直的偏振光进行相干调制,而在接收端光模块进行相干解调时,需要跟踪上光信号的SOP。但是,超大SOP会导致接收端光模块无法进行光信号的相干解调。In the optical communication system, the rotation rate of the SOP is an important performance parameter to measure the state of the SOP. In the normal optical fiber communication environment, the factors affecting the SOP mainly come from the vibration of the optical fiber, and the rotation rate of the SOP is less than 1M Rad/s. However, in some scenarios, there will be a situation of a super large SOP rotation rate (referred to as super large SOP), so that the optical module at the receiving end cannot perform optical signal demodulation. Among them, the super-large SOP usually refers to the situation where the rotation rate of the SOP is greater than the preset rotation rate threshold, and the preset rotation threshold may be 1M Rad/s. For example, in a coherent system, the use of coherent modulation technology requires coherent modulation of polarized light with a vertical polarization direction at the optical module at the transmitting end, while the SOP of the upper optical signal needs to be tracked when the optical module at the receiving end performs coherent demodulation. However, the large SOP will cause the optical module at the receiving end to be unable to perform coherent demodulation of the optical signal.
超大SOP产生场景有多种。下面以一种超大SOP产生场景为例进行说明。在电力行业中,输变电的光纤通常为光纤复合架空地线(optical fiber composite overhead ground wire,OPGW),也称复合光缆。图2和图3分别是本申请实施例提供的两种OPGW的结构示意图。图4和图5分别为图2和图3所示的OPGW的截面示意图。如图2至5所示,OPGW包括:光纤201,以及包裹该光纤201的中心铝束管202,覆盖该中心铝束管202的旋转导线203。其中,旋转导线203通常为金属导线。示例地,其包括铝合金线2031和铝包钢线2032。图2和图4示出的是单层POGW的结构,其铝合金线2031和铝包钢线2032位于同一层;图3和图5示出的是双层POGW的结构,其铝合金线2031和铝包钢线2032位于不同层,如铝合金线2031所在层包覆铝包钢线2032所在层。OPGW通常架在用于高压输变电的铁塔顶端。OPGW在作为承载高压线雷击的地线的同时,也作为输变电的通信光缆。There are many scenarios for super large SOP generation. The following takes a super large SOP generation scenario as an example for description. In the power industry, the optical fiber for power transmission and transformation is usually an optical fiber composite overhead ground wire (OPGW), also known as a composite optical cable. FIG. 2 and FIG. 3 are schematic structural diagrams of two types of OPGWs provided by embodiments of the present application, respectively. 4 and 5 are schematic cross-sectional views of the OPGW shown in FIGS. 2 and 3 , respectively. As shown in FIGS. 2 to 5 , the OPGW includes an optical fiber 201 , a central aluminum bundle tube 202 surrounding the optical fiber 201 , and a rotating wire 203 covering the central aluminum bundle tube 202 . Wherein, the rotating wire 203 is usually a metal wire. Illustratively, it includes aluminum alloy wire 2031 and aluminum clad steel wire 2032 . Figures 2 and 4 show the structure of a single-layer POGW, and the aluminum alloy wire 2031 and the aluminum-clad steel wire 2032 are located on the same layer; Figures 3 and 5 show the structure of a double-layer POGW, and the aluminum alloy wire 2031 and the aluminum-clad steel wire 2032 are located in different layers, for example, the layer where the aluminum-clad steel wire 2032 is located is clad with the layer where the aluminum-clad steel wire 2032 is located. OPGWs are usually mounted on top of iron towers used for high-voltage power transmission and transformation. OPGW not only acts as a ground wire for carrying lightning strikes on high-voltage lines, but also acts as a communication optical cable for power transmission and transformation.
由于OPGW本身是用于引雷的地线,因此在雷暴天气,很容易受到雷电的袭击,从而在OPGW上形成感应电流。根据电流的趋肤效应,电流在旋转导线203上产生旋转电流,并形成与光纤201同向的磁场。根据法拉第旋转效应(也称磁致旋光效应)可知,该磁场会对光纤201的SOP产生严重的影响。例如,在强雷电天气,SOP的旋转速率超过20M Rad/s,远远大于常态下的旋转速率。而在SOP的旋转速率过大时,接收端光模块无法跟踪上光信号的SOP,进而导致接收端光模块无法进行光信号的解调。Since the OPGW itself is a ground wire used for lightning induction, it is easily attacked by lightning during a thunderstorm, thus forming an induced current on the OPGW. According to the skin effect of the current, the current generates a rotating current on the rotating wire 203 and forms a magnetic field in the same direction as the optical fiber 201 . According to the Faraday rotation effect (also called the magneto-optical rotation effect), the magnetic field will have a serious impact on the SOP of the optical fiber 201 . For example, in strong lightning weather, the rotation rate of SOP exceeds 20M Rad/s, which is much larger than the rotation rate under normal conditions. However, when the rotation rate of the SOP is too large, the optical module at the receiving end cannot track the SOP of the optical signal, and thus the optical module at the receiving end cannot demodulate the optical signal.
目前的光通信系统采用OTN传输技术进行业务数据承载。OTN传输技术中采用光通道数据单元(Optical channel Data Unit,ODU)和OSU两种业务单元。ODU主要承载传输速率(也称业务速率)较高的业务数据,例如传输速率在1.25G bit/s(吉比特每秒)以上的业务数据;OSU主要承载传输速率较低的业务数据,例如传输速率为2M bit/s(兆比特每秒)的业务数据。本申请实施例以发送端101和接收端102采用OSU封装技术进行业务数据的传输为例进行说明。也即是将OSU作为基本的承载与交换信元。图6是本申请实施例提供的一种承载OSU的ODU帧结构示意图。该ODU的帧结构包括:帧对齐信号(Frame Alignment Signal,FAS)区、光信道传送单元(Optical Transport Unit,OTU)开销(Overhead,OH)区、ODU OH区、光净荷单元(Optical payload unit,OPU)OH区和净荷(payload)区。其中,FAS区用于携带帧对齐信号;OTU OH,ODU OH和OPU OH分别用于携带针对这三个 OTN帧的运行、管理和维护开销信息。ODU的净荷区用于承载OSU传输单元,图6以第n个OSU传输单元为例,其他OSU传输单元的结构与该第n个OSU传输单元相同。第n个OSU传输单元包括通道标识号(tributary port number,TPN)单元和OSU,TPN单元中携带通道标识号,该通道标识号为OSU的通道编号,用于描述对应的OSU为ODU中的第几个OSU;OSU包括开销区(也称信元头(overhead))和净荷区。开销区携带用于描述净荷区的信息,例如业务类型、封装的长度和封装的格式等;净荷区用于携带业务数据。The current optical communication system uses the OTN transmission technology to carry service data. Optical channel Data Unit (ODU) and OSU are used in OTN transmission technology. ODU mainly carries business data with high transmission rate (also called service rate), such as business data with a transmission rate of more than 1.25G bit/s (gigabit per second); OSU mainly carries business data with low transmission rate, such as transmission Service data at a rate of 2M bit/s (megabits per second). The embodiments of the present application are described by taking the transmitting end 101 and the receiving end 102 using the OSU encapsulation technology to transmit service data as an example for description. That is, the OSU is used as the basic bearer and exchange cell. FIG. 6 is a schematic structural diagram of an ODU frame carrying an OSU provided by an embodiment of the present application. The frame structure of the ODU includes: Frame Alignment Signal (FAS) area, Optical Transport Unit (OTU) overhead (Overhead, OH) area, ODU OH area, Optical payload unit (Optical payload unit) , OPU) OH area and payload area. Among them, the FAS area is used to carry the frame alignment signal; OTU OH, ODU OH and OPU OH are respectively used to carry the operation, management and maintenance overhead information for these three OTN frames. The payload area of the ODU is used to carry the OSU transmission unit. FIG. 6 takes the nth OSU transmission unit as an example. The structures of other OSU transmission units are the same as the nth OSU transmission unit. The nth OSU transmission unit includes a tributary port number (TPN) unit and an OSU. The TPN unit carries a channel identification number, and the channel identification number is the channel number of the OSU, which is used to describe the corresponding OSU as the No. 1 in the ODU. Several OSUs; an OSU includes an overhead area (also called a cell header) and a payload area. The overhead area carries information used to describe the payload area, such as service type, encapsulation length and encapsulation format, etc. The payload area is used to carry service data.
一个OSU的帧长通常为固定值,例如192Byte。OSU的传输速率通常为固定值,例如2Mbit/s。ODU的帧结构利用时分复用技术,通过调整不同业务与OSU的对应关系可以实现不同速率的业务承载。例如,某一业务需要实现R*2Mbit/s的固定速率,则将该业务与R个OSU建立对应关系,由该R个OSU传输该业务的业务数据,R为正整数。The frame length of an OSU is usually a fixed value, such as 192Byte. The transmission rate of the OSU is usually a fixed value, such as 2Mbit/s. The frame structure of the ODU uses the time division multiplexing technology, and by adjusting the correspondence between different services and the OSU, services at different rates can be carried. For example, if a service needs to achieve a fixed rate of R*2Mbit/s, the service is established with R OSUs, and the R OSUs transmit service data of the service, where R is a positive integer.
如前所述,光信号解调的中断会导致至少一个OSU的丢失,从而产生信元级业务损伤。本申请实施例提供一种通信方法,能够抵抗信元级的业务损伤。图7是本申请实施例提供的一种通信方法的流程示意图。如图7所示,该方法包括如下步骤。As mentioned above, the interruption of optical signal demodulation will lead to the loss of at least one OSU, thus resulting in cell-level service impairment. The embodiment of the present application provides a communication method, which can resist service damage at the cell level. FIG. 7 is a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 7, the method includes the following steps.
S301、发送端生成多个OTN数据帧。S301. The transmitting end generates multiple OTN data frames.
在本申请实施例中,OTN数据帧,也称OTN帧或OTN子帧,用于携带OTN中的业务数据,其可以为OSU(也称OSU信元或ODU中的子帧)或ODU,也可以为其他用于携带业务数据的信元。可选地,该OTN数据帧的帧长为192Byte。In this embodiment of the present application, an OTN data frame, also called an OTN frame or an OTN subframe, is used to carry service data in the OTN, and it may be an OSU (also called an OSU cell or a subframe in an ODU) or an ODU, or It can be other cells used to carry service data. Optionally, the frame length of the OTN data frame is 192 Bytes.
对于该多个OTN数据帧中的每个OTN数据帧,该OTN数据帧包括长度相等的M个数据码块。本申请中,码块的长度也可以称为码块的大小,指的是码块包含的比特数量或者字节数量。该数据码块用于携带业务数据,多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。该任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1。通常情况下,该L个OTN数据帧是随机的连续的L个OTN数据帧,并不特指某一位置的OTN数据帧。任一数据帧集合与其相邻的前后两个数据帧集合不存在OTN数据帧的重合。For each OTN data frame in the plurality of OTN data frames, the OTN data frame includes M data code blocks of equal length. In this application, the length of the code block may also be referred to as the size of the code block, which refers to the number of bits or the number of bytes included in the code block. The data code block is used to carry service data, and the service data carried by the data code block of any data frame set in the multiple OTN data frames belongs to the data code blocks of the two adjacent data frame sets adjacent to the data frame set. The union of carried business data. The arbitrary data frame set is composed of L consecutive OTN data frames, M≥2, L≥1. Generally, the L OTN data frames are random and continuous L OTN data frames, and do not specifically refer to an OTN data frame at a certain position. There is no overlap of OTN data frames between any data frame set and its adjacent two data frame sets.
发送端生成多个OTN数据帧的过程实际上是将业务数据映射(也称加载或填充)至对应的数据码块上。该过程也称为映射过程。The process of generating multiple OTN data frames at the sending end is actually mapping (also called loading or filling) the service data to the corresponding data code blocks. This process is also known as the mapping process.
假设多个OTN数据帧中任一数据帧集合为X,其前后两个数据帧集合为X1和X2,则X∈(X1∪X2)。如此,即使数据帧集合X丢失,也可以从其前后两个数据帧集合X1和/或X2获取数据帧集合X所携带的业务数据。由于数据帧集合由连续的至少一个OTN数据帧组成,因此,本申请实施例提供的通信方法抗至少一个OTN数据帧丢失,也即是抗信元级的业务损伤。需要说明的是,若该任一数据帧集合为多个OTN数据帧中第一个数据帧集合,其前一个数据帧集合为空;若该任一数据帧集合为多个OTN数据帧中最后一个数据帧集合,其后一个数据帧集合为空。Assuming that any data frame set in the multiple OTN data frames is X, and the two data frame sets before and after it are X1 and X2, then X∈(X1∪X2). In this way, even if the data frame set X is lost, the service data carried by the data frame set X can be obtained from the two data frame sets X1 and/or X2 before and after it. Since the data frame set is composed of at least one continuous OTN data frame, the communication method provided by the embodiment of the present application is resistant to the loss of at least one OTN data frame, that is, the service impairment at the cell level. It should be noted that, if any data frame set is the first data frame set in multiple OTN data frames, the previous data frame set is empty; if any data frame set is the last data frame set in multiple OTN data frames A collection of dataframes followed by an empty collection of dataframes.
图8和图9分别是本申请实施例提供的一种采用第一种编码格式和第二种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图。图8和图9中每个方格代表一个数据码块,一列方格代表一个OTN数据帧的4个数据码块,相同序号代表携带业务数据相同的数据码块,不同序号代表携带业务数据不同的数据码块,未填充序号的方格代表空闲数据码块,即未携带业务数据的数据码块,空闲数据码块也可以视为冗余数据码块(即携带业务数据与之前的OTN数据帧的业务数据重复的数据码块)。以数据帧集合Y,以及该数据帧集合Y 前后相邻的两个数据帧集合Y1和Y2为例。数据帧集合Y和数据帧集合Y1存在3对数据码块携带的业务数据相同,分别是1对数据码块8、1对数据码块9和1对数据码块10;数据帧集合Y和数据帧集合Y1存在1对数据码块携带的业务数据不同,分别是数据帧集合Y1的数据码块7与数据帧集合Y的数据码块11;数据帧集合Y和数据帧集合Y1存在数据码块7至11共5个携带不同业务数据的数据码块。数据帧集合Y和数据帧集合Y2存在3对数据码块携带的业务数据相同,分别是1对数据码块9、1对数据码块10和1对数据码块11;数据帧集合Y和数据帧集合Y2存在1对数据码块携带的业务数据不同,分别是数据帧集合Y的数据码块8与数据帧集合Y2的数据码块12;数据帧集合Y和数据帧集合Y2存在数据码块8至12共5个携带不同业务数据的数据码块。FIG. 8 and FIG. 9 are schematic diagrams of arrangement structures of data code blocks of multiple OTN data frames encoded by using the first encoding format and the second encoding format, respectively, according to an embodiment of the present application. In Figures 8 and 9, each square represents a data code block, a column of squares represents 4 data code blocks of an OTN data frame, the same sequence number represents the data code block carrying the same service data, and different sequence numbers represent different service data. The unfilled squares represent idle data blocks, that is, data blocks that do not carry service data, and idle data blocks can also be regarded as redundant data blocks (that is, carrying service data and previous OTN data). The service data of the frame repeats the data code block). Take the data frame set Y and the two adjacent data frame sets Y1 and Y2 before and after the data frame set Y as an example. Data frame set Y and data frame set Y1 have 3 pairs of data code blocks that carry the same service data, namely 1 pair of data code blocks 8, 1 pair of data code blocks 9, and 1 pair of data code blocks 10; There is a pair of data code blocks in frame set Y1 that carry different service data, namely data code block 7 of data frame set Y1 and data code block 11 of data frame set Y; data code blocks exist in data frame set Y and data frame set Y1. There are 5 data code blocks from 7 to 11 that carry different service data. Data frame set Y and data frame set Y2 have 3 pairs of data code blocks that carry the same service data, namely 1 pair of data code blocks 9, 1 pair of data code blocks 10, and 1 pair of data code blocks 11; There is a pair of data code blocks in frame set Y2 that carry different service data, namely data code block 8 of data frame set Y and data code block 12 of data frame set Y2; data code blocks exist in data frame set Y and data frame set Y2 There are 5 data code blocks from 8 to 12 that carry different service data.
由图8可知,数据帧集合Y包括携带业务数据不同的数据码块8、9、10、11,数据帧集合Y1和Y2的并集包括携带业务数据不同的数据码块7、8、9、10、11、12,数据帧集合Y属于数据帧集合Y1和Y2的并集。As can be seen from Figure 8, the data frame set Y includes data code blocks 8, 9, 10, 11 that carry different service data, and the union of the data frame sets Y1 and Y2 includes data code blocks 7, 8, 9, 10, 11, 12, the data frame set Y belongs to the union of the data frame sets Y1 and Y2.
采用前述第一种编码方式,包括1个OTN数据帧的任一数据帧集合的数据码块携带的业务数据均可以从其前一个数据帧集合和/或后一个数据帧集合的数据码块携带的业务数据中获取。因此可以实现抗连续的至少1个OTN数据帧丢失。By adopting the aforementioned first encoding method, the service data carried by the data code block of any data frame set including one OTN data frame can be carried from the data code block of the previous data frame set and/or the next data frame set. obtained from the business data. Therefore, it is possible to resist the loss of at least one continuous OTN data frame.
图9中,以数据帧集合Z,以及该数据帧集合Z前后相邻的两个数据帧集合Z1和Z2为例。数据帧集合Z和数据帧集合Z1存在12对数据码块携带的业务数据相同,即数据码块5至16;数据帧集合Z和数据帧集合Z1存在4对数据码块携带的业务数据不同,分别是数据帧集合Z1的数据码块1至4,与数据帧集合Z的数据码块17至20;数据帧集合Z和数据帧集合Z1存在数据码块1至20共20个携带不同业务数据的数据码块。数据帧集合Z和数据帧集合Z2存在12对数据码块携带的业务数据相同,即数据码块9至20;数据帧集合Z和数据帧集合Z2存在4对数据码块携带的业务数据不同,分别是数据帧集合Z的数据码块5至8与数据帧集合Z2的数据码块21至24;数据帧集合Z和数据帧集合Z2存在数据码块5至24共20个携带不同业务数据的数据码块。In FIG. 9 , a data frame set Z and two adjacent data frame sets Z1 and Z2 before and after the data frame set Z are taken as examples. Data frame set Z and data frame set Z1 have 12 pairs of data code blocks that carry the same service data, that is, data code blocks 5 to 16; data frame set Z and data frame set Z1 have 4 pairs of data code blocks that carry different service data. They are the data code blocks 1 to 4 of the data frame set Z1, and the data code blocks 17 to 20 of the data frame set Z; there are 20 data code blocks 1 to 20 in the data frame set Z and the data frame set Z1, which carry different service data. data block. Data frame set Z and data frame set Z2 have 12 pairs of data code blocks that carry the same service data, that is, data code blocks 9 to 20; data frame set Z and data frame set Z2 have 4 pairs of data code blocks that carry different service data. They are the data code blocks 5 to 8 of the data frame set Z and the data code blocks 21 to 24 of the data frame set Z2; the data frame set Z and the data frame set Z2 have a total of 20 data code blocks 5 to 24 that carry different service data. Data code block.
由图9可知,数据帧集合Z包括携带业务数据不同的数据码块5至20,数据帧集合Z1和Z2的并集包括携带业务数据不同的数据码块1至24,数据帧集合Z属于数据帧集合Z1和Z2的并集。As can be seen from FIG. 9 , the data frame set Z includes data code blocks 5 to 20 that carry different service data, the union of the data frame sets Z1 and Z2 includes data code blocks 1 to 24 that carry different service data, and the data frame set Z belongs to data. The union of frame sets Z1 and Z2.
采用前述第二种编码方式,包括4个OTN数据帧的任一数据帧集合的数据码块携带的业务数据均可以从其前一个数据帧集合和/或后一个数据帧集合的数据码块携带的业务数据中获取。因此可以实现抗连续的至少4个OTN数据帧丢失。Using the aforementioned second encoding method, the service data carried by the data code block of any data frame set including four OTN data frames can be carried from the data code block of the previous data frame set and/or the next data frame set. obtained from the business data. Therefore, it is possible to resist the loss of at least 4 consecutive OTN data frames.
在本申请实施例中,假设第一数据帧为多个OTN数据帧中的任一数据帧,该第一OTN数据帧包含的M个数据码块中,M-N个数据码块用于对在该第一OTN数据帧之前的OTN数据帧的数据码块携带的业务数据进行冗余传输,该M-N个数据码块称为冗余数据码块。N个数据码块用于传递实际业务数据,也即是该N个数据码块携带的业务数据与该第一OTN数据帧之前的OTN数据帧中携带的业务数据不相同,N为小于M的正整数。该N个数据码块携带的业务数据可以被第一OTN数据帧之后的OTN数据帧的数据码块冗余传输。示例地,在第一数据帧中,该N个数据码块携带的业务数据被第一OTN数据帧之后的OTN数据帧的数据码块冗余传输的次数为(M-N)/N次,也即是该N个数据码块携带的业务数据共被传输了[(M-N)/N]+1次。In this embodiment of the present application, it is assumed that the first data frame is any data frame among multiple OTN data frames, and among the M data code blocks included in the first OTN data frame, M-N data code blocks are used for matching data in the first OTN data frame. The service data carried by the data code blocks of the OTN data frame before the first OTN data frame is redundantly transmitted, and the M-N data code blocks are called redundant data code blocks. The N data code blocks are used to transmit actual service data, that is, the service data carried by the N data code blocks is different from the service data carried in the OTN data frame before the first OTN data frame, and N is less than M. positive integer. The service data carried by the N data code blocks may be redundantly transmitted by the data code blocks of the OTN data frame after the first OTN data frame. For example, in the first data frame, the number of times of redundant transmission of the service data carried by the N data code blocks by the data code blocks of the OTN data frame after the first OTN data frame is (M-N)/N times, that is, It means that the service data carried by the N data code blocks are transmitted [(M-N)/N]+1 times in total.
以图8为例,图8中,第一种编码格式为:L=1,M=4,N=1。假设第一OTN数据帧为OTN数据帧Y,则该OTN数据帧Y中,数据码块8、9和10为冗余数据码块,用于对OTN数据帧Y之前的OTN数据帧中的数据码块携带的业务数据进行冗余传输,数据码块11用于传输实际业务数据。其中,数据码块11被该OTN数据帧Y之后的OTN数据帧的数据码块冗余传输的次数为(4-1)/1=3次,如此,数据码块11携带的业务数据共被传输了4次。Taking FIG. 8 as an example, in FIG. 8, the first encoding format is: L=1, M=4, N=1. Assuming that the first OTN data frame is OTN data frame Y, in this OTN data frame Y, data code blocks 8, 9 and 10 are redundant data code blocks, which are used to compare the data in the OTN data frame before OTN data frame Y The service data carried by the code block is redundantly transmitted, and the data code block 11 is used to transmit actual service data. The number of redundant transmissions of the data code block 11 by the data code blocks of the OTN data frame after the OTN data frame Y is (4-1)/1=3 times. In this way, the service data carried by the data code block 11 is totally transmitted by transmitted 4 times.
可选地,第一OTN数据帧携带的业务数据属于该第一OTN数据帧之前的第L个OTN数据帧(即在该第一OTN数据帧之前且与该第一OTN数据帧间隔L-1个OTN数据帧的数据帧)携带的业务数据以及该第一OTN数据帧之后的第L个OTN数据帧(即在该第一OTN数据帧之后且与该第一OTN数据帧间隔L-1个OTN数据帧的数据帧)携带的业务数据的交集。如此,该光通信系统支持最大抗连续M-1个数据帧集合的丢失。Optionally, the service data carried in the first OTN data frame belongs to the Lth OTN data frame before the first OTN data frame (that is, before the first OTN data frame and at an interval of L-1 from the first OTN data frame. The service data carried by the data frame of the first OTN data frame) and the Lth OTN data frame after the first OTN data frame (that is, after the first OTN data frame and at an interval of L-1 from the first OTN data frame) The intersection of the service data carried by the data frame of the OTN data frame). As such, the optical communication system supports maximum resistance to loss of consecutive M-1 sets of data frames.
示例地,第一数据帧的M-N个数据码块用于对在该第一OTN数据帧之前的第L个OTN数据帧的业务数据进行冗余传输,且N个数据码块携带的业务被第一OTN数据帧之后的第L个OTN数据帧的数据码块冗余传输时,对于多个OTN数据帧中的任一数据码块,该任一数据码块携带的业务数据被冗余传输共(M-N)/N次,也即是该业务数据共被传输了[(M-N)/N]+1次。例如,M=4,N=2,该任一数据码块携带的业务数据被冗余传输共1次。Exemplarily, the M-N data code blocks of the first data frame are used for redundant transmission of service data of the Lth OTN data frame before the first OTN data frame, and the services carried by the N data code blocks are When the data code blocks of the Lth OTN data frame after an OTN data frame are redundantly transmitted, for any data code block in the multiple OTN data frames, the service data carried by the any data code block is redundantly transmitted for a total of (M-N)/N times, that is, the service data is transmitted [(M-N)/N]+1 times in total. For example, M=4, N=2, the service data carried by any data code block is redundantly transmitted once in total.
以图8和图9为例,在如图8所示的第一种编码方式中,任一OTN数据帧携带的业务数据属于该任一OTN数据帧之前的第1个OTN数据帧携带的业务数据以及该任一OTN数据帧之后的第1个OTN数据帧携带的业务数据的交集。如此,任意1至3个连续的数据帧集合(在该第一种编码方式中,即为任意1至3个连续的OTU数据帧)丢失,丢失的数据帧集合携带的业务数据都可以由丢失的数据帧集合相邻的前一个数据帧集合和/或后一个数据帧集合携带的业务数据获取。图8中假设Y3由连续的3个OTN数据帧组成,其包括不同的数据码块13至18,该Y3丢失时,可以从与该Y3相邻的前后OTN数据帧:Y4和Y5中获取Y3丢失的业务数据,图8中划斜线的数据码块为与Y3中的数据码块携带相同的业务数据。Taking FIG. 8 and FIG. 9 as examples, in the first encoding mode shown in FIG. 8, the service data carried by any OTN data frame belongs to the service carried by the first OTN data frame before the any OTN data frame. The intersection of the data and the service data carried in the first OTN data frame following any OTN data frame. In this way, any 1 to 3 consecutive data frame sets (in the first encoding mode, any 1 to 3 consecutive OTU data frames) are lost, and the service data carried by the lost data frame sets can be The service data carried by the adjacent previous data frame set and/or the next data frame set is obtained. In Figure 8, it is assumed that Y3 consists of 3 consecutive OTN data frames, which include different data code blocks 13 to 18. When the Y3 is lost, Y3 can be obtained from the OTN data frames before and after the Y3: Y4 and Y5. For the lost service data, the oblique-lined data code block in FIG. 8 carries the same service data as the data code block in Y3.
在图9所示的第二种编码方式中,任一OTN数据帧携带的业务数据属于该任一OTN数据帧之前的第4个OTN数据帧携带的业务数据以及该任一OTN数据帧之后的第4个OTN数据帧携带的业务数据的交集。如此,可以实现最大抗连续3个数据帧集合的丢失。任意1至3个连续的数据帧集合(在该第一种编码方式中,即为任意4、8或12个连续的OTU数据帧)丢失,丢失的数据帧集合携带的业务数据都可以由丢失的数据帧集合相邻的前一个数据帧集合和/或后一个数据帧集合携带的业务数据获取。图9中假设Z3由连续的3个数据帧集合组成,其包括不同的数据码块5至28,该Z3丢失时,可以从与该Z3相邻的前后OTN数据帧集合:Z1和Z4中获取Z3丢失的业务数据,图9中划斜线的数据码块为与Z3中的数据码块携带相同的业务数据。In the second encoding mode shown in FIG. 9 , the service data carried by any OTN data frame belongs to the service data carried by the 4th OTN data frame before the any OTN data frame and the service data carried after the any OTN data frame The intersection of the service data carried in the fourth OTN data frame. In this way, the maximum resistance to the loss of three consecutive data frame sets can be achieved. Any 1 to 3 consecutive data frame sets (in the first encoding method, any 4, 8 or 12 consecutive OTU data frames) are lost, and the service data carried by the lost data frame sets can be The service data carried by the adjacent previous data frame set and/or the next data frame set is obtained. In Fig. 9, it is assumed that Z3 consists of 3 consecutive data frame sets, which include different data code blocks 5 to 28. When the Z3 is lost, it can be obtained from the OTN data frame sets before and after the Z3: Z1 and Z4 For the service data lost by Z3, the data code blocks underlined in FIG. 9 carry the same service data as the data code blocks in Z3.
在一种可选方式中,每相邻2个数据帧集合的数据码块存在(M-N)×L对数据码块携带的业务数据相同。如此,每相邻2个数据帧集合的数据码块存在(M-N)×L个冗余数据码块;每相邻2个数据帧集合的数据码块存在N×L对数据码块携带的业务数据不同,也即是每相邻2个数据帧集合的数据码块存在2×N×L个携带业务数据不同的数据码块,如此可以避免每相邻2个数据帧集合的数据码块携带的业务数据完全重复的情况出现,提高每相邻2个数据帧集合携带的不同业务数据的数据量。示例地,N=1或N=2。In an optional manner, the data code blocks of every two adjacent data frame sets have (M-N)×L pairs of data code blocks that carry the same service data. In this way, there are (M-N)×L redundant data code blocks in the data code blocks of every two adjacent data frame sets; there are N×L pairs of services carried by the data code blocks in the data code blocks of every two adjacent data frame sets The data is different, that is, there are 2×N×L data code blocks carrying different service data in the data code blocks of every two adjacent data frame sets. The situation occurs that the service data of 2 is completely duplicated, and the data amount of different service data carried by every two adjacent data frame sets is increased. Illustratively, N=1 or N=2.
如图8所示,第一种编码格式为:L=1,M=4,N=1。如此,每相邻2个数据帧集合的数 据码块存在3对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在1对数据码块携带的业务数据不同。如图9所示,第二种编码格式为:L=4,M=4,N=1。如此,每相邻2个数据帧集合的数据码块存在12对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在4对数据码块携带的业务数据不同。As shown in FIG. 8 , the first encoding format is: L=1, M=4, N=1. In this way, 3 pairs of data code blocks in every two adjacent data frame sets carry the same service data, and one pair of data code blocks in every two adjacent data frame sets carry different service data. As shown in FIG. 9 , the second encoding format is: L=4, M=4, N=1. In this way, 12 pairs of data code blocks in every two adjacent data frame sets carry the same service data, and 4 pairs of data code blocks in every two adjacent data frame sets carry different service data.
可选地,在同一OTN数据帧中,M个数据码块中携带的业务数据互不相同。如此,同一OTN数据帧中不存在业务数据的冗余,可以提高OTN数据帧的利用率。Optionally, in the same OTN data frame, the service data carried in the M data code blocks are different from each other. In this way, there is no redundancy of service data in the same OTN data frame, which can improve the utilization rate of the OTN data frame.
在实际实现时,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据。采用序号来标识数据码块,可实现数据码块的快速识别,便于接收端基于序号来区分数据码块所携带的业务数据是否相同,以提高接收端的效率。为了便于说明,后续实施例中均以数据码块具有的序号来标识数据码块。In actual implementation, each data code block has a sequence number, data code blocks with the same sequence number carry the same service data, and data code blocks with different sequence numbers carry different service data. Using the serial number to identify the data code block can realize the rapid identification of the data code block, and it is convenient for the receiving end to distinguish whether the service data carried by the data code block is the same based on the serial number, so as to improve the efficiency of the receiving end. For the convenience of description, in subsequent embodiments, the data code blocks are identified by the serial numbers possessed by the data code blocks.
进一步地,前述两种编码方式还可以满足以下的一种或多种,如此便于发送端和接收端进行编解码,实现数据码块的快速区分:Further, the aforementioned two encoding methods can also satisfy one or more of the following, which is convenient for the transmitting end and the receiving end to perform encoding and decoding, and realizes the rapid differentiation of data code blocks:
第一、同一OTN数据帧中,M个数据码块具有的序号按照发送时序由先到后的顺序呈等差数列排列。可选地,多个OTN数据帧对应的多个等差数列的差值相等。任一OTN数据帧对应的等差数列即图8或图9中的一列等差数列。图8中,同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列,差值为1;图9中,同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列,差值为4。First, in the same OTN data frame, the sequence numbers of the M data code blocks are arranged in an arithmetic sequence according to the order of the transmission timing. Optionally, the difference values of multiple arithmetic progressions corresponding to multiple OTN data frames are equal. The arithmetic sequence corresponding to any OTN data frame is an arithmetic sequence in FIG. 8 or FIG. 9 . In Fig. 8, the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an ascending equal difference sequence according to the sending sequence from first to last, and the difference is 1; in Fig. 9, the M data code blocks included in the same OTN data frame The sequence numbers of the data code blocks are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last, and the difference is 4.
第二、多个OTN数据帧中,位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列。可选地,多个OTN数据帧的M个发送位置一一对应的M个等差数列的差值相等,任一发送位置对应的等差数列即图8或图9中的一行等差数列。图8和图9均以该差值为1为例进行说明。可选地,多个OTN数据帧的M个发送位置一一对应的M个等差数列的起始序号相同,图8和图9均以该起始序号为1为例进行说明。Second, in a plurality of OTN data frames, the sequence numbers of the data code blocks located at the same transmission position are arranged in an increasing arithmetic sequence according to the transmission timing sequence from first to last. Optionally, the difference values of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are equal, and the arithmetic progression corresponding to any sending position is a row of arithmetic progressions in FIG. 8 or FIG. 9 . 8 and 9 both take the difference value of 1 as an example for description. Optionally, the starting sequence numbers of the M arithmetic progressions corresponding to the M sending positions of the multiple OTN data frames one-to-one are the same, and FIG. 8 and FIG. 9 both take the starting sequence number of 1 as an example for description.
前述两种编码方式只是示例。实际实现时,还可根据应用场景在前述两种编码方式的基础上进行简单替换或改进得到新的编码方式。例如,同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序不呈等差数列排列,但可以组成等差数列,如1、7、5或者8、4、6。又例如,多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序不呈递增等差数列排列,但可以组成递增等差数列。再例如,同一OTN数据帧包括的M个数据码块中存在至少一对数据码块携带的业务数据相同。还例如,L=4,M=3,N=1,或,L=1,M=3,N=1等。再例如,实际生成的多个OTN数据帧不包含图8或图9中前M-1个数据帧集合。任何在本申请实施例提供的通信方法的基础上进行的简单替换或改进均应包含在本申请实施例的保护范围内。The aforementioned two encoding methods are just examples. In actual implementation, a new encoding method can also be obtained by simply replacing or improving on the basis of the foregoing two encoding methods according to the application scenario. For example, the sequence numbers of the M data code blocks included in the same OTN data frame are not arranged in an arithmetic sequence according to the transmission timing sequence, but they can form an arithmetic sequence, such as 1, 7, 5 or 8, 4, 6. For another example, the sequence numbers of data code blocks located at the same transmission position in multiple OTN data frames are not arranged in an increasing arithmetic sequence according to the transmission timing sequence, but may form an increasing arithmetic sequence. For another example, among the M data code blocks included in the same OTN data frame, there are at least one pair of data code blocks that carry the same service data. Also for example, L=4, M=3, N=1, or, L=1, M=3, N=1, etc. For another example, the actually generated multiple OTN data frames do not include the first M-1 data frame sets in FIG. 8 or FIG. 9 . Any simple replacement or improvement based on the communication method provided by the embodiment of the present application shall be included in the protection scope of the embodiment of the present application.
为了便于读者理解,本申请实施例提供第三种编码格式和第四种编码格式进行说明。图10是本申请实施例提供的一种采用第三种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图。如图10所示,第三种编码格式为:L=3,M=3,N=1。如此,每相邻2个数据帧集合的数据码块存在6对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在3对数据码块携带的业务数据不同。可选地,同一OTN数据帧包括的3个数据码块具有的序号按照发送时序由先到后的顺序呈递减等差数列排列,且与该多个OTN数据帧一一对应的多个等差数列的差值相等,该差值均为6。多个OTN数据帧中位于同一发送位置 的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列,多个OTN数据帧的M个发送位置一一对应的M个等差数列的差值相等,该差值均为2。To facilitate the reader's understanding, the embodiments of the present application provide a third encoding format and a fourth encoding format for description. FIG. 10 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using a third encoding format according to an embodiment of the present application. As shown in Figure 10, the third encoding format is: L=3, M=3, N=1. In this way, 6 pairs of data code blocks in every two adjacent data frame sets carry the same service data, and 3 pairs of data code blocks in every two adjacent data frame sets carry different service data. Optionally, the sequence numbers of the three data code blocks included in the same OTN data frame are arranged in a descending arithmetic sequence according to the transmission timing sequence, and a plurality of arithmetic differences corresponding to the multiple OTN data frames one-to-one are presented. The difference of the sequence is equal, the difference is 6. The sequence numbers of the data code blocks located at the same transmission position in multiple OTN data frames are arranged in an ascending equal difference sequence according to the transmission timing sequence, and the M transmission positions of the multiple OTN data frames correspond to M one-to-one, etc. The difference values of the difference series are equal, and the difference values are both 2.
图11是本申请实施例提供的一种采用第四种编码格式编码得到的多个OTN数据帧的数据码块的排列结构示意图。如图11所示,第四种编码格式为:L=1,M=4,N=2。如此,每相邻2个数据帧集合的数据码块存在2对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在2对数据码块携带的业务数据不同。可选地,同一OTN数据帧包括的4个数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列,且与该多个OTN数据帧一一对应的多个等差数列的差值相等,该差值均为1。多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列,多个OTN数据帧的M个发送位置一一对应的M个等差数列的差值相等,该差值均为1。FIG. 11 is a schematic diagram of an arrangement structure of data code blocks of a plurality of OTN data frames encoded by using a fourth encoding format according to an embodiment of the present application. As shown in Figure 11, the fourth encoding format is: L=1, M=4, N=2. In this way, two pairs of data code blocks in every two adjacent data frame sets carry the same service data, and two pairs of data code blocks in every two adjacent data frame sets carry different service data. Optionally, the sequence numbers of the 4 data code blocks included in the same OTN data frame are arranged in an ascending equidistant sequence according to the sending timing sequence from first to last, and a plurality of equidistant numbers corresponding to the multiple OTN data frames one-to-one. The difference of the sequence is equal, and the difference is 1. The sequence numbers of the data code blocks located at the same transmission position in multiple OTN data frames are arranged in an ascending equal difference sequence according to the transmission timing sequence, and the M transmission positions of the multiple OTN data frames correspond to M one-to-one, etc. The difference values of the difference series are equal, and the difference values are all 1.
值得说明的是,图8至图11所示的多个OTN数据帧的数据码块的排列结构示意图中,前M-1个数据帧集合包括空闲数据码块。通过在多个OTN数据帧的开始部分携带空闲数据码块,可以为接收端进行解析准备工作提供时间,从而保证接收端对接收的数据码块的有效解析。并且,图8至图11所示的多个OTN数据帧仅为实际生成的OTN数据帧的一部分,其他部分的OTN数据帧的排列结构参考图8至图11所示的多个OTN数据帧的排列结构。It should be noted that in the schematic diagrams of the arrangement structure of data code blocks of multiple OTN data frames shown in FIG. 8 to FIG. 11 , the first M-1 data frame sets include idle data code blocks. By carrying idle data code blocks at the beginning of multiple OTN data frames, time can be provided for the receiving end to perform parsing preparations, thereby ensuring effective parsing of the received data code blocks by the receiving end. Moreover, the multiple OTN data frames shown in FIGS. 8 to 11 are only a part of the actually generated OTN data frames, and the arrangement structure of the OTN data frames of other parts refers to the multiple OTN data frames shown in FIGS. 8 to 11 . Arrange structure.
如前所述,每个数据码块具有一个序号。在实际实现时,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号。如此便于接收端通过从OTN数据帧提取序号来确定OTN数据帧的数据码块所携带的业务数据是否相同,提高接收端的工作效率。As previously mentioned, each data block has a sequence number. In actual implementation, each OTN data frame carries the sequence number of the data code block of the OTN data frame. In this way, it is convenient for the receiving end to determine whether the service data carried by the data code blocks of the OTN data frame is the same by extracting the sequence number from the OTN data frame, thereby improving the working efficiency of the receiving end.
在本申请实施例中,数据码块的序号的携带方式有多种。在第一种可选示例中,OTN数据帧中每个数据码块携带该数据码块对应的序号。例如,在数据码块的指定位置(如数据码块的开始位置或者结束位置)携带该序号。在第二种可选示例中,对于一个OTN数据帧,该OTN数据帧中指定数据码块携带该OTN数据帧中各个数据码块对应的序号。例如,该指定数据码块为OTN数据帧的首个数据码块或者末尾数据码块。在第三种可选示例中,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号。前述第二种可选示例和第三种可选示例中,指定数据码块或标识码块携带了与M个数据码块一一对应的M个序号,该M个序号可以按照指定顺序排列,以便于接收端按照该M个序号的排列顺序确定每个序号对应的数据码块。示例的,该指定顺序为M个数据码块的发送时序,即在OTN数据帧中由先到后的排列顺序。In the embodiment of the present application, there are various ways of carrying the serial number of the data code block. In a first optional example, each data code block in the OTN data frame carries a sequence number corresponding to the data code block. For example, the sequence number is carried at a specified position of the data code block (eg, the start position or the end position of the data code block). In a second optional example, for an OTN data frame, the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame. For example, the specified data code block is the first data code block or the last data code block of the OTN data frame. In a third optional example, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame. In the aforementioned second optional example and third optional example, the specified data code block or the identification code block carries M serial numbers corresponding to the M data code blocks one-to-one, and the M serial numbers can be arranged in the specified order, In order to facilitate the receiving end to determine the data code block corresponding to each serial number according to the arrangement order of the M serial numbers. Exemplarily, the specified order is the transmission timing of the M data code blocks, that is, the arrangement order from first to last in the OTN data frame.
可选地,标识码块与数据码块的长度相等。如此,可以实现OTN数据帧中各个码块的长度一致,便于发送端进行数据编码,减少计算开销。Optionally, the length of the identification code block is equal to that of the data code block. In this way, the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
示例地,标识码块可以设置在一个OTN数据帧的M个数据码块之前的位置或之后的位置,且该标识码块可以与该M个数据码块相邻设置。For example, the identification code block may be set at a position before or after the M data code blocks in an OTN data frame, and the identification code block may be set adjacent to the M data code blocks.
传统的ODU帧结构中,校验码添加在ODU OH区,用于校验ODU是否出现误码。In the traditional ODU frame structure, the check code is added in the ODU OH area to check whether the ODU has an error.
在本申请实施例中,每个OTN数据帧携带校验码,该校验码基于OTN数据帧的数据码块生成。示例地,发送端可以基于指定校验算法以及OTN数据帧的数据码块生成校验码。在一种可选实现方式中,发送端基于指定校验算法以及OTN数据帧的数据码块中的业务数据生成校验码;在另一种可选实现方式中,发送端基于指定校验算法以及OTN数据帧的数据码块的序号生成校验码。相对于采用数据码块中的业务数据生成校验码,采用数据码块的序号生成校验码的复杂度较小,运算量较少。示例地,校验算法为前向纠错码(Forward Error  Correction,FEC)校验、循环冗余校验(Cyclic Redundancy Check,CRC)校验或奇偶校验等算法。In this embodiment of the present application, each OTN data frame carries a check code, and the check code is generated based on a data code block of the OTN data frame. For example, the sending end may generate the check code based on the specified check algorithm and the data code block of the OTN data frame. In an optional implementation manner, the sender generates a check code based on a specified check algorithm and service data in a data code block of the OTN data frame; in another optional implementation manner, the sender generates a check code based on a specified check algorithm and the serial number of the data code block of the OTN data frame to generate a check code. Compared with using the service data in the data code block to generate the check code, using the serial number of the data code block to generate the check code has less complexity and less computation. For example, the check algorithm is a forward error correction code (Forward Error Correction, FEC) check, a cyclic redundancy check (Cyclic Redundancy Check, CRC) check, or an algorithm such as a parity check.
通过校验码可以供接收端识别OTN数据帧是否存在误码,从而实现信元级别的误码识别。当OTN数据帧为OSU时,相较于传统的通信方法,可以细化误码的识别粒度,提高误码的识别精度。The check code can be used by the receiving end to identify whether there is an error in the OTN data frame, so as to realize the error identification at the cell level. When the OTN data frame is OSU, compared with the traditional communication method, the identification granularity of bit errors can be refined and the identification accuracy of bit errors can be improved.
在第一种可选示例中,对于一个OTN数据帧,该OTN数据帧中指定数据码块携带该校验码。例如,该指定数据码块为OTN数据帧的首个数据码块或者末尾数据码块。接收端可以通过扫描该指定数据码块,以提取校验码。在第二种可选示例中,每个OTN数据帧还包括校验码块,校验码块包括校验码。通过设置独立于数据码块的校验码块,可以实现接收端对OTN数据帧携带的校验码的快速提取。相对于前述第一种可选示例,校验码块独立于数据码块之外,减少对数据码块的占用,避免携带的校验码对业务数据的影响。In a first optional example, for an OTN data frame, a specified data code block in the OTN data frame carries the check code. For example, the specified data code block is the first data code block or the last data code block of the OTN data frame. The receiving end can scan the specified data code block to extract the check code. In a second optional example, each OTN data frame further includes a check code block, and the check code block includes a check code. By setting a check code block independent of the data code block, the receiving end can quickly extract the check code carried by the OTN data frame. Compared with the foregoing first optional example, the check code block is independent of the data code block, which reduces the occupation of the data code block and avoids the influence of the carried check code on the service data.
可选地,校验码块与数据码块的长度相等。如此,可以实现OTN数据帧中各个码块的长度一致,便于发送端进行数据编码,减少计算开销。Optionally, the lengths of the check code block and the data code block are equal. In this way, the length of each code block in the OTN data frame can be consistent, which is convenient for the transmitting end to perform data encoding and reduces computational overhead.
示例地,校验码块通常设置在一个OTN数据帧中M个数据码块之后的位置。如此,在生成该OTN数据帧的数据码块的同时,可以同步生成校验码,从而节约OTN数据帧的生成时长。可选地,校验码块与该M个数据码块相邻设置。For example, the check code block is usually set at a position after the M data code blocks in an OTN data frame. In this way, while generating the data code block of the OTN data frame, the check code can be generated synchronously, thereby saving the generation time of the OTN data frame. Optionally, the check code block is arranged adjacent to the M data code blocks.
值得说明的是,前述标识码块和校验码块可以为同一码块,通过码块的复用可以减少序号和校验码所占用的比特数,提高码块的利用率。当标识码块和校验码块为同一码块时,本申请实施例称该码块为标识校验码块。It should be noted that the aforementioned identification code block and check code block may be the same code block, and the number of bits occupied by the serial number and the check code can be reduced by the multiplexing of the code blocks, and the utilization rate of the code block can be improved. When the identification code block and the check code block are the same code block, the embodiment of the present application calls the code block an identification check code block.
图12是本申请实施例提供的一种OTN数据帧的实际结构示意图。该OTN数据帧包括按照从头到尾的顺序(即图12中x方向)依次排列的开销区和净荷区。开销区包括用于描述净荷的信息,例如业务类型、封装的长度和封装的格式等;净荷区包括M个数据码块,以及位于净荷区末尾(即该M个数据码块之后)的标识校验码,标识校验码包括序号以及校验码。图12中假设M=4,且标识校验码块的长度与数据码块的长度相等。示例地,若该OTN数据帧为OSU,可以将OSU(长度为192Byte)中的长度为185Byte的净荷区均分为5个37Byte的码块,其中,4个码块为数据码块;1个码块为标识校验码块。若采用前述第一种编码格式编码得到多个OSU,则需要5倍冗余带宽。FIG. 12 is a schematic diagram of an actual structure of an OTN data frame provided by an embodiment of the present application. The OTN data frame includes an overhead area and a payload area that are arranged in sequence from the beginning to the end (ie, the x direction in FIG. 12 ). The overhead area includes information used to describe the payload, such as service type, encapsulation length and encapsulation format, etc. The payload area includes M data code blocks and is located at the end of the payload area (that is, after the M data code blocks) The identification check code includes the serial number and the check code. In FIG. 12, it is assumed that M=4, and the length of the identification check code block is equal to the length of the data code block. Exemplarily, if the OTN data frame is an OSU, the payload area with a length of 185Byte in the OSU (length is 192Byte) can be equally divided into 5 code blocks of 37Byte, wherein 4 code blocks are data code blocks; 1 Each code block is an identification check code block. If a plurality of OSUs are obtained by using the aforementioned first coding format, 5 times the redundant bandwidth is required.
如前所述,发送端可以支持多种编码格式,如第一至第四种编码格式,不同的编码格式得到的OTN数据帧排列方式不同,光通信系统所支持的抗OTN数据帧丢失能力也不同。例如,若第一OTN数据帧携带的业务数据属于该第一OTN数据帧之前的第L个OTN数据帧携带的业务数据以及该第一OTN数据帧之后的第L个OTN数据帧携带的业务数据的交集,则该光通信系统支持最大抗连续M-1个数据帧集合的丢失。用户可以根据业务需求选择所需的目标编码格式。相应的,本申请实施例提供的通信方法支持在该多种编码格式选择需要使用的编码格式。则在前述生成多个OTN数据帧的过程之前,该通信方法还包括:发送端接收设置指令,该设置指令用于在发送端支持的多种编码格式中指定目标编码格式。相应的,发送端基于目标编码格式生成多个OTN数据帧。在一种可选方式中,该设置指令由人工触发,例如该多种编码格式可以通过用户界面呈现给用户,由用户在多个编码格式中选择目标编码格式,从而触发该设置指令。在另一种可选方式中,该设置指令由管理设备触发。例如,发送端将支持的多种编码格式发送至管理设备,由管理设备在多种编码格式中选择目标编码格 式,并将目标编码格式通过该设置指令下发给发送端。As mentioned above, the sender can support multiple encoding formats, such as the first to fourth encoding formats, the OTN data frames obtained by different encoding formats are arranged in different ways, and the anti-OTN data frame loss capability supported by the optical communication system is also different. For example, if the service data carried in the first OTN data frame belongs to the service data carried in the Lth OTN data frame before the first OTN data frame and the service data carried in the Lth OTN data frame after the first OTN data frame , the optical communication system supports the maximum resistance to the loss of M-1 consecutive data frame sets. Users can select the desired target encoding format according to business requirements. Correspondingly, the communication method provided by the embodiment of the present application supports the selection of the encoding format to be used among the multiple encoding formats. Then, before the aforementioned process of generating multiple OTN data frames, the communication method further includes: the sending end receives a setting instruction, where the setting instruction is used to specify a target encoding format among the multiple encoding formats supported by the sending end. Correspondingly, the transmitting end generates multiple OTN data frames based on the target encoding format. In an optional manner, the setting instruction is manually triggered, for example, the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format from the multiple encoding formats, thereby triggering the setting instruction. In another optional manner, the setting instruction is triggered by the management device. For example, the sender sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the sender through the setting instruction.
S302、发送端依次发送多个OTN数据帧。S302. The transmitting end sends multiple OTN data frames in sequence.
图13是本申请实施例提供的一种光通信系统中的一种通信帧结构的部分结构示意图。该通信帧可以为ODU。该通信帧结构中每个OTN数据帧的结构参考图11。图13假设多个OTN数据帧中数据码块的编码格式采用前述第一种编码格式,但图13仅是示意性说明,多个OTN数据帧中数据码块的编码格式还可以采用前述第二种编码格式或者其他编码格式,本申请实施例不再赘述。发送端按照由头至尾(即图13中的y方向)的顺序发送多个OTN数据帧,对于每个OTN数据帧,按照该OTN数据帧由头至尾(即图13中的x方向,其与图13的x方向一致)的顺序发送该OTN数据帧。FIG. 13 is a schematic partial structural diagram of a communication frame structure in an optical communication system provided by an embodiment of the present application. The communication frame may be an ODU. Refer to FIG. 11 for the structure of each OTN data frame in the communication frame structure. Fig. 13 assumes that the encoding format of the data code blocks in the multiple OTN data frames adopts the aforementioned first encoding format, but Fig. 13 is only a schematic illustration, and the encoding format of the data code blocks in the multiple OTN data frames can also adopt the aforementioned second encoding format encoding formats or other encoding formats, which will not be repeated in this embodiment of the present application. The sender sends multiple OTN data frames in the order from head to tail (ie, the y direction in Figure 13). The OTN data frames are transmitted in the order in which the x-direction in FIG. 13 is the same).
本申请实施例在实际实现时,发送端在每生成一个OTN数据帧(即每缓存一个OTN数据帧)后,即发送该OTN数据帧,如此发送端的发送时延为一个OTN数据帧的长度,时延较短,OTN数据帧发送效率较高。When the embodiment of the present application is actually implemented, the sending end sends the OTN data frame every time it generates an OTN data frame (that is, every time an OTN data frame is buffered), so that the sending delay of the sending end is the length of one OTN data frame, The delay is short, and the OTN data frame transmission efficiency is high.
S303、接收端接收多个OTN数据帧。S303. The receiving end receives multiple OTN data frames.
接收端接收的OTN数据帧结构参考前述发送端发送的OTN数据帧结构。值得说明的是,发送端是依时序发送该多个OTN数据帧的,接收端在接收该多个OTN数据帧后,会按照其发送时序排列该多个OTN数据帧,以保证解码的准确性。For the structure of the OTN data frame received by the receiving end, refer to the structure of the OTN data frame sent by the foregoing transmitting end. It is worth noting that the sending end sends the multiple OTN data frames in sequence, and after receiving the multiple OTN data frames, the receiving end arranges the multiple OTN data frames according to the sending sequence to ensure the accuracy of decoding. .
S304、接收端校验每个OTN数据帧是否出现误码。当存在OTN数据帧出现误码,执行S305;当不存在OTN数据帧出现误码,执行S306。S304, the receiving end checks whether there is a bit error in each OTN data frame. When there is a bit error in the OTN data frame, go to S305; when there is no bit error in the OTN data frame, go to S306.
如S301所述,每个OTN数据帧可以携带校验码,该校验码基于OTN数据帧的数据码块生成;相应的,接收端基于每个OTN数据帧的校验码校验每个OTN数据帧是否出现误码。例如,接收端可以基于指定校验算法以及OTN数据帧的数据码块生成校验码,并比对生成的校验码与OTN数据帧中携带的校验码是否相同。若生成的校验码与OTN数据帧中携带的校验码不同,则确定OTN数据帧出现误码;若生成的校验码与OTN数据帧中携带的校验码相同,则确定OTN数据帧未出现误码。该指定校验算法与发送端生成校验码的校验算法相同。该生成校验码的过程可以参考发送端生成校验码的过程。As described in S301, each OTN data frame may carry a check code, and the check code is generated based on the data code block of the OTN data frame; correspondingly, the receiving end checks each OTN based on the check code of each OTN data frame Whether there is a bit error in the data frame. For example, the receiving end may generate a check code based on the specified check algorithm and the data code block of the OTN data frame, and compare whether the generated check code is the same as the check code carried in the OTN data frame. If the generated check code is different from the check code carried in the OTN data frame, it is determined that there is an error in the OTN data frame; if the generated check code is the same as the check code carried in the OTN data frame, it is determined that the OTN data frame No errors occurred. The specified check algorithm is the same as the check algorithm used by the sender to generate the check code. For the process of generating the check code, reference may be made to the process of generating the check code by the sender.
S305、接收端丢弃出现误码的OTN数据帧。执行S306。S305, the receiving end discards the OTN data frame with bit errors. Execute S306.
OTN数据帧在传输过程中,可能受到环境的影响,出现数据码块的丢失,导致OTN数据帧出现误码。例如,在雷暴天气由于SOP的旋转速率过大,导致数据码块的丢失。接收端对OTN数据帧进行误码校验,可以将出现误码的OTN数据帧丢弃,避免对出现误码的OTN数据帧进行解析,减少不必要的运算开销。OTN data frames may be affected by the environment during transmission, and data code blocks may be lost, resulting in bit errors in OTN data frames. For example, in a thunderstorm, the data block is lost due to the excessive rotation rate of the SOP. The receiving end performs bit error checking on the OTN data frame, and can discard the OTN data frame with bit error, avoid parsing the OTN data frame with bit error, and reduce unnecessary operation overhead.
S306、接收端解析接收的多个OTN数据帧,得到业务数据。S306. The receiving end parses the received multiple OTN data frames to obtain service data.
如S301所述,由于多个OTN数据帧中存在携带业务数据相同的数据码块,重复进行携带相同业务数据的数据码块的解析,会增大运算开销,导致OTN数据帧的解析效率较低。因此,接收端在接收到OTN数据帧后,对接收的OTN数据帧可以先进行去重处理,以降低运算开销,提高后续解析效率。如此,接收端解析接收的多个OTN数据帧,得到业务数据的过程可以包括:将接收的多个OTN数据帧中携带相同业务数据的不同数据码块进行去重处理;解析去重处理后的数据码块,得到业务数据。去重处理后,冗余的数据码块可以被丢弃,如此减少接收端的存储负荷。As described in S301, since there are data code blocks carrying the same service data in multiple OTN data frames, repeated parsing of the data code blocks carrying the same service data will increase computing overhead, resulting in low parsing efficiency of OTN data frames . Therefore, after receiving the OTN data frame, the receiving end may first perform deduplication processing on the received OTN data frame, so as to reduce the computational overhead and improve the subsequent parsing efficiency. In this way, the process of parsing the received multiple OTN data frames to obtain the service data may include: performing deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; Data code block to obtain service data. After deduplication processing, redundant data code blocks can be discarded, thus reducing the storage load on the receiving end.
其中,参考S301,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业 务数据,具有不同序号的数据码块携带不同的业务数据,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号。相应的,接收端基于不同OTN数据帧携带的序号确定不同OTN数据帧中数据码块携带的业务数据是否相同。如此,接收端无需获取数据码块中的业务数据即可区分不同的数据码块是否携带相同的业务数据,有效减少接收端的运算代价。Wherein, referring to S301, each data code block has a sequence number, the data code blocks with the same sequence number carry the same service data, the data code blocks with different sequence numbers carry different service data, and each OTN data frame carries the data of the OTN data frame. The sequence number that the data code block has. Correspondingly, the receiving end determines whether the service data carried by the data code blocks in different OTN data frames is the same based on the sequence numbers carried in different OTN data frames. In this way, the receiving end can distinguish whether different data code blocks carry the same service data without acquiring the service data in the data code blocks, thereby effectively reducing the operation cost of the receiving end.
参考前述S301,OTN数据帧中数据码块的序号的携带方式有多种,相应的,接收端采用不同方式获取OTN数据帧携带的序号,下面以以下三种可选示例为例进行说明:Referring to the aforementioned S301, there are many ways to carry the serial number of the data code block in the OTN data frame. Correspondingly, the receiving end uses different ways to obtain the serial number carried by the OTN data frame. The following three optional examples are used as examples to illustrate:
在第一种可选示例中,对于一个OTN数据帧,该OTN数据帧中每个数据码块携带该数据码块对应的序号。接收端可以通过扫描该OTN数据帧中每个数据码块,以从每个数据码块中提取对应的序号。In a first optional example, for an OTN data frame, each data code block in the OTN data frame carries a sequence number corresponding to the data code block. The receiving end can scan each data code block in the OTN data frame to extract the corresponding sequence number from each data code block.
在第二种可选示例中,对于一个OTN数据帧,该OTN数据帧中指定数据码块携带该OTN数据帧中各个数据码块对应的序号。接收端可以通过扫描该指定数据码块,以提取每个数据码块对应的序号。In a second optional example, for an OTN data frame, the designated data code block in the OTN data frame carries the sequence number corresponding to each data code block in the OTN data frame. The receiving end can scan the specified data code block to extract the sequence number corresponding to each data code block.
在第三种可选示例中,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号。通过设置独立于数据码块的标识码块,可以实现接收端对OTN数据帧携带的序号的快速提取。相对于前述第一种可选示例,接收端无需扫描OTN数据帧中的每个数据码块,减少接收端的开销;相对于前述第二种可选示例,标识码块独立于数据码块之外,减少对数据码块的占用,避免携带的序号对业务数据的影响。In a third optional example, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame. By setting an identification code block independent of the data code block, the receiving end can quickly extract the sequence number carried by the OTN data frame. Compared with the foregoing first optional example, the receiving end does not need to scan each data code block in the OTN data frame, reducing the overhead of the receiving end; compared with the foregoing second optional example, the identification code block is independent of the data code block. , reduce the occupation of data code blocks, and avoid the impact of the serial number carried on the service data.
在一种可选示例中,标识码块与数据码块的长度相等。如此,可以实现OTN数据帧中各个码块的长度一致,便于接收端进行数据解码,减少计算开销。In an optional example, the length of the identification code block is equal to the length of the data code block. In this way, the lengths of each code block in the OTN data frame can be consistent, which is convenient for the receiving end to perform data decoding and reduces computational overhead.
参考前述S301,对于不同的编码方式,本申请实施例中,接收端在每缓存至少两个接收的OTN数据帧之后,解析缓存的OTN数据帧,得到业务数据。如此,可以实现抗至少1个OTN数据帧丢失。在实际实现时,考虑到一些场景下OTN数据帧可能会出现连续丢失的情况,接收端在解析接收的多个OTN数据帧时,可以先进行OTN数据帧的缓存,再解析缓存的OTN数据帧,得到业务数据。但是,缓存时长过长会引起解析时延增长,影响接收端输出解析得到的业务数据的时延,降低用户体验。因此,对于不同的编码方式,以及不同的用户需求(如对接收端解析时延的需求以及抗OTN数据帧丢失的个数需求),接收端缓存OTN数据帧的个数不同,接收端的解析时延也不同。示例地,若任一OTN数据帧携带的业务数据属于该任一OTN数据帧之前的第L个OTN数据帧携带的业务数据以及该任一OTN数据帧之后的第L个OTN数据帧携带的业务数据的交集,则该光通信系统支持最大抗连续(M-N)/N个数据帧集合的丢失。若接收端支持抗连续i个数据帧集合的丢失,则缓存的OTN数据帧的个数为(i×L+1),解析时延为(i×L+1)个OTN数据帧的传输时延,抗(i×L)个OTN数据帧的通信中断,1≤i≤[(M-N)/N]。本申请实施例以以下几种情况为例进行说明。Referring to the foregoing S301, for different encoding methods, in this embodiment of the present application, the receiving end parses the buffered OTN data frames to obtain service data after buffering at least two received OTN data frames. In this way, resistance to at least one OTN data frame loss can be achieved. In actual implementation, considering that OTN data frames may be continuously lost in some scenarios, when the receiving end parses multiple received OTN data frames, it can cache the OTN data frames first, and then parse the cached OTN data frames. , get business data. However, if the cache time is too long, the parsing delay will increase, affecting the delay of the receiving end outputting the parsed service data, and reducing the user experience. Therefore, for different encoding methods and different user requirements (such as the requirement for the parsing delay of the receiving end and the requirement for the number of anti-OTN data frames lost), the number of OTN data frames buffered by the receiving end is different, and the parsing time of the receiving end is different. Delay is also different. Exemplarily, if the service data carried by any OTN data frame belongs to the service data carried by the Lth OTN data frame before the any OTN data frame and the service carried by the Lth OTN data frame after the any OTN data frame If the intersection of data, the optical communication system supports maximum resistance to loss of consecutive (M-N)/N data frame sets. If the receiving end supports anti-loss of consecutive i data frame sets, the number of buffered OTN data frames is (i×L+1), and the parsing delay is (i×L+1) when transmitting OTN data frames Delay, resist the communication interruption of (i×L) OTN data frames, 1≤i≤[(M-N)/N]. The embodiments of the present application are described by taking the following situations as examples.
在第一种情况下,接收端支持第一种编码方式,参考前述S301,包括任一OTN数据帧的数据码块携带的业务数据均可以从其相邻的前一个OTN数据帧和/或相邻的后一个OTN数据帧的数据码块携带的业务数据中获取。如此,若该任一OTN数据帧在传输过程中丢失,接收端可以从其相邻的前一个OTN数据帧和/或相邻的后一个OTN数据帧的数据码块携带的业务数据中获取该任一OTN数据帧的数据码块携带的业务数据。则对于接收的任一OTN数据帧,由于接收端已获取该任一OTN数据帧之前且与该任一OTN数据帧相邻的OTN数据帧,因此接收端在每缓存两个接收的OTN数据帧(即该任一OTN以及该任一OTN数据帧之后 且与该任一OTN数据帧相邻的OTN数据帧)之后,解析缓存的OTN数据帧,得到业务数据。如此可以实现抗1个OTN数据帧丢失。In the first case, the receiving end supports the first encoding method. Referring to the aforementioned S301, the service data carried by the data code block including any OTN data frame can be obtained from the adjacent previous OTN data frame and/or the corresponding service data. Obtained from the service data carried in the data code block of the adjacent OTN data frame. In this way, if any OTN data frame is lost in the transmission process, the receiving end can obtain the data from the service data carried by the data code block of the adjacent previous OTN data frame and/or the adjacent latter OTN data frame. Service data carried in the data code block of any OTN data frame. Then for any received OTN data frame, since the receiving end has acquired the OTN data frame before and adjacent to the any OTN data frame, the receiving end buffers two received OTN data frames every time. (that is, after the any OTN and the OTN data frame after the any OTN data frame and adjacent to the any OTN data frame), the buffered OTN data frame is parsed to obtain service data. In this way, one OTN data frame loss can be resisted.
其中,当任一OTN数据帧携带的业务数据属于该任一OTN数据帧之前的第1个OTN数据帧携带的业务数据以及该任一OTN数据帧之后的第1个OTN数据帧携带的业务数据的交集时,参考图8,若任意连续的1至3个OTN数据帧丢失,丢失的OTN数据帧携带的业务数据都可以由丢失的OTN数据帧相邻的前一个OTN数据帧和/或后一个OTN数据帧携带的业务数据获取。当该任一OTN数据帧的3个数据码块用于对在该任一OTN数据帧之前的第1个OTN数据帧的业务数据进行冗余传输,且1个数据码块携带的业务数据(即实际业务数据)被任一OTN数据帧之后的第1个OTN数据帧的数据码块冗余传输时,接收端仅需从丢失的OTN数据帧之后的OTN数据帧中获取丢失的OTN数据帧携带的实际业务数据。若接收端需要支持抗连续i个数据帧集合的丢失,则缓存的OTN数据帧的个数为(i×L+1),解析时延为(i×1+1)个OTN数据帧的传输时延,1≤i≤3。例如,若需要抗1个OTN数据帧丢失,则接收端缓存的OTN数据帧的个数为2,解析时延是2个OTN数据帧的传输时延,该解析时延约为289us(微秒),可抗约145us的通信中断;若需要抗连续2个OTN数据帧丢失,则接收端缓存的OTN数据帧的个数为3,解析时延是3个OTN数据帧的传输时延,该解析时延约为434us,可抗约289us的通信中断;若需要抗3个OTN数据帧丢失,则接收端缓存的OTN数据帧的个数为4,解析时延是4个OTN数据帧的传输时延,该解析时延约为578us,可抗约434us的通信中断。Wherein, when the service data carried by any OTN data frame belongs to the service data carried by the first OTN data frame before the any OTN data frame and the service data carried by the first OTN data frame after the any OTN data frame 8, if any continuous 1 to 3 OTN data frames are lost, the service data carried by the lost OTN data frame can be replaced by the previous OTN data frame and/or the next OTN data frame adjacent to the lost OTN data frame. Obtain the service data carried by an OTN data frame. When the 3 data code blocks of the any OTN data frame are used to redundantly transmit the service data of the first OTN data frame before the any OTN data frame, and the service data ( That is, when the actual service data) is redundantly transmitted by the data code block of the first OTN data frame after any OTN data frame, the receiving end only needs to obtain the lost OTN data frame from the OTN data frame after the lost OTN data frame. The actual business data carried. If the receiving end needs to support the loss resistance of i consecutive data frame sets, the number of buffered OTN data frames is (i×L+1), and the parsing delay is (i×1+1) transmission of OTN data frames Delay, 1≤i≤3. For example, if the loss of one OTN data frame needs to be prevented, the number of OTN data frames buffered by the receiver is 2, and the parsing delay is the transmission delay of two OTN data frames, and the parsing delay is about 289us (microseconds). ), can resist communication interruption of about 145us; if it is necessary to resist the loss of 2 consecutive OTN data frames, the number of OTN data frames buffered by the receiving end is 3, and the parsing delay is the transmission delay of 3 OTN data frames. The parsing delay is about 434us, which can resist the communication interruption of about 289us; if it needs to resist the loss of 3 OTN data frames, the number of OTN data frames buffered by the receiving end is 4, and the parsing delay is the transmission of 4 OTN data frames. Delay, the analysis delay is about 578us, which can resist the communication interruption of about 434us.
在第二种情况下,接收端支持第二种编码方式,参考前述S301,包括4个OTN数据帧的任一数据帧集合的数据码块携带的业务数据均可以从其前一个数据帧集合和/或后一个数据帧集合的数据码块携带的业务数据中获取。如此,若该任一数据帧集合在传输过程中丢失,接收端可以从其前一个数据帧集合和/或后一个数据帧集合的数据码块携带的业务数据中获取该任一OTN数据帧的数据码块携带的业务数据。则对于接收的任一OTN数据帧,由于接收端已获取该任一OTN数据帧之前且与该任一OTN数据帧相邻的OTN数据帧集合,因此接收端在每缓存1个数据帧集合加1个OTN数据帧(即该任一OTN以及该任一OTN数据帧之后且与该任一OTN数据帧相邻的OTN数据帧集合)之后,解析缓存的OTN数据帧,得到业务数据。从而实现抗至少4个OTN数据帧丢失。In the second case, the receiving end supports the second encoding method. Referring to the aforementioned S301, the service data carried by the data code block of any data frame set including four OTN data frames can be obtained from the previous data frame set and / or obtained from the service data carried by the data code blocks of the latter data frame set. In this way, if any data frame set is lost in the transmission process, the receiving end can obtain the data of the any OTN data frame from the service data carried by the data code blocks of the previous data frame set and/or the next data frame set. The service data carried by the data code block. Then for any received OTN data frame, since the receiving end has acquired the OTN data frame set before and adjacent to the any OTN data frame, the receiving end adds the data frame set to each buffered data frame. After one OTN data frame (that is, the any OTN and the set of OTN data frames following and adjacent to the any OTN data frame), the buffered OTN data frame is parsed to obtain service data. Thereby, at least 4 OTN data frame losses are realized.
其中,当任一OTN数据帧携带的业务数据属于该任一OTN数据帧之前的第4个OTN数据帧携带的业务数据以及该任一OTN数据帧之后的第4个OTN数据帧携带的业务数据的交集时,参考图9,任意1至3个连续的数据帧集合丢失,丢失的数据帧集合携带的业务数据都可以由丢失的数据帧集合相邻的前一个数据帧集合和/或后一个数据帧集合携带的业务数据获取。当该任一OTN数据帧的3个数据码块用于对在该任一OTN数据帧之前的第4个OTN数据帧的业务数据进行冗余传输,且1个数据码块携带的业务数据(即实际业务数据)被任一OTN数据帧之后的第4个OTN数据帧的数据码块冗余传输时,接收端仅需从丢失的OTN数据帧之后的OTN数据帧中获取丢失的OTN数据帧携带的实际业务数据。若接收端支持抗连续i个数据帧集合的丢失,则接收端缓存的OTN数据帧的个数为(i×4+1),解析时延为(i×4+1)个OTN数据帧的传输时延,1≤i≤3。例如,若需要抗至多1个数据帧集合丢失,则接收端缓存的OTN数据帧的个数为1个数据帧集合加1个OTN数据帧的个数,即5,解析时延是5个OTN数据帧的传输时延,该解析时延约为723us,可抗约578us的通信中断; 若需要抗至多连续2个数据帧集合丢失,则接收端缓存的OTN数据帧的个数为2个数据帧集合加1个OTN数据帧的个数,即9,解析时延是9个OTN数据帧的传输时延,该解析时延约为1301us,可抗约1156us的通信中断;若需要抗3个数据帧集合丢失,则接收端缓存的OTN数据帧的个数为3个数据帧集合加1个OTN数据帧的个数,即13,解析时延是13个OTN数据帧的传输时延,该解析时延约为1879us,可抗约1734us的通信中断。Wherein, when the service data carried by any OTN data frame belongs to the service data carried by the 4th OTN data frame before the any OTN data frame and the service data carried by the 4th OTN data frame after the any OTN data frame 9, any 1 to 3 consecutive data frame sets are lost, and the service data carried by the lost data frame set can be replaced by the previous data frame set and/or the next data frame set adjacent to the lost data frame set. Obtain the service data carried by the data frame set. When the 3 data code blocks of the any OTN data frame are used to redundantly transmit the service data of the 4th OTN data frame before the any OTN data frame, and the service data carried in 1 data code block ( That is, when the actual service data) is redundantly transmitted by the data code block of the fourth OTN data frame after any OTN data frame, the receiving end only needs to obtain the lost OTN data frame from the OTN data frame after the lost OTN data frame. The actual business data carried. If the receiver supports anti-loss of i consecutive data frame sets, the number of OTN data frames buffered by the receiver is (i×4+1), and the parsing delay is (i×4+1) OTN data frames Transmission delay, 1≤i≤3. For example, if it is necessary to resist the loss of at most 1 data frame set, the number of OTN data frames buffered by the receiving end is the number of 1 data frame set plus 1 OTN data frame, that is, 5, and the parsing delay is 5 OTNs The transmission delay of the data frame, the parsing delay is about 723us, which can resist the communication interruption of about 578us; If it is necessary to resist the loss of at most 2 consecutive data frame sets, the number of OTN data frames buffered by the receiver is 2 data The number of frame sets plus 1 OTN data frame, that is, 9, the parsing delay is the transmission delay of 9 OTN data frames, the parsing delay is about 1301us, which can resist communication interruption of about 1156us; if it needs to resist 3 If the data frame set is lost, the number of OTN data frames buffered by the receiver is the number of 3 data frame sets plus 1 OTN data frame, that is, 13. The parsing delay is the transmission delay of 13 OTN data frames. The analysis delay is about 1879us, which can resist the communication interruption of about 1734us.
前述第三种和第四种编码方式和其他编码方式的解析方式可以参考前述第一种和第二种编码方式,其中,接收端解析每个OTN数据帧的过程实际上是将数据码块携带的业务数据提取并排列的过程,该过程也称为解映射过程。接收端解析每个OTN数据帧后,会输出解析的OTN数据帧。For the parsing methods of the aforementioned third and fourth encoding methods and other encoding methods, reference may be made to the aforementioned first and second encoding methods, wherein the process of parsing each OTN data frame by the receiving end is actually to carry The process of extracting and arranging business data, which is also called the demapping process. After the receiving end parses each OTN data frame, it outputs the parsed OTN data frame.
与发送端对应地,接收端可以支持多种编码格式,如前述第一种至第四种编码格式。用户可以根据业务需求选择所需的目标编码格式。在解析接收的多个OTN数据帧,得到业务数据之前,该通信方法还包括:接收端接收设置指令,该设置指令用于在接收端支持的多种编码格式中指定目标编码格式。例如,该目标编码格式可以对应前述缓存2个OTN数据帧、3个OTN数据帧、4个OTN数据帧、5个OTN数据帧、9个OTN数据帧和13个OTN数据帧等中的任一种缓存方式。相应地,接收端基于目标编码格式解析接收的多个OTN数据帧,得到业务数据。在一种可选方式中,该设置指令由人工触发。例如,该多种编码格式可以通过用户界面呈现给用户,由用户在多个编码格式中选择目标编码格式,从而触发该设置指令。在另一种可选方式中,该设置指令由管理设备触发。例如,接收端将支持的多种编码格式发送至管理设备,由管理设备在多种编码格式中选择目标编码格式,并将目标编码格式通过该设置指令下发给接收端。Corresponding to the transmitting end, the receiving end may support multiple encoding formats, such as the foregoing first to fourth encoding formats. Users can select the desired target encoding format according to business requirements. Before parsing the received multiple OTN data frames to obtain service data, the communication method further includes: the receiving end receives a setting instruction, where the setting instruction is used to specify a target encoding format among multiple encoding formats supported by the receiving end. For example, the target encoding format may correspond to any of the aforementioned buffering of 2 OTN data frames, 3 OTN data frames, 4 OTN data frames, 5 OTN data frames, 9 OTN data frames, and 13 OTN data frames, etc. a caching method. Correspondingly, the receiving end parses the received multiple OTN data frames based on the target encoding format to obtain service data. In an optional manner, the setting instruction is manually triggered. For example, the multiple encoding formats may be presented to the user through a user interface, and the user selects a target encoding format among the multiple encoding formats, thereby triggering the setting instruction. In another optional manner, the setting instruction is triggered by the management device. For example, the receiving end sends the supported multiple encoding formats to the management device, the management device selects the target encoding format from the multiple encoding formats, and sends the target encoding format to the receiving end through the setting instruction.
需要说明的是,虽然本申请实施例中数据帧集合中出现冗余数据码块会产生使用一定的带宽资源,但是对于一些需要抗信元级通信中断的场景,牺牲一定的带宽是可以接受的。用户或管理人员可以根据需要在用户界面或者管理设备设置可接受的冗余带宽(如2倍冗余带宽或4倍冗余带宽),发送端和接收端针对在该可接受的冗余带宽范围内进行通信帧结构的编解码。进一步的,用户或管理人员还可以设置M、N和L的数值、通信帧结构中多个OTN数据帧中序号的排列方式和/或指定校验算法等,如此实现通信帧结构的动态可调。It should be noted that although redundant data code blocks appear in the data frame set in the embodiments of the present application, certain bandwidth resources will be used, but for some scenarios that require resistance to cell-level communication interruptions, it is acceptable to sacrifice a certain bandwidth. . Users or administrators can set an acceptable redundant bandwidth (such as 2 times the redundant bandwidth or 4 times the redundant bandwidth) on the user interface or management device according to their needs. The encoding and decoding of the communication frame structure is performed within the frame. Further, users or managers can also set the values of M, N, and L, the arrangement of the sequence numbers in multiple OTN data frames in the communication frame structure, and/or specify the check algorithm, etc., so as to realize the dynamic adjustment of the communication frame structure. .
综上所述,本申请实施例提供的通信方法中,发送端生成的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。To sum up, in the communication method provided by the embodiment of the present application, in the multiple OTN data frames generated by the transmitting end, each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames The service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
图14是本申请实施例提供的一种光通信系统中出现超大SOP时(图14以SOP的旋转速率大于1M Rad/s的情况为超大SOP为例进行说明),SOP的旋转速率随时间变化的关系示意图。例如该示意图可以反映雷暴天气中OPGW的SOP的旋转速率随时间变化的关系。如图14所示,该超大SOP的作用时间小于10ms,并且大于8M Rad/s的SOP持续时间小于1ms,两次超大SOP情况出现的时间间隔范围在15~100ms。Fig. 14 shows that when a super-large SOP occurs in an optical communication system provided by an embodiment of the present application (Fig. 14 is described by taking the case where the rotation rate of the SOP is greater than 1M Rad/s as an example of a super-large SOP), the rotation rate of the SOP varies with time Schematic diagram of the relationship. For example, the schematic diagram can reflect the time-dependent relationship of the rotation rate of the SOP of the OPGW in thunderstorm weather. As shown in Figure 14, the action time of the super-large SOP is less than 10ms, and the duration of the SOP greater than 8M Rad/s is less than 1ms, and the time interval between two super-large SOPs is in the range of 15-100ms.
传统的光通信系统,如100G相干系统,可以抗小于或等于8M rad/s的SOP的旋转速率所导致的通信中断,而无法抗SOP的旋转速率大于8M rad/s的信元级的通信中断,该信元级 的通信中断为毫秒级的通信中断,如图9所示,为小于1ms的通信中断。Traditional optical communication systems, such as 100G coherent systems, can resist the communication interruption caused by the rotation rate of the SOP less than or equal to 8M rad/s, but cannot resist the communication interruption of the cell level with the rotation rate of the SOP greater than 8M rad/s , the communication interruption at the cell level is a communication interruption of the millisecond level, as shown in FIG. 9 , it is a communication interruption of less than 1 ms.
本申请实施例中,参考前述第一种编码方式和第二种编码方式,可以抗1个、2个、3个、至多4个、至多8个或至多12个OTN数据帧的信元丢失。由于可以抗信元级以及毫秒级的通信中断,如此在SOP的旋转速率大于8M rad/s的极端情况下,虽然出现OTN数据帧丢失,仍然可以通过丢失的OTN数据帧之前和/或之后的数据帧集合获取丢失的OTN数据帧所携带的数据,保证光通信系统的正常通信。本申请实施例提供的通信方法可以应用于传统的光通信系统中(例如最大抗8M rad/s的SOP的旋转速率的光通信系统),与传统的光通信系统向下兼容,也可以单独部署应用在一些光通信系统中,本申请实施例对此不做限定。In the embodiment of the present application, referring to the aforementioned first coding mode and second coding mode, it can resist the loss of 1, 2, 3, at most 4, at most 8 or at most 12 OTN data frames of cells. Due to the ability to resist cell-level and millisecond-level communication interruptions, in the extreme case where the rotation rate of the SOP is greater than 8M rad/s, although the OTN data frame is lost, it is still possible to pass the lost OTN data frame. The data frame set acquires the data carried by the lost OTN data frame, so as to ensure the normal communication of the optical communication system. The communication method provided by the embodiments of the present application can be applied to a traditional optical communication system (for example, an optical communication system with a maximum rotation rate of 8M rad/s SOP), is backward compatible with the traditional optical communication system, and can also be deployed separately It is applied in some optical communication systems, which is not limited in this embodiment of the present application.
本申请实施例提供的通信方法可以支持电力继电保护(也称继保)等高可靠的业务在100G相干系统上的承载,提高了100G相干系统在电力输变电系统的通用性。并且电力继电保护等高可靠业务带宽通常很小(例如带宽为2M),虽然该通信方法增加了冗余带宽,但不影响业务的承载。并且,本申请实施例提供的通信方法还可以应用于出现其他的信元级和/或毫秒级通信中断的业务场景,本申请实施例对该业务场景不做限定。The communication methods provided by the embodiments of the present application can support the bearing of highly reliable services such as power relay protection (also called relay protection) on the 100G coherent system, and improve the versatility of the 100G coherent system in the power transmission and transformation system. In addition, the bandwidth of highly reliable services such as power relay protection is usually small (for example, the bandwidth is 2M). Although this communication method increases the redundant bandwidth, it does not affect the bearing of services. In addition, the communication method provided by the embodiment of the present application may also be applied to other service scenarios where communication at the cell level and/or millisecond level is interrupted, which is not limited in the embodiment of the present application.
需要说明的是,本申请实施例提供的通信方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,例如前述S304和S305可以不执行,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。It should be noted that the sequence of steps of the communication method provided by the embodiments of the present application can be appropriately adjusted, and the steps can also be increased or decreased according to the situation. For example, the aforementioned S304 and S305 may not be executed. Within the technical scope disclosed in the present application, any easily conceivable changes should be included within the protection scope of the present application, and thus will not be repeated here.
图15是本申请实施例提供的一种通信装置40的结构示意图。如图15所示,该通信装置40包括:处理电路401及通信接口402。该处理电路用于本申请前述实施例中发送端所执行的通信方法。该处理电路402可以为处理芯片或现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)。该处理芯片可以为集成电路(Application Specific Integrated Circuit,ASIC)芯片;该通信接口402用于供处理电路401与其他装置进行通信,例如,该通信接口402用于供处理电路401与发送端光模块进行通信。该通信接口402包括输入接口和输出接口。通信接口402可以是以下器件的任一种或任一种组合:网络接口(例如以太网接口)、无线网卡等具有网络接入功能的器件。FIG. 15 is a schematic structural diagram of a communication apparatus 40 provided by an embodiment of the present application. As shown in FIG. 15 , the communication device 40 includes: a processing circuit 401 and a communication interface 402 . The processing circuit is used in the communication method performed by the transmitter in the foregoing embodiments of the present application. The processing circuit 402 may be a processing chip or a field programmable gate array (Field Programmable Gate Array, FPGA). The processing chip can be an integrated circuit (Application Specific Integrated Circuit, ASIC) chip; the communication interface 402 is used for the processing circuit 401 to communicate with other devices, for example, the communication interface 402 is used for the processing circuit 401 to communicate with the transmitting end optical module to communicate. The communication interface 402 includes an input interface and an output interface. The communication interface 402 can be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
在一种可选实现方式中,该处理电路402包括缓存结构,如FPGA或ASIC芯片内部的存储结构,用于缓存OTN数据帧。在另一种可选实现方式中,该通信装置40还可以包括:存储器,用于缓存OTN数据帧。例如,该存储器为快闪存储器(flash memory)。In an optional implementation manner, the processing circuit 402 includes a cache structure, such as a storage structure inside an FPGA or ASIC chip, for caching the OTN data frame. In another optional implementation manner, the communication apparatus 40 may further include: a memory for buffering the OTN data frame. For example, the memory is flash memory.
综上所述,本申请实施例提供的通信装置中,处理电路生成的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。To sum up, in the communication device provided by the embodiment of the present application, among the multiple OTN data frames generated by the processing circuit, each OTN data frame includes M data code blocks of equal length, and any of the multiple OTN data frames The service data carried by the data code blocks of a data frame set belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
图16是本申请实施例提供的一种通信装置50的结构示意图,如图16所示,该通信装置50包括:处理电路501及通信接口502。该处理电路用于本申请前述实施例中接收端所执行的通信方法。该处理电路502可以为处理芯片或FPGA,该处理芯片可以为ASIC芯片;该通信接口502用于供处理电路501与其他装置进行通信,例如,该通信接口502用于供处理电路501与接收端光模块进行通信。该通信接口502包括输入接口和输出接口。通信接口502 可以是以下器件的任一种或任一种组合:网络接口(例如以太网接口)、无线网卡等具有网络接入功能的器件。FIG. 16 is a schematic structural diagram of a communication device 50 provided by an embodiment of the present application. As shown in FIG. 16 , the communication device 50 includes a processing circuit 501 and a communication interface 502 . The processing circuit is used in the communication method performed by the receiving end in the foregoing embodiments of the present application. The processing circuit 502 can be a processing chip or an FPGA, and the processing chip can be an ASIC chip; the communication interface 502 is used for the processing circuit 501 to communicate with other devices, for example, the communication interface 502 is used for the processing circuit 501 to communicate with the receiving end optical module for communication. The communication interface 502 includes an input interface and an output interface. The communication interface 502 may be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
在一种可选实现方式中,该处理电路502包括缓存结构,如FPGA或ASIC芯片内部的存储结构,用于缓存OTN数据帧。在另一种可选实现方式中,该通信装置50还可以包括:存储器,用于缓存OTN数据帧。例如,该存储器为快闪存储器。In an optional implementation manner, the processing circuit 502 includes a cache structure, such as a storage structure inside an FPGA or ASIC chip, for caching the OTN data frame. In another optional implementation manner, the communication apparatus 50 may further include: a memory for buffering the OTN data frame. For example, the memory is flash memory.
综上所述,本申请实施例提供的通信装置中,处理电路通过通信接口接收的多个OTN数据帧中,每个OTN数据帧包括长度相等的M个数据码块,并且该多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集。如此任一数据帧集合丢失,其携带的业务数据均可以从其相邻的前一个数据帧集合和/或后一个数据帧集合的数据码块中获取,实现抗至少一个数据帧集合的丢失,从而抗通信过程中信元级损伤。To sum up, in the communication device provided by the embodiment of the present application, in the multiple OTN data frames received by the processing circuit through the communication interface, each OTN data frame includes M data code blocks of equal length, and the multiple OTN data The service data carried by the data code blocks of any data frame set in the frame belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set. If any data frame set is lost in this way, the business data carried by it can be obtained from the data code blocks of its adjacent previous data frame set and/or the next data frame set, so as to resist the loss of at least one data frame set, Therefore, it can resist cell-level damage in the communication process.
图17是本申请实施例提供的一种通信装置60的结构示意图,如图17所示,该通信装置应用于发送端,该装置包括:生成模块601,用于生成多个光传送网OTN数据帧。多个OTN数据帧中每个OTN数据帧包括长度相等的M个数据码块。数据码块用于携带业务数据。多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与该任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1;发送模块602,用于依次发送多个OTN数据帧。FIG. 17 is a schematic structural diagram of a communication apparatus 60 provided by an embodiment of the present application. As shown in FIG. 17 , the communication apparatus is applied to a sending end, and the apparatus includes: a generating module 601 for generating a plurality of optical transport network OTN data frame. Each of the multiple OTN data frames includes M data code blocks of equal length. Data code blocks are used to carry service data. The service data carried by the data code blocks of any data frame set in the multiple OTN data frames belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set. The set consists of L consecutive OTN data frames, M≥2, L≥1; the sending module 602 is used for sending multiple OTN data frames in sequence.
其中,每相邻2个数据帧集合的数据码块存在(M-N)×L对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在N×L对数据码块携带的业务数据不同,N为小于M的正整数。Among them, there are (M-N)×L pairs of data code blocks in the data code blocks of every two adjacent data frame sets that carry the same service data, and there are N×L pairs of data code blocks in the data code blocks of every two adjacent data frame sets. The carried service data is different, and N is a positive integer smaller than M.
在一种可选示例中,在同一OTN数据帧中,M个数据码块中携带的业务数据互不相同。In an optional example, in the same OTN data frame, the service data carried in the M data code blocks are different from each other.
可选地,该装置60还包括:接收模块,用于在生成多个光通道业务单元OTN数据帧之前,接收设置指令,该设置指令用于在发送端支持的多种编码格式中指定目标编码格式;前述生成模块601,用于:基于目标编码格式生成多个OTN数据帧。Optionally, the device 60 also includes: a receiving module for receiving a setting instruction before generating a plurality of optical channel service unit OTN data frames, the setting instruction is used to specify the target encoding in the multiple encoding formats supported by the transmitting end. format; the aforementioned generating module 601 is configured to: generate multiple OTN data frames based on the target coding format.
在一种可选示例中,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号。In an optional example, each data code block has a sequence number, data code blocks with the same sequence number carry the same service data, data code blocks with different sequence numbers carry different service data, and each OTN data frame carries OTN The sequence number of the data code block of the data frame.
示例地,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号。Exemplarily, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame.
其中,同一OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈等差数列排列;和/或,多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列。Wherein, the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an equal difference sequence according to the transmission timing sequence; and/or, the data code blocks located at the same transmission position in the multiple OTN data frames have The serial numbers are arranged in an increasing arithmetic sequence according to the sending sequence from first to last.
可选的,M=4;L=1,或者,L=4。Optionally, M=4; L=1, or L=4.
图18是本申请实施例提供的一种通信装置70的结构示意图。如图18所示,该通信装置应用于接收端。装置70包括:接收模块701,用于接收多个光传送网OTN数据帧。多个OTN数据帧中每个OTN数据帧包括长度相等的M个数据码块,数据码块用于携带业务数据,多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,该任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1;解析模块702,用于解析接收的多个OTN数据帧,得到业务 数据。FIG. 18 is a schematic structural diagram of a communication apparatus 70 provided by an embodiment of the present application. As shown in FIG. 18, the communication device is applied to the receiving end. The apparatus 70 includes: a receiving module 701, configured to receive multiple optical transport network OTN data frames. Each OTN data frame in the multiple OTN data frames includes M data code blocks of equal length, and the data code blocks are used to carry service data. The service data carried by the data code blocks of any data frame set in the multiple OTN data frames belong to The union of service data carried by the data code blocks of the two adjacent data frame sets adjacent to any data frame set, where any data frame set consists of L consecutive OTN data frames, M≥2, L≥1 ; The parsing module 702 is used for parsing the received multiple OTN data frames to obtain service data.
其中,解析模块702,用于:将接收的多个OTN数据帧中携带相同业务数据的不同数据码块进行去重处理;解析去重处理后的数据码块,得到业务数据。The parsing module 702 is configured to: perform deduplication processing on different data code blocks carrying the same service data in the received multiple OTN data frames; and parse the deduplicated data code blocks to obtain service data.
可选地,装置70还包括:指令接收模块,用于在解析接收的多个OTN数据帧,得到业务数据之前,接收设置指令,设置指令用于在接收端支持的多种编码格式中指定目标编码格式;前述解析模块702用于:基于目标编码格式解析接收的多个OTN数据帧,得到业务数据。Optionally, the device 70 further includes: an instruction receiving module, configured to receive a setting instruction before parsing the received multiple OTN data frames and obtaining the service data, and the setting instruction is used to specify the target in the multiple encoding formats supported by the receiving end. Encoding format; the aforementioned parsing module 702 is used for: parsing the received multiple OTN data frames based on the target encoding format to obtain service data.
在一种可选示例中,解析模块702用于:在每缓存至少两个接收的OTN数据帧之后,解析缓存的OTN数据帧,得到业务数据。In an optional example, the parsing module 702 is configured to: after each buffering at least two received OTN data frames, parse the buffered OTN data frames to obtain service data.
在一种可选示例中,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,每个OTN数据帧携带OTN数据帧的数据码块所具有的序号;装置70还包括:确定模块,用于基于不同OTN数据帧携带的序号确定不同OTN数据帧中数据码块携带的业务数据是否相同。In an optional example, each data code block has a sequence number, data code blocks with the same sequence number carry the same service data, data code blocks with different sequence numbers carry different service data, and each OTN data frame carries OTN The serial number of the data code block of the data frame; the apparatus 70 further includes: a determination module for determining whether the service data carried by the data code block in different OTN data frames is the same based on the serial numbers carried by different OTN data frames.
可选地,每个OTN数据帧还包括标识码块,每个OTN数据帧中的标识码块包括OTN数据帧的数据码块所具有的序号;装置70还包括:读取模块,用于从每个OTN数据帧的标识码块中读取序号。Optionally, each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes the sequence number of the data code block of the OTN data frame; the device 70 further includes: a reading module for reading from The sequence number is read in the identification code block of each OTN data frame.
本申请实施例提供一种光通信系统,该光通信系统包括发送端和接收端,该发送端包括图15所示的通信装置40,该接收端包括图16所示的通信装置50。或者,该发送端包括图17所示的通信装置60,该接收端包括图18所示的通信装置80。可选地,该光通信系统还包括发送端光模块和接收端光模块,该光通信系统的结构可以参考图1和图2。An embodiment of the present application provides an optical communication system, where the optical communication system includes a transmitter and a receiver, the transmitter includes the communication device 40 shown in FIG. 15 , and the receiver includes the communication device 50 shown in FIG. 16 . Alternatively, the sending end includes the communication device 60 shown in FIG. 17 , and the receiving end includes the communication device 80 shown in FIG. 18 . Optionally, the optical communication system further includes a transmitting end optical module and a receiving end optical module, and the structure of the optical communication system may refer to FIG. 1 and FIG. 2 .
在本申请中,术语“第一”、“第二”和“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”表示1个或多个,术语“多个”指两个或两个以上,除非另有明确的限定。A参考B,指的是A与B相同或者A为B的简单变形。In this application, the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "at least one" refers to one or more, and the term "plurality" refers to two or more, unless expressly limited otherwise. A refers to B, which means that A is the same as B or A is a simple variation of B.
需要说明的是:上述实施例提供的通信装置在执行该通信方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的通信装置与通信方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the communication device provided in the above-mentioned embodiment executes the communication method, only the division of the above-mentioned functional modules is used as an example for illustration. That is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the communication apparatus and the communication method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be accomplished by hardware, or can be accomplished by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, the The storage medium can be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (17)

  1. 一种通信方法,其特征在于,应用于发送端,所述方法包括:A communication method, characterized in that it is applied to a sending end, the method comprising:
    生成多个光传送网OTN数据帧,所述多个OTN数据帧中每个OTN数据帧包括长度相等的M个数据码块,所述数据码块用于携带业务数据,所述多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与所述任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,所述任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1;generating multiple optical transport network OTN data frames, where each OTN data frame in the multiple OTN data frames includes M data code blocks of equal length, the data code blocks are used to carry service data, the multiple OTN data frames The service data carried by the data code blocks of any data frame set in the frame belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set, and the any data frame set The frame set consists of L consecutive OTN data frames, M≥2, L≥1;
    依次发送所述多个OTN数据帧。The multiple OTN data frames are sent in sequence.
  2. 根据权利要求1所述的方法,其特征在于,每相邻2个数据帧集合的(M-N)×L对数据码块携带的业务数据相同,每相邻2个数据帧集合的数据码块存在N×L对数据码块携带的业务数据不同,N为小于M的正整数。The method according to claim 1, wherein the service data carried by (M-N)×L pairs of data code blocks in every two adjacent data frame sets is the same, and the data code blocks in every two adjacent data frame sets exist N×L pairs of data code blocks carry different service data, and N is a positive integer smaller than M.
  3. 根据权利要求2所述的方法,其特征在于,在同一所述OTN数据帧中,M个数据码块中携带的业务数据互不相同。The method according to claim 2, wherein, in the same OTN data frame, the service data carried in the M data code blocks are different from each other.
  4. 根据权利要求1至3任一所述的方法,其特征在于,在所述生成多个OTN数据帧之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein, before the generating of multiple OTN data frames, the method further comprises:
    接收设置指令,所述设置指令用于在发送端支持的多种编码格式中指定目标编码格式;Receive a setting instruction, the setting instruction is used to specify the target encoding format in the multiple encoding formats supported by the sender;
    所述生成多个光通道业务单元OTN数据帧,包括:The generating of multiple optical channel service unit OTN data frames includes:
    基于所述目标编码格式生成多个OTN数据帧。A plurality of OTN data frames are generated based on the target encoding format.
  5. 根据权利要求1至4任一所述的方法,其特征在于,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,所述每个OTN数据帧携带所述OTN数据帧的数据码块所具有的序号。The method according to any one of claims 1 to 4, wherein each data code block has a sequence number, the data code blocks with the same sequence number carry the same service data, and the data code blocks with different sequence numbers carry different services data, each OTN data frame carries the sequence number of the data code block of the OTN data frame.
  6. 根据权利要求5所述的方法,其特征在于,所述每个OTN数据帧还包括标识码块,所述每个OTN数据帧中的所述标识码块包括所述OTN数据帧的数据码块所具有的序号。The method according to claim 5, wherein each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes a data code block of the OTN data frame the serial number it has.
  7. 根据权利要求5或6所述的方法,其特征在于,同一所述OTN数据帧包括的M个数据码块具有的序号按照发送时序由先到后的顺序呈等差数列排列;和/或,所述多个OTN数据帧中位于同一发送位置的数据码块具有的序号按照发送时序由先到后的顺序呈递增等差数列排列。The method according to claim 5 or 6, wherein the sequence numbers of the M data code blocks included in the same OTN data frame are arranged in an arithmetic sequence according to the sending timing sequence from first to last; and/or, The sequence numbers of the data code blocks located at the same transmission position in the multiple OTN data frames are arranged in an ascending arithmetic sequence according to the transmission timing sequence from first to last.
  8. 根据权利要求1至7任一所述的方法,其特征在于,M=4;L=1,或者,L=4。The method according to any one of claims 1 to 7, wherein M=4; L=1, or L=4.
  9. 一种通信方法,其特征在于,应用于接收端,所述方法包括:A communication method, characterized in that it is applied to a receiving end, the method comprising:
    接收多个光传送网OTN数据帧,所述多个OTN数据帧中每个OTN数据帧包括长度相等的M个数据码块,所述数据码块用于携带业务数据,所述多个OTN数据帧中任一数据帧集合的数据码块携带的业务数据属于与所述任一数据帧集合相邻的前后两个数据帧集合的数据码块携带的业务数据的并集,所述任一数据帧集合由连续的L个OTN数据帧组成,M≥2,L≥1;Receive multiple optical transport network OTN data frames, each OTN data frame in the multiple OTN data frames includes M data code blocks of equal length, the data code blocks are used to carry service data, the multiple OTN data frames The service data carried by the data code blocks of any data frame set in the frame belongs to the union of the service data carried by the data code blocks of the two data frame sets adjacent to the any data frame set, and the any data frame set The frame set consists of L consecutive OTN data frames, M≥2, L≥1;
    解析接收的所述多个OTN数据帧,得到业务数据。Parse the received multiple OTN data frames to obtain service data.
  10. 根据权利要求9所述的方法,其特征在于,所述解析接收的所述多个OTN数据帧,得到业务数据,包括:The method according to claim 9, wherein the analyzing the received multiple OTN data frames to obtain service data comprises:
    将接收的所述多个OTN数据帧中携带相同业务数据的不同数据码块进行去重处理;Perform deduplication processing on different data code blocks that carry the same service data in the received multiple OTN data frames;
    解析去重处理后的数据码块,得到业务数据。The deduplicated data code block is parsed to obtain service data.
  11. 根据权利要求9或10所述的方法,其特征在于,在所述解析接收的所述多个OTN数据帧,得到业务数据之前,所述方法还包括:接收设置指令,所述设置指令用于在接收端支持的多种编码格式中指定目标编码格式;The method according to claim 9 or 10, wherein, before the analysis of the plurality of received OTN data frames to obtain the service data, the method further comprises: receiving a setting instruction, the setting instruction being used for Specify the target encoding format among the multiple encoding formats supported by the receiver;
    所述解析接收的所述多个OTN数据帧,得到业务数据,包括:The described multiple OTN data frames received are analyzed to obtain service data, including:
    基于所述目标编码格式解析接收的所述多个OTN数据帧,得到业务数据。Parse the received multiple OTN data frames based on the target encoding format to obtain service data.
  12. 根据权利要求9至11任一所述的方法,其特征在于,所述解析接收的所述多个OTN数据帧,得到业务数据,包括:The method according to any one of claims 9 to 11, wherein the analyzing the plurality of received OTN data frames to obtain service data comprises:
    在每缓存至少两个接收的OTN数据帧之后,解析缓存的OTN数据帧,得到业务数据。After each buffering of at least two received OTN data frames, the buffered OTN data frames are parsed to obtain service data.
  13. 根据权利要求9至12任一所述的方法,其特征在于,每个数据码块具有一个序号,具有相同序号的数据码块携带相同的业务数据,具有不同序号的数据码块携带不同的业务数据,所述每个OTN数据帧携带所述OTN数据帧的数据码块所具有的序号;The method according to any one of claims 9 to 12, wherein each data code block has a sequence number, the data code blocks with the same sequence number carry the same service data, and the data code blocks with different sequence numbers carry different services Data, each OTN data frame carries the sequence number that the data code block of the OTN data frame has;
    所述方法还包括:基于不同OTN数据帧携带的序号确定不同OTN数据帧中数据码块携带的业务数据是否相同。The method further includes: determining whether service data carried by data code blocks in different OTN data frames is the same based on sequence numbers carried in different OTN data frames.
  14. 根据权利要求13所述的方法,其特征在于,所述每个OTN数据帧还包括标识码块,所述每个OTN数据帧中的所述标识码块包括所述OTN数据帧的数据码块所具有的序号;The method according to claim 13, wherein each OTN data frame further includes an identification code block, and the identification code block in each OTN data frame includes a data code block of the OTN data frame the serial number it has;
    所述方法还包括:从所述每个OTN数据帧的标识码块中读取序号。The method further includes: reading the sequence number from the identification code block of each OTN data frame.
  15. 一种通信装置,其特征在于,所述通信装置包括:A communication device, characterized in that the communication device comprises:
    处理电路及通信接口,所述处理电路用于执行权利要求1至8任一所述的通信方法;a processing circuit and a communication interface, the processing circuit is used to execute the communication method according to any one of claims 1 to 8;
    所述通信接口用于供所述处理电路与其他装置进行通信。The communication interface is used for the processing circuit to communicate with other devices.
  16. 一种通信装置,其特征在于,所述通信装置包括:A communication device, characterized in that the communication device comprises:
    处理电路及通信接口,所述处理电路用于执行权利要求9至14任一所述的通信方法;a processing circuit and a communication interface, the processing circuit is used to execute the communication method according to any one of claims 9 to 14;
    所述通信接口用于供所述处理电路与其他装置进行通信。The communication interface is used for the processing circuit to communicate with other devices.
  17. 一种光通信系统,其特征在于,所述光通信系统包括发送端和接收端,所述发送端包括权利要求15所述的通信装置,所述接收端包括权利要求16所述的通信装置。An optical communication system, characterized in that the optical communication system includes a transmitter and a receiver, the transmitter includes the communication device of claim 15 , and the receiver includes the communication device of claim 16 .
PCT/CN2021/121969 2020-10-15 2021-09-29 Communication method, apparatus, and system WO2022078225A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011105786.5 2020-10-15
CN202011105786.5A CN114374469A (en) 2020-10-15 2020-10-15 Communication method, device and system

Publications (1)

Publication Number Publication Date
WO2022078225A1 true WO2022078225A1 (en) 2022-04-21

Family

ID=81138573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121969 WO2022078225A1 (en) 2020-10-15 2021-09-29 Communication method, apparatus, and system

Country Status (2)

Country Link
CN (1) CN114374469A (en)
WO (1) WO2022078225A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190305854A1 (en) * 2018-03-29 2019-10-03 Cable Television Laboratories, Inc Systems and methods for coherent optics in an access network
CN110798415A (en) * 2018-08-03 2020-02-14 中兴通讯股份有限公司 Service transmission method, equipment and computer storage medium
CN111262647A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Data transmission method and device
CN111490845A (en) * 2019-01-28 2020-08-04 中兴通讯股份有限公司 Method, device and system for transmitting customer service
CN111713117A (en) * 2018-02-09 2020-09-25 华为技术有限公司 Method and device for processing service data in optical transport network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111713117A (en) * 2018-02-09 2020-09-25 华为技术有限公司 Method and device for processing service data in optical transport network
US20190305854A1 (en) * 2018-03-29 2019-10-03 Cable Television Laboratories, Inc Systems and methods for coherent optics in an access network
CN110798415A (en) * 2018-08-03 2020-02-14 中兴通讯股份有限公司 Service transmission method, equipment and computer storage medium
CN111262647A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Data transmission method and device
CN111490845A (en) * 2019-01-28 2020-08-04 中兴通讯股份有限公司 Method, device and system for transmitting customer service

Also Published As

Publication number Publication date
CN114374469A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US9866497B2 (en) Lossless adjustment method of ODUflex channel bandwidth and ODUflex channel
CN109600188B (en) Data transmission method, transmission equipment and transmission system
US20220416895A1 (en) Data transmission method and apparatus, terminal device and storage medium
CN108809901B (en) Method, equipment and system for carrying service
US9300403B2 (en) Signal transmission processing method and apparatus and distributed base station
US20170093498A1 (en) Method and apparatus for transmitting and receiving client signal in optical transport network
US10164728B2 (en) Method and apparatus for generic mapping procedure GMP and method and apparatus for generic mapping procedure GMP demapping
US9071376B2 (en) Bandwidth adjusting method and communication node
US20070104485A1 (en) Device and method for transmitting data traffic in optical transport network
EP2999152A1 (en) Data processing method and related device for fec coding and decoding
EP3266131B1 (en) Encapsulating digital communications signals for transmission on an optical link
EP2999170B1 (en) Increasing method and decreasing method for variable optical channel bandwidth and device
CN112042163A (en) Method and device for transmitting data
US10575074B2 (en) Fault detection method and device
US9203603B2 (en) Communication system, frame synchronization detection apparatus, and frame synchronization detection method
CN114666681B (en) Stateful in-band network telemetry method and system
CN110460410B (en) Data transmission method, device, equipment and storage medium based on network management channel
WO2022078225A1 (en) Communication method, apparatus, and system
CN113078980A (en) Data transmission method and device
CN112291030A (en) Data receiving method, data sending method and device
EP4221009A1 (en) Data frame check method, receiving device, and transmitting device
CN102916910B (en) Synchronous multiplexing method on basis of asynchronous system
WO2012155781A1 (en) Optical transport network based data processing method and system
WO2024002084A1 (en) Method for verifying data frame, and related device
CN113411689B (en) Data frame transmission method and related equipment

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: 21879271

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879271

Country of ref document: EP

Kind code of ref document: A1