[go: up one dir, main page]

WO2013181826A1 - Method and device for transmitting and receiving otn overhead - Google Patents

Method and device for transmitting and receiving otn overhead Download PDF

Info

Publication number
WO2013181826A1
WO2013181826A1 PCT/CN2012/076590 CN2012076590W WO2013181826A1 WO 2013181826 A1 WO2013181826 A1 WO 2013181826A1 CN 2012076590 W CN2012076590 W CN 2012076590W WO 2013181826 A1 WO2013181826 A1 WO 2013181826A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
data
control module
channel
physical layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2012/076590
Other languages
French (fr)
Chinese (zh)
Inventor
孙涛
常天海
阎君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201280000840.7A priority Critical patent/CN102835127B/en
Priority to PCT/CN2012/076590 priority patent/WO2013181826A1/en
Publication of WO2013181826A1 publication Critical patent/WO2013181826A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]

Definitions

  • the present invention relates to the field of optical communication technologies, and in particular, to an optical transmission network (Optical).
  • Optical optical transmission network
  • GCC General Communication Channel
  • APS Automatic Protection Switching
  • the embodiments of the present invention provide a method and a device for transmitting and receiving an OTN overhead, which are used to improve the efficiency of the physical layer channel of the OTN overhead and implement dynamic allocation of the physical layer channel, and can extend the type of the data packet.
  • the embodiment of the present invention provides a method for sending an OTN overhead, including: performing physical layer encapsulation on a data packet to be transmitted, and adding a type field in the physical layer encapsulation, so that the physical layer channel of the OTN overhead can be time-divided. Reusing different types of data packets, the type field being used to indicate the type of the data message to be transmitted;
  • the data packet encapsulated by the physical layer is sent in the physical layer channel of the OTN overhead.
  • an embodiment of the present invention provides a method for receiving an OTN overhead, including: The physical layer encapsulated data packet transmitted in the physical layer channel of the OTN overhead, the data packet encapsulated by the physical layer includes a type field, and the physical layer channel can time-division and multiplex different types of data packets.
  • the type field is used to indicate the type of the data packet; and the data packet is received and processed according to the type field.
  • an embodiment of the present invention provides a sending apparatus, including:
  • the physical layer encapsulation module is configured to perform physical layer encapsulation on the data packet to be transmitted, and add a type field in the physical layer encapsulation, so that different types of data packets can be time-division multiplexed in the physical layer channel of the OTN overhead, the type a field is used to indicate the type of the data message to be transmitted;
  • an embodiment of the present invention provides a receiving apparatus, including:
  • the OTN cost module is configured to receive the physical layer encapsulated data packet transmitted in the physical layer channel of the OTN overhead, where the data packet encapsulated by the physical layer includes a type field, and the physical layer channel can be time division multiplexed Different types of data packets, the type field is used to indicate the type of the data packet;
  • the physical layer decapsulation module is configured to receive and process the data packet according to the type field.
  • the embodiment of the present invention performs physical layer encapsulation on the data packet to be transmitted, and the data packet encapsulated by the physical layer is transmitted in the physical layer channel, instead of limiting the physical layer channel to a certain transmission.
  • Data packets so that different types of data packets can be time-multiplexed with the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate physical layer channels.
  • By encapsulating the packet type Extend the type of data message.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for transmitting an OTN overhead according to the present invention
  • FIG. 2 is a schematic structural diagram of a system for transmitting an OTN overhead according to the present invention
  • FIG. 3 is a schematic diagram of a format of a protocol packet encapsulated by a physical layer in the present invention
  • FIG. 4 is a schematic diagram of a format of a static packet after being encapsulated by a physical layer according to the present invention
  • FIG. 5 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention
  • FIG. 6 is a schematic diagram of a format of a static packet according to the present invention
  • FIG. 7 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention
  • FIG. 8 is a schematic flowchart of a method for receiving an OTN overhead according to another embodiment of the present invention
  • 10 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention
  • FIG. 11 is a schematic structural diagram of an embodiment of a transmitting apparatus according to the present invention.
  • FIG. 12 is a schematic structural diagram of another embodiment of a transmitting apparatus according to the present invention.
  • FIG. 13 is a schematic structural diagram of an embodiment of a receiving apparatus according to the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a schematic flowchart of an OTN overhead sending method according to an embodiment of the present invention, including: Step 11: Perform physical layer encapsulation on a data packet to be transmitted, and add a type field in the physical layer encapsulation, so that the OTN overhead physical layer channel Different types of data messages can be time-division multiplexed, and the type field is used to indicate the type of the data message to be transmitted.
  • the data packets to be transmitted can be divided into static packets and protocol packets.
  • the static packets refer to the fixed-content packets sent periodically.
  • the protocol packets refer to the running of a complex protocol. Text.
  • the static packets can be classified into two types: fast (fast) static packets and slow (slow) static packets.
  • Fast static packets are shorter in duration and shorter in length than slow static packets.
  • each static message can also be divided into a plurality of smaller types.
  • the ten-year-old texts can include new delayed time measure (ndtm), ten-party discussion, 1588, and general communication channel (GCC) protocol messages.
  • the data packet to be transmitted may include a fast static packet (fastjype), a slow static packet (slow_type), an ndtm protocol packet, a 1588 protocol packet, a GCC protocol packet, and n types of reservations.
  • Type of data message can be further classified into i types of messages.
  • Slow static messages can be further classified into k types of messages.
  • Each type of static message can be identified by type identifier (id), length (L), and data ( D) Composition.
  • n, i, and k are all positive integers.
  • the data packet to be transmitted is directly inserted into the fixed physical layer channel of the OTN overhead.
  • the GCC protocol packet to be transmitted is directly inserted into the GCC channel of the OTN overhead. Transfer in.
  • a certain type of data packet is not transmitted in the OTN overhead, but a plurality of types of data may be transmitted in a time division multiplexing manner.
  • the GCC protocol packet can be transmitted in the first time period, and the 1588 protocol packet is transmitted in the second time period, and the static packet is transmitted in the third time period.
  • the type of the data packet can be identified at the same time as the data packet is transmitted.
  • the physical layer encapsulation mode is adopted, and the type corresponding to the data packet is added in the physical layer encapsulation.
  • the HDLC encapsulation is taken as an example.
  • the packet format of the physical layer encapsulation of the protocol packet includes an HDLC frame header (7E), a type field (mux_type), and a complex protocol part as a payload. (that is, the protocol message to be transmitted), the CRC check bit, and the HDLC end of the frame, where the CRC check bit can be divided into a CRC check high bit (crch) and a CRC check low bit (crcl).
  • the physical packet encapsulation format of the static packet includes an HDLC frame header (7E), a type field (mux_type), and a static packet portion as a payload (specifically, multiple subtype data may be used.
  • each seed type data can be represented by a type-length-value, a CRC check bit, and an HDLC frame tail, wherein the CRC check bit can be divided into a CRC check high bit (crch) and a CRC check low bit (crcl).
  • the type field ( muxjype ) is used to indicate the type of the data message. For example, for fast static messages, the mux_type can be set. Set to 01. For slow static messages, set the mux_type to 02. For GCC protocol messages, set the mux-type to 03.
  • the physical layer encapsulation mode of FIG. 3 or FIG. 4 is exemplified by the HDLC encapsulation.
  • an Ethernet encapsulation (FE, GE, 10GE) or the like can also be used.
  • the length of the mux_type is defined as 1 byte, its expandable data type can reach 255 (all 0s are invalid).
  • the length of the mux_type is defined as double bytes, the extension type can reach 65,535. . If the data type is further divided into data types, such as i (i is a positive integer) data included in the static message, the extended structure of the data message becomes very flexible, and the forward compatibility becomes very simple.
  • Step 12 The data packet encapsulated by the physical layer is sent in the physical layer channel of the OTN overhead.
  • the physical layer channel of the OTN overhead may include one or more.
  • a byte occupied by GCC0 is defined as a physical layer channel for transmitting data packets
  • the data layer encapsulated by the physical layer may be encapsulated in each frame.
  • the text is inserted into the byte occupied by GCC0 for transmission.
  • the physical layer encapsulated data packet is inserted into the byte occupied by GCC0 in each frame.
  • the byte occupied by GCC1 is transmitted.
  • a physical layer channel when a data packet is transmitted, a physical layer channel is not fixed to one type of data packet transmission, but all types of data packets can be transmitted in the same physical layer channel, and then different types of datagrams are transmitted.
  • the text can be transmitted in the same physical layer channel in time sharing, improving the efficiency of use. Since the physical layer channel can transmit any type of data message, dynamic allocation of bandwidth can be achieved.
  • the type of the data packet is added to implement the extension of the data packet type.
  • FIG. 5 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention. This embodiment takes a static packet as an example. Referring to FIG. 5, this embodiment includes:
  • Step 51 The static message control module sends a ready signal to the time sharing and priority control module when a static message is to be sent.
  • the static packet is sent periodically, assuming that the static packet starts from time 0.
  • the time T is transmitted for the period, and when the transmission period of the static message arrives, that is, at the time point of ⁇ ( ⁇ is a positive integer), the static message control module can detect whether a static message is to be transmitted.
  • static messages can be organized in channels.
  • the static message control module can start the inspection from the first channel (C1) to determine whether to send static messages.
  • C1 the first channel
  • a static message can include 64 channels, and each channel can contain 32 bytes of data.
  • the data of each channel is relatively independent, and the specific usage can be defined or parsed by high-level software. It can be understood that the number of channels given here and the data length of each channel can be defined by themselves.
  • the total value (total) can be recorded in the first byte (byte number is 0), the total value marks the number of bytes that the current channel needs to send, and the number of bytes to be sent includes total bytes. If the total value is not 0, the channel has data to send. When any channel has data to send, the static message control module can send a ready signal to the time sharing and priority control module.
  • Step 52 After receiving the indication signal, the time-sharing and priority control module sends a frame header field and a report to the High Level Data Link Control (HDLC) encapsulation module after determining that the static message can be sent.
  • HDLC High Level Data Link Control
  • the time-sharing and priority control module After receiving the ready signal, the time-sharing and priority control module first determines whether there is a message currently being sent. If not, it determines whether the ready signal of other messages is received, if no ready signal of other messages is received. Then it is determined that the data message to be sent can be sent. Alternatively, if a ready signal of other messages is received, the data message may be sent according to a preset priority order, for example, if a ready signal indicating that a 1588 protocol message is to be sent and a ready message to be sent a static message are received If the signal has a higher priority than the 1588 packet, you can determine that the static packet to be sent can be sent.
  • a ready signal of a static message of a fast type and a ready signal of a static message of a slow type are received, and a static message of a fast type has a higher priority than a static message of a slow type, it can be determined that it can be sent.
  • Fast type static message For example, if a ready signal of a static message of a fast type and a ready signal of a static message of a slow type are received, and a static message of a fast type has a higher priority than a static message of a slow type, it can be determined that it can be sent.
  • Fast type static message for example, if a ready signal of a static message of a fast type and a ready signal of a static message of a slow type are received, and a static message of a fast type has a higher priority than a static message of a slow type
  • the corresponding field needs to be sent in combination with the HDLC processing, for example, sending a 1 byte 7E frame header; and then transmitting a 1-byte message type mux_type, specifically, For the fast type, mux_type is 01, and for the slow type, mux_type is 02. Further, when the third byte needs to be sent, that is, when valid data needs to be sent, the time-sharing and priority control module may send a request signal (req) to the static message control module to request valid data.
  • req request signal
  • Step 53 After receiving the request signal, the static message control module sends the valid data of the static message to the time sharing and priority control module and synchronously gives a valid signal, and after the static message control module sends the valid data, Give an invalid signal.
  • the static message control module After receiving the req signal, the static message control module needs to send the data of the first byte, that is, the data corresponding to the total position (position index is 0), then replace the total value with the channel value and send it to the time-sharing and The priority control module, for example, the data of the first channel currently transmitting the static message, then replaces the total value of the first channel with 1.
  • the static message control module When the static message control module receives the req signal, if it needs to send the data of the non-total position, that is, the data of the 2nd to 32th bytes (the position index is 1 ⁇ 31), the data in the cache is directly sent to the time sharing. And the priority control module, for example, sequentially sends idl, Ll, datal, and the like.
  • the static message since the static message is organized in a channel manner, in order to ensure the integrity of the data, it is necessary to transmit the valid data of one channel and then send the valid data of the next channel. For example, after the static message control module sends the data of the first channel (C1), it continues to patrol the second channel (C2) and processes C3 after the data in C2 is sent, and so on.
  • static packets can be classified into multiple types, such as idl and id2, one type of data needs to be sent before another type of data is sent. For example, idl, L1, and datal are sent. After that, send id2, L2, and data2.
  • Step 54 The time-sharing and priority control module sends the valid data of the received static packet to the HDLC encapsulation module.
  • Step 55 The HDLC encapsulation module performs physical layer encapsulation on the received data.
  • the frame header 7E is encapsulated first, then the mux_type is encapsulated, followed by the valid data, and then the Cyclic Redundancy Check (CRC) of the HDLC is continued to be encapsulated when an invalid signal is received.
  • the check bit (this bit can specifically include crch and crcl), followed by the end of frame mark 7E. At this point, a complete HDLC message is sent. Go to the next loop.
  • Step 56 The HDLC encapsulation module inserts the static packet encapsulated by the physical layer into the OTN overhead.
  • Step 57 The OTN overhead module sends a static packet encapsulated by the physical layer.
  • This embodiment describes the physical layer encapsulation and transmission process of the static packet to implement the transmission of static packets in the physical layer channel.
  • FIG. 7 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention.
  • a sending protocol packet is taken as an example. Referring to Figure 7, this embodiment includes:
  • Step 71 The protocol message control module sends a ready signal to the time sharing and priority control module when the protocol message is to be sent.
  • Step 72 After receiving the indication signal, the time-sharing and priority control module sends a frame header field and a message type field to the HDLC encapsulation module, and obtains valid data from the protocol packet control module after determining that the protocol packet can be sent. , that is, get the data message to be transmitted.
  • the time-sharing and priority control may also determine whether the protocol packet can be sent according to whether the packet is sent or not.
  • the frame header 7E may be sent first, then the mux_type field indicating the packet type is sent, and then the valid data is obtained from the protocol packet control module.
  • the valid data in this embodiment is a packet that has been encapsulated by the protocol layer, for example, a GCC protocol packet encapsulated in the GCC protocol, or a 1588 protocol packet encapsulated in the protocol layer according to the 1588 protocol.
  • Step 74 The time-sharing and priority control module sends the valid data of the received static packet to the HDLC encapsulation module.
  • Step 75 The HDLC encapsulation module performs physical layer encapsulation on the received data.
  • the frame header 7E is encapsulated first, then the mux_type is encapsulated, followed by the valid data, and then the CRC16 check bit of the HDLC is continuously encapsulated when the invalid signal is received (this bit may specifically include crch and crcl). ), followed by the end of frame mark 7E.
  • this bit may specifically include crch and crcl.
  • the replacement processing can also be performed. For details, refer to the related description in the static packet.
  • Step 77 The OTN overhead module sends a static packet encapsulated by the physical layer.
  • This embodiment describes the physical layer encapsulation and transmission process of the protocol packet, so as to implement the transmission of protocol packets in the physical layer channel.
  • FIG. 8 is a schematic flowchart of an OTN overhead receiving method according to an embodiment of the present invention, including: Step 81: Receive a physical layer encapsulated data packet transmitted in a physical layer channel of an OTN overhead, and the physical layer encapsulated datagram
  • the text field includes a type field, and the physical layer channel is capable of time-division multiplexing different types of data packets, and the type field is used to indicate the type of the data packet.
  • Step 82 Perform receiving processing on the data packet according to the type field.
  • a physical layer channel when a data packet is transmitted, a physical layer channel is not fixed to a data packet transmission, but all types of data packets can be transmitted in a physical layer channel, and then different types of data packets are transmitted. It can be transmitted in the same physical layer channel in time sharing, improving the efficiency of use. Since the physical layer channel can transmit any type of data message, dynamic allocation of bandwidth can be achieved. The type of data packets is added during physical layer encapsulation to extend the data packet type.
  • FIG. 9 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention.
  • This embodiment takes a static packet as an example.
  • This embodiment includes:
  • Step 91 The OTN overhead module sends the data packet transmitted in the physical layer channel to the HDLC. Decapsulate the module.
  • the data packet is a data packet encapsulated by the physical layer, and the type in the physical layer encapsulation field indicates that the data packet is a static packet.
  • Step 92 The HDLC decapsulation module decapsulates the received data packet, obtains a type field, and sends an indication signal (ready) to the static message control module when the type field indicates a static message, and decapsulates the packet.
  • the data packet is sent to the static packet control module.
  • the second byte after the non- 7E byte is the valid data portion of the static message. Since the received data is not necessarily accurate, the data that has passed the CRC check can be sent to the static packet control module by using the second level cache.
  • the second level cache may be: First, the received valid data (that is, the physical layer decapsulated data message) is temporarily cached, which may be referred to as a first level cache. Specifically, the corresponding channel number Ci can be obtained from the second byte and latched. According to the latched Ci information, the data to be received can be written to the address corresponding to the corresponding channel. From the packet structure, the third byte corresponds to the idl position of the first channel. Therefore, the received third byte is stored from the 1st address until all the data contents are received. After the last byte is received, the current write RAM address is obtained, and the RAM address value is written at the 0 address as the receiving side total value.
  • the HDLC decapsulation module sends an indication signal to the static message control module, and copies the first level cached data to the second level cache. Specifically, after receiving the valid data, if 7E is detected again, the frame is considered to be ended, and it is determined whether the CRC check result is correct. If the HDLC CRC check fails, the level 1 cache will not copy to the level 2 cache. If the HDLC CRC check is correct, the level 1 cache is started to copy to the level 2 cache, but the copy process needs to be read first. The data of the first and second level caches are compared. If there is a difference, an interrupt can be given. Whether an interrupt is required can be performed according to the actual application.
  • the packet type field is detected, and different types of data packets can be correctly received.
  • FIG. 10 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention.
  • This embodiment takes a receiving protocol packet as an example.
  • This embodiment includes:
  • Step 102 The HDLC decapsulation module decapsulates the received data packet, obtains a type field, and sends an indication signal (ready) to the protocol packet control module when the type field indicates a protocol packet, and decapsulates the packet.
  • the data packet is sent to the protocol packet control module.
  • the protocol packet control module can The built-in CRC check mechanism then validates the valid data.
  • the content of the end of the frame and the CRC check of the HDLC encapsulation module can be found in the related content of the static packet.
  • the packet type field is detected, and different types of data packets can be correctly received.
  • DFX design for X
  • X is, for example, maintainability, testability, etc.
  • FIG. 11 is a schematic structural diagram of an embodiment of a transmitting apparatus according to the present invention, which includes a physical layer encapsulating module 111 and an OTN overhead module 112.
  • the physical layer encapsulating module 111 is configured to transmit datagrams to be transmitted.
  • the physical layer encapsulation is performed, and the type field is added in the physical layer encapsulation, so that different types of data packets can be time-division multiplexed in the physical layer channel of the OTN overhead, and the type field is used to indicate the data packet to be transmitted.
  • the OTN overhead module 112 is configured to send the data packet encapsulated by the physical layer in a physical layer channel of the OTN overhead.
  • the physical layer encapsulation module 111 may include: a packet control module.
  • the time-sharing and priority control module 122 and the HDLC encapsulation module 123 are configured to send a frame header to the HDLC encapsulation module 123 after receiving the indication signal sent by the packet control module 121. And the type field, and the data message to be transmitted to the message control module 121, and the data message to be transmitted is sent to the HDLC encapsulation module 123;
  • the message control module 121 is configured to send the indication signal, and after the time-sharing and priority control module 122 requests the data message to be transmitted, send the data message to the time-sharing and priority control module 122.
  • the data message to be transmitted is used to send an invalid signal to the HDLC encapsulation module 123 by the time sharing and priority control module 122 after the data message to be transmitted is sent.
  • the HDLC encapsulating module 123 is configured to generate a CRC check field and an HDLC frame tail after receiving the invalid signal, and according to the HDLC frame header, the type field, the data packet to be transmitted, and the CRC The field and the sequence of the HDLC frame are encapsulated, and the invalid signal is sent by the message control module 121 after the valid data is sent.
  • the packet control module 121 specifically includes:
  • a first control submodule configured to send the indication signal
  • a second control sub-module configured to send the data message to be transmitted to the time-sharing and priority control module after the time-sharing and priority control module requests the data message to be transmitted;
  • the control submodule is configured to send the invalid signal to the HDLC encapsulating module after transmitting the data packet to be transmitted.
  • the data packet to be transmitted is a static packet
  • the first control submodule includes:
  • the second control submodule specifically includes:
  • the data message to be transmitted includes at least one channel; each channel includes a total number of bytes of the channel and channel data; the channel data includes at least one subchannel; and the subchannel includes a data type of the subchannel. , the total number of bytes of the subchannel and the subchannel data.
  • the data packet to be transmitted is a protocol packet
  • the first control submodule includes:
  • the first protocol packet control module is configured to send the indication signal to the time sharing and priority control module after acquiring the data packet encapsulated by the completed protocol.
  • the second control submodule specifically includes:
  • a second protocol message control module configured to send, by the time-sharing and priority control module, the data packet to be transmitted to the time-sharing and priority control module .
  • the physical layer encapsulation of the data packet to be transmitted is performed in the physical layer channel, instead of restricting the physical layer channel to a certain type of data packet.
  • Different types of data packets can be used to time-multiplex the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate the physical layer channel.
  • the type of the data packet can be performed. Expansion.
  • FIG. 13 is a schematic structural diagram of an embodiment of a receiving apparatus according to the present invention, including an OTN overhead module 131 and a physical layer decapsulation module 132.
  • the OTN overhead module 131 is configured to receive a physical layer encapsulated datagram transmitted in a physical layer channel of an OTN overhead.
  • the data packet encapsulated by the physical layer includes a type field, and the physical layer channel is capable of time-division multiplexing different types of data packets, where the type field is used to indicate the type of the data packet;
  • the layer decapsulation module 132 is configured to perform receiving processing on the data packet according to the type field.
  • the type field indicates that the data packet is a static packet
  • the physical layer decapsulation module 132 specifically includes: a first HDLC decapsulation module and a first packet control module;
  • the encapsulating module is configured to decapsulate the data packet encapsulated by the physical layer, obtain the type field and the data packet, and delay the data packet
  • the method is configured to perform CRC processing on the buffered data packet, and configured to send an indication signal to the first packet control module after the CRC is successfully verified, and send the cached data packet to the first a message control module;
  • the first packet control module is configured to receive the cached data packet sent by the first HDLC decapsulation module after receiving the indication signal.
  • the type field indicates that the data packet is a protocol packet
  • the physical layer decapsulation module specifically includes a second HDLC decapsulation module and a second packet control module.
  • the second HDLC decapsulation module is configured to decapsulate the data packet encapsulated by the physical layer, obtain the type field and the data packet, and send an indication signal to the second packet control module. And sending the data packet to the second packet control module;
  • the second packet control module is configured to receive the second signal after receiving the indication signal
  • the data packet sent by the HDLC decapsulation module is the data packet sent by the HDLC decapsulation module.
  • the physical layer encapsulation of the data packet to be transmitted is performed in the physical layer channel, instead of restricting the physical layer channel to a certain type of data packet.
  • Different types of data packets can be used to time-multiplex the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate the physical layer channel.
  • the type of the data packet can be performed. Expansion.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

Provided are a method and device for transmitting and receiving an OTN overhead. The method comprises: performing physical layer encapsulation on a data message to be transmitted, and adding a type field during the physical layer encapsulation, so that different types of data messages can be time-division multiplexed in a physical layer channel of an OTN overhead, the type field being used for indicating the type of the data message to be transmitted; and transmitting the data message which has been subjected to physical layer encapsulation in the physical layer channel of the OTN overhead. The embodiments of the present invention can increase the use efficiency of a physical layer channel of an OTN overhead and realize the dynamic allocation for the physical layer channel, and can also expand the types of data messages.

Description

OTN开销的发送、 接收方法和装置 技术领域 本发明涉及光通信技术领域, 尤其涉及一种光传送网 (Optical The present invention relates to the field of optical communication technologies, and in particular, to an optical transmission network (Optical).

Transport Network, OTN ) 开销的发送、 接收方法和装置。 背景技术 Transport Network, OTN) Method and device for transmitting and receiving overhead. Background technique

在 OTN开销中, 定义了 64个字节, 其中部分字节是 OTN标准中保 留不能使用的。 当前处理方案中, 一般是某一种数据报文固定占用 64字 节中的一个或多个字节, 该占用的一个或多个字节称为一个物理层通道, 在每个物理层通道中只用来传递一种信息, 例如, 通用通信信道( General Communication Channel, GCC ) 0只用来传递 GCC0的 GCC管理信息, 自动保护倒换 ( Automatic Protection Switching, APS )用来传递 APS保护 倒换信息。 从上述应用可以看出, 不论有效数据带宽是多少, 其总是固定 占用 OTN开销中的固定字节数, 那么当有效数据带宽较小时, 其使用效 率就较低; 另外, 当引入新类型的数据报文时, 新类型的数据报文如何传 输也是问题; 再者, 物理层通道不能动态释放, 当不启动时其物理层的带 宽已经被固定占用, 不能他用。 发明内容  In the OTN overhead, 64 bytes are defined, some of which are reserved in the OTN standard and cannot be used. In the current processing scheme, generally, one type of data message occupies one or more bytes of 64 bytes, and the occupied one or more bytes are called a physical layer channel, and are in each physical layer channel. It is only used to transmit a kind of information. For example, the General Communication Channel (GCC) 0 is only used to transmit GCC management information of GCC0, and Automatic Protection Switching (APS) is used to transmit APS protection switching information. It can be seen from the above application that regardless of the effective data bandwidth, it always occupies a fixed number of bytes in the OTN overhead, and when the effective data bandwidth is small, its use efficiency is low; in addition, when a new type is introduced In the case of data packets, how to transmit new types of data packets is also a problem; in addition, the physical layer channel cannot be dynamically released. When it is not started, the bandwidth of its physical layer is already occupied and cannot be used. Summary of the invention

本发明实施例提供一种 OTN开销的发送、 接收方法和装置, 用以提 高 OTN开销的物理层通道的使用效率以及实现对物理层通道的动态分配, 并且可以扩展数据报文的类型。  The embodiments of the present invention provide a method and a device for transmitting and receiving an OTN overhead, which are used to improve the efficiency of the physical layer channel of the OTN overhead and implement dynamic allocation of the physical layer channel, and can extend the type of the data packet.

一方面, 本发明实施例提供了一种 OTN开销的发送方法, 包括: 对要传输的数据报文进行物理层封装, 在物理层封装时添加类型字 段, 使得 OTN开销的物理层通道中能够时分复用不同类型的数据报文, 所述类型字段用于表明所述要传输的数据报文的类型;  In an aspect, the embodiment of the present invention provides a method for sending an OTN overhead, including: performing physical layer encapsulation on a data packet to be transmitted, and adding a type field in the physical layer encapsulation, so that the physical layer channel of the OTN overhead can be time-divided. Reusing different types of data packets, the type field being used to indicate the type of the data message to be transmitted;

将物理层封装后的数据报文在 OTN开销的物理层通道中发送。  The data packet encapsulated by the physical layer is sent in the physical layer channel of the OTN overhead.

另一方面, 本发明实施例提供了一种 OTN开销的接收方法, 包括: 接收 OTN开销的物理层通道中传输的物理层封装后的数据报文, 所 述物理层封装后的数据报文中包含类型字段, 所述物理层通道中能够时分 复用不同类型的数据报文, 所述类型字段用于表明所述数据报文的类型; 根据所述类型字段, 对所述数据报文进行接收处理。 On the other hand, an embodiment of the present invention provides a method for receiving an OTN overhead, including: The physical layer encapsulated data packet transmitted in the physical layer channel of the OTN overhead, the data packet encapsulated by the physical layer includes a type field, and the physical layer channel can time-division and multiplex different types of data packets. The type field is used to indicate the type of the data packet; and the data packet is received and processed according to the type field.

—方面, 本发明实施例提供了一种发送装置, 包括:  In one aspect, an embodiment of the present invention provides a sending apparatus, including:

物理层封装模块, 用于对要传输的数据报文进行物理层封装, 在物理 层封装时添加类型字段, 使得 OTN开销的物理层通道中能够时分复用不 同类型的数据报文, 所述类型字段用于表明所述要传输的数据报文的类 型;  The physical layer encapsulation module is configured to perform physical layer encapsulation on the data packet to be transmitted, and add a type field in the physical layer encapsulation, so that different types of data packets can be time-division multiplexed in the physical layer channel of the OTN overhead, the type a field is used to indicate the type of the data message to be transmitted;

OTN开销模块, 用于将物理层封装后的数据报文在 OTN开销的物理 层通道中发送。  The OTN cost module is configured to send the data packet encapsulated by the physical layer in a physical layer channel of the OTN overhead.

另一方面, 本发明实施例提供了一种接收装置, 包括:  In another aspect, an embodiment of the present invention provides a receiving apparatus, including:

OTN开销模块,用于接收 OTN开销的物理层通道中传输的物理层封 装后的数据报文, 所述物理层封装后的数据报文中包含类型字段, 所述物 理层通道中能够时分复用不同类型的数据报文, 所述类型字段用于表明所 述数据报文的类型;  The OTN cost module is configured to receive the physical layer encapsulated data packet transmitted in the physical layer channel of the OTN overhead, where the data packet encapsulated by the physical layer includes a type field, and the physical layer channel can be time division multiplexed Different types of data packets, the type field is used to indicate the type of the data packet;

物理层解封装模块, 用于根据所述类型字段对所述数据报文进行接收 处理。  The physical layer decapsulation module is configured to receive and process the data packet according to the type field.

由上述技术方案可知, 本发明实施例通过将要传输的数据报文进行物 理层封装, 将物理层封装后的数据报文在物理层通道中传输, 而不是将物 理层通道固定限制为传输某一种数据报文, 这样就可以实现不同类型的数 据报文能够时分复用同一个物理层通道, 提高物理层通道的使用效率, 并 且可以实现物理层通道的动态分配, 通过封装报文类型, 可以对数据报文 的类型进行扩展。 附图说明 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述 中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳 动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明 OTN开销的发送方法一实施例的流程示意图; 图 2为本发明 OTN开销的发送方法的系统结构示意图; According to the foregoing technical solution, the embodiment of the present invention performs physical layer encapsulation on the data packet to be transmitted, and the data packet encapsulated by the physical layer is transmitted in the physical layer channel, instead of limiting the physical layer channel to a certain transmission. Data packets, so that different types of data packets can be time-multiplexed with the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate physical layer channels. By encapsulating the packet type, Extend the type of data message. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present invention, a brief description of the drawings to be used in the description of the embodiments will be briefly made. It is obvious that the drawings in the following description are some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative labor. 1 is a schematic flowchart of an embodiment of a method for transmitting an OTN overhead according to the present invention; FIG. 2 is a schematic structural diagram of a system for transmitting an OTN overhead according to the present invention;

图 3为本发明中物理层封装后的协议报文的格式示意图;  3 is a schematic diagram of a format of a protocol packet encapsulated by a physical layer in the present invention;

图 4为本发明中物理层封装后的静态报文的格式示意图;  4 is a schematic diagram of a format of a static packet after being encapsulated by a physical layer according to the present invention;

图 5为本发明 OTN开销的发送方法另一实施例的流程示意图; 图 6为本发明中静态报文的格式示意图;  5 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention; FIG. 6 is a schematic diagram of a format of a static packet according to the present invention;

图 7为本发明 OTN开销的发送方法另一实施例的流程示意图; 图 8为本发明 OTN开销的接收方法一实施例的流程示意图; 图 9为本发明 OTN开销的接收方法另一实施例的流程示意图; 图 10为本发明 OTN开销的接收方法另一实施例的流程示意图; 图 11为本发明发送装置一实施例的结构示意图;  FIG. 7 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention; FIG. 8 is a schematic flowchart of a method for receiving an OTN overhead according to another embodiment of the present invention; 10 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention; FIG. 11 is a schematic structural diagram of an embodiment of a transmitting apparatus according to the present invention;

图 12为本发明发送装置另一实施例的结构示意图;  12 is a schematic structural diagram of another embodiment of a transmitting apparatus according to the present invention;

图 13为本发明接收装置一实施例的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。  FIG. 13 is a schematic structural diagram of an embodiment of a receiving apparatus according to the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

图 1为本发明 OTN开销的发送方法一实施例的流程示意图, 包括: 步骤 11 : 对要传输的数据报文进行物理层封装, 在物理层封装时添加 类型字段, 使得 OTN开销的物理层通道中能够时分复用不同类型的数据 报文, 所述类型字段用于表明所述要传输的数据报文的类型。  FIG. 1 is a schematic flowchart of an OTN overhead sending method according to an embodiment of the present invention, including: Step 11: Perform physical layer encapsulation on a data packet to be transmitted, and add a type field in the physical layer encapsulation, so that the OTN overhead physical layer channel Different types of data messages can be time-division multiplexed, and the type field is used to indicate the type of the data message to be transmitted.

其中, 要传输的数据报文可以分为静态报文和协议报文, 静态报文是 指周期发送的固定内容的报文,协议报文是指运行某种复杂协议(complex protocol ) 的才艮文。  The data packets to be transmitted can be divided into static packets and protocol packets. The static packets refer to the fixed-content packets sent periodically. The protocol packets refer to the running of a complex protocol. Text.

静态报文可以分为快 (fast ) 静态报文和慢 (slow ) 静态报文两种类 型, 快静态报文相对于慢静态报文, 具有周期短和长度短的特点。 进一步 的, 每种静态报文还可以划分为多种更小的类型。 十办议才艮文可以包括新延时测量 ( new delayed time measure , ndtm ) 十办 议才艮文、 1588十办议才艮文、 通用通信信道 ( General Communication Channel , GCC ) 协议报文等。 The static packets can be classified into two types: fast (fast) static packets and slow (slow) static packets. Fast static packets are shorter in duration and shorter in length than slow static packets. Further, each static message can also be divided into a plurality of smaller types. The ten-year-old texts can include new delayed time measure (ndtm), ten-party discussion, 1588, and general communication channel (GCC) protocol messages.

具体的, 参见图 2 , 要传输的数据报文可以具体包括快静态报文 ( fastjype ) 、 慢静态报文( slow_type ) 、 ndtm协议报文、 1588 协议报 文、 GCC协议报文以及 n种保留类型的数据报文。快静态报文可以进一步 分为 i种报文, 慢静态报文可以进一步分为 k种报文, 静态报文包括的每 种报文可以由类型标识 (id ) 、 长度(L ) 和数据 (D ) 组成。 上述的 n、 i、 k均为正整数。  Specifically, referring to FIG. 2, the data packet to be transmitted may include a fast static packet (fastjype), a slow static packet (slow_type), an ndtm protocol packet, a 1588 protocol packet, a GCC protocol packet, and n types of reservations. Type of data message. Fast static messages can be further classified into i types of messages. Slow static messages can be further classified into k types of messages. Each type of static message can be identified by type identifier (id), length (L), and data ( D) Composition. The above n, i, and k are all positive integers.

现有技术中, 要传输的数据报文是直接插入到 OTN开销的固定的物 理层通道中传输的, 例如, 对于 GCC协议报文, 将要传输的 GCC协议报 文直接插入到 OTN开销的 GCC通道中进行传输。  In the prior art, the data packet to be transmitted is directly inserted into the fixed physical layer channel of the OTN overhead. For example, for the GCC protocol packet, the GCC protocol packet to be transmitted is directly inserted into the GCC channel of the OTN overhead. Transfer in.

而本实施例中, OTN开销中并不传输某一种类型的数据报文, 而是多 种数据 ^艮文可以分时复用传输。 例如, 对于 GCC通道, 可以在第一时间 段内传输 GCC协议报文, 而在第二时间段内传输 1588协议报文, 在第三 时间段内传输静态报文等。  In this embodiment, a certain type of data packet is not transmitted in the OTN overhead, but a plurality of types of data may be transmitted in a time division multiplexing manner. For example, for the GCC channel, the GCC protocol packet can be transmitted in the first time period, and the 1588 protocol packet is transmitted in the second time period, and the static packet is transmitted in the third time period.

由于物理层通道中可以传输多种类型的数据报文, 为了保证接收端能 够正确接收报文, 可以在传输数据报文的同时标识该数据报文的类型。 本 实施例中采用物理层封装的方式, 在物理层封装时添加数据报文对应的类 型。  As the physical layer channel can transmit multiple types of data packets, the type of the data packet can be identified at the same time as the data packet is transmitted. In this embodiment, the physical layer encapsulation mode is adopted, and the type corresponding to the data packet is added in the physical layer encapsulation.

具体的, 以 HDLC封装为例, 参见图 3 , 为协议报文进行物理层封装 后的报文格式, 包括 HDLC帧头(7E ) 、 类型字段(mux— type ) 、 作为净 荷的复杂协议部分(也就是要传输的协议报文) 、 CRC 校验位和 HDLC 帧尾, 其中, CRC校验位可以分为 CRC校验高位 (crch ) 和 CRC校验低 位 (crcl ) 。 参见图 4, 为静态报文进行物理层封装后的报文格式, 包括 HDLC帧头( 7E )、 类型字段( mux— type )、作为净荷的静态报文部分(具 体可以由多种子类型数据组成, 每种子类型数据可以用类型 -长度 -值表 示) 、 CRC校验位和 HDLC帧尾, 其中, CRC校验位可以分为 CRC校验 高位 (crch ) 和 CRC校验低位 (crcl ) 。 其中的类型字段 ( muxjype ) 用 于表明数据报文的类型, 例如, 对于快静态报文, 可以将其 mux— type设 置为 01 , 对于慢静态报文, 可以将其 mux— type设置为 02, 对于 GCC协 议报文, 可以将其 mux— type设置为 03等。 其中, 图 3或图 4的物理层封 装方式以 HDLC封装为例, 可以理解的是, 也可以采用以太网封装(FE、 GE、 10GE )等。 当 mux— type的长度定义为 1个字节时, 其可扩展的数据 类型可以达到 255种(全 0无效) , 当 mux— type的长度定义为双字节时, 其扩展类型可以达到 65535种。 如果数据报文中进一步划分数据类型, 如 静态报文中包括的 i ( i为正整数)种数据, 那么数据报文的扩展结构就变 得十分灵活, 前向兼容变得十分简单。 Specifically, the HDLC encapsulation is taken as an example. Referring to FIG. 3, the packet format of the physical layer encapsulation of the protocol packet includes an HDLC frame header (7E), a type field (mux_type), and a complex protocol part as a payload. (that is, the protocol message to be transmitted), the CRC check bit, and the HDLC end of the frame, where the CRC check bit can be divided into a CRC check high bit (crch) and a CRC check low bit (crcl). Referring to FIG. 4, the physical packet encapsulation format of the static packet includes an HDLC frame header (7E), a type field (mux_type), and a static packet portion as a payload (specifically, multiple subtype data may be used. The composition, each seed type data can be represented by a type-length-value, a CRC check bit, and an HDLC frame tail, wherein the CRC check bit can be divided into a CRC check high bit (crch) and a CRC check low bit (crcl). The type field ( muxjype ) is used to indicate the type of the data message. For example, for fast static messages, the mux_type can be set. Set to 01. For slow static messages, set the mux_type to 02. For GCC protocol messages, set the mux-type to 03. The physical layer encapsulation mode of FIG. 3 or FIG. 4 is exemplified by the HDLC encapsulation. It can be understood that an Ethernet encapsulation (FE, GE, 10GE) or the like can also be used. When the length of the mux_type is defined as 1 byte, its expandable data type can reach 255 (all 0s are invalid). When the length of the mux_type is defined as double bytes, the extension type can reach 65,535. . If the data type is further divided into data types, such as i (i is a positive integer) data included in the static message, the extended structure of the data message becomes very flexible, and the forward compatibility becomes very simple.

对于每一种 mux— type对应的数据报文, 可以单独运行自己的协议, 例如运行 1588协议或者 GCC协议等。 由于物理层封装与协议无关, 可以 实现物理层和协议的解耦。  For each data packet corresponding to the mux-type, you can run your own protocol separately, for example, running the 1588 protocol or the GCC protocol. Since the physical layer encapsulation is protocol independent, decoupling of the physical layer and protocol can be achieved.

步骤 12: 将物理层封装后的数据报文在 OTN开销的物理层通道中发 送。  Step 12: The data packet encapsulated by the physical layer is sent in the physical layer channel of the OTN overhead.

其中, OTN开销的物理层通道可以包括一个或者多个, 例如, 如果定 义由 GCC0占用的字节作为传输数据报文的物理层通道, 那么在每一帧中 可以将物理层封装后的数据报文插入到 GCC0占用的字节处进行传输。 又 例如, 如果定义由 GCC0占用的字节以及 GCC1 占用的字节作为传输数据 报文的物理层通道, 那么在每一帧中将物理层封装后的数据报文插入到 GCC0占用的字节和 GCC1 占用的字节处进行传输。  The physical layer channel of the OTN overhead may include one or more. For example, if a byte occupied by GCC0 is defined as a physical layer channel for transmitting data packets, the data layer encapsulated by the physical layer may be encapsulated in each frame. The text is inserted into the byte occupied by GCC0 for transmission. For another example, if the byte occupied by GCC0 and the byte occupied by GCC1 are defined as the physical layer channel of the data packet, the physical layer encapsulated data packet is inserted into the byte occupied by GCC0 in each frame. The byte occupied by GCC1 is transmitted.

本实施例在传输数据报文时并没有将一个物理层通道固定给一种数 据报文传输, 而是所有类型的数据报文都能够在同一个物理层通道中传 输, 那么不同类型的数据报文就可以分时在同一个物理层通道中传输, 提 高使用效率。 由于物理层通道可以传输任一种类型的数据报文, 可以实现 带宽的动态分配。 在物理层封装时添加数据报文的类型, 可以实现数据报 文类型的扩展。  In this embodiment, when a data packet is transmitted, a physical layer channel is not fixed to one type of data packet transmission, but all types of data packets can be transmitted in the same physical layer channel, and then different types of datagrams are transmitted. The text can be transmitted in the same physical layer channel in time sharing, improving the efficiency of use. Since the physical layer channel can transmit any type of data message, dynamic allocation of bandwidth can be achieved. When the physical layer is encapsulated, the type of the data packet is added to implement the extension of the data packet type.

图 5为本发明 OTN开销的发送方法另一实施例的流程示意图, 本实 施例以发送静态报文为例。 参见图 5 , 本实施例包括:  FIG. 5 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention. This embodiment takes a static packet as an example. Referring to FIG. 5, this embodiment includes:

步骤 51 : 静态报文控制模块在要发送静态报文时, 向分时和优先级控 制模块发送指示 (ready )信号。  Step 51: The static message control module sends a ready signal to the time sharing and priority control module when a static message is to be sent.

其中, 静态报文是周期性发送的, 假设静态报文是从时间点 0开始以 时间 T 为周期进行发送, 那么在静态报文的发送周期到达时, 也就是在 ηΤ ( η为正整数) 这些时间点, 静态报文控制模块可以检测是否要发送静 态报文。 The static packet is sent periodically, assuming that the static packet starts from time 0. The time T is transmitted for the period, and when the transmission period of the static message arrives, that is, at the time point of ηΤ ( η is a positive integer), the static message control module can detect whether a static message is to be transmitted.

参见图 6, 静态报文可以以通道的方式组织, 静态报文控制模块可以 从第一个通道(C1 )开始巡检以确定是否要发送静态报文。 例如, 静态报 文可以包括 64个通道, 每个通道可以包含 32个字节的数据。 其中每个通 道的数据相对独立, 具体用法可以由高层软件做定义或解析。 可以理解的 是, 这里给出的通道个数、 每个通道的数据长度可以自行定义。  Referring to Figure 6, static messages can be organized in channels. The static message control module can start the inspection from the first channel (C1) to determine whether to send static messages. For example, a static message can include 64 channels, and each channel can contain 32 bytes of data. The data of each channel is relatively independent, and the specific usage can be defined or parsed by high-level software. It can be understood that the number of channels given here and the data length of each channel can be defined by themselves.

在每个通道中可以在第一个字节 (字节编号为 0 )处记录总数(total ) 值, total值标记当前通道需要发送的字节数, 需要发送的字节数包括 total 字节,如果 total值非 0表明该通道有数据发送。 当任一通道有数据发送时 静态报文控制模块就可以向分时和优先级控制模块发送 ready信号。  In each channel, the total value (total) can be recorded in the first byte (byte number is 0), the total value marks the number of bytes that the current channel needs to send, and the number of bytes to be sent includes total bytes. If the total value is not 0, the channel has data to send. When any channel has data to send, the static message control module can send a ready signal to the time sharing and priority control module.

步骤 52: 分时和优先级控制模块接收到指示信号后, 在确定能够发送 该静态才艮文后,向高级数据链路控制( High level Data Link Control, HDLC ) 封装模块发送帧头字段和报文类型字段, 以及向静态报文控制模块获取有 效数据, 也就是获取要传输的数据报文。  Step 52: After receiving the indication signal, the time-sharing and priority control module sends a frame header field and a report to the High Level Data Link Control (HDLC) encapsulation module after determining that the static message can be sent. The text type field, and the obtaining of valid data to the static message control module, that is, obtaining the data message to be transmitted.

其中, 分时和优先级控制模块接收到 ready信号后, 首先判断当前是 否有报文在发送, 如果没有, 再判断是否接收到其它报文的 ready信号, 如果没有接收到其它报文的 ready信号则确定能够发送该要发送的数据报 文。 或者, 如果接收到其它报文的 ready信号, 则可以根据预先设定的优 先级顺序发送数据报文, 例如, 如果接收到表明要发送 1588协议报文的 ready信号和要发送静态报文的 ready信号,且静态报文的优先级高于 1588 报文, 那么可以确定能够发送该要发送的静态报文。 又例如, 如果接收到 fast类型的静态报文的 ready信号以及 slow类型的静态报文的 ready信号, 且 fast类型的静态报文的优先级高于 slow类型的静态报文, 则可以确定 能够发送 fast类型的静态报文。  After receiving the ready signal, the time-sharing and priority control module first determines whether there is a message currently being sent. If not, it determines whether the ready signal of other messages is received, if no ready signal of other messages is received. Then it is determined that the data message to be sent can be sent. Alternatively, if a ready signal of other messages is received, the data message may be sent according to a preset priority order, for example, if a ready signal indicating that a 1588 protocol message is to be sent and a ready message to be sent a static message are received If the signal has a higher priority than the 1588 packet, you can determine that the static packet to be sent can be sent. For example, if a ready signal of a static message of a fast type and a ready signal of a static message of a slow type are received, and a static message of a fast type has a higher priority than a static message of a slow type, it can be determined that it can be sent. Fast type static message.

在确定能够发送该静态报文后,需要结合 HDLC处理进行相应字段的 发送, 例如, 先发送 1 个字节的 7E 帧头; 再发送 1 个字节的报文类型 mux— type ,具体地 ,对于 fast类型 , mux— type为 01 ,对于 slow类型 , mux— type 为 02。 进一步的, 需要发送第 3个字节时, 也就是需要发送有效数据时, 分 时和优先级控制模块可以向静态报文控制模块发送请求信号(req ) , 以请 求有效数据。 After determining that the static packet can be sent, the corresponding field needs to be sent in combination with the HDLC processing, for example, sending a 1 byte 7E frame header; and then transmitting a 1-byte message type mux_type, specifically, For the fast type, mux_type is 01, and for the slow type, mux_type is 02. Further, when the third byte needs to be sent, that is, when valid data needs to be sent, the time-sharing and priority control module may send a request signal (req) to the static message control module to request valid data.

步骤 53 : 静态报文控制模块接收到请求信号后, 将静态报文的有效数 据发送给分时和优先级控制模块并同步给出有效信号, 以及静态报文控制 模块在发送完有效数据后, 给出无效信号。  Step 53: After receiving the request signal, the static message control module sends the valid data of the static message to the time sharing and priority control module and synchronously gives a valid signal, and after the static message control module sends the valid data, Give an invalid signal.

静态报文控制模块接收到 req信号后时, 如果需要发送第一个字节的 数据, 即 total位置 (位置索引为 0 )对应的数据, 则将 total值替换为通 道值后发送给分时和优先级控制模块, 例如, 当前发送静态报文的第一个 通道的数据, 那么将第一个通道的 total值替换为 1。  After receiving the req signal, the static message control module needs to send the data of the first byte, that is, the data corresponding to the total position (position index is 0), then replace the total value with the channel value and send it to the time-sharing and The priority control module, for example, the data of the first channel currently transmitting the static message, then replaces the total value of the first channel with 1.

静态报文控制模块接收到 req信号后时,如果需要发送非 total位置的 数据, 即第 2〜32个字节 (位置索引为 1〜31 ) 的数据, 则直接将緩存中数 据发送给分时和优先级控制模块, 例如依次发送 idl、 Ll、 datal等。  When the static message control module receives the req signal, if it needs to send the data of the non-total position, that is, the data of the 2nd to 32th bytes (the position index is 1~31), the data in the cache is directly sent to the time sharing. And the priority control module, for example, sequentially sends idl, Ll, datal, and the like.

另外, 由于静态报文是以通道的方式组织, 为了保证数据的完整性, 需要将一个通道的有效数据发送完毕后再发送下一个通道的有效数据。 例 如, 静态报文控制模块将第一个通道(C1 )的数据发送完毕后, 继续巡检 到第二个通道(C2 )并在将 C2中的数据发送完毕后再处理 C3 ,依此类推。 另外, 由于静态报文中可以分为多种类型, 例如 idl、 id2等, 则需要将一 种类型的数据发送完毕后再发送另一种类型的数据, 例如, 将 idl、 L1和 datal发送完毕后, 再发送 id2、 L2和 data2。  In addition, since the static message is organized in a channel manner, in order to ensure the integrity of the data, it is necessary to transmit the valid data of one channel and then send the valid data of the next channel. For example, after the static message control module sends the data of the first channel (C1), it continues to patrol the second channel (C2) and processes C3 after the data in C2 is sent, and so on. In addition, since static packets can be classified into multiple types, such as idl and id2, one type of data needs to be sent before another type of data is sent. For example, idl, L1, and datal are sent. After that, send id2, L2, and data2.

再者,如果由于优先级控制等原因,在静态报文的一个发送周期之内, 64个通道没有巡检完毕,则需要在下一个发送周期之内接着上次的位置继 续发送, 以保证所有的通道均能发送。  Furthermore, if 64 channels are not patrolled within one transmission cycle of the static message due to priority control, etc., it is necessary to continue the transmission in the next transmission cycle and then the last location to ensure that all Channels can be sent.

步骤 54:分时和优先级控制模块将接收的静态报文的有效数据发送给 HDLC封装模块。  Step 54: The time-sharing and priority control module sends the valid data of the received static packet to the HDLC encapsulation module.

步骤 55: HDLC封装模块对接收的数据进行物理层封装。  Step 55: The HDLC encapsulation module performs physical layer encapsulation on the received data.

例如, 在物理层封装时, 先封装帧头 7E, 再封装 mux— type, 之后是 有效数据, 再之后当接收到无效信号时继续封装 HDLC 的循环冗余校验 ( Cyclic Redundancy Check, CRC ) 16校验位(该位可以具体包括 crch和 crcl ) , 之后紧跟帧尾标记 7E。 此时, 一个完整的 HDLC报文完成发送, 进入下一个循环中。 For example, in the physical layer encapsulation, the frame header 7E is encapsulated first, then the mux_type is encapsulated, followed by the valid data, and then the Cyclic Redundancy Check (CRC) of the HDLC is continued to be encapsulated when an invalid signal is received. The check bit (this bit can specifically include crch and crcl), followed by the end of frame mark 7E. At this point, a complete HDLC message is sent. Go to the next loop.

物理层封装后的静态报文可以参见上述的图 4。  For static packets encapsulated in the physical layer, see Figure 4 above.

需要说明的是, 由于通常采用 7E表示报文的起止, 那么在非报文起 止的有效内容中如果出现 7E, 为了避免误定帧处理, 本实施例中可以在 有效内容中出现 7E时, 将 1个字节的 7E替换为两个字节的 7D和 5D, 在有效内容中出现 7D时, 将 1个字节的 7D替换为两个字节的 7D和 5E。 由于替换时将 1个字节的数据替换为 2个字节,那么出现 7E或 7D时, req 信号需要暂时停一个时钟, 其中, 一个时钟用于提取一个字节的数据。  It should be noted that, since 7E is usually used to indicate the start and end of the message, if 7E appears in the effective content of the non-message start and end, in order to avoid mis-determined frame processing, in this embodiment, when 7E appears in the effective content, The 1 byte 7E is replaced with two bytes of 7D and 5D, and when 7D appears in the payload, the 1 byte 7D is replaced with the two bytes 7D and 5E. Since 1 byte of data is replaced with 2 bytes when replacing, the req signal needs to temporarily stop a clock when 7E or 7D occurs, where one clock is used to extract one byte of data.

步骤 56: HDLC封装模块将物理层封装后的静态报文插入 OTN开销 中。  Step 56: The HDLC encapsulation module inserts the static packet encapsulated by the physical layer into the OTN overhead.

步骤 57: OTN开销模块发送物理层封装后的静态报文。  Step 57: The OTN overhead module sends a static packet encapsulated by the physical layer.

本实施例对静态报文的物理层封装及发送过程进行了描述, 以实现在 物理层通道中对静态报文的发送。  This embodiment describes the physical layer encapsulation and transmission process of the static packet to implement the transmission of static packets in the physical layer channel.

图 7为本发明 OTN开销的发送方法另一实施例的流程示意图, 本实 施例以发送协议报文为例。 参见图 7, 本实施例包括:  FIG. 7 is a schematic flowchart of another embodiment of a method for transmitting an OTN overhead according to the present invention. In this embodiment, a sending protocol packet is taken as an example. Referring to Figure 7, this embodiment includes:

步骤 71 : 协议报文控制模块在要发送协议报文时, 向分时和优先级控 制模块发送指示 (ready )信号。  Step 71: The protocol message control module sends a ready signal to the time sharing and priority control module when the protocol message is to be sent.

步骤 72: 分时和优先级控制模块接收到指示信号后, 在确定能够发送 该协议报文后, 向 HDLC封装模块发送帧头字段和报文类型字段, 以及向 协议报文控制模块获取有效数据, 也就是获取要传输的数据报文。  Step 72: After receiving the indication signal, the time-sharing and priority control module sends a frame header field and a message type field to the HDLC encapsulation module, and obtains valid data from the protocol packet control module after determining that the protocol packet can be sent. , that is, get the data message to be transmitted.

其中, 类似对静态报文的处理, 分时和优先级控制也可以根据当前是 否发送报文和优先级顺序, 确定是否能够发送该协议报文。  Similar to the processing of the static packet, the time-sharing and priority control may also determine whether the protocol packet can be sent according to whether the packet is sent or not.

在确定发送协议报文, 可以首先发送帧头 7E, 再发送表明报文类型 的 mux— type字段, 之后向协议报文控制模块获取有效数据。  After determining the sending protocol packet, the frame header 7E may be sent first, then the mux_type field indicating the packet type is sent, and then the valid data is obtained from the protocol packet control module.

步骤 73: 协议报文控制模块接收到请求信号后, 将协议报文的有效数 据发送给分时和优先级控制模块并同步给出有效信号, 以及协议报文控制 模块在发送完有效数据后, 给出无效信号。  Step 73: After receiving the request signal, the protocol message control module sends the valid data of the protocol message to the time sharing and priority control module and synchronously gives a valid signal, and after the protocol message control module sends the valid data, Give an invalid signal.

其中, 本实施例中的有效数据是已完成协议层封装的报文, 例如为完 成 GCC协议封装的 GCC协议报文, 或者为按照 1588协议完成协议层封 装的 1588协议报文等。 步骤 74:分时和优先级控制模块将接收的静态报文的有效数据发送给 HDLC封装模块。 The valid data in this embodiment is a packet that has been encapsulated by the protocol layer, for example, a GCC protocol packet encapsulated in the GCC protocol, or a 1588 protocol packet encapsulated in the protocol layer according to the 1588 protocol. Step 74: The time-sharing and priority control module sends the valid data of the received static packet to the HDLC encapsulation module.

步骤 75: HDLC封装模块对接收的数据进行物理层封装。  Step 75: The HDLC encapsulation module performs physical layer encapsulation on the received data.

例如, 在物理层封装时, 先封装帧头 7E, 再封装 mux— type, 之后是 有效数据, 再之后当接收到无效信号时继续封装 HDLC的 CRC16校验位 (该位可以具体包括 crch和 crcl ) , 之后紧跟帧尾标记 7E。 此时, 一个 完整的 HDLC 4艮文完成发送, 进入下一个循环中。  For example, in the physical layer encapsulation, the frame header 7E is encapsulated first, then the mux_type is encapsulated, followed by the valid data, and then the CRC16 check bit of the HDLC is continuously encapsulated when the invalid signal is received (this bit may specifically include crch and crcl). ), followed by the end of frame mark 7E. At this point, a complete HDLC 4 message is sent and goes to the next cycle.

物理层封装后的协议报文可以参见上述的图 3。  For the protocol packet encapsulated in the physical layer, see Figure 3 above.

类似对静态报文的处理, 如果协议报文的有效数据包括 7E或 7D, 也 可以进行替换处理, 具体过程可以参见静态报文中的相关描述。  Similar to the processing of static packets, if the valid data of the protocol packet includes 7E or 7D, the replacement processing can also be performed. For details, refer to the related description in the static packet.

步骤 76: HDLC封装模块将物理层封装后的静态报文插入 OTN开销 中。  Step 76: The HDLC encapsulation module inserts the static packet encapsulated by the physical layer into the OTN overhead.

步骤 77: OTN开销模块发送物理层封装后的静态报文。  Step 77: The OTN overhead module sends a static packet encapsulated by the physical layer.

本实施例对协议报文的物理层封装及发送过程进行了描述, 以实现在 物理层通道中对协议报文的发送。  This embodiment describes the physical layer encapsulation and transmission process of the protocol packet, so as to implement the transmission of protocol packets in the physical layer channel.

图 8为本发明 OTN开销的接收方法一实施例的流程示意图, 包括: 步骤 81 : 接收 OTN开销的物理层通道中传输的物理层封装后的数据 报文, 所述物理层封装后的数据报文中包含类型字段, 所述物理层通道能 够时分复用不同类型的数据报文, 所述类型字段用于表明所述数据报文的 类型。  FIG. 8 is a schematic flowchart of an OTN overhead receiving method according to an embodiment of the present invention, including: Step 81: Receive a physical layer encapsulated data packet transmitted in a physical layer channel of an OTN overhead, and the physical layer encapsulated datagram The text field includes a type field, and the physical layer channel is capable of time-division multiplexing different types of data packets, and the type field is used to indicate the type of the data packet.

步骤 82: 根据所述类型字段, 对所述数据报文进行接收处理。  Step 82: Perform receiving processing on the data packet according to the type field.

本实施例在传输数据报文时并没有将一个物理层通道固定给一种数 据报文传输, 而是所有类型的数据报文都能够在物理层通道中传输, 那么 不同类型的数据报文就可以分时在同一个物理层通道中传输, 提高使用效 率。 由于物理层通道可以传输任一种类型的数据报文, 可以实现带宽的动 态分配。 在物理层封装时添加数据报文的类型, 可以实现数据报文类型的 扩展。  In this embodiment, when a data packet is transmitted, a physical layer channel is not fixed to a data packet transmission, but all types of data packets can be transmitted in a physical layer channel, and then different types of data packets are transmitted. It can be transmitted in the same physical layer channel in time sharing, improving the efficiency of use. Since the physical layer channel can transmit any type of data message, dynamic allocation of bandwidth can be achieved. The type of data packets is added during physical layer encapsulation to extend the data packet type.

图 9为本发明 OTN开销的接收方法另一实施例的流程示意图, 本实 施例以接收静态报文为例, 本实施例包括:  FIG. 9 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention. This embodiment takes a static packet as an example. This embodiment includes:

步骤 91 : OTN开销模块将物理层通道中传输的数据报文发送给 HDLC 解封装模块。 Step 91: The OTN overhead module sends the data packet transmitted in the physical layer channel to the HDLC. Decapsulate the module.

其中, 该数据报文是已被物理层封装后的数据报文, 且物理层封装字 段中的类型表明该数据报文为静态报文。  The data packet is a data packet encapsulated by the physical layer, and the type in the physical layer encapsulation field indicates that the data packet is a static packet.

步骤 92: HDLC解封装模块对接收的数据报文进行解封装, 获取类型 字段, 在类型字段表明为静态报文时, 向静态报文控制模块发送指示信号 ( ready ) , 并将解封装后的数据报文发送给静态报文控制模块。  Step 92: The HDLC decapsulation module decapsulates the received data packet, obtains a type field, and sends an indication signal (ready) to the static message control module when the type field indicates a static message, and decapsulates the packet. The data packet is sent to the static packet control module.

其中, HDLC解封装模块接收到数据报文, 如果检测到帧头 7E, 则进 入预定帧状态, 继续解析得到非 7E的第一个字节为类型字节, 根据该类 型字节确定数据报文类型为静态报文后, 向静态报文控制模块发送指示信 号, 以启动静态报文控制模块对数据的接收, 以及将解封装后的数据报文 发送给静态报文控制模块。  The HDLC decapsulation module receives the data packet, and if the frame header 7E is detected, enters a predetermined frame state, and continues to parse the first byte of the non- 7E as a type byte, and determines the data packet according to the type byte. After the static packet is sent, the static packet control module sends an indication signal to enable the static packet control module to receive the data, and sends the decapsulated data packet to the static packet control module.

在解封装过程中, 从非 7E字节后的第二个字节开始是静态报文的有 效数据部分。 由于接收的数据不一定准确, 此时可以采用二级緩存的方式 将通过 CRC校验后的数据发送给静态报文控制模块。  In the decapsulation process, the second byte after the non- 7E byte is the valid data portion of the static message. Since the received data is not necessarily accurate, the data that has passed the CRC check can be sent to the static packet control module by using the second level cache.

二级緩存的方式可以是: 首先, 将接收的有效数据(也就是物理层解 封装后的数据报文) 进行暂时緩存, 此时可以称为第一级緩存。 具体的, 从第 2个字节可以获取到对应的通道号 Ci并做锁存, 根据锁存到的 Ci信 息, 可以将即将接收到的数据写入到对应通道对应的地址上。 从报文结构 来看, 第 3个字节对应的是第一个通道的 idl位置, 因此, 接收到的第 3 个字节从 1地址开始存储, 直到接收完毕所有的数据内容。 待接收到最后 一个字节后, 获取当前写 RAM地址, 并在 0地址写入该 RAM地址值, 作为接收侧 total值。  The second level cache may be: First, the received valid data (that is, the physical layer decapsulated data message) is temporarily cached, which may be referred to as a first level cache. Specifically, the corresponding channel number Ci can be obtained from the second byte and latched. According to the latched Ci information, the data to be received can be written to the address corresponding to the corresponding channel. From the packet structure, the third byte corresponds to the idl position of the first channel. Therefore, the received third byte is stored from the 1st address until all the data contents are received. After the last byte is received, the current write RAM address is obtained, and the RAM address value is written at the 0 address as the receiving side total value.

其次, 对第一级緩存后的数据进行 CRC校验;  Secondly, performing CRC check on the data after the first level buffering;

再次, 在校验通过后, HDLC解封装模块向静态报文控制模块发送指 示信号, 并将第一级緩存的数据复制 (copy )给第二级緩存。 具体的, 在 接收有效数据之后,如果再次检测到 7E, 则认为该帧结束,此时判断 CRC 校验结果是否正确。 如果 HDLC CRC校验失败, 则第 1级緩存不会向第 2 级緩存 copy, 如果 HDLC CRC校验正确, 则启动第 1级緩存向第 2级緩 存的 copy, 但 copy过程中需要先读取第 1、 2级緩存的数据, 进行比较, 如果有差异, 则可以给出中断, 是否需要中断, 可以根据实际的应用进行 配置, 如果需要快速发送和接收的数据则需要中断, fast报文可以采用中 断处理方式, slow不需要中断处理方式。 如果没有差异, copy的数据和第 2级是一致相同的数据被覆盖不会带来影响。 同时, 为了保证第 2级緩存 的数据是最新的, 则需要根据计算出的 total值,将大于该值的地址中的数 据写 0, 小于该值的地址中正常写数据。 Again, after the verification is passed, the HDLC decapsulation module sends an indication signal to the static message control module, and copies the first level cached data to the second level cache. Specifically, after receiving the valid data, if 7E is detected again, the frame is considered to be ended, and it is determined whether the CRC check result is correct. If the HDLC CRC check fails, the level 1 cache will not copy to the level 2 cache. If the HDLC CRC check is correct, the level 1 cache is started to copy to the level 2 cache, but the copy process needs to be read first. The data of the first and second level caches are compared. If there is a difference, an interrupt can be given. Whether an interrupt is required can be performed according to the actual application. Configuration, if you need to send and receive data quickly, you need to interrupt, fast packets can use interrupt processing, slow does not need interrupt processing. If there is no difference, the data of copy and the level 2 are the same data. The coverage is not affected. At the same time, in order to ensure that the data of the level 2 cache is up-to-date, it is necessary to write 0 to the data in the address larger than the value according to the calculated total value, and the data is normally written in the address smaller than the value.

在上述 copy过程中, 为了防止 copy过程中第 1级緩存被新接收到的 数据覆盖, 因此该过程中需要做 copy锁存, 即在 copy过程中, 第 1级緩 存不允许写入新的数据内容。  In the above copy process, in order to prevent the level 1 cache from being overwritten by the newly received data during the copy process, a copy latch is required in the process, that is, in the copy process, the level 1 cache is not allowed to write new data. content.

本实施例通过检测报文类型字段, 可以对不同类型的数据报文的正确 接收。  In this embodiment, the packet type field is detected, and different types of data packets can be correctly received.

图 10为本发明 OTN开销的接收方法另一实施例的流程示意图, 本实 施例以接收协议报文为例, 本实施例包括:  10 is a schematic flowchart of another embodiment of a method for receiving an OTN overhead according to the present invention. This embodiment takes a receiving protocol packet as an example. This embodiment includes:

步骤 101 : OTN 开销模块将物理层通道中传输的数据报文发送给 HDLC封装模块。  Step 101: The OTN overhead module sends the data packet transmitted in the physical layer channel to the HDLC encapsulation module.

步骤 102: HDLC解封装模块对接收的数据报文进行解封装, 获取类 型字段, 在类型字段表明为协议报文时, 向协议报文控制模块发送指示信 号 (ready ) , 并将解封装后的数据报文发送给协议报文控制模块。  Step 102: The HDLC decapsulation module decapsulates the received data packet, obtains a type field, and sends an indication signal (ready) to the protocol packet control module when the type field indicates a protocol packet, and decapsulates the packet. The data packet is sent to the protocol packet control module.

与静态报文处理不同的是, HDLC封装模块将有效数据 (非 7E之后 的第 2个字节开始直至 CRC校验之前的数据)发送给协议报文控制模块 后, 协议报文控制模块可以根据自带的 CRC校验机制再对有效数据进行 校验。 其中, HDLC封装模块进行帧尾确定及 CRC校验的内容可以参见 静态报文的相关内容。  Different from the static packet processing, after the HDLC encapsulation module sends the valid data (the data from the second byte after the 7E to the data before the CRC check) to the protocol packet control module, the protocol packet control module can The built-in CRC check mechanism then validates the valid data. The content of the end of the frame and the CRC check of the HDLC encapsulation module can be found in the related content of the static packet.

本实施例通过检测报文类型字段, 可以对不同类型的数据报文的正确 接收。  In this embodiment, the packet type field is detected, and different types of data packets can be correctly received.

进一步的, 上述接收过程中, 如果需要进行 DFX ( design for X ) , 其 中 X例如为维护性、 测试性等, 则在判断 CRC是否校验成功, 或者在统 计收发包个数时, 需要根据 mux— type值, 对同一种类型的数据报文进行 统计。  Further, in the above receiving process, if DFX (design for X) is required, where X is, for example, maintainability, testability, etc., it is determined whether the CRC is successfully verified, or when counting the number of packets to be sent and received, according to mux – type value, which is used to count data packets of the same type.

图 11 为本发明发送装置一实施例的结构示意图, 包括物理层封装模 块 111和 OTN开销模块 112;物理层封装模块 111用于对要传输的数据报 文进行物理层封装, 在物理层封装时添加类型字段, 使得 OTN开销的物 理层通道中能够时分复用不同类型的数据报文, 所述类型字段用于表明所 述要传输的数据报文的类型; OTN开销模块 112用于将物理层封装后的数 据报文在 OTN开销的物理层通道中发送。 11 is a schematic structural diagram of an embodiment of a transmitting apparatus according to the present invention, which includes a physical layer encapsulating module 111 and an OTN overhead module 112. The physical layer encapsulating module 111 is configured to transmit datagrams to be transmitted. The physical layer encapsulation is performed, and the type field is added in the physical layer encapsulation, so that different types of data packets can be time-division multiplexed in the physical layer channel of the OTN overhead, and the type field is used to indicate the data packet to be transmitted. The OTN overhead module 112 is configured to send the data packet encapsulated by the physical layer in a physical layer channel of the OTN overhead.

可选的, 参见图 12, 物理层封装模块 111 可以包括: 报文控制模块 Optionally, referring to FIG. 12, the physical layer encapsulation module 111 may include: a packet control module.

121、 分时和优先级控制模块 122和 HDLC封装模块 123; 所述分时和优 先级控制模块 122用于在接收到报文控制模块 121发送的指示信号后, 向 HDLC封装模块 123发送帧头和所述类型字段, 以及向所述报文控制模块 121请求所述要传输的数据报文, 并将所述要传输的数据报文发送给所述 HDLC封装模块 123 ; 121. The time-sharing and priority control module 122 and the HDLC encapsulation module 123. The time-sharing and priority control module 122 is configured to send a frame header to the HDLC encapsulation module 123 after receiving the indication signal sent by the packet control module 121. And the type field, and the data message to be transmitted to the message control module 121, and the data message to be transmitted is sent to the HDLC encapsulation module 123;

所述报文控制模块 121用于发送所述指示信号; 用于所述分时和优先 级控制模块 122请求所述要传输的数据报文后, 向所述分时和优先级控制 模块 122发送所述要传输的数据报文; 用于发送完所述要传输的数据报文 后,通过所述分时和优先级控制模块 122向所述 HDLC封装模块 123发送 无效信号。  The message control module 121 is configured to send the indication signal, and after the time-sharing and priority control module 122 requests the data message to be transmitted, send the data message to the time-sharing and priority control module 122. The data message to be transmitted is used to send an invalid signal to the HDLC encapsulation module 123 by the time sharing and priority control module 122 after the data message to be transmitted is sent.

所述 HDLC封装模块 123用于在接收到无效信号后, 生成 CRC校验 字段和 HDLC帧尾, 并按照所述 HDLC帧头、 所述类型字段、 所述要传 输的数据报文、 所述 CRC字段、 所述 HDLC帧尾的顺序进行封装, 所述 无效信号是所述报文控制模块 121在发送完有效数据后发送的。  The HDLC encapsulating module 123 is configured to generate a CRC check field and an HDLC frame tail after receiving the invalid signal, and according to the HDLC frame header, the type field, the data packet to be transmitted, and the CRC The field and the sequence of the HDLC frame are encapsulated, and the invalid signal is sent by the message control module 121 after the valid data is sent.

可选的, 所述报文控制模块 121具体包括:  Optionally, the packet control module 121 specifically includes:

第一控制子模块, 用于发送所述指示信号;  a first control submodule, configured to send the indication signal;

第二控制子模块, 用于所述分时和优先级控制模块请求所述要传输的 数据报文后, 向所述分时和优先级控制模块发送所述要传输的数据报文; 第三控制子模块,用于发送完所述要传输的数据报文后,向所述 HDLC 封装模块发送所述无效信号。  a second control sub-module, configured to send the data message to be transmitted to the time-sharing and priority control module after the time-sharing and priority control module requests the data message to be transmitted; The control submodule is configured to send the invalid signal to the HDLC encapsulating module after transmitting the data packet to be transmitted.

可选的, 所述要传输的数据报文为静态报文, 所述第一控制子模块具 体包括:  Optionally, the data packet to be transmitted is a static packet, and the first control submodule includes:

第一静态报文控制模块, 用于在发送周期到达后, 依次巡检所述要传 输的数据报文的每个通道, 并在通道的字节总数不为 0时, 向所述分时和 优先级控制模块 121发送所述指示信号。 可选的, 所述第二控制子模块具体包括: a first static packet control module, configured to patrol each channel of the data packet to be transmitted in sequence after the sending period is reached, and when the total number of bytes of the channel is not 0, to the time sharing and The priority control module 121 transmits the indication signal. Optionally, the second control submodule specifically includes:

第二静态报文控制模块, 用于所述分时和优先级控制模块请求所述要 传输的数据报文后, 依次读取所述要传输的数据报文的各通道的数据, 将 通道号和通道中的数据发送给所述分时和优先级控制模块。  a second static message control module, configured to: after the time-sharing and priority control module requests the data message to be transmitted, sequentially read data of each channel of the data message to be transmitted, and set a channel number And the data in the channel is sent to the time sharing and priority control module.

可选的, 所述要传输的数据报文包括至少一个通道; 每个通道包括通 道的字节总数和通道数据; 所述通道数据包括至少一个子通道; 所述子通 道包括子通道的数据类型、 子通道的字节总数和子通道数据。  Optionally, the data message to be transmitted includes at least one channel; each channel includes a total number of bytes of the channel and channel data; the channel data includes at least one subchannel; and the subchannel includes a data type of the subchannel. , the total number of bytes of the subchannel and the subchannel data.

可选的, 所述要传输的数据报文为协议报文, 所述第一控制子模块具 体包括:  Optionally, the data packet to be transmitted is a protocol packet, and the first control submodule includes:

第一协议报文控制模块, 用于在获取已完成协议封装的数据报文后, 向所述分时和优先级控制模块发送所述指示信号。  The first protocol packet control module is configured to send the indication signal to the time sharing and priority control module after acquiring the data packet encapsulated by the completed protocol.

可选的, 所述第二控制子模块具体包括:  Optionally, the second control submodule specifically includes:

第二协议报文控制模块, 用于所述分时和优先级控制模块请求所述要 传输的数据报文后, 将所述已完成协议封装的数据报文发送给分时和优先 级控制模块。  a second protocol message control module, configured to send, by the time-sharing and priority control module, the data packet to be transmitted to the time-sharing and priority control module .

本实施例通过将要传输的数据报文进行物理层封装, 将物理层封装后 的数据报文在物理层通道中传输, 而不是将物理层通道固定限制为传输某 一种数据报文, 这样就可以实现不同类型的数据报文能够时分复用同一个 物理层通道, 提高物理层通道的使用效率, 并且可以实现物理层通道的动 态分配, 通过封装报文类型, 可以对数据报文的类型进行扩展。  In this embodiment, the physical layer encapsulation of the data packet to be transmitted is performed in the physical layer channel, instead of restricting the physical layer channel to a certain type of data packet. Different types of data packets can be used to time-multiplex the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate the physical layer channel. By encapsulating the packet type, the type of the data packet can be performed. Expansion.

图 13为本发明接收装置一实施例的结构示意图, 包括 OTN开销模块 131和物理层解封装模块 132; OTN开销模块 131用于接收 OTN开销的物 理层通道中传输的物理层封装后的数据报文, 所述物理层封装后的数据报 文中包含类型字段, 所述物理层通道中能够时分复用不同类型的数据报 文, 所述类型字段用于表明所述数据报文的类型; 物理层解封装模块 132 用于根据所述类型字段对所述数据报文进行接收处理。  FIG. 13 is a schematic structural diagram of an embodiment of a receiving apparatus according to the present invention, including an OTN overhead module 131 and a physical layer decapsulation module 132. The OTN overhead module 131 is configured to receive a physical layer encapsulated datagram transmitted in a physical layer channel of an OTN overhead. The data packet encapsulated by the physical layer includes a type field, and the physical layer channel is capable of time-division multiplexing different types of data packets, where the type field is used to indicate the type of the data packet; The layer decapsulation module 132 is configured to perform receiving processing on the data packet according to the type field.

可选的, 所述类型字段表明所述数据报文为静态报文, 所述物理层解 封装模块 132具体包括: 第一 HDLC解封装模块和第一报文控制模块; 所述第一 HDLC解封装模块,用于对所述物理层封装后的数据报文进 行解封装, 获取所述类型字段和所述数据报文, 并将所述数据报文进行緩 存; 用于对緩存的数据报文进行 CRC处理; 用于在 CRC校验成功后, 向 所述第一报文控制模块发送指示信号, 并将所述緩存的数据报文发送给所 述第一报文控制模块; Optionally, the type field indicates that the data packet is a static packet, and the physical layer decapsulation module 132 specifically includes: a first HDLC decapsulation module and a first packet control module; The encapsulating module is configured to decapsulate the data packet encapsulated by the physical layer, obtain the type field and the data packet, and delay the data packet The method is configured to perform CRC processing on the buffered data packet, and configured to send an indication signal to the first packet control module after the CRC is successfully verified, and send the cached data packet to the first a message control module;

所述第一报文控制模块, 用于接收到所述指示信号后, 接收所述第一 HDLC解封装模块发送的所述緩存的数据报文。  The first packet control module is configured to receive the cached data packet sent by the first HDLC decapsulation module after receiving the indication signal.

可选的, 所述类型字段表明所述数据报文为协议报文, 所述物理层解 封装模块具体包括第二 HDLC解封装模块和第二报文控制模块;  Optionally, the type field indicates that the data packet is a protocol packet, and the physical layer decapsulation module specifically includes a second HDLC decapsulation module and a second packet control module.

所述第二 HDLC解封装模块,用于对所述物理层封装后的数据报文进 行解封装, 获取所述类型字段和所述数据报文, 向所述第二报文控制模块 发送指示信号, 并将所述数据报文发送给所述第二报文控制模块;  The second HDLC decapsulation module is configured to decapsulate the data packet encapsulated by the physical layer, obtain the type field and the data packet, and send an indication signal to the second packet control module. And sending the data packet to the second packet control module;

所述第二报文控制模块, 用于接收到所述指示信号后, 接收所述第二 The second packet control module is configured to receive the second signal after receiving the indication signal

HDLC解封装模块发送的所述数据报文。 The data packet sent by the HDLC decapsulation module.

本实施例通过将要传输的数据报文进行物理层封装, 将物理层封装后 的数据报文在物理层通道中传输, 而不是将物理层通道固定限制为传输某 一种数据报文, 这样就可以实现不同类型的数据报文能够时分复用同一个 物理层通道, 提高物理层通道的使用效率, 并且可以实现物理层通道的动 态分配, 通过封装报文类型, 可以对数据报文的类型进行扩展。  In this embodiment, the physical layer encapsulation of the data packet to be transmitted is performed in the physical layer channel, instead of restricting the physical layer channel to a certain type of data packet. Different types of data packets can be used to time-multiplex the same physical layer channel, improve the efficiency of the physical layer channel, and dynamically allocate the physical layer channel. By encapsulating the packet type, the type of the data packet can be performed. Expansion.

上述发送设备和接收设备的实施例, 其各模块的具体实施过程及各模 块之间的信息交互等内容, 由于与本发明方法实施例基于同一发明构思, 可以参见方法实施例, 这里不再详细描述。  The embodiments of the foregoing sending device and the receiving device, the specific implementation process of each module, and the information interaction between the modules, etc., are based on the same inventive concept as the method embodiment of the present invention, and may be referred to the method embodiment. description.

本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程 序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 书 claims 1、 一种光传送网 (0TN ) 开销的发送方法, 其特征在于, 包括: 对要传输的数据报文进行物理层封装, 在物理层封装时添加类型字 段, 使得 OTN开销的物理层通道中能够时分复用不同类型的数据报文, 所述类型字段用于表明所述要传输的数据报文的类型; 1. A method for sending optical transport network (OTN) overhead, which is characterized by: performing physical layer encapsulation of the data message to be transmitted, and adding a type field when encapsulating the physical layer, so that the OTN overhead is included in the physical layer channel Able to time-division multiplex data packets of different types, and the type field is used to indicate the type of data packet to be transmitted; 将物理层封装后的数据报文在 OTN开销的物理层通道中发送。 The physical layer encapsulated data packet is sent in the physical layer channel of the OTN overhead. 2、 根据权利要求 1 所述的方法, 其特征在于, 所述对要传输的数据 报文进行物理层封装, 在物理层封装时添加类型字段, 具体包括: 2. The method according to claim 1, characterized in that, the data message to be transmitted is physically encapsulated, and a type field is added during physical layer encapsulation, specifically including: 报文控制模块发送指示信号; The message control module sends indication signals; 分时和优先级控制模块接收到所述指示信号后, 向高级数据链路控制 After receiving the instruction signal, the time sharing and priority control module sends a message to the advanced data link control module. ( HDLC )封装模块发送 HDLC帧头和所述类型字段; (HDLC) encapsulation module sends HDLC frame header and the type field; 分时和优先级控制模块向报文控制模块请求所述要传输的数据报文, 并将所述要传输的数据报文发送给 HDLC封装模块; The time sharing and priority control module requests the data message to be transmitted from the message control module, and sends the data message to be transmitted to the HDLC encapsulation module; HDLC封装模块在接收到无效信号后, 生成循环冗余校验(CRC ) 字 段和 HDLC帧尾, 并按照所述 HDLC帧头、 所述类型字段、 所述要传输 的数据报文、 所述 CRC字段、 所述 HDLC帧尾的顺序进行封装, 所述无 效信号是报文控制模块在发送完所述要传输的数据报文后发送的。 After receiving the invalid signal, the HDLC encapsulation module generates a cyclic redundancy check (CRC) field and an HDLC frame tail, and performs the following steps according to the HDLC frame header, the type field, the data message to be transmitted, and the CRC Fields and the sequence of the HDLC frame tail are encapsulated, and the invalid signal is sent by the message control module after sending the data message to be transmitted. 3、 根据权利要求 2所述的方法, 其特征在于, 所述要传输的数据报 文为静态报文, 所述报文控制模块发送指示信号, 具体包括: 3. The method according to claim 2, characterized in that the data message to be transmitted is a static message, and the message control module sends an indication signal, specifically including: 报文控制模块在发送周期到达后, 依次巡检所述要传输的数据报文的 每个通道, 并在通道的字节总数不为 0时, 向分时和优先级控制模块发送 所述指示信号。 After the transmission cycle arrives, the message control module sequentially inspects each channel of the data message to be transmitted, and when the total number of bytes in the channel is not 0, sends the instruction to the time sharing and priority control module Signal. 4、 根据权利要求 3 所述的方法, 其特征在于, 所述分时和优先级控 制模块向报文控制模块请求所述要传输的数据报文, 具体包括: 4. The method according to claim 3, characterized in that the time sharing and priority control module requests the data message to be transmitted from the message control module, specifically including: 分时和优先级控制模块向报文控制模块发送请求信号; The time sharing and priority control module sends request signals to the message control module; 报文控制模块接收到所述请求信号后 , 依次读取所述要传输的数据报 文的各通道的数据, 将通道号和通道中的数据发送给分时和优先级控制模 块。 After receiving the request signal, the message control module sequentially reads the data of each channel of the data message to be transmitted, and sends the channel number and data in the channel to the time sharing and priority control module. 5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述要传输的 数据报文包括至少一个通道; 每个通道包括通道的字节总数和通道数据; 所述通道数据包括至少一个子通道; 所述子通道包括子通道的数据类型、 子通道的字节总数和子通道数据。 5. The method according to any one of claims 1 to 4, characterized in that: the data message to be transmitted includes at least one channel; each channel includes the total number of bytes of the channel and channel data; The channel data includes at least one sub-channel; the sub-channel includes the data type of the sub-channel, the total number of bytes of the sub-channel and the sub-channel data. 6、 根据权利要求 2所述的方法, 其特征在于, 所述要传输的数据报 文为协议报文, 所述报文控制模块发送指示信号, 具体包括: 6. The method according to claim 2, characterized in that the data message to be transmitted is a protocol message, and the message control module sends an indication signal, specifically including: 报文控制模块在获取已完成协议封装的数据报文后, 向分时和优先级 控制模块发送所述指示信号。 After obtaining the data message that has completed protocol encapsulation, the message control module sends the instruction signal to the time sharing and priority control module. 7、 根据权利要求 6所述的方法, 其特征在于, 所述分时和优先级控 制模块向报文控制模块请求所述要传输的数据报文, 具体包括: 7. The method according to claim 6, characterized in that the time sharing and priority control module requests the data message to be transmitted from the message control module, specifically including: 分时和优先级控制模块向报文控制模块发送请求信号; The time sharing and priority control module sends request signals to the message control module; 报文控制模块接收到所述请求信号后, 将所述已完成协议封装的数据 报文发送给分时和优先级控制模块。 After receiving the request signal, the message control module sends the protocol-encapsulated data message to the time sharing and priority control module. 8、 一种光传送网 (OTN ) 开销的接收方法, 其特征在于, 包括: 接收 OTN开销的物理层通道中传输的物理层封装后的数据报文, 所 述物理层封装后的数据报文中包含类型字段, 所述物理层通道中能够时分 复用不同类型的数据报文, 所述类型字段用于表明所述数据报文的类型; 根据所述类型字段对所述数据报文进行接收处理。 8. A method for receiving optical transport network (OTN) overhead, characterized by comprising: receiving a physical layer encapsulated data message transmitted in a physical layer channel of the OTN overhead, the physical layer encapsulated data message contains a type field, the physical layer channel can time-division multiplex data packets of different types, the type field is used to indicate the type of the data packet; the data packet is received according to the type field deal with. 9、 根据权利要求 8 所述的方法, 其特征在于, 所述类型字段表明所 述数据报文为静态报文, 所述根据所述类型字段对所述数据报文进行接收 处理, 具体包括: 9. The method according to claim 8, wherein the type field indicates that the data message is a static message, and the receiving and processing of the data message according to the type field specifically includes: 高级数据链路控制 (HDLC ) 解封装模块对所述物理层封装后的数据 报文进行解封装, 获得所述类型字段和所述数据报文, 并将所述数据报文 进行緩存; The high-level data link control (HDLC) decapsulation module decapsulates the physical layer encapsulated data message, obtains the type field and the data message, and caches the data message; HDLC解封装模块对緩存的数据报文进行循环冗余校验( CRC )处理; HDLC解封装模块在 CRC校验成功后, 向报文控制模块发送指示信 号, 并将所述緩存的数据报文发送给报文控制模块。 The HDLC decapsulation module performs cyclic redundancy check (CRC) processing on the cached data message; after the CRC verification is successful, the HDLC decapsulation module sends an indication signal to the message control module and stores the cached data message. Sent to the message control module. 10、 根据权利要求 8所述的方法, 其特征在于, 所述类型字段表明所 述数据报文为协议报文, 所述根据所述类型字段对所述数据报文进行接收 处理, 具体包括: 10. The method according to claim 8, characterized in that, the type field indicates that the data message is a protocol message, and the receiving and processing of the data message according to the type field specifically includes: 高级数据链路控制 (HDLC ) 解封装模块对所述物理层封装后的数据 报文进行解封装, 获得所述类型字段和所述数据报文; HDLC解封装模块向报文控制模块发送指示信号, 并将所述数据报文 发送给报文控制模块。 The high-level data link control (HDLC) decapsulation module decapsulates the physical layer encapsulated data message and obtains the type field and the data message; The HDLC decapsulation module sends an indication signal to the message control module, and sends the data message to the message control module. 11、 一种发送装置, 其特征在于, 包括: 11. A sending device, characterized in that it includes: 物理层封装模块, 用于对要传输的数据报文进行物理层封装, 在物理 层封装时添加类型字段, 使得光传送网 (OTN )开销的物理层通道中能够 时分复用不同类型的数据报文, 所述类型字段用于表明所述要传输的数据 报文的类型; The physical layer encapsulation module is used to physically encapsulate the data packets to be transmitted, and adds a type field when encapsulating the physical layer, so that different types of data packets can be time-division multiplexed in the physical layer channel of the optical transport network (OTN) overhead. The type field is used to indicate the type of the data message to be transmitted; OTN开销模块, 用于将物理层封装后的数据报文在 OTN开销的物理 层通道中发送。 The OTN overhead module is used to send the physical layer encapsulated data packets in the physical layer channel of the OTN overhead. 12、 根据权利要求 11 所述的装置, 其特征在于, 所述物理层封装模 块具体包括分时和优先级控制模块、 报文控制模块和高级数据链路控制 ( HDLC )封装模块: 12. The device according to claim 11, wherein the physical layer encapsulation module specifically includes a time sharing and priority control module, a message control module and a high-level data link control (HDLC) encapsulation module: 所述分时和优先级控制模块, 用于在接收到所述报文控制模块发送的 指示信号后, 向所述 HDLC封装模块发送 HDLC帧头和所述类型字段, 以及向所述报文控制模块请求所述要传输的数据报文, 并将所述要传输的 数据报文发送给所述 HDLC封装模块; The time sharing and priority control module is configured to, after receiving the instruction signal sent by the message control module, send the HDLC frame header and the type field to the HDLC encapsulation module, and send the message control module The module requests the data packet to be transmitted and sends the data packet to be transmitted to the HDLC encapsulation module; 所述报文控制模块, 用于发送所述指示信号; 用于所述分时和优先级 控制模块请求所述要传输的数据报文后 , 向所述分时和优先级控制模块发 送所述要传输的数据报文; 用于发送完所述要传输的数据报文后, 通过所 述分时和优先级控制模块向所述 HDLC封装模块发送无效信号; The message control module is used to send the indication signal; and is used to send the time sharing and priority control module to the time sharing and priority control module after requesting the data message to be transmitted. The data message to be transmitted; used to send an invalid signal to the HDLC encapsulation module through the time sharing and priority control module after sending the data message to be transmitted; 所述 HDLC封装模块, 用于在接收到所述无效信号后, 生成循环冗余 校验(CRC ) 字段和 HDLC帧尾, 并按照所述 HDLC帧头、 所述类型字 段、 所述要传输的数据报文、 所述 CRC字段、 所述 HDLC帧尾的顺序进 行封装。 The HDLC encapsulation module is configured to generate a cyclic redundancy check (CRC) field and an HDLC frame tail after receiving the invalid signal, and generate the HDLC frame header, the type field, and the data to be transmitted according to the HDLC frame header. The data packet, the CRC field, and the HDLC frame tail are encapsulated in this order. 13、 根据权利要求 12所述的装置, 其特征在于, 所述报文控制模块 具体包括: 13. The device according to claim 12, characterized in that the message control module specifically includes: 第一控制子模块, 用于发送所述指示信号; The first control submodule is used to send the indication signal; 第二控制子模块, 用于所述分时和优先级控制模块请求所述要传输的 数据报文后, 向所述分时和优先级控制模块发送所述要传输的数据报文; 第三控制子模块,用于发送完所述要传输的数据报文后,向所述 HDLC 封装模块发送所述无效信号。 The second control submodule is used to send the data message to be transmitted to the time sharing and priority control module after the time sharing and priority control module requests the data message to be transmitted; third The control submodule is used to send the data message to the HDLC after sending the data message to be transmitted. The encapsulation module sends the invalid signal. 14、 根据权利要求 13 所述的装置, 其特征在于, 所述要传输的数据 报文为静态报文, 所述第一控制子模块具体包括: 14. The device according to claim 13, wherein the data message to be transmitted is a static message, and the first control submodule specifically includes: 第一静态报文控制模块, 用于在发送周期到达后, 依次巡检所述要传 输的数据报文的每个通道, 并在通道的字节总数不为 0时, 向所述分时和 优先级控制模块发送所述指示信号。 The first static message control module is used to sequentially inspect each channel of the data message to be transmitted after the transmission cycle arrives, and when the total number of bytes of the channel is not 0, send the time-sharing and The priority control module sends the indication signal. 15、 根据权利要求 13 所述的装置, 其特征在于, 所述第二控制子模 块具体包括: 15. The device according to claim 13, characterized in that the second control sub-module specifically includes: 第二静态报文控制模块, 用于所述分时和优先级控制模块请求所述要 传输的数据报文后, 依次读取所述要传输的数据报文的各通道的数据, 将 通道号和通道中的数据发送给所述分时和优先级控制模块。 The second static message control module is used to sequentially read the data of each channel of the data message to be transmitted after the time sharing and priority control module requests the data message to be transmitted, and change the channel number And the data in the channel is sent to the time sharing and priority control module. 16、 根据权利要求 11-15任一项所述的装置, 其特征在于, 所述要传 输的数据报文包括至少一个通道; 每个通道包括通道的字节总数和通道数 据; 所述通道数据包括至少一个子通道; 所述子通道包括子通道的数据类 型、 子通道的字节总数和子通道数据。 16. The device according to any one of claims 11 to 15, characterized in that: the data message to be transmitted includes at least one channel; each channel includes the total number of bytes of the channel and channel data; the channel data It includes at least one sub-channel; the sub-channel includes the data type of the sub-channel, the total number of bytes of the sub-channel and the sub-channel data. 17、 根据权利要求 12所述的装置, 其特征在于, 所述要传输的数据 报文为协议报文, 所述第一控制子模块具体包括: 17. The device according to claim 12, wherein the data message to be transmitted is a protocol message, and the first control submodule specifically includes: 第一协议报文控制模块, 用于在获取已完成协议封装的数据报文后, 向所述分时和优先级控制模块发送所述指示信号。 The first protocol message control module is configured to send the indication signal to the time sharing and priority control module after acquiring the data message that has completed protocol encapsulation. 18、 根据权利要求 17所述的装置, 其特征在于, 所述第二控制子模 块具体包括: 18. The device according to claim 17, characterized in that the second control sub-module specifically includes: 第二协议报文控制模块, 用于所述分时和优先级控制模块请求所述要 传输的数据报文后, 将所述已完成协议封装的数据报文发送给所述分时和 优先级控制模块。 The second protocol message control module is used to send the data message that has completed protocol encapsulation to the time sharing and priority control module after requesting the data message to be transmitted. control module. 19、 一种接收装置, 其特征在于, 包括: 19. A receiving device, characterized in that it includes: 光传送网 (OTN ) 开销模块, 用于接收 OTN开销的物理层通道中传 输的物理层封装后的数据报文, 所述物理层封装后的数据报文中包含类型 字段, 所述物理层通道中能够时分复用不同类型的数据报文, 所述类型字 段用于表明所述数据报文的类型; Optical transport network (OTN) overhead module, used to receive physical layer encapsulated data messages transmitted in the physical layer channel of OTN overhead. The physical layer encapsulated data messages include a type field, and the physical layer channel Different types of data packets can be time-division multiplexed, and the type field is used to indicate the type of the data packet; 物理层解封装模块, 用于根据所述类型字段对所述数据报文进行接收 处理。 Physical layer decapsulation module, used to receive the data message according to the type field deal with. 20、 根据权利要求 19所述的装置, 其特征在于, 所述类型字段表明 所述数据报文为静态报文, 所述物理层解封装模块具体包括第一高级数据 链路控制 (HDLC ) 解封装模块和第一报文控制模块: 20. The device according to claim 19, wherein the type field indicates that the data message is a static message, and the physical layer decapsulation module specifically includes a first high-level data link control (HDLC) decapsulation module. Encapsulation module and first message control module: 所述第一 HDLC解封装模块,用于对所述物理层封装后的数据报文进 行解封装, 获取所述类型字段和所述数据报文, 并将所述数据报文进行緩 存; 用于对緩存的数据报文进行循环冗余校验( CRC )处理; 用于在 CRC 校验成功后, 向所述第一报文控制模块发送指示信号, 并将所述緩存的数 据报文发送给所述第一报文控制模块; The first HDLC decapsulation module is used to decapsulate the physical layer encapsulated data message, obtain the type field and the data message, and cache the data message; for Perform cyclic redundancy check (CRC) processing on the cached data message; used to send an indication signal to the first message control module after the CRC check is successful, and send the cached data message to The first message control module; 所述第一报文控制模块, 用于接收到所述指示信号后, 接收所述第一 The first message control module is configured to receive the first message after receiving the indication signal. HDLC解封装模块发送的所述緩存的数据报文。 The cached data packet sent by the HDLC decapsulation module. 21、 根据权利要求 19所述的装置, 其特征在于, 所述类型字段表明 所述数据报文为协议报文, 所述物理层解封装模块具体包括第二高级数据 链路控制 (HDLC ) 解封装模块和第二报文控制模块; 21. The device according to claim 19, wherein the type field indicates that the data message is a protocol message, and the physical layer decapsulation module specifically includes a second high-level data link control (HDLC) decapsulation module. Encapsulation module and second message control module; 所述第二 HDLC解封装模块,用于对所述物理层封装后的数据报文进 行解封装, 获取所述类型字段和所述数据报文, 向所述第二报文控制模块 发送指示信号, 并将所述数据报文发送给所述第二报文控制模块; The second HDLC decapsulation module is used to decapsulate the physical layer encapsulated data message, obtain the type field and the data message, and send an indication signal to the second message control module. , and send the data message to the second message control module; 所述第二报文控制模块, 用于接收到所述指示信号后, 接收所述第二 HDLC解封装模块发送的所述数据报文。 The second message control module is configured to receive the data message sent by the second HDLC decapsulation module after receiving the indication signal.
PCT/CN2012/076590 2012-06-07 2012-06-07 Method and device for transmitting and receiving otn overhead Ceased WO2013181826A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280000840.7A CN102835127B (en) 2012-06-07 2012-06-07 The sending, receiving method of OTN expense and device
PCT/CN2012/076590 WO2013181826A1 (en) 2012-06-07 2012-06-07 Method and device for transmitting and receiving otn overhead

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/076590 WO2013181826A1 (en) 2012-06-07 2012-06-07 Method and device for transmitting and receiving otn overhead

Publications (1)

Publication Number Publication Date
WO2013181826A1 true WO2013181826A1 (en) 2013-12-12

Family

ID=47336887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076590 Ceased WO2013181826A1 (en) 2012-06-07 2012-06-07 Method and device for transmitting and receiving otn overhead

Country Status (2)

Country Link
CN (1) CN102835127B (en)
WO (1) WO2013181826A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051023B (en) * 2021-11-11 2023-05-23 烽火通信科技股份有限公司 Method, device, equipment and readable storage medium for processing frame overhead of optical service unit
CN114844740B (en) * 2022-04-29 2024-01-30 东风电驱动系统有限公司 Dual-chip communication method and chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770673A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Spending processing method for service integration in OTN network
CN101815229A (en) * 2009-02-25 2010-08-25 华为技术有限公司 Method and device for service adaptation
CN101860481A (en) * 2010-05-25 2010-10-13 北京邮电大学 A priority-discriminating service transmission method and device in an MPLS-TP over OTN multi-layer network
WO2011095205A1 (en) * 2010-02-02 2011-08-11 Telefonaktiebolaget L M Ericsson (Publ) Traffic differentiation in a transport network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349390C (en) * 2004-08-11 2007-11-14 华为技术有限公司 Method and device for transmitting low-rate service signal in optical transport network
US7869712B2 (en) * 2006-12-05 2011-01-11 Electronics And Telecommunications Research Institute Method and apparatus for increasing transmission capacity in optical transport network
CN101944952B (en) * 2010-09-26 2015-05-20 中兴通讯股份有限公司 Device and method for realizing overhead processing of optical transport network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770673A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Spending processing method for service integration in OTN network
CN101815229A (en) * 2009-02-25 2010-08-25 华为技术有限公司 Method and device for service adaptation
WO2011095205A1 (en) * 2010-02-02 2011-08-11 Telefonaktiebolaget L M Ericsson (Publ) Traffic differentiation in a transport network
CN101860481A (en) * 2010-05-25 2010-10-13 北京邮电大学 A priority-discriminating service transmission method and device in an MPLS-TP over OTN multi-layer network

Also Published As

Publication number Publication date
CN102835127B (en) 2016-02-03
CN102835127A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN112134651B (en) OAM message transmission method, transmission equipment and storage medium
JP6666051B2 (en) Data transmission method, device and system
ES2414634T3 (en) Lossless adjustment method of an ODUflex channel bandwidth and the ODUflex channel
WO2019071870A1 (en) Method for transmitting data in optical network and optical network device
CN112583477B (en) A delay measurement method, system and storage medium
US10884972B2 (en) Communication systems with serial peripheral interface functionality
WO2014153784A1 (en) Method, apparatus, and system for transmitting data in ethernet
JP2016528752A (en) Method and apparatus for processing signaling data between layers in IP-based digital broadcasting system
WO2013117030A1 (en) Method and device for transmitting/receiving data
WO2019076046A1 (en) Transmission path configuration method, apparatus, and device
CN113574826B (en) Method and device for exchanging clock synchronization messages
CN103825841A (en) Ethernet message sequencing method and device
CN113454935A (en) Line coding method and device
CN102457441B (en) PSN (Packet Switched Network) data packet processing method and device
CN104618057B (en) A kind of Packet Transport Network not damaged protection reverse method and system
KR102309444B1 (en) Data encapsulation, transmission methods, devices and computer storage media
WO2010025628A1 (en) Method, equipment and system for data transmission on physical layer.
WO2013181826A1 (en) Method and device for transmitting and receiving otn overhead
CN111082957B (en) Port configuration detection method, terminal and computer-readable storage medium
CN103634229B (en) A kind of Inter-chip communication method and control device
CN102546112B (en) Data packaging method and device
WO2024244466A1 (en) Data transmission method, apparatus and system
CN101729188B (en) Send and receive the method for mapping cost, device
WO2011160489A1 (en) Board-to-board information transferring method and device
CN116582412A (en) Method, device and medium for OTN cross-chip sending and receiving overhead and request

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280000840.7

Country of ref document: CN

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

Ref document number: 12878423

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

Country of ref document: EP

Kind code of ref document: A1