CN115004654A - Data transmission method, device, communication system, storage medium and processor - Google Patents

Data transmission method, device, communication system, storage medium and processor Download PDF

Info

Publication number
CN115004654A
CN115004654A CN202080094285.3A CN202080094285A CN115004654A CN 115004654 A CN115004654 A CN 115004654A CN 202080094285 A CN202080094285 A CN 202080094285A CN 115004654 A CN115004654 A CN 115004654A
Authority
CN
China
Prior art keywords
data packets
communication link
data packet
data
spliced
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.)
Pending
Application number
CN202080094285.3A
Other languages
Chinese (zh)
Inventor
李松
周晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Publication of CN115004654A publication Critical patent/CN115004654A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6402Hybrid switching fabrics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a data transmission method, a data transmission device, a communication system, a storage medium and a processor. Wherein, the method comprises the following steps: obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link; the concatenated data packets are transmitted over the second communication link. The invention solves the technical problem of how to break through the limit of link conversion and maximize the link transmission performance in the related technology.

Description

Data transmission method, device, communication system, storage medium and processor Technical Field
The present invention relates to the field of data transmission, and in particular, to a data transmission method, an apparatus, a communication system, a storage medium, and a processor.
Background
In the process of data transmission, due to the change of the transmission environment, sometimes it may be necessary to switch to a transmission link with a higher transmission rate for transmission. For example, a common network cable link is converted into an optical fiber link, so that long-distance and high-speed transmission is realized. However, in the related art, when performing link conversion, only the optical fiber interface and the network cable interface are simply converted according to the bit width ratio, but such a conversion method would waste the bandwidth of the optical fiber link. Therefore, how to break through the limit of link switching to maximize the link transmission performance is a technical problem to be solved urgently at present.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
Embodiments of the present invention provide a data transmission method, an apparatus, a communication system, a storage medium, and a processor, so as to at least solve the technical problem in the related art how to break through the limit of link switching and maximize the link transmission performance.
According to an aspect of an embodiment of the present invention, there is provided a data transmission method, including: obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link; and transmitting the spliced data packet through the second communication link.
Optionally, the concatenating the multiple data packets to obtain a concatenated data packet includes: and splicing the plurality of data packets in the same first communication link to obtain the spliced data packet.
Optionally, transmitting the concatenated data packet through the second communication link includes: and polling and reading spliced data packets spliced on a plurality of same first communication links, and transmitting the spliced data packets on the second communication link.
Optionally, splicing a plurality of data packets in the same first communication link to obtain the spliced data packet, includes: acquiring first identification information, wherein the first identification information is used for identifying the same first communication link; inserting the first identification information at an interval between a first predetermined data packet and a second predetermined data packet among a plurality of data packets in the same first communication link; and splicing the plurality of data packets inserted with the first identification information at the interval between the first preset data packet and the second preset data packet to obtain the spliced data packet.
Optionally, the concatenating the multiple data packets to obtain a concatenated data packet includes: and splicing the plurality of data packets of different first communication links to obtain the spliced data packet.
Optionally, splicing a plurality of data packets of different first communication links to obtain the spliced data packet, including: polling and reading data packets on a plurality of different first communication links; and splicing the data packets read from the different first communication links to obtain the spliced data packet.
Optionally, the splicing the data packets read from the plurality of different first communication links to obtain the spliced data packet includes: acquiring second identification information, wherein the second identification information comprises: reading a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the data packets; inserting the second identification information into the read data packet at the interval between a third predetermined data packet and a fourth predetermined data packet; and after the second identification information is inserted into the interval between the third preset data packet and the fourth preset data packet, splicing the read data packets to obtain the spliced data packet.
Optionally, the first communication link comprises: a network wire link, the second communication link comprising: an optical fiber link.
According to another aspect of the embodiments of the present invention, there is provided a data transmission method, including: receiving a splicing data packet transmitted by a second communication link, wherein the size of the splicing data packet is equal to a second bit width of the second communication link; splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link; transmitting the plurality of data packets over the first communication link.
Optionally, transmitting the plurality of data packets over the first communication link includes: transmitting the plurality of data packets over the same first communication link.
Optionally, transmitting the plurality of data packets on the same first communication link includes: and polling and distributing a plurality of data packets obtained by splitting a plurality of spliced data packets to the corresponding same first communication link, and transmitting the data packets in the corresponding same first communication link.
Optionally, polling and distributing a plurality of data packets obtained by splitting a plurality of spliced data packets respectively to a corresponding same first communication link, includes: splitting a plurality of spliced data packets respectively to obtain first identification information, wherein the first identification information is used for identifying the same first communication link corresponding to a preset spliced data packet in the spliced data packets; and polling and distributing a plurality of data packets obtained by splitting the spliced data packets respectively to the corresponding same first communication link according to the first identification information.
Optionally, transmitting the plurality of data packets over the first communication link includes: transmitting the plurality of data packets over different first communication links.
Optionally, transmitting the plurality of data packets over different first communication links comprises: and distributing the data packets to different first communication links in a mode of polling and distributing the data packets to the first communication links, and transmitting the data packets on the different first communication links.
Optionally, distributing the plurality of data packets to different first communication links by polling the plurality of first communication links for distribution of the data packets includes: acquiring second identification information, wherein the second identification information comprises: a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the plurality of data packets; and distributing the data packets to different first communication links in a mode of polling and distributing the data packets to the first communication links according to the second identification information.
Optionally, the first communication link comprises: a network wire link, the second communication link comprising: an optical fiber link.
According to still another aspect of an embodiment of the present invention, there is provided a data transmission apparatus including: an obtaining module, configured to obtain a plurality of data packets, where the plurality of data packets are transmitted by a first communication link; the splicing module is used for splicing the plurality of data packets to obtain spliced data packets, wherein the size of each spliced data packet is equal to the second bit width of a second communication link; and the first transmission module is used for transmitting the splicing data packet through the second communication link.
According to still another aspect of the embodiments of the present invention, there is also provided a data transmission apparatus, including: the receiving module is used for receiving a spliced data packet transmitted by a second communication link, wherein the size of the spliced data packet is equal to a second bit width of the second communication link; the splitting module is used for splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link; a second transmission module, configured to transmit the plurality of data packets on the first communication link.
According to still another aspect of the embodiments of the present invention, there is provided a communication system, including a sending end device and a receiving end device, where the sending end device includes a first processor, and the receiving end device includes a second processor, where the first processor is configured to execute a first program, where the first program is executed when running, and the second processor is configured to execute a second program, where the second program is executed when running, and the receiving end device is executed when running, and the data transmission method is executed by the receiving end device.
According to still another aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute any one of the above data transmission methods.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, configured to execute a program, where the program executes to perform any one of the data transmission methods described above.
In the embodiment of the invention, a plurality of data packets transmitted by a first communication link are obtained by splicing the plurality of data packets to obtain a spliced data packet with the size equal to the second bit width of a second communication link, and the spliced data packet is transmitted through the second communication link. The spliced data packet can be transmitted in a mode of meeting the maximum transmission bandwidth of the second communication link, so that the purpose of effectively avoiding the waste of the transmission bandwidth of the communication link is achieved, the technical effect of maximizing the transmission performance of the communication link is achieved, and the technical problem of how to break through the limit of link conversion and maximize the transmission performance of the link in the related technology is solved.
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 flowchart of a first data transmission method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a second data transmission method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of network transmission data in the field of LED control as referenced in an alternative embodiment of the present invention;
FIG. 4 is a fiber-to-wire conversion diagram of the LED control field referenced in an alternative embodiment of the present invention;
FIG. 5 is a diagram illustrating bit width allocation of a network cable according to the bit width of an optical fiber in the related art;
FIG. 6 is a schematic diagram of an input data transmission method according to an alternative embodiment of the invention;
FIG. 7 is a schematic diagram of a polling mechanism according to an alternative embodiment of the invention;
fig. 8 is a schematic diagram of a receiving-end data transmission method according to an alternative embodiment of the present invention;
fig. 9 is a block diagram of a first data transmission device provided in embodiment 2 of the present invention;
fig. 10 is a block diagram of a second data transmission device according to embodiment 3 of the present invention;
fig. 11 is a block diagram of a communication system provided according to embodiment 4 of the present invention;
fig. 12 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of data transmission, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Example 1
Fig. 1 is a flowchart of a first data transmission method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link;
step S104, splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to the second bit width of the second communication link;
and step S106, transmitting the spliced data packet through a second communication link.
Through the steps, the plurality of data packets are spliced by acquiring the plurality of data packets transmitted by the first communication link to obtain spliced data packets with the size equal to the second bit width of the second communication link, and the spliced data packets are transmitted through the second communication link. The spliced data packet can be transmitted in a mode of meeting the maximum transmission bandwidth of the second communication link, so that the purpose of effectively avoiding the waste of the transmission bandwidth of the communication link is achieved, the technical effect of maximizing the transmission performance of the communication link is achieved, and the technical problem of how to break through the limit of link conversion and maximize the transmission performance of the link in the related technology is solved.
As an alternative embodiment, since it may be necessary to splice a plurality of data packets of a plurality of first communication links, during the splicing process, a plurality of data packets read from a plurality of first communication links may be stored. In addition, when the second communication link transmits the spliced data packet in a polling manner, the spliced data packets may be stored first. Compared with the related art, in which the conversion from the first communication link to the second communication link is directly implemented according to the bit width, since the processing methods of splicing and polling transmission are adopted, which involve storage of read data packets or spliced data packets, the storage method of data needs to be correspondingly extended, for example, the depth of a buffer can be correspondingly extended, for example, the space originally used for buffering 64-bit data is extended to a buffer space with a depth of 16, that is, to 16 spaces of 64 bits.
As an optional embodiment, when a plurality of data packets are spliced to obtain a spliced data packet, various methods may be adopted, for example, the following methods may be adopted: and splicing the plurality of data packets in the same first communication link to obtain a spliced data packet. The spliced data packets with the size equal to the second bit width of the second communication link are obtained by splicing the plurality of data packets in the same first communication link, so that the spliced data packets can be transmitted in a mode conforming to the maximum transmission bandwidth of the second communication link.
As an alternative embodiment, an application scenario of the method may be that a transmission bandwidth of the first communication link is smaller than a transmission bandwidth of the second communication link, that is, a communication link with a smaller transmission bandwidth is converted into a communication link with a larger transmission bandwidth. The second communication link may match with the transmission of multiple first communication links, for example, the number of the first communication links is at least greater than the ratio of the bit width of the second communication link to the bit width of the first communication link, and through the splicing process, the bandwidth of the second communication link may be completely used when the second communication link performs transmission, so that the problem of waste of partial bandwidth resources of the second communication link in the process of transmitting data does not occur.
For example, when the bit width of the first communication link is 8 bits and the bit width of the second communication link is 64 bits, 8 data packets with bit width of 8 bits of the same first communication link are spliced to obtain a spliced data packet with length of 64 bits. Assume that the first communication link has a bandwidth of 1Gbps and the second communication link has a bandwidth of 10 Gbps. After the data packets of the first communication links are spliced, the spliced data packets are polled and read for the plurality of first communication links, and then the data packets are transmitted on the second communication link. Thus, 10G of data is transmitted over 10 first communication links and 10G of data is also transmitted over 1 second communication link in 1 second time period. Equivalently, 1G data of the first communication link can be transmitted in the first tenth of 1s, 1G data of the second first communication link can be transmitted in the second tenth of 1s, 1G data of the third first communication link can be transmitted in the third tenth of 1s, … …, and the polling is continued until 1G data of the tenth first communication link can be transmitted in the tenth of 1s, and finally, data of 10 first communication links in 1s is transmitted in 1 s. Thus, one second communication link can realize data transmission of 10 first communication links. Compared with the prior art that when the first communication link and the second communication link are switched according to the corresponding relation of the bit width, the second communication link can only satisfy the data transmission of 8 first communication links, the transmission resource of the second communication link is effectively used, the second communication link is transmitted in the mode of the maximum transmission bandwidth, and the transmission performance of the communication link is maximized.
As an optional embodiment, when a plurality of data packets in a plurality of same first communication links are spliced to obtain a spliced data packet, for each of the plurality of first communication links, the plurality of data packets transmitted in the first communication link are spliced to obtain the spliced data packet, so that each of the plurality of first communication links has a plurality of spliced data packets. For example, as above, the plurality of first communication links is 10: first communication link 1, first communication link 2, first communication link 3, … …, first communication link 10. Then a plurality of spliced packets are spliced on each of the 10 first communication links. When the spliced data packet is transmitted through the second communication link, the spliced data packet obtained by splicing a plurality of same first communication links can be read in a polling mode and transmitted through the second communication link. The number of spliced data packets which are polled and read on the same communication link can be flexibly selected according to specific conditions. For example, for the above 10 first communication links, the following polling method may be adopted (each first communication link reads one spliced data packet): sequentially reading a splice data packet from the first communication link 1, a splice data packet from the first communication link 2, a splice data packet from the first communication link 3, … …, and a splice data packet from the first communication link 10; the reading of a splice data packet from the first communication link 1, the reading of a splice data packet from the first communication link 2, the reading of a splice data packet from the first communication link 3, … …, and the reading of a splice data packet from the first communication link 10 are continued until the end of the data transmission. For another example, for the 10 first communication links, the following polling method (each first communication link reads two spliced packets) may also be adopted: sequentially reading two spliced data packets from the first communication link 1, two spliced data packets from the first communication link 2, two spliced data packets from the first communication link 3, … …, and two spliced data packets from the first communication link 5; reading two spliced packets from the first communication link 6, two spliced packets from the first communication link 7, … …, two spliced packets from the first communication link 10; the reading of the two concatenated packets from the first communication link 1, the reading of the two concatenated packets from the first communication link 2, and the reading of the two concatenated packets from the first communication link 3, … …, continues until the end of the data transmission. It should be noted that the number of the concatenated packets read from the first communication link at a time is not limited to one or two, and the above-mentioned one or two is merely an example.
It should be noted that, regardless of whether the above-mentioned method reads one spliced data packet in one first communication link or reads two spliced data packets in one first communication link, as long as the bandwidth of the second transmission link is matched with the bandwidth of the first transmission link, the bandwidth utilization of the second transmission link can be maximized.
Since the transmission bandwidth is bit wide × frequency, when the bandwidth of the second transmission link is matched with the bandwidth of the first transmission link, the size of the concatenated data packet may be determined according to the physical bit wide of the second transmission link. For example, when the bit width of the second transmission link is 64 bits, the size of the data packet spliced on the first transmission link can be 64 bits, and at this time, the bandwidth matching requirement of the first transmission link and the second transmission link is met; when the bit width of the second transmission link is 32 bits, the size of the data packet spliced on the first transmission link can be 32 bits, and at this time, the frequency only needs to be correspondingly doubled relative to the situation that the bit width is 64 bits, so that the bandwidth matching requirement of the first transmission link and the second transmission link is met; when the bit width of the second transmission link is 16 bits, the size of the data packet spliced on the first transmission link can be 16 bits, and at this time, compared with the case that the bit width is 64 bits, the frequency only needs to be correspondingly increased by three times (namely the frequency is four times of the original frequency), so that the bandwidth matching requirement of the first transmission link and the second transmission link is met; the bit width of the second transmission link is continuously reduced to 8 bits, the size of the data packet spliced on the first transmission link can be directly 8 bits (compared with the case that data is not spliced), and at this time, the frequency only needs to be correspondingly increased by seven times (namely the frequency is eight times of the original frequency) compared with the case that the bit width is 64 bits, so that the bandwidth matching requirement of the first transmission link and the second transmission link is met.
It should be noted that the above scenario that the bandwidth of the second transmission link is matched with the bandwidth of the first transmission link is only an example, and during specific operation, the size of the concatenated data packet may be flexibly determined according to the bit width of the second transmission link in combination with the complexity of specific concatenation and the influence of frequency improvement on performance, so that the second communication link transmits in the mode of the maximum transmission bandwidth, and the transmission performance of the communication link is maximized.
Generally, the bandwidth of the first communication link is much smaller than that of the second communication link, so that a plurality of spliced data packets are obtained by splicing the data packets of the first communication links, and the spliced data packets can be transmitted on the second communication link in a manner conforming to the maximum transmission bandwidth of the second communication link, thereby maximally utilizing the bandwidth resource of the second communication link.
As an optional implementation manner, when a plurality of data packets in the same first communication link are spliced to obtain a spliced data packet, the data packets of the same first communication link are spliced to obtain a spliced data packet with a bit width equal to a bit width of a second communication link; performing the same operation on the plurality of first communication links, and obtaining a plurality of spliced data packets for each of the plurality of first communication links; and then, polling and reading the spliced data packets of the plurality of first communication links, and polling and transmitting the spliced data packets through the second communication link. When the splicing and the transmission are adopted, the number of the first communication links can be determined according to the bandwidths of the first communication links and the second communication links, for example, when the bandwidth of the first communication link is 1/n of the bandwidth of the second communication link, the number of the first communication links can be n, so that when the polling is performed once, all the first communication links read the spliced data packet once, the operation is simple and intuitive, and the labeling of the spliced data packet is relatively easy.
As an optional implementation manner, when the spliced data packet read by polling is sent through the second communication link, that is, the way of sending the spliced data packets of the multiple first communication links is a way of polling reading and sending, in order to distinguish the spliced data packets read from the multiple first communication links, the corresponding first communication link identification information may be embedded in the spliced data packet, so that it is convenient to correctly send different spliced data packets to the corresponding first communication links in the subsequent data transmission and reading analysis processes. For example, the data packet to be transmitted of the first communication link may be preprocessed according to a predetermined identification rule, so as to implement identification of the first communication link, where the specific identification manner may include multiple types, and is not limited herein. It should be noted that, since the reading of the concatenated packet of the first communication link is performed in a polling manner, that is, a certain rule exists when the concatenated packet is read, when the first communication link is identified, it is not necessary to identify each first communication link. For example, for a plurality of first communication links, as long as the spliced data packet corresponding to one of the first communication links is known, the spliced data packets corresponding to other first communication links can be known according to the polling rule. For example, a spliced packet is obtained on each of the 10 first communication links, and the polling is performed by reading the spliced packet from the first communication link, then reading the spliced packet from the second first communication link, … …, and so on until the spliced packet is read from the tenth first communication link. For example, as long as the first concatenated packet belongs to the first communication link is identified, according to the polling rule, the second concatenated packet necessarily belongs to the second first communication link, so that the second concatenated packet is not required to be identified, and other concatenated packets are also based on the same principle and may not be identified. Of course, in consideration of actual requirements, a simple and convenient processing mode can be adopted to identify each spliced data packet.
As an optional implementation manner, when a plurality of data packets in the same first communication link are spliced to obtain a spliced data packet, if the spliced data packet belongs to a spliced data packet to be identified, the following manner may be implemented: acquiring first identification information, wherein the first identification information is used for identifying the same first communication link; inserting first identification information at an interval between a first predetermined data packet and a second predetermined data packet among a plurality of data packets in the same first communication link; and splicing the plurality of data packets with the first identification information inserted at the interval between the first preset data packet and the second preset data packet to obtain a spliced data packet. The first identification information is inserted into the interval between two preset data packets in the plurality of data packets for obtaining the spliced data packet, and the interval between the data packets also belongs to the idle resource, so that the idle resource is adopted to transmit the first identification information, on one hand, the utilization rate of the resource can be improved, and on the other hand, the transmission and splicing of the data packets are not influenced.
As an optional implementation manner, to distinguish a plurality of data packets transmitted on the first communication link, the plurality of data packets transmitted on the first communication link with the first bit width may be identified; and splicing the plurality of identified data packets to obtain spliced data packets. Similar to the above method for embedding identification information into multiple spliced data packets, multiple data packets transmitted on the first communication link may also be identified, and the identified data packets may be spliced. For example, the data of the first communication link may be preprocessed according to a predetermined identification rule, and the data packet is identified by using a uniform predetermined format, where the specific identification manner may include multiple types, and is not limited herein.
It should be noted that, for a plurality of different first communication links, the data packets transmitted in each first communication link may be identified according to the same identification rule. Because the output data processing modes of the spliced data packets corresponding to different first communication links may be consistent, the output data formats of the spliced data packets corresponding to different first communication links may also be consistent. Therefore, the consistency of the format of the data output by the first communication link can be ensured through the processing, the second communication link does not need to process the data according to different first communication links, and the second communication link only needs to transmit the data according to the clock.
As an alternative implementation, when identifying a plurality of data packets transmitted on a first communication link with a first bit width, the following method may be adopted: converting a plurality of data transmitted over a first communication link of a first bit width to a predetermined format, wherein the predetermined format comprises one of: rising edge, valid data, falling edge; since the plurality of data packets included in the concatenated data packet all adopt the unified predetermined format, when the first identification information of the corresponding first communication link is inserted into the concatenated data packet read by polling, the insertion of the first identification information at the interval between the first predetermined data packet and the second predetermined data packet in the plurality of data packets may be: the first identification information is inserted at an interval between a falling edge of the first predetermined packet and a rising edge of the second predetermined packet.
By pre-processing the data packets, the original data packets on the first communication link may be converted into data packets comprising a uniform predetermined format, the uniform predetermined format comprising: rising edge, valid data, falling edge. It should be noted that the rising edge and the falling edge in the predetermined format are functionally different from the edge information (i.e., the identification information at the interval indicated above) following the splicing data packet. The rising edge and the falling edge in the predetermined format are used for identifying a plurality of data packets transmitted on the first communication link, the data packets are converted into a format at least comprising the rising edge, effective data and the falling edge through a predetermined data conversion rule, and when data is analyzed later, the effective data of different data packets can be distinguished through the rising edge and/or the falling edge, so that the effect of correctly analyzing the effective data in the data packets of the first communication link is achieved. The edge information is identification information corresponding to a first communication link embedded in the spliced data packet and used for identifying the first communication link corresponding to the spliced data packet.
As an optional embodiment, the following method may be further adopted to splice a plurality of data packets on the first communication link to obtain a spliced data packet: and splicing the plurality of data packets of different first communication links to obtain spliced data packets. For example, it may be a polling reading of data packets on a plurality of different first communication links; and splicing the data packets read from the different first communication links to obtain spliced data packets. For example, for a plurality of first communication links, a predetermined number of data packets are read from each first communication link in a polling manner, and then according to the bit width relationship between the first communication link and the second communication link, the obtained data packets are spliced to obtain a spliced data packet with a bit width equal to the bit width of the second communication link, and the spliced data packet is transmitted in the second communication link.
For example, when the bit width of the first communication link is 8 bits and the bit width of the second communication link is 64 bits, 8 data packets with the bit width of 8 bits of different first communication links are spliced to obtain a spliced data packet with the length of 64 bits. Assume that the first communication link has a bandwidth of 1Gbps and the second communication link has a bandwidth of 10 Gbps. After the data packets read by polling from the plurality of first communication links are spliced, the data packets are transmitted on the second communication link. For example, the first spliced packets transmitted on the second transmission link are spliced by transmitting the data packets from the 1 st first communication link to the 8 th first communication link, and the second spliced packets transmitted on the second transmission link are spliced by transmitting the data packets from the 9 th first communication link to the 6 th first communication link polling the second time. In this way, 10G of data is also transmitted over 10 first communication links and 10G of data is also transmitted over 1 second communication link in 1 second. It is also equivalent to that one second communication link can realize data transmission of 10 first communication links. Compared with the prior art that when the first communication link and the second communication link are switched according to the corresponding relation of the bit width, the second communication link can only satisfy the data transmission of 8 first communication links, the transmission resource of the second communication link is effectively used, the second communication link is transmitted in the mode of the maximum transmission bandwidth, and the transmission performance of the communication link is maximized.
It should be noted that the number of data packets read from one first communication link at a time can be flexibly selected according to specific requirements. For example, it may be one or more. For example, the above-mentioned plurality of first communication links are 10: the first communication link 1, the first communication link 2, the first communication link 3, … … and the first communication link 10 may be spliced to obtain a desired spliced packet by: a data packet can be sequentially read from the first communication link 1, a data packet can be read from the first communication link 2, a data packet can be read from the first communication link 3, … …, a data packet can be read from the first communication link 8, and the read data packets are spliced to obtain a first spliced data packet; thereafter, a further packet is read from the first communication link 9, a further packet is read from the first communication link 10, a further packet is read from the first communication link 1 at the second polling, … …, a further packet is read from the first communication link 6 at the second polling, and the read packets are concatenated to obtain a second concatenated packet, … …. The following splicing modes can be adopted according to the needs to obtain the required spliced data packet: two data packets can be sequentially read from the first communication link 1, two data packets can be read from the first communication link 2, two data packets can be read from the first communication link 3, and two data packets can be read from the first communication link 4, so that the read data packets are spliced to obtain a first spliced data packet; two data packets can be sequentially read from the first communication link 5, two data packets can be read from the first communication link 6, two data packets can be read from the first communication link 7, and two data packets can be read from the first communication link 8, so that the read data packets are spliced to obtain a second spliced data packet; two data packets may be read from the first communication link 9, two data packets may be read from the first communication link 10, two data packets may be read from the first communication link 1 at the second polling, two data packets may be read from the first communication link 2 at the second polling, and the read data packets may be concatenated to obtain a third concatenated data packet, … …. It should be noted that, the number of the first communication links is 10, and reading one data packet and reading two data packets are all examples, and the invention is not limited thereto.
In addition, when a plurality of data packets of different first communication links are spliced to obtain a spliced data packet, the number of the first communication links may be determined according to the bandwidth of the first communication link and the bandwidth of the second communication link.
Since the bit-to-width ratio and the bandwidth ratio of the first communication link and the second communication link are different, the number of the first communication links participating in the transmission of data and the number of the first communication links participating in the splicing of data packets may be different at the same time. For example, when the bit-to-width ratio of the first communication link and the second communication link is 1:8 and the bandwidth ratio is 1:10, ten first communication links can be simultaneously supported to participate in transmitting the data packets through the second communication link by the alternative embodiment of the present invention, but when the data packets are spliced into the spliced data packet, polling reads a single data packet of eight first communication links in the ten first communication links, and splices the eight data packets into one spliced data packet and transmits the spliced data packet in the second communication link. Data packets of two first communication links which do not participate in the data packet splicing work can enter the data packet polling reading of the next round, participate in the data packet splicing work of the next round, and guarantee that ten first communication links can simultaneously send data to the second communication link in real time and transmit the data in the second communication link.
As an optional embodiment, when the data packets read from the plurality of different first communication links are spliced to obtain a spliced data packet, the spliced data packet may also be identified in order to distinguish different spliced data packets. For example, the following can be used: acquiring second identification information, wherein the second identification information comprises: reading a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the data packets; inserting second identification information into a gap between a third predetermined data packet and a fourth predetermined data packet in the read data packets; and after second identification information is inserted into the interval between the third preset data packet and the fourth preset data packet, splicing the read data packets to obtain a spliced data packet. Because the data packets included in the concatenated data packets are read from the plurality of first communication links, when the concatenated data packets are identified, the communication link identification corresponding to the initial data packet and the communication link identification corresponding to the end data packet in the concatenated data packets can be directly used for representation. Based on the similar principle of the first identification information, since the reading of the data packet from the first communication link has a certain polling rule, not every concatenated data packet needs to be identified. As long as the second identification information corresponding to one of the concatenated data packets is known, it can be known from which first communication links the data packets included in the other concatenated data packets come from. As described above, the description of the first identification information is not repeated herein.
It should be noted that the first communication link may be a network cable link, the second communication link may be a fiber link, or other communication links that need to be converted. The first embodiment and the optional embodiments of the data transmission method are mainly described in the context of switching from a first communication link to a second communication link. The following description is mainly given of a scenario in which the second communication link is correspondingly switched back to the first communication link in the second embodiment and the optional implementation of the data transmission method two. The same principle or similar operation explained in the previous scenario can be applied in the following scenario, which is not repeated.
Fig. 2 is a flowchart of a second data transmission method according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S202, receiving a splicing data packet transmitted by a second communication link, wherein the size of the splicing data packet is equal to a second bit width of the second communication link;
step S204, splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to the first bit width of the first communication link;
step S206, transmitting the plurality of data packets on the first communication link.
In the embodiment of the invention, a mode of receiving the spliced data packets is adopted, the spliced data packets are split to obtain a plurality of data packets with the size equal to the first bit width of the first communication link, and the plurality of data packets are transmitted through the first communication link.
As an alternative embodiment, transmitting the plurality of data packets over the first communication link comprises: multiple data packets are transmitted over the same first communication link. When the data packets of the spliced data packets belong to the same first communication link at the sending end, after the spliced data packets are received, splitting the spliced data packets to obtain a plurality of data packets, and correspondingly transmitting the plurality of split data packets on the same first communication link at the receiving end.
As an alternative embodiment, in the case that there are a plurality of first communication links, the transmitting a plurality of data packets on the same first communication link includes: and polling and distributing a plurality of data packets obtained by splitting the spliced data packets to the corresponding same first communication link, and transmitting the data packets in the corresponding same first communication link. Because a plurality of spliced data packets are obtained by polling a plurality of first communication links at a sending end, and each spliced data packet is from the same first communication link, when the spliced data packets are received, the spliced data packets are respectively split, and then the split data packets are polled and distributed to the first communication links corresponding to a receiving end for transmission.
As an optional embodiment, a plurality of spliced data packets obtained by splitting a plurality of spliced data packets respectively are polled and distributed to the same corresponding first communication link, and the spliced data packets can be distinguished according to the identification information. For example, this can be achieved in the following way: splitting the spliced data packets respectively to obtain first identification information, wherein the first identification information is used for identifying the same first communication link corresponding to a preset spliced data packet in the spliced data packets; and polling and distributing a plurality of data packets obtained by splitting the spliced data packets respectively to the corresponding same first communication link according to the first identification information. Since not every concatenation data packet carries identification information, after a concatenation data packet carrying first identification information is obtained, a first communication link corresponding to another concatenation data packet can be determined according to the first identification information and a polling rule for reading the concatenation data packet from the first communication link.
As an alternative embodiment, the following method may be adopted for transmitting the plurality of data packets on the first communication link: in the case where the first communication link is plural, the plural data packets are transmitted over different first communication links. For example, when the concatenated packets transmitted in the second communication link include packets corresponding to a plurality of first communication links, the packets corresponding to the plurality of first communication links may be respectively transmitted to and transmitted in the corresponding first communication links.
As an alternative embodiment, when transmitting a plurality of data packets on different first communication links, the method includes: the data packets are distributed to different first communication links and transmitted on different first communication links in a mode of polling and distributing the data packets to the first communication links. When the spliced data packet transmitted on the second communication link is spliced by the data packets of the plurality of first communication links according to a certain sequence, the same rule can be followed by splitting and sending the spliced data packet to the plurality of first communication links. For example, when the data packets of the plurality of first communication links are spliced in a polling manner, the spliced data packets are split into the plurality of data packets, and the plurality of data packets may be sequentially transmitted to the corresponding first communication links according to a polling sequence during splicing.
As an alternative embodiment, when distributing a plurality of data packets to different first communication links by polling and distributing the data packets to the plurality of first communication links, the following processing manner may be adopted: acquiring second identification information, wherein the second identification information comprises: a starting communication link identification corresponding to a starting data packet and an ending communication link identification corresponding to an ending data packet in the multiple data packets; and distributing the plurality of data packets to different first communication links in a mode of polling and distributing the data packets to the plurality of first communication links according to the second identification information. It should be noted that, the second identification information is not required to be carried by each spliced data packet, and the first communication link corresponding to another spliced data packet may also be obtained according to the corresponding second identification information carried by one of the spliced data packets.
As an alternative embodiment, the first communication link may include: the network cable link, the second communication link may include: an optical fiber link. In the following, an alternative embodiment of the present invention will be described by taking the first communication link as a network cable link and the second communication link as an optical fiber link as an example.
In the related art, the bandwidth of the optical fiber link is much larger than that of the network cable link, and meanwhile, the bandwidth ratio of the optical fiber link to the network cable link is also larger than the bit width ratio of the optical fiber link to the network cable link, so that if the channel bit width in the optical fiber is allocated according to the bit width ratio of the optical fiber link to the network cable link, the waste of bandwidth resources in the optical fiber link is caused.
Fig. 3 is a schematic diagram of data transmission of a network cable in the LED control field cited in the alternative embodiment of the present invention. As shown in fig. 3, since the LED display screen may be formed by splicing a plurality of screen bodies, when the controller controls a plurality of LED display screens, one network cable is provided for each LED display screen to transmit signals. However, when the distance between the controller end and the display screen end is too large, the distance may exceed the allowable range of the transmission distance of the network cable, so that the network cable can be replaced by a medium meeting the requirement of long-distance signal transmission. In the related art, it is common practice to use optical fibers for signal transmission over long distances.
Although the cost of optical fiber is much higher than that of a network cable, optical fiber can provide much greater bandwidth than a network cable. For example, optical fiber with a bandwidth of 10Gbps is used for remote signal transmission instead of a plurality of network lines with a bandwidth of 1 Gbps. Fig. 4 is a fiber-to-wire conversion diagram of the LED control field referenced in an alternative embodiment of the present invention. As shown in fig. 4, the control signal is sent from the controller, transmitted to the fiber-to-cable converter through the optical fiber, and the converted signal data is sent to the corresponding LED display screen through the plurality of cables.
Typically, the data bit width of the network port is 8 bits, and the data bit width of the optical fiber is 64 bits. Fig. 5 is a schematic diagram illustrating allocation of a fiber bit width to a network cable bit width in the related art. As shown in fig. 5, in the related art, when optical fiber transmission is used, for processing convenience, it is a common practice to simply split the 64-bit data bit width of the optical fiber into 8-bit × 8 patterns, and distribute the 8 patterns to 8 network links for connection, where each network link occupies one eighth of the bit width of the optical fiber. Each network line link operates independently to achieve the purpose of independent transmission.
However, since the bandwidth ratio of the optical fiber link to the network cable link is larger than the bit width ratio of the optical fiber link to the network cable link, the links in the optical fiber may be in an empty state according to the method of evenly distributing the data bit width of the optical fiber, which may cause waste of communication resources. For example, the data bandwidth of an optical fiber is 10Gbps, while the data bandwidth of a single network line is 1 Gbps. Originally, the data transmission capability of a single optical fiber can support the data transmission of 10 network cables, but the load-carrying performance of a link cannot be improved according to the distribution mechanism of the related method.
Fig. 6 is a schematic diagram of an input data transmission method according to an alternative embodiment of the invention. As shown in fig. 6, by code conversion, data from the network cable 1 to the network cable 10 are packed according to a certain rule and transmitted to the optical fiber link, so that the data of 10 network cables can be transmitted through 1 optical fiber link at the same time, and the purpose of increasing the loading capacity of the optical fiber link is achieved.
And the output end preprocessing (TxPreprocessing for short) module is responsible for preprocessing the data of the network port data. For example, a data packet transmitted in an original network cable link may be converted into a data format including a rising edge, valid data, and a falling edge according to a predetermined rule, and output. According to an optional embodiment of the present invention, a packet header exists in data transmitted in an original network cable link, where the packet header includes 8 bits, where the packet header includes a Start Frame limiter (SFD), and the SFD (one byte) and a preamble (seven bytes) are used to synchronize a sending end device and a receiving end device. The first eight bytes of the frame are used to get the attention of the receiving device. The essential role is to inform the receiving end device that it is ready to receive a new frame. However, these bytes are not needed during fiber transmission, so the header of the original data can be removed during output side preprocessing.
And the output end data packing processing (Transmitter Package, TxPkg for short) module is responsible for packing the edge information and the effective data of the data packet according to a certain rule and splicing the 8-bit-width data of each channel into 64-bit-width data. The processing of TxPkg for 10 channels may be consistent, and thus the output data format after final processing may also be consistent.
And the TxAdbert module is responsible for polling and sending out 64-bit data of 10 network ports. Because the bandwidth of the processed network cable splicing data packet is completely matched with the optical fiber bandwidth, the module does not waste any clock period, does not need to perform special processing when the network port data is invalid, only needs to send one data according to each clock for data transmission, and the transmitted data are sequentially read from 10 output end data packing processing modules TxPkg at the front stage.
Fig. 7 is a schematic diagram of a polling mechanism according to an alternative embodiment of the invention. As shown in fig. 7, the processor on the transmitting side will query each network port in turn in the order of numbering. The network port is used as a sending end and needs to inform the back end of three packet information, namely rising edge, falling edge and effective data. But at the same time only one packet type per portal is valid. Because the information quantity carried by the 64-bit wide band is enough to represent two types of rising edge and falling edge, when the state machine polls and sends, the port number information can be embedded into the 64-bit wide band and transmitted together with the edge information.
As an optional implementation manner, after the spliced data packets are analyzed, the identification information of the first communication link corresponding to each spliced data packet is obtained; and distributing the spliced data packet to a first communication link corresponding to the identification information. Through the analysis of the identification information corresponding to the spliced data packets, a plurality of spliced data packets corresponding to a plurality of first communication links in the optical fiber data can be accurately identified, and the spliced data packets are restored to a data format which can be transmitted by the corresponding first communication links through the data processing module.
A Receiver data parsing module (Receiver DePackage, rxdpkg for short) may parse the identification information in the spliced data packet, and determine a network link corresponding to the spliced data packet by obtaining and parsing the identification information. By the mode, the network port relation mapping can be performed at the signal receiving end, otherwise, the signal receiving end cannot confirm the network port to which the currently received data packet belongs. According to the optional embodiment of the present invention, the corresponding relationship between the spliced data packet and the network port can be obtained through the network port number carried by the edge information embedded in the spliced data packet.
The first communication link is taken as a network cable link, and the second communication link is taken as an optical fiber link for example. Fig. 8 is a schematic diagram of a receiving-end data transmission method according to an alternative embodiment of the present invention, as shown in fig. 8:
the RxDePkg module is responsible for analyzing data packets of 10 network ports from optical fiber data, because the TX end sends the data packets according to a polling processing mechanism, the RX end also analyzes according to the polling processing mechanism, and the data is distributed to each network cable data processing module according to the network port number after being analyzed.
And the RxRePkg module is responsible for finishing network data packet recombination, and because the input data is 64 bits and the network cable output is 8 bits, 64-bit data needs to be converted into 8-bit data to be output.
A64-bit input buffer and an 8-bit output buffer are used for realizing bit width conversion, and the buffer is processed according to a big-end mode when the bit width conversion is carried out, namely, the high bit is output firstly, and the low bit is output later. The specific processing mode is to start to locally recombine the data packet header SFD when the buffer is not empty, start to read the buffered data after the data packet header recombination is finished, read 8 bits each time, pull down the read enable until the buffer is empty, and indicate that the current data packet is completely read, so that completely consistent network cable data information before the optical fiber conversion of the Tx end can be obtained, and the transmission logic of the rear-stage network port is directly driven.
Through the embodiment and the optional implementation mode, the data polling scheduling and multi-channel arbitration mode is adopted, so that the bandwidth utilization rate is improved, the load area is increased, and the use cost of customers is reduced; but also can increase the portability and the expandability of the system.
Example 2
According to an embodiment of the present invention, there is further provided a device for implementing the first data transmission method, fig. 9 is a block diagram of a first data transmission device provided in embodiment 2 of the present invention, and as shown in fig. 9, the data transmission device 900 includes: an acquisition module 902, a concatenation module 904, and a first transmission module 906. The signal processing apparatus 900 will be specifically described below.
An obtaining module 902, configured to obtain a plurality of data packets, where the plurality of data packets are transmitted by a first communication link;
a concatenation module 904, connected to the obtaining module 902, configured to concatenate the multiple data packets to obtain a concatenated data packet, where a size of the concatenated data packet is equal to a second bit width of the second communication link;
and a first transmission module 906, connected to the concatenation module 904, for transmitting the concatenated packet through the second communication link.
It should be noted here that the acquiring module 902, the splicing module 904, and the first transmitting module 906 correspond to steps S102 to S106 in embodiment 1, and the three modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1.
Example 3
According to an embodiment of the present invention, there is further provided an apparatus for implementing the second data transmission method, where fig. 10 is a block diagram of a structure of the second data transmission apparatus according to embodiment 3 of the present invention, and as shown in fig. 10, the data transmission apparatus 1000 includes: a receiving module 1002, a splitting module 1004, and a second transmitting module 1006. The data transmission device 1000 will be specifically described below.
A receiving module 1002, configured to receive a splicing data packet transmitted by a second communication link, where a size of the splicing data packet is equal to a second bit width of the second communication link;
a splitting module 1004, connected to the receiving module 1002, for splitting the spliced data packet to obtain a plurality of data packets, where a size of each data packet in the plurality of data packets is equal to a first bit width of the first communication link;
a second transmission module 1006, connected to the splitting module 1004, is configured to transmit the plurality of data packets over the first communication link.
It should be noted here that the receiving module 1002, the splitting module 1004, and the second transmitting module 1006 correspond to steps S202 to S206 in embodiment 1, and the three modules are the same as the corresponding steps in implementation examples and application scenarios, but are not limited to the disclosure in embodiment 1.
Example 4
Fig. 11 is a block diagram of a communication system provided in embodiment 4 of the present invention. As shown in fig. 11, the communication system 1100 includes: a sending end device 1102 and a receiving end device 1104. The communication system 1100 will be specifically described below.
The sending-end device 1102 includes a first processor, where the first processor is configured to run a first program, where the first program is run to execute any one of the data transmission methods executed by the sending-end device 1102;
the receiving device 1104, connected to the sending device 1102 through a communication link, includes a second processor, where the second processor is configured to execute a second program, where the second program executes to execute any of the data transmission methods executed by the receiving device 1104.
Example 5
According to the embodiment of the invention, the storage medium is also provided. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the data transmission method provided in embodiment 1.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link; the concatenated data packets are transmitted over the second communication link.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splicing the plurality of data packets to obtain a spliced data packet, comprising: and splicing the plurality of data packets in the same first communication link to obtain a spliced data packet.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: transmitting the spliced data packet through a second communication link, comprising: and polling and reading spliced data packets spliced on a plurality of same first communication links, and transmitting the spliced data packets on a second communication link.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splicing a plurality of data packets in the same first communication link to obtain a spliced data packet, comprising: acquiring first identification information, wherein the first identification information is used for identifying the same first communication link; inserting first identification information at an interval between a first predetermined data packet and a second predetermined data packet among a plurality of data packets in the same first communication link; and splicing the plurality of data packets with the first identification information inserted at the interval between the first preset data packet and the second preset data packet to obtain a spliced data packet.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splicing the multiple data packets to obtain a spliced data packet, comprising: and splicing the plurality of data packets of different first communication links to obtain a spliced data packet.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splicing a plurality of data packets of different first communication links to obtain spliced data packets, comprising: polling and reading data packets on a plurality of different first communication links; and splicing the data packets read from the different first communication links to obtain spliced data packets.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splicing the data packets read from the different first communication links to obtain spliced data packets, including: acquiring second identification information, wherein the second identification information comprises: reading a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the data packets; inserting second identification information into the read data packet at an interval between a third predetermined data packet and a fourth predetermined data packet; and after second identification information is inserted into the interval between the third preset data packet and the fourth preset data packet, splicing the read data packets to obtain a spliced data packet.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: the first communication link includes: a network line link, the second communication link comprising: an optical fiber link.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: receiving a splicing data packet transmitted by a second communication link, wherein the size of the splicing data packet is equal to a second bit width of the second communication link; splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link; the plurality of data packets are transmitted over a first communication link.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: transmitting a plurality of data packets over a first communication link, comprising: multiple data packets are transmitted over the same first communication link.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: transmitting a plurality of data packets over the same first communication link, comprising: and polling and distributing a plurality of data packets obtained by splitting the spliced data packets to the corresponding same first communication link, and transmitting the data packets in the corresponding same first communication link.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: splitting the spliced data packets respectively to obtain first identification information, wherein the first identification information is used for identifying the same first communication link corresponding to a preset spliced data packet in the spliced data packets; and polling and distributing a plurality of data packets obtained by splitting the spliced data packets respectively to the corresponding same first communication link according to the first identification information.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: transmitting a plurality of data packets over a first communication link, comprising: the plurality of data packets are transmitted over different first communication links.
Optionally, in this embodiment, the storage medium is further configured to store program code for performing the following steps: transmitting a plurality of data packets over different first communication links, comprising: the data packets are distributed to different first communication links and transmitted on the different first communication links in a mode of polling distribution of the data packets to the first communication links.
Example 6
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute program codes of the following steps in the signal processing method of the application program: obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link; the concatenated data packets are transmitted over the second communication link.
Alternatively, fig. 12 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 12, the computer terminal may include: one or more (only one shown) processors 1202, memory 1204, and the like.
The memory 1204 may be used to store software programs and modules, such as program instructions/modules corresponding to the signal processing method and apparatus in the embodiments of the present invention, and the processor 1202 executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the above-mentioned testing method for the internet of things. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link; the concatenated data packets are transmitted over the second communication link.
Optionally, the processor may further execute the program code of the following steps: splicing the plurality of data packets to obtain a spliced data packet, comprising: and splicing the plurality of data packets in the same first communication link to obtain a spliced data packet.
Optionally, the processor may further execute the program code of the following steps: transmitting the spliced data packet through a second communication link, including: and polling and reading spliced data packets spliced on a plurality of same first communication links, and transmitting the spliced data packets on a second communication link.
Optionally, the processor may further execute the program code of the following steps: splicing a plurality of data packets in the same first communication link to obtain a spliced data packet, including: acquiring first identification information, wherein the first identification information is used for identifying the same first communication link; inserting first identification information at an interval between a first predetermined data packet and a second predetermined data packet among a plurality of data packets in the same first communication link; and splicing the plurality of data packets with the first identification information inserted at the interval between the first preset data packet and the second preset data packet to obtain a spliced data packet.
Optionally, the processor may further execute the program code of the following steps: splicing the plurality of data packets to obtain a spliced data packet, comprising: and splicing the plurality of data packets of different first communication links to obtain a spliced data packet.
Optionally, the processor may further execute the program code of the following steps: splicing a plurality of data packets of different first communication links to obtain spliced data packets, comprising: polling and reading data packets on a plurality of different first communication links; and splicing the data packets read from the different first communication links to obtain spliced data packets.
Optionally, the processor may further execute the program code of the following steps: splicing the data packets read from the different first communication links to obtain spliced data packets, comprising: acquiring second identification information, wherein the second identification information comprises: reading a starting communication link identifier corresponding to a starting data packet in the data packet and an ending communication link identifier corresponding to an ending data packet; inserting second identification information into the read data packet at an interval between a third predetermined data packet and a fourth predetermined data packet; and after second identification information is inserted into the interval between the third preset data packet and the fourth preset data packet, splicing the read data packets to obtain a spliced data packet.
Optionally, the processor may further execute the program code of the following steps: the first communication link includes: a network line link, the second communication link comprising: an optical fiber link.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: receiving a splicing data packet transmitted by a second communication link, wherein the size of the splicing data packet is equal to a second bit width of the second communication link; splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link; the plurality of data packets are transmitted over a first communication link.
Optionally, the processor may further execute the program code of the following steps: transmitting a plurality of data packets over a first communication link, comprising: multiple data packets are transmitted over the same first communication link.
Optionally, the processor may further execute the program code of the following steps: transmitting a plurality of data packets over the same first communication link, comprising: and polling and distributing a plurality of data packets obtained by splitting the spliced data packets to the corresponding same first communication link, and transmitting the data packets in the corresponding same first communication link.
Optionally, the processor may further execute the program code of the following steps: splitting the spliced data packets respectively to obtain first identification information, wherein the first identification information is used for identifying the same first communication link corresponding to a preset spliced data packet in the spliced data packets; and polling and distributing a plurality of data packets obtained by splitting the spliced data packets to the corresponding same first communication link according to the first identification information.
Optionally, the processor may further execute the program code of the following steps: transmitting a plurality of data packets over a first communication link, comprising: the plurality of data packets are transmitted over different first communication links.
Optionally, the processor may further execute the program code of the following steps: transmitting a plurality of data packets over different first communication links, comprising: the data packets are distributed to different first communication links and transmitted on the different first communication links in a mode of polling distribution of the data packets to the first communication links.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (21)

  1. A method of data transmission, comprising:
    obtaining a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link;
    splicing the plurality of data packets to obtain a spliced data packet, wherein the size of the spliced data packet is equal to a second bit width of a second communication link;
    and transmitting the spliced data packet through the second communication link.
  2. The method of claim 1, wherein concatenating the plurality of data packets to obtain a concatenated data packet comprises:
    and splicing the plurality of data packets in the same first communication link to obtain the spliced data packet.
  3. The method of claim 2, wherein transmitting the concatenated packet over the second communication link comprises:
    and polling and reading spliced data packets spliced on a plurality of same first communication links, and transmitting the spliced data packets on the second communication link.
  4. The method of claim 3, wherein concatenating a plurality of data packets in the same first communication link to obtain the concatenated data packet comprises:
    acquiring first identification information, wherein the first identification information is used for identifying the same first communication link;
    inserting the first identification information at an interval between a first predetermined data packet and a second predetermined data packet among a plurality of data packets in the same first communication link;
    and splicing the plurality of data packets inserted with the first identification information at the interval between the first preset data packet and the second preset data packet to obtain the spliced data packet.
  5. The method of claim 1, wherein concatenating the plurality of data packets to obtain a concatenated data packet comprises:
    and splicing the plurality of data packets of different first communication links to obtain the spliced data packet.
  6. The method of claim 5, wherein splicing the plurality of data packets of different first communication links to obtain the spliced data packet comprises:
    polling and reading data packets on a plurality of different first communication links;
    and splicing the data packets read from the different first communication links to obtain the spliced data packet.
  7. The method of claim 6, wherein concatenating the data packets read from the plurality of different first communication links to obtain the concatenated data packet comprises:
    acquiring second identification information, wherein the second identification information comprises: reading a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the data packets;
    inserting the second identification information into the read data packet at the interval between a third predetermined data packet and a fourth predetermined data packet;
    and after the second identification information is inserted into the interval between the third preset data packet and the fourth preset data packet, splicing the read data packets to obtain the spliced data packet.
  8. The method of any of claims 1-7, wherein the first communication link comprises: a network link, the second communication link comprising: an optical fiber link.
  9. A method of data transmission, comprising:
    receiving a splicing data packet transmitted by a second communication link, wherein the size of the splicing data packet is equal to a second bit width of the second communication link;
    splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link;
    transmitting the plurality of data packets over the first communication link.
  10. The method of claim 9, wherein transmitting the plurality of data packets over the first communication link comprises:
    transmitting the plurality of data packets over the same first communication link.
  11. The method of claim 10, wherein transmitting the plurality of data packets over the same first communication link comprises:
    and polling and distributing a plurality of data packets obtained by splitting a plurality of spliced data packets to the corresponding same first communication link, and transmitting the data packets in the corresponding same first communication link.
  12. The method of claim 11, wherein distributing a plurality of data packet polls obtained by splitting a plurality of spliced data packets respectively to a corresponding same first communication link comprises:
    splitting a plurality of spliced data packets respectively to obtain first identification information, wherein the first identification information is used for identifying the same first communication link corresponding to a preset spliced data packet in the spliced data packets;
    and polling and distributing a plurality of data packets obtained by splitting the spliced data packets respectively to the corresponding same first communication link according to the first identification information.
  13. The method of claim 9, wherein transmitting the plurality of data packets over the first communication link comprises:
    transmitting the plurality of data packets over different first communication links.
  14. The method of claim 13, wherein transmitting the plurality of data packets over different first communication links comprises:
    the data packets are distributed to different first communication links and transmitted on the different first communication links in a mode of polling distribution of the data packets to the first communication links.
  15. The method of claim 14, wherein distributing the plurality of data packets to different first communication links by polling the plurality of first communication links for distribution of the data packets comprises:
    acquiring second identification information, wherein the second identification information comprises: a starting communication link identifier corresponding to a starting data packet and an ending communication link identifier corresponding to an ending data packet in the plurality of data packets;
    and distributing the data packets to different first communication links in a mode of polling and distributing the data packets to the first communication links according to the second identification information.
  16. The method of any of claims 9 to 15, wherein the first communication link comprises: a network wire link, the second communication link comprising: an optical fiber link.
  17. A data transmission apparatus, comprising:
    an obtaining module, configured to obtain a plurality of data packets, where the plurality of data packets are transmitted by a first communication link;
    the splicing module is used for splicing the plurality of data packets to obtain spliced data packets, wherein the size of each spliced data packet is equal to the second bit width of a second communication link;
    and the first transmission module is used for transmitting the spliced data packet through the second communication link.
  18. A data transmission apparatus, comprising:
    the receiving module is used for receiving a spliced data packet transmitted by a second communication link, wherein the size of the spliced data packet is equal to a second bit width of the second communication link;
    the splitting module is used for splitting the spliced data packet to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to a first bit width of a first communication link;
    a second transmission module configured to transmit the plurality of data packets over the first communication link.
  19. A communication system, comprising a sending end device and a receiving end device, wherein the sending end device comprises a first processor, and the receiving end device comprises a second processor, wherein the first processor is configured to execute a first program, wherein the first program is configured to execute the data transmission method according to any one of claims 1 to 8, and the second processor is configured to execute a second program, wherein the second program is configured to execute the data transmission method according to any one of claims 9 to 16.
  20. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the data transmission method according to any one of claims 1 to 16.
  21. A processor, configured to execute a program, wherein the program executes the data transmission method according to any one of claims 1 to 16.
CN202080094285.3A 2020-11-27 2020-11-27 Data transmission method, device, communication system, storage medium and processor Pending CN115004654A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/132272 WO2022110018A1 (en) 2020-11-27 2020-11-27 Data transmission method and apparatus, communication system, storage medium, and processor

Publications (1)

Publication Number Publication Date
CN115004654A true CN115004654A (en) 2022-09-02

Family

ID=81753797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080094285.3A Pending CN115004654A (en) 2020-11-27 2020-11-27 Data transmission method, device, communication system, storage medium and processor

Country Status (2)

Country Link
CN (1) CN115004654A (en)
WO (1) WO2022110018A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103675848A (en) * 2013-12-26 2014-03-26 东莞市泰斗微电子科技有限公司 Signal transmission method and system based on multichannel GNSS signals
CN103714038A (en) * 2012-10-09 2014-04-09 中兴通讯股份有限公司 Data processing method and device
CN104113347A (en) * 2013-04-16 2014-10-22 硅谷实验室公司 Isolated serializer-deserializer
CN110134366A (en) * 2019-05-21 2019-08-16 合肥工业大学 A kind of method and device being written in parallel to multichannel FIFO
EP3614786A1 (en) * 2018-08-23 2020-02-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and apparatus
CN111935017A (en) * 2020-10-14 2020-11-13 腾讯科技(深圳)有限公司 Cross-network application calling method and device and routing equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632896B (en) * 2017-03-15 2020-09-29 华为技术有限公司 Data transmission method and related equipment
US10841040B2 (en) * 2018-08-30 2020-11-17 Nokia Solutions And Networks Oy Acknowledgment and packet retransmission for spliced streams

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714038A (en) * 2012-10-09 2014-04-09 中兴通讯股份有限公司 Data processing method and device
CN104113347A (en) * 2013-04-16 2014-10-22 硅谷实验室公司 Isolated serializer-deserializer
CN103675848A (en) * 2013-12-26 2014-03-26 东莞市泰斗微电子科技有限公司 Signal transmission method and system based on multichannel GNSS signals
EP3614786A1 (en) * 2018-08-23 2020-02-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and apparatus
CN110134366A (en) * 2019-05-21 2019-08-16 合肥工业大学 A kind of method and device being written in parallel to multichannel FIFO
CN111935017A (en) * 2020-10-14 2020-11-13 腾讯科技(深圳)有限公司 Cross-network application calling method and device and routing equipment

Also Published As

Publication number Publication date
WO2022110018A1 (en) 2022-06-02

Similar Documents

Publication Publication Date Title
CN107888516B (en) Method, equipment and system for bearing service
CN110266612A (en) Data transmission method and device, the network equipment and storage medium
EP3605881B1 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
CN111511022A (en) Method, device and system for transmitting customer service
CN212518992U (en) Optical fiber transmission device of 8K signal source
CN101646075B (en) Device and method for adjusting code rate of multimedia code stream
US20100172248A1 (en) Communication system, supervisory/control method, and repeating apparatus and program
CN108988977B (en) Method, device and system for transmitting service flow in flexible Ethernet protocol
CN115004654A (en) Data transmission method, device, communication system, storage medium and processor
CN115442572A (en) Data transmission method and device
CN111405534A (en) Information transmission method, first terminal and computer storage medium
CN107995082B (en) Service card management method, master control card and distributed gateway
CN111934820B (en) Management information transmission method, system and readable storage medium
US10938502B2 (en) Method and system for accurate IPG compensation of USXGMII multi-channel
CN115801102A (en) Method, device and storage medium for downlink data
CN103475936A (en) Method for remote monitoring of digital television receiving terminal
CN103999380B (en) The communication means of a kind of hfc plant, device and system
CN114885043B (en) Interface system and method of self-adaptive forward protocol
CN102594453A (en) Optical fiber time division transmission method for Ethernet data
CN104618696B (en) The information processing method and system of video optical multiplexer
CN108292954A (en) A kind of method of adjustment of the Wi-Fi transmission rates of ONT and ONT
CN115632752A (en) Data transmission method and device and electronic equipment
CN103176209B (en) Method and panel for adaptively transmitting messages
RU2103825C1 (en) Module for compressing voice messages by data bursts
CN118301508A (en) Automatic serial port switching system and method based on OLT

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