CN109428837B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN109428837B
CN109428837B CN201710787314.4A CN201710787314A CN109428837B CN 109428837 B CN109428837 B CN 109428837B CN 201710787314 A CN201710787314 A CN 201710787314A CN 109428837 B CN109428837 B CN 109428837B
Authority
CN
China
Prior art keywords
frame header
data
frame
receiving end
channels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710787314.4A
Other languages
Chinese (zh)
Other versions
CN109428837A (en
Inventor
耿丹
张伟良
袁立权
马壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710787314.4A priority Critical patent/CN109428837B/en
Priority to PCT/CN2018/103997 priority patent/WO2019042475A1/en
Publication of CN109428837A publication Critical patent/CN109428837A/en
Application granted granted Critical
Publication of CN109428837B publication Critical patent/CN109428837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a data transmission method and a data transmission device, wherein the method comprises the following steps: the sending end transmits data on a plurality of channels, a second frame header is added among the data of each channel, the second frame header is used for indicating the position information of the data section of the frame header in all the data sections, namely, the receiving end can recover the data section behind the second frame header according to the second frame header. By adopting the technical scheme, when the first frame header before each channel data in the related technology is analyzed in error, the receiving end can use the second frame header after the first frame header to recombine the data, namely, the receiving end can only not recover the data between the first frame header and the second frame header, so that the problem of large amount of data loss caused by unrecoverable error of the segmented frame header information in the related technology during data segmented transmission is avoided, and the effectiveness of data transmission is greatly improved.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a data transmission method and apparatus.
Background
In the related art, with the development of Network technology, a large amount of services such as voice, data, and video can be transmitted by using a Network, so that the requirement for bandwidth is continuously increased, and a Passive Optical Network (PON) is generated under the requirement.
Fig. 1 is a topology structure diagram of a PON system according to the related art, as shown in fig. 1, the PON system generally includes an Optical Line Terminal (OLT) on an office side, an Optical Network Unit (ONU) on a user side, and an Optical Distribution Network (ODN), and generally adopts a point-to-multipoint Network structure. The ODN is composed of a single-mode optical fiber, an optical splitter, an optical connector, and other passive optical devices, and provides an optical transmission medium for physical connection between the OLT and the ONU. In order to improve the line rate under the condition of saving optical fiber resources, the method proposes that data is transmitted on a plurality of wavelengths in one optical fiber simultaneously, the data of different ONUs on the same wavelength is in a time division multiplexing mode in a downlink mode, and the data of different ONUs on the same wavelength is in a time division multiplexing access mode in an uplink mode. This is called a wavelength division and time division PON system, and fig. 2 is a topology structure diagram of the wavelength division and time division PON system according to the related art, as shown in fig. 2, each OLT manages a plurality of groups of ONUs, one OLT port manages a group of ONUs, an uplink wavelength at which a group of ONUs transmit uplink data is the same on the same uplink wavelength and downlink wavelength, and a downlink wavelength at which downlink data is received is the same, an uplink wavelength at which a group of ONUs transmit uplink data is different on different uplink wavelengths and downlink wavelengths, and a downlink wavelength at which downlink data is received is also different.
In order to support the ONU to transmit data exceeding the single channel rate, the ONU is proposed to simultaneously transmit and receive data on a plurality of groups of wavelength channels, which requires a transmitting end to segment the transmitted data, divide each segment of data into different channels, and simultaneously transmit data on the multiple channels, thereby realizing the data transmission exceeding the single channel rate. After data is segmented, a receiving end needs to recombine received segmented data, in order to prevent the data received by the receiving end from being out of order, a sending end can add frame header information to a starting end of a group of data transmitted on each channel, and the frame header information can be used for delimitation of a data frame and marking the length of the data frame and position information of first segmented data of the data frame in the complete data frame. If the frame header information has errors during transmission and the errors cannot be corrected by means of error correction code calculation, all data after the frame header and before the next frame header in the channel need to be discarded.
For the problem of large amount of data loss caused by unrecoverable errors of frame header information of the segments during data segment transmission in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and a data transmission device, which are used for at least solving the problem that a large amount of data is lost when unrecoverable errors occur in segmentation frame header information during data segmentation transmission in the related technology.
According to an embodiment of the present invention, there is provided a data transmission method including: a sending end adds a second frame header in the data transmitted on a plurality of channels, wherein a receiving end is allowed to recombine the data according to the second frame header; and transmitting the data carrying the second frame header to the receiving end on a plurality of channels.
Optionally, the sending end adds a first frame header before or after adding a second frame header to the data transmitted on the multiple channels, and the receiving end recombines the data according to the first frame header.
Optionally, the sending end adds a second frame header to the data transmitted on multiple channels, including: adding the second header over all lanes before transmitting Ethernet frames in the data.
Optionally, the sending end adds a second frame header to data transmitted on multiple channels, including: and replacing the Ethernet frame header of the data with the second frame header, and adding the second frame header on other channels.
Optionally, in a case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps: deleting second frame headers behind the first frame headers on all channels; replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
Optionally, the method further comprises: under the condition that the receiving end analyzes the first frame header before the data of at least one channel in error, the data is recombined according to the second frame header of the channel and the first frame headers or the second frame headers of other channels, and one of the following operations is executed: deleting second frame headers behind the first frame headers on all channels; replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels; and replacing a plurality of continuous second frame headers behind the first frame header with an Ethernet frame header.
Optionally, the second frame header includes at least one of the following information: a frame start delimiter; position information of a first data segment behind the frame header in transmission data; the length value of the data transmitted to the receiving end after the frame header and the frame header; the identity information value of the receiving end.
According to another embodiment of the present invention, there is also provided a data transmission method including: a receiving end receives data on a plurality of channels, wherein the middle of the data on each channel carries a second frame header; allowing the data to be reassembled according to the second frame header.
Optionally, in a case that a first frame header exists before data of each channel, the method further includes: and the receiving end preferably recombines the data according to the first frame header.
Optionally, in a case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps: deleting second frame headers behind the first frame headers on all channels; replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
Optionally, in a case that the receiving end parses a first frame header before at least one channel data incorrectly, the receiving end reassembles the data according to a second frame header of the channel and the first frame header or the second frame header of another channel, and performs one of the following operations: deleting second frame headers behind the first frame headers on all channels; replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
According to another embodiment of the present invention, there is also provided a data transmission apparatus including: an adding module, configured to add a second frame header to data transmitted in multiple channels, where a receiving end is allowed to recombine the data according to the second frame header; and a transmission module, configured to transmit the data carrying the second frame header to the receiving end on multiple channels.
According to another embodiment of the present invention, there is also provided a data transmission apparatus including: the receiving module is used for receiving data on a plurality of channels, wherein the middle of the data on each channel carries a second frame header; and the recombining module is allowed to recombine the data according to the second frame header.
According to another embodiment of the present invention, there is also provided a data transmission system including: the sending end is used for adding second frame headers in the middle of data transmitted on a plurality of channels and transmitting the data carrying the second frame headers to the receiving end on the plurality of channels; and the receiving end is used for receiving the data on the channels, wherein the data on each channel carries a second frame header, and the receiving end is allowed to recombine the data according to the second frame header.
According to another embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program is operable to perform the method of any of the above-mentioned alternative embodiments.
According to another embodiment of the present invention, there is also provided a processor for executing a program, wherein the program executes to perform the method as described in any one of the above-mentioned alternative embodiments.
According to the invention, the sending end transmits data on a plurality of channels, a second frame header is added among the data of each channel, the second frame header is used for indicating the position information of the data section of the frame header in all the data sections, namely, the receiving end can recover the data section behind the second frame header according to the second frame header. By adopting the technical scheme, when the first frame header before each channel data in the related technology is analyzed in error, the receiving end can use the second frame header behind the first frame header to recombine the data, namely, the receiving end can only not recover the data between the first frame header and the second frame header, so that the problem that a large amount of data is lost when the error which cannot be recovered occurs in the segmented frame header information during data segmented transmission in the related technology is avoided, and the effectiveness of data transmission is greatly improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a topology structural diagram of a PON system according to the related art;
fig. 2 is a view illustrating a topology of a wavelength division and time division PON system according to the related art;
FIG. 3 is a flow chart of a method of data transmission according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an Ethernet frame structure in accordance with the preferred embodiments;
FIG. 5 is a detailed schematic diagram of an Ethernet frame in accordance with the preferred embodiments;
FIG. 6 is a schematic diagram of queuing Ethernet frames into queue composition data in accordance with the preferred embodiments;
FIG. 7 is a diagram of multiple lanes after inserting a type 1 frame header 1 in front of a set of data segments in accordance with the preferred embodiments;
FIG. 8 is a first diagram illustrating the insertion of a second frame header in multiple lanes in accordance with the preferred embodiments;
FIG. 9 is a second diagram illustrating the insertion of a second frame header in multiple passes in accordance with the preferred embodiments;
FIG. 10 is a third diagram illustrating the insertion of a second frame header in multiple passes in accordance with the preferred embodiments;
fig. 11 is a fourth schematic diagram of inserting a second frame header in multiple passes according to the preferred embodiment.
Detailed Description
It should be noted that the technical solution of the present application may be applied to an optical network, specifically including a sending end device and a receiving end device, where the OLT and the ONU may be sending and receiving devices for each other.
Example one
In this embodiment, a data transmission method operating in the above network architecture is provided, where the method may be applied to a sending end device, and fig. 3 is a flowchart of the data transmission method according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S302, a sending end adds a second frame header in the data transmitted on a plurality of channels, wherein a receiving end is allowed to recombine the data according to the second frame header;
step S304, transmitting the data carrying the second frame header to the receiving end on multiple channels.
Through the steps, the sending end transmits data on a plurality of channels, a second frame header is added among the data of each channel, the second frame header is used for indicating the position information of the data section of the frame header in all the data sections, namely, the receiving end can recover the data section behind the second frame header according to the second frame header. By adopting the technical scheme, when the first frame header before each channel data in the related technology is analyzed in error, the receiving end can use the second frame header behind the first frame header to recombine the data, namely, the receiving end can only not recover the data between the first frame header and the second frame header, so that the problem that a large amount of data is lost when the error which cannot be recovered occurs in the segmented frame header information during data segmented transmission in the related technology is avoided, and the effectiveness of data transmission is greatly improved.
Optionally, the sending end adds a first frame header before or after adding a second frame header in the middle of data transmitted on multiple channels, and before the data on each channel, wherein the receiving end reconstructs the data according to the first frame header.
Optionally, the sending end adds a second frame header to the data transmitted on multiple channels, including: the second header is added on all lanes before transmitting the ethernet frame in the data.
Optionally, the sending end adds a second frame header to the data transmitted on multiple channels, including: and replacing the Ethernet frame header of the data with the second frame header, and adding the second frame header on other channels. It should be noted that the ethernet frame header may include a preamble and a start-of-frame delimiter.
Optionally, in a case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps: deleting the second frame headers behind the first frame headers on all channels; replacing the second frame header behind the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header behind the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with the Ethernet frame header. It should be added that, when a plurality of consecutive second frame headers are replaced, the consecutive number may be the same as that on the channel, or may be related to the number of channels supported by a certain ONU.
Optionally, the method further comprises: under the condition that the receiving end analyzes the first frame header before the data of at least one channel in error, the data is recombined according to the second frame header of the channel and the first frame headers or the second frame headers of other channels, and one of the following operations is executed: deleting the second frame headers behind the first frame headers on all channels; replacing the second frame header behind the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header behind the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with the Ethernet frame header.
Optionally, the second frame header includes at least one of the following information: a frame start delimiter; position information of a first data segment behind the frame header in transmission data; the length value of the data transmitted to the receiving end after the frame header and the frame header; the identity information value of the receiver.
According to another embodiment of the present invention, there is also provided a data transmission method including the steps of:
a receiving end receives data on a plurality of channels, wherein the data on each channel carries a second frame header;
and step two, allowing the data to be recombined according to the second frame header.
Optionally, in a case that a first frame header exists before data of each channel, the method further includes: the receiving end recombines the data according to the first frame head preferentially.
Optionally, in a case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps: deleting the second frame headers behind the first frame headers on all channels; replacing the second frame header behind the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header behind the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with the Ethernet frame header.
Optionally, in a case that the receiving end parses the first frame header before the data of the at least one channel in error, the data is recombined according to the second frame header of the channel and the first frame header or the second frame header of another channel, and one of the following operations is performed: deleting the second frame headers behind the first frame headers on all channels; replacing the second frame header behind the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header behind the first frame header on other channels; and replacing a plurality of continuous second frame headers after the first frame header with the Ethernet frame header.
This is further illustrated below in connection with preferred embodiments.
A data transmission method provided according to the preferred embodiment includes the following steps: a sending end determines M channels for transmitting data to a receiving end, wherein M is a positive integer; distributing a plurality of data segments of the data to the M channels, wherein the data consists of one or more Ethernet frames, and each Ethernet frame is divided into a plurality of data segments; detecting a preamble and/or a start-of-frame delimiter of the ethernet frames on the M channels, wherein the preamble and/or the start-of-frame delimiter is replaced with a second frame header when the preamble and/or the start-of-frame delimiter is detected; copying the second frame header to the positions of (M-1) data sections after the position of the data section of the preamble and/or the frame header delimiter, and extending the positions of the (M-1) data sections on the M channels backwards; and transmitting the processed data on the M channels.
Optionally, copying the second frame header to a position where (M-1) data segments are located after the position of the data segment where the preamble and/or the frame header delimiter is located, and after delaying the positions of the (M-1) data segments on the M channels backward, the method further includes: inserting a first frame header before all data segments to be transmitted on each channel, wherein the first frame header comprises at least one of the following information: a frame start delimiter; position information of a first data segment behind the frame header in all data segments; the length value of the data transmitted to the receiving end after the frame header; the identity information value of the receiving end.
Optionally, the second frame header includes at least one of the following information: a frame start delimiter; the position information of the first data segment behind the frame header in all data segments; the length value of the data transmitted to the receiving end after the frame header and the frame header; the identity information value of the receiving end.
Optionally, allocating a plurality of data segments of the data on the M lanes may include: and allocating the N { (K-1) M + N } data segments for the Nth channel, wherein the K is the data segment position number of the Nth channel, namely the position of the Nth channel.
Optionally, the data is comprised of one or more ethernet frames, including: the plurality of ethernet frames are queued to form the data, wherein the plurality of ethernet frames have the same logical link identification.
Optionally, the method further comprises: the sending end or the receiving end is an ONU, and the M channels are channels supported by the ONU.
The method of the preferred embodiment comprises the following steps at the receiving end side: a receiving end receives a plurality of data segments which are transmitted by a transmitting end on M channels and carry second frame headers, wherein M is a positive integer; the receiving end recombines the plurality of data segments according to the second frame header, wherein the sending end carries the second frame header in the plurality of data segments by the following method: and replacing the lead code and/or the frame head delimiter of the Ethernet frame in the data sections transmitted by the M channels with a second frame head, copying the second frame head to the position of (M-1) data sections behind the position of the data section of the lead code and/or the frame head delimiter, and carrying the positions of the (M-1) data sections on the M channels backwards and forwards.
Optionally, the receiving end receives a plurality of data segments carrying a second frame header and transmitted by the transmitting end on M channels, including: the receiving end receives first frame headers before all data sections to be transmitted on each channel; reconstructing the plurality of data segments according to the first frame header, wherein the first frame header comprises at least one of the following information: a frame start delimiter; position information of a first data segment behind the frame header in all data segments; the length value of the data transmitted to the receiving end after the frame header; the identity information value of the receiver.
Optionally, after recombining the plurality of data segments, the receiving end replaces the second frame headers arranged consecutively with a preamble and/or a frame header delimiter of a corresponding ethernet frame.
Optionally, when it is determined that an unrecoverable error occurs in any one of the first frame headers, the receiving end discards data from the any one of the first frame headers to a first second frame header of the channel, and reassembles a plurality of data segments after the first second frame header according to the first second frame header.
Optionally, when it is determined that an unrecoverable error occurs in the second frame header, the receiving end reassembles all data segments according to the first frame header.
Reference will now be made in detail to specific examples of the preferred embodiments.
It should be added that frame header 1 and the first frame header are the same, and frame header 2 and the second frame header are the same in this application, and both refer to a type of frame header, and different frame headers 1 or frame headers 2 in the data to be transmitted in the multiple channels carry different information, and respectively correspond to the respective positions where the frame headers are located, that is, not all frame headers 1 in the data to be transmitted are the same, nor all frame headers 2 are the same.
In this preferred embodiment, the OLT includes a plurality of ports, each port corresponds to one wavelength channel, each channel uses one downstream wavelength and one upstream wavelength, one OLT port on each channel manages a group of ONUs, the group of ONUs sends upstream data in a time division multiplexing access manner, and different groups of ONUs on different wavelength channels send data in a wavelength division multiplexing manner. One ONU can support multiple wavelength channels to transmit and receive data simultaneously. The invention solves the problem that data loss on the current channel and other channels is caused when unrecoverable errors occur during the transmission of the frame header information before the segmented data groups transmitted on each channel under the framework.
Example one
In this embodiment, the OLT includes a plurality of ports, each port corresponds to one wavelength channel, each channel uses one downlink wavelength and one uplink wavelength, one OLT port on each channel manages a group of ONUs, the group of ONUs sends uplink data in a time division multiplexing access manner, and different groups of ONUs on different wavelength channels send data in a wavelength division multiplexing manner. One ONU can support multiple wavelength channels to send and receive data simultaneously. The OLT and the ONU transmit and receive data using the following main steps one and two. It should be added that the OLT and the ONU are a transmitting end and a receiving end.
The method comprises the following steps:
fig. 4 is a diagram of an ethernet frame structure according to the preferred embodiment, and as shown in fig. 4, the ethernet frame includes a preamble, a start-of-frame delimiter and the like, and the preamble and the start-of-frame delimiter occupy 8 bytes in general. Fig. 5 is a detailed schematic diagram of an ethernet frame according to the preferred embodiment, as shown in fig. 5, PREAMBLE occupies 7-bit bytes, start of frame delimiter SFD occupies 1-bit bytes, DESTINATION ADDRESS occupies 6-bit byte, SOURCE ADDRESS occupies 6-bit byte, frame LENGTH/TYPE occupies 2-bit byte, the Ethernet frame also includes: medium access control CLIENT DATA MAC CLIENT DATA, FRAME CHECK SEQUENCE.
The transmitting end arranges the ethernet frames with the same logical link identification sent to the receiving end into a queue, as shown in fig. 6, and fig. 6 is a schematic diagram of arranging ethernet frames into a queue to form data according to the preferred embodiment.
The sending end replaces the lead code in each Ethernet frame with m type 2 frame headers 2, m is the number of channels supported by the ONU, and the information of the frame headers 2 comprises: a frame head delimiter, position information of a first data segment behind the frame head in the fragmented data segment, a length value of a data group sent to a receiving end inside the frame head and behind the frame head, and an identity information value of the receiving end, for example: a logical link identification value, or ONU identification information, the frame header being frame header information generated for replacing the preamble.
The above group of ethernet frames containing type 2 header 2 is cut into a plurality of data segments, for example, 8 bytes into one data segment, the first data segment is placed on the first channel supported by the ONU, the second data segment is placed on the second channel supported by the ONU, the third data segment is placed on the third channel supported by the ONU, the fourth data segment is placed on the fourth channel supported by the ONU, the fifth data segment is placed on the first channel supported by the ONU, the sixth data segment is placed on the second channel supported by the ONU, and so on. Each channel is allocated with a data segment set, and each data segment is a type 2 frame header or a part of data segments of an Ethernet frame.
Fig. 7 shows that the sending end inserts the type 1 frame header 1 in front of the data segment set on each channel, fig. 7 is a schematic diagram of a plurality of channels after inserting the type 1 frame header 1 in front of the data segment set according to the preferred embodiment, where the type 1 frame header 1 at least includes the following information: frame head delimiter, position information of the first data segment in the fragment data segment after the frame head, length value of the data group sent to the receiving end after the frame head, and identity information value of the receiving end, for example: a logical link identification value, or ONU identification information, and the frame header is frame header information inserted in front of the set of data segments.
Fig. 8 is a first schematic diagram of inserting a second frame header into multiple lanes according to the preferred embodiment, and as shown in fig. 8, assuming that the data segment 9 of fig. 7 is an ethernet frame header and is replaced by the second frame header, the second frame header is inserted before the data segments 10, 11, and 12, and the data segments 9, 10, 11, and 12 are backward-forwarded;
fig. 9 is a second schematic diagram of inserting a second frame header into multiple lanes according to the preferred embodiment, and as shown in fig. 9, assuming that the data segment 10 in fig. 7 is an ethernet frame header and is replaced by the second frame header, the second frame header is inserted before the data segments 11, 12, and 13, and the data segments 10, 11, 12, and 13, etc. are carried forward backward;
fig. 10 is a third schematic diagram illustrating the insertion of a second frame header in multiple lanes according to the preferred embodiment, and as shown in fig. 10, assuming that the data segment 11 in fig. 7 is an ethernet frame header and is replaced by the second frame header, the second frame header is inserted before the data segments 12, 13, and 14, and the data segments 11, 12, 13, and 14 are backward-forwarded;
fig. 11 is a fourth schematic diagram illustrating the insertion of a second frame header in multiple lanes according to the preferred embodiment, and as shown in fig. 11, assuming that the data segment 12 in fig. 7 is an ethernet frame header and is replaced by the second frame header, the second frame header is inserted before the data segments 13, 14, and 15, and the data segments 12, 13, 14, and 15 are respectively carried forward.
Step two: after receiving the data sent by the sending end on multiple channels, the receiving end reassembles all data segments according to the sequence number information in the type 1 frame header 1, and replaces the type 2 frame headers (for example, supporting the ONU to support 4 channels, there may be four continuous type 2 frame headers) which are continuously arranged together with a preamble (which may include a frame start delimiter).
If unrecoverable error occurs in the frame header of one type of frame header in the received data, the receiving end discards the data from the frame header of the type one to the frame header of the first type 2 in the channel, analyzes the frame header information of the first type 2 in the channel, obtains the byte length information of all data groups behind the frame header of the type 2, and can obtain all data groups behind the frame header of the type 2.
If unrecoverable error occurs in the frame header of one type two in the received data, the receiving end obtains the byte length information of all data groups behind the frame header of the type 1 according to the frame header of the type one, and can obtain all data groups behind the frame header of the type 1.
By adopting the method for inserting the delimiting frame header (namely the second frame header) in the middle of the segmented data in the preferred embodiment, when the first frame header in front of the segmented data group on one channel has an error, the following data can be recovered through the delimiting frame header inserted in the middle of the segmented data group, the discarded data volume is reduced, and the system reliability and the transmission efficiency are improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example two
In this embodiment, a data transmission device is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and the description that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
According to another embodiment of the present invention, there is also provided a data transmission apparatus applied to a transmitting end, including:
the device comprises an adding module, a sending module and a receiving module, wherein the adding module is used for adding a first frame header in the data transmitted on a plurality of channels, and allowing the receiving end to recombine the data according to the first frame header;
and the transmission module is used for transmitting the data carrying the second frame header to the receiving end on a plurality of channels.
It should be added that the method steps performed by the transmitting end in the first embodiment may be performed by the data transmission apparatus for the transmitting end.
According to another embodiment of the present invention, there is also provided a data transmission apparatus applied to a receiving end, including:
the receiving module is used for receiving data on a plurality of channels, wherein the middle of the data on each channel carries a second frame header;
and the recombination module is allowed to recombine the data according to the second frame header.
It should be added that the method steps performed by the receiving end in the first embodiment may be performed by the data transmission apparatus for the receiving end.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
EXAMPLE III
According to another embodiment of the present invention, there is also provided a data transmission system including: the sending end is used for adding second frame headers in the middle of data transmitted on a plurality of channels and transmitting the data carrying the second frame headers to the receiving end on the plurality of channels; and the receiving end is used for receiving the data on the channels, wherein the data on each channel carries a second frame header, and the receiving end is allowed to recombine the data according to the second frame header.
Example four
According to another embodiment of the present invention, there is also provided a processor for executing a program, wherein the program executes to perform the method as described in any one of the above-mentioned alternative embodiments.
EXAMPLE five
According to another embodiment of the present invention, there is also provided a storage medium comprising a stored program, wherein the program when executed performs the method as set forth in any one of the above-mentioned alternative embodiments.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A method of data transmission, comprising:
a sending end adds a second frame header in the data transmitted on a plurality of channels, wherein a receiving end is allowed to recombine the data according to the second frame header;
transmitting the data carrying the second frame header to the receiving end on a plurality of channels;
the second frame header at least comprises the following information, namely the length value of data transmitted to the receiving end after the frame header and the frame header;
before or after a second frame header is added to data transmitted on a plurality of channels by a transmitting end, the method further comprises:
and adding a first frame header before the data on each channel, wherein the receiving end recombines the data according to the first frame header.
2. The method of claim 1, wherein the adding, by the sending end, a second frame header to the data transmitted on the plurality of lanes comprises:
adding the second header over all lanes before transmitting Ethernet frames in the data.
3. The method of claim 1, wherein the adding, by the sending end, a second frame header to the data transmitted on the plurality of lanes comprises:
and replacing the Ethernet frame header of the data with the second frame header, and adding the second frame header to other channels.
4. The method according to claim 2 or 3, wherein in case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps:
deleting second frame headers behind the first frame headers on all channels;
replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels;
and replacing a plurality of continuous second frame headers behind the first frame header with an Ethernet frame header.
5. A method according to claim 2 or 3, characterized in that the method further comprises:
under the condition that the receiving end analyzes the first frame header before the data of at least one channel in error, the data is recombined according to the second frame header of the channel and the first frame headers or the second frame headers of other channels, and one of the following operations is executed:
deleting second frame headers behind the first frame headers on all channels;
replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels;
and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
6. The method of claim 1, wherein the second frame header further comprises at least one of:
a frame start delimiter;
position information of a first data segment behind the frame header in transmission data;
the identity information value of the receiving end.
7. A method of data transmission, comprising:
a receiving end receives data on a plurality of channels, wherein the middle of the data on each channel carries a second frame header;
allowing the data to be reassembled according to the second frame header;
the second frame header at least comprises the following information, namely the length value of data transmitted to the receiving end after the frame header and the frame header;
in the case that the data of each channel is preceded by the first frame header, the method further includes:
and the receiving end preferably recombines the data according to the first frame header.
8. The method according to claim 7, wherein in case that the receiving end correctly parses the first frame header on each channel, the receiving end further performs one of the following steps:
deleting second frame headers behind the first frame headers on all channels;
replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels;
and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
9. The method according to claim 7, wherein in case that the receiving end parses the first frame header before the data of at least one channel in error, the data is reassembled according to the second frame header of the channel and the first frame header or the second frame header of other channels, and one of the following operations is performed:
deleting second frame headers behind the first frame headers on all channels;
replacing the second frame header after the first frame header on one channel with a corresponding Ethernet frame header, and deleting the second frame header after the first frame header on other channels;
and replacing a plurality of continuous second frame headers after the first frame header with an Ethernet frame header.
10. A data transmission apparatus, comprising:
an adding module, configured to add a second frame header to data transmitted in multiple channels, where a receiving end is allowed to recombine the data according to the second frame header;
a transmission module, configured to transmit the data carrying the second frame header to the receiving end on multiple channels;
the second frame header at least comprises the following information, namely the length value of data transmitted to the receiving end after the frame header and the frame header;
the adding module is further configured to add a first frame header before the data on each channel, where the receiving end reconstructs the data according to the first frame header.
11. A data transmission apparatus, comprising:
the receiving module is used for receiving data on a plurality of channels through a receiving end, wherein the middle of the data on each channel carries a second frame header;
a restructuring module allowing the restructuring module to restructure the data according to the second frame header;
the second frame header at least comprises the following information, namely the length value of data transmitted to the receiving end after the frame header and the frame header;
the reassembly module is further configured to allow the receiving end to reassemble the data preferentially according to the first frame header under the condition that the first frame header exists before the data of each channel.
12. A data transmission system, comprising:
the sending end is used for adding second frame headers in the middle of data transmitted on a plurality of channels and transmitting the data carrying the second frame headers to the receiving end on the plurality of channels;
a receiving end, configured to receive data on the multiple channels, where a second frame header is carried in the middle of the data on each channel, and the receiving end is allowed to recombine the data according to the second frame header;
the second frame header at least comprises the following information, namely the length value of data transmitted to the receiving end after the frame header and the frame header;
the receiving end is further configured to, in a case where a first frame header exists before data of each channel, preferentially recombine the data according to the first frame header.
13. A storage medium storing a computer program, wherein the computer program is executable by a processor to implement the method of any one of claims 1 to 9.
CN201710787314.4A 2017-09-04 2017-09-04 Data transmission method and device Active CN109428837B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710787314.4A CN109428837B (en) 2017-09-04 2017-09-04 Data transmission method and device
PCT/CN2018/103997 WO2019042475A1 (en) 2017-09-04 2018-09-04 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710787314.4A CN109428837B (en) 2017-09-04 2017-09-04 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN109428837A CN109428837A (en) 2019-03-05
CN109428837B true CN109428837B (en) 2022-12-02

Family

ID=65513798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710787314.4A Active CN109428837B (en) 2017-09-04 2017-09-04 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN109428837B (en)
WO (1) WO2019042475A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637112B (en) * 2019-10-09 2024-08-06 中兴通讯股份有限公司 Multi-channel data transmission method, assembly method, device, medium and electronic equipment
CN110716889A (en) * 2019-10-10 2020-01-21 上海久誉软件系统有限公司 Neural network multiport ultra-high speed transmission instrument based on block chain
CN111181689B (en) * 2019-12-23 2022-08-23 翱捷科技股份有限公司 Method and system for processing NEST mechanism of simplified DigRF receiving side
US11290577B2 (en) * 2020-03-11 2022-03-29 Semiconductor Components Industries, Llc Wireless data transmission
CN112422851B (en) * 2020-11-16 2022-06-28 新华三技术有限公司 Video switching method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU9636998A (en) * 1997-11-04 1999-05-24 British Telecommunications Public Limited Company Communications network
CN102045130A (en) * 2009-10-20 2011-05-04 华为技术有限公司 Downlink framing method, optical line terminal and passive optical network system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6892287B1 (en) * 2002-05-24 2005-05-10 Xyratex Technology Limited Frame reassembly in an ATM network analyzer
US20040208553A1 (en) * 2002-07-03 2004-10-21 Lucent Technologies Inc. Method and apparatus for optical layer network management
CN101212390A (en) * 2006-12-30 2008-07-02 华为技术有限公司 A data transmission method and device
US8139582B2 (en) * 2007-05-17 2012-03-20 Samsung Electronics Co., Ltd. Method and apparatus for making transport frame and method and apparatus for processing transport frame
EP2007078A1 (en) * 2007-06-19 2008-12-24 Panasonic Corporation Header size reduction of data packets
CN101552931B (en) * 2008-04-03 2011-09-21 中兴通讯股份有限公司 System and method for realizing encapsulation mode frame recombination of gigabit passive optical network
CN102026045B (en) * 2009-09-17 2014-12-03 华为技术有限公司 Method, device and system for transmitting and receiving data frames
CN102056030B (en) * 2009-10-28 2015-08-12 中兴通讯股份有限公司 Gbit passive optical network system and data input and data output method thereof
CN103944880B (en) * 2014-03-13 2017-11-14 湖南强军科技有限公司 A kind of method of ZigBee data transfers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU9636998A (en) * 1997-11-04 1999-05-24 British Telecommunications Public Limited Company Communications network
CN102045130A (en) * 2009-10-20 2011-05-04 华为技术有限公司 Downlink framing method, optical line terminal and passive optical network system

Also Published As

Publication number Publication date
WO2019042475A1 (en) 2019-03-07
CN109428837A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN109428837B (en) Data transmission method and device
CN110266612B (en) Data transmission method and device, network equipment and storage medium
CN108242969B (en) Transmission rate adjusting method and network equipment
KR102226021B1 (en) Service transmission method and apparatus, service reception method and apparatus, and network system
CN110086541B (en) Method, device and system for framing passive optical network
CN107888516B (en) Method, equipment and system for bearing service
EP2314002B1 (en) Upstream efficiency improvement method for passive optical networks
US10798472B2 (en) Data transmission method, data receiving method, optical line terminal and optical network unit
CN112292818A (en) Passive Optical Network (PON) channel bonding protocol
JP2016509782A (en) Idle insertion for physical layer rate matching and time division duplex
CN108023835B (en) Data transmitting and receiving method and device, ONU and OLT
US11405705B2 (en) Multi-rate interleaved downstream frames in passive optical networks (PONs)
EP4322546A1 (en) Data frame fragmentation method, data frame parsing method and related device
CN114173383A (en) Channel bandwidth adjusting method, device and node
US20020122439A1 (en) System and method for distribution of a data stream from high-to-low-to-high bandwidth links
CN110391871B (en) Data coding and decoding method and device, OLT, ONU and PON system
CN107370688A (en) Data transmission method and device
CN117318812A (en) Data transmission method and device
US11895448B2 (en) Communication apparatus and communication method
CN112637112B (en) Multi-channel data transmission method, assembly method, device, medium and electronic equipment
CN114079550B (en) Data transmitting and receiving method and device, transmitting equipment, receiving equipment and medium
CN111669771A (en) Method and device for customer service data stream and storage medium
KR20170042236A (en) Passive optical network supporting fragment function of media access control frame
US6694472B1 (en) Error correction for frames carried over multiple networks
JP5977202B2 (en) Optical communication system and optical communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant