[go: up one dir, main page]

CN107087280A - A kind of data transmission method and device - Google Patents

A kind of data transmission method and device Download PDF

Info

Publication number
CN107087280A
CN107087280A CN201610086823.XA CN201610086823A CN107087280A CN 107087280 A CN107087280 A CN 107087280A CN 201610086823 A CN201610086823 A CN 201610086823A CN 107087280 A CN107087280 A CN 107087280A
Authority
CN
China
Prior art keywords
data streams
packet data
cascade
stream
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610086823.XA
Other languages
Chinese (zh)
Inventor
梅钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610086823.XA priority Critical patent/CN107087280A/en
Priority to PCT/CN2016/086606 priority patent/WO2017140076A1/en
Publication of CN107087280A publication Critical patent/CN107087280A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Landscapes

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

Abstract

The present invention provides a kind of data transmission method and device, is related to communication technical field, to improve channel utilization.The data transmission method of the present invention includes:Contracture group data stream is inscribed in the current statistic cycle;Whether determine the packet data streams is long data flow;It is the long data flow reservation link transmission resource when the packet data streams are long data flows;It is determined that the short data stream that can be sent with the long data flow cascade, and utilize the long data flow and short data stream construction cascade packet data streams;The cascade packet data streams are transmitted using the link transmission resource.Present invention is mainly used in mobile phone A d Hoc network networkings.

Description

A kind of data transmission method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of data transmission method and device.
Background technology
Stream driving MAC (Medium Access Control, channel access control) is a kind of ripe MAC Method, can be used for mobile phone A d Hoc (point-to-point) network.It combines reservation access channel and competition Two kinds of mechanism of channel are accessed, long stream can be dynamically judged, detects and identify to distinguish network data flow, so that Realize dynamically as long stream reserve channel resource.
Generally, the long flow amount in network is less, but the transmission of long stream business datum but occupies whole net Most of flow in network.Stream drives MAC while preferential guarantee long stream business datum high efficiency of transmission, The competition of short stream is also alleviated, therefore improves the overall performance of network.
But inventor has found in actual applications, stream driving MAC has in the network based on big be grouped There is preferable performance, but answer Current drive MAC to make internetworking in the network based on short packet It can decline to a great extent.Because in stream driving MAC, a time slot is only used for transmitting single packet.And Substantial amounts of short Packet Service, such as chat messages, geographical position are flooded with the types of applications program of mobile phone, If stream driving MAC is directly applied in mobile phone A d Hoc networks, then transmitting short Packet Service When can be still transmitted using a whole time slot, be wasted which results in limited channel resource so that Reduce channel utilization.
The content of the invention
In view of this, the present invention provides a kind of data transmission method and device, to improve channel utilization.
In order to solve the above technical problems, the present invention provides a kind of data transmission method, including:
Contracture group data stream is inscribed in the current statistic cycle;
Whether determine the packet data streams is long data flow;
It is the long data flow reservation link transmission resource when the packet data streams are long data flows;
It is determined that the short data stream that can be sent with the long data flow cascade, and utilize the long data flow and described Short data stream construction cascade packet data streams;
The cascade packet data streams are transmitted using the link transmission resource.
It is preferred that, methods described also includes:
Header-compressed is carried out to the cascade packet data streams;
It is described to be specially using the link transmission resource transmission cascade packet data streams:Utilize the chain Cascade packet data streams of the road transmission resources for transmitting after header-compressed.
It is preferred that, it is described to determine whether the packet data streams are that long data flow includes:
Obtain the stream statistics value of the packet data streams within the current statistic cycle;
If the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that the packet data streams are short Data flow;If the stream statistics value of the packet data streams is more than lower threshold, it is determined that the packet data streams For long data flow;Wherein described upper limit threshold is more than the lower threshold.
It is preferred that, acquisition stream statistics value of the packet data streams within the current statistic cycle includes:
Obtain the stream identification of the packet data streams;
The list item corresponding with the grouped data traffic identifier is determined whether there is according to the stream identification;
If, will within the current statistic cycle in the presence of the list item corresponding with the grouped data traffic identifier The corresponding flowmeter numerical value of the packet data streams is added up;If being not present and the grouped data traffic identifier phase Corresponding list item, then create corresponding list item for the packet data streams, and within the current statistic cycle The corresponding flowmeter numerical value of the packet data streams is designated as 1;
Within the current statistic cycle, the stream statistics value of the packet data streams is calculated as follows: λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively in current statistic cycle and previous measurement period The flowmeter numerical value of the packet data streams;α is damped coefficient, and value is (0,1).
It is preferred that, it is described when the packet data streams are long data flows, it is the long data flow reservation link Transfer resource includes:
Send to downstream node and come from transmission time slot requirement of the long number according to stream so that the downstream node is according to institute Transmission time slot requirement is stated for the long data flow reserve transmission time slot;
The reserve requests information of the downstream node is received, and biography can be used according to reserve requests information determination Defeated time slot, wherein the reserve requests information includes the locally available transmission time slot that the downstream node is determined Information.
It is preferred that, it is described so that the downstream node is pre- for the long data flow according to transmission time slot requirement About transmission time slot includes:
So that the downstream node selects locally available transmission time slot in local time slot, and locally may be used to described It is identified with transmission time slot.
It is preferred that, it is described to determine that available transmission time slot includes according to the reserve requests information:
The information and the time slot state table of itself of the locally available transmission time slot determined according to the downstream node Determine available transmission time slot.
It is preferred that, the short data stream that the determination can be sent with the long data flow cascade, and construct cascade point Group data stream includes:
Obtain the next hop address of the long data flow and the remaining space size of available transmission time slot;
Obtain the next hop address of the short data stream and the packet size of the short data stream;
If the next hop address of the short data stream is identical, described short with the next hop address of the long data flow The packet size of data flow is less than the remaining space size of the available transmission time slot, then by the short data stream It is defined as the short data stream that can be sent with the long data flow cascade;
Utilize the long data flow and the short data stream formation level that can be sent with the long data flow cascade Join packet data streams.
It is preferred that, methods described also includes:
Update the remaining space size of the available transmission time slot of the long data flow.
It is preferred that, it is described that the cascade packet data streams progress header-compressed is included:
Obtain the stream identification and Routing Protocol type of the cascade packet data streams;
If the Routing Protocol type is user datagram udp protocol, the cascade grouped data is read Information in the TTL critical fielies of stream, Routing Protocol type field, UDP checksum fields;Using institute State the stream identification for cascading packet data streams, ttl field, Routing Protocol type field, UDP verifications Header compression is constituted with the information in field;
If the Routing Protocol type is DSR DSR agreements, the cascade packet data streams are read Ttl field, Routing Protocol type field, the information in UDP checksum fields and routing information; Utilize ttl field, Routing Protocol type field, the UDP checksum fields of the cascade packet data streams In information and routing information composition header compression;
It is described to be specially using cascade packet data streams of the link transmission resource transmission after header-compressed:
Using described in the available transmission slot transmission in the transmission timing that the downstream node is set Cascade packet data streams.
It is preferred that, methods described also includes:
The header compression is identified.
It is preferred that, methods described also includes:
The header compression of the cascade packet data streams is read, the data flow of the cascade packet data streams is obtained Mark;
Determine whether there is traffic flow information corresponding with the stream identification;
When there is traffic flow information corresponding with the stream identification, the cascade packet data streams are read Header compression, obtain it is described cascade packet data streams Routing Protocol type;
The cascade packet data streams are decompressed according to the Routing Protocol type and the traffic flow information Header.
It is preferred that, it is described according to the Routing Protocol type and the traffic flow information decompression cascade point The header of group data stream includes:
If the Routing Protocol type is udp protocol, the information of the ttl field of the header compression is read, Decompression header is obtained with reference to the traffic flow information;
If the Routing Protocol type is DSR agreements, the information of the ttl field of the reading header compression, Routing information, decompression header is obtained with reference to the traffic flow information.
The present invention also provides a kind of data transmission device, including:
Receiving unit, for contracture group data stream to be inscribed in the current statistic cycle;
Determining unit, for determining whether the packet data streams are long data flow;
Appointment unit, for when the packet data streams are long data flows, being the long data flow reservation chain Road transfer resource;
Concatenation unit, for the short data stream for determining to send with the long data flow cascade, and described in Long data flow and short data stream construction cascade packet data streams;
Transmission unit, for transmitting the cascade packet data streams using the link transmission resource.
It is preferred that, described device also includes:
Processing unit, for carrying out header-compressed to the cascade packet data streams;
The transmission unit using the link transmission resource specifically for transmitting the cascade after header-compressed Packet data streams.
It is preferred that, the determining unit includes:
Acquisition module, the stream statistics value for obtaining the packet data streams within the current statistic cycle;
Determining module, for when the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that described Packet data streams are short data stream;When the stream statistics value of the packet data streams is more than lower threshold, it is determined that The packet data streams are long data flow;Wherein described upper limit threshold is more than the lower threshold.
It is preferred that, the acquisition module specifically for:
Obtain the stream identification of the packet data streams;
The list item corresponding with the grouped data traffic identifier is determined whether there is according to the stream identification;
If, will within the current statistic cycle in the presence of the list item corresponding with the grouped data traffic identifier The corresponding flowmeter numerical value of the packet data streams is added up;If being not present and the grouped data traffic identifier phase Corresponding list item, then create corresponding list item for the packet data streams, and within the current statistic cycle The corresponding flowmeter numerical value of the packet data streams is designated as 1;
Within the current statistic cycle, the stream statistics value of the packet data streams is calculated as follows: λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively in current statistic cycle and previous measurement period The flowmeter numerical value of the packet data streams;α is damped coefficient, and value is (0,1).
It is preferred that, the appointment unit includes:
Sending module, for sending the transmission time slot requirement for coming from long number according to stream to downstream node so that described Downstream node is the long data flow reserve transmission time slot according to transmission time slot requirement;
Reservation module, the reserve requests information for receiving the downstream node, and according to the reserve requests Information determines available transmission time slot, wherein the reserve requests information includes the sheet that the downstream node is determined The information of ground available transmission time slot.
It is preferred that, it is described reservation module specifically for:The locally available transmission determined according to the downstream node The information of time slot and the time slot state table of itself determine available transmission time slot.
It is preferred that, the concatenation unit includes:
Acquisition module, for obtaining the next hop address of the long data flow and the residue sky of available transmission time slot Between size, and obtain the next hop address of the short data stream and the packet size of the short data stream;
Determining module, the next-hop for the next hop address in the short data stream and the long data flow When location is identical, short data stream packet size is less than the remaining space size of the available transmission time slot, The short data stream that the short data stream is defined as to send with the long data flow cascade;
Cascade module, for using the long data flow and it is described can be sent with the long data flow cascade it is short Data manifold into cascade packet data streams.
It is preferred that, the concatenation unit also includes:
Update module, the remaining space size of the available transmission time slot for updating the long data flow.
It is preferred that, the processing unit includes:
Acquisition module, stream identification and Routing Protocol type for obtaining the cascade packet data streams;
Processing module, for when the Routing Protocol type is user datagram udp protocol, reading institute State in the TTL critical fielies for cascading packet data streams, Routing Protocol type field, UDP checksum fields Information, and using it is described cascade packet data streams stream identification, ttl field, Routing Protocol type Information composition header compression in field, UDP checksum fields;It is dynamic in the Routing Protocol type During source routing DSR agreements, ttl field, the Routing Protocol class type-word of the cascade packet data streams are read Section, the information in UDP checksum fields and routing information, and utilize the cascade packet data streams Ttl field, Routing Protocol type field, the information in UDP checksum fields and routing information composition Header compression;
The transmission unit is specifically for using described in the transmission timing that the downstream node is set Packet data streams are cascaded described in available transmission slot transmission.
It is preferred that, the processing module is additionally operable to be identified the header compression.
It is preferred that, the processing unit also includes:
Read module, the header compression for reading the cascade packet data streams, obtains the cascade packet The stream identification of data flow;
Determining module, is used to determine whether there is traffic flow information corresponding with the stream identification;
Decompression module, for when there is traffic flow information corresponding with the stream identification, reading institute The header compression of cascade packet data streams is stated, the Routing Protocol type of the cascade packet data streams is obtained;Root According to the Routing Protocol type and the header of the traffic flow information decompression cascade packet data streams.
It is preferred that, the decompression module specifically for:When the Routing Protocol type is udp protocol, The information of the ttl field of the header compression is read, decompression header is obtained with reference to the traffic flow information; When the Routing Protocol type is DSR agreements, the information of the ttl field of the reading header compression, Routing information, decompression header is obtained with reference to the traffic flow information.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In embodiments of the present invention, it is its reservation link transmission for the long data flow received in predetermined period Resource, and determine that the short data stream sent can be cascaded with the long data flow, and then utilize the long data flow With short data stream construction cascade packet data streams.The link transmission resource is utilized for cascade packet data streams Transmission.As seen from the above, cascaded in embodiments of the present invention using the link transmission resource of long data flow Long data flow and short data stream are sent, thus effectively make use of channel transmission resource, the profit of channel is improved With rate.
Brief description of the drawings
Fig. 1 is the flow chart of the data transmission method of the embodiment of the present invention one;
Fig. 2 is the flow chart of the data transmission method of the embodiment of the present invention two;
Fig. 3 is IP header formats schematic diagram in the prior art;
Fig. 4 is UDP message formats schematic diagram in the prior art;
Fig. 5 (a) and Fig. 5 (b) are respectively the header format schematic diagram after compression;
Fig. 6 is the schematic diagram of the data transmission device of the embodiment of the present invention three;
Fig. 7 is the structure chart of the data transmission device of the embodiment of the present invention three.
Embodiment
Below in conjunction with drawings and examples, the embodiment to the present invention is described in further detail. Following examples are used to illustrate the present invention, but are not limited to the scope of the present invention.
As shown in figure 1, the data transmission method of the embodiment of the present invention one, including:
Step 11, in the current statistic cycle contracture group data stream is inscribed.
The wherein described current statistic cycle can arbitrarily set its time span, such as being set to 1 minute.
Step 12, determine whether the packet data streams are long data flow.
Wherein described long number is a relative concept according to stream and short data stream.When continuing for some packet data streams When time span is more than some preset value, long data flow can be seen as;And time duration is less than this The data flow of preset value then regards short data stream as.Wherein the preset value can be set according to practical experience.
In this step, the stream statistics value of the packet data streams within the current statistic cycle can be obtained. It is confirmed, if the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that the packet data streams For short data stream;If the stream statistics value of the packet data streams is more than lower threshold, it is determined that the packet count It is long data flow according to stream;Wherein described upper limit threshold is more than the lower threshold.
Step 13, when the packet data streams are long data flows, be that the long data flow reservation link is passed Defeated resource.
Specifically, in this step, sending come from transmission time slot requirement of the long number according to stream to downstream node, make It is the long data flow reserve transmission time slot that the downstream node, which is obtained, according to transmission time slot requirement.Then, The reserve requests information of the downstream node is received, and when determining available transmission according to the reserve requests information Gap, wherein the reserve requests information includes the letter for the locally available transmission time slot that the downstream node is determined Breath.
The short data stream that step 14, determination can be sent with the long data flow cascade, and utilize the long number According to stream and short data stream construction cascade packet data streams.
In this step, the next hop address of the long data flow and the remaining space of available transmission time slot are obtained The packet size of the next hop address and the short data stream of size and the acquisition short data stream.If described The next hop address of short data stream is identical with the next hop address of the long data flow, the short data stream point Group size is less than the remaining space size of the available transmission time slot, then being defined as the short data stream can be with The short data stream that the long data flow cascade is sent.Then, using the long data flow and it is described can with it is described The short data stream formation cascade packet data streams that long data flow cascade is sent.
Step 15, the link transmission resource is utilized to transmit the cascade packet data streams.
As seen from the above, cascade and send out using the link transmission resource of long data flow in embodiments of the present invention Long data flow and short data stream are sent, thus effectively make use of channel transmission resource, the utilization of channel is improved Rate.
As shown in Fig. 2 the data transmission method of the embodiment of the present invention two, any node is performed in network, Including:
Step 21, in the current statistic cycle contracture group data stream is inscribed.
Step 22, determine whether the packet data streams are long data flow.
Node receives each packet data streams in current statistic cycle T (can arbitrarily set), and to receiving To the grouping numbers of each packet data streams counted, obtain the flowmeter numerical value within the current statistic cycle.
Whenever a packet data streams are received, node can give tacit consent to it for short stream.Now, node passes through first The five-tuple (source address, destination address, source port, destination interface, QoS) of the packet data streams is read should The stream identification of packet data streams, then searches the stream statistics table of itself storage.If data stream statistics table It is middle to there is the list item corresponding with the stream identification, then the flowmeter numerical value in the list item is added 1;Otherwise it is The stream creates a list item in stream statistics table, and the flowmeter numerical value in the list item then is designated as into 1.Then, For each the new packet data streams received, all carry out staying the statistics of count value in the manner described above, directly To current statistic end cycle.
In current statistic end cycle, the stream of the packet data streams within the current statistic cycle is obtained Statistical value.If the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that the packet data streams For short data stream;If the stream statistics value of the packet data streams is more than lower threshold, it is determined that the packet count It is long data flow according to stream;Wherein described upper limit threshold is more than the lower threshold.Under wherein described, lower limit threshold Value can arbitrarily be set, and be constant.The purpose for setting two threshold values herein is to eliminate the influence of the shake of stream.
Specifically, in this step, within the current statistic cycle, described point is calculated as follows The stream statistics value of group data stream:
λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively current statistic cycle and previous statistics are all The flowmeter numerical value of the packet data streams in phase;α is damped coefficient, and value is (0,1).Use herein The purpose of damping function is to eliminate the influence of the shake of stream.
Step 23, when the packet data streams are long data flows, be that the long data flow reservation link is passed Defeated resource.
In this step, node can send the transmission time slot requirement for coming from long number according to stream to downstream node so that The downstream node is the long data flow reserve transmission time slot according to transmission time slot requirement.Specifically, The form of the long data stream packet is changed to preengage the packet format of token by node, and downstream node is notified with this The long data flow for treating reserving time slots will be transmitted.Downstream node receive node transmission transmission time slot requirement after, Locally available transmission time slot is selected in local time slot, and the locally available transmission time slot is identified, Identify as half subscription state.Then downstream node believes the timeslot number of these time slots included in reserve requests Cease in REQ, REQ requests are sent to node.Meanwhile, the downstream node starts REQ timers, Reservation is completed to initiate.Node receives the reserve requests information of the downstream node, and according to the downstream node The information and the time slot state table of itself of the locally available transmission time slot determined determine available transmission time slot.If Downstream node is received in REQ timers then to be thought to preengage successfully after cascade stream of packets hereafter, and is cancelled REQ timers;Otherwise, downstream node ensures that node receives the REQ message using 3 retransmission mechanism.
The short data stream that step 24, determination can be sent with the long data flow cascade, and utilize the long number According to stream and short data stream construction cascade packet data streams.
Node is that each long data flow sets up a cascaded message table, the use for recording its reserving time slots Situation, so as to be submitted necessary information for construction cascade packet data streams.The word that the cascaded message table is recorded Section and its implication are as shown in table 1.
Table 1
Field name Field meanings
Prev A upper cascaded message list item
Index The call number of the list item
NextHop Next hop address
Leftspace The reserving time slots remaining space (byte)
ConcatenatedInfo The information of record cascade packet
Next Next cascaded message list item
For each short data stream to be sent, node will determine that whether each short data stream to be sent can be with It is cascaded transmission.For short data stream to be sent, the next hop address of the short data stream is obtained and described The packet size of short data stream, while information in cascaded message table short data stream to be sent.If institute The next hop address for stating short data stream is identical with the next hop address of the long data flow, the short data stream Packet size is less than the remaining space size of the available transmission time slot, then being defined as the short data stream can The short data stream sent with the long data flow cascade, using the long data flow and it is described can be with the long number The short data stream formation cascade packet data streams sent according to stream cascade.
While the accuracy in order to ensure information, after the short data stream that can cascade transmission is determined, node is more The remaining space size of the available transmission time slot of long data flow described in the new cascaded message table.Specifically, section Point subtracts the big of the short data stream that can cascade transmission with the currency of Leftspace fields in the cascaded message table The small transmission capacity for subtracting protection interval again, then updates Leftspace in cascade information table using the difference The value of field.
Step 25, to it is described cascade packet data streams carry out header-compressed, and using the link transmission money Transmit the cascade packet data streams after header-compressed in source.
In embodiments of the present invention, difference can be used for source-routed protocol and hop-by-hop Routing Protocol in header-compressed Header compression method, its distinguish be compress source-routed protocol packet header when, it is necessary in header compression Middle carrying routing information.
According to critical field, constant field, the sorting technique of unrelated field, can by IP (Internet Protocol, Internet Protocol) header, UDP (User Datagram Protocol, UDP header) enter Row classification, and design header compression form.
A) IP header fields are classified
IP complete header form and field is classified as shown in figure 3, each field meanings are as follows.
Version number:Fixed field.Current most IP agreement uses IPV4 header.
Header length:Fixed field.Because IPv4 packets may include the option of some variable numbers, therefore Need the field.But most IP packets at present are all without option, so general IP packets only 20 The stem of individual byte.
Service type:Fixed field.For a data flow, the grade of service is fixed.
Block length:Unrelated field.Decompressor end can extrapolate the value according to MAC layer frame length.
Identifier, mark and field offset amount:Unrelated field.Because these three fields and so-called IP fragmentation It is relevant.The diversity of each equipment is considered in Internet, the function of IP fragmentation is added.But wireless In Ad Hoc networks, because packet loss is high, the strategy of IP fragmentation is not used substantially.
TTL:Critical field.Represent hop count between source node and destination node.
Upper-layer protocol type, source IP address, purpose IP address:Fixed field.For same packet count For stream, these fields are constant.
Header check and:Unrelated field.Because what is transmitted in network is header compression, many unrelated fields are not Its original value can be recovered, verified using original stem and the mistake of compressed packet can not be detected.
B) UDP header field is classified
UDP complete header form and field is classified as shown in figure 4, each field meanings are as follows.
Source port number, destination slogan:Fixed field.For same data flow, these fields are Constant.
Data length:Unrelated field.Decompressor end can be according to MAC layer frame length, IP head lengths and biography Defeated layer head length extrapolates the value.
Examine and:Critical field.The field must be carried in header compression, for carrying out mistake to packet Verification.
C) IP/UDP header compressions form
Understood according to classification, in the IP/UDP headers, only TTL, UDP verification and, source-routed protocol Three fields of routing information are incompressible, and other fixed fields can be read from the stream information table of node Go out or extrapolate, unrelated field can be in most cases arbitrarily filled.In addition, in header compression, in addition it is also necessary to carry global Unique stream ID and Routing Protocol field, are respectively used to distinguish different stream and different Routing Protocols.Its In, global flow ID can be made up of local node number and local flow ID.
Specifically, node obtains the stream identification and Routing Protocol type of the cascade packet data streams (information of ip_p fields).
If the Routing Protocol type is user datagram udp protocol (ip_p=17), node reads institute State in the TTL critical fielies for cascading packet data streams, Routing Protocol type field, UDP checksum fields Information;Utilize stream identification, ttl field, the Routing Protocol class type-word of the cascade packet data streams Information composition header compression in section, UDP checksum fields, shown in such as Fig. 5 (a).
If the Routing Protocol type is DSR DSR agreements (ip_p=135), node reads institute State the letter in the ttl field for cascading packet data streams, Routing Protocol type field, UDP checksum fields Breath and routing information;Using the cascade ttl field of packet data streams, Routing Protocol type field, Information and routing information composition header compression in UDP checksum fields, shown in such as Fig. 5 (b).This When, node is according to routing information number, and Making Path buffer area and is put into the routing information of reading wherein. Node is read after critical field, divests all protocol headers.According to the order that last in, first out, routing information Data header is added to successively.After routing information addition is finished, node adds header compression again.
Confirmed, during using hop-by-hop Routing Protocol, the header size after compression is 6 bytes;Use source routing Header compression during agreement includes routing information.In Tactics-level Ad Hoc networks, maximum hop count is 3 jumps Left and right, now header compression size is about 6-18 byte.Compression of the header compression mechanisms to single header Measure as 22 bytes.
Complete after header-compressed, passed in the transmission timing that the downstream node is set using described can use Packet data streams are cascaded described in defeated slot transmission.In available transmission time slot, whenever node is sent one Packet data streams are cascaded, node can check the buffering that next cascade packet data streams are stored in cascade buffer area Whether area is empty, judges whether to need to cascade the cascade packet data streams sent with this, until cascade is slow Rush Qu Weikong.
In addition, being identified to the header compression, specifically, for the cascade added with header compression point Group data stream, 1 is designated by the preset field in its frame head portion, and the cascade added with header compression is identified with this Packet data streams.
Step 26, downstream node decompress header, decompressed after cascade packet data streams are received Cascade packet data streams afterwards.
Specifically, downstream node reads the header compression of the cascade packet data streams, the cascade point is obtained The stream identification of group data stream.Then, downstream node determines whether there is corresponding with the stream identification Traffic flow information.When there is traffic flow information corresponding with the stream identification, the cascade is read The header compression of packet data streams, obtains the Routing Protocol type of the cascade packet data streams.Then basis The header of the Routing Protocol type and the traffic flow information decompression cascade packet data streams.If no In the presence of traffic flow information corresponding with the stream identification, then explanation compression is abnormal.
If the Routing Protocol type is udp protocol, the information of the ttl field of the header compression is read, Decompression header is obtained with reference to the traffic flow information;If the Routing Protocol type is DSR agreements, read Information, the routing information of the ttl field of the header compression are taken, obtains and solves with reference to the traffic flow information Header compression.Then, the cascade packet data streams of decompression are consigned into upper strata.
As seen from the above, cascade and send out using the link transmission resource of long data flow in embodiments of the present invention Long data flow and short data stream are sent, thus effectively make use of channel transmission resource, the utilization of channel is improved Rate.Apply the present invention in mobile phone A d Hoc network networkings, can be in the mobile environment of resource-constrained The efficient channel access control method for being applied to mobile phone A d Hoc networks is provided.
As shown in fig. 6, a kind of data transmission device of the embodiment of the present invention three, including:
Receiving unit 71, for contracture group data stream to be inscribed in the current statistic cycle;Determining unit 72, is used In it is determined that whether the packet data streams are long data flow;Appointment unit 73, in the grouped data It is the long data flow reservation link transmission resource when stream is long data flow;Concatenation unit 74, for true Surely the short data stream that can be sent with the long data flow cascade, and utilize the long data flow and short data stream structure Make cascade packet data streams;Transmission unit 75, for transmitting the cascade using the link transmission resource Packet data streams.
In order to further improve data transmission efficiency, as shown in fig. 7, described device may also include:Processing is single Member 76, for carrying out header-compressed to the cascade packet data streams.Now, the transmission unit 75 has Body is used for, and the cascade packet data streams after header-compressed are transmitted using the link transmission resource.
Wherein, the determining unit 72 may include:
Acquisition module, the stream statistics value for obtaining the packet data streams within the current statistic cycle; Determining module, for when the stream statistics value of the packet data streams is less than upper limit threshold, determining the packet Data flow is short data stream;When the stream statistics value of the packet data streams is more than lower threshold, it is determined that described Packet data streams are long data flow;Wherein described upper limit threshold is more than the lower threshold.Specifically, described Acquisition module specifically for:Obtain the stream identification of the packet data streams;According to the stream identification Determine whether there is the list item corresponding with the grouped data traffic identifier;If in the presence of with the packet data streams The corresponding list item of mark, then by the corresponding flow accounting of the packet data streams within the current statistic cycle Value is added up;If in the absence of the list item corresponding with the grouped data traffic identifier, for the packet count Corresponding list item is created according to stream, and by the corresponding flowmeter of the packet data streams within the current statistic cycle Numerical value is designated as 1;Within the current statistic cycle, the stream of the packet data streams is calculated as follows Statistical value:λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively the current statistic cycle and before unify The flowmeter numerical value of the packet data streams in the meter cycle;α is damped coefficient, and value is (0,1).
Wherein, the appointment unit 73 may include:
Sending module, for sending the transmission time slot requirement for coming from long number according to stream to downstream node so that described Downstream node is the long data flow reserve transmission time slot according to transmission time slot requirement;Module is preengage, is used In the reserve requests information of the reception downstream node, and available transmission is determined according to the reserve requests information Time slot, wherein the reserve requests information includes the locally available transmission time slot that the downstream node is determined Information.Specifically, it is described reservation module specifically for:The locally available biography determined according to the downstream node The information of defeated time slot and the time slot state table of itself determine available transmission time slot.
Wherein, the concatenation unit 74 may include:
Acquisition module, for obtaining the next hop address of the long data flow and the residue sky of available transmission time slot Between size, and obtain the next hop address of the short data stream and the packet size of the short data stream;Really Cover half block, for the next hop address in the short data stream it is identical with the next hop address of the long data flow, , will be described short when the packet size of the short data stream is less than the remaining space size of the available transmission time slot Data flow is defined as the short data stream that can be sent with the long data flow cascade;Cascade module, for utilizing State long data flow and the short data stream formation cascade grouped data that can be sent with the long data flow cascade Stream.
In order to ensure the accuracy of data transfer, the concatenation unit 74 also includes:Update module, is used for Update the remaining space size of the available transmission time slot of the long data flow.
Wherein, the processing unit 75 includes:Acquisition module, for obtaining the cascade packet data streams Stream identification and Routing Protocol type;Processing module, for being number of users in the Routing Protocol type During according to report udp protocol, TTL critical fielies, the Routing Protocol type of the cascade packet data streams are read Information in field, UDP checksum fields, and the stream identification of the utilization cascade packet data streams, Information composition header compression in ttl field, Routing Protocol type field, UDP checksum fields; When the Routing Protocol type is DSR DSR agreements, the TTL of the cascade packet data streams is read Field, Routing Protocol type field, the information in UDP checksum fields and routing information, and utilize In the ttl field for cascading packet data streams, Routing Protocol type field, UDP checksum fields Information and routing information composition header compression.Now, the transmission unit 75 is specifically for described Utilized in the transmission timing of downstream node setting described in the available transmission slot transmission and cascade packet count According to stream.
For convenience of being decompressed, the processing module is additionally operable to be identified the header compression.
When being decompressed, the processing unit 75 also includes:Read module, for reading the level Join the header compression of packet data streams, obtain the stream identification of the cascade packet data streams;Determining module, It is used to determine whether there is traffic flow information corresponding with the stream identification;Decompression module, for working as During in the presence of traffic flow information corresponding with the stream identification, the compression of the cascade packet data streams is read Header, obtains the Routing Protocol type of the cascade packet data streams;According to the Routing Protocol type and institute State the header of the traffic flow information decompression cascade packet data streams.
Specifically, the decompression module specifically for:When the Routing Protocol type is udp protocol, The information of the ttl field of the header compression is read, decompression header is obtained with reference to the traffic flow information; When the Routing Protocol type is DSR agreements, the information of the ttl field of the reading header compression, Routing information, decompression header is obtained with reference to the traffic flow information.
The operation principle of device of the present invention can refer to the description of preceding method embodiment.
As seen from the above, cascade and send out using the link transmission resource of long data flow in embodiments of the present invention Long data flow and short data stream are sent, thus effectively make use of channel transmission resource, the utilization of channel is improved Rate.
Described above is the preferred embodiment of the present invention, it is noted that for the common skill of the art For art personnel, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, These improvements and modifications also should be regarded as protection scope of the present invention.

Claims (25)

1. a kind of data transmission method, it is characterised in that including:
Contracture group data stream is inscribed in the current statistic cycle;
Whether determine the packet data streams is long data flow;
It is the long data flow reservation link transmission resource when the packet data streams are long data flows;
It is determined that the short data stream that can be sent with the long data flow cascade, and utilize the long data flow and described Short data stream construction cascade packet data streams;
The cascade packet data streams are transmitted using the link transmission resource.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Header-compressed is carried out to the cascade packet data streams;
It is described to be specially using the link transmission resource transmission cascade packet data streams:Utilize the chain Cascade packet data streams of the road transmission resources for transmitting after header-compressed.
3. method according to claim 1 or 2, it is characterised in that the determination packet count Whether it is that long data flow includes according to stream:
Obtain the stream statistics value of the packet data streams within the current statistic cycle;
If the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that the packet data streams are short Data flow;If the stream statistics value of the packet data streams is more than lower threshold, it is determined that the packet data streams For long data flow;Wherein described upper limit threshold is more than the lower threshold.
4. method according to claim 3, it is characterised in that the acquisition is in the current statistic The stream statistics value of the packet data streams includes in cycle:
Obtain the stream identification of the packet data streams;
The list item corresponding with the grouped data traffic identifier is determined whether there is according to the stream identification;
If, will within the current statistic cycle in the presence of the list item corresponding with the grouped data traffic identifier The corresponding flowmeter numerical value of the packet data streams is added up;If being not present and the grouped data traffic identifier phase Corresponding list item, then create corresponding list item for the packet data streams, and within the current statistic cycle The corresponding flowmeter numerical value of the packet data streams is designated as 1;
Within the current statistic cycle, the stream statistics value of the packet data streams is calculated as follows: λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively in current statistic cycle and previous measurement period The flowmeter numerical value of the packet data streams;α is damped coefficient, and value is (0,1).
5. method according to claim 4, it is characterised in that described when the packet data streams are It is that the long data flow reservation link transmission resource includes during long data flow:
Send to downstream node and come from transmission time slot requirement of the long number according to stream so that the downstream node is according to institute Transmission time slot requirement is stated for the long data flow reserve transmission time slot;
The reserve requests information of the downstream node is received, and biography can be used according to reserve requests information determination Defeated time slot, wherein the reserve requests information includes the locally available transmission time slot that the downstream node is determined Information.
6. method according to claim 5, it is characterised in that described so that the downstream node root Include according to transmission time slot requirement for the long data flow reserve transmission time slot:
So that the downstream node selects locally available transmission time slot in local time slot, and locally may be used to described It is identified with transmission time slot.
7. method according to claim 5, it is characterised in that described to be believed according to the reserve requests Breath determines that available transmission time slot includes:
The information and the time slot state table of itself of the locally available transmission time slot determined according to the downstream node Determine available transmission time slot.
8. according to the method described in claim 1, it is characterised in that the determination can be with the long data Flowing the short data stream that cascade is sent, and construct cascade packet data streams includes:
Obtain the next hop address of the long data flow and the remaining space size of available transmission time slot;
Obtain the next hop address of the short data stream and the packet size of the short data stream;
If the next hop address of the short data stream is identical, described short with the next hop address of the long data flow The packet size of data flow is less than the remaining space size of the available transmission time slot, then by the short data stream It is defined as the short data stream that can be sent with the long data flow cascade;
Utilize the long data flow and the short data stream formation level that can be sent with the long data flow cascade Join packet data streams.
9. method according to claim 8, it is characterised in that methods described also includes:
Update the remaining space size of the available transmission time slot of the long data flow.
10. method according to claim 5, it is characterised in that described to the cascade grouped data Stream, which carries out header-compressed, to be included:
Obtain the stream identification and Routing Protocol type of the cascade packet data streams;
If the Routing Protocol type is user datagram udp protocol, the cascade grouped data is read Information in the TTL critical fielies of stream, Routing Protocol type field, UDP checksum fields;Using institute State the stream identification for cascading packet data streams, ttl field, Routing Protocol type field, UDP verifications Header compression is constituted with the information in field;
If the Routing Protocol type is DSR DSR agreements, the cascade packet data streams are read Ttl field, Routing Protocol type field, the information in UDP checksum fields and routing information; Utilize ttl field, Routing Protocol type field, the UDP checksum fields of the cascade packet data streams In information and routing information composition header compression;
It is described to be specially using cascade packet data streams of the link transmission resource transmission after header-compressed:
Using described in the available transmission slot transmission in the transmission timing that the downstream node is set Cascade packet data streams.
11. method according to claim 10, it is characterised in that methods described also includes:
The header compression is identified.
12. according to the method described in claim 1, it is characterised in that methods described also includes:
The header compression of the cascade packet data streams is read, the data flow of the cascade packet data streams is obtained Mark;
Determine whether there is traffic flow information corresponding with the stream identification;
When there is traffic flow information corresponding with the stream identification, the cascade packet data streams are read Header compression, obtain it is described cascade packet data streams Routing Protocol type;
The cascade packet data streams are decompressed according to the Routing Protocol type and the traffic flow information Header.
13. method according to claim 12, it is characterised in that described according to the Routing Protocol The header of type and the traffic flow information decompression cascade packet data streams includes:
If the Routing Protocol type is udp protocol, the information of the ttl field of the header compression is read, Decompression header is obtained with reference to the traffic flow information;
If the Routing Protocol type is DSR agreements, the information of the ttl field of the reading header compression, Routing information, decompression header is obtained with reference to the traffic flow information.
14. a kind of data transmission device, it is characterised in that including:
Receiving unit, for contracture group data stream to be inscribed in the current statistic cycle;
Determining unit, for determining whether the packet data streams are long data flow;
Appointment unit, for when the packet data streams are long data flows, being the long data flow reservation chain Road transfer resource;
Concatenation unit, for the short data stream for determining to send with the long data flow cascade, and described in Long data flow and short data stream construction cascade packet data streams;
Transmission unit, for transmitting the cascade packet data streams using the link transmission resource.
15. device according to claim 14, it is characterised in that described device also includes:
Processing unit, for carrying out header-compressed to the cascade packet data streams;
The transmission unit using the link transmission resource specifically for transmitting the cascade after header-compressed Packet data streams.
16. device according to claim 14, it is characterised in that the determining unit includes:
Acquisition module, the stream statistics value for obtaining the packet data streams within the current statistic cycle;
Determining module, for when the stream statistics value of the packet data streams is less than upper limit threshold, it is determined that described Packet data streams are short data stream;When the stream statistics value of the packet data streams is more than lower threshold, it is determined that The packet data streams are long data flow;Wherein described upper limit threshold is more than the lower threshold.
17. device according to claim 16, it is characterised in that the acquisition module specifically for:
Obtain the stream identification of the packet data streams;
The list item corresponding with the grouped data traffic identifier is determined whether there is according to the stream identification;
If, will within the current statistic cycle in the presence of the list item corresponding with the grouped data traffic identifier The corresponding flowmeter numerical value of the packet data streams is added up;If being not present and the grouped data traffic identifier phase Corresponding list item, then create corresponding list item for the packet data streams, and within the current statistic cycle The corresponding flowmeter numerical value of the packet data streams is designated as 1;
Within the current statistic cycle, the stream statistics value of the packet data streams is calculated as follows: λ=α λcurrent+(1-α)λold, wherein, λcurrentAnd λoldRespectively in current statistic cycle and previous measurement period The flowmeter numerical value of the packet data streams;α is damped coefficient, and value is (0,1).
18. the device according to claims 14 or 15, it is characterised in that the appointment unit includes:
Sending module, for sending the transmission time slot requirement for coming from long number according to stream to downstream node so that described Downstream node is the long data flow reserve transmission time slot according to transmission time slot requirement;
Reservation module, the reserve requests information for receiving the downstream node, and according to the reserve requests Information determines available transmission time slot, wherein the reserve requests information includes the sheet that the downstream node is determined The information of ground available transmission time slot.
19. device according to claim 18, it is characterised in that the reservation module specifically for: The information of the locally available transmission time slot determined according to the downstream node and the time slot state table of itself are determined Available transmission time slot.
20. device according to claim 14, it is characterised in that the concatenation unit includes:
Acquisition module, for obtaining the next hop address of the long data flow and the residue sky of available transmission time slot Between size, and obtain the next hop address of the short data stream and the packet size of the short data stream;
Determining module, the next-hop for the next hop address in the short data stream and the long data flow When location is identical, short data stream packet size is less than the remaining space size of the available transmission time slot, The short data stream that the short data stream is defined as to send with the long data flow cascade;
Cascade module, for using the long data flow and it is described can be sent with the long data flow cascade it is short Data manifold into cascade packet data streams.
21. device according to claim 20, it is characterised in that the concatenation unit also includes:
Update module, the remaining space size of the available transmission time slot for updating the long data flow.
22. device according to claim 18, it is characterised in that the processing unit includes:
Acquisition module, stream identification and Routing Protocol type for obtaining the cascade packet data streams;
Processing module, for when the Routing Protocol type is user datagram udp protocol, reading institute State in the TTL critical fielies for cascading packet data streams, Routing Protocol type field, UDP checksum fields Information, and using it is described cascade packet data streams stream identification, ttl field, Routing Protocol type Information composition header compression in field, UDP checksum fields;It is dynamic in the Routing Protocol type During source routing DSR agreements, ttl field, the Routing Protocol class type-word of the cascade packet data streams are read Section, the information in UDP checksum fields and routing information, and utilize the cascade packet data streams Ttl field, Routing Protocol type field, the information in UDP checksum fields and routing information composition Header compression;
The transmission unit is specifically for using described in the transmission timing that the downstream node is set Packet data streams are cascaded described in available transmission slot transmission.
23. device according to claim 22, it is characterised in that the processing module is additionally operable to pair The header compression is identified.
24. device according to claim 18, it is characterised in that the processing unit also includes:
Read module, the header compression for reading the cascade packet data streams, obtains the cascade packet The stream identification of data flow;
Determining module, is used to determine whether there is traffic flow information corresponding with the stream identification;
Decompression module, for when there is traffic flow information corresponding with the stream identification, reading institute The header compression of cascade packet data streams is stated, the Routing Protocol type of the cascade packet data streams is obtained;Root According to the Routing Protocol type and the header of the traffic flow information decompression cascade packet data streams.
25. device according to claim 24, it is characterised in that the decompression module is specifically used In:When the Routing Protocol type is udp protocol, the letter of the ttl field of the header compression is read Breath, decompression header is obtained with reference to the traffic flow information;When the Routing Protocol type is DSR agreements, Information, the routing information of the ttl field of the header compression are read, is obtained with reference to the traffic flow information Decompress header.
CN201610086823.XA 2016-02-16 2016-02-16 A kind of data transmission method and device Pending CN107087280A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610086823.XA CN107087280A (en) 2016-02-16 2016-02-16 A kind of data transmission method and device
PCT/CN2016/086606 WO2017140076A1 (en) 2016-02-16 2016-06-21 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610086823.XA CN107087280A (en) 2016-02-16 2016-02-16 A kind of data transmission method and device

Publications (1)

Publication Number Publication Date
CN107087280A true CN107087280A (en) 2017-08-22

Family

ID=59614988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610086823.XA Pending CN107087280A (en) 2016-02-16 2016-02-16 A kind of data transmission method and device

Country Status (2)

Country Link
CN (1) CN107087280A (en)
WO (1) WO2017140076A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019062007A1 (en) * 2017-09-26 2019-04-04 平安科技(深圳)有限公司 Data transmission method and apparatus, terminal device, and medium
CN111311996A (en) * 2020-03-27 2020-06-19 湖南有色金属职业技术学院 Online education informationization teaching system based on big data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100493075C (en) * 2003-11-06 2009-05-27 西安电子科技大学 Method and adaptation device for mixed transmission of variable-length data packets and fixed-length cells
KR100813611B1 (en) * 2004-02-18 2008-03-17 가부시키가이샤 엔티티 도코모 Packet transfer system, radio base station, and packet transfer route optimization method
EP2640011B1 (en) * 2012-03-15 2014-11-12 Alcatel Lucent A method for transporting real time packets
CN104836750B (en) * 2015-05-04 2017-12-05 大连理工大学 A kind of data center network stream scheduling method based on round-robin

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019062007A1 (en) * 2017-09-26 2019-04-04 平安科技(深圳)有限公司 Data transmission method and apparatus, terminal device, and medium
US11146571B2 (en) 2017-09-26 2021-10-12 Ping An Technology (Shenzhen) Co., Ltd. Data transmission method, apparatus, terminal device, and medium
CN111311996A (en) * 2020-03-27 2020-06-19 湖南有色金属职业技术学院 Online education informationization teaching system based on big data

Also Published As

Publication number Publication date
WO2017140076A1 (en) 2017-08-24

Similar Documents

Publication Publication Date Title
Yarvis et al. Real-world experiences with an interactive ad hoc sensor network
CN101150763B (en) A terminal and method for testing real time service transmission performance of WiMAX network
CN100593313C (en) Method and system for dynamic aggregation in wireless networks
JP4361565B2 (en) Node device, packet control device, wireless communication device, and transmission control method
CN107431968B (en) A method, electronic device and network for establishing routing table
CN101939955B (en) Method and system for controlling link saturation of synchronous data across packet networks
Wei et al. Robust multipath source routing protocol (RMPSR) for video communication over wireless ad hoc networks
TW201536071A (en) Buffer sizing for multi-hop networks
Tan et al. Congestion control in multihop wireless networks
CN106102084B (en) Wireless sensor network end-to-end time delay upper bound appraisal procedure based on retransmission feedback
US8885502B2 (en) Feedback protocol for end-to-end multiple path network systems
KR20220116479A (en) Systems and methods for multicast/broadcast service data
Abish et al. Detecting packet drop attacks in wireless sensor networks using bloom filter
KR101039550B1 (en) Data rate calculation method and bandwidth setting method using the same
CN107087280A (en) A kind of data transmission method and device
Lenders et al. Fragment forwarding in lossy networks
Saldana et al. Improving network efficiency with Simplemux
Kidston et al. Multihop multicast header compression in manets
CN115175242A (en) Communication method, network equipment and computer readable storage medium
Khan Cross-layer designs: a survey
Lal et al. QoS-aware routing for transmission of H. 264/SVC encoded video traffic over MANETs
Kidston et al. Impact of header compression on tactical networks
Talau et al. Available network bandwidth schema to improve performance in TCP protocols
Li Improving performance for CSMA/CA based wireless networks
Velloso et al. Evaluating voice traffic requirements on IEEE 802.11 ad hoc networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170822

WD01 Invention patent application deemed withdrawn after publication