WO2022110018A1 - 数据传输方法、装置、通信系统、存储介质和处理器 - Google Patents

数据传输方法、装置、通信系统、存储介质和处理器 Download PDF

Info

Publication number
WO2022110018A1
WO2022110018A1 PCT/CN2020/132272 CN2020132272W WO2022110018A1 WO 2022110018 A1 WO2022110018 A1 WO 2022110018A1 CN 2020132272 W CN2020132272 W CN 2020132272W WO 2022110018 A1 WO2022110018 A1 WO 2022110018A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packets
communication link
spliced
data packet
data
Prior art date
Application number
PCT/CN2020/132272
Other languages
English (en)
French (fr)
Inventor
李松
周晶晶
Original Assignee
西安诺瓦星云科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安诺瓦星云科技股份有限公司 filed Critical 西安诺瓦星云科技股份有限公司
Priority to CN202080094285.3A priority Critical patent/CN115004654A/zh
Priority to PCT/CN2020/132272 priority patent/WO2022110018A1/zh
Publication of WO2022110018A1 publication Critical patent/WO2022110018A1/zh

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

Definitions

  • the present invention relates to the field of data transmission, and in particular, to a data transmission method, device, communication system, storage medium and processor.
  • the ordinary network cable link is converted into an optical fiber link, so as to realize the transmission with long transmission distance and fast transmission speed.
  • the optical fiber interface and the network cable interface are simply converted according to the bit width ratio, but such a conversion method may waste the bandwidth of the optical fiber link. Therefore, how to break through the limit of link conversion and maximize the link transmission performance is a technical problem that needs to be solved urgently at present.
  • Embodiments of the present invention provide a data transmission method, device, communication system, storage medium and processor, to at least solve the technical problem of how to break through the limit of link conversion and maximize link transmission performance in the related art.
  • a data transmission method including: acquiring multiple data packets, wherein the multiple data packets are transmitted by a first communication link; and splicing the multiple 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 the spliced data packet is transmitted through the second communication link.
  • splicing the multiple data packets to obtain the spliced data packet includes: splicing multiple data packets in the same first communication link to obtain the spliced data packet.
  • transmitting the spliced data packets through the second communication link includes: polling and reading a plurality of spliced data packets obtained by splicing on the same first communication link, and transmitting the spliced data packets on the second communication link. road transmission.
  • splicing multiple data packets in the same first communication link to obtain the spliced data packets includes: acquiring first identification information, wherein the first identification information is used to identify the same first identification information. a communication link; inserting the first identification information at an interval between a first predetermined data packet and a second predetermined data packet in a plurality of data packets in the same first communication link; A plurality of data packets with the first identification information inserted at the interval between a predetermined data packet and the second predetermined data packet are spliced to obtain the spliced data packet.
  • splicing the multiple data packets to obtain the spliced data packet includes: splicing multiple data packets of different first communication links to obtain the spliced data packet.
  • splicing a plurality of data packets of different first communication links to obtain the spliced data packets comprising: polling and reading data packets on a plurality of different first communication links; The data packets read from different first communication links are spliced to obtain the spliced data packets.
  • splicing the data packets read from the multiple different first communication links to obtain the spliced data packets includes: acquiring second identification information, wherein the second identification information includes: reading The starting communication link identification corresponding to the starting data packet in the obtained data packet, and the ending communication link identification corresponding to the ending data packet; insert the second identification information into the third predetermined data in the read data packet at the interval between the third predetermined data packet and the fourth predetermined data packet; for the data read after the second identification information is inserted at the interval between the third predetermined data packet and the fourth predetermined data packet The packets are spliced to obtain the spliced data packets.
  • the first communication link includes a network cable link
  • the second communication link includes an optical fiber link
  • a data transmission method comprising: receiving a concatenated data packet transmitted by a second communication link, wherein the size of the concatenated data packet is equal to the size of the second communication link. second bit width; splitting the spliced data packets to obtain multiple data packets, wherein the size of each data packet in the multiple data packets is equal to the first bit width of the first communication link; The plurality of data packets are transmitted over the first communication link.
  • transmitting the multiple data packets over the first communication link includes: transmitting the multiple data packets over the same first communication link.
  • transmitting the plurality of data packets on the same first communication link includes: polling and distributing the plurality of data packets obtained by splitting the plurality of spliced data packets to the corresponding same first communication link. , and transmitted over the corresponding same first communication link.
  • polling and distributing the plurality of data packets obtained by splitting the plurality of splicing data packets to the corresponding same first communication link includes: splitting the plurality of splicing data packets respectively to obtain the first identification information, wherein, the first identification information is used to identify the same first communication link corresponding to the predetermined concatenated data packet in the plurality of concatenated data packets; according to the first identification information, the plurality of concatenated data packets are respectively disassembled The obtained multiple data packets are distributed to the corresponding same first communication link by polling.
  • transmitting the multiple data packets on the first communication link includes: transmitting the multiple data packets on different first communication links.
  • transmitting the multiple data packets on different first communication links includes: distributing the multiple data packets by polling and distributing the data packets to the multiple first communication links. to a different first communication link and transmit on the different first communication link.
  • distributing the plurality of data packets to different first communication links by polling and distributing data packets to the plurality of first communication links includes: acquiring second identification information, wherein, The second identification information includes: the initial communication link identification corresponding to the starting data packet in the plurality of data packets, and the ending communication link identification corresponding to the ending data packet;
  • the multiple first communication links poll the manner of distributing the data packets, and distribute the multiple data packets to different first communication links.
  • the first communication link includes a network cable link
  • the second communication link includes an optical fiber link
  • a data transmission apparatus comprising: an acquisition module configured to acquire a plurality of data packets, wherein the plurality of data packets are transmitted by a first communication link; a splicing module , for splicing the multiple data packets to obtain a splicing data packet, wherein the size of the splicing data packet is equal to the second bit width of the second communication link; the first transmission module is used for splicing the splicing data Packets are transmitted over the second communication link.
  • a data transmission apparatus including: a receiving module configured to receive a concatenated data packet transmitted by a second communication link, wherein the size of the concatenated data packet is equal to the size of the concatenated data packet.
  • the second bit width of the second communication link the splitting module is configured to split the spliced data packet to obtain multiple data packets, wherein the size of each data packet in the multiple data packets is equal to the first The first bit width of a communication link; and a second transmission module, configured to transmit the plurality of data packets over the first communication link.
  • a communication system including a transmitter device and a receiver device, the transmitter device includes a first processor, and the receiver device includes a second processor, wherein , the first processor is used to run the first program, wherein, when the first program runs, any one of the above-mentioned data transmission methods executed by the sending end device is executed, and the second processor is used to run the first program.
  • a second program wherein the second program executes any one of the above-mentioned data transmission methods executed by the receiving end device when running.
  • a storage medium is further provided, the storage medium includes a stored program, wherein when the program is run, a device where the storage medium is located is controlled to execute the data in any of the above-mentioned items transfer method.
  • a processor is further provided, and the processor is configured to run a program, wherein, when the program runs, any one of the data transmission methods described above is executed.
  • a method of acquiring multiple data packets transmitted by the first communication link is adopted, and by splicing the multiple data packets, a spliced data packet whose size is equal to the second bit width of the second communication link is obtained. , and transmit the concatenated data packet through the second communication link. Since the spliced data packets can be transmitted in a manner that conforms to the maximum transmission bandwidth of the second communication link, the purpose of effectively avoiding the waste of transmission bandwidth of the communication link is achieved, thereby achieving the technical effect of maximizing the transmission performance of the communication link, thereby solving the problem of It solves the technical problem of how to break through the limit of link conversion in the related art, so as to maximize the transmission performance of the link.
  • 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 provided according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of network cable transmission data in the field of LED control cited in an optional embodiment of the present invention
  • Fig. 5 is the schematic diagram of optical fiber bit width corresponding network cable bit width distribution in the related art
  • FIG. 6 is a schematic diagram of an input-end data transmission method according to an optional embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a polling mechanism according to an optional embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a data transmission method at a receiving end according to an optional embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a data transmission apparatus 1 provided according to Embodiment 2 of the present invention.
  • FIG. 10 is a structural block diagram of a second data transmission apparatus provided according to Embodiment 3 of the present invention.
  • FIG. 11 is a structural block diagram of a communication system provided according to Embodiment 4 of the present invention.
  • FIG. 12 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • an embodiment of a method for data transmission is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions, and although A logical order is shown in the flowcharts, but in some cases steps shown or described may be performed in an order different from that herein.
  • 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 acquiring multiple data packets, wherein the multiple data packets are transmitted by the first communication link;
  • Step S104 splicing multiple data packets to obtain a splicing data packet, wherein the size of the splicing data packet is equal to the second bit width of the second communication link;
  • Step S106 the spliced data packet is transmitted through the second communication link.
  • the method of acquiring multiple data packets transmitted by the first communication link is adopted, and by splicing the multiple data packets, a spliced data packet having a size equal to the second bit width of the second communication link is obtained, and the The concatenated data packets are transmitted over the second communication link. Since the spliced data packets can be transmitted in a manner that conforms to the maximum transmission bandwidth of the second communication link, the purpose of effectively avoiding the waste of transmission bandwidth of the communication link is achieved, thereby achieving the technical effect of maximizing the transmission performance of the communication link, thereby solving the problem of It solves the technical problem of how to break through the limit of link conversion in the related art, so as to maximize the transmission performance of the link.
  • the concatenated multiple data packets may also be stored first.
  • the conversion from the first communication link to the second communication link is realized directly according to the bit width. Due to the processing methods of splicing and polling transmission, it involves reading data packets or splicing data packets. Therefore, the storage method of data needs to be expanded accordingly. For example, the depth of the buffer can be expanded accordingly. For example, the space originally used for buffering 64-bit data can be expanded to a buffer space with a depth of 16, that is, it can be expanded to 16 64-bit spaces.
  • a plurality of data packets are spliced to obtain a spliced data packet
  • various methods may be used, for example, the following methods may be adopted: Splicing to obtain a spliced data packet.
  • Splicing to obtain a spliced data packet.
  • a spliced data packet with a size equal to the second bit width of the second communication link is obtained, so that the spliced data packet can meet the maximum transmission bandwidth of the second communication link. way of transmission.
  • the application scenario of the above method may be that the transmission bandwidth of the first communication link is smaller than the transmission bandwidth of the second communication link, that is, the communication link with a smaller transmission bandwidth is converted into a larger transmission bandwidth.
  • the above-mentioned second communication link may match the transmission of multiple first communication links.
  • the number of matching first communication links is at least greater than the bit width of the second communication link and the bit width of the first communication link.
  • the bandwidth of the second communication link can be completely used during transmission in the second communication link, and there will be no problem of wasting part of bandwidth resources of the second communication link during data transmission.
  • the bit width of the first communication link is 8 bits and the bit width of the second communication link is 64 bits
  • the bandwidth of the first communication link is 1 Gbps
  • the bandwidth of the second communication link is 10 Gbps.
  • the 1G data of the first first communication link can be transmitted in the first tenth of 1s, and the second first communication link can be transmitted in the second tenth of 1s
  • the 1G data of the communication link can transmit the 1G data of the third first communication link in the third tenth of 1s. ..., keep polling like this, in the tenth time of 1s
  • the 1G data of the tenth first communication link can be transmitted within one-tenth of the time, and finally the data of the 10 first communication links within 1s is just transmitted within 1s. Therefore, one second communication link can realize the data transmission of 10 first communication links.
  • the second communication link when the conversion between the first communication link and the second communication link is realized according to the corresponding relationship of the bit width, the second communication link can only satisfy the data transmission of 8 first communication links, The transmission resources of the second communication link are effectively used, so that the second communication link transmits in the manner of the maximum transmission bandwidth, and the transmission performance of the communication link is maximized.
  • a spliced data packet is obtained by splicing multiple data packets transmitted in the first communication link, so that each of the multiple first communication links has a plurality of spliced data packets respectively.
  • the number of first communication links is 10: first communication link 1 , first communication link 2 , first communication link 3 , . . . , first communication link 10 .
  • the 10 first communication links are respectively spliced with multiple spliced data packets.
  • a plurality of spliced data packets obtained by splicing on the same first communication link can be polled and read, and transmitted on the second communication link.
  • the number of concatenated data packets polled and read on the same communication link can be flexibly selected according to specific conditions.
  • each first communication link reads one concatenated data packet: read one concatenated data packet from the first communication link 1 in turn, and read one concatenated data packet from the first communication link 1
  • the first communication link 2 reads a concatenated data packet, reads a concatenated data packet from the first communication link 3, ..., reads a concatenated data packet from the first communication link 10; continue from the first communication chain Road 1 reads a concatenated data packet, reads a concatenated data packet from the first communication link 2, reads a concatenated data packet from the first communication link 3, ..., reads a concatenated data packet from the first communication link 10 Concatenate packets until the end of the data transfer.
  • the following polling method can also be used (each first communication link reads two spliced data packets): read two spliced data packets from the first communication link 1 in turn. Data packets, read two concatenated data packets from the first communication link 2, read two concatenated data packets from the first communication link 3, ..., read two concatenated data packets from the first communication link 5 ; read two splice data packets from the first communication link 6, read two splice data packets from the first communication link 7, ..., read two splice data packets from the first communication link 10; continue Read two concatenated data packets from the first communication link 1, read two concatenated data packets from the first communication link 2, read two concatenated data packets from the first communication link 3, ..., until the data Transmission ends. It should be noted that the number of concatenated data packets read from the first communication link at one time is not limited to the above one, two, and the above one
  • the size of the concatenated data packet can be determined according to the physical bit width 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 first transmission link and the second transmission link are satisfied Bandwidth matching requirements; 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.
  • the frequency needs to be doubled correspondingly to meet the bandwidth matching requirements of the first transmission link and the second transmission link; when the bit width of the second transmission link is 16 bits, the The size of the data packet can be 16 bits. At this time, compared with the case where the bit width is 64 bits, it is only necessary to increase the frequency correspondingly by three times (that is, the frequency is four times the original frequency), so as to meet the requirements of the first transmission link and the first transmission link.
  • the bandwidth matching requirements of the second transmission link continue to reduce the bit width of the second transmission link to 8 bits, and the size of the data packet spliced on the first transmission link can be directly 8 bits (compared to not splicing data) ), at this time, compared with the case where the bit width is 64 bits, it is only necessary to increase the frequency correspondingly by seven times (that is, the frequency is eight times the original frequency), so as to meet the bandwidth matching requirements of the first transmission link and the second transmission link. .
  • the bandwidth of the second transmission link matches the bandwidth of the first transmission link is only an example.
  • the complexity of the specific splicing and the impact of the frequency increase on the performance can be considered.
  • the size of the concatenated data packet is flexibly determined according to the bit width of the second transmission link, thereby enabling the second communication link to transmit in a manner of maximum transmission bandwidth, thereby maximizing the transmission performance of the communication link.
  • the bandwidth of the first communication link is much smaller than that of the second communication link. Therefore, by splicing data packets of multiple first communication links to obtain multiple spliced data packets, the multiple spliced data packets can be The transmission is performed on the second communication link in a manner that conforms to the maximum transmission bandwidth of the second communication link, so as to maximize the utilization of the bandwidth resources of the second communication link.
  • the data packets of the same first communication link are spliced to obtain a bit width equal to the second The spliced data packets of the communication link bit width; after performing the same operation on the multiple first communication links, multiple spliced data packets are obtained for each of the multiple first communication links; after that, the round The multiple spliced data packets of the first communication link are read and polled, and the multiple spliced data packets are polled and transmitted through the second communication link.
  • the number of the above-mentioned first communication links can be determined according to the bandwidths of the first communication link and the second communication link. For example, when the bandwidth of the first communication link is equal to that of the second communication link When 1/n, the number of the first communication links can be n, so that when polling once, all the first communication links read the concatenated data packets once, the operation is simple and intuitive, and the marking of the concatenated data packets is simple and intuitive. It is also relatively easy.
  • the corresponding first communication link identification information can be embedded in the splicing data packets, which is convenient for subsequent data transmission and reading and parsing processes.
  • different concatenated data packets can be correctly sent to the corresponding first communication link.
  • the data packets to be transmitted of the first communication link can be preprocessed according to a predetermined identification rule, so as to realize the identification of the first communication link.
  • the specific identification methods can include many kinds, which are not limited here. .
  • the reading of the spliced data packets of the first communication link adopts the polling method, that is, certain rules exist when reading the spliced data packets.
  • certain rules exist when reading the spliced data packets.
  • the concatenated data packets corresponding to the other first communication links can be obtained according to the polling rule.
  • each of the above 10 first communication links has a spliced data packet, and the polling method is to read the spliced data packet from the first first communication link, and then start from the second first communication link.
  • a communication link reads the concatenated data packets, . . . and so on until the concatenated data packets are read from the tenth first communication link. For example, as long as the first spliced data packet belongs to the first first communication link is identified, then according to the polling rule, the second spliced data packet must belong to the second first communication link, so there is no need to identify the first communication link.
  • the second splicing data packet is identified, and other splicing data packets are also based on the same principle, and can no longer be identified.
  • a simple and convenient processing method can also be used to perform identification processing on each spliced data packet.
  • the spliced data packet belongs to the spliced data packet to be identified, it can be achieved in the following manner : obtain first identification information, wherein the first identification information is used to identify the same first communication link; between the first predetermined data packet and the second predetermined data packet in the plurality of data packets in the same first communication link Insert the first identification information at the interval between the first predetermined data packet and the second predetermined data packet; splicing a plurality of data packets into which the first identification information is inserted at the interval between the first predetermined data packet and the second predetermined data packet, to obtain a concatenated data packet.
  • the first identification information is inserted at the interval between two predetermined data packets in the plurality of data packets for obtaining the spliced data packet. Since the interval between the data packets also belongs to idle resources, this method is adopted. Part of the idle resources are used to transmit the first identification information, on the one hand, the utilization rate of the resources can be improved, and on the other hand, the transmission and splicing of the data packets are not affected.
  • the multiple data packets transmitted on the first communication link with the width of the first bit may be identified;
  • the multiple data packets are spliced to obtain a spliced data packet.
  • multiple data packets transmitted on the first communication link may also be identified, and the identified packets may be spliced.
  • the data of the first communication link may be preprocessed according to a predetermined identification rule, and a unified predetermined format may be used to identify the data packet, and the specific identification methods may include multiple types, which are not limited herein.
  • the data packets transmitted in each first communication link may be identified according to the same identification rule. Since the output data processing methods 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 above processing can ensure the consistency of the format of the data output by the first communication link, the second communication link does not need to perform data processing according to different first communication links, and the second communication link only needs to send data according to the clock data.
  • the following manner when identifying multiple data packets transmitted on the first communication link with the first width, the following manner may be used: A plurality of data is converted into a predetermined format, wherein the predetermined format includes one of the following: rising edge, valid data, falling edge; since the multiple data packets included in the spliced data packet all adopt the above-mentioned unified predetermined format, therefore, in the
  • the first identification information of the corresponding first communication link is inserted into the spliced data packets read by polling
  • the above-mentioned first identification is inserted at the interval between the first predetermined data packet and the second predetermined data packet in the plurality of data packets.
  • the information may be: inserting the first identification information at the interval between the falling edge of the first predetermined data packet and the rising edge of the second predetermined data packet.
  • the original data packets on the first communication link can be converted into data packets including a unified predetermined format, where the unified predetermined format includes: rising edge, valid data, and falling edge.
  • the rising edge and falling edge in the above-mentioned predetermined format are not functionally the same as the edge information following the splice data packet (ie, the identification information at the interval referred to above).
  • the rising edge and falling edge in the above-mentioned predetermined format are used to identify a plurality of data packets transmitted on the first communication link, and the data packet is converted into a format including at least rising edge, valid data, and falling edge through a predetermined data conversion rule,
  • valid data of different data packets can be distinguished by the rising edge and/or the falling edge, so as to correctly parse the valid data in the data packets of the first communication link.
  • the above-mentioned edge information is the identification information corresponding to the first communication link embedded in the splicing data packet, which is used to identify the first communication link corresponding to the above-mentioned splicing data packet. , different first communication links corresponding to different spliced data packets can be effectively distinguished.
  • splicing a plurality of data packets on the first communication link to obtain a spliced data packet may also be performed in the following manner: splicing a plurality of data packets on different first communication links to obtain a spliced data packet data pack.
  • the data packets on a plurality of different first communication links may be read by polling; the data packets read from the plurality of different first communication links are spliced to obtain the spliced data packets.
  • first communication links poll a predetermined number of data packets from each first communication link, and then according to the bit width relationship between the first communication link and the second communication link, obtain The spliced data packets are spliced to obtain spliced data packets whose bit width is equal to the bit width of the second communication link, and are transmitted in the second communication link.
  • the bit width of the first communication link is 8 bits
  • the bit width of the second communication link is 64 bits
  • the data packets are transmitted on the second communication link.
  • the first spliced packet transmitted on the second transmission link is spliced by using data packets transmitted from the first first communication link to the eighth first communication link, and the spliced packet transmitted on the second transmission link
  • the second splicing packet is spliced by using data packets transmitted from the ninth first communication link to the sixth first communication link polled for the second time.
  • 10G of data is also transmitted on 10 first communication links
  • 10G of data is also transmitted on 1 second communication link within 1s. It is also equivalent that one second communication link can realize the data transmission of 10 first communication links.
  • the second communication link when the conversion between the first communication link and the second communication link is realized according to the corresponding relationship of the bit width, the second communication link can only satisfy the data transmission of 8 first communication links, The transmission resources of the second communication link are effectively used, so that the second communication link transmits in the manner of the maximum transmission bandwidth, and the transmission performance of the communication link is maximized.
  • the number of data packets read from one first communication link each time can be flexibly selected according to specific requirements. For example, there may be one or more.
  • the number of first communication links mentioned above is 10: first communication link 1, first communication link 2, first communication link 3, ... first communication link 10, when splicing data
  • the following methods can be used to splicing to obtain the required splicing data packets: one can sequentially read a data packet from the first communication link 1, read a data packet from the first communication link 2, and read a data packet from the first communication link 2.
  • a data packet is read in the second first communication link 6, and the read data packet is spliced to obtain a second spliced data packet, . . .
  • two data packets can be read from the first communication link 1 in turn, two data packets can be read from the first communication link 2, and two data packets can be read from the first communication link 2 in turn.
  • Two data packets are read from a communication link 3, and two data packets are 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 are read from communication link 5, two data packets are read from first communication link 6, two data packets are read from first communication link 7, and two data packets are read from first communication link 8 Read two data packets, thereby splicing the read data packets to obtain a second splicing data packet;
  • two data packets can be read from the first communication link 9 in turn, and read from the first communication link 10.
  • the number of the first communication links can be determined according to the bandwidth of the first communication link and the bandwidth of the second communication link.
  • the bit width ratio and the bandwidth ratio of the first communication link and the second communication link are different, at the same time, the number of the first communication link participating in data transmission and the number of the first communication link participating in splicing data packets are can be different.
  • bit 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 supported simultaneously Participate in the transmission of data packets through the second communication link, but when splicing the data packets into spliced data packets, poll and read the single data packets of the eight first communication links among the ten first communication links, and put the The above eight data packets are spliced into one spliced data packet and transmitted in the second communication link.
  • the data packets of the two first communication links that do not participate in the data packet splicing work will enter the next round of data packet polling and reading, and participate in the next round of data packet splicing work to ensure that the ten first communication links can be simultaneously real-time. Data is sent to and transmitted in the second communication link.
  • the spliced data packets when the data packets read from multiple different first communication links are spliced to obtain the spliced data packets, in order to distinguish different spliced data packets, the spliced data packets may also be spliced. logo.
  • the second identification information includes: the identification of the starting communication link corresponding to the starting data packet in the read data packet, and the ending communication link corresponding to the ending data packet Road identification; insert the second identification information into the read data packet at the interval between the third predetermined data packet and the fourth predetermined data packet; pair at the interval between the third predetermined data packet and the fourth predetermined data packet After inserting the second identification information, the read data packets are spliced to obtain spliced data packets.
  • the communication link identification corresponding to the initial data packet in the spliced data packet can be directly used It is indicated by the communication link identifier corresponding to the end data packet.
  • the communication link identifier corresponding to the end data packet Based on the principle similar to the above-mentioned first identification information, since there is a certain polling rule for reading data packets from the first communication link, not every concatenated data packet needs to be identified. As long as the second identification information corresponding to one of the spliced data packets is known, it is possible to know which first communication links the data packets included in the other spliced data packets come from. The details are as described in the foregoing description of the first identification information, which will not be repeated here.
  • the above-mentioned first communication link may be a network cable link
  • the second communication link may be an optical fiber link
  • other communication links that need to be converted.
  • the first embodiment and optional embodiment of the above-mentioned data transmission method are mainly described in the scenario that the first communication link is converted into the second communication link.
  • the following embodiments and optional implementations of the second data transmission method are mainly described in the scenario where the second communication link is correspondingly converted back to the first communication link.
  • the same principles or similar operations described in the previous scenarios can be applied in the following scenarios, and will not be repeated here.
  • FIG. 2 is a flowchart of a second data transmission method provided according to an embodiment of the present invention. As shown in FIG. 2 , the method includes the following steps:
  • Step S202 receiving the splicing data packet transmitted by the second communication link, wherein the size of the splicing data packet is equal to the second bit width of the second communication link;
  • Step S204 splitting the spliced data packets to obtain multiple data packets, wherein the size of each data packet in the multiple data packets is equal to the first bit width of the first communication link;
  • Step S206 transmitting a plurality of data packets over the first communication link.
  • the method of receiving the spliced data packets is adopted, and the spliced data packets are split to obtain multiple data packets whose size is equal to the width of the first bit of the first communication link, and pass the multiple data packets through
  • the first communication link transmits, because the concatenated data packets can be transmitted in a manner that conforms to the maximum transmission bandwidth of the second communication link, the purpose of effectively avoiding the waste of transmission bandwidth of the communication link is achieved, thereby maximizing the transmission bandwidth of the communication link.
  • the technical effect of transmission performance further solves the technical problem of how to break through the limit of link conversion and maximize link transmission performance in related technologies.
  • transmitting the multiple data packets on the first communication link includes: transmitting the multiple data packets on the same first communication link.
  • the data packets from which the spliced data packets are obtained belong to the same first communication link at the transmitting end, after receiving the spliced data packets, the spliced data packets are split to obtain multiple data packets, and the split data packets are correspondingly split.
  • the divided data packets are transmitted on the same first communication link at the receiving end.
  • transmitting the multiple data packets on the same first communication link includes: dividing the multiple concatenated data packets into multiple The data packets are polled and distributed to the corresponding same first communication link, and are transmitted on the corresponding same first communication link. Since multiple spliced data packets are obtained by polling multiple first communication links at the sending end, and each spliced data packet is from the same first communication link, when receiving the multiple spliced data packets, After splitting the spliced data packets respectively, the data packets obtained after the splitting are distributed to the first communication link corresponding to the receiving end by polling for transmission.
  • multiple data packets obtained by splitting multiple spliced data packets respectively are distributed to the corresponding same first communication link by polling, and the multiple spliced data packets can be distinguished according to the identification information.
  • it can be implemented in the following manner: splitting a plurality of spliced data packets respectively to obtain first identification information, wherein the first identification information is used to identify the same first communication link corresponding to a predetermined spliced data packet in the plurality of spliced data packets ; According to the first identification information, the plurality of data packets obtained by splitting the plurality of spliced data packets respectively are distributed to the corresponding same first communication link by polling.
  • the polling rule is used to determine the first communication link corresponding to other concatenated data packets.
  • multiple data packets may be transmitted on the first communication link in the following manner: if there are multiple first communication links, multiple data packets may be transmitted on different first communication links. transmission on the link. For example, when the spliced data packets transmitted in the second communication link include data packets corresponding to a plurality of first communication links, the data packets corresponding to the plurality of first communication links may be respectively sent to the corresponding data packets the first communication link and transmit there.
  • the method when the multiple data packets are transmitted on different first communication links, the method includes: by polling and distributing the data packets to the multiple first communication links, transmitting the multiple data packets Distributed to different first communication links and transmitted on different first communication links.
  • the spliced data packets transmitted on the second communication link are spliced together by a plurality of data packets of the first communication link in a certain order, the spliced data packets are split and sent to the plurality of first communication links.
  • the spliced data packets are split to obtain multiple data packets, and the multiple data packets can be sequentially spliced according to the polling sequence during splicing. sent to the corresponding first communication link.
  • the following processing methods may be adopted: obtaining the first communication link.
  • Two identification information wherein the second identification information includes: the identification of the starting communication link corresponding to the starting data packet in the multiple data packets, and the identification of the ending communication link corresponding to the ending data packet; The manner in which the plurality of first communication links distributes data packets by polling, and distributes the plurality of data packets to different first communication links.
  • the above-mentioned second identification information is not required to be carried in each splicing data packet, and the first identification information corresponding to other splicing data packets can also be obtained according to the corresponding second identification information carried in one of the splicing data packets. communication link.
  • the above-mentioned first communication link may include: a network cable link
  • the above-mentioned second communication link may include: an optical fiber link.
  • the bandwidth of the optical fiber link is much larger than the bandwidth of the network cable link, and at the same time, the bandwidth ratio of the optical fiber link and the network cable link is also larger than the bit width ratio of the optical fiber link and the network cable link.
  • the bit width of the channel and the network cable link is wider than the channel bit width in the allocated optical fiber, which will cause a waste of bandwidth resources in the optical fiber link.
  • FIG. 3 is a schematic diagram of network cable transmission data in the field of LED control cited in an optional embodiment of the present invention.
  • the LED display screen may be spliced by multiple screens, when the controller controls multiple LED display screens, there is a network cable corresponding to each LED display screen to be responsible for signal transmission.
  • the network cable can be replaced with a medium that meets the needs of long-distance signal transmission.
  • FIG. 4 is an optical fiber-network cable conversion diagram in the field of LED control cited in an optional embodiment of the present invention. As shown in Figure 4, the control signal is sent from the controller and transmitted to the optical fiber-network cable converter through the optical fiber, and the converted signal data is then sent to the corresponding LED display screen through multiple network cables.
  • FIG. 5 is a schematic diagram of the allocation of optical fiber bit widths to network cable bit widths in the related art.
  • the usual practice is to simply split the 64-bit data bit width of the optical fiber into a mode of 8 bits*8, which are respectively allocated to 8 network cable connections.
  • a single network cable link occupies one-eighth of the fiber bit width.
  • Each network cable link operates independently to achieve the purpose of independent transmission.
  • the link in the optical fiber may sometimes have a vacant state. , which will result in a waste of communication resources.
  • the data bandwidth of an optical fiber is 10Gbps
  • the data bandwidth of a single network cable is 1Gbps.
  • the original data transmission capability of a single fiber can support the data transmission of 10 network cables, but according to the distribution mechanism of the related method, the load-carrying performance of the link cannot be improved.
  • FIG. 6 is a schematic diagram of an input data transmission method according to an optional embodiment of the present invention. As shown in Figure 6, through code conversion, the data from network cable 1 to network cable 10 is packaged according to certain rules and transmitted to the optical fiber link at the same time, so that the data of 10 network cables can be transmitted through one optical fiber link at the same time. The purpose of increasing the carrying capacity of optical fiber links.
  • the output end pretreatment (Transmitter Pretreatment, TxPre for short) module is responsible for data preprocessing on the network port data.
  • the data packets transmitted in the original network cable link can be converted into a data format including a rising edge, valid data, and a falling edge according to a predetermined rule, and then output.
  • there is a packet header in the data transmitted in the original network cable link and the packet header has 8 bits, which includes an Ethernet frame start delimiter (Start Frame Delimiter, referred to as SFD for short), wherein the SFD (one bytes) and preamble (seven bytes) are used to synchronize the sending and receiving devices.
  • SFD Ethernet frame start delimiter
  • preamble seven bytes
  • the Transmitter Package (TxPkg) module at the output end is responsible for packing the edge information and valid data of the data packet according to certain rules, and splicing the 8-bit data of each channel into 64-bit data.
  • the processing of 10 channels by TxPkg can be consistent, so the output data format after final processing can also be consistent.
  • the TxArbit module is responsible for sending 64bit data polling of 10 network ports. Because the bandwidth of the processed network cable splicing data packet completely matches the optical fiber bandwidth, this module does not waste any clock cycles, and does not need to perform special processing when the network port data is invalid data. It is enough to send one data per clock for data transmission, and the transmitted data is sequentially read from the 10 output terminal data packet processing modules TxPkg of the previous stage.
  • FIG. 7 is a schematic diagram of a polling mechanism according to an optional embodiment of the present invention.
  • the processor at the sending end will query each network port in turn according to the number sequence.
  • the network port needs to inform the back end of three types of packet information: rising edge, falling edge, and valid data. But at the same time, only one packet type is valid for each network port. Since the amount of information carried by the 64-bit wideband is sufficient to represent two types of rising edge and falling edge, when the state machine polls and sends, the network port number information can be embedded in 64 bits and transmitted along with the edge information.
  • the spliced data packets after parsing the spliced data packets, obtain identification information of the first communication link corresponding to each spliced data packet; distribute the spliced data packets to the first communication link corresponding to the identification information .
  • identification information corresponding to the spliced data packets By analyzing the identification information corresponding to the spliced data packets, multiple spliced data packets corresponding to multiple first communication links in the optical fiber data can be accurately identified, and restored to the corresponding first communication links through the data processing module Data formats that can be transmitted.
  • the Receiver DePackage (RxDePkg for short) module can parse the identification information in the spliced data packet, and determine the network cable link corresponding to the spliced data packet through the acquisition and analysis of the identification information. In this way, the network port relationship mapping can also be done at the signal receiving end, otherwise the signal receiving end cannot confirm which network port the currently received data packet belongs to. According to an 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 a network cable link and the second communication link is an optical fiber link as an example for description.
  • FIG. 8 is a schematic diagram of a data transmission method at the receiving end according to an optional embodiment of the present invention, as shown in FIG. 8 :
  • the RxDePkg module is responsible for parsing the data packets of 10 network ports from the optical fiber data. Since the TX side sends data packets according to the polling processing mechanism, the RX side also parses according to the polling processing mechanism. After the data is parsed, it is distributed to each network port number according to the Network cable data processing module.
  • the RxRePkg module is responsible for completing the network packet reassembly. Since the input data is 64bit and the network cable output is 8bit, it is necessary to convert the 64bit data into 8bit data output.
  • a 64-bit input and 8-bit output cache are used here to implement bit-width conversion. Note that the cache is processed in big-endian mode when doing bit-width conversion, that is, the high bits are output first, and the low bits are output later.
  • the specific processing method is to start reorganizing the data packet header SFD locally when the cache is not empty, and start reading the cached data after the reorganization of the data packet header, reading 8 bits each time, until the cache is empty, pull down the read enable, and indicate the current All the data packets have been read, so that the data information of the network cable that is completely consistent with that before the fiber conversion at the Tx end can be obtained, so as to directly drive the transmission logic of the rear-level network port.
  • data polling scheduling and multi-channel arbitration are adopted, which not only improves bandwidth utilization, increases load area, and reduces customer usage costs; but also increases system portability and flexibility. Extensibility.
  • FIG. 9 is a structural block diagram of the first data transmission apparatus according to the second embodiment of the present invention.
  • the data transmission The apparatus 900 includes: an acquisition module 902 , a splicing module 904 and a first transmission module 906 .
  • the signal processing device 900 will be specifically described below.
  • an obtaining module 902 configured to obtain a plurality of data packets, wherein the plurality of data packets are transmitted by the first communication link;
  • the splicing module 904 connected to the above-mentioned obtaining module 902, is used for splicing a plurality of data packets to obtain a splicing data packet, wherein the size of the splicing data packet is equal to the second bit width of the second communication link;
  • the first transmission module 906 is connected to the above-mentioned splicing module 904, and is used for transmitting the spliced data packet through the second communication link.
  • the above acquisition module 902, the splicing module 904 and the first transmission module 906 correspond to steps S102 to S106 in Embodiment 1, and the three modules have the same examples and application scenarios as the corresponding steps. , but not limited to the content disclosed in Example 1 above.
  • FIG. 10 is a structural block diagram of the second data transmission apparatus according to Embodiment 3 of the present invention. As shown in FIG. 10 , the data transmission The apparatus 1000 includes: a receiving module 1002 , a splitting module 1004 and a second transmitting module 1006 . The data transmission apparatus 1000 will be described in detail below.
  • a receiving module 1002 configured to receive the spliced data packet transmitted by the second communication link, wherein the size of the spliced data packet is equal to the second bit width of the second communication link;
  • the splitting module 1004 connected to the above-mentioned receiving module 1002, is used for splitting the spliced data packets 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 size of the first communication link. bit width;
  • the second transmission module 1006 connected to the above-mentioned splitting module 1004, is used for transmitting a plurality of data packets over the first communication link.
  • receiving module 1002 splitting module 1004 and second transmission module 1006 correspond to steps S202 to S206 in Embodiment 1, and the three modules and corresponding steps are implemented by the examples and application scenarios The same, but not limited to the content disclosed in Example 1 above.
  • FIG. 11 is a structural block diagram of a communication system provided according to 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, wherein the first processor is used to run a first program, wherein when the first program runs, any one of the above data transmission methods executed by the sending end device 1102 is executed;
  • the receiving end device 1104 is connected to the sending end device 1102 through a communication link, and includes a second processor, wherein the second processor is used to run a second program, wherein the second program executes the execution of the receiving end device 1104 when running. Any of the above data transmission methods.
  • a storage medium is also provided.
  • the above-mentioned storage medium may be used to store the program code executed by the data transmission method provided in the above-mentioned Embodiment 1.
  • the above-mentioned storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
  • the storage medium is configured to store program codes for performing the following steps: acquiring a plurality of data packets, wherein the plurality of data packets are transmitted by the first communication link; storing the plurality of data packets The packets are spliced 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; the spliced data packet is transmitted through the second communication link.
  • the storage medium is further configured to store program codes for performing the following steps: splicing multiple data packets to obtain a spliced data packet, including: splicing multiple data packets in the same first communication link.
  • the data packets are spliced to obtain a spliced data packet.
  • the storage medium is further configured to store program codes for performing the following steps: transmitting the spliced data packet through the second communication link, including: polling and reading a plurality of the same first communication The spliced data packets obtained by splicing on the link are transmitted on the second communication link.
  • the storage medium is further configured to store program codes for performing the following steps: splicing multiple data packets in the same first communication link to obtain spliced data packets, including: obtaining first identification information, wherein the first identification information is used to identify the same first communication link; the interval between the first predetermined data packet and the second predetermined data packet in the plurality of data packets in the same first communication link inserting the first identification information; and splicing a plurality of data packets into which the first identification information is inserted at the interval between the first predetermined data packet and the second predetermined data packet, to obtain a concatenated data packet.
  • the storage medium is further configured to store program codes for performing the following steps: splicing multiple data packets to obtain a spliced data packet, including: splicing multiple data packets from different first communication links The data packets are spliced to obtain spliced data packets.
  • the storage medium is further configured to store program codes for performing the following steps: splicing multiple data packets of different first communication links to obtain spliced data packets, including: polling and reading Taking data packets on a plurality of different first communication links; and splicing the data packets read from the plurality of different first communication links to obtain a spliced data packet.
  • the storage medium is further configured to store program codes for performing the following steps: splicing data packets read from multiple different first communication links to obtain spliced data packets, including: : obtain the second identification information, wherein the second identification information includes: the starting communication link identification corresponding to the starting data packet in the read data packet, and the ending communication link identification corresponding to the ending data packet; the second identification The information is inserted at the interval between the third predetermined data packet and the fourth predetermined data packet in the read data packet; after the second identification information is inserted in the interval between the third predetermined data packet and the fourth predetermined data packet , splicing the read data packets to obtain the splicing data packets.
  • the storage medium is further configured to store program codes for executing the following steps: the first communication link includes a network cable link, and the second communication link includes an optical fiber link.
  • the storage medium is further configured to store program codes for performing the following steps: receiving a concatenated data packet transmitted by the second communication link, wherein the size of the concatenated data packet is equal to the size of the second communication chain splitting the spliced data packets to obtain multiple data packets, wherein the size of each data packet in the multiple data packets is equal to the first bit width of the first communication link; dividing the multiple data packets The packet is transmitted over the first communication link.
  • the storage medium is further configured to store program codes for performing the following steps: transmitting multiple data packets over the first communication link, including: storing multiple data packets in the same first communication link transmitted over the communication link.
  • the storage medium is configured to store program codes for performing the following steps: transmitting multiple data packets on the same first communication link, including: splitting the multiple concatenated data packets respectively The obtained multiple data packets are distributed to the corresponding same first communication link by polling, and are transmitted on the corresponding same first communication link.
  • the storage medium is further configured to store program codes for performing the following steps: 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 the predetermined splicing data packet in the multiple splicing data packets; according to the first identification information, polling and distributing the multiple data packets obtained by splitting the multiple splicing data packets to the corresponding same first communication link communication link.
  • the storage medium is further configured to store program codes for performing the following steps: transmitting multiple data packets over the first communication link, including: storing multiple data packets in different first communication links. transmitted over a communication link.
  • the storage medium is further configured to store program codes for performing the following steps: transmitting multiple data packets on different first communication links, including: sending multiple data packets to multiple first communication links.
  • the communication link polls the way of distributing data packets, and distributes multiple data packets to different first communication links and transmits them on different first communication links.
  • Embodiments of the present invention may provide a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group.
  • the above-mentioned computer terminal may also be replaced by a terminal device such as a mobile terminal.
  • the above-mentioned computer terminal may be located in at least one network device among multiple network devices of a computer network.
  • the above-mentioned computer terminal may execute the program code of the following steps in the signal processing method of the application program: acquiring a plurality of data packets, wherein the plurality of data packets are transmitted by the first communication link; Splicing 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; the spliced data packet is transmitted through the second communication link.
  • FIG. 12 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • the computer terminal may include: one or more (only one is shown in the figure) processor 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 software programs and modules stored in the memory by running the software programs and modules. Functional application and data processing, that is, to realize the above-mentioned IoT test method.
  • 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.
  • the memory may further include memory located remotely from the processor, the remote memory being connectable to the computer terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the processor can call the information and the application program stored in the memory through the transmission device to perform the following steps: obtain a plurality of data packets, wherein the plurality of data packets are transmitted by the first communication link; splicing the plurality of data packets to obtain The spliced data packet, wherein the size of the spliced data packet is equal to the second bit width of the second communication link; the spliced data packet is transmitted through the second communication link.
  • the above-mentioned processor may also execute the program code of the following steps: splicing a plurality of data packets to obtain a spliced data packet, including: splicing a plurality of data packets in the same first communication link to obtain a spliced data packet .
  • the above-mentioned processor may also execute the program code of the following steps: transmitting the spliced data packets through the second communication link, including: polling and reading a plurality of spliced data packets obtained by splicing on the same first communication link, and transmitted over the second communication link.
  • the above-mentioned processor may also execute the program code of the following steps: splicing multiple data packets in the same first communication link to obtain a spliced data packet, including: acquiring first identification information, wherein the first identification The information is used to identify the same first communication link; the first identification information is inserted at the interval between the first predetermined data packet and the second predetermined data packet in the plurality of data packets in the same first communication link; A plurality of data packets with the first identification information inserted at an interval between a predetermined data packet and a second predetermined data packet are spliced to obtain a spliced data packet.
  • the processor may also execute the program code of the following steps: splicing multiple data packets to obtain a spliced data packet, including: splicing multiple data packets of different first communication links to obtain a spliced data packet.
  • the above-mentioned processor may also execute the program code of the following steps: splicing a plurality of data packets of different first communication links to obtain a spliced data packet, including: polling and reading a plurality of different first communication links The data packets on the device; the data packets read from multiple different first communication links are spliced to obtain the spliced data packets.
  • the above-mentioned processor may also execute the program code of the following steps: splicing data packets read from multiple different first communication links to obtain spliced data packets, including: obtaining second identification information, wherein the first The second identification information includes: the starting communication link identification corresponding to the starting data packet in the read data packet, and the ending communication link identification corresponding to the ending data packet; inserting the second identification information into the read data packet, the third at the interval between the predetermined data packet and the fourth predetermined data packet; after inserting the second identification information at the interval between the third predetermined data packet and the fourth predetermined data packet, splicing the read data packet, Get concatenated packets.
  • the above-mentioned processor may further execute the program code of the following steps: the first communication link includes a network cable link, and the second communication link includes an optical fiber link.
  • the processor can call the information and the application program stored in the memory through the transmission device to perform the following steps: receive the spliced data packet transmitted by the second communication link, wherein the size of the spliced data packet is equal to the second bit of the second communication link. width; split the concatenated data packets to obtain a plurality of data packets, wherein the size of each data packet in the plurality of data packets is equal to the width of the first bit of the first communication link; link transmission.
  • the above-mentioned processor may further execute the program code of the following steps: transmitting multiple data packets over the first communication link, including: transmitting multiple data packets over the same first communication link.
  • the above-mentioned processor may also execute the program code of the following steps: transmitting multiple data packets on the same first communication link, including: polling multiple data packets obtained by splitting multiple spliced data packets respectively. Distributed to the corresponding same first communication link, and transmitted on the corresponding same first communication link.
  • the above-mentioned processor may also execute the program code of the following steps: splitting a plurality of splicing data packets respectively to obtain first identification information, wherein the first identification information is used to identify the predetermined splicing data in the multiple splicing data packets.
  • the above-mentioned processor may further execute the program code of the following steps: transmitting multiple data packets over the first communication link, including: transmitting multiple data packets over different first communication links.
  • the above-mentioned processor may also execute the program code of the following steps: transmitting a plurality of data packets on different first communication links, including: by polling and distributing the data packets to the plurality of first communication links. , multiple data packets are distributed to different first communication links and transmitted on different first communication links.
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

本发明公开了一种数据传输方法、装置、通信系统、存储介质和处理器。其中,该方法包括:获取多个数据包,其中,多个数据包由第一通信链路进行传输;将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;将拼接数据包通过第二通信链路传输。本发明解决了相关技术中如何突破链路转换的极限,使得链路传输性能最大化的技术问题。

Description

数据传输方法、装置、通信系统、存储介质和处理器 技术领域
本发明涉及数据传输领域,具体而言,涉及一种数据传输方法、装置、通信系统、存储介质和处理器。
背景技术
在数据传输的过程中,由于传输环境改变,有时可能需要转换为传输速率更高的传输链路进行传输。例如,由普通网线链路转换为光纤链路,从而实现传输距离长,传输速度快的传输。但相关技术中,在进行链路转换时,仅简单地将光纤接口与网线接口依据位宽比例进行转换,但这样的转换方式会出现光纤链路的带宽的浪费。因此,如何突破链路转换的极限,使得链路传输性能最大化,是目前亟待解决的技术问题。
针对上述的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种数据传输方法、装置、通信系统、存储介质和处理器,以至少解决相关技术中如何突破链路转换的极限,使得链路传输性能最大化的技术问题。
根据本发明实施例的一个方面,提供了一种数据传输方法,包括:获取多个数据包,其中,所述多个数据包由第一通信链路进行传输;将所述多个数据包拼接,得到拼接数据包,其中,所述拼接数据包的大小等于第二通信链路的第二位宽;将所述拼接数据包通过所述第二通信链路传输。
可选地,将所述多个数据包拼接,得到拼接数据包,包括:将同一第一通信链路中的多个数据包进行拼接,得到所述拼接数据包。
可选地,将所述拼接数据包通过所述第二通信链路传输,包括:轮询读取多个同一第一通信链路上拼接得到的拼接数据包,并在所述第二通信链路传输。
可选地,将同一第一通信链路中的多个数据包进行拼接,得到所述拼接数据包,包括:获取第一标识信息,其中,所述第一标识信息用于标识所述同一第一通信链路;在所述同一第一通信链路中的多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入所述第一标识信息;对在所述第一预定数据包和所述第二预定数据包之间的间隔处插入了所述第一标识信息的多个数据包进行拼接,得到所述拼接数据包。
可选地,将所述多个数据包拼接,得到拼接数据包,包括:将不同第一通信链路的多个数据包进行拼接,得到所述拼接数据包。
可选地,将不同第一通信链路的多个数据包进行拼接,得到所述拼接数据包,包括:轮询读取多个不同第一通信链路上的数据包;将从所述多个不同第一通信链路读取的数据包进行拼接,得到所述拼接数据包。
可选地,将从所述多个不同第一通信链路读取的数据包进行拼接,得到所述拼接数据包,包括:获取第二标识信息,其中,所述第二标识信息包括:读取的数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;将所述第二标识信息插入读取的所述数据包中第三预定数据包和第四预定数据包之间的间隔处;对在所述第三预定数据包和所述第四预定数据包之间的间隔处插入了所述第二标识信息后,对读取的数据包进行拼接,得到所述拼接数据包。
可选地,所述第一通信链路包括:网线链路,所述第二通信链路包括:光纤链路。
根据本发明实施例的另一个方面,提供了一种数据传输方法,包括:接收第二通信链路传输的拼接数据包,其中,所述拼接数据包的大小等于所述第二通信链路的第二位宽;对所述拼接数据包进行拆分,得到多个数据包,其中,所述多个数据包中每个数据包的大小等于第一通信链路的第一位宽;将所述多个数据包在所述第一通信链路传输。
可选地,将所述多个数据包在所述第一通信链路传输,包括:将所述多个数据包在同一第一通信链路上传输。
可选地,将所述多个数据包在同一第一通信链路上传输,包括:将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,并在所述对应的同一第一通信链路传输。
可选地,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,包括:将多个拼接数据包分别拆分,得到第一标识信息,其中,所述第一标识信息用于标识所述多个拼接数据包中预定拼接数据包对应的同一第一通信链路;根据所述第一标识信息,将所述多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路。
可选地,将所述多个数据包在所述第一通信链路传输,包括:将所述多个数据包在不同的第一通信链路上传输。
可选地,将所述多个数据包在不同的第一通信链路上传输包括:通过向所述多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路, 并在所述不同的第一通信链路上传输。
可选地,通过向所述多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路,包括:获取第二标识信息,其中,所述第二标识信息包括:所述多个数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;根据所述第二标识信息,通过向所述多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路。
可选地,所述第一通信链路包括:网线链路,所述第二通信链路包括:光纤链路。
根据本发明实施例的又一个方面,提供了一种数据传输装置,包括:获取模块,用于获取多个数据包,其中,所述多个数据包由第一通信链路进行传输;拼接模块,用于将所述多个数据包拼接,得到拼接数据包,其中,所述拼接数据包的大小等于第二通信链路的第二位宽;第一传输模块,用于将所述拼接数据包通过所述第二通信链路传输。
根据本发明实施例的再一个方面,还提供了一种数据传输装置,包括:接收模块,用于接收第二通信链路传输的拼接数据包,其中,所述拼接数据包的大小等于所述第二通信链路的第二位宽;拆分模块,用于对所述拼接数据包进行拆分,得到多个数据包,其中,所述多个数据包中每个数据包的大小等于第一通信链路的第一位宽;第二传输模块,用于将所述多个数据包在所述第一通信链路传输。
根据本发明实施例的再一个方面,还提供了一种通信系统,包括发送端设备和接收端设备,所述发送端设备包括第一处理器,所述接收端设备包括第二处理器,其中,所述第一处理器用于运行第一程序,其中,所述第一程序运行时执行所述发送端设备所执行的上述任一项所述数据传输方法,所述第二处理器用于运行第二程序,其中,所述第二程序运行时执行所述接收端设备所执行的上述任一项所述数据传输方法。
根据本发明实施例的再一个方面,还提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行上述任意一项所述数据传输方法。
根据本发明实施例的再一个方面,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述任意一项所述数据传输方法。
在本发明实施例中,采用获取由第一通信链路进行传输的多个数据包的方式,通过将多个数据包拼接,得到大小等于第二通信链路的第二位宽的拼接数据包,并将拼接数据包通过第二通信链路进行传输。由于拼接数据包可以以符合第二通信链路最大传输带宽的方式传输,达到了有效避免通信链路的传输带宽浪费的目的,从而实现了最大化通信链路的传输性能的技术效果,进而解决了相关技术中如何突破链路转换的 极限,使得链路传输性能最大化技术问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例1提供的数据传输方法一的流程图;
图2是根据本发明实施例提供的数据传输方法二的流程图;
图3是本发明可选实施方式中引用的LED控制领域的网线传输数据示意图;
图4是本发明可选实施方式中引用的LED控制领域的光纤-网线转换图;
图5是相关技术中光纤位宽对应网线位宽分配的示意图;
图6是根据本发明可选实施方式的输入端数据传输方法示意图;
图7是根据本发明可选实施方式的轮询机制示意图;
图8是根据本发明可选实施方式的接收端数据传输方法示意图;
图9是根据本发明实施例2提供的数据传输装置一的结构框图;
图10是根据本发明实施例3提供的数据传输装置二的结构框图;
图11是根据本发明实施例4提供的通信系统的结构框图;
图12是根据本发明实施例的一种计算机终端的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在 这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本发明实施例,提供了一种数据传输的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
实施例1
图1是根据本发明实施例提供的数据传输方法一的流程图,如图1所示,该方法包括如下步骤:
步骤S102,获取多个数据包,其中,多个数据包由第一通信链路进行传输;
步骤S104,将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;
步骤S106,将拼接数据包通过第二通信链路传输。
通过上述步骤,采用获取由第一通信链路进行传输的多个数据包的方式,通过将多个数据包拼接,得到大小等于第二通信链路的第二位宽的拼接数据包,并将拼接数据包通过第二通信链路进行传输。由于拼接数据包可以以符合第二通信链路最大传输带宽的方式传输,达到了有效避免通信链路的传输带宽浪费的目的,从而实现了最大化通信链路的传输性能的技术效果,进而解决了相关技术中如何突破链路转换的极限,使得链路传输性能最大化技术问题。
作为一种可选的实施例,由于可能需要对多个第一通信链路的多个数据包进行拼接,因此,在拼接的过程中,可以对从多个第一通信链路读取的多个数据包进行存储。另外,在第二通信链路采用轮询的方式传输拼接数据包时,也可以先对拼接后的多个数据包进行存储。相对于相关技术中,直接依据位宽来实现由第一通信链路到第二通信链路的转换而言,由于采用拼接以及轮询传输的处理方式,涉及对读取数据包或者拼接数据包的存储,因而需要对数据的存储方式进行相应扩展,例如,可以将缓存器的深度进行相应扩展,比如,原来用于缓存64比特数据的空间,扩展为深度为16的缓存空间,即扩展为16个64比特的空间。
作为一种可选的实施例,将多个数据包拼接,得到拼接数据包时,可以采用多种方式,例如,可以采用以下方式实现:将同一第一通信链路中的多个数据包进行拼接, 得到拼接数据包。通过将同一第一通信链路中的多个数据包进行拼接,得到大小等于第二通信链路的第二位宽的拼接数据包,使得拼接数据包可以以符合第二通信链路最大传输带宽的方式进行传输。
作为一种可选的实施例,上述方法的应用场景可以是第一通信链路的传输带宽小于第二通信链路的传输带宽,即由传输带宽较小的通信链路转换为传输带宽较大的通信链路的场景。其中,上述第二通信链路可以匹配多个第一通信链路的传输,例如,匹配第一通信链路的数量至少大于第二通信链路的位宽与第一通信链路的位宽之比,通过上述拼接处理,在第二通信链路中进行传输的时候可以完全使用第二通信链路的带宽,不会出现第二通信链路在传输数据的过程中部分带宽资源浪费的问题。
举例而言,当第一通信链路的位宽为8bit,而第二通信链路的位宽为64bit时,将同一第一通信链路的8个位宽为8bit的数据包进行拼接,得到一个长度为64bit的拼接数据包。假设第一通信链路的带宽为1Gbps,第二通信链路的带宽为10Gbps。在对第一通信链路的数据包进行拼接后,对多个第一通信链路进行轮询读取拼接数据包,之后,在第二通信链路进行传输。这样,在1s的时间内,在10个第一通信链路上传输了10G的数据,在1个第二通信链路上也传输了10G的数据。相当于,在1s的第一个十分之一的时间内可以传第一个第一通信链路的1G数据,在1s的第二个十分之一的时间内可以传第二个第一通信链路的1G的数据,在1s的第三个十分之一的时间内可以传第三个第一通信链路的1G的数据,……,一直这样轮询下去,在1s的第十个十分之一的时间内可以传第十个第一通信链路的1G的数据,最终在1s内就刚好传完10个第一通信链路在1s内的数据。因此,一个第二通信链路就可以实现10个第一通信链路的数据传输。相对于相关技术中,依据位宽的对应关系来实现第一通信链路和第二通信链路的转换时,第二通信链路仅能满足8个第一通信链路的数据传输而言,有效地使用了第二通信链路的传输资源,进而使得第二通信链路以最大传输带宽的方式进行传输,实现通信链路的传输性能最大化。
作为一种可选的实施例,在将多个同一第一通信链路中的多个数据包进行拼接,得到拼接数据包时,对于多个第一通信链路中的每个第一通信链路,对该第一通信链路中传输的多个数据包进行拼接得到拼接数据包,这样多个第一通信链路中的每个第一通信链路都分别有多个拼接数据包。举例而言,如上,多个第一通信链路为10条:第一通信链路1,第一通信链路2,第一通信链路3,……,第一通信链路10。则这10条第一通信链路上均分别拼接有多个拼接数据包。在将拼接数据包通过第二通信链路传输时,可以轮询读取多个同一第一通信链路上拼接得到的拼接数据包,并在第二通信链路传输。在同一个通信链路上轮询读取的拼接数据包的个数可以依据具体情况,灵活选择。例如,对于上述10条第一通信链路,可以采用以下轮询方式(每个第一通信链路读取一个拼接数据包):依次从第一通信链路1读取一个拼接数据包,从第一通 信链路2读取一个拼接数据包,从第一通信链路3读取一个拼接数据包,……,从第一通信链路10读取一个拼接数据包;继续从第一通信链路1读取一个拼接数据包,从第一通信链路2读取一个拼接数据包,从第一通信链路3读取一个拼接数据包,……,从第一通信链路10读取一个拼接数据包,直到数据传输结束。又例如,对于上述10条第一通信链路,也可以采用以下轮询方式(每个第一通信链路读取两个拼接数据包):依次从第一通信链路1读取两个拼接数据包,从第一通信链路2读取两个拼接数据包,从第一通信链路3读取两个拼接数据包,……,从第一通信链路5读取两个拼接数据包;从第一通信链路6读取两个拼接数据包,从第一通信链路7读取两个拼接数据包,……,从第一通信链路10读取两个拼接数据包;继续从第一通信链路1读取两个拼接数据包,从第一通信链路2读取两个拼接数据包,从第一通信链路3读取两个拼接数据包,……,直到数据传输结束。需要说明的是,一次从第一通信链路读取的拼接数据包的个数不限于上述的一个,两个,上述的一个,两个仅仅为一种举例。
需要说明的是,不管上述采用在一个第一通信链路中读取一个拼接数据包,还是在一个第一通信链路中读取两个拼接数据包,只要满足第二传输链路的带宽与第一传输链路的带宽是匹配,就可以实现第二传输链路带宽利用的最大化。
由于传输带宽为位宽*频率,因此,在将第二传输链路的带宽与第一传输链路的带宽匹配时,可以依据第二传输链路的物理位宽来确定拼接数据包的大小。例如,当第二传输链路的位宽为64比特时,在第一传输链路上拼接的数据包的大小即可以为64比特,此时满足第一传输链路与第二传输链路的带宽匹配要求;当第二传输链路的位宽为32比特时,在第一传输链路上拼接的数据包的大小即可以为32比特,此时相对于位宽为64比特的情况,只需要将频率对应地提高一倍,从而满足第一传输链路与第二传输链路的带宽匹配要求;当第二传输链路的位宽为16比特时,在第一传输链路上拼接的数据包的大小即可以为16比特,此时相对于位宽为64比特的情况,只需要将频率对应地提高三倍(即频率是原来的四倍),从而满足第一传输链路与第二传输链路的带宽匹配要求;继续缩小第二传输链路的位宽为8比特,在第一传输链路上拼接的数据包的大小则可以直接为8比特(相对于对数据不进行拼接),此时相对于位宽为64比特的情况,只需要将频率对应地提高七倍(即频率是原来的八倍),从而满足第一传输链路与第二传输链路的带宽匹配要求。
需要指出的是,上述第二传输链路的带宽与第一传输链路的带宽匹配的情景仅仅为一种举例,具体操作时,可以结合具体拼接的复杂度,以及频率提高对性能的影响,而灵活依据第二传输链路的位宽确定拼接数据包的大小,进而使得第二通信链路以最大传输带宽的方式进行传输,实现通信链路的传输性能最大化。
通常,第一通信链路的带宽要远远小于第二通信链路,因此,采用将多个第一通 信链路的数据包进行拼接后得到多个拼接数据包,多个拼接数据包可以以符合第二通信链路最大传输带宽的方式在第二通信链路进行传输,最大化利用第二通信链路的带宽资源。
作为一种可选的实施方式,将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包时,将同一第一通信链路的数据包进行拼接,得到位宽等于第二通信链路位宽的拼接数据包;在对多个第一通信链路进行相同操作,针对多个第一通信链路中每个第一通信链路均得到多个拼接数据包;之后,轮询读取多个第一通信链路的拼接数据包,将多个拼接数据包轮询通过第二通信链路进行传输。在采用上述拼接和传输时,上述第一通信链路的数量可以根据第一通信链路和第二通信链路的带宽确定,例如,当第一通信链路的带宽是第二通信链路的1/n时,第一通信链路的数量可以为n,这样轮询一次时,所有的第一通信链路均读取了一次拼接数据包,操作起来简单,直观,对拼接数据包的标记也相对来说较为容易。
作为一种可选的实施方式,将轮询读取的拼接数据包通过第二通信链路发送时,即发送多个第一通信链路的拼接数据包的方式为轮询读取并发送的方式,为对从多个第一通信链路读取的拼接数据包进行区分,可以在拼接数据包中嵌入对应的第一通信链路标识信息,方便在后续的数据传输与读取解析的过程中,可以正确地将不同的拼接数据包发送给与其对应的第一通信链路。例如,可以根据预定的标识规则,对第一通信链路的待传输的数据包进行预处理,实现对该第一通信链路的标识,具体的标识方式可以包括多种,在此不做限定。需要说明的是,由于对第一通信链路的拼接数据包的读取是采用轮询的方式,即在读取拼接数据包时就存在一定的规则,因此,在对第一通信链路进行标识时,并不需要对每个第一通信链路进行标识。例如,对于多个第一通信链路,只要知道其中一个第一通信链路所对应的拼接数据包,就可以根据轮询规则获知其它第一通信链路所对应的拼接数据包。举例来说,在上述10个第一通信链路上分别均得到有一个拼接数据包,轮询的方法是从第一个第一通信链路开始读取拼接数据包,接着从第二个第一通信链路读取拼接数据包,……,这样一直到从第十个第一通信链路读取拼接数据包。比如,只要对第一拼接数据包属于第一个第一通信链路进行标识,那么根据轮询规则,第二拼接数据包则必然属于第二个第一通信链路的,因而不用再对第二拼接数据包进行标识,其它的拼接数据包也基于相同的原理,可以不再进行标识。当然,考虑实际需求,也可以采用简单方便的处理方式对每个拼接数据包均进行标识处理。
作为一种可选的实施方式,将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包时,如果该拼接数据包属于要标识的拼接数据包,则可以通过如下方式实现:获取第一标识信息,其中,第一标识信息用于标识同一第一通信链路;在同一第一通信链路中的多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入第 一标识信息;对在第一预定数据包和第二预定数据包之间的间隔处插入了第一标识信息的多个数据包进行拼接,得到拼接数据包。在该用于得到拼接数据包的多个数据包中的两个预定数据包之间的间隔处插入该第一标识信息,由于数据包与数据包之间的间隔也属于空闲的资源,采用这部分空闲的资源来传输该第一标识信息,一方面能够提高资源的利用率,另一方面,也不影响数据包的传输与拼接。
作为一种可选的实施方式,为区分第一通信链路上传输的多个数据包,可以对第一位宽的第一通信链路上传输的多个数据包进行标识;对进行标识后的多个数据包进行拼接,得到拼接数据包。与上述对多个拼接数据包嵌入标识信息的方法类似,也可以将第一通信链路上传输的多个数据包进行标识,并将标识后的数据包进行拼接。例如,可以根据预定的标识规则,对第一通信链路的数据进行预处理,采用统一的预定格式对数据包进行标识,具体的标识方式可以包括多种,在此不做限定。
需要说明的是,对于多个不同的第一通信链路,可以根据相同的标识规则对在各第一通信链路中传输的数据包进行标识。由于对应不同第一通信链路的拼接数据包的输出数据处理方式可以是一致的,所以对应不同第一通信链路的拼接数据包的输出数据格式也可以是一致的。因而,通过上述处理可以保证第一通信链路输出的数据的格式的一致性,不需要第二通信链路根据不同的第一通信链路进行数据处理,第二通信链路只需要根据时钟发送数据即可。
作为一种可选的实施方式,对第一位宽的第一通信链路上传输的多个数据包进行标识时,可以采用以下方式:将第一位宽的第一通信链路上传输的多个数据转换为预定格式,其中,预定格式包括以下之一:上升沿、有效数据、下降沿;由于拼接数据包中所包括的多个数据包均采用了上述统一的预定格式,因此,在轮询读取的拼接数据包中插入对应的第一通信链路的第一标识信息时,多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入上述第一标识信息即可以是:在该第一预定数据包的下降沿与第二预定数据包的上升沿之间的间隔处插入该第一标识信息。
通过对数据包的预处理,可以将第一通信链路上的原始数据包转换为包括统一预定格式的数据包,该统一预定格式包括:上升沿、有效数据、下降沿。需要说明的是,上述预定格式中的上升沿和下降沿与跟随拼接数据包的边沿信息(即上处所指的间隔处的标识信息)功能上并不相同。上述预定格式中的上升沿与下降沿用于标识第一通信链路上传输的多个数据包,通过预定的数据转换规则,将数据包转换为至少包括上升沿、有效数据、下降沿的格式,当之后对数据进行解析的时候,可以通过上升沿和/或下降沿对不同数据包的有效数据进行区分,达到正确解析第一通信链路的数据包中的有效数据的作用。而上述边沿信息为拼接数据包中嵌入的对应第一通信链路的标识信息,用以标识上述拼接数据包对应的第一通信链路,当对数据进行解析的时候,通 过对边沿信息的解析,可以有效区分不同拼接数据包对应的不同的第一通信链路。
作为一种可选的实施例,将第一通信链路上的多个数据包拼接,得到拼接数据包还可以采用以下方式:将不同第一通信链路的多个数据包进行拼接,得到拼接数据包。例如,可以是轮询读取多个不同第一通信链路上的数据包;将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包。比如,对于多个第一通信链路,从每条第一通信链路中轮询读取预定数量的数据包,然后根据第一通信链路和第二通信链路的位宽关系,将获取的数据包进行拼接得到位宽等于第二通信链路位宽的拼接数据包,并在第二通信链路中传输。
举例而言,当第一通信链路的位宽为8bit,而第二通信链路的位宽为64bit时,将不同第一通信链路的8个位宽为8bit的数据包进行拼接,得到一个长度为64bit的拼接数据包。假设第一通信链路的带宽为1Gbps,第二通信链路的带宽为10Gbps。在对从多个第一通信链路轮询读取的数据包进行拼接后,在第二通信链路进行传输。例如,第二传输链路上传输的第一拼接包是采用从第1个第一通信链路至第8个第一通信链路上传输数据包进行拼接的,第二传输链路上传输的第二拼接包是采用从第9个第一通信链路至轮询第二次的第6个第一通信链路上传输数据包进行拼接的。这样,在1s的时间内,也在10个第一通信链路上传输了10G的数据,在1个第二通信链路上也传输了10G的数据。也相当于,一个第二通信链路就可以实现10个第一通信链路的数据传输。相对于相关技术中,依据位宽的对应关系来实现第一通信链路和第二通信链路的转换时,第二通信链路仅能满足8个第一通信链路的数据传输而言,有效地使用了第二通信链路的传输资源,进而使得第二通信链路以最大传输带宽的方式进行传输,实现通信链路的传输性能最大化。
需要说明的是,每次从一条第一通信链路读取的数据包的数量可以依据具体需求,灵活选择。例如,可以为一个或多个。举例而言,如上述多条第一通信链路为10条:第一通信链路1,第一通信链路2,第一通信链路3,……第一通信链路10,在拼接数据包时,可以采用以下方式拼接,得到需要的拼接数据包:可以依次从第一通信链路1中读取一个数据包,从第一通信链路2中读取一个数据包,从第一通信链路3中读取一个数据包,……,从第一通信链路8中读取一个数据包,对读取的数据包进行拼接,得到第一拼接数据包;之后继续从第一通信链路9中读取一个数据包,从第一通信链路10中读取一个数据包,从轮询第二次的第一通信链路1中读取一个数据包,……,从轮询第二次的第一通信链路6中读取一个数据包,对读取的数据包进行拼接,得到第二拼接数据包,……。也可以根据需要采用以下方式拼接,得到需要的拼接数据包:可以依次从第一通信链路1中读取两个数据包,从第一通信链路2中读取两个数据包,从第一通信链路3中读取两个数据包,从第一通信链路4中读取两个数据包,从而对读取的数据包进行拼接,得到第一拼接数据包;可以依次从第一通信 链路5中读取两个数据包,从第一通信链路6中读取两个数据包,从第一通信链路7中读取两个数据包,从第一通信链路8中读取两个数据包,从而对读取的数据包进行拼接,得到第二拼接数据包;可以依次从第一通信链路9中读取两个数据包,从第一通信链路10中读取两个数据包,从轮询第二次的第一通信链路1中读取两个数据包,从轮询第二次的第一通信链路2中读取两个数据包,从而对读取的数据包进行拼接,得到第三拼接数据包,……。需要说明的是,上述第一通信链路为10条,读取一个数据包,读取两个数据包均为举例,并不限于此。
另外,将不同第一通信链路的多个数据包进行拼接,得到拼接数据包时,该第一通信链路的数量可以依据第一通信链路的带宽和第二通信链路的带宽确定。
由于第一通信链路和第二通信链路的位宽比与带宽比不同,因此在同一时刻,参与传输数据的第一通信链路的数量和参与拼接数据包的第一通信链路的数量可以不同。例如,当第一通信链路和第二通信链路的位宽比为1:8,而带宽比为1:10时,通过本发明可选的实施例,可以同时支持十条第一通信链路参与将数据包通过第二通信链路传输,但是在将数据包拼接成拼接数据包的时候,在十条第一通信链路中轮询读取八条第一通信链路的单个数据包,并将上述八个数据包拼接为一个拼接数据包并在第二通信链路中传输。没有参与数据包拼接工作的两条第一通信链路的数据包会进入下一轮的数据包轮询读取,参与下一轮的数据包拼接工作,保证十条第一通信链路可以同时实时将数据发送给第二通信链路并在第二通信链路中传输。
作为一种可选的实施例,将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包时,为实现了区分不同的拼接数据包,也可以对拼接数据包进行标识。例如,可以采用以下方式实现:获取第二标识信息,其中,第二标识信息包括:读取的数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;将第二标识信息插入读取的数据包中第三预定数据包和第四预定数据包之间的间隔处;对在第三预定数据包和第四预定数据包之间的间隔处插入了第二标识信息后,对读取的数据包进行拼接,得到拼接数据包。由于拼接数据包所包括的数据包是从多个第一通信链路读取的,因此,对该拼接数据包进行标识时,可以直接采用拼接数据包中起始数据包对应的通信链路标识和结束数据包对应的通信链路标识来表示。基于上述第一标识信息类似的原理,由于从第一通信链路读取数据包是具有一定的轮询规则的,因此,并非每个拼接数据包均需要进行标识。只要知晓其中一个拼接数据包对应的第二标识信息,即可以知晓其它拼接数据包所包括的数据包来自哪些第一通信链路。具体如上述第一标识信息的说明,在此不再赘述。
需要说明的是,上述第一通信链路可以是网线链路,第二通信链路可以是光纤链路,当然也可以是其它需要转换的其它通信链路。上述数据传输方法一的实施例及可 选实施例主要从第一通信链路转换为第二通信链路的场景来说明的。下面数据传输方法二的实施例及可选实施则主要从第二通信链路对应地转换回第一通信链路的场景来说明。在之前的场景下说明过的相同原理或类似操作,在下面的场景中均可以应用,均不再赘述。
图2是根据本发明实施例提供的数据传输方法二的流程图,如图2所示,该方法包括如下步骤:
步骤S202,接收第二通信链路传输的拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;
步骤S204,对拼接数据包进行拆分,得到多个数据包,其中,多个数据包中每个数据包的大小等于第一通信链路的第一位宽;
步骤S206,将多个数据包在第一通信链路传输。
在本发明实施例中,采用接收拼接数据包的方式,通过对拼接数据包进行拆分,得到大小等于第一通信链路的第一位宽的多个数据包,并将多个数据包通过第一通信链路进行传输,由于拼接数据包可以以符合第二通信链路最大传输带宽的方式传输,达到了有效避免通信链路的传输带宽浪费的目的,从而实现了最大化通信链路的传输性能的技术效果,进而解决了相关技术中如何突破链路转换的极限,使得链路传输性能最大化技术问题。
作为一种可选的实施例,将多个数据包在第一通信链路传输包括:将多个数据包在同一第一通信链路上传输。在得到拼接数据包的数据包在发送端属于同一个第一通信链路的情况下,在接收到该拼接数据包后,将拼接数据包进行拆分后得到多个数据包,对应地将拆分得到的多个数据包在接收端的同一个第一通信链路上进行传输。
作为一种可选的实施例,在第一通信链路为多个的情况下,将多个数据包在同一第一通信链路上传输包括:将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,并在对应的同一第一通信链路传输。由于多个拼接数据包在发送端通过轮询多个第一通信链路得到,并且每个拼接数据包均是来自同一第一通信链路,因此,在接收到该多个拼接数据包时,分别对拼接数据包进行拆分后,将拆分后得到的数据包轮询分发到接收端对应的第一通信链路进行传输。
作为一种可选的实施例,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,可以依据标识信息,对多个拼接数据包进行区分。例如,可以以下方式实现:将多个拼接数据包分别拆分,得到第一标识信息,其中,第一标识信息用于标识多个拼接数据包中预定拼接数据包对应的同一第一通信链路;根据第一标识信息,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第 一通信链路。由于不是每个拼接数据包都携带有标识信息,因此,在获得携带有第一标识信息的拼接数据包后,可以依据该第一标识信息,以及从第一通信链路读取拼接数据包的轮询规则来确定其它拼接数据包所对应的第一通信链路。
作为一种可选的实施例,将多个数据包在第一通信链路传输可以采用以下方式:在第一通信链路为多个的情况下,将多个数据包在不同的第一通信链路上传输。例如,当第二通信链路中传输的拼接数据包中包括与多个第一通信链路对应的数据包时,可以将与多个第一通信链路对应的数据包分别发送给与之对应的第一通信链路并在其中传输。
作为一种可选的实施例,将多个数据包在不同的第一通信链路上传输时,包括:通过向多个第一通信链路轮询分发数据包的方式,将多个数据包分发给不同的第一通信链路,并在不同的第一通信链路上传输。当在第二通信链路上传输的拼接数据包是由多个第一通信链路的数据包按照一定的顺序拼接起来的时候,将拼接数据包分拆并发送给多个第一通信链路也可以遵循同样的规律。例如,当多个第一通信链路的数据包按照轮询的方式进行拼接的时候,将拼接数据包进行分拆得到多个数据包,可以按照拼接时的轮询顺序将多个数据包依次发送给与之对应的第一通信链路。
作为一种可选的实施例,通过向多个第一通信链路轮询分发数据包的方式,将多个数据包分发给不同的第一通信链路时,可以采用以下处理方式:获取第二标识信息,其中,第二标识信息包括:多个数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;根据第二标识信息,通过向多个第一通信链路轮询分发数据包的方式,将多个数据包分发给不同的第一通信链路。需要说明的是,上述第二标识信息也不是每个拼接数据包均需要携带的,也可以依据其中一个拼接数据包携带的对应的第二标识信息,来得到其它拼接数据包所对应的第一通信链路。
作为一种可选的实施例,上述第一通信链路可以包括:网线链路,上述第二通信链路可以包括:光纤链路。下面以第一通信链路为网线链路,第二通信链路为光纤链路为例,对本发明可选实施方式进行说明。
相关技术中,光纤链路的带宽远远大于网线链路的带宽,同时,光纤链路与网线链路的带宽比也大于光纤链路与网线链路的位宽比,因而,如若按照光纤链路与网线链路的位宽比分配光纤中的通道位宽,会造成光纤链路中的带宽资源的浪费。
图3是本发明可选实施方式中引用的LED控制领域的网线传输数据示意图。如图3所示,由于LED显示屏可能由多个屏体拼接而成,因而控制器对多块LED显示屏进行控制的时候,对应每一块LED显示屏都有一条网线负责信号传输。然而,当控制器端与显示屏端的距离过大时,有可能超出网线传输距离允许的范围,因而此时可以 使用满足远距离信号传输的需要的介质替换网线。相关技术中,通常的做法是用光纤来进行远距离的信号传输。
光纤的造价虽然远高于网线,但是光纤可以提供远大于网线的带宽。例如,使用带宽为10Gbps的光纤代替带宽为1Gbps的多个网线进行远程信号传输。图4是本发明可选实施方式中引用的LED控制领域的光纤-网线转换图。如图4所示,控制信号从控制器发出,通过光纤传输给光纤-网线转换器,经过转换的信号数据再通过多个网线发送给对应的LED显示屏。
一般来说,网口数据位宽为8bit,光纤数据位宽为64bit。图5是相关技术中光纤位宽对应网线位宽分配的示意图。如图5所示,相关技术中,使用光纤传输时,为了处理方便,通常的做法是将光纤的64bit数据位宽简单地拆分为8bit*8的模式,分别分配给8条网线联络,每条网线链路占据光纤位宽的八分之一。每条网线链路独立运行,以达到各自独立传输的目的。
但是,由于光纤链路与网线链路的带宽比大于光纤链路与网线链路的位宽比,因而,根据将光纤的数据位宽平均分配的方法,光纤中的链路有时会存在空余状态,这就会造成通信资源浪费。例如,光纤的数据带宽是10Gbps,而单网线的数据带宽是1Gbps。原本单光纤的数据传输能力可支持10个网线的数据传输,但是根据相关方法的分配机制,无法提升链路的带载性能。
图6是根据本发明可选实施方式的输入端数据传输方法示意图。如图6所示,通过编码转换,将网线1至网线10的数据按照一定的规则打包,同时传输给光纤链路,使得10条网线的数据可以同时通过1条光纤链路进行传输,实现了增大光纤链路带载能力的目的。
输出端预处理(Transmitter Pretreatment,简称TxPre)模块,负责对网口数据进行数据预处理。例如,可以将原始的网线链路中传输的数据包按照预定规则,转换为包括上升沿、有效数据、下降沿的数据格式并进行输出。根据本发明可选的实施方式,原始的网线链路中传输的数据中有包头,包头存在8bit,其中包括以太网帧起始界定码(Start Frame Delimiter,简称为SFD),其中,SFD(一个字节)与前导码(七个字节)用于同步发送端设备和接收端设备。帧的这前八个字节用于引起接收端设备的注意。其实质作用是告知接收端设备准备接收新帧。然而在光纤传输过程中,这些字节是不需要的,因此在输出端预处理的时候,可以将原始数据的包头去掉。
输出端数据打包处理(Transmitter Package,简称TxPkg)模块,负责将数据包的边沿信息和有效数据按照一定的规则打包,将每个通道的8bit位宽数据拼接为64bit位宽数据。TxPkg对10个通道的处理可以是一致的,因而最终处理之后的输出数据格 式也可以是一致的。
TxArbit模块,负责将10个网口的64bit数据轮询发送出去。因为处理后的网线拼接数据包的带宽与光纤带宽是完全匹配的,所以本模块不存在任何对时钟周期的浪费,也不需要在网口数据为无效数据的时候进行特殊处理,只需要按照每个时钟发送一个数据进行数据传输即可,传输的数据依次从前级的10个输出端数据打包处理模块TxPkg读取。
图7是根据本发明可选实施方式的轮询机制示意图。如图7所示,发送端的处理器会按照编号次序轮流询问各网口。网口作为发送端,需要告知后端上升沿、下降沿、有效数据三种包信息。但同一时刻,每一个网口只有一种包类型是有效的。由于64bit位宽带载的信息量足以表示上升沿、下降沿两种类型,因此在状态机轮询发送时,可以在64bit内嵌入网口编号信息,跟随边沿信息一并传输。
作为一种可选的实施方式,在对拼接数据包进行解析后,获取各个拼接数据包对应的第一通信链路的标识信息;将拼接数据包分发给与标识信息对应的第一通信链路。通过对拼接数据包对应的标识信息的解析,可以准确的将光纤数据中与多个第一通信链路对应的多个拼接数据包识别出来,通过数据处理模块还原为对应的第一通信链路可以传输的数据格式。
接收端数据解析处理(Receiver DePackage,简称RxDePkg)模块,可以解析拼接数据包中的标识信息,通过对标识信息的获取与解析,确定该拼接数据包对应的网线链路。通过这样的方式,也能在信号接收端做好网口关系映射,否则信号接收端无法确认当前接收数据包属于那个网口。而根据本发明的可选实施方式,可以通过拼接数据包中嵌入的边沿信息携带的网口编号获取该拼接数据包与网口的对应关系。
再以第一通信链路为网线链路,第二通信链路为光纤链路为例进行说明。图8是根据本发明可选实施方式的接收端数据传输方法示意图,如图8所示:
RxDePkg模块,负责从光纤数据中解析10个网口的数据包,由于TX端按照轮询处理机制发送数据包,因此RX端也是按照轮询处理机制解析,数据解析之后根据网口编号分发给各网线数据处理模块。
RxRePkg模块,负责完成网络数据包重组,由于输入数据是64bit,网线输出是8bit,因此需要将64bit数据转换为8bit数据输出。
此处使用了一个64bit输入,8bit输出的缓存实现位宽转换,注意缓存在做位宽转换时按照大端模式处理,即高位先输出,低位后输出。具体处理方式为缓存非空时开始在本地重组数据包头SFD,当数据包头重组结束之后开始读取缓存的数据,每次读取8bit,直至缓存读空则拉低读取使能,且表示当前数据包已经全部读取完成,这样 就可以得到和Tx端光纤转换之前完全一致的网线数据信息,从而直接驱动后级网口发送逻辑。
通过上述实施例及可选实施方式,采用数据轮询调度以及多通道仲裁的方式,不仅提升了带宽利用率,增大带载面积,降低客户使用成本;而且还可以增加系统可移植性、可扩展性。
实施例2
根据本发明实施例,还提供了一种用于实现上述数据传输方法一的装置,图9是根据本发明实施例2提供的数据传输装置一的结构框图,如图9所示,该数据传输装置900包括:获取模块902,拼接模块904和第一传输模块906。下面对该信号处理装置900进行具体说明。
获取模块902,用于获取多个数据包,其中,多个数据包由第一通信链路进行传输;
拼接模块904,连接于上述获取模块902,用于将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;
第一传输模块906,连接于上述拼接模块904,用于将拼接数据包通过第二通信链路传输。
此处需要说明的是,上述获取模块902,拼接模块904和第一传输模块906,对应于实施例1中的步骤S102至步骤S106,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。
实施例3
根据本发明实施例,还提供了一种用于实现上述数据传输方法二的装置,图10是根据本发明实施例3提供的数据传输装置二的结构框图,如图10所示,该数据传输装置1000包括:接收模块1002,拆分模块1004和第二传输模块1006。下面对该数据传输装置1000进行具体说明。
接收模块1002,用于接收第二通信链路传输的拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;
拆分模块1004,连接于上述接收模块1002,用于对拼接数据包进行拆分,得到多个数据包,其中,多个数据包中每个数据包的大小等于第一通信链路的第一位宽;
第二传输模块1006,连接于上述拆分模块1004,用于将多个数据包在第一通信链路传输。
此处需要说明的是,上述接收模块1002,拆分模块1004和第二传输模块1006,对应于实施例1中的步骤S202至步骤S206,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。
实施例4
图11是根据本发明实施例4提供的通信系统的结构框图。如图11所示,该通信系统1100包括:发送端设备1102,接收端设备1104。下面对该通信系统1100进行具体说明。
发送端设备1102,包括第一处理器,其中,第一处理器用于运行第一程序,其中,第一程序运行时执行该发送端设备1102所执行的上述任一项数据传输方法;
接收端设备1104,通过通信链路连接于发送端设备1102,包括第二处理器,其中,第二处理器用于运行第二程序,其中,第二程序运行时执行该接收端设备1104所执行的上述任一项数据传输方法。
实施例5
根据本发明实施例,还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例1所提供的数据传输方法所执行的程序代码。
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:获取多个数据包,其中,多个数据包由第一通信链路进行传输;将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;将拼接数据包通过第二通信链路传输。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个数据包拼接,得到拼接数据包,包括:将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将拼接数据包通过第二通信链路传输,包括:轮询读取多个同一第一通信链路上拼接得到的拼接数据包,并在第二通信链路传输。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包,包括:获取第一标识信息,其中,第一标识信息用于标识同一第一通信链路;在同一第一通信链路中的 多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入第一标识信息;对在第一预定数据包和第二预定数据包之间的间隔处插入了第一标识信息的多个数据包进行拼接,得到拼接数据包。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个数据包拼接,得到拼接数据包,包括:将不同第一通信链路的多个数据包进行拼接,得到拼接数据包。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:不同第一通信链路的多个数据包进行拼接,得到拼接数据包,包括:轮询读取多个不同第一通信链路上的数据包;将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包,包括:获取第二标识信息,其中,第二标识信息包括:读取的数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;将第二标识信息插入读取的数据包中第三预定数据包和第四预定数据包之间的间隔处;对在第三预定数据包和第四预定数据包之间的间隔处插入了第二标识信息后,对读取的数据包进行拼接,得到拼接数据包。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:第一通信链路包括:网线链路,第二通信链路包括:光纤链路。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:接收第二通信链路传输的拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;对拼接数据包进行拆分,得到多个数据包,其中,多个数据包中每个数据包的大小等于第一通信链路的第一位宽;将多个数据包在第一通信链路传输。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个数据包在第一通信链路传输,包括:将多个数据包在同一第一通信链路上传输。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:将多个数据包在同一第一通信链路上传输,包括:将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,并在对应的同一第一通信链路传输。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个拼接数据包分别拆分,得到第一标识信息,其中,第一标识信息用于标识多个拼接数据包中预定拼接数据包对应的同一第一通信链路;根据第一标识信息,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个数据包在第一通信链路传输,包括:将多个数据包在不同的第一通信链路上传输。
可选地,在本实施例中,存储介质还被设置为存储用于执行以下步骤的程序代码:将多个数据包在不同的第一通信链路上传输,包括:通过向多个第一通信链路轮询分发数据包的方式,将多个数据包分发给不同的第一通信链路,并在不同的第一通信链路上传输。
实施例6
本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。
在本实施例中,上述计算机终端可以执行应用程序的信号处理方法中以下步骤的程序代码:获取多个数据包,其中,多个数据包由第一通信链路进行传输;将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;将拼接数据包通过第二通信链路传输。
可选地,图12是根据本发明实施例的一种计算机终端的结构框图。如图12所示,该计算机终端可以包括:一个或多个(图中仅示出一个)处理器1202、存储器1204等。
其中,存储器1204可用于存储软件程序以及模块,如本发明实施例中的信号处理方法和装置对应的程序指令/模块,处理器1202通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的物联网测试方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:获取多个数据包,其中,多个数据包由第一通信链路进行传输;将多个数据包拼接,得到拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;将拼接数据包通过第二通信链路传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包拼接,得到拼接数据包,包括:将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包。
可选的,上述处理器还可以执行如下步骤的程序代码:将拼接数据包通过第二通信链路传输,包括:轮询读取多个同一第一通信链路上拼接得到的拼接数据包,并在第二通信链路传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将同一第一通信链路中的多个数据包进行拼接,得到拼接数据包,包括:获取第一标识信息,其中,第一标识信息用于标识同一第一通信链路;在同一第一通信链路中的多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入第一标识信息;对在第一预定数据包和第二预定数据包之间的间隔处插入了第一标识信息的多个数据包进行拼接,得到拼接数据包。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包拼接,得到拼接数据包,包括:将不同第一通信链路的多个数据包进行拼接,得到拼接数据包。
可选的,上述处理器还可以执行如下步骤的程序代码:将不同第一通信链路的多个数据包进行拼接,得到拼接数据包,包括:轮询读取多个不同第一通信链路上的数据包;将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包。
可选的,上述处理器还可以执行如下步骤的程序代码:将从多个不同第一通信链路读取的数据包进行拼接,得到拼接数据包,包括:获取第二标识信息,其中,第二标识信息包括:读取的数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;将第二标识信息插入读取的数据包中第三预定数据包和第四预定数据包之间的间隔处;对在第三预定数据包和第四预定数据包之间的间隔处插入了第二标识信息后,对读取的数据包进行拼接,得到拼接数据包。
可选的,上述处理器还可以执行如下步骤的程序代码:第一通信链路包括:网线链路,第二通信链路包括:光纤链路。
处理器可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:接收第二通信链路传输的拼接数据包,其中,拼接数据包的大小等于第二通信链路的第二位宽;对拼接数据包进行拆分,得到多个数据包,其中,多个数据包中每个数据包的大小等于第一通信链路的第一位宽;将多个数据包在第一通信链路传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包在第一通信链路传输,包括:将多个数据包在同一第一通信链路上传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包在同一第一 通信链路上传输,包括:将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,并在对应的同一第一通信链路传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个拼接数据包分别拆分,得到第一标识信息,其中,第一标识信息用于标识多个拼接数据包中预定拼接数据包对应的同一第一通信链路;根据第一标识信息,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包在第一通信链路传输,包括:将多个数据包在不同的第一通信链路上传输。
可选的,上述处理器还可以执行如下步骤的程序代码:将多个数据包在不同的第一通信链路上传输,包括:通过向多个第一通信链路轮询分发数据包的方式,将多个数据包分发给不同的第一通信链路,并在不同的第一通信链路上传输。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一 台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (21)

  1. 一种数据传输方法,其特征在于,包括:
    获取多个数据包,其中,所述多个数据包由第一通信链路进行传输;
    将所述多个数据包拼接,得到拼接数据包,其中,所述拼接数据包的大小等于第二通信链路的第二位宽;
    将所述拼接数据包通过所述第二通信链路传输。
  2. 根据权利要求1所述的方法,其特征在于,将所述多个数据包拼接,得到拼接数据包,包括:
    将同一第一通信链路中的多个数据包进行拼接,得到所述拼接数据包。
  3. 根据权利要求2所述的方法,其特征在于,将所述拼接数据包通过所述第二通信链路传输,包括:
    轮询读取多个同一第一通信链路上拼接得到的拼接数据包,并在所述第二通信链路传输。
  4. 根据权利要求3所述的方法,其特征在于,将同一第一通信链路中的多个数据包进行拼接,得到所述拼接数据包,包括:
    获取第一标识信息,其中,所述第一标识信息用于标识所述同一第一通信链路;
    在所述同一第一通信链路中的多个数据包中第一预定数据包和第二预定数据包之间的间隔处插入所述第一标识信息;
    对在所述第一预定数据包和所述第二预定数据包之间的间隔处插入了所述第一标识信息的多个数据包进行拼接,得到所述拼接数据包。
  5. 根据权利要求1所述的方法,其特征在于,将所述多个数据包拼接,得到拼接数据包,包括:
    将不同第一通信链路的多个数据包进行拼接,得到所述拼接数据包。
  6. 根据权利要求5所述的方法,其特征在于,将不同第一通信链路的多个数据包进行拼接,得到所述拼接数据包,包括:
    轮询读取多个不同第一通信链路上的数据包;
    将从所述多个不同第一通信链路读取的数据包进行拼接,得到所述拼接数据包。
  7. 根据权利要求6所述的方法,其特征在于,将从所述多个不同第一通信链路读取的数据包进行拼接,得到所述拼接数据包,包括:
    获取第二标识信息,其中,所述第二标识信息包括:读取的数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;
    将所述第二标识信息插入读取的所述数据包中第三预定数据包和第四预定数据包之间的间隔处;
    对在所述第三预定数据包和所述第四预定数据包之间的间隔处插入了所述第二标识信息后,对读取的数据包进行拼接,得到所述拼接数据包。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一通信链路包括:网线链路,所述第二通信链路包括:光纤链路。
  9. 一种数据传输方法,其特征在于,包括:
    接收第二通信链路传输的拼接数据包,其中,所述拼接数据包的大小等于所述第二通信链路的第二位宽;
    对所述拼接数据包进行拆分,得到多个数据包,其中,所述多个数据包中每个数据包的大小等于第一通信链路的第一位宽;
    将所述多个数据包在所述第一通信链路传输。
  10. 根据权利要求9所述的方法,其特征在于,将所述多个数据包在所述第一通信链路传输,包括:
    将所述多个数据包在同一第一通信链路上传输。
  11. 根据权利要求10所述的方法,其特征在于,将所述多个数据包在同一第一通信链路上传输,包括:
    将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,并在所述对应的同一第一通信链路传输。
  12. 根据权利要求11所述的方法,其特征在于,将多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路,包括:
    将多个拼接数据包分别拆分,得到第一标识信息,其中,所述第一标识信息用于标识所述多个拼接数据包中预定拼接数据包对应的同一第一通信链路;
    根据所述第一标识信息,将所述多个拼接数据包分别拆分得到的多个数据包轮询分发给对应的同一第一通信链路。
  13. 根据权利要求9所述的方法,其特征在于,将所述多个数据包在所述第一通信链路传输,包括:
    将所述多个数据包在不同的第一通信链路上传输。
  14. 根据权利要求13所述的方法,其特征在于,将所述多个数据包在不同的第一通信链路上传输,包括:
    通过向多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路,并在所述不同的第一通信链路上传输。
  15. 根据权利要求14所述的方法,其特征在于,通过向所述多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路,包括:
    获取第二标识信息,其中,所述第二标识信息包括:所述多个数据包中起始数据包对应的起始通信链路标识,和结束数据包对应的结束通信链路标识;
    根据所述第二标识信息,通过向所述多个第一通信链路轮询分发数据包的方式,将所述多个数据包分发给不同的第一通信链路。
  16. 根据权利要求9至15中任一项所述的方法,其特征在于,所述第一通信链路包括:网线链路,所述第二通信链路包括:光纤链路。
  17. 一种数据传输装置,其特征在于,包括:
    获取模块,用于获取多个数据包,其中,所述多个数据包由第一通信链路进行传输;
    拼接模块,用于将所述多个数据包拼接,得到拼接数据包,其中,所述拼接数据包的大小等于第二通信链路的第二位宽;
    第一传输模块,用于将所述拼接数据包通过所述第二通信链路传输。
  18. 一种数据传输装置,其特征在于,包括:
    接收模块,用于接收第二通信链路传输的拼接数据包,其中,所述拼接数据包的大小等于所述第二通信链路的第二位宽;
    拆分模块,用于对所述拼接数据包进行拆分,得到多个数据包,其中,所述多个数据包中每个数据包的大小等于第一通信链路的第一位宽;
    第二传输模块,用于将所述多个数据包在所述第一通信链路传输。
  19. 一种通信系统,其特征在于,包括发送端设备和接收端设备,所述发送端设备包 括第一处理器,所述接收端设备包括第二处理器,其中,所述第一处理器用于运行第一程序,其中,所述第一程序运行时执行权利要求1至8中任意一项所述数据传输方法,所述第二处理器用于运行第二程序,其中,所述第二程序运行时执行权利要求9至16中任一项所述数据传输方法。
  20. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行权利要求1至16中任意一项所述数据传输方法。
  21. 一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至16中任意一项所述数据传输方法。
PCT/CN2020/132272 2020-11-27 2020-11-27 数据传输方法、装置、通信系统、存储介质和处理器 WO2022110018A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080094285.3A CN115004654A (zh) 2020-11-27 2020-11-27 数据传输方法、装置、通信系统、存储介质和处理器
PCT/CN2020/132272 WO2022110018A1 (zh) 2020-11-27 2020-11-27 数据传输方法、装置、通信系统、存储介质和处理器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/132272 WO2022110018A1 (zh) 2020-11-27 2020-11-27 数据传输方法、装置、通信系统、存储介质和处理器

Publications (1)

Publication Number Publication Date
WO2022110018A1 true WO2022110018A1 (zh) 2022-06-02

Family

ID=81753797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132272 WO2022110018A1 (zh) 2020-11-27 2020-11-27 数据传输方法、装置、通信系统、存储介质和处理器

Country Status (2)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632896A (zh) * 2017-03-15 2018-10-09 华为技术有限公司 一种数据传输方法及相关设备
US20200076678A1 (en) * 2018-08-30 2020-03-05 Nokia Solutions And Networks Oy Acknowledgment and packet retransmission for spliced streams
CN111935017A (zh) * 2020-10-14 2020-11-13 腾讯科技(深圳)有限公司 跨网络的应用调用方法、装置及路由设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714038B (zh) * 2012-10-09 2019-02-15 中兴通讯股份有限公司 一种数据处理方法和装置
US9118392B2 (en) * 2013-04-16 2015-08-25 Silicon Laboratories Inc. Isolated serializer-deserializer
CN103675848A (zh) * 2013-12-26 2014-03-26 东莞市泰斗微电子科技有限公司 一种基于多路gnss信号的信号传输方法及系统
CN109041262B (zh) * 2018-08-23 2020-06-16 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN110134366B (zh) * 2019-05-21 2022-10-11 合肥工业大学 一种并行写入多通道fifo的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632896A (zh) * 2017-03-15 2018-10-09 华为技术有限公司 一种数据传输方法及相关设备
US20200076678A1 (en) * 2018-08-30 2020-03-05 Nokia Solutions And Networks Oy Acknowledgment and packet retransmission for spliced streams
CN111935017A (zh) * 2020-10-14 2020-11-13 腾讯科技(深圳)有限公司 跨网络的应用调用方法、装置及路由设备

Also Published As

Publication number Publication date
CN115004654A (zh) 2022-09-02

Similar Documents

Publication Publication Date Title
EP3522465A1 (en) Service data transmission method, device and system, and storage medium
RU2259640C2 (ru) Способ управления процессом кольцевой проверки в пассивной оптической сети ethernet
CN108521343B (zh) 一种oam报文的处理方法及装置
CN1484898A (zh) 使用可变长度数据包的单点对多点无源光网络
US20050129052A1 (en) Apparatus and method for auto-negotiation in a communication system
WO2022110018A1 (zh) 数据传输方法、装置、通信系统、存储介质和处理器
CN108988977B (zh) 一种灵活以太网协议中传递业务流的方法、装置和系统
CN112737995B (zh) 以太网帧的处理方法、装置、设备及存储介质
CN107645747B (zh) 一种发送和接收数据的方法及设备
US4954965A (en) Enhanced frame utilization for CSMA/CD communication protocol
CN113273149B (zh) 一种数据发送方法、装置及FlexE交换系统
US11876882B2 (en) Method and system for optoelectronic matching
US9160604B2 (en) Systems and methods to explicitly realign packets
US10938502B2 (en) Method and system for accurate IPG compensation of USXGMII multi-channel
CN111934820B (zh) 管理信息传输方法、系统及可读存储介质
CN113572629A (zh) 消息传输的方法、终端及存储介质
WO2023231264A1 (zh) 一种高效传输的以太网设备
CN109522256A (zh) 一种串口通信方法、网络设备、控制设备及存储介质
CN113794543B (zh) 一种七号信令fisu信令自动填充方法及装置
CN101465841A (zh) Eoc网络数据传输系统
CN101707592B (zh) Spi4接口数据包的处理方法
CN117880265A (zh) 在低带宽条件下工作的传输设备远程管理方法
CN102065395A (zh) 开放式基站架构参考点3消息的发送方法及装置
CN114268992A (zh) 一种数据包发送方法及射频系统
CN117749866A (zh) 基于fpga的多通道独立流控aurora通信中间件及其数据收发方法

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20962908

Country of ref document: EP

Kind code of ref document: A1