CN111193574A - Data transmission method and data transmission system - Google Patents

Data transmission method and data transmission system Download PDF

Info

Publication number
CN111193574A
CN111193574A CN201911415728.XA CN201911415728A CN111193574A CN 111193574 A CN111193574 A CN 111193574A CN 201911415728 A CN201911415728 A CN 201911415728A CN 111193574 A CN111193574 A CN 111193574A
Authority
CN
China
Prior art keywords
packet
data
sub
data sub
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911415728.XA
Other languages
Chinese (zh)
Other versions
CN111193574B (en
Inventor
田晓
赵安洋
任欢
索高华
夏杰
宋杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Xiangteng Microelectronics Technology Co Ltd
Original Assignee
Xian Xiangteng Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Xiangteng Microelectronics Technology Co Ltd filed Critical Xian Xiangteng Microelectronics Technology Co Ltd
Priority to CN201911415728.XA priority Critical patent/CN111193574B/en
Publication of CN111193574A publication Critical patent/CN111193574A/en
Application granted granted Critical
Publication of CN111193574B publication Critical patent/CN111193574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • 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/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a data transmission method and a data transmission system, wherein the data transmission method comprises the following steps: receiving a data packet; obtaining a first data total packet or a first data sub packet according to the type of the data packet; and obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet. The data transmission method provided by the invention can carry out the splitting processing on the long data packet or the grouping processing on the data packet according to the type of the data packet, thereby meeting the requirement of two-way communication.

Description

Data transmission method and data transmission system
Technical Field
The invention belongs to the technical field of data transmission, and particularly relates to a data transmission method and a data transmission system.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users, and data transmission is involved in the bidirectional communications process.
The IEEE 1394 bus is a serial bus with low cost, high performance and low power consumption, has high speed, flexibility and expandability, and has the characteristics of plug and play, dynamic bus configuration and the like. Is rapidly becoming one of the widely used buses in the field of data transmission.
However, during data transmission, the data load of a single-time transmitted data packet is limited by the transmission load, which affects the transmission rate.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention provides a data transmission method and a data transmission system. The technical problem to be solved by the invention is realized by the following technical scheme:
a method of data transmission, comprising:
receiving a data packet;
obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet.
In an embodiment of the present invention, obtaining the second data sub-packet or the plurality of third data sub-packets according to the identifier of the first data includes:
obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data total packet;
and obtaining a second data sub-packet according to the fourth data sub-packet, or correspondingly obtaining a plurality of third data sub-packets according to the plurality of fifth data sub-packets.
In an embodiment of the present invention, obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data general packet includes:
and judging whether the first data general packet belongs to a short data packet or a long data packet according to the identifier of the first data general packet, if the identifier of the first data general packet belongs to the short data packet identifier, obtaining a fourth data sub packet according to the first data general packet, and if the identifier of the first data general packet belongs to the long data packet identifier, obtaining a plurality of fifth data sub packets according to the first data general packet.
In an embodiment of the present invention, obtaining the second data sub-packet according to the fourth data sub-packet includes:
and processing the fourth data sub-packet by using first specific information to obtain the second data sub-packet, wherein the first specific information comprises continuous heartbeat values.
In an embodiment of the present invention, obtaining the plurality of third data packets according to the plurality of fifth data packets includes:
and processing the fifth data sub-packet by using second specific information to obtain the third data sub-packet, wherein the second specific information comprises continuous heartbeat values, total sub-packet numbers, sub-packet serial numbers and theme IDs.
In an embodiment of the present invention, obtaining the second data total packet or the third data total packet according to the first data sub-packet includes:
obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet;
and obtaining the second data total packet according to the sixth data sub-packet, or obtaining the third data total packet according to the seventh data sub-packet.
In an embodiment of the present invention, obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet includes:
and judging whether the first data sub-packet belongs to a short data packet or a long data packet according to the identifier of the first data sub-packet, if the identifier of the first data sub-packet belongs to the identifier of the short data packet, obtaining a sixth data sub-packet according to the first data sub-packet, and if the identifier of the first data sub-packet belongs to the identifier of the long data packet, obtaining a seventh data sub-packet according to the first data sub-packet.
In an embodiment of the present invention, obtaining the second data total packet according to the sixth data sub-packet includes:
and removing the third specific information of the sixth data sub-packet to obtain the second data total packet.
In an embodiment of the present invention, obtaining the third data total packet according to the seventh data sub-packet includes:
obtaining a set heartbeat value according to the heartbeat value and the sub-packet serial number of the seventh data sub-packet;
indexing the seventh data sub-packet to an information interaction space according to a received flag word, the set heartbeat value and the theme ID of the seventh data sub-packet;
and judging whether the information interaction space receiving task is completed or not according to a set period and the receiving flag word, and if so, obtaining a third data total packet.
An embodiment of the present invention further provides a data transmission system, including:
the receiving module is used for receiving the data packet;
the distinguishing module is used for obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and the transmission module is used for obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet.
The invention has the beneficial effects that:
the data transmission method provided by the invention can carry out the splitting processing on the long data packet or the grouping processing on the data packet according to the type of the data packet, thereby meeting the requirement of two-way communication.
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Drawings
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data transmission method according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to specific examples, but the embodiments of the present invention are not limited thereto.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention. The embodiment of the invention provides a data transmission method. The data transmission method may specifically include:
step 1, receiving a data packet;
step 2, obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and 3, obtaining a second data sub-packet or a plurality of third data sub-packets according to the length of the first data sub-packet and the preset data length, or obtaining the second data sub-packet or the third data sub-packets according to the first data sub-packets.
The data transmission method of this embodiment first needs to receive a data packet sent by a certain node, where the data packet may be an original short data packet or a long data packet, that is, a data packet to which specific information is not added, where the specific information is information capable of reflecting information related to the data packet, for example, for a short data packet, the specific information includes a heartbeat value, for a long data packet, the specific information includes a heartbeat value, a total number of packets, a packet sequence number, and a long data packet identifier, and when the received data packet is an original data packet, the data packet is a first total data packet; when specific information is added to a received data packet, the data packet is a first data packet.
In this embodiment, the identifier includes a long packet identifier and a short packet identifier, so when the packet is a first packet, the type of the packet is determined according to the long and short packet identifiers carried in the first packet, that is, when the first packet is a short packet identifier, the first packet is a short packet, when the first packet is a long packet identifier, the first packet is a long packet, when the first packet is a long packet, the length of the first packet is compared with a preset data length, where the preset data length is a preset value used for calculating the total number of packets to be packetized into the first packet, and the preset data length may be, for example, 512 bytes, and if the identifier of the first packet indicates that the short packet is not required to be packetized, a second data sub-packet can be obtained by adding specific information to the first data general packet, and the second data sub-packet can be transmitted to another node; if the identifier of the first general data packet indicates a long data packet, unpacking the first general data packet to obtain a plurality of third data packets correspondingly, and transmitting the plurality of third data packets to another node.
When the data packet is a first data sub-packet, whether an original data packet of the first data sub-packet belongs to a short data packet or a long data packet needs to be judged, if the identifier of the first data sub-packet is a short data packet identifier, the first data sub-packet is a second data main packet, and when another node needs the second data main packet, specific information of the second data main packet can be removed and transmitted to the node; if the identifier of the first data sub-packet is a long data packet identifier, all sub-packets of the long data packet need to be obtained and subjected to packet packaging processing, so that a third data main packet is obtained, and when another node needs the third data main packet, specific information of the third data main packet can be removed and transmitted to the node.
In a specific embodiment, obtaining the second data sub-packet or the plurality of third data sub-packets according to the length of the first data total packet and the preset data length may specifically include: obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data total packet; and obtaining a second data sub-packet according to the fourth data sub-packet, or correspondingly obtaining a plurality of third data sub-packets according to the plurality of fifth data sub-packets.
Obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data total packet may specifically include: and judging whether the first data general packet belongs to a short data packet or a long data packet according to the identifier of the first data general packet, if the identifier of the first data general packet belongs to the short data packet identifier, obtaining a fourth data sub packet according to the first data general packet, and if the identifier of the first data general packet belongs to the long data packet identifier, obtaining a plurality of fifth data sub packets according to the first data general packet.
Specifically, in this embodiment, it is first required to determine an identifier carried in the first data total packet and capable of reflecting whether the first data total packet belongs to a long data packet or a short data packet, and if the type of the identifier indicates that the identifier is a short data packet identifier, the first data total packet is a fourth data sub-packet; if the type of the identifier indicates a long data packet identifier, it is determined that the first data packet belongs to a long data packet, and the total number of the sub-packets needs to be calculated according to the relationship between the length of the long data packet and the preset data length, the first data packet is divided into a plurality of fifth data sub-packets, and the length of the divided fifth data sub-packets is smaller than or equal to the preset data length; in order to identify the data packets to be transmitted subsequently, it is necessary to add specific information to the fourth data packet and the fifth data packet, the fourth data packet is added with the specific information to obtain the second data packet, and the fifth data packet is added with the specific information to obtain the third data packet.
Further, obtaining a second data sub-packet according to the fourth data sub-packet includes: and processing the fourth data sub-packet by using the first specific information to obtain a second data sub-packet, wherein the first specific information comprises continuous heartbeat values.
Specifically, when it is determined that the fourth data packet is a short data packet, the first specific information may be directly added to the fourth data packet, the fourth data packet to which the first specific information is added is the second data packet, the heartbeat values added by the fourth data packet are consecutive, that is, the heartbeat values of the received original short data packet and the short data packet split by the long data packet are consecutively increased, for example, the received first data packet is a short data packet, the heartbeat value of the received first data packet is 1, the received second data packet is a long data packet, the long data packet is split into three short data packets, the heartbeat values of the three short data packets are sequentially 2, 3, and 4, the received third data packet is a short data packet, the heartbeat value of the received third data packet is 5, and so on. Meanwhile, the fourth data sub-packet also carries a subject ID for identifying which node the short data packet belongs to.
Further, correspondingly obtaining a plurality of third data sub-packets according to the plurality of fifth data sub-packets, including: and processing the fifth data sub-packet by using second specific information to obtain a third data sub-packet, wherein the second specific information comprises continuous heartbeat values, total sub-packet numbers, sub-packet serial numbers and theme IDs.
Specifically, the fifth data sub-packet is a short data packet obtained by splitting a long data packet, and therefore, a heartbeat value, a total number of sub-packets, a sub-packet serial number, and a topic ID need to be added to each fifth data sub-packet obtained by splitting the long data packet, where the total number of sub-packets represents how many short data packets the long data packet is split into, the sub-packet serial number represents a serial number of each fifth data sub-packet, that is, the fifth data sub-packet belongs to the fifth sub-packet, and the topic ID is used to identify a node to which the long data packet to which the fifth data sub-packet belongs, and therefore, the topic ID of the long data packet to which the fifth data sub-packet belongs needs to be added to each split fifth data sub-packet, and therefore, the topic IDs of each fifth data sub-packet.
The data transmission method provided by this embodiment may first determine the type of the data packet, if the identifier of the data packet indicates a long data packet identifier, the data packet needs to be unpacked according to a relationship between the long data packet and a preset data length, and specific information may be added to the split data packet, if the identifier of the data packet indicates that the data packet belongs to a short data packet, unpacking is not required, the specific information of the short data packet includes a continuous heartbeat value, a topic ID, and an identifier, and the specific information of the long data packet includes a continuous heartbeat value, a total number of packets, a packet serial number, a topic ID, and an identifier, so that integrity and accuracy of the data packets can be ensured when the data packets are forwarded, so as to avoid a case that the data packets are lost.
In a specific embodiment, obtaining the second data total packet or the third data total packet according to the first data sub-packet includes: obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet; and obtaining a second data total packet according to the sixth data sub-packet, or obtaining a third data total packet according to the seventh data sub-packet.
And judging whether the first data sub-packet belongs to a short data packet or a long data packet according to the identifier of the first data sub-packet, if the identifier of the first data sub-packet belongs to the short data packet identifier, obtaining a sixth data sub-packet according to the first data sub-packet, and if the identifier of the first data sub-packet belongs to the long data packet identifier, obtaining a seventh data sub-packet according to the first data sub-packet.
Specifically, the first data packet obtained by the present embodiment is added with the specific information, i.e., the third specific information, because the original short data packet and the split short data packet are added with the identification of whether the original data packet belongs to the short data packet or the long data packet, therefore, whether the original data packet is a short data packet or a long data packet can be distinguished according to the identification of the first data sub-packet, if the identification of the first data sub-packet indicates that the first data sub-packet is a short data packet, the first data sub-packet is the sixth data sub-packet, therefore, the original short data packet can be obtained according to the sixth data sub-packet, namely the second data general packet, so that the sixth data sub-packet can be arranged in a certain information interaction space, when a certain node needs to acquire the second data general packet, the sixth data sub-packet can be obtained according to the stored address, and the third specific information of the sixth data sub-packet is removed; if the identifier of the first data sub-packet indicates that the first data sub-packet is a long data packet, the sub-packet belonging to the long data packet is described, and at this time, the first data sub-packet is a seventh data sub-packet, so that if all seventh data sub-packets of the long data packet are obtained, all sub-packets of the long data packet can be obtained, the group packaging can be performed according to the obtained seventh data sub-packets belonging to the long data packet according to the sub-packet serial number, and the third specific information is removed and only one subject ID is reserved, the long data packet can be obtained, a third data total packet can be obtained, the original subject ID is reserved in the third data total packet, so that all the seventh data sub-packets belonging to the long data packet can be packaged according to the sub-packet serial number to obtain the long data packet carrying the third specific information, the long data packet carrying the third specific information is stored, when a certain node needs to obtain the third data total packet, the long data packet carrying the third specific information can be obtained according to the stored address, the third specific information of the long data packet carrying the third specific information is removed to obtain a third data total packet, so that the node obtains the third data total packet, and if one long data packet is not packaged in a specified period, the interaction area and the storage area are released, so that normal operation of transmission is facilitated.
Further, obtaining a second data total packet according to the sixth data sub-packet includes: and removing the third specific information of the sixth data sub-packet to obtain a second data total packet.
Specifically, since the sixth data packet that a certain node needs to obtain should be the original data packet thereof, that is, the short data packet to which the third specific information is not added, the third specific information of the sixth data packet needs to be removed, and since the original data packet of the sixth data packet belongs to the short data packet, the third specific information of the sixth data packet only includes the heartbeat value, and thus the second data total packet can be obtained by removing the heartbeat value of the sixth data packet.
Further, obtaining a third data total packet according to the seventh data sub-packet includes: obtaining a set heartbeat value according to the heartbeat value and the sub-packet serial number of the seventh data sub-packet; indexing the seventh data sub-packet to an information interaction space according to the received marker word, the set jump value and the theme ID of the seventh data sub-packet; and judging whether the information interaction space receiving task is completed or not according to the set period and the receiving flag word, and if so, obtaining a fifth data total packet.
Specifically, when a seventh data sub-packet is obtained, a set heartbeat value is obtained by using a difference value between a heartbeat value of the seventh data sub-packet and a sub-packet serial number, the start heartbeat values of all sub-packets belonging to the same long data packet are the same, for example, when a certain long data packet is split into 5 short data packets, and the serial numbers of the 5 short data packets are 0, 1, 2, 3 and 4, respectively, and the heartbeat values of the 5 short data packets are 3, 4, 5, 6 and 7, respectively, when the seventh data sub-packet is a sub-packet with a sub-packet serial number of 2, the corresponding heartbeat value is 5, the heartbeat value is set to be 3, the heartbeat value is the first sub-packet of the long data packet, the heartbeat value is the heartbeat value of the seventh data sub-packet with a sub-packet serial number of 3, therefore, when a certain seventh data sub-packet is obtained, it is first determined whether the seventh data sub-packet belongs to a certain information interaction space, if the seventh data sub-packet belongs to the information interaction space, each information interaction space is distributed with a receiving flag word, and the state of the information interaction space corresponding to the receiving flag word can be obtained through the receiving flag word, wherein the state comprises an idle state (namely the information interaction space does not have a data packet yet), a packaging state and a packaging completion state. Specifically, the process of determining whether the seventh data packet belongs to an information interaction space is as follows: the information interaction space to which the seventh data sub-packet should be indexed can be obtained according to the set heartbeat value, the theme ID and the receiving marker words of the information interaction space of the seventh data sub-packet, when the start heartbeat value and the subject ID of the data packet and the seventh data packet in a certain information interaction space are the same and the receiving flag word of the information interaction space is in a packet-packaging state, the seventh data packet belongs to the information interaction space, if all the information interaction spaces are traversed and the same set heartbeat value and the same subject ID as the seventh data packet are not found, it means that the seventh data sub-packet belongs to the first sub-packet of the long data packet to be packed, an information interaction space with a received flag word in an idle state can be retrieved, and indexing the seventh data sub-packet to the information interaction space, and packaging the seventh data sub-packet of each information interaction space according to the sub-packet sequence number of the seventh data sub-packet in sequence. In the process, the receiving flag word of each information interaction space needs to be checked every set period, if the checking result shows that the receiving flag word is in a packaging state, the information interaction space is described as not being packaged in the set period, the period from the beginning of packaging to the present is obtained, and if the set period is exceeded, all data packets of the information interaction space need to be discarded, so that the information interaction space is in an idle state again for subsequent use; if the check result indicates that the receiving flag word is in a packet completion state, it indicates that all seventh data packets of a certain long data packet have been received by the information interaction space, all seventh data packets may complete packet packing according to the packet sequence number to form a long data packet carrying third specific information, and when a certain node needs to obtain a certain third data total packet, the third specific information of the long data packet carrying the third specific information may be removed to obtain the third data total packet, so that the node obtains the third data total packet. The set period is, for example, a stof period.
The data transmission method provided in this embodiment first determines the type of the data packet, determines whether the original data packet belongs to a long data packet or a short data packet according to the packet identifier, indexes the data packet to an information interaction space according to a set hop value, a receiving flag word, and a body ID if the original data packet belongs to a long data packet, and judges whether the data packet in the information interaction space is packaged completely according to the receiving sign words of the information interaction space, therefore, the integrity and the accuracy of the grouped data packets can be ensured, in addition, the data transmission method provided by the embodiment also completes the grouping according to whether the data packets in the information interaction space are grouped or not in the set period, and discarding the data packet received overtime, and processing the data packet in the information interaction space, thereby improving the timeliness and effectiveness of data transmission.
In addition, data transmission of 1394 bus communication data packets is generally realized based on an FPGA (field programmable Gate Array), and for an SOC (System-on-a-Chip System on Chip) Chip including a link layer, a physical layer and an event layer, data transmission of 1394 bus communication data packets cannot be realized.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data transmission method according to an embodiment of the present invention. As shown in fig. 2, the data transmission system includes:
the receiving module is used for receiving the data packet;
the distinguishing module is used for obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and the transmission module is used for obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet.
In a specific embodiment, obtaining the second data sub-packet or the plurality of third data sub-packets according to the identifier of the first data includes:
obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data total packet;
and obtaining a second data sub-packet according to the fourth data sub-packet, or correspondingly obtaining a plurality of third data sub-packets according to the plurality of fifth data sub-packets.
In a specific embodiment, obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data general packet includes:
and judging whether the first data general packet belongs to a short data packet or a long data packet according to the identifier of the first data general packet, if the identifier of the first data general packet belongs to the short data packet identifier, obtaining a fourth data sub packet according to the first data general packet, and if the identifier of the first data general packet belongs to the long data packet identifier, obtaining a plurality of fifth data sub packets according to the first data general packet.
In a specific embodiment, obtaining the second data sub-packet according to the fourth data sub-packet includes:
and processing the fourth data sub-packet by using first specific information to obtain the second data sub-packet, wherein the first specific information comprises continuous heartbeat values.
In a specific embodiment, obtaining the plurality of third data sub-packets according to the plurality of fifth data sub-packets includes:
and processing the fifth data sub-packet by using second specific information to obtain the third data sub-packet, wherein the second specific information comprises continuous heartbeat values, total sub-packet numbers, sub-packet serial numbers and theme IDs.
In a specific embodiment, obtaining the second data total packet or the third data total packet according to the first data sub-packet includes:
obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet;
and obtaining the second data total packet according to the sixth data sub-packet, or obtaining the third data total packet according to the seventh data sub-packet.
In a specific embodiment, obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet includes:
and judging whether the first data sub-packet belongs to a short data packet or a long data packet according to the identifier of the first data sub-packet, if the identifier of the first data sub-packet belongs to the identifier of the short data packet, obtaining a sixth data sub-packet according to the first data sub-packet, and if the identifier of the first data sub-packet belongs to the identifier of the long data packet, obtaining a seventh data sub-packet according to the first data sub-packet.
In a specific embodiment, obtaining the second data total packet according to the sixth data sub-packet includes:
and removing the third specific information of the sixth data sub-packet to obtain the second data total packet.
In a specific embodiment, obtaining the third data total packet according to the seventh data sub-packet includes:
obtaining a set heartbeat value according to the heartbeat value and the sub-packet serial number of the seventh data sub-packet;
indexing the seventh data sub-packet to an information interaction space according to a received flag word, the set heartbeat value and the theme ID of the seventh data sub-packet;
and judging whether the information interaction space receiving task is completed or not according to a set period and the receiving flag word, and if so, obtaining a third data total packet.
The data transmission system provided by the embodiment of the invention can execute the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "module" or "system. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by those skilled in the art.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A method of data transmission, comprising:
receiving a data packet;
obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet.
2. The data transmission method according to claim 1, wherein obtaining the second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data comprises:
obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data total packet;
and obtaining a second data sub-packet according to the fourth data sub-packet, or correspondingly obtaining a plurality of third data sub-packets according to the plurality of fifth data sub-packets.
3. The data transmission method according to claim 2, wherein obtaining a fourth data sub-packet or a plurality of fifth data sub-packets according to the identifier of the first data general packet comprises:
and judging whether the first data general packet belongs to a short data packet or a long data packet according to the identifier of the first data general packet, if the identifier of the first data general packet belongs to the short data packet identifier, obtaining a fourth data sub packet according to the first data general packet, and if the identifier of the first data general packet belongs to the long data packet identifier, obtaining a plurality of fifth data sub packets according to the first data general packet.
4. The data transmission method according to claim 2, wherein obtaining the second data sub-packet according to the fourth data sub-packet comprises:
and processing the fourth data sub-packet by using first specific information to obtain the second data sub-packet, wherein the first specific information comprises continuous heartbeat values.
5. The data transmission method according to claim 2, wherein obtaining the third data packets according to the fifth data packets comprises:
and processing the fifth data sub-packet by using second specific information to obtain the third data sub-packet, wherein the second specific information comprises continuous heartbeat values, total sub-packet numbers, sub-packet serial numbers and theme IDs.
6. The data transmission method according to claim 1, wherein obtaining a second data aggregation packet or a third data aggregation packet according to the first data packetization includes:
obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet;
and obtaining the second data total packet according to the sixth data sub-packet, or obtaining the third data total packet according to the seventh data sub-packet.
7. The data transmission method according to claim 6, wherein obtaining a sixth data sub-packet or a seventh data sub-packet according to the identifier of the first data sub-packet comprises:
and judging whether the first data sub-packet belongs to a short data packet or a long data packet according to the identifier of the first data sub-packet, if the identifier of the first data sub-packet belongs to the identifier of the short data packet, obtaining a sixth data sub-packet according to the first data sub-packet, and if the identifier of the first data sub-packet belongs to the identifier of the long data packet, obtaining a seventh data sub-packet according to the first data sub-packet.
8. The data transmission method according to claim 6, wherein obtaining the second data total packet according to the sixth data sub-packet comprises:
and removing the third specific information of the sixth data sub-packet to obtain the second data total packet.
9. The data transmission method according to claim 6, wherein obtaining the third data total packet according to the seventh data sub-packet comprises:
obtaining a set heartbeat value according to the heartbeat value and the sub-packet serial number of the seventh data sub-packet;
indexing the seventh data sub-packet to an information interaction space according to a received flag word, the set heartbeat value and the theme ID of the seventh data sub-packet;
and judging whether the information interaction space receiving task is completed or not according to a set period and the receiving flag word, and if so, obtaining a third data total packet.
10. A data transmission system, comprising:
the receiving module is used for receiving the data packet;
the distinguishing module is used for obtaining a first data total packet or a first data sub packet according to the type of the data packet;
and the transmission module is used for obtaining a second data sub-packet or a plurality of third data sub-packets according to the identifier of the first data sub-packet, or obtaining a second data sub-packet or a third data sub-packet according to the first data sub-packet.
CN201911415728.XA 2019-12-31 2019-12-31 Data transmission method and data transmission system Active CN111193574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415728.XA CN111193574B (en) 2019-12-31 2019-12-31 Data transmission method and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415728.XA CN111193574B (en) 2019-12-31 2019-12-31 Data transmission method and data transmission system

Publications (2)

Publication Number Publication Date
CN111193574A true CN111193574A (en) 2020-05-22
CN111193574B CN111193574B (en) 2023-04-28

Family

ID=70710560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415728.XA Active CN111193574B (en) 2019-12-31 2019-12-31 Data transmission method and data transmission system

Country Status (1)

Country Link
CN (1) CN111193574B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136722A (en) * 2007-10-15 2008-03-05 北京交通大学 Data transmitting method and transmitting equipment suitable for high speed mobile terminal
WO2009021417A1 (en) * 2007-08-14 2009-02-19 Shenzhen Coship Electronics Co., Ltd. A method, system and device for transmitting and receiving the network data
WO2014169860A1 (en) * 2013-09-26 2014-10-23 中兴通讯股份有限公司 Data transmission method and device
US20150341145A1 (en) * 2012-06-26 2015-11-26 Siemens Aktiengesellschaft Data packet for bidirectional transmission of data packets during data transmission between a first and a second communication appliance, and method for transmitting such a data packet
CN105512079A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Parallel package assembly method for multichannel stream data of 1394 bus
CN105530191A (en) * 2015-12-09 2016-04-27 中国航空工业集团公司西安航空计算技术研究所 1394 protocol based asynchronous flow package structure
CN105847101A (en) * 2015-01-15 2016-08-10 上海通用汽车有限公司 Data transmission method based on vehicle bus
CN205486249U (en) * 2016-02-03 2016-08-17 国家电网公司 A information collection system for electric power system
CN107592294A (en) * 2017-07-28 2018-01-16 北京北信源软件股份有限公司 Data reporting method and device
CN109246090A (en) * 2018-08-22 2019-01-18 北京九五智驾信息技术股份有限公司 Data processing equipment, intelligent back vision mirror and data processing system
CN110248362A (en) * 2019-05-31 2019-09-17 西安源捷科技有限公司 A kind of method, apparatus being used for transmission electric energy meter data information, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009021417A1 (en) * 2007-08-14 2009-02-19 Shenzhen Coship Electronics Co., Ltd. A method, system and device for transmitting and receiving the network data
CN101136722A (en) * 2007-10-15 2008-03-05 北京交通大学 Data transmitting method and transmitting equipment suitable for high speed mobile terminal
US20150341145A1 (en) * 2012-06-26 2015-11-26 Siemens Aktiengesellschaft Data packet for bidirectional transmission of data packets during data transmission between a first and a second communication appliance, and method for transmitting such a data packet
WO2014169860A1 (en) * 2013-09-26 2014-10-23 中兴通讯股份有限公司 Data transmission method and device
CN105847101A (en) * 2015-01-15 2016-08-10 上海通用汽车有限公司 Data transmission method based on vehicle bus
CN105530191A (en) * 2015-12-09 2016-04-27 中国航空工业集团公司西安航空计算技术研究所 1394 protocol based asynchronous flow package structure
CN105512079A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Parallel package assembly method for multichannel stream data of 1394 bus
CN205486249U (en) * 2016-02-03 2016-08-17 国家电网公司 A information collection system for electric power system
CN107592294A (en) * 2017-07-28 2018-01-16 北京北信源软件股份有限公司 Data reporting method and device
CN109246090A (en) * 2018-08-22 2019-01-18 北京九五智驾信息技术股份有限公司 Data processing equipment, intelligent back vision mirror and data processing system
CN110248362A (en) * 2019-05-31 2019-09-17 西安源捷科技有限公司 A kind of method, apparatus being used for transmission electric energy meter data information, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李国;巩光志;王冬冬;: "一种提高UDP可靠性的数据传输方法研究" *

Also Published As

Publication number Publication date
CN111193574B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN107807982B (en) Consistency checking method and device for heterogeneous database
KR20190020105A (en) Method and device for distributing streaming data
KR101632817B1 (en) Cloud computing secure data storage
US20200052885A1 (en) File storage method and apparatus for blockchain network
CN107622207B (en) Encrypted system-level data structure
CN110800328A (en) Buffer status reporting method, terminal and computer storage medium
JP4059388B2 (en) Apparatus and method for identifying protocol pattern in protocol data unit
CN112468365A (en) Data quality detection method, system and medium for network mirror flow
CN108259348B (en) Message transmission method and device
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
CN107305570A (en) A kind of data retrieval method and system
CN103164172B (en) Data flow storage method and device
CN111193574B (en) Data transmission method and data transmission system
CN108243056B (en) Method and device for acquiring abnormal information
CN115811483A (en) Network state monitoring method and device, electronic equipment and storage medium
CN109815047A (en) A kind of method and relevant apparatus of data processing
CN106354581B (en) A kind of cyclic redundancy check method and multi-core processor
CN115514702A (en) Method and device for quickly switching link, electronic equipment and storage medium
CN112084006B (en) Mirror image package processing method and device and electronic equipment
US7152140B2 (en) Masking parity information associated with a ternary content addressable memory
CN117499351A (en) Message forwarding device and method, communication chip and network equipment
CN115904488A (en) Data transmission method, system, device and equipment
CN109727135A (en) Promote method, the computer-readable medium of the operation of block chain information and processing capacity
CN105701419B (en) A kind of data managing method and terminal device
CN204669390U (en) A kind of electronic equipment

Legal Events

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