WO2023231429A1 - Data transmission method, source end device, sink end device and storage medium - Google Patents

Data transmission method, source end device, sink end device and storage medium Download PDF

Info

Publication number
WO2023231429A1
WO2023231429A1 PCT/CN2023/073626 CN2023073626W WO2023231429A1 WO 2023231429 A1 WO2023231429 A1 WO 2023231429A1 CN 2023073626 W CN2023073626 W CN 2023073626W WO 2023231429 A1 WO2023231429 A1 WO 2023231429A1
Authority
WO
WIPO (PCT)
Prior art keywords
code block
packet
information
extension
byte
Prior art date
Application number
PCT/CN2023/073626
Other languages
French (fr)
Chinese (zh)
Inventor
童玲玲
张源斌
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023231429A1 publication Critical patent/WO2023231429A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • This application relates to the field of communication technology, in particular to a data transmission method, source device, sink device and storage medium.
  • Optical transport network is a type of network that refers to a transport network that realizes the transmission, multiplexing, routing, and monitoring of business signals in the optical domain and ensures its performance indicators and survivability.
  • the embodiments of this application provide a data transmission method, a source device, a sink device, and a storage medium, which can realize transparent transmission mapping of Ethernet service flows through the OTN interface.
  • embodiments of the present application provide a data transmission method, which is applied to the source device of the OTN network.
  • the method includes:
  • embodiments of the present application also provide a data transmission method, which is applied to the sink device of the OTN network.
  • the method includes:
  • Gap quantity information
  • an Ethernet data stream is obtained.
  • embodiments of the present application also provide a data transmission method, applied to an OTN network.
  • the OTN network includes a source device and a sink device that communicate with each other.
  • the method includes:
  • the source device executes the data transmission method as described in the first aspect to send the OTN data stream;
  • the sink device executes the data transmission method described in the second aspect to receive and parse the OTN data stream.
  • embodiments of the present application further provide a source device, including: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, where the first When the processor executes the computer program, the data transmission method as described in the first aspect is implemented.
  • embodiments of the present application further provide a sink device, including: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor, where the processor executes the Implement the following computer program:
  • embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute:
  • the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information according to the statistical results, encodes the service data packet according to the first encoding method, and expands
  • the first information code block used to carry the packet gap number information forms the first encoded data, realizing compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate, making the Ethernet service flow rate and OTN Interface rate matching achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
  • Figure 1 is a schematic diagram of an implementation environment for executing a data transmission method provided by an embodiment of the present application
  • Figure 2 is a flow chart of a data transmission method for a source device provided by an embodiment of the present application
  • Figure 3 is a schematic structural diagram of S code blocks, extended I code blocks, and standard I code blocks provided by an embodiment of the present application;
  • Figure 4 is a flow chart of a data transmission method for a source device provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a data transmission method for a source device provided by another embodiment of the present application.
  • Figure 6 is a schematic diagram of the specific processing mapping flow of the source device provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of the first encoded data structure provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of the specific processing mapping flow of the source device provided by another embodiment of the present application.
  • Figure 9 is a schematic diagram of the first encoded data structure provided by another embodiment of the present application.
  • Figure 10 is a flow chart of a data transmission method applied to a sink device provided by another embodiment of the present application.
  • Figure 11 is a flow chart of a data transmission method applied to an OTN network provided by an embodiment of the present application.
  • Optical transport network is a type of network that refers to a transport network that realizes the transmission, multiplexing, routing, and monitoring of business signals in the optical domain and ensures its performance indicators and survivability.
  • embodiments of the present application provide a data transmission method, a source device, a sink device, and a storage medium.
  • the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information according to the statistical results, encodes the service data packet according to the first encoding method, and expands it to carry all the packet gap information.
  • the first information code block describing the packet gap number information forms the first encoded data, which realizes the compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate and making the Ethernet service flow rate match the OTN interface rate. This achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
  • Figure 1 is a schematic diagram of an implementation environment for executing a data transmission method provided by an embodiment of the present application.
  • the implementation environment includes but is not limited to the source device 110 and the sink device 120 , where the sink device 120 and the source device 110 can transmit, receive, and interact with each other optical signals.
  • the relative positions and quantities of the sink device 120 and the source device 110 can be set accordingly in specific application scenarios.
  • the source device 110 can send optical signals to the outside, and the sink device 120 can receive the source device.
  • the optical signal emitted by the device 110 can be understood as if there are multiple sink devices 120 and different sink devices 120 are set up in the above manner, so that the optical signals sent by the source device 110 can be received at different spatial locations. It is worth noting that the spatial location here can be different geographical conditions.
  • the implementation environment may also include but is not limited to the second receiving end 130 , where the sink device 120 and the second receiving end 130 may transmit and receive wireless signals and related interactions.
  • the number of the second receiving end 130 is not limited, and can be one or more. Specifically, it can be set according to the actual application scenario requirements of those skilled in the art. That is to say, the sink device 120 can communicate with a second receiving end. The receiving end 130 interacts alone or interacts with multiple second receiving ends 130 respectively, which does not affect the functional application of the sink device 120 .
  • the source device 110 is communicatively connected to the source Ethernet network 210 and can receive data streams from the Ethernet network.
  • the source device 110 at least determines the first network coding method for the source data packet according to the preconfigured first network coding parameter, and encodes the source data packet according to the first network coding method to obtain the first coded data, and encapsulates it to form an OTN. data flow, and functions such as sending OTN data flow to the sink device 120.
  • the sink device 120 communicates with the sink Ethernet network 220 and has at least the functions of receiving the OTN data stream sent by the source device 110 and processing the OTN data stream, where the OTN data stream is
  • the source device 110 codes and processes the source data packet according to the first network coding method for the source data packet.
  • the first network coding method is determined by the source device 110 according to the preconfigured first network coding parameter.
  • the embodiments of the present application can be applied to the scenario of reusing Ethernet modules for short-distance OTN interfaces, and can also be used in the scenario of reusing Ethernet modules for long-distance OTN interfaces.
  • the embodiments of the present application are not limited to this.
  • the embodiments of the present application can be applied to OTN networks of various rates, such as B100G, B200G or B400G, which are not limited in the embodiments of the present application.
  • the OTN network may be a FlexO (Flexible OTN, Flexible Optical Transport Network) network or other OTN networks, which is not limited in the embodiments of this application.
  • FlexO Flexible OTN, Flexible Optical Transport Network
  • Figure 3 is a flow chart of a data transmission method provided by an embodiment of the present application.
  • the execution subject of the data transmission method in this embodiment can be, but is not limited to, the source device 110 in the embodiment shown in Figure 1, or those skilled in the art can choose to set up corresponding execution according to the actual application scenario.
  • the main body is not limited in this embodiment.
  • the source device is used as the execution subject of the data transmission method in the following relevant embodiments, but this should not be understood as a limitation on the embodiments of the present application.
  • the data transmission method may include but is not limited to steps S1100 to S1600:
  • Step S1100 Obtain the Ethernet data stream.
  • Step S1200 Obtain multiple service data packets according to the Ethernet data flow
  • Step S1300 count and delete packet gap information between adjacent service data packets, and form packet gap quantity information based on the statistical results
  • Step S1400 encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information to form the first encoded data;
  • Step S1500 map the first encoded data to the OTN data stream
  • Step S1600 Send the OTN data stream.
  • the Ethernet data stream may be a data stream from the sink Ethernet network 210 .
  • the Ethernet data stream can be parsed to obtain service data packets.
  • the Ethernet data stream may be a PCS (Physical Coding Sublayer) data stream.
  • the source device receives the data link layer from the sink Ethernet network 210 by executing step S1100. Ethernet data flow, and perform step S1200 to parse the PCS data flow to obtain service data packets, that is, MAC data packets.
  • Ethernet service flows are mapped to FlexO networks, such as B100G OTN.
  • Large-grained Ethernet service flows such as N channels of 100G or 1 channel of N*100G Ethernet service flows, are usually 64B/66B encoded or 256B/257B transcoded, and then encoded in bits.
  • Multi-level OPU (Optical Channel Payload Unit) mapping is performed in streaming mode, such as first mapping to OPU4 or OPUflex, then mapping to OPUC, and finally mapping to the FlexO interface.
  • the FlexO interface rate is about 5% higher than the Ethernet rate due to the increased OAM and mapping multiplexing overhead of OPU, OPUC and FlexO.
  • the Ethernet service flow can be directly mapped and multiplexed into the payload of the OTN data flow to reduce mapping and multiplexing overhead.
  • the FlexO interface rate needs to be reduced by about 5%.
  • the multi-level OPU mapping can be removed, that is, the Ethernet service flow is directly mapped and multiplexed into the payload of the FlexO data flow.
  • the Preamble in the S code block can be used to carry Ethernet MAC data.
  • the maximum payload rate of FlexO data flow is 100.1953125G. If Ethernet service flows are directly mapped, the PCS rate needs to be at least 100.2930G, which cannot meet the demand. Analyze the support of pure MAC data packet rates from the minimum 64 bytes to the maximum 9600 bytes of MAC data packets.
  • the rate of 64-byte MAC data packets after standard 64b encoding expansion can reach 105G, regardless of the specific transcoding situation.
  • the payload rate of the FlexO data stream is exceeded.
  • the 9591-byte MAC data packet has a maximum rate of 99.8855G after standard 64b encoding expansion, and a rate of 100.178181G after 1024B/1027B transcoding.
  • IPG Inter Packet Gap, inter-packet gap
  • the sink device can parse the Ethernet data stream into MAC data packets, you can consider reusing the 64B/66B encoding function to complete the related IPG carrying and rate adaptation. Equipped with functions.
  • the embodiment of the present application implements compression processing of the Ethernet data stream by carrying the saved IPG quantity information when the source device encodes the Ethernet data stream, so that the sink device 120 can restore the Ethernet service flow due to The MAC transparently transmits the lost IPG information, thereby achieving the purpose of transparently transmitting the Ethernet service flow PCS.
  • the Ethernet service flow can be directly mapped and multiplexed into the payload of the OTN data flow to reduce mapping and multiplexing overhead; and/or in some optional embodiments, it can be considered During encoding, as many bytes as possible are used to carry Ethernet MAC data to further reduce mapping multiplexing overhead.
  • the first encoding method is a 64B/66B encoding method
  • the packet gap quantity information includes the preceding packet gap quantity information and the following packet gap quantity information.
  • the preceding packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet
  • the latter packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet.
  • To represent the current business data package and the latter business data The total number of packet gaps between packets;
  • the first information code block includes an S code block and/or a newly added extended I code block
  • Step S1400 Encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information, including:
  • Step S1410 Encode the current service data packet through 64B/66B encoding to generate S code blocks, data code blocks and T code blocks;
  • Step S1420 Expand at least one extension byte in the S code block and/or the newly added extension I code block.
  • the extension byte is used to carry information on the number of preceding packet gaps and/or information on the number of subsequent packet gaps.
  • the embodiment of the present application can carry packet gap number information in the S code block when encoding the Ethernet data stream through 64B/66B encoding, or a new extension I code block can be added to carry the packet gap
  • the quantity information may also be carried in the S code block and the newly added extended I code block at the same time. This embodiment of the present application does not limit this.
  • the extended S code block and the newly added extended I code block are both control code blocks.
  • M 1 is the first extended byte K1 and the number is 1, then the second byte of the S code block is used as the first extended byte K1, and the remaining 6 of the S code block are Bytes are used as data bytes D, used to carry the data information of business data packets.
  • the newly added extended I code block includes: at least one type byte, which is used to identify the code block type; at least one extended identification byte, which is used to identify the code block as an extended I code block; M 2 a second extension byte K2; at least one I control byte; where the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the number of IPG information carried.
  • the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block
  • the second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs); the value of M 2 is 1, that is, it includes a second extension byte K2.
  • the third byte of the newly added extension I code block is the second extension byte K2, which is used to carry packet gap number information (number of IPGs); the newly added extension I
  • the remaining 5 bytes of the code block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
  • the T code block includes:
  • a code block type byte the type of code block type byte is T;
  • the T code block may contain one code block type byte and 7 data bytes, or it may contain one code block type byte and 7 I control bytes, or it may contain one Code block type byte, several (one or more) data bytes and several (one or more) I control bytes.
  • the I control byte is used to represent the IPG information. That is to say, the number of I control bytes in the T code block represents the amount of IPG information carried. Therefore, the total number of packet gaps between the current service data packet and the subsequent service data packet is equal to the sum of the number of I control bytes carried by the T code block of the current service data packet and the subsequent packet gap number information.
  • the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet
  • the first information code block includes an S code block;
  • the extension byte includes the first extension byte K1 in the S code block;
  • Extension byte is used to carry information on the number of front packet gaps and/or number of rear packet gaps, including:
  • the first byte of the S code block is used as the code block type byte, and the type of the code block type byte is S;
  • the 2nd to M 1 +1 bytes of the S code block are all used as the first extension byte K1, where the first extension byte K1 is used to carry information on the number of front packet gaps, and M 1 is the first extension byte The quantity of K1;
  • the remaining bytes of the S code block are used as data bytes to carry the data information of the service data packet.
  • the first encoded data may only extend S code blocks, and no new extension I code blocks may be added.
  • the S code block of the current service data packet carries information on the number of gaps in the previous packet. This situation generally applies to situations where the number of packet gaps is small.
  • the first information code block includes an S code block;
  • the extension byte includes the first extension byte K1 in the S code block;
  • Step S1420 extend at least one extension byte in the S code block and/or the newly added extension I code block.
  • the extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
  • Step S1421 accumulate and count the information on the number of post-packet gaps between the current service data packet and the next service data packet;
  • Step S1422 When the packet gap number information is less than or equal to the first preset threshold, the first extension byte K1 in the S code block of the subsequent service data packet carries the subsequent packet gap number information.
  • the first encoded data can extend the S code block and set a first preset threshold. When it is less than or equal to the first preset threshold, the first code block in the S code block of the subsequent service data packet is An extension byte K1 carries information on the number of post-packet gaps.
  • the first information code block includes an S code block and an extended I code block;
  • the extended bytes include a first extended byte K1 in the S code block and a second extended byte in the extended I code block.
  • Step S1420 extend at least one extension byte in the S code block and/or the newly added extension I code block.
  • the extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
  • Step S1423, accumulate statistics on the number of packet gaps between the current service data packet and the next service data packet;
  • Step S1424 when the packet gap quantity information is greater than the first preset threshold, add an extension I code block.
  • the extension I code block includes at least one second extension byte K2, used to carry a partial number of packet gap quantity information;
  • Step S1425 The remaining number of packet gap number information is carried by the first extension byte K1 in the S code block of the next service data packet.
  • the first encoded data can be extended with an S code block, and a first preset threshold is set.
  • a first preset threshold is set.
  • an extended I code block is added, and the extended I code block is added.
  • the code block includes at least one second extension byte K2, which is used to carry part of the packet gap number information, and the remaining number of packet gap number information is used by the first extension byte K1 in the S code block of the next service data packet. carry.
  • the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet
  • the first information code block includes an S code block and N extension I code blocks, where N is a positive integer greater than or equal to 2; the extension byte includes the first extension byte in the S code block K1 and the second extension byte K2 in the extension I code block;
  • Step S1420 extend at least one extension byte in the S code block and/or the newly added extension I code block.
  • the extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
  • Step S1426 accumulate statistics on the number of packet gaps between the current service data packet and the next service data packet
  • Step S1427 When the packet gap number information is greater than the first preset threshold, a first extension I code block is added.
  • the first extension I code block includes at least one second extension byte K2, used to carry the first number of packets. Gap quantity information;
  • Step S1428 determine whether the remaining number of packet gap number information is greater than the first preset threshold. If so, add a second extended I code block.
  • the second extended I code block includes at least one second extended byte K2 for Carrying the second number of packet gap number information among the remaining number of packet gap number information;
  • the Nth extension I code block is added until the remaining number of packet gap number information is less than or equal to the first preset threshold
  • Step S1429 The remaining number of packet gap number information is carried by the first extension byte K1 in the S code block of the next service data packet.
  • the first encoded data can be extended with S code blocks, and a first preset threshold is set.
  • a first preset threshold is set.
  • the first extended I code block is added, and the first extended I code block is added.
  • An extended I code block includes at least one second extended byte K2, used to carry the first number of packet gap number information; determine whether the remaining number of packet gap number information is greater than the first preset threshold, if so, add a second Extended I code block, the second extended I code block includes at least one second extended byte K2, used to carry the second number of packet gap number information in the remaining number of packet gap number information; and so on, the new N extension I code blocks until the remaining number of packet gap number information is less than or equal to the first preset threshold; the remaining number of packet gap number information is determined by the first extension byte K1 in the S code block of the next service data packet carry. This situation is generally used when the number of packet gap information is large.
  • the T code block of the current service data packet may contain 1 piece of information, 1 code block type byte, 2 data bytes D, and 5 I control bytes.
  • the first extended I code block added after the current service data packet carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;
  • the second extended I code block added after the current service data packet carries The code block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;...
  • the nineteenth extended I code block added after the current service data packet carries 245 information on the number of post-packet gaps, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries information on the number of post-packet gaps of 245, then the number of current service data packets is the same as the number of post-packet gaps.
  • the newly added extension I code blocks include:
  • At least one type byte which is used to identify the code block type
  • At least one extended identification byte which is used to identify the code block as an extended I code block
  • At least one I control byte At least one I control byte.
  • the newly added extension I code block may include: at least one type byte, which is used to identify the code block type; and at least one extension identification byte, which is used to identify the code block as an extension.
  • the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block
  • the second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs);
  • the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs);
  • the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
  • the number of the first extension bytes K1 is less than or equal to 2; the number of the second extension bytes K2 is less than or equal to 2.
  • the first preset threshold is set according to the number of first extension bytes K1.
  • the numbers of the first extension byte K1 and the second extension byte K2 can be set as needed, for example, they can be determined based on packet gap number information, or can be determined based on the first preset threshold. For example, if a byte contains 8 bits, the maximum number it can carry is 255. You can set 1 byte as needed, and the first preset threshold cannot be set to exceed 255.
  • the Ethernet data stream is a PCS data stream
  • Step S1200 According to the Ethernet data flow, multiple service data packets are obtained, including:
  • Step S1210 parse the PCS data stream
  • Step S1220 Obtain multiple parsed MAC data packets and use the MAC data packets as service data packets.
  • step S1500, mapping the first encoded data to the OTN data stream includes:
  • Step S1510 Add an I code block after the first encoded data to adapt to the rate of the OTN data stream.
  • step S1500, mapping the first encoded data to the OTN data stream also includes:
  • Step S1520 perform 1024B/1027B transcoding on the first encoded data after rate adaptation
  • Step S1530 Map the transcoded data to the OTN data stream.
  • the OTN data stream is a FlexO data stream.
  • the extended S code block mainly carries IPG information and service data D of the service data packet.
  • the first extended byte K1 occupies M 1 bytes, M 1 is at most 2, and the service data D of the service data packet is the 7th to M 1 Bytes, for example, the service data D of the service data packet may occupy 5 or 6 bytes.
  • the extended I code block includes type byte, extended identification byte, second extended byte K2 and I control byte.
  • the extended identification byte is used to distinguish the standard 64B/66B I code block used for rate adaptation.
  • the number of bytes M 2 occupied by the second extended byte K2 can be occupied by the first extended byte K1 in the extended S code block.
  • the standard I code block is the 64B/66B code block specified in IEEE802.3.
  • the Ethernet interface service can be parsed into MAC frames (MAC packets) first, and the relevant IPG information (packet gap information) is deleted when accumulated statistics are parsed into MAC packets. , and convert the IPG information into packet gap number information (number of IPGs), and carry it to the sink device through extended S code blocks or extended I code blocks.
  • the MAC data packet is 64B/66B encoded
  • rate adaptation is performed through the 64B/66B standard I code block, and then 1024B/1027B transcoding is performed, and then mapped to the payload of the FlexO data stream to complete the mapping process.
  • the sink device performs related IPG rate and bit recovery to meet the requirements of traditional OTN networks for transparent transmission of Ethernet services.
  • the deleted IPG information is accumulated and counted.
  • the minimum MAC traffic can reach 0.
  • the threshold value AThresh (the first preset threshold) can be set for the statistical IPG information.
  • the specific AThresh value can be flexibly set according to the number of bytes occupied by the actual packet gap number information (number of IPGs). According to whether the statistical information on the number of packet gaps exceeds AThresh, two scenarios are distinguished, as shown in Figure 5.
  • the next extended S code block carries the amount information corresponding to the actually deleted IPG information, the specific packet
  • the number of gaps can be determined by the IPG information field in the extended S code block and the number of I control bytes in the T code block.
  • the number of gaps between two consecutive MAC data packets is very large, such as a continuous large number of gaps.
  • the extended I code block can be inserted to indicate the specific number of deleted packet gaps, that is, the number of packet gaps carried is also composed of two parts: The information on the number of packet gaps in the extended I code block and the number of I control words in the T code block are determined together. After the IPG information is carried in the extended S code block or I code block, it is re-accumulated and repeated.
  • the 200G FlexO network short-distance interface maintains the same rate as the Ethernet interface, and the 200G Ethernet service flow is mapped to the FlexO interface to realize PCS transparent transmission of the Ethernet service flow.
  • the length of the Ethernet business data packet is 128 bytes, and MAC#N is used to represent the Nth MAC data packet.
  • MAC#1 represents the first MAC data packet
  • MAC#2 represents the second MAC data packet MAC#. 2...and so on.
  • the threshold value AThresh is set. for 250.
  • the specific processing and mapping process of the source device is shown in Figure 6, and the first encoded data obtained by encoding is shown in Figure 7.
  • the Ethernet service flow is parsed from 257b or 66b into MAC data packets, and the 128-byte MAC data packet is encoded into an extended S code block + 15 data blocks D + 1 T code block.
  • the number of IPGs deleted between packets is counted and carried to the sink device by inserting extended I code blocks and extended S code blocks. In this example, there are situations where extended I code blocks occur continuously, a single extended I code block occurs, and no extended I code block is sent.
  • the specific processing process is shown in Figure 6.
  • the number of IPGs is carried by the extended S code block when the MAC#2 header is encoded to 64B/66B (the first The number of IPGs carried by extension byte K1 is 245). After parsing out the T code block of MAC#2, the number of IPGs is re-accumulated. When the number of IPGs 251 exceeds the threshold value AThresh, the extended I code block is inserted and carried, and the number of IPGs is re-accumulated, and finally 19 extended I codes are inserted.
  • Example 2 the 400G FlexO short-distance interface maintains the same rate as the Ethernet interface, and the 400G Ethernet service flow is mapped to the FlexO interface to realize PCS transparent transmission of the Ethernet service flow.
  • the length of the Ethernet business data packet is 9600 bytes, and MAC#N is used to represent the Nth MAC data packet.
  • MAC#1 represents the first MAC data packet
  • MAC#2 represents the second MAC data packet MAC#. 2...and so on.
  • the threshold value AThresh for the number of IPGs is 50. There are 10 IPGs between MAC#1 and MAC#2, and 14 IPGs between MAC#2 and MAC#3.
  • the specific processing and mapping process of the source device is shown in Figure 8, and the first encoded data obtained by encoding is shown in Figure 9.
  • the number of IPGs deleted between packets is counted and carried to the sink device by inserting extended I code blocks or extended S code blocks.
  • the IPG information is not carried through the extended I code block, but the IPG information is carried to the sink device through the first extension byte K1 in the extended S code block.
  • the specific processing process is shown in Figure 8.
  • the number of IPGs deleted between the two MAC packets is accumulated.
  • MAC#1 and MAC#2 are accumulated to 10, MAC#2 is reached.
  • the number of IPGs is passed through the MAC #2 Extended S code block carrying when the header is encoded to 64B/66B.
  • the number of IPGs is re-accumulated.
  • MAC#3 arrives. This number is carried by the first extension byte K1 in the extended S code block from MAC#3 to 64B. , the specific encoding situation is shown in Figure 9.
  • the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information based on the statistical results, encodes the service data packets according to the first encoding method, and extends it to
  • the first information code block carrying the packet gap number information forms the first encoded data, which realizes compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate and making the Ethernet service flow rate match the OTN interface rate. This achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
  • the embodiment of the present application also provides a data transmission method, which is applied to the sink device of the OTN network.
  • the execution subject of the data transmission method in this example can be, but is not limited to, the sink device 120 in the embodiment shown in Figure 1, or those skilled in the art can choose to set the corresponding execution subject according to the actual application scenario. , this example has no limitations.
  • the source device is used as the execution subject of the data transmission method in the following relevant embodiments, but this should not be understood as a limitation on the embodiments of the present application.
  • data transmission methods include:
  • Step S2100 obtain the OTN data stream
  • Step S2200 parse the OTN data stream to obtain first encoded data, where the first encoded data includes a service data code block and a first information code block.
  • the first information code block is used to carry the packet gap between adjacent service data packets. quantity information;
  • Step S2300 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain a plurality of service data code blocks and a first information code block, and obtain a plurality of service data packets and the distance between adjacent service data packets. Packet gap quantity information;
  • Step S2400 Obtain the Ethernet data stream based on the information on the number of packet gaps between the service data packet and adjacent service data packets.
  • the sink device 120 communicates with the sink Ethernet network 220, and at least has the function of receiving the OTN data stream sent by the source device 110 and processing the OTN data stream, where , the OTN data stream is obtained by the source device 110 encoding and processing the source data packet according to the first network coding method for the source data packet.
  • the first network coding method is determined by the source device 110 according to the preconfigured first network coding parameter. .
  • the first expansion strategy is a coding expansion strategy adopted by the source device, for example, using extended S code blocks and/or extended I code blocks to carry information on the number of IPGs saved by d.
  • the OTN data stream can be obtained by the source device by executing the aforementioned steps S1100 to S1500.
  • the sink device decodes the original Ethernet data stream according to the encoding method of the source device, thereby realizing the OTN network's processing of the Ethernet data stream. Penetrate. For relevant instructions, please refer to the previous corresponding descriptions and will not be repeated here.
  • the first decoding method is a 64B/66B decoding method
  • the packet gap quantity information includes the preceding packet gap quantity information and the following packet gap quantity information.
  • the preceding packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet, and the latter packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet. It represents the total number of packet gaps between the current business data packet and the next business data packet;
  • the first information code block includes an S code block and/or a newly added extended I code block
  • Step S2300 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain information on the number of packet gaps between adjacent service data packets, including:
  • Step S2310 Decode the first encoded data through 64B/66B encoding to obtain S code blocks, data code blocks and T code blocks corresponding to each service data packet;
  • Step S2320 parse at least one extension byte in the S code block and/or the newly added extension I code block according to the first extension strategy to obtain information on the number of packet gaps between adjacent service data packets, where the extension byte is To carry information about the number of gaps in the front packet and/or the number of gaps in the back packet.
  • the first encoded data can be decoded through 64B/66B decoding, and the information on the number of packet gaps can be carried in the S code block, or a new extension I code block can be added to carry the number of packet gaps. Information can also be carried in the S code block and the newly added extended I code block at the same time. The embodiment of the present application does not limit this.
  • the extended S code block and the newly added extended I code block are both control code blocks.
  • the first byte of the S code block is used as the code block type byte, and the type of the code block type byte is S; the second to M1+1 bytes of the S code block are used as the first extension byte K1 , where the first extension byte K1 is used to carry the number of front packet gap information (number of IPGs), M1 is the number of the first extension byte K1; the remaining bytes of the S code block are used as data bytes D to carry The data information of the business data package.
  • M1 is the first extension byte K1 and the number is 1, then the second byte of the S code block is used as the first extension byte K1, and the remaining 6 words of the S code block are Section is used as data byte D, used to carry the data information of business data packets.
  • the newly added extended I code block includes: at least one type byte, which is used to identify the code block type; at least one extended identification byte, which is used to identify the code block as an extended I code block; M2 The second extension byte K2; at least one I control byte; where the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the amount of IPG information carried.
  • the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block
  • the second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs);
  • the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs);
  • the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
  • the T code block includes:
  • a code block type byte the type of code block type byte is T;
  • the T code block may contain one code block type byte and 7 data bytes, or it may contain one code block type byte and 7 I control bytes, or it may contain one Code block type byte, several (one or more) data bytes and several (one or more) I control bytes.
  • the I control byte is used to represent the IPG information. That is to say, the number of I control bytes in the T code block represents the amount of IPG information carried. Therefore, the total number of packet gaps between the current service data packet and the subsequent service data packet is equal to the sum of the number of I control bytes carried by the T code block of the current service data packet and the subsequent packet gap number information.
  • the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet
  • the first information code block includes an S code block;
  • the extension byte includes the first extension byte K1 in the S code block;
  • Step S2320 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets.
  • Packet gap number information including:
  • Step S2321 parse the code block type byte.
  • the type of the code block type byte is S to identify the first byte of the S code block;
  • Step S2322 identify the 2nd to M 1 +1 bytes of the S code block as the first extended byte K1, where the first extended byte K1 is used to carry the number of front packet gaps, and M 1 is the first extended byte K1.
  • Step S2323 Parse the remaining bytes of the S code block into data bytes, which are used to carry data information of the service data packet.
  • the first information code block includes an S code block;
  • the extension byte includes the first extension byte K1 in the S code block;
  • Step S2300 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain a plurality of service data code blocks and a first information code block, and obtain a plurality of service data packets and the distance between adjacent service data packets.
  • Packet gap number information including:
  • Step S2324 analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding first packet gap number information;
  • Step S2325 parse the first extension byte K1 in the S code block of the subsequent service data packet to obtain information on the number of gaps in the subsequent packet;
  • Step S2326 Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the subsequent packet gap number information and the first packet gap number information.
  • the first encoded data may only extend S code blocks, and no new extension I code blocks may be added.
  • the S code block of the current service data packet carries information on the number of gaps in the previous packet. This situation generally applies to situations where the number of packet gaps is small.
  • the first information code block includes an S code block and an extended I code block;
  • the extended bytes include a first extended byte K1 in the S code block and a second extended byte in the extended I code block.
  • Step S2320 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets.
  • Packet gap number information including:
  • Step S2327 analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding second packet gap number information;
  • Step S2328 parse at least one second extension byte K2 in the extension I code block to obtain the corresponding third packet gap number information
  • Step S2329 parse the first extension byte K1 in the S code block of the next service data packet to obtain the fourth packet gap number information
  • Step S2330 Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the second packet gap number information, the third packet gap number information, and the fourth packet gap number information.
  • the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet
  • the first information code block includes an S code block and N extension I code blocks, where N is a positive integer greater than or equal to 2; the extension byte includes the first extension byte in the S code block K1 and the second extension byte K2 in the extension I code block;
  • Step S2320 Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets.
  • Packet gap number information including:
  • Step S2331 analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding fifth packet gap number information;
  • Step S2332 parse at least one second extension byte K2 in the N extension I code blocks, and obtain the corresponding sixth packet gap number information
  • Step S2333 parse the first extension byte K1 in the S code block of the next service data packet to obtain the seventh packet gap number information
  • Step S2334 Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the fifth packet gap number information, the sixth packet gap number information, and the seventh packet gap number information.
  • the T code block of the current service data packet may contain 1 piece of information, 1 code block type byte, 2 data bytes D, and 5 I control bytes.
  • the first extended I code block added after the current service data packet carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;
  • the second extended I code block added after the current service data packet carries The code block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;...
  • the nineteenth extended I code block added after the current service data packet carries 245 information on the number of post-packet gaps, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries information on the number of post-packet gaps of 245, then the number of current service data packets is the same as the number of post-packet gaps.
  • the newly added extension I code blocks include:
  • At least one type byte which is used to identify the code block type
  • At least one extended identification byte which is used to identify the code block as an extended I code block
  • At least one I control byte At least one I control byte.
  • the newly added extension I code block may include: at least one type byte, which is used to identify the code block type; and at least one extension identification byte, which is used to identify the code block as an extension.
  • the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block
  • the second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs);
  • the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs);
  • the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
  • the numbers of the first extension byte K1 and the second extension byte K2 can be set as needed, for example, they can be determined based on packet gap number information, or can be determined based on the first preset threshold. For example, if a byte contains 8 bits, the maximum number it can carry is 255. You can set 1 byte as needed, and the first preset threshold cannot be set to exceed 255.
  • the number of the first extension bytes K1 is less than or equal to 2; the number of the second extension bytes K2 is less than or equal to 2.
  • the Ethernet data flow is a PCS data flow
  • the service data packet is a MAC data packet
  • Step S2400 Obtain the Ethernet data stream based on the number of packet gaps between the service data packet and adjacent service data packets, including:
  • Step S2410 PCS encapsulation is performed based on the number of packet gaps between the MAC data packet and adjacent MAC data packets to obtain a PCS data stream.
  • the OTN data stream is a FlexO data stream.
  • the sink device in the embodiment of this application parses the OTN data stream of the source device according to the encoding and mapping method of the source device, thereby achieving the purpose of transparently transmitting the Ethernet service flow through the OTN network and filling the technical gaps in related methods. .
  • the embodiment of the present application also provides a data transmission method, which is applied to an OTN network.
  • the OTN network includes a source device and a sink device that communicate with each other.
  • the data transmission method includes:
  • Step S3100 The source device performs the previous data transmission method to send the OTN data stream;
  • Step S3200 The sink device performs the previous data transmission method to receive and parse the OTN data stream.
  • step S3100 may refer to the data transmission method performed by the source device, such as the aforementioned steps S1100 to S1500; correspondingly, the relevant description of step S3200 may refer to the data transmission method performed by the sink device.
  • the relevant description of step S2100 to S2400 may refer to the data transmission method performed by the sink device.
  • embodiments of the present application also provide a source device, including: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor.
  • the first processor executes the computer program.
  • the program implements the data transmission method as before.
  • please refer to the data transmission method performed by the source device for example, refer to the aforementioned steps S1100 to S1500; no further description will be given here.
  • embodiments of the present application also provide a sink device, including: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor.
  • a sink device including: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor.
  • the processor executes the computer program, the following is implemented:
  • the aforementioned data transmission method For relevant description, reference may be made to the aforementioned data transmission method performed by the sink device, such as the aforementioned steps S2100 to S2400; no further description will be given here.
  • embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the data transmission method of any of the foregoing embodiments.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

Disclosed in the present application are a data transmission method, a source end device, a sink end device and a storage medium. In the data transmission method, which is for the source end device, packet gap information between adjacent service data packets undergoes statistics compilation and is deleted, packet gap quantity information is formed according to a statistical result, the service data packets are encoded in a first encoding mode, and a first information code block for carrying the packet gap quantity information is expanded, so as to form first encoded data, such that the compression of Ethernet service flow data is realized.

Description

数据传输方法、源端设备、宿端设备及存储介质Data transmission method, source device, sink device and storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202210608522.4、申请日为2022年5月31日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with application number 202210608522.4 and a filing date of May 31, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application as a reference.
技术领域Technical field
本申请涉及通信技术领域,尤其是一种数据传输方法、源端设备、宿端设备及存储介质。This application relates to the field of communication technology, in particular to a data transmission method, source device, sink device and storage medium.
背景技术Background technique
光传送网(optical transport network)简称OTN,网络的一种类型,是指在光域内实现业务信号的传送、复用、路由选择、监控,并且保证其性能指标和生存性的传送网络。Optical transport network, referred to as OTN, is a type of network that refers to a transport network that realizes the transmission, multiplexing, routing, and monitoring of business signals in the optical domain and ensures its performance indicators and survivability.
随着传输带宽/速率的增加,以及业务IP化发展,OTN网络面临的主要客户也更趋向于以太网业务流。在OTN接口降速前提下,相关技术无法通过OTN接口实现以太网业务流的透传映射。With the increase in transmission bandwidth/rate and the development of IP services, the main customers faced by OTN networks are also tending to Ethernet service flows. Under the premise of reducing the speed of the OTN interface, related technologies cannot achieve transparent transmission and mapping of Ethernet service flows through the OTN interface.
发明内容Contents of the invention
本申请实施例提供了一种数据传输方法、源端设备、宿端设备及存储介质,能够通过OTN接口实现以太网业务流的透传映射。The embodiments of this application provide a data transmission method, a source device, a sink device, and a storage medium, which can realize transparent transmission mapping of Ethernet service flows through the OTN interface.
第一方面,本申请实施例提供一种数据传输方法,应用于OTN网络的源端设备,所述方法包括:In the first aspect, embodiments of the present application provide a data transmission method, which is applied to the source device of the OTN network. The method includes:
获取以太网数据流;Get Ethernet data stream;
根据所述以太网数据流,得到多个业务数据包;According to the Ethernet data flow, multiple service data packets are obtained;
统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息;Count and delete packet gap information between adjacent business data packets, and form packet gap quantity information based on the statistical results;
按第一编码方式对所述业务数据包进行编码,并扩展用于携带所述包间隙数量信息的第一信息码块,形成第一编码数据;Encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information to form first encoded data;
将所述第一编码数据映射到OTN数据流;Mapping the first encoded data to an OTN data stream;
发送所述OTN数据流。Send the OTN data stream.
第二方面,本申请实施例还提供一种数据传输方法,应用于OTN网络的宿端设备,所述方法包括:In a second aspect, embodiments of the present application also provide a data transmission method, which is applied to the sink device of the OTN network. The method includes:
获取OTN数据流;Get OTN data stream;
解析所述OTN数据流,得到第一编码数据,其中,所述第一编码数据包括业务数据码块和第一信息码块,所述第一信息码块用于携带相邻业务数据包之间的包间隙数量信息;Parse the OTN data stream to obtain first encoded data, where the first encoded data includes a service data code block and a first information code block, and the first information code block is used to carry the difference between adjacent service data packets. Packet gap number information;
根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息;Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and obtain multiple service data packets and packets between adjacent service data packets. Gap quantity information;
根据所述业务数据包和相邻业务数据包之间的包间隙数量信息,得到以太网数据流。According to the information on the number of packet gaps between the service data packet and adjacent service data packets, an Ethernet data stream is obtained.
第三方面,本申请实施例还提供一种数据传输方法,应用于OTN网络,所述OTN网络包括互相通信连接的源端设备和宿端设备,所述方法包括:In a third aspect, embodiments of the present application also provide a data transmission method, applied to an OTN network. The OTN network includes a source device and a sink device that communicate with each other. The method includes:
所述源端设备执行如第一方面所述的数据传输方法以发送OTN数据流;The source device executes the data transmission method as described in the first aspect to send the OTN data stream;
对应的,corresponding,
所述宿端设备执行如第二方面所述的数据传输方法以接收和解析所述OTN数据流。The sink device executes the data transmission method described in the second aspect to receive and parse the OTN data stream.
第四方面,本申请实施例还提供一种源端设备,包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,所述第一处理器执行所述计算机程序时实现如第一方面所述的数据传输方法。In a fourth aspect, embodiments of the present application further provide a source device, including: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, where the first When the processor executes the computer program, the data transmission method as described in the first aspect is implemented.
第五方面,本申请实施例还提供一种宿端设备,包括:第二存储器、第二处理器及存储在第二存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现:In a fifth aspect, embodiments of the present application further provide a sink device, including: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor, where the processor executes the Implement the following computer program:
如第一方面所述的数据传输方法。The data transmission method as described in the first aspect.
第六方面,本申请实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行:In a sixth aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute:
如第一方面所述的数据传输方法;The data transmission method as described in the first aspect;
或者,or,
如第二方面所述的数据传输方法。The data transmission method as described in the second aspect.
本申请实施例中,源端设备通过统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息,按第一编码方式对所述业务数据包进行编码,并扩展用于携带所述包间隙数量信息的第一信息码块,形成第一编码数据,实现了对以太网业务流数据的压缩,从而降低了以太网业务流速率,使得以太网业务流速率与OTN接口速率匹配,进而达到了以太网业务流通过OTN网络透传的目的,弥补了相关方法中的技术空白。In the embodiment of this application, the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information according to the statistical results, encodes the service data packet according to the first encoding method, and expands The first information code block used to carry the packet gap number information forms the first encoded data, realizing compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate, making the Ethernet service flow rate and OTN Interface rate matching achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
附图说明 Description of the drawings
图1是本申请一个实施例提供的用于执行数据传输方法的实施环境的示意图;Figure 1 is a schematic diagram of an implementation environment for executing a data transmission method provided by an embodiment of the present application;
图2是本申请一个实施例提供的用于源端设备的数据传输方法的流程图;Figure 2 is a flow chart of a data transmission method for a source device provided by an embodiment of the present application;
图3是本申请一个实施例提供的S码块、扩展I码块、标准I码块结构示意图;Figure 3 is a schematic structural diagram of S code blocks, extended I code blocks, and standard I code blocks provided by an embodiment of the present application;
图4是本申请一个实施例提供的用于源端设备的数据传输方法的流程图;Figure 4 is a flow chart of a data transmission method for a source device provided by an embodiment of the present application;
图5是本申请另一个实施例提供的用于源端设备的数据传输方法的流程图;Figure 5 is a flow chart of a data transmission method for a source device provided by another embodiment of the present application;
图6是本申请一个实施例提供的源端设备的具体处理映射流程示意图;Figure 6 is a schematic diagram of the specific processing mapping flow of the source device provided by an embodiment of the present application;
图7是本申请一个实施例提供的第一编码数据结构示意图;Figure 7 is a schematic diagram of the first encoded data structure provided by an embodiment of the present application;
图8是本申请另一个实施例提供的源端设备的具体处理映射流程示意图;Figure 8 is a schematic diagram of the specific processing mapping flow of the source device provided by another embodiment of the present application;
图9是本申请另一个实施例提供的第一编码数据结构示意图;Figure 9 is a schematic diagram of the first encoded data structure provided by another embodiment of the present application;
图10是本申请另一个实施例提供的应用于宿端设备的数据传输方法的流程图;Figure 10 is a flow chart of a data transmission method applied to a sink device provided by another embodiment of the present application;
图11是本申请一个实施例提供的应用于OTN网络的数据传输方法的流程图。Figure 11 is a flow chart of a data transmission method applied to an OTN network provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方法及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical methods and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. The terms "first", "second", etc. in the description, claims, and above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific sequence or sequence.
光传送网(optical transport network)简称OTN,网络的一种类型,是指在光域内实现业务信号的传送、复用、路由选择、监控,并且保证其性能指标和生存性的传送网络。Optical transport network, referred to as OTN, is a type of network that refers to a transport network that realizes the transmission, multiplexing, routing, and monitoring of business signals in the optical domain and ensures its performance indicators and survivability.
随着传输带宽/速率的增加,以及业务IP化发展,OTN面临的主要客户也更趋向于以太网业务流。在OTN接口降速前提下,相关技术无法通过OTN接口实现以太网业务流的透传映射。With the increase in transmission bandwidth/rate and the development of IP-based services, the main customers faced by OTN are also becoming more inclined to Ethernet service flows. Under the premise of reducing the speed of the OTN interface, related technologies cannot achieve transparent transmission and mapping of Ethernet service flows through the OTN interface.
例如,随着传输带宽或速率增加,如B100G OTN(Beyond 100G OTN,超100G速率的OTN)、B400G OTN(Beyond 400G OTN,超400G速率的OTN)等技术被广泛讨论。此时,光模块产业对于比以太速率高出约5%的OTN全速率的支持难度和代价会成倍增加,因此,OTN在互通接口支持降速OTN接口来重用以太模块。进一步随着业务IP化发展,OTN面临的主要客户也会更趋向于以太网业务流,此时在接口降速前提下,如何通过OTN接口实现以太网业务流的透传映射,成为亟待解决的问题。For example, as transmission bandwidth or rate increases, technologies such as B100G OTN (Beyond 100G OTN, OTN with a rate exceeding 100G), and B400G OTN (Beyond 400G OTN, OTN with a rate exceeding 400G) are widely discussed. At this time, the difficulty and cost of supporting the OTN full rate, which is about 5% higher than the Ethernet rate, will increase exponentially for the optical module industry. Therefore, OTN supports reduced-speed OTN interfaces on interworking interfaces to reuse Ethernet modules. With the further development of business IP, the main customers faced by OTN will also tend to be more Ethernet business flows. At this time, under the premise of reducing the interface speed, how to realize transparent transmission and mapping of Ethernet business flows through the OTN interface has become an urgent problem to be solved. question.
基于此,本申请实施例提供数据传输方法、源端设备、宿端设备及存储介质。其中,源端设备通过统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息,按第一编码方式对所述业务数据包进行编码,并扩展用于携带所述包间隙数量信息的第一信息码块,形成第一编码数据,实现了对以太网业务流数据的压缩,从而降低了以太网业务流速率,使得以太网业务流速率与OTN接口速率匹配,进而达到了以太网业务流通过OTN网络透传的目的,弥补了相关方法中的技术空白。Based on this, embodiments of the present application provide a data transmission method, a source device, a sink device, and a storage medium. Wherein, the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information according to the statistical results, encodes the service data packet according to the first encoding method, and expands it to carry all the packet gap information. The first information code block describing the packet gap number information forms the first encoded data, which realizes the compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate and making the Ethernet service flow rate match the OTN interface rate. This achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below with reference to the accompanying drawings.
如图1所示,图1是本申请一个实施例提供的用于执行数据传输方法的实施环境的示意图。As shown in Figure 1, Figure 1 is a schematic diagram of an implementation environment for executing a data transmission method provided by an embodiment of the present application.
在图1的示例中,该实施环境包括但不限于源端设备110和宿端设备120,其中,宿端设备120和源端设备110之间可以进行光信号的发送、接收及相关交互等。In the example of FIG. 1 , the implementation environment includes but is not limited to the source device 110 and the sink device 120 , where the sink device 120 and the source device 110 can transmit, receive, and interact with each other optical signals.
可以理解的是,宿端设备120和源端设备110的相对位置、数量等可以在具体应用场景中相应设置,例如,源端设备110能够向外发送光信号,宿端设备120可以接收源端设备110发射的光信号,可以理解地是,若存在多个宿端设备120且不同的宿端设备120按照上述方式进行设置,从而可以在不同空间位置接收源端设备110所发送的光信号,值得注意的是,此处的空间位置可以为不同的地域条件。It can be understood that the relative positions and quantities of the sink device 120 and the source device 110 can be set accordingly in specific application scenarios. For example, the source device 110 can send optical signals to the outside, and the sink device 120 can receive the source device. The optical signal emitted by the device 110 can be understood as if there are multiple sink devices 120 and different sink devices 120 are set up in the above manner, so that the optical signals sent by the source device 110 can be received at different spatial locations. It is worth noting that the spatial location here can be different geographical conditions.
在图2的示例中,该实施环境还可以包括但不限于第二接收端130,其中,宿端设备120和第二接收端130之间可以进行无线信号的发送、接收及相关交互等。In the example of FIG. 2 , the implementation environment may also include but is not limited to the second receiving end 130 , where the sink device 120 and the second receiving end 130 may transmit and receive wireless signals and related interactions.
可以理解的是,第二接收端130的数量不限制,可以为一个或多个,具体可以根据本领域技术人员的实际应用场景需求进行设置,也就是说,宿端设备120可以与一个第二接收端130单独交互或者与多个第二接收端130分别进行交互,这并不影响到宿端设备120的功能应用。It can be understood that the number of the second receiving end 130 is not limited, and can be one or more. Specifically, it can be set according to the actual application scenario requirements of those skilled in the art. That is to say, the sink device 120 can communicate with a second receiving end. The receiving end 130 interacts alone or interacts with multiple second receiving ends 130 respectively, which does not affect the functional application of the sink device 120 .
源端设备110作为OTN网络的发送设备,与源端以太网络210通信连接,可以接收来自以太网络的数据流。源端设备110至少具有根据预配置的第一网络编码参数确定对于源数据包的第一网络编码方式,并根据第一网络编码方式对源数据包进行编码得到第一编码数据,并封装形成OTN数据流,以及向宿端设备120发送OTN数据流等功能。As a sending device of the OTN network, the source device 110 is communicatively connected to the source Ethernet network 210 and can receive data streams from the Ethernet network. The source device 110 at least determines the first network coding method for the source data packet according to the preconfigured first network coding parameter, and encodes the source data packet according to the first network coding method to obtain the first coded data, and encapsulates it to form an OTN. data flow, and functions such as sending OTN data flow to the sink device 120.
宿端设备120作为OTN网络的接收设备,与宿端以太网络220通信连接,至少具有接收由源端设备110发送的OTN数据流,并对OTN数据流进行处理等功能,其中,OTN数据流为源端设备110根据对于源数据包的第一网络编码方式对源数据包进行编码和处理得到,第一网络编码方式由源端设备110根据预配置的第一网络编码参数确定。As a receiving device of the OTN network, the sink device 120 communicates with the sink Ethernet network 220 and has at least the functions of receiving the OTN data stream sent by the source device 110 and processing the OTN data stream, where the OTN data stream is The source device 110 codes and processes the source data packet according to the first network coding method for the source data packet. The first network coding method is determined by the source device 110 according to the preconfigured first network coding parameter.
可以理解的是,源端设备110或宿端设备120所具有的上述功能,可以应用于不同的应用场景中,此处并未限制。It can be understood that the above functions of the source device 110 or the sink device 120 can be applied in different application scenarios, and are not limited here.
本领域技术人员可以理解的是,该实施环境可以应用于5G、6G通信网络系统以及后续演进的移动通信网 络系统等,本实施例对此并不作具体限定。Those skilled in the art can understand that this implementation environment can be applied to 5G, 6G communication network systems and subsequently evolved mobile communication networks. network system, etc., this embodiment does not specifically limit this.
本领域技术人员可以理解的是,图1、图2中示出的实施环境并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the implementation environments shown in Figures 1 and 2 do not limit the embodiments of the present application, and may include more or less components than shown in the figures, or combine certain components, or Different component arrangements.
基于上述实施环境,下面提出本申请的数据传输方法的各个实施例。Based on the above implementation environment, various embodiments of the data transmission method of the present application are proposed below.
可以理解的是,本申请实施例可以应用于短距离OTN接口重用以太模块场景,也可以用于长距离OTN重用以太模块场景,本申请实施例对此不作限定。本申请实施例可以应用于各种速率的OTN网络,例如B100G、B200G或B400G,本申请实施例对此不作限定。OTN网络可以是FlexO(Flexible OTN,灵活光传送网)网络,也可以是其他OTN网络,本申请实施例对此不作限定。下面仅以OTN网络为FlexO网络为例进行说明。It can be understood that the embodiments of the present application can be applied to the scenario of reusing Ethernet modules for short-distance OTN interfaces, and can also be used in the scenario of reusing Ethernet modules for long-distance OTN interfaces. The embodiments of the present application are not limited to this. The embodiments of the present application can be applied to OTN networks of various rates, such as B100G, B200G or B400G, which are not limited in the embodiments of the present application. The OTN network may be a FlexO (Flexible OTN, Flexible Optical Transport Network) network or other OTN networks, which is not limited in the embodiments of this application. The following description only takes the FlexO network as the OTN network as an example.
如图3所示,图3是本申请一个实施例提供的数据传输方法的流程图。As shown in Figure 3, Figure 3 is a flow chart of a data transmission method provided by an embodiment of the present application.
可以理解的是,本实施例中的数据传输方法的执行主体可以但不限于为图1所示实施例中的源端设备110,或者本领域的技术人员可以根据实际应用场景选择设置相应的执行主体,本实施例不做限制。为了更方便地描述本申请的应用场景及原理,以下各相关实施例中相应处以源端设备作为数据传输方法的执行主体进行描述,但不应将其理解为对本申请实施例的限制。It can be understood that the execution subject of the data transmission method in this embodiment can be, but is not limited to, the source device 110 in the embodiment shown in Figure 1, or those skilled in the art can choose to set up corresponding execution according to the actual application scenario. The main body is not limited in this embodiment. In order to more conveniently describe the application scenarios and principles of the present application, the source device is used as the execution subject of the data transmission method in the following relevant embodiments, but this should not be understood as a limitation on the embodiments of the present application.
该数据传输方法可以包括但不限于步骤S1100至步骤S1600:The data transmission method may include but is not limited to steps S1100 to S1600:
步骤S1100,获取以太网数据流。Step S1100: Obtain the Ethernet data stream.
步骤S1200,根据以太网数据流,得到多个业务数据包;Step S1200: Obtain multiple service data packets according to the Ethernet data flow;
步骤S1300,统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息;Step S1300, count and delete packet gap information between adjacent service data packets, and form packet gap quantity information based on the statistical results;
步骤S1400,按第一编码方式对业务数据包进行编码,并扩展用于携带包间隙数量信息的第一信息码块,形成第一编码数据;Step S1400, encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information to form the first encoded data;
步骤S1500,将第一编码数据映射到OTN数据流;Step S1500, map the first encoded data to the OTN data stream;
步骤S1600,发送OTN数据流。Step S1600: Send the OTN data stream.
可以理解的是,以太网数据流可以是来自宿端以太网络210的数据流。步骤S1200中,可以对以太网数据流进行解析得到业务数据包。It can be understood that the Ethernet data stream may be a data stream from the sink Ethernet network 210 . In step S1200, the Ethernet data stream can be parsed to obtain service data packets.
示例性的,以太网数据流可以是PCS(Physical Coding Sublayer,物理编码子层)数据流,对应的,源端设备通过执行步骤S1100数据链路层接收来自宿端以太网络210的数据链路层的以太网数据流,并通过执行步骤S1200对PCS数据流进行解析得到业务数据包,即MAC数据包。For example, the Ethernet data stream may be a PCS (Physical Coding Sublayer) data stream. Correspondingly, the source device receives the data link layer from the sink Ethernet network 210 by executing step S1100. Ethernet data flow, and perform step S1200 to parse the PCS data flow to obtain service data packets, that is, MAC data packets.
下面以以太网业务流(以太网数据流)映射到FlexO网络为例进行说明。以太网业务流映射到FlexO网络,如B100G OTN,通常将大颗粒以太网业务流如N路100G或者1路N*100G以太网业务流进行64B/66B编码或者256B/257B转码,之后以比特流方式进行多层级OPU(Optical Channel Payload Unit,光通道净荷单元)映射,如先映射到OPU4或者OPUflex,再映射到OPUC,最后映射到FlexO接口。在整个映射路径中,因为增加了OPU以及OPUC和FlexO的OAM和映射复用开销等,使得FlexO接口速率比以太速率高出约5%。The following description takes the mapping of Ethernet service flows (Ethernet data flows) to the FlexO network as an example. Ethernet service flows are mapped to FlexO networks, such as B100G OTN. Large-grained Ethernet service flows, such as N channels of 100G or 1 channel of N*100G Ethernet service flows, are usually 64B/66B encoded or 256B/257B transcoded, and then encoded in bits. Multi-level OPU (Optical Channel Payload Unit) mapping is performed in streaming mode, such as first mapping to OPU4 or OPUflex, then mapping to OPUC, and finally mapping to the FlexO interface. In the entire mapping path, the FlexO interface rate is about 5% higher than the Ethernet rate due to the increased OAM and mapping multiplexing overhead of OPU, OPUC and FlexO.
因此,在一些可选择的实施例中,可以将以太网业务流直接映射复用到OTN数据流的净荷中,以减少映射复用开销。例如,在速率为B400G时需降低FlexO接口速率约5%,先保证FlexO的物理接口速率与源端以太网络的数据链路层的速率一致,承载N路100G以太或者1路N*100G以太时,可以去掉多层级OPU映射,即将以太网业务流直接映射复用到FlexO数据流的净荷中。Therefore, in some optional embodiments, the Ethernet service flow can be directly mapped and multiplexed into the payload of the OTN data flow to reduce mapping and multiplexing overhead. For example, when the rate is B400G, the FlexO interface rate needs to be reduced by about 5%. First, ensure that the physical interface rate of FlexO is consistent with the rate of the data link layer of the source Ethernet network. When carrying N channels of 100G Ethernet or 1 channel of N*100G Ethernet, , the multi-level OPU mapping can be removed, that is, the Ethernet service flow is directly mapped and multiplexed into the payload of the FlexO data flow.
在一些可选择的实施例中,可以考虑在编码时将尽量多的字节用来承载以太网MAC数据,以进一步减少映射复用开销。例如,在对以太网业务流如N路100G或者1路N*100G以太网业务流进行64B/66B编码时,可以将S码块中的Preamble(前导)都用来承载以太MAC数据。具体的,在以太网业务流直接映射FlexO的路径下,FlexO数据流的最大净荷速率为100.1953125G,如果直接映射以太网业务流,PCS速率最少需要100.2930G,是无法满足需求。分析MAC数据包从最小64字节到最大9600字节的纯MAC数据包速率的支持情况,64字节的MAC数据包经过标准的64b编码扩展后速率可达105G,不考虑具体转码情况已经超过FlexO数据流的净荷速率。考虑S码块中的Preamble都用来承载以太MAC数据,9591字节的MAC数据包经过标准64b编码扩展后速率最大为99.8855G,采用1024B/1027B转码后速率为100.178181G。In some alternative embodiments, it may be considered to use as many bytes as possible to carry Ethernet MAC data during encoding to further reduce mapping multiplexing overhead. For example, when performing 64B/66B encoding on Ethernet service flows such as N-channel 100G or 1-channel N*100G Ethernet service flow, the Preamble in the S code block can be used to carry Ethernet MAC data. Specifically, in the path where Ethernet service flows are directly mapped to FlexO, the maximum payload rate of FlexO data flow is 100.1953125G. If Ethernet service flows are directly mapped, the PCS rate needs to be at least 100.2930G, which cannot meet the demand. Analyze the support of pure MAC data packet rates from the minimum 64 bytes to the maximum 9600 bytes of MAC data packets. The rate of 64-byte MAC data packets after standard 64b encoding expansion can reach 105G, regardless of the specific transcoding situation. The payload rate of the FlexO data stream is exceeded. Considering that the Preamble in the S code block is used to carry Ethernet MAC data, the 9591-byte MAC data packet has a maximum rate of 99.8855G after standard 64b encoding expansion, and a rate of 100.178181G after 1024B/1027B transcoding.
在一些可选择的实施例中,可以考虑在对MAC数据包编码时不传递IPG(Inter Packet Gap,包间间隙),而仅传递具体的IPG传送数量(包间隙数量信息),以进一步减少映射复用开销。同时从上述分析来看,可以考虑传递具体的IPG传送数量,同时由于宿端设备可将以太数据流解析出MAC数据包,因此可以考虑重用64B/66B编码功能来完成相关的携带IPG和速率适配功能。In some alternative embodiments, it may be considered not to transmit the IPG (Inter Packet Gap, inter-packet gap) when encoding the MAC data packet, but only to transmit the specific IPG transmission number (packet gap number information) to further reduce the mapping complexity. Use overhead. At the same time, judging from the above analysis, you can consider passing the specific IPG transmission number. At the same time, since the sink device can parse the Ethernet data stream into MAC data packets, you can consider reusing the 64B/66B encoding function to complete the related IPG carrying and rate adaptation. Equipped with functions.
可以理解的是,本申请实施例通过在源端设备对以太网数据流进行编码时,携带节省的IPG数量信息实现对以太网数据流的压缩处理,供宿端设备120恢复因以太网业务流MAC透传丢失的IPG信息,从而达到以太网业务流PCS透传的目的。在一些可选择的实施例中,可以将以太网业务流直接映射复用到OTN数据流的净荷中,以减少映射复用开销;和/或,在一些可选择的实施例中,可以考虑在编码时将尽量多的字节用来承载以太网MAC数据,以进一步减少映射复用开销。It can be understood that the embodiment of the present application implements compression processing of the Ethernet data stream by carrying the saved IPG quantity information when the source device encodes the Ethernet data stream, so that the sink device 120 can restore the Ethernet service flow due to The MAC transparently transmits the lost IPG information, thereby achieving the purpose of transparently transmitting the Ethernet service flow PCS. In some optional embodiments, the Ethernet service flow can be directly mapped and multiplexed into the payload of the OTN data flow to reduce mapping and multiplexing overhead; and/or in some optional embodiments, it can be considered During encoding, as many bytes as possible are used to carry Ethernet MAC data to further reduce mapping multiplexing overhead.
在一些可选择的实施方式中,第一编码方式为64B/66B编码方式;In some optional implementations, the first encoding method is a 64B/66B encoding method;
包间隙数量信息包括前包间隙数量信息和后包间隙数量信息,其中,前包间隙数量信息用于表征当前业务数据包与前一业务数据包之间的包间隙总数,后包间隙数量信息用于表征当前业务数据包与后一业务数据 包之间的包间隙总数;The packet gap quantity information includes the preceding packet gap quantity information and the following packet gap quantity information. The preceding packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet, and the latter packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet. To represent the current business data package and the latter business data The total number of packet gaps between packets;
第一信息码块包括S码块和/或新增的扩展I码块;The first information code block includes an S code block and/or a newly added extended I code block;
步骤S1400,按第一编码方式对业务数据包进行编码,并扩展用于携带包间隙数量信息的第一信息码块,包括:Step S1400: Encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information, including:
步骤S1410,通过64B/66B编码方式对当前的业务数据包进行编码,以生成S码块、数据码块和T码块;Step S1410: Encode the current service data packet through 64B/66B encoding to generate S code blocks, data code blocks and T code blocks;
步骤S1420,在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息。Step S1420: Expand at least one extension byte in the S code block and/or the newly added extension I code block. The extension byte is used to carry information on the number of preceding packet gaps and/or information on the number of subsequent packet gaps.
可以理解的是,本申请实施例可以在通过64B/66B编码方式对以太网数据流进行编码时,在S码块中携带包间隙数量信息,也可以新增的扩展I码块以携带包间隙数量信息,也可以同时在S码块中和新增的扩展I码块中携带包间隙数量信息,本申请实施例对此不作限制。It can be understood that the embodiment of the present application can carry packet gap number information in the S code block when encoding the Ethernet data stream through 64B/66B encoding, or a new extension I code block can be added to carry the packet gap The quantity information may also be carried in the S code block and the newly added extended I code block at the same time. This embodiment of the present application does not limit this.
示例性的,参照图3,扩展的S码块和新增的扩展I码块均为控制码块。将S码块的第一个字节作为码块类型字节,码块类型字节的类型为S;将S码块的第2至第M1+1个字节均作为第一扩展字节K1,其中,第一扩展字节K1用于携带前包间隙数量信息(IPG数量),M1为第一扩展字节K1的数量;将S码块的剩余字节作为数据字节D,用于承载业务数据包的数据信息。例如,如图3所示,M1为第一扩展字节K1的数量为1,则将S码块的第2个字节均作为第一扩展字节K1,将S码块的剩余6个字节作为数据字节D,用于承载业务数据包的数据信息。For example, referring to Figure 3, the extended S code block and the newly added extended I code block are both control code blocks. Use the first byte of the S code block as the code block type byte, and the type of the code block type byte is S; use the 2nd to M 1 +1 bytes of the S code block as the first extension byte K1, where the first extension byte K1 is used to carry the number of front packet gaps (number of IPGs), M 1 is the number of the first extension byte K1; the remaining bytes of the S code block are used as data bytes D, using For carrying the data information of business data packets. For example, as shown in Figure 3, M 1 is the first extended byte K1 and the number is 1, then the second byte of the S code block is used as the first extended byte K1, and the remaining 6 of the S code block are Bytes are used as data bytes D, used to carry the data information of business data packets.
新增的扩展I码块包括:至少一个类型字节,类型字节用于标识码块类型;至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;M2个第二扩展字节K2;至少一个I控制字节;其中,I控制字节用于表征IPG信息,即是说,扩展I码块中的I控制字节的数量表征携带IPG信息的数量。例如,如图3所示,新增的扩展I码块的第一字节为类型字节,类型字节的类型为0x1e,用于标识该码块类型为I码块;新增的扩展I码块的第二字节为扩展标识字节,扩展标识字节的值为0x2a,用于标识该码块为用于携带包间隙数量信息(IPG数量)的码块;M2的取值为1,即包括1个第二扩展字节K2,新增的扩展I码块的第三字节为第二扩展字节K2,用于携带包间隙数量信息(IPG数量);新增的扩展I码块的剩余5个字节均为I控制字节。也即是说,相较于普通的I码块,新增的扩展I码块增加了扩展标识字节和第二扩展字节K2。The newly added extended I code block includes: at least one type byte, which is used to identify the code block type; at least one extended identification byte, which is used to identify the code block as an extended I code block; M 2 a second extension byte K2; at least one I control byte; where the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the number of IPG information carried. For example, as shown in Figure 3, the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block The second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs); the value of M 2 is 1, that is, it includes a second extension byte K2. The third byte of the newly added extension I code block is the second extension byte K2, which is used to carry packet gap number information (number of IPGs); the newly added extension I The remaining 5 bytes of the code block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
在一些可选择的实施方式中,T码块包括:In some alternative implementations, the T code block includes:
一个码块类型字节,码块类型字节的类型为T;A code block type byte, the type of code block type byte is T;
若干个数据字节和/或若干个I控制字节;I控制字节对应的包间隙数量与后包间隙数量信息之和等于当前业务数据包与后一业务数据包之间的包间隙总数。Several data bytes and/or several I control bytes; the sum of the number of packet gaps corresponding to the I control byte and the number of subsequent packet gaps is equal to the total number of packet gaps between the current service data packet and the subsequent service data packet.
可以理解的是,T码块除了码块类型字节外,后面的字节先用于承载业务数据包数据,剩余的字节再承载I控制字节。因此,根据承载业务数据包数据的多少,T码块可能包含一个码块类型字节和7个数据字节,也可能包含一个码块类型字节和7个I控制字节,也可能包含一个码块类型字节、若干个(一个或多个)数据字节和若干(一个或多个)个I控制字节。It can be understood that, in addition to the code block type bytes of the T code block, the following bytes are first used to carry the service data packet data, and the remaining bytes then carry the I control bytes. Therefore, depending on the amount of service data packet data carried, the T code block may contain one code block type byte and 7 data bytes, or it may contain one code block type byte and 7 I control bytes, or it may contain one Code block type byte, several (one or more) data bytes and several (one or more) I control bytes.
其中,I控制字节用于表征IPG信息,即是说,T码块中I控制字节的数量表征携带IPG信息的数量。因此,当前业务数据包的数量与后一业务数据包之间的包间隙总数,等于当前业务数据包的T码块携带的I控制字节数量与后包间隙数量信息的总和。Among them, the I control byte is used to represent the IPG information. That is to say, the number of I control bytes in the T code block represents the amount of IPG information carried. Therefore, the total number of packet gaps between the current service data packet and the subsequent service data packet is equal to the sum of the number of I control bytes carried by the T code block of the current service data packet and the subsequent packet gap number information.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包后新增的扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+245+245+5=500个。For example, the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet The total number of packet gaps between the number and the latter service data packet is 5+245+245+5=500.
在一些可选择的实施方式中,第一信息码块包括S码块;扩展字节包括S码块中的第一扩展字节K1;In some alternative implementations, the first information code block includes an S code block; the extension byte includes the first extension byte K1 in the S code block;
在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息,包括:Expand at least one extension byte in the S code block and/or the newly added extension I code block. The extension byte is used to carry information on the number of front packet gaps and/or number of rear packet gaps, including:
将S码块的第一个字节作为码块类型字节,码块类型字节的类型为S;The first byte of the S code block is used as the code block type byte, and the type of the code block type byte is S;
将S码块的第2至第M1+1个字节均作为第一扩展字节K1,其中,第一扩展字节K1用于携带前包间隙数量信息,M1为第一扩展字节K1的数量;The 2nd to M 1 +1 bytes of the S code block are all used as the first extension byte K1, where the first extension byte K1 is used to carry information on the number of front packet gaps, and M 1 is the first extension byte The quantity of K1;
将S码块的剩余字节作为数据字节,用于承载业务数据包的数据信息。The remaining bytes of the S code block are used as data bytes to carry the data information of the service data packet.
在一些可选择的实施方式中第一编码数据可以只扩展S码块,不新增扩展I码块。当前业务数据包的S码块携带前包间隙数量信息。这种情况一般适用于包间隙数量较少的情形。In some alternative implementations, the first encoded data may only extend S code blocks, and no new extension I code blocks may be added. The S code block of the current service data packet carries information on the number of gaps in the previous packet. This situation generally applies to situations where the number of packet gaps is small.
示例性的,前一业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包的S码块携带有20个的前包间隙数量信息,则前一业务数据包的数量与当前业务数据包之间的包间隙总数为5+20=25个。For example, the T code block of the previous service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the S code block of the current service data packet carries If the number of previous packet gaps is 20, then the total number of packet gaps between the number of previous service data packets and the current service data packet is 5+20=25.
在一些可选择的实施方式中,第一信息码块包括S码块;扩展字节包括S码块中的第一扩展字节K1;In some alternative implementations, the first information code block includes an S code block; the extension byte includes the first extension byte K1 in the S code block;
步骤S1420,在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息,包括:Step S1420, extend at least one extension byte in the S code block and/or the newly added extension I code block. The extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
步骤S1421,累加统计当前业务数据包与下一业务数据包之间的后包间隙数量信息; Step S1421, accumulate and count the information on the number of post-packet gaps between the current service data packet and the next service data packet;
步骤S1422,当包间隙数量信息小于或等于第一预设阈值,由后一业务数据包的S码块中的第一扩展字节K1携带后包间隙数量信息。Step S1422: When the packet gap number information is less than or equal to the first preset threshold, the first extension byte K1 in the S code block of the subsequent service data packet carries the subsequent packet gap number information.
在一些可选择的实施方式中,第一编码数据可以扩展S码块,并设置第一预设阈值,当小于或等于第一预设阈值,由后一业务数据包的S码块中的第一扩展字节K1携带后包间隙数量信息。In some optional implementations, the first encoded data can extend the S code block and set a first preset threshold. When it is less than or equal to the first preset threshold, the first code block in the S code block of the subsequent service data packet is An extension byte K1 carries information on the number of post-packet gaps.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;后一业务数据包的S码块携带有20个的前包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+20=25个。For example, the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the S code block of the latter service data packet carries If the number of previous packet gaps is 20, then the total number of packet gaps between the current number of service data packets and the subsequent service data packet is 5+20=25.
在一些可选择的实施方式中,第一信息码块包括S码块和一个扩展I码块;扩展字节包括S码块中的第一扩展字节K1和扩展I码块中的第二扩展字节K2;In some optional implementations, the first information code block includes an S code block and an extended I code block; the extended bytes include a first extended byte K1 in the S code block and a second extended byte in the extended I code block. Byte K2;
步骤S1420,在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息,包括:Step S1420, extend at least one extension byte in the S code block and/or the newly added extension I code block. The extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
步骤S1423,累加统计当前业务数据包与下一业务数据包之间的包间隙数量信息;Step S1423, accumulate statistics on the number of packet gaps between the current service data packet and the next service data packet;
步骤S1424,当包间隙数量信息大于第一预设阈值,新增一个扩展I码块,扩展I码块包括至少一个第二扩展字节K2,用于携带部分数量的包间隙数量信息;Step S1424, when the packet gap quantity information is greater than the first preset threshold, add an extension I code block. The extension I code block includes at least one second extension byte K2, used to carry a partial number of packet gap quantity information;
步骤S1425,将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节K1携带。Step S1425: The remaining number of packet gap number information is carried by the first extension byte K1 in the S code block of the next service data packet.
在一些可选择的实施方式中,第一编码数据可以扩展S码块,并设置第一预设阈值,当包间隙数量信息累加大于第一预设阈值,新增一个扩展I码块,扩展I码块包括至少一个第二扩展字节K2,用于携带部分数量的包间隙数量信息,并将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节K1携带。In some optional implementations, the first encoded data can be extended with an S code block, and a first preset threshold is set. When the cumulative number of packet gap information is greater than the first preset threshold, an extended I code block is added, and the extended I code block is added. The code block includes at least one second extension byte K2, which is used to carry part of the packet gap number information, and the remaining number of packet gap number information is used by the first extension byte K1 in the S code block of the next service data packet. carry.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包后新增的扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+245+245+5=500个。For example, the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet The total number of packet gaps between the number and the latter service data packet is 5+245+245+5=500.
在一些可选择的实施方式中,第一信息码块包括S码块和N个扩展I码块,N为大于或等于2的正整数;扩展字节包括S码块中的第一扩展字节K1和扩展I码块中的第二扩展字节K2;In some optional implementations, the first information code block includes an S code block and N extension I code blocks, where N is a positive integer greater than or equal to 2; the extension byte includes the first extension byte in the S code block K1 and the second extension byte K2 in the extension I code block;
步骤S1420,在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息,包括:Step S1420, extend at least one extension byte in the S code block and/or the newly added extension I code block. The extension byte is used to carry information on the number of front packet gaps and/or information on the number of subsequent packet gaps, including:
步骤S1426,累加统计当前业务数据包与下一业务数据包之间的包间隙数量信息;Step S1426, accumulate statistics on the number of packet gaps between the current service data packet and the next service data packet;
步骤S1427,当包间隙数量信息大于第一预设阈值,新增第一个扩展I码块,第一个扩展I码块包括至少一个第二扩展字节K2,用于携带第一数量的包间隙数量信息;Step S1427: When the packet gap number information is greater than the first preset threshold, a first extension I code block is added. The first extension I code block includes at least one second extension byte K2, used to carry the first number of packets. Gap quantity information;
步骤S1428,判断剩余数量的包间隙数量信息是否大于第一预设阈值,如是,新增第二个扩展I码块,第二个扩展I码块包括至少一个第二扩展字节K2,用于携带剩余数量的包间隙数量信息中第二数量的包间隙数量信息;Step S1428, determine whether the remaining number of packet gap number information is greater than the first preset threshold. If so, add a second extended I code block. The second extended I code block includes at least one second extended byte K2 for Carrying the second number of packet gap number information among the remaining number of packet gap number information;
以此类推,新增第N个扩展I码块,直至剩余数量的包间隙数量信息小于或等于第一预设阈值;By analogy, the Nth extension I code block is added until the remaining number of packet gap number information is less than or equal to the first preset threshold;
步骤S1429,将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节K1携带。Step S1429: The remaining number of packet gap number information is carried by the first extension byte K1 in the S code block of the next service data packet.
在一些可选择的实施方式中,第一编码数据可以扩展S码块,并设置第一预设阈值,当包间隙数量信息大于第一预设阈值,新增第一个扩展I码块,第一个扩展I码块包括至少一个第二扩展字节K2,用于携带第一数量的包间隙数量信息;判断剩余数量的包间隙数量信息是否大于第一预设阈值,如是,新增第二个扩展I码块,第二个扩展I码块包括至少一个第二扩展字节K2,用于携带剩余数量的包间隙数量信息中第二数量的包间隙数量信息;以此类推,新增第N个扩展I码块,直至剩余数量的包间隙数量信息小于或等于第一预设阈值;将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节K1携带。这种情况一般用于包间隙数量信息较大的情形。In some optional implementations, the first encoded data can be extended with S code blocks, and a first preset threshold is set. When the number of packet gaps is greater than the first preset threshold, the first extended I code block is added, and the first extended I code block is added. An extended I code block includes at least one second extended byte K2, used to carry the first number of packet gap number information; determine whether the remaining number of packet gap number information is greater than the first preset threshold, if so, add a second Extended I code block, the second extended I code block includes at least one second extended byte K2, used to carry the second number of packet gap number information in the remaining number of packet gap number information; and so on, the new N extension I code blocks until the remaining number of packet gap number information is less than or equal to the first preset threshold; the remaining number of packet gap number information is determined by the first extension byte K1 in the S code block of the next service data packet carry. This situation is generally used when the number of packet gap information is large.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节。当前业务数据包后新增的第一扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;当前业务数据包后新增的第二扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;......当前业务数据包后新增的第十九扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+(245+5)*19+245=5000个。For example, the T code block of the current service data packet may contain 1 piece of information, 1 code block type byte, 2 data bytes D, and 5 I control bytes. The first extended I code block added after the current service data packet carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the second extended I code block added after the current service data packet carries The code block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;... The nineteenth extended I code block added after the current service data packet carries 245 information on the number of post-packet gaps, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries information on the number of post-packet gaps of 245, then the number of current service data packets is the same as the number of post-packet gaps. The total number of packet gaps between business data packets is 5+(245+5)*19+245=5000.
在一些可选择的实施方式中,新增的扩展I码块包括:In some optional implementations, the newly added extension I code blocks include:
至少一个类型字节,类型字节用于标识码块类型;At least one type byte, which is used to identify the code block type;
至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;At least one extended identification byte, which is used to identify the code block as an extended I code block;
M2个第二扩展字节K2;M 2 second extension bytes K2;
至少一个I控制字节。At least one I control byte.
可以理解的是,新增的扩展I码块可以包括:至少一个类型字节,类型字节用于标识码块类型;至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;M2个第二扩展字节K2;至少一个I控制字节;其中,I控制字节用于表征IPG信息,即是说,扩展I码块中的I控制字节的数量表征携带IPG信息的数量。 例如,如图3所示,新增的扩展I码块的第一字节为类型字节,类型字节的类型为0x1e,用于标识该码块类型为I码块;新增的扩展I码块的第二字节为扩展标识字节,扩展标识字节的值为0x2a,用于标识该码块为用于携带包间隙数量信息(IPG数量)的码块;M2的取值为1,即包括1个第二扩展字节K2,新增的扩展I码块的第三字节为第二扩展字节K2,用于携带包间隙数量信息(IPG数量);新增的扩展I码块的剩余5个字节均为I控制字节。也即是说,相较于普通的I码块,新增的扩展I码块增加了扩展标识字节和第二扩展字节K2。It can be understood that the newly added extension I code block may include: at least one type byte, which is used to identify the code block type; and at least one extension identification byte, which is used to identify the code block as an extension. I code block; M2 second extension bytes K2; at least one I control byte; among them, the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the carrying The number of IPG messages. For example, as shown in Figure 3, the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block The second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs); the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs); the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
在一些可选择的实施方式中,第一扩展字节K1的数量小于或等于2;第二扩展字节K2的数量小于或等于2。In some optional implementations, the number of the first extension bytes K1 is less than or equal to 2; the number of the second extension bytes K2 is less than or equal to 2.
在一些可选择的实施方式中,第一预设阈值根据第一扩展字节K1的数量设定。In some alternative implementations, the first preset threshold is set according to the number of first extension bytes K1.
第一扩展字节K1和第二扩展字节K2的数量可以根据需要设置,例如,可以根据包间隙数量信息确定,或者可以根据第一预设阈值确定。例如,一个字节包含8bit,则其承载的最大数量为255,则可以根据需要,设置1个字节,则第一预设阈值不能设置超过255。The numbers of the first extension byte K1 and the second extension byte K2 can be set as needed, for example, they can be determined based on packet gap number information, or can be determined based on the first preset threshold. For example, if a byte contains 8 bits, the maximum number it can carry is 255. You can set 1 byte as needed, and the first preset threshold cannot be set to exceed 255.
在一些可选择的实施方式中,以太网数据流为PCS数据流;In some optional implementations, the Ethernet data stream is a PCS data stream;
步骤S1200,根据以太网数据流,得到多个业务数据包,包括:Step S1200: According to the Ethernet data flow, multiple service data packets are obtained, including:
步骤S1210,对PCS数据流进行解析;Step S1210, parse the PCS data stream;
步骤S1220,获取解析后的多个MAC数据包,并将MAC数据包作为业务数据包。Step S1220: Obtain multiple parsed MAC data packets and use the MAC data packets as service data packets.
在一些可选择的实施方式中,步骤S1500,将第一编码数据映射到OTN数据流,包括:In some optional implementations, step S1500, mapping the first encoded data to the OTN data stream includes:
步骤S1510,在第一编码数据后添加I码块,以与OTN数据流的速率适配。Step S1510: Add an I code block after the first encoded data to adapt to the rate of the OTN data stream.
在一些可选择的实施方式中,步骤S1500,将第一编码数据映射到OTN数据流,还包括:In some optional implementations, step S1500, mapping the first encoded data to the OTN data stream, also includes:
步骤S1520,对速率适配后的第一编码数据进行1024B/1027B转码;Step S1520, perform 1024B/1027B transcoding on the first encoded data after rate adaptation;
步骤S1530,将转码后的数据映射到OTN数据流。Step S1530: Map the transcoded data to the OTN data stream.
在一些可选择的实施方式中,OTN数据流为FlexO数据流。In some optional implementations, the OTN data stream is a FlexO data stream.
示例性的,本申请实施例中采用了3种64B/66B码块,包括重定义的扩展S码块,新增的扩展I码块以及标准I码块,具体样例如图3所示。扩展S码块中主要携带IPG信息和业务数据包的业务数据D,第一扩展字节K1占用M1字节,M1最大为2,业务数据包的业务数据D为第7至第M1字节,例如,业务数据包的业务数据D可占用5或者6字节。扩展I码块中,包括类型字节、扩展标识字节、第二扩展字节K2和I控制字节。其中扩展标识字节用来区分用于速率适配的标准64B/66B的I码块,第二扩展字节K2占用的字节数M2可与扩展S码块中第一扩展字节K1占用的字节数一致,即M2=M1,剩余承载实际数量的I控制字节。标准I码块即IEEE802.3中规范的64B/66B编码码块。Illustratively, three types of 64B/66B code blocks are used in the embodiment of the present application, including redefined extended S code blocks, newly added extended I code blocks, and standard I code blocks. Specific examples are shown in Figure 3. The extended S code block mainly carries IPG information and service data D of the service data packet. The first extended byte K1 occupies M 1 bytes, M 1 is at most 2, and the service data D of the service data packet is the 7th to M 1 Bytes, for example, the service data D of the service data packet may occupy 5 or 6 bytes. The extended I code block includes type byte, extended identification byte, second extended byte K2 and I control byte. The extended identification byte is used to distinguish the standard 64B/66B I code block used for rate adaptation. The number of bytes M 2 occupied by the second extended byte K2 can be occupied by the first extended byte K1 in the extended S code block. The number of bytes is the same, that is, M 2 =M 1 , and the remaining I control bytes carry the actual number. The standard I code block is the 64B/66B code block specified in IEEE802.3.
参照图4,为一示例中源端设备的编码映射流程,可先将以太接口业务解析到MAC帧(MAC数据包),累加统计解析到MAC数据包时删除相关的IPG信息(包间隙信息),并将IPG信息转换为包间隙数量信息(IPG数量),通过扩展S码块或者扩展I码块携带到宿端设备。MAC数据包经过64B/66B编码后,通过64B/66B的标准I码块进行速率适配,再进行1024B/1027B转码,然后映射到FlexO数据流的净荷完成映射处理。宿端设备进行相关的IPG速率和比特恢复,满足传统OTN网络透传以太网业务的需求。Refer to Figure 4, which is an example of the encoding mapping process of the source device. The Ethernet interface service can be parsed into MAC frames (MAC packets) first, and the relevant IPG information (packet gap information) is deleted when accumulated statistics are parsed into MAC packets. , and convert the IPG information into packet gap number information (number of IPGs), and carry it to the sink device through extended S code blocks or extended I code blocks. After the MAC data packet is 64B/66B encoded, rate adaptation is performed through the 64B/66B standard I code block, and then 1024B/1027B transcoding is performed, and then mapped to the payload of the FlexO data stream to complete the mapping process. The sink device performs related IPG rate and bit recovery to meet the requirements of traditional OTN networks for transparent transmission of Ethernet services.
具体的,解析出到MAC时,累加统计删除的IPG信息,为了适配以太网业务流特点,MAC流量最小可达0的情况,统计IPG信息可设置门限值AThresh(第一预设阈值),具体的AThresh值根据实际包间隙数量信息(IPG数量)占用字节数可灵活设定。根据统计的包间隙数量信息是否超过AThresh,区分两种场景,如图5所示。一种场景下,MAC数据包之间有有限数量的包间隙信息,并且该数量小于或等于门限值AThresh,则在下一个扩展S码块中携带实际删除的IPG信息对应的数量信息,具体包间隙数量信息可由扩展S码块中IPG信息字段和T码块中的I控制字节数量共同决定;另一种场景下,连续两包MAC数据包之间包间隙数量信息很大,例如持续较久没有MAC数据包,即累加的IPG数量超过门限值AThresh,则可通过下插扩展I码块来指示删除的具体包间隙数量信息,即携带的包间隙数量信息也由两部分组成:包括扩展I码块中的包间隙数量信息和T码块中的I控制字数量共同决定。IPG信息在扩展S码块或者I码块携带后,进行重新累加重复处理。Specifically, when the MAC is parsed, the deleted IPG information is accumulated and counted. In order to adapt to the characteristics of the Ethernet service flow, the minimum MAC traffic can reach 0. The threshold value AThresh (the first preset threshold) can be set for the statistical IPG information. , the specific AThresh value can be flexibly set according to the number of bytes occupied by the actual packet gap number information (number of IPGs). According to whether the statistical information on the number of packet gaps exceeds AThresh, two scenarios are distinguished, as shown in Figure 5. In one scenario, there is a limited amount of packet gap information between MAC data packets, and the number is less than or equal to the threshold value AThresh, then the next extended S code block carries the amount information corresponding to the actually deleted IPG information, the specific packet The number of gaps can be determined by the IPG information field in the extended S code block and the number of I control bytes in the T code block. In another scenario, the number of gaps between two consecutive MAC data packets is very large, such as a continuous large number of gaps. If there is no MAC data packet for a long time, that is, the accumulated number of IPGs exceeds the threshold value AThresh, the extended I code block can be inserted to indicate the specific number of deleted packet gaps, that is, the number of packet gaps carried is also composed of two parts: The information on the number of packet gaps in the extended I code block and the number of I control words in the T code block are determined together. After the IPG information is carried in the extended S code block or I code block, it is re-accumulated and repeated.
下列以两个示例进一步说明本申请实施例的处理流程。The following uses two examples to further illustrate the processing flow of the embodiment of the present application.
示例一Example 1
该示例中,200GFlexO网络短距接口与以太接口速率保持一致,将200G以太网业务流映射到FlexO接口,实现以太网业务流的PCS透传。以太网的业务数据包包长为128字节,采用MAC#N表示第N个MAC数据包,例如,MAC#1表示第一个MAC数据包、MAC#2表示第二个MAC数据包MAC#2......依次类推。MAC#1和MAC#2之间有500个IPG信息,MAC#2和MAC#3之间存在5000个IPG信息,MAC#3和MAC#4之间有25个IPG信息,门限值AThresh设置为250。In this example, the 200G FlexO network short-distance interface maintains the same rate as the Ethernet interface, and the 200G Ethernet service flow is mapped to the FlexO interface to realize PCS transparent transmission of the Ethernet service flow. The length of the Ethernet business data packet is 128 bytes, and MAC#N is used to represent the Nth MAC data packet. For example, MAC#1 represents the first MAC data packet, and MAC#2 represents the second MAC data packet MAC#. 2...and so on. There are 500 IPG messages between MAC#1 and MAC#2, 5000 IPG messages between MAC#2 and MAC#3, and 25 IPG messages between MAC#3 and MAC#4. The threshold value AThresh is set. for 250.
源端设备的具体处理映射流程如图6所示,编码得到的第一编码数据如图7所示。首先,将以太网业务流从257b或者66b解析到MAC数据包,128字节MAC数据包编码为扩展S码块+15个数据块D+1个T码块。统计包与包之间删除的IPG数量,通过下插扩展I码块和扩展S码块携带到宿端设备。在本示例中,存在连续发生扩展I码块,单个扩展I码块以及不发送扩展I码块的情况,具体处理过程见图6。解析出MAC#1的T 码块后,累加两个MAC数据包之间删除的IPG数量,MAC#1和MAC#2中的IPG数量累加到251,即超过门限值AThresh,此时还未有收到MAC#2,则插入#1号扩展I码块(第一扩展I码块,其中,第二扩展字节K2携带的IPG数量为245)。插入#1号扩展I码块后重新进行IPG数量进行累加,统计数量到249时,MAC#2达到,该IPG数量通过MAC#2包头编码到64B/66B时的扩展S码块携带(第一扩展字节K1携带的IPG数量为245)。解析出MAC#2的T码块后,IPG数量重新累加,统计到IPG数量251超过门限值AThresh时,下插扩展I码块携带后,重新累加IPG数量,最终下插19个扩展I码块后重新累加,其中,每个扩展I码块的第二扩展字节K2携带的IPG数量为245;IPG数量到249时,MAC#3到达,该数量通过MAC#3到64b的扩展S码块携带(第一扩展字节K1携带的IPG数量为245)。解析出MAC#3的T码块后,IPG数量重新累加,统计IPG数量为25,MAC#4到达,该IPG数量25通过MAC#4的扩展S码块携带(第一扩展字节K1携带的IPG数量为20),具体的编码情况见图7。The specific processing and mapping process of the source device is shown in Figure 6, and the first encoded data obtained by encoding is shown in Figure 7. First, the Ethernet service flow is parsed from 257b or 66b into MAC data packets, and the 128-byte MAC data packet is encoded into an extended S code block + 15 data blocks D + 1 T code block. The number of IPGs deleted between packets is counted and carried to the sink device by inserting extended I code blocks and extended S code blocks. In this example, there are situations where extended I code blocks occur continuously, a single extended I code block occurs, and no extended I code block is sent. The specific processing process is shown in Figure 6. Parse out the T of MAC#1 After the code block, the number of deleted IPGs between the two MAC packets is accumulated. The number of IPGs in MAC#1 and MAC#2 is accumulated to 251, which exceeds the threshold value AThresh. At this time, MAC#2 has not been received. Then insert extension I code block #1 (the first extension I code block, in which the number of IPGs carried by the second extension byte K2 is 245). After inserting the extended I code block #1, the number of IPGs is accumulated again. When the statistical number reaches 249, MAC#2 is reached. The number of IPGs is carried by the extended S code block when the MAC#2 header is encoded to 64B/66B (the first The number of IPGs carried by extension byte K1 is 245). After parsing out the T code block of MAC#2, the number of IPGs is re-accumulated. When the number of IPGs 251 exceeds the threshold value AThresh, the extended I code block is inserted and carried, and the number of IPGs is re-accumulated, and finally 19 extended I codes are inserted. Re-accumulate after the block, where the second extended byte K2 of each extended I code block carries the number of IPGs of 245; when the number of IPGs reaches 249, MAC#3 arrives, and the number passes through the extended S codes of MAC#3 to 64b Block carrying (the number of IPGs carried by the first extension byte K1 is 245). After parsing out the T code block of MAC#3, the number of IPGs is re-accumulated, and the statistical number of IPGs is 25. When MAC#4 arrives, the IPG number 25 is carried by the extended S code block of MAC#4 (carried by the first extended byte K1 The number of IPGs is 20), and the specific encoding situation is shown in Figure 7.
示例二Example 2
示例二中,400GFlexO短距接口与以太接口速率保持一致,将400G以太网业务流映射到FlexO接口,实现以太网业务流的PCS透传。以太网的业务数据包包长为9600字节,采用MAC#N表示第N个MAC数据包,例如,MAC#1表示第一个MAC数据包、MAC#2表示第二个MAC数据包MAC#2......依次类推。IPG数量的门限值AThresh为50。MAC#1和MAC#2之间有10个IPG,MAC#2和MAC#3之间存在14个IPG。In Example 2, the 400G FlexO short-distance interface maintains the same rate as the Ethernet interface, and the 400G Ethernet service flow is mapped to the FlexO interface to realize PCS transparent transmission of the Ethernet service flow. The length of the Ethernet business data packet is 9600 bytes, and MAC#N is used to represent the Nth MAC data packet. For example, MAC#1 represents the first MAC data packet, and MAC#2 represents the second MAC data packet MAC#. 2...and so on. The threshold value AThresh for the number of IPGs is 50. There are 10 IPGs between MAC#1 and MAC#2, and 14 IPGs between MAC#2 and MAC#3.
源端设备的具体处理映射流程如图8所示,编码得到的第一编码数据如图9所示。将以太网数据流从257b或者66b解析到MAC数据包,9600字节MAC数据包编码为扩展S码块+1199个数据块D+1个T码块。统计包与包之间删除的IPG数量,通过下插扩展I码块或扩展S码块携带到宿端设备。在本示例中,没有通过扩展I码块携带IPG信息,都是通过扩展S码块中的第一扩展字节K1携带IPG信息到宿端设备,具体处理过程见图8。解析出MAC#1的T码块后,累加两个MAC数据包之间删除的IPG数量,MAC#1和MAC#2中的IPG数量累加到10时,MAC#2达到,该IPG数量通过MAC#2包头编码到64B/66B时的扩展S码块携带。解析出MAC#2的T码块后,IPG数量重新累加,统计到IPG数量14时,MAC#3到达,该数量通过MAC#3到64B的扩展S码块中的第一扩展字节K1携带,具体的编码情况见图9。The specific processing and mapping process of the source device is shown in Figure 8, and the first encoded data obtained by encoding is shown in Figure 9. Parse the Ethernet data stream from 257b or 66b into MAC data packets, and encode the 9600-byte MAC data packet into an extended S code block + 1199 data blocks D + 1 T code block. The number of IPGs deleted between packets is counted and carried to the sink device by inserting extended I code blocks or extended S code blocks. In this example, the IPG information is not carried through the extended I code block, but the IPG information is carried to the sink device through the first extension byte K1 in the extended S code block. The specific processing process is shown in Figure 8. After parsing out the T code block of MAC#1, the number of IPGs deleted between the two MAC packets is accumulated. When the number of IPGs in MAC#1 and MAC#2 is accumulated to 10, MAC#2 is reached. The number of IPGs is passed through the MAC #2 Extended S code block carrying when the header is encoded to 64B/66B. After parsing the T code block of MAC#2, the number of IPGs is re-accumulated. When the number of IPGs reaches 14, MAC#3 arrives. This number is carried by the first extension byte K1 in the extended S code block from MAC#3 to 64B. , the specific encoding situation is shown in Figure 9.
本申请实施例中,源端设备通过统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息,按第一编码方式对业务数据包进行编码,并扩展用于携带包间隙数量信息的第一信息码块,形成第一编码数据,实现了对以太网业务流数据的压缩,从而降低了以太网业务流速率,使得以太网业务流速率与OTN接口速率匹配,进而达到了以太网业务流通过OTN网络透传的目的,弥补了相关方法中的技术空白。In the embodiment of this application, the source device counts and deletes the packet gap information between adjacent service data packets, forms packet gap number information based on the statistical results, encodes the service data packets according to the first encoding method, and extends it to The first information code block carrying the packet gap number information forms the first encoded data, which realizes compression of the Ethernet service flow data, thereby reducing the Ethernet service flow rate and making the Ethernet service flow rate match the OTN interface rate. This achieves the purpose of transparent transmission of Ethernet service flows through the OTN network, filling the technical gaps in related methods.
另外,本申请实施例还提供一种数据传输方法,应用于OTN网络的宿端设备。In addition, the embodiment of the present application also provides a data transmission method, which is applied to the sink device of the OTN network.
可以理解的是,本示例中的数据传输方法的执行主体可以但不限于为图1所示实施例中的宿端设备120,或者本领域的技术人员可以根据实际应用场景选择设置相应的执行主体,本示例不做限制。为了更方便地描述本申请的应用场景及原理,以下各相关实施例中相应处以源端设备作为数据传输方法的执行主体进行描述,但不应将其理解为对本申请实施例的限制。It can be understood that the execution subject of the data transmission method in this example can be, but is not limited to, the sink device 120 in the embodiment shown in Figure 1, or those skilled in the art can choose to set the corresponding execution subject according to the actual application scenario. , this example has no limitations. In order to more conveniently describe the application scenarios and principles of the present application, the source device is used as the execution subject of the data transmission method in the following relevant embodiments, but this should not be understood as a limitation on the embodiments of the present application.
如图10所示,数据传输方法包括:As shown in Figure 10, data transmission methods include:
步骤S2100,获取OTN数据流;Step S2100, obtain the OTN data stream;
步骤S2200,解析OTN数据流,得到第一编码数据,其中,第一编码数据包括业务数据码块和第一信息码块,第一信息码块用于携带相邻业务数据包之间的包间隙数量信息;Step S2200, parse the OTN data stream to obtain first encoded data, where the first encoded data includes a service data code block and a first information code block. The first information code block is used to carry the packet gap between adjacent service data packets. quantity information;
步骤S2300,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息;Step S2300: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain a plurality of service data code blocks and a first information code block, and obtain a plurality of service data packets and the distance between adjacent service data packets. Packet gap quantity information;
步骤S2400,根据业务数据包和相邻业务数据包之间的包间隙数量信息,得到以太网数据流。Step S2400: Obtain the Ethernet data stream based on the information on the number of packet gaps between the service data packet and adjacent service data packets.
可以理解的是,宿端设备120作为OTN网络的接收设备,与宿端以太网络220通信连接,至少具有接收由源端设备110发送的OTN数据流,并对OTN数据流进行处理等功能,其中,OTN数据流为源端设备110根据对于源数据包的第一网络编码方式对源数据包进行编码和处理得到,第一网络编码方式由源端设备110根据预配置的第一网络编码参数确定。其中,第一扩展策略为源端设备采用的编码扩展策略,例如,利用扩展S码块和/或扩展I码块携带d节省的IPG数量信息。OTN数据流可以是源端设备通过执行前述步骤S1100至S1500得到的,宿端设备根据源端设备的编码方式对应解码,可解析出原以太网数据流,从而实现OTN网络对以太网数据流的透传。相关说明可参照前文对应描述,在此不作赘述。It can be understood that, as a receiving device of the OTN network, the sink device 120 communicates with the sink Ethernet network 220, and at least has the function of receiving the OTN data stream sent by the source device 110 and processing the OTN data stream, where , the OTN data stream is obtained by the source device 110 encoding and processing the source data packet according to the first network coding method for the source data packet. The first network coding method is determined by the source device 110 according to the preconfigured first network coding parameter. . The first expansion strategy is a coding expansion strategy adopted by the source device, for example, using extended S code blocks and/or extended I code blocks to carry information on the number of IPGs saved by d. The OTN data stream can be obtained by the source device by executing the aforementioned steps S1100 to S1500. The sink device decodes the original Ethernet data stream according to the encoding method of the source device, thereby realizing the OTN network's processing of the Ethernet data stream. Penetrate. For relevant instructions, please refer to the previous corresponding descriptions and will not be repeated here.
在一些可选择的实施方式中,第一解码方式为64B/66B解码方式;In some optional implementations, the first decoding method is a 64B/66B decoding method;
包间隙数量信息包括前包间隙数量信息和后包间隙数量信息,其中,前包间隙数量信息用于表征当前业务数据包与前一业务数据包之间的包间隙总数,后包间隙数量信息用于表征当前业务数据包与后一业务数据包之间的包间隙总数;The packet gap quantity information includes the preceding packet gap quantity information and the following packet gap quantity information. The preceding packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet, and the latter packet gap quantity information is used to represent the total number of packet gaps between the current service data packet and the previous service data packet. It represents the total number of packet gaps between the current business data packet and the next business data packet;
第一信息码块包括S码块和/或新增的扩展I码块;The first information code block includes an S code block and/or a newly added extended I code block;
步骤S2300,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到相邻业务数据包之间的包间隙数量信息,包括:Step S2300: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain information on the number of packet gaps between adjacent service data packets, including:
步骤S2310,通过64B/66B编码方式对第一编码数据进行解码,以得到对应各个业务数据包的S码块、数据码块和T码块; Step S2310: Decode the first encoded data through 64B/66B encoding to obtain S code blocks, data code blocks and T code blocks corresponding to each service data packet;
步骤S2320,根据第一扩展策略解析S码块和/或新增的扩展I码块中的至少一个扩展字节,得到相邻业务数据包之间的包间隙数量信息,其中,扩展字节用于携带前包间隙数量信息和/或后包间隙数量信息。Step S2320: parse at least one extension byte in the S code block and/or the newly added extension I code block according to the first extension strategy to obtain information on the number of packet gaps between adjacent service data packets, where the extension byte is To carry information about the number of gaps in the front packet and/or the number of gaps in the back packet.
可以理解的是,本申请实施例可以在通过64B/66B解码方式对第一编码数据进行解码,在S码块中携带包间隙数量信息,也可以新增的扩展I码块以携带包间隙数量信息,也可以同时在S码块中和新增的扩展I码块中携带包间隙数量信息,本申请实施例对此不作限制。It can be understood that in the embodiment of the present application, the first encoded data can be decoded through 64B/66B decoding, and the information on the number of packet gaps can be carried in the S code block, or a new extension I code block can be added to carry the number of packet gaps. Information can also be carried in the S code block and the newly added extended I code block at the same time. The embodiment of the present application does not limit this.
示例性的,参照图3,扩展的S码块和新增的扩展I码块均为控制码块。将S码块的第一个字节作为码块类型字节,码块类型字节的类型为S;将S码块的第2至第M1+1个字节均作为第一扩展字节K1,其中,第一扩展字节K1用于携带前包间隙数量信息(IPG数量),M1为第一扩展字节K1的数量;将S码块的剩余字节作为数据字节D,用于承载业务数据包的数据信息。例如,如图3所示,M1为第一扩展字节K1的数量为1,则将S码块的第2个字节均作为第一扩展字节K1,将S码块的剩余6个字节作为数据字节D,用于承载业务数据包的数据信息。For example, referring to Figure 3, the extended S code block and the newly added extended I code block are both control code blocks. The first byte of the S code block is used as the code block type byte, and the type of the code block type byte is S; the second to M1+1 bytes of the S code block are used as the first extension byte K1 , where the first extension byte K1 is used to carry the number of front packet gap information (number of IPGs), M1 is the number of the first extension byte K1; the remaining bytes of the S code block are used as data bytes D to carry The data information of the business data package. For example, as shown in Figure 3, M1 is the first extension byte K1 and the number is 1, then the second byte of the S code block is used as the first extension byte K1, and the remaining 6 words of the S code block are Section is used as data byte D, used to carry the data information of business data packets.
新增的扩展I码块包括:至少一个类型字节,类型字节用于标识码块类型;至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;M2个第二扩展字节K2;至少一个I控制字节;其中,I控制字节用于表征IPG信息,即是说,扩展I码块中的I控制字节的数量表征携带IPG信息的数量。例如,如图3所示,新增的扩展I码块的第一字节为类型字节,类型字节的类型为0x1e,用于标识该码块类型为I码块;新增的扩展I码块的第二字节为扩展标识字节,扩展标识字节的值为0x2a,用于标识该码块为用于携带包间隙数量信息(IPG数量)的码块;M2的取值为1,即包括1个第二扩展字节K2,新增的扩展I码块的第三字节为第二扩展字节K2,用于携带包间隙数量信息(IPG数量);新增的扩展I码块的剩余5个字节均为I控制字节。也即是说,相较于普通的I码块,新增的扩展I码块增加了扩展标识字节和第二扩展字节K2。The newly added extended I code block includes: at least one type byte, which is used to identify the code block type; at least one extended identification byte, which is used to identify the code block as an extended I code block; M2 The second extension byte K2; at least one I control byte; where the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the amount of IPG information carried. For example, as shown in Figure 3, the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block The second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs); the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs); the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
在一些可选择的实施方式中,T码块包括:In some alternative implementations, the T code block includes:
一个码块类型字节,码块类型字节的类型为T;A code block type byte, the type of code block type byte is T;
若干个数据字节和/或若干个I控制字节;I控制字节对应的包间隙数量与后包间隙数量信息之和等于当前业务数据包与后一业务数据包之间的包间隙总数。Several data bytes and/or several I control bytes; the sum of the number of packet gaps corresponding to the I control byte and the number of subsequent packet gaps is equal to the total number of packet gaps between the current service data packet and the subsequent service data packet.
可以理解的是,T码块除了码块类型字节外,后面的字节先用于承载业务数据包数据,剩余的字节再承载I控制字节。因此,根据承载业务数据包数据的多少,T码块可能包含一个码块类型字节和7个数据字节,也可能包含一个码块类型字节和7个I控制字节,也可能包含一个码块类型字节、若干个(一个或多个)数据字节和若干(一个或多个)个I控制字节。It can be understood that, in addition to the code block type bytes of the T code block, the following bytes are first used to carry the service data packet data, and the remaining bytes then carry the I control bytes. Therefore, depending on the amount of service data packet data carried, the T code block may contain one code block type byte and 7 data bytes, or it may contain one code block type byte and 7 I control bytes, or it may contain one Code block type byte, several (one or more) data bytes and several (one or more) I control bytes.
其中,I控制字节用于表征IPG信息,即是说,T码块中I控制字节的数量表征携带IPG信息的数量。因此,当前业务数据包的数量与后一业务数据包之间的包间隙总数,等于当前业务数据包的T码块携带的I控制字节数量与后包间隙数量信息的总和。Among them, the I control byte is used to represent the IPG information. That is to say, the number of I control bytes in the T code block represents the amount of IPG information carried. Therefore, the total number of packet gaps between the current service data packet and the subsequent service data packet is equal to the sum of the number of I control bytes carried by the T code block of the current service data packet and the subsequent packet gap number information.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包后新增的扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+245+245+5=500个。For example, the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet The total number of packet gaps between the number and the latter service data packet is 5+245+245+5=500.
在一些可选择的实施方式中,第一信息码块包括S码块;扩展字节包括S码块中的第一扩展字节K1;In some alternative implementations, the first information code block includes an S code block; the extension byte includes the first extension byte K1 in the S code block;
步骤S2320,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:Step S2320: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets. Packet gap number information, including:
步骤S2321,解析码块类型字节,码块类型字节的类型为S以识别S码块的第一个字节;Step S2321, parse the code block type byte. The type of the code block type byte is S to identify the first byte of the S code block;
步骤S2322,将S码块的第2至第M1+1个字节均识别为第一扩展字节K1,其中,第一扩展字节K1用于携带前包间隙数量信息,M1为第一扩展字节K1的数量;Step S2322, identify the 2nd to M 1 +1 bytes of the S code block as the first extended byte K1, where the first extended byte K1 is used to carry the number of front packet gaps, and M 1 is the first extended byte K1. The number of one extension byte K1;
步骤S2323,解析S码块的剩余字节为数据字节,用于承载业务数据包的数据信息。Step S2323: Parse the remaining bytes of the S code block into data bytes, which are used to carry data information of the service data packet.
在一些可选择的实施方式中,第一信息码块包括S码块;扩展字节包括S码块中的第一扩展字节K1;In some alternative implementations, the first information code block includes an S code block; the extension byte includes the first extension byte K1 in the S code block;
步骤S2300,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:Step S2300: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain a plurality of service data code blocks and a first information code block, and obtain a plurality of service data packets and the distance between adjacent service data packets. Packet gap number information, including:
步骤S2324,解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第一包间隙数量信息;Step S2324, analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding first packet gap number information;
步骤S2325,解析后一业务数据包的S码块中的第一扩展字节K1,得到后包间隙数量信息;Step S2325, parse the first extension byte K1 in the S code block of the subsequent service data packet to obtain information on the number of gaps in the subsequent packet;
步骤S2326,根据后包间隙数量信息和第一包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。Step S2326: Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the subsequent packet gap number information and the first packet gap number information.
在一些可选择的实施方式中,第一编码数据可以只扩展S码块,不新增扩展I码块。当前业务数据包的S码块携带前包间隙数量信息。这种情况一般适用于包间隙数量较少的情形。In some optional implementations, the first encoded data may only extend S code blocks, and no new extension I code blocks may be added. The S code block of the current service data packet carries information on the number of gaps in the previous packet. This situation generally applies to situations where the number of packet gaps is small.
示例性的,前一业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包的S码块携带有20个的前包间隙数量信息,则前一业务数据包的数量与当前业务数据包之间的包间隙总数为5+20=25个。For example, the T code block of the previous service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the S code block of the current service data packet carries If the number of previous packet gaps is 20, then the total number of packet gaps between the number of previous service data packets and the current service data packet is 5+20=25.
在一些可选择的实施方式中,第一信息码块包括S码块和一个扩展I码块;扩展字节包括S码块中的第一扩展字节K1和扩展I码块中的第二扩展字节K2; In some optional implementations, the first information code block includes an S code block and an extended I code block; the extended bytes include a first extended byte K1 in the S code block and a second extended byte in the extended I code block. Byte K2;
步骤S2320,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:Step S2320: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets. Packet gap number information, including:
步骤S2327,解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第二包间隙数量信息;Step S2327, analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding second packet gap number information;
步骤S2328,解析扩展I码块中的至少一个第二扩展字节K2,得到对应的第三包间隙数量信息;Step S2328, parse at least one second extension byte K2 in the extension I code block to obtain the corresponding third packet gap number information;
步骤S2329,解析后一业务数据包的S码块中的第一扩展字节K1,得到第四包间隙数量信息;Step S2329, parse the first extension byte K1 in the S code block of the next service data packet to obtain the fourth packet gap number information;
步骤S2330,根据第二包间隙数量信息、第三包间隙数量信息和第四包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。Step S2330: Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the second packet gap number information, the third packet gap number information, and the fourth packet gap number information.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节;当前业务数据包后新增的扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+245+245+5=500个。For example, the T code block of the current service data packet may contain 1 information, 1 code block type byte, 2 data bytes D and 5 I control bytes; the extended I code added after the current service data packet The block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries 245 post-packet gap number information, then the current service data packet The total number of packet gaps between the number and the latter service data packet is 5+245+245+5=500.
在一些可选择的实施方式中,第一信息码块包括S码块和N个扩展I码块,N为大于或等于2的正整数;扩展字节包括S码块中的第一扩展字节K1和扩展I码块中的第二扩展字节K2;In some optional implementations, the first information code block includes an S code block and N extension I code blocks, where N is a positive integer greater than or equal to 2; the extension byte includes the first extension byte in the S code block K1 and the second extension byte K2 in the extension I code block;
步骤S2320,根据第一解码方式和第一扩展策略对第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:Step S2320: Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and the first information code block, and obtain multiple service data packets and the distance between adjacent service data packets. Packet gap number information, including:
步骤S2331,解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第五包间隙数量信息;Step S2331, analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding fifth packet gap number information;
步骤S2332,解析N个扩展I码块中的至少一个第二扩展字节K2,得到对应的第六包间隙数量信息;Step S2332, parse at least one second extension byte K2 in the N extension I code blocks, and obtain the corresponding sixth packet gap number information;
步骤S2333,解析后一业务数据包的S码块中的第一扩展字节K1,得到第七包间隙数量信息;Step S2333, parse the first extension byte K1 in the S code block of the next service data packet to obtain the seventh packet gap number information;
步骤S2334,根据第五包间隙数量信息、第六包间隙数量信息和第七包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。Step S2334: Obtain the total number of packet gaps of the current service data packet and the next service data packet based on the fifth packet gap number information, the sixth packet gap number information, and the seventh packet gap number information.
示例性的,当前业务数据包的T码块可以包含1个信息1个码块类型字节、2个数据字节D和5个I控制字节。当前业务数据包后新增的第一扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;当前业务数据包后新增的第二扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;......当前业务数据包后新增的第十九扩展I码块携带有245个后包间隙数量信息,并且扩展I码块携带有5个I控制字节;后一业务数据包的S码块携带有245的后包间隙数量信息,则当前业务数据包的数量与后一业务数据包之间的包间隙总数为5+(245+5)*19+245=5000个。For example, the T code block of the current service data packet may contain 1 piece of information, 1 code block type byte, 2 data bytes D, and 5 I control bytes. The first extended I code block added after the current service data packet carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes; the second extended I code block added after the current service data packet carries The code block carries 245 post-packet gap number information, and the extended I code block carries 5 I control bytes;... The nineteenth extended I code block added after the current service data packet carries 245 information on the number of post-packet gaps, and the extended I code block carries 5 I control bytes; the S code block of the latter service data packet carries information on the number of post-packet gaps of 245, then the number of current service data packets is the same as the number of post-packet gaps. The total number of packet gaps between business data packets is 5+(245+5)*19+245=5000.
在一些可选择的实施方式中,新增的扩展I码块包括:In some optional implementations, the newly added extension I code blocks include:
至少一个类型字节,类型字节用于标识码块类型;At least one type byte, which is used to identify the code block type;
至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;At least one extended identification byte, which is used to identify the code block as an extended I code block;
M2个第二扩展字节K2;M 2 second extension bytes K2;
至少一个I控制字节。At least one I control byte.
可以理解的是,新增的扩展I码块可以包括:至少一个类型字节,类型字节用于标识码块类型;至少一个扩展标识字节,扩展标识字节用于标识该码块为扩展I码块;M2个第二扩展字节K2;至少一个I控制字节;其中,I控制字节用于表征IPG信息,即是说,扩展I码块中的I控制字节的数量表征携带IPG信息的数量。例如,如图3所示,新增的扩展I码块的第一字节为类型字节,类型字节的类型为0x1e,用于标识该码块类型为I码块;新增的扩展I码块的第二字节为扩展标识字节,扩展标识字节的值为0x2a,用于标识该码块为用于携带包间隙数量信息(IPG数量)的码块;M2的取值为1,即包括1个第二扩展字节K2,新增的扩展I码块的第三字节为第二扩展字节K2,用于携带包间隙数量信息(IPG数量);新增的扩展I码块的剩余5个字节均为I控制字节。也即是说,相较于普通的I码块,新增的扩展I码块增加了扩展标识字节和第二扩展字节K2。It can be understood that the newly added extension I code block may include: at least one type byte, which is used to identify the code block type; and at least one extension identification byte, which is used to identify the code block as an extension. I code block; M2 second extension bytes K2; at least one I control byte; among them, the I control byte is used to represent IPG information, that is to say, the number of I control bytes in the extended I code block represents the carrying The number of IPG messages. For example, as shown in Figure 3, the first byte of the newly added extended I code block is the type byte, and the type byte is 0x1e, which is used to identify the type of the code block as an I code block; the new extended I code block The second byte of the code block is the extended identification byte, and the value of the extended identification byte is 0x2a, which is used to identify the code block as a code block used to carry packet gap number information (number of IPGs); the value of M2 is 1 , that is, it includes a second extension byte K2, and the third byte of the newly added extended I code block is the second extended byte K2, which is used to carry packet gap number information (number of IPGs); the newly added extended I code The remaining 5 bytes of the block are all I control bytes. That is to say, compared with the ordinary I code block, the newly added extended I code block adds an extended identification byte and a second extended byte K2.
第一扩展字节K1和第二扩展字节K2的数量可以根据需要设置,例如,可以根据包间隙数量信息确定,或者可以根据第一预设阈值确定。例如,一个字节包含8bit,则其承载的最大数量为255,则可以根据需要,设置1个字节,则第一预设阈值不能设置超过255。The numbers of the first extension byte K1 and the second extension byte K2 can be set as needed, for example, they can be determined based on packet gap number information, or can be determined based on the first preset threshold. For example, if a byte contains 8 bits, the maximum number it can carry is 255. You can set 1 byte as needed, and the first preset threshold cannot be set to exceed 255.
在一些可选择的实施方式中,第一扩展字节K1的数量小于或等于2;第二扩展字节K2的数量小于或等于2。In some optional implementations, the number of the first extension bytes K1 is less than or equal to 2; the number of the second extension bytes K2 is less than or equal to 2.
在一些可选择的实施方式中,以太网数据流为PCS数据流,业务数据包为MAC数据包;In some optional implementations, the Ethernet data flow is a PCS data flow, and the service data packet is a MAC data packet;
步骤S2400,根据业务数据包和相邻业务数据包之间的包间隙数量信息,得到以太网数据流,包括:Step S2400: Obtain the Ethernet data stream based on the number of packet gaps between the service data packet and adjacent service data packets, including:
步骤S2410,根据MAC数据包和相邻MAC数据包之间的包间隙数量信息,进行PCS封装,以得到PCS数据流。Step S2410: PCS encapsulation is performed based on the number of packet gaps between the MAC data packet and adjacent MAC data packets to obtain a PCS data stream.
在一些可选择的实施方式中,OTN数据流为FlexO数据流。In some optional implementations, the OTN data stream is a FlexO data stream.
本申请实施例的宿端设备通过根据源端设备的编码和映射方式,解析源端设备的OTN数据流,达到了以太网业务流通过OTN网络透传的目的,弥补了相关方法中的技术空白。The sink device in the embodiment of this application parses the OTN data stream of the source device according to the encoding and mapping method of the source device, thereby achieving the purpose of transparently transmitting the Ethernet service flow through the OTN network and filling the technical gaps in related methods. .
另外,参照图11,本申请实施例还提供一种数据传输方法,应用于OTN网络,OTN网络包括互相通信连接的源端设备和宿端设备,数据传输方法包括:In addition, referring to Figure 11, the embodiment of the present application also provides a data transmission method, which is applied to an OTN network. The OTN network includes a source device and a sink device that communicate with each other. The data transmission method includes:
步骤S3100,源端设备执行如前的数据传输方法以发送OTN数据流; Step S3100: The source device performs the previous data transmission method to send the OTN data stream;
对应的,corresponding,
步骤S3200,宿端设备执行如前的数据传输方法以接收和解析OTN数据流。Step S3200: The sink device performs the previous data transmission method to receive and parse the OTN data stream.
可以理解的是,步骤S3100的相关说明可以参照前述源端设备执行的数据传输方法,如参照前述步骤S1100至S1500;对应的,步骤S3200的相关说明可以参照前述宿端设备执行的数据传输方法,如参照前述步骤S2100至S2400;在此不作赘述。It can be understood that the relevant description of step S3100 may refer to the data transmission method performed by the source device, such as the aforementioned steps S1100 to S1500; correspondingly, the relevant description of step S3200 may refer to the data transmission method performed by the sink device. For example, refer to the aforementioned steps S2100 to S2400; no further description will be given here.
另外,本申请实施例还提供一种源端设备,包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,第一处理器执行计算机程序时实现如前的数据传输方法。相关说明可以参照前述源端设备执行的数据传输方法,如参照前述步骤S1100至S1500;在此不作赘述。In addition, embodiments of the present application also provide a source device, including: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor. The first processor executes the computer program. The program implements the data transmission method as before. For relevant description, please refer to the data transmission method performed by the source device, for example, refer to the aforementioned steps S1100 to S1500; no further description will be given here.
另外,本申请实施例还提供一种宿端设备,包括:第二存储器、第二处理器及存储在第二存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如前述的数据传输方法。相关说明可以参照前述宿端设备执行的数据传输方法,如参照前述步骤S2100至S2400;在此不作赘述。In addition, embodiments of the present application also provide a sink device, including: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor. When the processor executes the computer program, the following is implemented: The aforementioned data transmission method. For relevant description, reference may be made to the aforementioned data transmission method performed by the sink device, such as the aforementioned steps S2100 to S2400; no further description will be given here.
另外,本申请实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行前述任意实施例的数据传输方法。In addition, embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the data transmission method of any of the foregoing embodiments.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。 Those of ordinary skill in the art can understand that all or some steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Claims (27)

  1. 一种数据传输方法,应用于OTN网络的源端设备,所述方法包括:A data transmission method, applied to the source device of the OTN network, the method includes:
    获取以太网数据流;Get Ethernet data stream;
    根据所述以太网数据流,得到多个业务数据包;According to the Ethernet data flow, multiple service data packets are obtained;
    统计并删除相邻业务数据包之间的包间隙信息,根据统计结果形成包间隙数量信息;Count and delete packet gap information between adjacent business data packets, and form packet gap quantity information based on the statistical results;
    按第一编码方式对所述业务数据包进行编码,并扩展用于携带所述包间隙数量信息的第一信息码块,形成第一编码数据;Encode the service data packet according to the first encoding method, and extend the first information code block used to carry the packet gap number information to form first encoded data;
    将所述第一编码数据映射到OTN数据流;Mapping the first encoded data to an OTN data stream;
    发送所述OTN数据流。Send the OTN data stream.
  2. 根据权利要求1所述的方法,其中,所述第一编码方式为64B/66B编码方式;The method according to claim 1, wherein the first encoding method is a 64B/66B encoding method;
    所述包间隙数量信息包括前包间隙数量信息和后包间隙数量信息,其中,所述前包间隙数量信息用于表征当前业务数据包与前一业务数据包之间的包间隙总数,所述后包间隙数量信息用于表征当前业务数据包与后一业务数据包之间的包间隙总数;The information on the number of packet gaps includes information on the number of previous packet gaps and information on the number of subsequent packet gaps, where the number information on the number of previous packet gaps is used to represent the total number of packet gaps between the current service data packet and the previous service data packet, and the The information on the number of subsequent packet gaps is used to represent the total number of packet gaps between the current service data packet and the subsequent service data packet;
    所述第一信息码块包括S码块和/或新增的扩展I码块;The first information code block includes an S code block and/or a newly added extended I code block;
    所述按第一编码方式对所述业务数据包进行编码,并扩展用于携带所述包间隙数量信息的第一信息码块,包括:The method of encoding the service data packet according to the first encoding method and extending the first information code block used to carry the information on the number of packet gaps includes:
    通过64B/66B编码方式对当前的所述业务数据包进行编码,以生成S码块、数据码块和T码块;Encode the current service data packet through 64B/66B encoding to generate S code blocks, data code blocks and T code blocks;
    在所述S码块和/或新增的扩展I码块中扩展至少一个扩展字节,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息。At least one extension byte is extended in the S code block and/or the newly added extension I code block, and the extension byte is used to carry the information on the number of front packet gaps and/or the number information on the number of rear packet gaps.
  3. 根据权利要求2所述的方法,其中,所述T码块包括:The method of claim 2, wherein the T code block includes:
    一个码块类型字节,所述码块类型字节的类型为T;A code block type byte, the type of the code block type byte is T;
    若干个数据字节和/或若干个I控制字节;所述I控制字节对应的包间隙数量与所述后包间隙数量信息之和等于所述当前业务数据包与后一业务数据包之间的包间隙总数。Several data bytes and/or several I control bytes; the sum of the number of packet gaps corresponding to the I control byte and the number of subsequent packet gaps is equal to the sum of the current service data packet and the subsequent service data packet. The total number of packet gaps between.
  4. 根据权利要求2或3所述的方法,其中,所述第一信息码块包括S码块;所述扩展字节包括所述S码块中的第一扩展字节;The method according to claim 2 or 3, wherein the first information code block includes an S code block; the extension byte includes the first extension byte in the S code block;
    所述在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息,包括:At least one extension byte is extended in the S code block and/or the newly added extension I code block, and the extension byte is used to carry the information on the number of front packet gaps and/or the number information on the number of back packet gaps, include:
    将所述S码块的第一个字节作为码块类型字节,所述码块类型字节的类型为S;The first byte of the S code block is used as the code block type byte, and the type of the code block type byte is S;
    将所述S码块的第2至第M1+1个字节均作为所述第一扩展字节,其中,所述第一扩展字节用于携带所述前包间隙数量信息,M1为第一扩展字节的数量;The 2nd to M 1 +1 bytes of the S code block are all used as the first extension byte, wherein the first extension byte is used to carry the information on the number of front packet gaps, M 1 is the number of first extension bytes;
    将所述S码块的剩余字节作为数据字节,用于承载所述业务数据包的数据信息。The remaining bytes of the S code block are used as data bytes for carrying the data information of the service data packet.
  5. 根据权利要求2所述的方法,其中,所述第一信息码块包括S码块;所述扩展字节包括所述S码块中的第一扩展字节;The method according to claim 2, wherein the first information code block includes an S code block; the extension byte includes the first extension byte in the S code block;
    所述在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息,包括:At least one extension byte is extended in the S code block and/or the newly added extension I code block, and the extension byte is used to carry the information on the number of front packet gaps and/or the number information on the number of back packet gaps, include:
    累加统计当前业务数据包与下一业务数据包之间的后包间隙数量信息;Accumulate statistics on the number of post-packet gaps between the current business data packet and the next business data packet;
    当所述包间隙数量信息小于或等于第一预设阈值,由后一业务数据包的S码块中的第一扩展字节携带所述后包间隙数量信息。When the packet gap number information is less than or equal to the first preset threshold, the first extension byte in the S code block of the subsequent service data packet carries the subsequent packet gap number information.
  6. 根据权利要求2所述的方法,其中,所述第一信息码块包括S码块和一个扩展I码块;所述扩展字节包括所述S码块中的第一扩展字节和扩展I码块中的第二扩展字节;The method according to claim 2, wherein the first information code block includes an S code block and an extended I code block; the extended bytes include a first extended byte and an extended I code block in the S code block. The second extension byte in the code block;
    所述在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息,包括:At least one extension byte is extended in the S code block and/or the newly added extension I code block, and the extension byte is used to carry the information on the number of front packet gaps and/or the number information on the number of back packet gaps, include:
    累加统计当前业务数据包与下一业务数据包之间的包间隙数量信息;Accumulate statistics on the number of packet gaps between the current business data packet and the next business data packet;
    当所述包间隙数量信息大于第一预设阈值,新增一个扩展I码块,所述扩展I码块包括至少一个第二扩展字节,用于携带部分数量的包间隙数量信息;When the packet gap quantity information is greater than the first preset threshold, an extension I code block is added, and the extension I code block includes at least one second extension byte for carrying a partial number of packet gap quantity information;
    将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节携带。The remaining number of packet gap number information is carried by the first extension byte in the S code block of the next service data packet.
  7. 根据权利要求2所述的方法,其中,所述第一信息码块包括S码块和N个扩展I码块,N为大于或等于2的正整数;所述扩展字节包括所述S码块中的第一扩展字节和扩展I码块中的第二扩展字节;The method according to claim 2, wherein the first information code block includes an S code block and N extension I code blocks, N is a positive integer greater than or equal to 2; the extension byte includes the S code The first extension byte in the block and the second extension byte in the extension I code block;
    所述在S码块和/或新增的扩展I码块中扩展至少一个扩展字节,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息,包括:At least one extension byte is extended in the S code block and/or the newly added extension I code block, and the extension byte is used to carry the information on the number of front packet gaps and/or the number information on the number of back packet gaps, include:
    累加统计当前业务数据包与下一业务数据包之间的包间隙数量信息;Accumulate statistics on the number of packet gaps between the current business data packet and the next business data packet;
    当所述包间隙数量信息大于第一预设阈值,新增第一个扩展I码块,所述第一个扩展I码块包括至少一个第二扩展字节,用于携带第一数量的包间隙数量信息; When the packet gap number information is greater than the first preset threshold, a first extension I code block is added. The first extension I code block includes at least one second extension byte for carrying the first number of packets. Gap quantity information;
    判断剩余数量的包间隙数量信息是否大于第一预设阈值,如是,新增第二个扩展I码块,所述第二个扩展I码块包括至少一个第二扩展字节,用于携带剩余数量的包间隙数量信息中第二数量的包间隙数量信息;Determine whether the remaining number of packet gap number information is greater than the first preset threshold. If so, add a second extension I code block. The second extension I code block includes at least one second extension byte for carrying the remaining The second number of packet gap number information among the number of packet gap number information;
    以此类推,新增第N个扩展I码块,直至剩余数量的包间隙数量信息小于或等于第一预设阈值;By analogy, the Nth extension I code block is added until the remaining number of packet gap number information is less than or equal to the first preset threshold;
    将剩余数量的包间隙数量信息由下一业务数据包的S码块中的第一扩展字节携带。The remaining number of packet gap number information is carried by the first extension byte in the S code block of the next service data packet.
  8. 根据权利要求6或7所述的方法,其中,所述新增的扩展I码块包括:The method according to claim 6 or 7, wherein the newly added extension I code block includes:
    至少一个类型字节,所述类型字节用于标识码块类型;At least one type byte, the type byte is used to identify the code block type;
    至少一个扩展标识字节,所述扩展标识字节用于标识该码块为扩展I码块;At least one extension identification byte, the extension identification byte is used to identify the code block as an extended I code block;
    M2个所述第二扩展字节;M 2 second extension bytes;
    至少一个I控制字节。At least one I control byte.
  9. 根据权利要求6或7所述的方法,其中,第一扩展字节的数量小于或等于2;第二扩展字节的数量小于或等于2。The method according to claim 6 or 7, wherein the number of first extension bytes is less than or equal to 2; the number of second extension bytes is less than or equal to 2.
  10. 根据权利要求5至7任一项所述的方法,其中,所述第一预设阈值根据所述第一扩展字节的数量设定。The method according to any one of claims 5 to 7, wherein the first preset threshold is set according to the number of the first extension bytes.
  11. 根据权利要求1、2、3、5、6、7中的任一项所述的方法,其中,所述以太网数据流为PCS数据流;The method according to any one of claims 1, 2, 3, 5, 6, and 7, wherein the Ethernet data stream is a PCS data stream;
    所述根据所述以太网数据流,得到多个业务数据包,包括:According to the Ethernet data stream, multiple service data packets are obtained, including:
    对所述PCS数据流进行解析;Parse the PCS data stream;
    获取解析后的多个MAC数据包,并将所述MAC数据包作为所述业务数据包。Obtain multiple parsed MAC data packets, and use the MAC data packets as the service data packets.
  12. 根据权利要求1、2、3、5、6、7中的任一项所述的方法,其中,The method according to any one of claims 1, 2, 3, 5, 6 and 7, wherein,
    所述将所述第一编码数据映射到OTN数据流,包括:Mapping the first encoded data to the OTN data stream includes:
    在所述第一编码数据后添加I码块,以与OTN数据流的速率适配。An I code block is added after the first encoded data to adapt to the rate of the OTN data stream.
  13. 根据权利要求12所述的方法,其中,The method of claim 12, wherein:
    所述将所述第一编码数据映射到OTN数据流,还包括:Mapping the first encoded data to the OTN data stream further includes:
    对速率适配后的第一编码数据进行1024B/1027B转码;Perform 1024B/1027B transcoding on the first encoded data after rate adaptation;
    将转码后的数据映射到OTN数据流。Map the transcoded data to the OTN data stream.
  14. 一种数据传输方法,应用于OTN网络的宿端设备,所述方法包括:A data transmission method, applied to the sink end device of the OTN network, the method includes:
    获取OTN数据流;Get OTN data stream;
    解析所述OTN数据流,得到第一编码数据,其中,所述第一编码数据包括业务数据码块和第一信息码块,所述第一信息码块用于携带相邻业务数据包之间的包间隙数量信息;Parse the OTN data stream to obtain first encoded data, where the first encoded data includes a service data code block and a first information code block, and the first information code block is used to carry the difference between adjacent service data packets. Packet gap number information;
    根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息;Decode the first encoded data according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and obtain multiple service data packets and packets between adjacent service data packets. Gap quantity information;
    根据所述业务数据包和相邻业务数据包之间的包间隙数量信息,得到以太网数据流。According to the information on the number of packet gaps between the service data packet and adjacent service data packets, an Ethernet data stream is obtained.
  15. 根据权利要求14所述的方法,其中,所述第一解码方式为64B/66B解码方式;The method according to claim 14, wherein the first decoding method is a 64B/66B decoding method;
    所述包间隙数量信息包括前包间隙数量信息和后包间隙数量信息,其中,所述前包间隙数量信息用于表征当前业务数据包与前一业务数据包之间的包间隙总数,所述后包间隙数量信息用于表征当前业务数据包与后一业务数据包之间的包间隙总数;The information on the number of packet gaps includes information on the number of previous packet gaps and information on the number of subsequent packet gaps, where the number information on the number of previous packet gaps is used to represent the total number of packet gaps between the current service data packet and the previous service data packet, and the The information on the number of subsequent packet gaps is used to represent the total number of packet gaps between the current service data packet and the subsequent service data packet;
    所述第一信息码块包括S码块和/或新增的扩展I码块;The first information code block includes an S code block and/or a newly added extended I code block;
    所述根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到相邻业务数据包之间的包间隙数量信息,包括:Decoding the first encoded data according to the first decoding method and the first expansion strategy to obtain information on the number of packet gaps between adjacent service data packets includes:
    通过64B/66B解码方式对所述第一编码数据进行解码,以得到对应各个业务数据包的S码块、数据码块和T码块;Decode the first encoded data through 64B/66B decoding to obtain S code blocks, data code blocks and T code blocks corresponding to each service data packet;
    根据所述第一扩展策略解析所述S码块和/或新增的扩展I码块中的至少一个扩展字节,得到相邻业务数据包之间的包间隙数量信息,其中,所述扩展字节用于携带所述前包间隙数量信息和/或所述后包间隙数量信息。Parse at least one extension byte in the S code block and/or the newly added extension I code block according to the first extension strategy to obtain information on the number of packet gaps between adjacent service data packets, wherein the extension Bytes are used to carry the information on the number of preceding packet gaps and/or the information on the number of subsequent packet gaps.
  16. 根据权利要求15所述的方法,其中,所述T码块包括:The method of claim 15, wherein the T code block includes:
    一个码块类型字节,所述码块类型字节的类型为T;A code block type byte, the type of the code block type byte is T;
    若干个数据字节和/或若干个I控制字节;所述I控制字节对应的包间隙数量与所述后包间隙数量信息之和等于所述当前业务数据包与后一业务数据包之间的包间隙总数。Several data bytes and/or several I control bytes; the sum of the number of packet gaps corresponding to the I control byte and the number of subsequent packet gaps is equal to the sum of the current service data packet and the subsequent service data packet. The total number of packet gaps between.
  17. 根据权利要求15或16所述的方法,其中,所述第一信息码块包括S码块;所述扩展字节包括所述S码块中的第一扩展字节;The method according to claim 15 or 16, wherein the first information code block includes an S code block; the extension byte includes the first extension byte in the S code block;
    所述根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:The first encoded data is decoded according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and multiple service data packets and the distance between adjacent service data packets are obtained. Packet gap number information, including:
    解析码块类型字节,所述码块类型字节的类型为S以识别所述S码块的第一个字节;Parse the code block type byte, the type of the code block type byte is S to identify the first byte of the S code block;
    将所述S码块的第2至第M1+1个字节均识别为所述第一扩展字节,其中,所述第一扩展字节用于携带所述前包间隙数量信息,M1为第一扩展字节的数量;The 2nd to M 1 +1 bytes of the S code block are all identified as the first extension byte, wherein the first extension byte is used to carry the information on the number of front packet gaps, M 1 is the number of first extension bytes;
    解析所述S码块的剩余字节为数据字节,用于承载所述业务数据包的数据信息。 The remaining bytes of the S code block are parsed as data bytes, used to carry the data information of the service data packet.
  18. 根据权利要求15所述的方法,其中,所述第一信息码块包括S码块;所述扩展字节包括所述S码块中的第一扩展字节;The method according to claim 15, wherein the first information code block includes an S code block; the extension byte includes the first extension byte in the S code block;
    所述根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:The first encoded data is decoded according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and multiple service data packets and the distance between adjacent service data packets are obtained. Packet gap number information, including:
    解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第一包间隙数量信息;Analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding information on the number of gaps in the first packet;
    解析后一业务数据包的S码块中的第一扩展字节,得到所述后包间隙数量信息;Analyze the first extension byte in the S code block of the subsequent service data packet to obtain the information on the number of gaps in the subsequent packet;
    根据所述后包间隙数量信息和所述第一包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。According to the information on the number of subsequent packet gaps and the information on the number of first packet gaps, the total number of packet gaps of the current service data packet and the subsequent service data packet is obtained.
  19. 根据权利要求15所述的方法,其中,所述第一信息码块包括S码块和一个扩展I码块;所述扩展字节包括所述S码块中的第一扩展字节和扩展I码块中的第二扩展字节;The method according to claim 15, wherein the first information code block includes an S code block and an extended I code block; the extended bytes include a first extended byte and an extended I code block in the S code block. The second extension byte in the code block;
    所述根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:The first encoded data is decoded according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and multiple service data packets and the distance between adjacent service data packets are obtained. Packet gap number information, including:
    解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第二包间隙数量信息;Analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding information on the number of gaps in the second packet;
    解析扩展I码块中的至少一个第二扩展字节,得到对应的第三包间隙数量信息;Parse at least one second extension byte in the extension I code block to obtain the corresponding third packet gap number information;
    解析后一业务数据包的S码块中的第一扩展字节,得到第四包间隙数量信息;Analyze the first extension byte in the S code block of the next service data packet to obtain the fourth packet gap number information;
    根据所述第二包间隙数量信息、所述第三包间隙数量信息和所述第四包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。According to the second packet gap quantity information, the third packet gap quantity information and the fourth packet gap quantity information, the total number of packet gaps of the current service data packet and the next service data packet is obtained.
  20. 根据权利要求15所述的方法,其中,所述第一信息码块包括S码块和N个扩展I码块,N为大于或等于2的正整数;所述扩展字节包括所述S码块中的第一扩展字节和扩展I码块中的第二扩展字节;The method according to claim 15, wherein the first information code block includes an S code block and N extension I code blocks, N is a positive integer greater than or equal to 2; the extension byte includes the S code The first extension byte in the block and the second extension byte in the extension I code block;
    所述根据第一解码方式和第一扩展策略对所述第一编码数据进行解码,得到多个业务数据码块以及第一信息码块,得到多个业务数据包以及相邻业务数据包之间的包间隙数量信息,包括:The first encoded data is decoded according to the first decoding method and the first expansion strategy to obtain multiple service data code blocks and first information code blocks, and multiple service data packets and the distance between adjacent service data packets are obtained. Packet gap number information, including:
    解析当前业务数据包对应的T码块的I控制字节的数量,得到对应的第五包间隙数量信息;Analyze the number of I control bytes of the T code block corresponding to the current service data packet, and obtain the corresponding information on the number of gaps in the fifth packet;
    解析N个扩展I码块中的至少一个第二扩展字节,得到对应的第六包间隙数量信息;Parse at least one second extension byte in the N extension I code blocks to obtain the corresponding sixth packet gap number information;
    解析后一业务数据包的S码块中的第一扩展字节,得到第七包间隙数量信息;Analyze the first extension byte in the S code block of the next service data packet to obtain the seventh packet gap number information;
    根据所述第五包间隙数量信息、所述第六包间隙数量信息和所述第七包间隙数量信息,得到当前业务数据包和后一业务数据包的包间隙总数。According to the fifth packet gap quantity information, the sixth packet gap quantity information and the seventh packet gap quantity information, the total number of packet gaps of the current service data packet and the next service data packet is obtained.
  21. 根据权利要求19或20所述的方法,其中,所述新增的扩展I码块包括:The method according to claim 19 or 20, wherein the newly added extended I code block includes:
    至少一个类型字节,所述类型字节用于标识码块类型;At least one type byte, the type byte is used to identify the code block type;
    至少一个扩展标识字节,所述扩展标识字节用于标识该码块为扩展I码块;At least one extension identification byte, the extension identification byte is used to identify the code block as an extended I code block;
    M2个所述第二扩展字节;M 2 second extension bytes;
    至少一个I控制字节。At least one I control byte.
  22. 根据权利要求19或20所述的方法,其中,第一扩展字节的数量小于或等于2;第二扩展字节的数量小于或等于2。The method according to claim 19 or 20, wherein the number of first extension bytes is less than or equal to 2; the number of second extension bytes is less than or equal to 2.
  23. 根据权利要求14、15、16、18、19、20中的任一项所述的方法,其中,所述以太网数据流为PCS数据流,所述业务数据包为MAC数据包;The method according to any one of claims 14, 15, 16, 18, 19, and 20, wherein the Ethernet data flow is a PCS data flow, and the service data packet is a MAC data packet;
    所述根据所述业务数据包和相邻业务数据包之间的包间隙数量信息,得到以太网数据流,包括:Obtaining an Ethernet data stream based on information on the number of packet gaps between the service data packet and adjacent service data packets includes:
    根据所述MAC数据包和相邻MAC数据包之间的包间隙数量信息,进行PCS封装,以得到所述PCS数据流。PCS encapsulation is performed according to the information on the number of packet gaps between the MAC data packet and adjacent MAC data packets to obtain the PCS data stream.
  24. 一种数据传输方法,应用于OTN网络,所述OTN网络包括互相通信连接的源端设备和宿端设备,所述方法包括:A data transmission method, applied to an OTN network. The OTN network includes a source device and a sink device that communicate with each other. The method includes:
    所述源端设备执行如权利要求1至13任一项所述的数据传输方法以发送OTN数据流;The source device executes the data transmission method according to any one of claims 1 to 13 to send the OTN data stream;
    对应的,corresponding,
    所述宿端设备执行如权利要求14至23任一项所述的数据传输方法以接收和解析所述OTN数据流。The sink device executes the data transmission method according to any one of claims 14 to 23 to receive and parse the OTN data stream.
  25. 一种源端设备,包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,其中,所述第一处理器执行所述计算机程序时实现如权利要求1至13任意一项所述的数据传输方法。A source device includes: a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, wherein when the first processor executes the computer program Implement the data transmission method as described in any one of claims 1 to 13.
  26. 一种宿端设备,包括:第二存储器、第二处理器及存储在第二存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现:A sink device includes: a second memory, a second processor, and a computer program stored in the second memory and executable on the processor, wherein when the processor executes the computer program:
    如权利要求14至23任意一项所述的数据传输方法。The data transmission method according to any one of claims 14 to 23.
  27. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行:A computer-readable storage medium storing computer-executable instructions for executing:
    如权利要求1至13任一项所述的数据传输方法;The data transmission method according to any one of claims 1 to 13;
    或者,or,
    如权利要求14至23任一项所述的数据传输方法。 The data transmission method according to any one of claims 14 to 23.
PCT/CN2023/073626 2022-05-31 2023-01-28 Data transmission method, source end device, sink end device and storage medium WO2023231429A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210608522.4A CN117201969A (en) 2022-05-31 2022-05-31 Data transmission method, source device, sink device and storage medium
CN202210608522.4 2022-05-31

Publications (1)

Publication Number Publication Date
WO2023231429A1 true WO2023231429A1 (en) 2023-12-07

Family

ID=88991145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073626 WO2023231429A1 (en) 2022-05-31 2023-01-28 Data transmission method, source end device, sink end device and storage medium

Country Status (2)

Country Link
CN (1) CN117201969A (en)
WO (1) WO2023231429A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211750A1 (en) * 2006-03-13 2007-09-13 Huawei Technologies Co., Ltd. Method, data interface and device for transporting data from high-speed ethernet to optical transport network
CN101335750A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method and apparatus for mapping Ethernet encoding block to transmission of optical network
CN101707506A (en) * 2009-11-06 2010-05-12 中兴通讯股份有限公司 Business clock transparent transmission method and system in optical transport network
CN108881330A (en) * 2017-05-08 2018-11-23 深圳市中兴微电子技术有限公司 A kind of the OTN mapping interconnection method and device of FlexE termination mode and Ethernet
CN108989177A (en) * 2018-08-20 2018-12-11 烽火通信科技股份有限公司 A kind of method of the Packet Service configuration of POTN equipment
WO2019062227A1 (en) * 2017-09-30 2019-04-04 华为技术有限公司 Data transmission method, transmission device and transmission system
CN110830143A (en) * 2018-08-13 2020-02-21 中兴通讯股份有限公司 Service transmission method and device, optical transport network equipment and storage medium
CN111083580A (en) * 2019-12-09 2020-04-28 北京格林威尔科技发展有限公司 Method and device for protecting Ethernet link in optical transmission network
WO2021244660A1 (en) * 2020-06-05 2021-12-09 中国移动通信有限公司研究院 64b/66b code stream sending method and device, and 64b/66b code stream receiving method and device
CN114466087A (en) * 2022-02-21 2022-05-10 重庆奥普泰通信技术有限公司 Data transmission method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211750A1 (en) * 2006-03-13 2007-09-13 Huawei Technologies Co., Ltd. Method, data interface and device for transporting data from high-speed ethernet to optical transport network
CN101335750A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method and apparatus for mapping Ethernet encoding block to transmission of optical network
US20100098415A1 (en) * 2007-06-29 2010-04-22 Huawei Technologies Co., Ltd. Method and device for mapping ethernet code blocks to otn for transmission
CN101707506A (en) * 2009-11-06 2010-05-12 中兴通讯股份有限公司 Business clock transparent transmission method and system in optical transport network
CN108881330A (en) * 2017-05-08 2018-11-23 深圳市中兴微电子技术有限公司 A kind of the OTN mapping interconnection method and device of FlexE termination mode and Ethernet
WO2019062227A1 (en) * 2017-09-30 2019-04-04 华为技术有限公司 Data transmission method, transmission device and transmission system
CN110830143A (en) * 2018-08-13 2020-02-21 中兴通讯股份有限公司 Service transmission method and device, optical transport network equipment and storage medium
CN108989177A (en) * 2018-08-20 2018-12-11 烽火通信科技股份有限公司 A kind of method of the Packet Service configuration of POTN equipment
CN111083580A (en) * 2019-12-09 2020-04-28 北京格林威尔科技发展有限公司 Method and device for protecting Ethernet link in optical transmission network
WO2021244660A1 (en) * 2020-06-05 2021-12-09 中国移动通信有限公司研究院 64b/66b code stream sending method and device, and 64b/66b code stream receiving method and device
CN114466087A (en) * 2022-02-21 2022-05-10 重庆奥普泰通信技术有限公司 Data transmission method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN117201969A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN110798415B (en) Service transmission method, equipment and computer storage medium
US20220416895A1 (en) Data transmission method and apparatus, terminal device and storage medium
CN113162853A (en) Method and device for forwarding data
CN105701053B (en) Serial data transmitting and receiving method and device
CN110224793B (en) Self-adaptive FEC method based on media content
CN109698732B (en) Method and device for transmitting data
KR20150001566A (en) data structure generating apppateus and method thereof
CN102196321A (en) Method for transmitting 100GE (100gigabit Ethernet) data in OTN (Optical Transport Network) and data sending device
WO2021219079A1 (en) Service data processing, exchange and extraction methods, devices, and computer-readable medium
EP1648133B1 (en) A method for encapsulating data stream
KR20090094754A (en) Data transport container for transferring data in a high speed internet protocol network
KR102309444B1 (en) Data encapsulation, transmission methods, devices and computer storage media
EP2077637B1 (en) System and method for protecting payload information in radio transmission
WO2023231429A1 (en) Data transmission method, source end device, sink end device and storage medium
CN110830152B (en) Method for receiving code block stream, method for transmitting code block stream and communication device
CN115174699A (en) Processing method of Ethernet message and related equipment
WO2024032297A1 (en) Service information processing method, network device, and storage medium
WO2024001230A1 (en) Bearing method, communication equipment and storage medium
CN110830153B (en) Method for receiving code block stream, method for transmitting code block stream and communication device
WO2024001220A1 (en) Slicing method, service processing method, communication node and storage medium
EP4362361A1 (en) Service processing method and service processing device
WO2023124551A1 (en) Packet signal sending method and apparatus, and storage medium and electronic apparatus
WO2020114084A1 (en) Message forwarding method and apparatus
CN116055269A (en) Phase adjustment method for data transmission and related equipment
CN114915371A (en) Communication method, device and chip system

Legal Events

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

Ref document number: 23814628

Country of ref document: EP

Kind code of ref document: A1