WO2017140076A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2017140076A1
WO2017140076A1 PCT/CN2016/086606 CN2016086606W WO2017140076A1 WO 2017140076 A1 WO2017140076 A1 WO 2017140076A1 CN 2016086606 W CN2016086606 W CN 2016086606W WO 2017140076 A1 WO2017140076 A1 WO 2017140076A1
Authority
WO
WIPO (PCT)
Prior art keywords
data stream
packet data
information
time slot
long
Prior art date
Application number
PCT/CN2016/086606
Other languages
French (fr)
Chinese (zh)
Inventor
梅钦
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017140076A1 publication Critical patent/WO2017140076A1/en

Links

Images

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

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • MAC Medium Access Control
  • Ad Hoc mobile peer-to-peer
  • the number of long streams in the network is small, but the transmission of long-flow service data accounts for most of the traffic in the entire network.
  • the flow-driven MAC ensures the long-flow service data to be efficiently transmitted, and also mitigates the short-flow competition, thus improving the overall performance of the network.
  • Stream-driven MACs have better performance in networks dominated by long packets, but application of flow-driven MACs in networks with short packets dominates will significantly degrade network performance. This is because in a stream-driven MAC, one time slot is only used to transmit a single packet. The various applications of the mobile phone are filled with a large number of short packet services, such as chat messages, geographic locations, etc. If the flow-driven MAC is directly applied to the mobile Ad Hoc network, then the whole packet will still be utilized when transmitting the short packet service. Time slots are used for transmission, which results in wasted channel resources being wasted, thereby reducing channel utilization.
  • the present invention provides a data transmission method and apparatus to solve the problem that channel resources are wasted in the related art, to improve channel utilization.
  • a data transmission method includes:
  • the concatenated packet data stream is transmitted according to the link transmission resource.
  • the method further includes:
  • Transmitting the concatenated packet data stream according to the link transmission resource including:
  • the header packet data stream after the header compression is performed according to the link transmission resource transmission.
  • the determining whether the packet data stream is a long data stream includes:
  • the acquiring the flow statistics of the packet data flow in the current statistical period including:
  • the flow count value corresponding to the packet data flow is accumulated in the current statistical period
  • scheduling a link transmission resource for the long data stream including:
  • the reservation request information of the downstream node Receiving the reservation request information of the downstream node, and determining an available transmission time slot according to the reservation request information, wherein the reservation request information includes information of a locally available transmission time slot determined by the downstream node.
  • the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement, including:
  • the transmission time slot is required for the downstream node to select the locally available transmission time slot in a local time slot and identify the locally available transmission time slot.
  • the determining, according to the reservation request information, an available transmission time slot includes:
  • the available transmission time slot is determined based on information of a locally available transmission slot determined by the downstream node and its own slot status table.
  • the determining a short data stream that is sent in cascade with the long data stream, and constructing the cascading packet data stream according to the long data stream and the short data stream includes:
  • the short Determining, by the data stream, the short data stream sent in cascade with the long data stream;
  • the method further includes:
  • the performing header compression on the cascading packet data stream includes:
  • the routing protocol type is a user datagram UDP protocol
  • the information in the data stream identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the packet data stream constitutes a compressed header
  • the routing protocol type is a dynamic source routing DSR protocol
  • the data stream identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the packet data stream constitute a compressed header
  • the cascading packet data stream after header compression according to the link transmission resource transmission includes:
  • the concatenated packet data stream is transmitted according to the available transmission time slot within a transmission timing set by the downstream node.
  • the method further includes:
  • the compressed header is identified.
  • the method further includes:
  • the compressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data flow information includes:
  • the routing protocol type is the UDP protocol
  • the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data flow information
  • the routing protocol type is the DSR protocol
  • the information of the TTL field of the compressed header and the path information are read, and the decompressed header is obtained by combining the data flow information.
  • a data transmission device comprising:
  • a receiving module configured to: receive a packet data stream in a current statistical period
  • a determining module configured to: determine whether the packet data stream received by the determining module is a long data stream
  • a reservation module configured to: when the determining module determines that the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
  • a cascading module configured to: determine a short data stream that is sent in cascade with the long data stream, and construct a cascading packet data stream according to the long data stream and the short data stream;
  • a transmission module configured to: transmit the concatenated packet data stream constructed by the concatenation module according to the link transmission resource reserved by the reservation module.
  • the device further includes:
  • a processing module configured to: perform header compression on the cascading packet data stream constructed by the cascading module;
  • the transmission module is configured to: transmit the cascading packet data stream after the header compression by the processing module according to the link transmission resource reserved by the reservation module.
  • the determining module includes:
  • a first acquiring unit configured to: obtain a flow statistics value of the packet data flow in the current statistical period
  • a first determining unit configured to: when the flow statistics value of the packet data stream acquired by the acquiring unit is less than an upper threshold, determine that the packet data stream is a short data stream;
  • the first determining unit is further configured to: when the flow statistics value of the packet data stream acquired by the acquiring unit is greater than a lower threshold, determine that the packet data stream is a long data stream; wherein the upper threshold is greater than The lower threshold.
  • the first obtaining unit is configured to:
  • the flow count value corresponding to the packet data flow is accumulated in the current statistical period
  • the subscription module includes:
  • the sending unit is configured to: send, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve transmission for the long data stream according to the transmission time slot requirement Time slot
  • a reservation unit configured to: receive reservation request information of the downstream node, and determine an available transmission time slot according to the reservation request information, where the reservation request information includes a locally available transmission time slot determined by the downstream node information.
  • the reservation unit is configured to: determine the available transmission time slot according to the information about the locally available transmission time slot determined by the downstream node and its own slot status table.
  • the cascading module includes:
  • a second acquiring unit configured to: acquire a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquire a next hop address of the short data stream and a packet size of the short data stream ;
  • a second determining unit configured to: the next hop address of the short data stream acquired by the second acquiring unit is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than Determining, in the remaining space size of the available transmission time slot, the short data stream as the short data stream sent in cascade with the long data stream;
  • the cascading unit is configured to form the cascading packet data stream according to the long data stream and the short data stream sent in cascade with the long data stream determined by the second determining unit.
  • the cascading module further includes:
  • an updating unit configured to: update a remaining space size of an available transmission time slot of the long data stream acquired by the second acquiring unit.
  • the processing module includes:
  • a third acquiring unit configured to: acquire a data flow identifier and a routing protocol type of the cascading packet data stream;
  • a processing unit configured to: when the routing protocol type acquired by the third acquiring unit is a user datagram UDP protocol, read a TTL key field, a routing protocol type field, and a UDP school of the concatenated packet data stream And verifying information in the field, and composing a compressed header according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the concatenated packet data stream;
  • the processing unit is further configured to: when the routing protocol type acquired by the third obtaining unit is a dynamic source routing DSR protocol, read a TTL field, a routing protocol type field, and a UDP of the concatenated packet data stream. And the information in the checksum field and the path information, and composing a compressed header according to the data flow identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream;
  • the transmission module is configured to: transmit the concatenated packet data stream according to the available transmission time slot within a transmission timing set by the downstream node.
  • processing unit is further configured to: identify the compressed header.
  • processing module further includes:
  • a reading unit configured to: read a compressed header of the concatenated packet data stream, and obtain a data flow identifier of the concatenated packet data stream;
  • a third determining unit configured to: determine whether there is data flow information corresponding to the data flow identifier read by the reading unit;
  • a decompression unit configured to: when the third determining unit determines that there is data flow information corresponding to the data flow identifier, read a compressed header of the concatenated packet data stream, to obtain the level And a routing protocol type of the packet data stream; decompressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
  • the decompression unit is configured to: when the routing protocol type is the UDP protocol, read information about a TTL field of the compressed header, and obtain a decompressed header according to the data flow information;
  • the routing protocol type is the DSR protocol
  • the TTL field information and the path information of the compressed header are read, and the decompressed header is obtained by combining the data flow information.
  • the data transmission method and apparatus provided by the embodiments of the present invention determine a short data stream that can be sent in cascade with the long data stream by scheduling a link transmission resource for a long data stream received within a predetermined period, and according to the long data stream. Configuring the cascading packet data stream with the short data stream, so as to transmit the cascading packet data stream according to the link transmission resource; as can be seen from the above, in the technical solution provided by the embodiment of the present invention, the link transmission resource of the long data stream can be utilized. Cascading sends long data streams and short data streams, thus effectively utilizing channel transmission resources and improving channel utilization.
  • FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another data transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a format of an IP header in the related art
  • FIG. 5 is a schematic diagram of a compressed header format in a data transmission method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another compressed header format in a data transmission method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a determining module in a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a reservation module in a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a cascading module in a data transmission apparatus according to an embodiment of the present disclosure
  • FIG. 12 is a schematic structural diagram of a processing module in a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention.
  • the data transmission method provided by this embodiment includes the following steps, that is, steps 11-15:
  • Step 11 Receive a packet data stream in a current statistical period.
  • the current statistical period in this embodiment may be arbitrarily set to a length of time, for example, set to 1 minute or the like.
  • Step 12 Determine whether the packet data stream is a long data stream.
  • the long data stream and the short data stream in this embodiment are relative concepts. For example, when the duration of a packet data stream is greater than a preset value, it can be regarded as a long data stream; and the data stream whose duration is less than the preset value is regarded as short data. flow.
  • the preset value can be set according to actual experience.
  • determining whether the packet data flow is a long data flow may be: acquiring a flow statistics value of the packet data flow in the current statistical period; and confirming, when the packet data flow is confirmed When the flow statistics value is less than the upper threshold, the packet data stream is determined to be a short data stream; when the flow statistics value of the packet data stream is greater than the lower threshold, the packet data stream is determined to be a long data stream; wherein the upper threshold is greater than the lower threshold .
  • Step 13 When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream.
  • the implementation of the step in this embodiment may be: sending the downstream node to the downstream node.
  • the transmission time slot of the data stream is required to be used by the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement; then, receiving the reservation request information of the downstream node, and determining according to the reservation request information
  • An available transmission time slot, wherein the reservation request information may include information of a locally available transmission time slot determined by the downstream node.
  • Step 14 Determine a short data stream that is sent in cascade with the long data stream, and construct a cascaded packet data stream according to the long data stream and the short data stream.
  • the step of implementing the step in the embodiment may be: acquiring a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquiring a next hop address of the short data stream and the short data stream.
  • Packet size when the next hop address of the short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot of the long data stream,
  • the short data stream is determined to be a short data stream that can be sent in cascade with a long data stream.
  • a concatenated packet data stream is then formed from the long data stream and the short data stream that can be cascaded with the long data stream.
  • Step 15 Transport the cascaded packet data stream according to the link transmission resource.
  • the long data stream and the short data stream can be sent according to the link transmission resource of the long data stream, thereby effectively utilizing the channel transmission resource and improving the channel utilization rate.
  • FIG. 2 is a flowchart of another data transmission method according to an embodiment of the present invention.
  • the data transmission method provided in this embodiment may be performed by any node in the network, and the method may include the following steps, that is, steps 21 to 26:
  • Step 21 Receive a packet data stream in a current statistical period.
  • Step 22 Determine whether the packet data stream is a long data stream.
  • the node receives each packet data stream in the current statistical period T, and performs statistics on the number of packets received in each packet data stream to obtain a stream count value in the current statistical period; wherein, the length of the current statistical period T can be Arbitrarily set.
  • the implementation of the step in this embodiment may be: whenever a node receives a packet data stream, the node defaults to a short stream, and at this time, the node first reads through the quintuple of the packet data stream.
  • the data stream identifier of the packet data stream is: the source address, the destination address, the source port, the destination port, and the quality of service (QoS: QoS);
  • QoS quality of service
  • the flow statistics table stored in the data flow identifier may be determined according to the data flow identifier, and the entry corresponding to the data flow identifier of the packet data flow is determined in the flow statistics table, and the data flow statistics table is determined to be associated with the data flow identifier.
  • the flow count value corresponding to the packet data flow is incremented by one in the current statistical period; when it is determined that the data flow statistics table does not have an entry corresponding to the data flow identifier, the packet data flow is A corresponding entry is created in the flow statistics table, and the flow count value corresponding to the packet data flow is recorded as 1 in the current statistical period. Then, for each new packet data stream received, the statistics of the current stream count value are performed in the above manner until the current statistical period ends.
  • the flow statistics of the packet data stream in the current statistical period are obtained.
  • the flow statistics of the packet data stream is less than the upper threshold, determining that the packet data stream is a short data stream; when the flow statistics value of the packet data stream is greater than a lower threshold, determining that the packet data stream is a long data stream; wherein the upper limit
  • the threshold is greater than the lower threshold described above.
  • the upper threshold and the lower threshold may be arbitrarily set and are constant. The purpose of setting the foregoing two thresholds in the embodiment of the present invention is to eliminate the influence of jitter of the stream.
  • the flow statistics of the packet data flow may be calculated as follows:
  • ⁇ current +(1 ⁇ ) ⁇ old , where ⁇ current is the stream count value of the packet data stream in the current statistical period, and ⁇ old is the stream count value of the packet data stream in the previous statistical period, ⁇ is Damping coefficient, the value of ⁇ is (0, 1).
  • the purpose of using the damping function in this embodiment is to eliminate the effects of jitter of the stream.
  • Step 23 When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream.
  • the step may be implemented by: the node sends a transmission time slot request originating from the long data stream to the downstream node, where the transmission time slot is required for the downstream node to be long according to the transmission time slot requirement.
  • the data stream is reserved for transmission time slots.
  • the node may change the format of the long data stream packet to the packet format of the reservation token, thereby notifying the downstream node that the long data stream to be reserved for the reserved time slot is to be transmitted.
  • the downstream node selects the local available transmission time slot in the local time slot, and identifies the locally available transmission time slot, and identifies it as a semi-subscription state.
  • the downstream node then includes the slot number of these slots in the reservation request information REQ, and sends the REQ request to the node.
  • the downstream node starts the REQ timer and completes the reservation initiation.
  • the node receives the reservation request information of the downstream node, and according to the locally available transmission determined by the downstream node
  • the information of the time slot and its own time slot status table determine the available transmission time slots. If the downstream node receives the following concatenated packet flow within the REQ timer, the reservation is considered successful and the REQ timer is cancelled; otherwise, the downstream node uses 3 retransmission mechanisms to ensure that the node receives the REQ message.
  • Step 24 Determine a short data stream that is sent in cascade with the long data stream, and construct a cascaded packet data stream according to the long data stream and the short data stream.
  • the node establishes a cascading information table for each long data stream for recording the usage of its reserved time slots, thereby providing the necessary information for constructing the cascading packet data stream.
  • the fields recorded in the cascading information table and their meanings are shown in Table 1.
  • the node For each short data stream to be sent, the node will determine whether each short data stream to be transmitted can be sent in cascade. Optionally, for the short data stream to be sent, obtain a next hop address of the short data stream and a packet size of the short data stream, and send the short data stream to be sent according to the information in the cascading information table. When the next hop address of a short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot of the long data stream, the short data stream is used. Determining is a short data stream that can be sent in cascade with the long data stream, and forming a concatenated packet data stream according to the long data stream and the short data stream that can be sent in cascade with the long data stream.
  • the node updates the remaining space size of the available transmission time slots of the long data stream in the concatenation information table. For example, the node subtracts the size of the short data stream that can be cascaded and subtracts the transmission capacity of the guard interval by using the current value of the Leftspace field in the concatenation information table, and then updates the Leftspace field in the concatenation information table according to the difference value. value.
  • Step 25 Perform header compression on the cascading packet data stream, and perform header-compressed cascading packet data stream according to the link transmission resource transmission.
  • header compression in the implementation of the header compression, different header compression methods may be used for the source routing protocol and the hop-by-hop routing protocol, and the difference is that when the packet header of the source routing protocol is compressed, the path needs to be carried in the compressed header. information.
  • IP Internet Protocol
  • UDP User Datagram Protocol
  • FIG. 3 The complete header format and field classification of IP is shown in Figure 3. It is a schematic diagram of the IP header format in the related technology. The meanings of the fields in Figure 3 are as follows:
  • IPv4 Version number: Fixed field. Most IP protocols currently use the IPv4 header.
  • Head length fixed field. This field is required because IPv4 packets may contain some variable number of options. However, most IP packets currently have no options, so a typical IP packet has only a 20-byte header.
  • Service Type Fixed field. For a data stream, the service level is fixed.
  • the decompressing end can calculate the value according to the MAC layer frame length.
  • IP fragmentation has been added in consideration of the diversity of devices in the Internet.
  • the strategy of IP fragmentation is basically not adopted.
  • TTL Keyword segment. Indicates the number of hops between the source node and the destination node.
  • Header checksum Unrelated fields. Because the compressed header is transmitted in the network, many irrelevant fields cannot recover their original values, and the original header checksum cannot detect the error of compressing the packet.
  • Figure 4 is the UDP packet format in the related art. Schematic, the meaning of each field in Figure 4 is as follows:
  • Source port number, destination port number fixed field. These fields are constant for the same data stream.
  • the decompressing end can derive the value according to the MAC layer frame length, the IP header length, and the transport layer header length.
  • the classification in the IP/UDP header, only the TTL, the UDP checksum, and the path information of the source routing protocol are incompressible, and other fixed fields can be read or derived from the node's flow information table. , irrelevant fields can be arbitrarily filled.
  • a globally unique flow ID and routing protocol field are also required to distinguish different flows and different routing protocols.
  • the global flow ID may be composed of a local node number and a local stream ID.
  • the method for performing header compression on the cascading packet data stream in this embodiment may be: the node obtains the data stream identifier of the cascading packet data stream and the routing protocol type (information of the ip_p field).
  • FIG. 5 A schematic diagram of a compressed header format in a transmission method.
  • the data stream identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the data stream constitute a compressed header, as shown in FIG. 6, which is another compression in the data transmission method according to an embodiment of the present invention.
  • FIG. 6 is another compression in the data transmission method according to an embodiment of the present invention.
  • FIG. 6 is another compression in the data transmission method according to an embodiment of the present invention.
  • FIG. 6 is another compression in the data transmission method according to an embodiment of the present invention.
  • FIG. 6 is another compression in the data transmission method according to an embodiment of the present invention.
  • FIG. 6 is another compression in the data transmission method according to an embodiment of the present invention.
  • the compressed header size is 6 bytes; the compressed header when using the source routing protocol contains path information.
  • the maximum hop count is about 3 hops, and the compressed header size is about 6-18 bytes.
  • the header compression mechanism compresses a single header by 22 bytes.
  • the method for transmitting the concatenated packet data may be: transmitting the concatenated packet data stream according to an available transmission time slot within a transmission timing set by the downstream node.
  • the available transmission time slot each time the node sends a cascading packet data stream, the node checks whether the buffer of the next cascading packet data stream in the cascading buffer area is empty, thereby determining whether there is a need for cascading.
  • the cascaded packet data stream is sent until the cascade buffer is empty.
  • the embodiment of the present invention may further identify the compressed header. For example, for the cascading packet data stream to which the compressed header is added, the preset field of the frame header is identified as 1, thereby adding the compressed header. Cascading packet data stream.
  • Step 26 After receiving the cascading packet data stream, the downstream node decompresses the header to obtain the decompressed cascading packet data stream.
  • the method for decompressing the header of the downstream node in the embodiment may be: the downstream node reads the compressed header of the cascading packet data stream, and obtains the data flow identifier of the cascading packet data stream; and then, the downstream node determines whether There is data flow information corresponding to the data flow identifier; when it is determined that the data flow information corresponding to the data flow identifier exists, the compressed header of the cascaded packet data stream is read, and the routing protocol type of the cascaded packet data stream is obtained; Decompressing the compressed header of the concatenated packet data stream according to the obtained routing protocol type and data stream information.
  • the compression exception is indicated.
  • the type of the routing protocol in this embodiment may also be a UDP protocol or a DSR protocol.
  • the routing protocol type is UDP
  • the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data flow information.
  • the routing protocol type is the DSR protocol
  • the information of the TTL field of the compressed header and the path information are read, and the decompressed header is obtained by combining the data flow information.
  • the decompressed cascading packet data stream is then delivered to the upper layer.
  • the long data stream and the short data stream can be sent according to the link transmission resource of the long data stream, thereby effectively utilizing the channel transmission resource and improving the channel utilization rate.
  • the embodiment of the present invention is applied to a mobile phone Ad Hoc network, and the resource may be limited.
  • the mobile environment provides an efficient channel access control method for mobile Ad Hoc networks.
  • FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention.
  • the data transmission device provided in this embodiment may include:
  • the receiving module 71 is configured to: receive a packet data stream in a current statistical period
  • the determining module 72 is configured to: determine whether the packet data stream received by the receiving module 71 is a long data stream;
  • the reservation module 73 is configured to: when the determining module 72 determines that the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
  • the cascading module 74 is configured to: determine a short data stream that can be sent in cascade with the long data stream, and construct a cascading packet data stream according to the long data stream and the short data stream;
  • the transmission module 75 is configured to: concatenate the packet data stream constructed by the link transmission resource transmission concatenation module 74 reserved according to the reservation module 73.
  • FIG. 8 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present invention.
  • the apparatus provided in this embodiment may further include:
  • the processing module 76 is configured to perform header compression on the concatenated packet data stream constructed by the concatenation module 74.
  • the transmission module 75 in this embodiment is configured to perform header compression of the concatenated packet data stream according to the link transmission resource transmission processing module 76 reserved by the reservation module 73.
  • FIG. 9 is a schematic structural diagram of a determining module in a data transmission apparatus according to an embodiment of the present invention.
  • the determining module 72 in this embodiment may include:
  • the first obtaining unit 721 is configured to: acquire a flow statistics value of the packet data flow in a current statistical period;
  • the first determining unit 722 is configured to: when the flow statistics value of the packet data stream acquired by the obtaining unit 721 is less than an upper threshold, determine that the packet data stream is a short data stream;
  • the first determining unit 722 is further configured to: when the flow statistics value of the packet data stream acquired by the obtaining unit 721 is greater than a lower threshold, determine that the packet data stream is a long data stream; wherein the upper threshold is greater than a lower threshold.
  • the first obtaining unit 721 in this embodiment is configured to: obtain a data flow identifier of the packet data flow; and determine, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists; When it is determined that the entry corresponding to the data flow identifier exists, the flow count value corresponding to the packet data flow is accumulated in the current statistical period; when it is determined that there is no entry corresponding to the data flow identifier, The packet data stream creates a corresponding entry, and records the flow count value corresponding to the packet data flow as 1 in the current statistical period; in an actual application, the flow of the packet data flow is calculated in the current statistical period as follows.
  • FIG. 10 is a schematic structural diagram of a reservation module in a data transmission apparatus according to an embodiment of the present invention.
  • the reservation module 73 in this embodiment may include:
  • the sending unit 731 is configured to: send, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement;
  • the reservation unit 732 is configured to: receive the reservation request information of the downstream node, and determine an available transmission time slot according to the reservation request information, where the reservation request information includes the locally available transmission time slot determined by the downstream node. information.
  • the reservation unit 732 in this embodiment is configured to: determine an available transmission time slot according to the information of the locally available transmission time slot determined by the downstream node and its own slot state table.
  • FIG. 11 is a schematic structural diagram of a cascading module in a data transmission apparatus according to an embodiment of the present invention.
  • the cascading module 74 in this embodiment may include:
  • the second obtaining unit 741 is configured to: acquire a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquire a next hop address of the short data stream and a packet size of the short data stream;
  • the second determining unit 742 is configured to: the next hop address of the short data stream acquired by the second obtaining unit 741 is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the available transmission time slot. When the remaining space is small, the short data stream is determined as a short data stream that can be sent in cascade with the long data stream;
  • the cascading unit 743 is configured to form a cascading packet data stream according to the short data stream that is determined by the long data stream and the second determining unit 742 and can be cascaded and transmitted with the long data stream.
  • the cascading module 74 in this embodiment may also The method includes: an updating unit 744, configured to: update a remaining space size of an available transmission time slot of the long data stream acquired by the second obtaining unit 741.
  • FIG. 12 is a schematic structural diagram of a processing module in a data transmission apparatus according to an embodiment of the present invention.
  • the processing module 76 in this embodiment includes:
  • the third obtaining unit 761 is configured to: obtain a data flow identifier and a routing protocol type of the cascading packet data stream;
  • the processing unit 762 is configured to: when the routing protocol type acquired by the third obtaining unit 761 is the user datagram UDP protocol, read the TTL key field, the routing protocol type field, and the UDP checksum of the concatenated packet data stream.
  • the information in the field, and the compressed header is formed according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the concatenated packet data stream;
  • the processing unit 762 is further configured to: when the routing protocol type acquired by the third obtaining unit 761 is a dynamic source routing DSR protocol, read a TTL field, a routing protocol type field, and a UDP checksum of the concatenated packet data stream.
  • the information in the field and the path information, and the compressed header is formed according to the data flow identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream.
  • the transmission module 75 in this embodiment is configured to: transmit the concatenated packet data stream according to the available transmission time slot in a transmission timing set by the downstream node.
  • processing unit 762 in this embodiment may be further configured to: identify the compressed header.
  • the processing module 76 in this embodiment may further include:
  • the reading unit 763 is configured to: read a compressed header of the concatenated packet data stream, and obtain a data flow identifier of the concatenated packet data stream;
  • the third determining unit 764 is configured to: determine whether there is data flow information corresponding to the data flow identifier read by the reading unit 763;
  • the decompressing unit 765 is configured to: when the third determining unit 764 determines that the data stream information corresponding to the data stream identifier exists, read a compressed header of the concatenated packet data stream, and acquire the concatenated packet data stream. a routing protocol type; decompressing a compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
  • the decompression unit 765 in this embodiment is configured to: the routing protocol type is UDP.
  • the protocol the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data stream information.
  • the routing protocol type is the DSR protocol
  • the information of the TTL field of the compressed header and the path information are read, and the solution is obtained by combining the data stream information. Compress the header.
  • a long data stream and a short data stream can be transmitted by using a link transmission resource of a long data stream, thereby effectively utilizing channel transmission resources and improving channel utilization.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • Embodiments of the present invention determine a short data stream that can be sent in cascade with the long data stream by preserving a link transmission resource for a long data stream received within a predetermined period, and construct a concatenated packet according to the long data stream and the short data stream.
  • the data stream is configured to transmit the cascading packet data stream according to the link transmission resource; as can be seen from the above, in the technical solution provided by the embodiment of the present invention, the link transmission resource of the long data stream can be used to cascade and transmit the long data stream and the short The data stream thus effectively utilizes channel transmission resources and improves channel utilization.

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

A data transmission method and device. The method comprises: receiving, in a present statistical period, a grouped data stream; determining whether the grouped data stream is a long data stream; if so, reserving a link transmission resource for the long data stream; determining a short data stream transmitted in parallel with the long data stream, and constructing, according to the long data stream and the short data stream, parallel transmitted grouped data streams; and transmitting, according to the link transmission resource, the parallel transmitted grouped data streams.

Description

一种数据传输方法及装置Data transmission method and device 技术领域Technical field
本申请涉及但不限于通信技术领域。This application relates to, but is not limited to, the field of communication technology.
背景技术Background technique
流驱动媒体接入控制(Medium Access Control,简称为:MAC)是一种成熟的MAC方法,可以用于手机点对点(Ad Hoc)网络。它结合了预约接入信道和竞争接入信道两种机制,可动态的判断、检测和标识长流以区分网络数据流,从而实现动态地为长流预约信道资源。Medium Access Control (MAC) is a mature MAC method that can be used in mobile peer-to-peer (Ad Hoc) networks. It combines two mechanisms of reserved access channel and competing access channel, which can dynamically judge, detect and identify long-flow to distinguish network data flow, so as to dynamically reserve channel resources for long-flow.
通常地,网络中的长流数目较少,但是长流业务数据的传输却占据了整个网络中的大部分流量。流驱动MAC在优先保证长流业务数据高效传输的同时,还缓解了短流的竞争,因此提高了网络的整体性能。Generally, the number of long streams in the network is small, but the transmission of long-flow service data accounts for most of the traffic in the entire network. The flow-driven MAC ensures the long-flow service data to be efficiently transmitted, and also mitigates the short-flow competition, thus improving the overall performance of the network.
然而,在实际应用中有以下发现,流驱动MAC在以长分组为主的网络里具有较好的性能,但是在以短分组为主的网络中应用流驱动MAC将会使网络性能大幅下降。这是因为在流驱动MAC中,一个时隙仅用于传输单个分组。而手机的各类应用程序中充斥着大量的短分组业务,如聊天消息、地理位置等,如果将流驱动MAC直接应用于手机Ad Hoc网络中,那么在传输短分组业务时仍会利用一整个时隙来进行传输,这就导致了有限的信道资源被浪费,从而降低了信道利用率。However, in practical applications, the following findings are found: Stream-driven MACs have better performance in networks dominated by long packets, but application of flow-driven MACs in networks with short packets dominates will significantly degrade network performance. This is because in a stream-driven MAC, one time slot is only used to transmit a single packet. The various applications of the mobile phone are filled with a large number of short packet services, such as chat messages, geographic locations, etc. If the flow-driven MAC is directly applied to the mobile Ad Hoc network, then the whole packet will still be utilized when transmitting the short packet service. Time slots are used for transmission, which results in wasted channel resources being wasted, thereby reducing channel utilization.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种数据传输方法及装置,以解决相关技术中信道资源被浪费的问题,用以提高信道利用率。The present invention provides a data transmission method and apparatus to solve the problem that channel resources are wasted in the related art, to improve channel utilization.
一种数据传输方法,包括:A data transmission method includes:
在当前统计周期内接收分组数据流; Receiving a packet data stream in a current statistical period;
确定所述分组数据流是否为长数据流;Determining whether the packet data stream is a long data stream;
当所述分组数据流是长数据流时,为所述长数据流预约链路传输资源;When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流;Determining a short data stream sent in cascade with the long data stream, and constructing a concatenated packet data stream according to the long data stream and the short data stream;
根据所述链路传输资源传输所述级联分组数据流。The concatenated packet data stream is transmitted according to the link transmission resource.
可选地,所述方法还包括:Optionally, the method further includes:
对所述级联分组数据流进行报头压缩;Perform header compression on the concatenated packet data stream;
所述根据所述链路传输资源传输所述级联分组数据流,包括:Transmitting the concatenated packet data stream according to the link transmission resource, including:
根据所述链路传输资源传输进行报头压缩后的级联分组数据流。The header packet data stream after the header compression is performed according to the link transmission resource transmission.
可选地,所述确定所述分组数据流是否为长数据流,包括:Optionally, the determining whether the packet data stream is a long data stream includes:
获取在所述当前统计周期内所述分组数据流的流统计值;Obtaining a flow statistics value of the packet data flow in the current statistical period;
当所述分组数据流的流统计值小于上限阈值时,确定所述分组数据流为短数据流;当所述分组数据流的流统计值大于下限阈值时,确定所述分组数据流为长数据流;其中,所述上限阈值大于所述下限阈值。Determining, when the flow statistics of the packet data stream is less than an upper threshold, determining that the packet data stream is a short data stream; and determining, when the flow statistics of the packet data stream is greater than a lower threshold, determining the packet data stream as a long data. a flow; wherein the upper threshold is greater than the lower threshold.
可选地,所述获取在所述当前统计周期内所述分组数据流的流统计值,包括:Optionally, the acquiring the flow statistics of the packet data flow in the current statistical period, including:
获取所述分组数据流的数据流标识;Obtaining a data flow identifier of the packet data stream;
根据所述数据流标识确定是否存在与所述分组数据流的数据流标识相对应的表项;Determining, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists;
当确定出存在与所述数据流标识相对应的表项时,在所述当前统计周期内将所述分组数据流对应的流计数值进行累加;When it is determined that there is an entry corresponding to the data flow identifier, the flow count value corresponding to the packet data flow is accumulated in the current statistical period;
当确定出不存在与所述数据流标识相对应的表项时,为所述分组数据流创建对应的表项,并在所述当前统计周期内将所述分组数据流对应的流计数值记为1;When it is determined that there is no entry corresponding to the data flow identifier, a corresponding entry is created for the packet data flow, and the flow count value corresponding to the packet data flow is recorded in the current statistical period. Is 1;
在所述当前统计周期内,按照如下方式计算所述分组数据流的流统计值:λ=αλcurrent+(1-α)λold,其中,λcurrent为所述当前统计周期内所述分组数据流的流计数值,λold为前一统计周期内所述分组数据流的流计数值,α为阻尼系数, α的取值为(0,1)。During the current statistical period, the flow statistics of the packet data stream are calculated as follows: λ=αλ current +(1−α)λ old , where λ current is the packet data in the current statistical period The stream count value of the stream, λ old is the stream count value of the packet data stream in the previous statistical period, α is the damping coefficient, and the value of α is (0, 1).
可选地,所述当所述分组数据流是长数据流时,为所述长数据流预约链路传输资源,包括:Optionally, when the packet data stream is a long data stream, scheduling a link transmission resource for the long data stream, including:
向下游节点发送源于所述长数据流的传输时隙要求,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙;Transmitting, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement;
接收所述下游节点的预约请求信息,并根据所述预约请求信息确定可用传输时隙,其中,所述预约请求信息中包括所述下游节点确定的本地可用传输时隙的信息。Receiving the reservation request information of the downstream node, and determining an available transmission time slot according to the reservation request information, wherein the reservation request information includes information of a locally available transmission time slot determined by the downstream node.
可选地,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙包括:Optionally, the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement, including:
所述传输时隙要求用于所述下游节点在本地时隙中选择所述本地可用传输时隙,并对所述本地可用传输时隙进行标识。The transmission time slot is required for the downstream node to select the locally available transmission time slot in a local time slot and identify the locally available transmission time slot.
可选地,所述根据所述预约请求信息确定可用传输时隙,包括:Optionally, the determining, according to the reservation request information, an available transmission time slot, includes:
根据所述下游节点确定的本地可用传输时隙的信息和自身的时隙状态表确定所述可用传输时隙。The available transmission time slot is determined based on information of a locally available transmission slot determined by the downstream node and its own slot status table.
可选地,所述确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流,包括:Optionally, the determining a short data stream that is sent in cascade with the long data stream, and constructing the cascading packet data stream according to the long data stream and the short data stream, includes:
获取所述长数据流的下一跳地址和可用传输时隙的剩余空间大小;Obtaining a next hop address of the long data stream and a remaining space size of the available transmission time slot;
获取所述短数据流的下一跳地址和所述短数据流的分组大小;Obtaining a next hop address of the short data stream and a packet size of the short data stream;
当所述短数据流的下一跳地址与所述长数据流的下一跳地址相同,且所述短数据流的分组大小小于所述可用传输时隙的剩余空间大小时,将所述短数据流确定为所述与所述长数据流级联发送的短数据流;When the next hop address of the short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot, the short Determining, by the data stream, the short data stream sent in cascade with the long data stream;
根据所述长数据流和所述与所述长数据流级联发送的短数据流形成所述级联分组数据流。And forming the concatenated packet data stream according to the long data stream and the short data stream sent in cascade with the long data stream.
可选地,所述方法还包括:Optionally, the method further includes:
更新所述长数据流的所述可用传输时隙的剩余空间大小。Updating the remaining space size of the available transmission time slots of the long data stream.
可选地,所述对所述级联分组数据流进行报头压缩,包括: Optionally, the performing header compression on the cascading packet data stream includes:
获取所述级联分组数据流的数据流标识和路由协议类型;Obtaining a data flow identifier and a routing protocol type of the concatenated packet data stream;
当所述路由协议类型为用户数据报UDP协议时,读取所述级联分组数据流的生存时间TTL关键字段、路由协议类型字段、UDP校验和字段中的信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头;And when the routing protocol type is a user datagram UDP protocol, reading information in a lifetime TTL key field, a routing protocol type field, a UDP checksum field of the concatenated packet data stream, and according to the level The information in the data stream identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the packet data stream constitutes a compressed header;
当所述路由协议类型为动态源路由DSR协议时,读取所述级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头;When the routing protocol type is a dynamic source routing DSR protocol, reading the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream, and according to the cascading The data stream identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the packet data stream constitute a compressed header;
所述根据所述链路传输资源传输进行报头压缩后的级联分组数据流,包括:The cascading packet data stream after header compression according to the link transmission resource transmission includes:
在所述下游节点设定的发送定时时间内根据所述可用传输时隙传输所述级联分组数据流。The concatenated packet data stream is transmitted according to the available transmission time slot within a transmission timing set by the downstream node.
可选地,所述方法还包括:Optionally, the method further includes:
对所述压缩报头进行标识。The compressed header is identified.
可选地,所述方法还包括:Optionally, the method further includes:
读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的数据流标识;Reading a compressed header of the concatenated packet data stream, and acquiring a data flow identifier of the concatenated packet data stream;
确定是否存在与所述数据流标识对应的数据流信息;Determining whether there is data flow information corresponding to the data flow identifier;
当确定出存在与所述数据流标识对应的数据流信息时,读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的路由协议类型;When it is determined that there is data flow information corresponding to the data flow identifier, reading a compressed header of the concatenated packet data stream, and acquiring a routing protocol type of the concatenated packet data stream;
根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头。Decompressing a compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
可选地,所述根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头,包括:Optionally, the compressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data flow information includes:
当所述路由协议类型为UDP协议时,读取所述压缩报头的TTL字段的信息,结合所述数据流信息获取解压缩报头; When the routing protocol type is the UDP protocol, the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data flow information;
当所述路由协议类型为DSR协议时,读取所述压缩报头的TTL字段的信息、路径信息,结合所述数据流信息获取解压缩报头。When the routing protocol type is the DSR protocol, the information of the TTL field of the compressed header and the path information are read, and the decompressed header is obtained by combining the data flow information.
一种数据传输装置,包括:A data transmission device comprising:
接收模块,设置为:在当前统计周期内接收分组数据流;a receiving module, configured to: receive a packet data stream in a current statistical period;
确定模块,设置为:确定所述确定模块接收的所述分组数据流是否为长数据流;a determining module, configured to: determine whether the packet data stream received by the determining module is a long data stream;
预约模块,设置为:在所述确定模块确定出所述分组数据流是长数据流时,为所述长数据流预约链路传输资源;a reservation module, configured to: when the determining module determines that the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
级联模块,设置为:确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流;a cascading module, configured to: determine a short data stream that is sent in cascade with the long data stream, and construct a cascading packet data stream according to the long data stream and the short data stream;
传输模块,设置为:根据所述预约模块预约的所述链路传输资源传输所述级联模块构造的所述级联分组数据流。And a transmission module, configured to: transmit the concatenated packet data stream constructed by the concatenation module according to the link transmission resource reserved by the reservation module.
可选地,所述装置还包括:Optionally, the device further includes:
处理模块,设置为:对所述级联模块构造的所述级联分组数据流进行报头压缩;a processing module, configured to: perform header compression on the cascading packet data stream constructed by the cascading module;
所述传输模块,是设置为:根据所述预约模块预约的所述链路传输资源传输所述处理模块进行报头压缩后的级联分组数据流。The transmission module is configured to: transmit the cascading packet data stream after the header compression by the processing module according to the link transmission resource reserved by the reservation module.
可选地,所述确定模块包括:Optionally, the determining module includes:
第一获取单元,设置为:获取在所述当前统计周期内所述分组数据流的流统计值;a first acquiring unit, configured to: obtain a flow statistics value of the packet data flow in the current statistical period;
第一确定单元,设置为:在所述获取单元获取的所述分组数据流的流统计值小于上限阈值时,确定所述分组数据流为短数据流;a first determining unit, configured to: when the flow statistics value of the packet data stream acquired by the acquiring unit is less than an upper threshold, determine that the packet data stream is a short data stream;
所述第一确定单元,还设置为:在所述获取单元获取的所述分组数据流的流统计值大于下限阈值时,确定所述分组数据流为长数据流;其中,所述上限阈值大于所述下限阈值。The first determining unit is further configured to: when the flow statistics value of the packet data stream acquired by the acquiring unit is greater than a lower threshold, determine that the packet data stream is a long data stream; wherein the upper threshold is greater than The lower threshold.
可选地,所述第一获取单元,是设置为:Optionally, the first obtaining unit is configured to:
获取所述分组数据流的数据流标识; Obtaining a data flow identifier of the packet data stream;
根据所述数据流标识确定是否存在与所述分组数据流的数据流标识相对应的表项;Determining, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists;
当确定出存在与所述数据流标识相对应的表项时,在所述当前统计周期内将所述分组数据流对应的流计数值进行累加;When it is determined that there is an entry corresponding to the data flow identifier, the flow count value corresponding to the packet data flow is accumulated in the current statistical period;
当确定出不存在与所述数据流标识相对应的表项时,为所述分组数据流创建对应的表项,并在所述当前统计周期内将所述分组数据流对应的流计数值记为1;When it is determined that there is no entry corresponding to the data flow identifier, a corresponding entry is created for the packet data flow, and the flow count value corresponding to the packet data flow is recorded in the current statistical period. Is 1;
在所述当前统计周期内,按照如下方式计算所述分组数据流的流统计值:λ=αλcurrent+(1-α)λold,其中,λcurrent为所述当前统计周期内所述分组数据流的流计数值,λold为前一统计周期内所述分组数据流的流计数值,α为阻尼系数,α的取值为(0,1)。During the current statistical period, the flow statistics of the packet data stream are calculated as follows: λ=αλ current +(1−α)λ old , where λ current is the packet data in the current statistical period The stream count value of the stream, λ old is the stream count value of the packet data stream in the previous statistical period, α is the damping coefficient, and the value of α is (0, 1).
可选地,所述预约模块包括:Optionally, the subscription module includes:
发送单元,设置为:向下游节点发送源于所述长数据流的传输时隙要求,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙;The sending unit is configured to: send, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve transmission for the long data stream according to the transmission time slot requirement Time slot
预约单元,设置为:接收所述下游节点的预约请求信息,并根据所述预约请求信息确定可用传输时隙,其中,所述预约请求信息中包括所述下游节点确定的本地可用传输时隙的信息。a reservation unit, configured to: receive reservation request information of the downstream node, and determine an available transmission time slot according to the reservation request information, where the reservation request information includes a locally available transmission time slot determined by the downstream node information.
可选地,所述预约单元,是设置为:根据所述下游节点确定的本地可用传输时隙的信息和自身的时隙状态表确定所述可用传输时隙。Optionally, the reservation unit is configured to: determine the available transmission time slot according to the information about the locally available transmission time slot determined by the downstream node and its own slot status table.
可选地,所述级联模块包括:Optionally, the cascading module includes:
第二获取单元,设置为:获取所述长数据流的下一跳地址和可用传输时隙的剩余空间大小,以及获取所述短数据流的下一跳地址和所述短数据流的分组大小;a second acquiring unit, configured to: acquire a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquire a next hop address of the short data stream and a packet size of the short data stream ;
第二确定单元,设置为:在所述第二获取单元获取的所述短数据流的下一跳地址与所述长数据流的下一跳地址相同,且所述短数据流的分组大小小于所述可用传输时隙的剩余空间大小时,将所述短数据流确定为所述与所述长数据流级联发送的短数据流; a second determining unit, configured to: the next hop address of the short data stream acquired by the second acquiring unit is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than Determining, in the remaining space size of the available transmission time slot, the short data stream as the short data stream sent in cascade with the long data stream;
级联单元,设置为:根据所述长数据流和所述第二确定单元确定出的所述与所述长数据流级联发送的短数据流形成所述级联分组数据流。The cascading unit is configured to form the cascading packet data stream according to the long data stream and the short data stream sent in cascade with the long data stream determined by the second determining unit.
可选地,所述级联模块还包括:Optionally, the cascading module further includes:
更新单元,设置为:更新所述第二获取单元获取到的所述长数据流的可用传输时隙的剩余空间大小。And an updating unit, configured to: update a remaining space size of an available transmission time slot of the long data stream acquired by the second acquiring unit.
可选地,所述处理模块包括:Optionally, the processing module includes:
第三获取单元,设置为:获取所述级联分组数据流的数据流标识和路由协议类型;a third acquiring unit, configured to: acquire a data flow identifier and a routing protocol type of the cascading packet data stream;
处理单元,设置为:在所述第三获取单元获取的所述路由协议类型为用户数据报UDP协议时,读取所述级联分组数据流的TTL关键字段、路由协议类型字段、UDP校验和字段中的信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头;a processing unit, configured to: when the routing protocol type acquired by the third acquiring unit is a user datagram UDP protocol, read a TTL key field, a routing protocol type field, and a UDP school of the concatenated packet data stream And verifying information in the field, and composing a compressed header according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the concatenated packet data stream;
所述处理单元,还设置为:在所述第三获取单元获取的所述路由协议类型为动态源路由DSR协议时,读取所述级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头;The processing unit is further configured to: when the routing protocol type acquired by the third obtaining unit is a dynamic source routing DSR protocol, read a TTL field, a routing protocol type field, and a UDP of the concatenated packet data stream. And the information in the checksum field and the path information, and composing a compressed header according to the data flow identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream;
所述传输模块,是设置为:在所述下游节点设定的发送定时时间内根据所述可用传输时隙传输所述级联分组数据流。The transmission module is configured to: transmit the concatenated packet data stream according to the available transmission time slot within a transmission timing set by the downstream node.
可选地,所述处理单元还设置为:对所述压缩报头进行标识。Optionally, the processing unit is further configured to: identify the compressed header.
可选地,所述处理模块还包括:Optionally, the processing module further includes:
读取单元,设置为:读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的数据流标识;a reading unit, configured to: read a compressed header of the concatenated packet data stream, and obtain a data flow identifier of the concatenated packet data stream;
第三确定单元,设置为:确定是否存在与所述读取单元读取的所述数据流标识对应的数据流信息;a third determining unit, configured to: determine whether there is data flow information corresponding to the data flow identifier read by the reading unit;
解压缩单元,设置为:当所述第三确定单元确定出存在与所述数据流标识对应的数据流信息时,读取所述级联分组数据流的压缩报头,获取所述级 联分组数据流的路由协议类型;根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头。a decompression unit, configured to: when the third determining unit determines that there is data flow information corresponding to the data flow identifier, read a compressed header of the concatenated packet data stream, to obtain the level And a routing protocol type of the packet data stream; decompressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
可选地,所述解压缩单元,是设置为:在所述路由协议类型为UDP协议时,读取所述压缩报头的TTL字段的信息,结合所述数据流信息获取解压缩报头;在所述路由协议类型为DSR协议时,读取所述压缩报头的TTL字段的信息、路径信息,结合所述数据流信息获取解压缩报头。Optionally, the decompression unit is configured to: when the routing protocol type is the UDP protocol, read information about a TTL field of the compressed header, and obtain a decompressed header according to the data flow information; When the routing protocol type is the DSR protocol, the TTL field information and the path information of the compressed header are read, and the decompressed header is obtained by combining the data flow information.
本发明实施例提供的数据传输方法及装置,通过为在预定周期内收到的长数据流预约链路传输资源,确定可与该长数据流级联发送的短数据流,并根据长数据流和短数据流构造级联分组数据流,从而根据链路传输资源传输级联分组数据流;由上可以看出,本发明实施例提供的技术方案中,可利用长数据流的链路传输资源级联发送长数据流和短数据流,因而有效的利用了信道传输资源,提高了信道的利用率。The data transmission method and apparatus provided by the embodiments of the present invention determine a short data stream that can be sent in cascade with the long data stream by scheduling a link transmission resource for a long data stream received within a predetermined period, and according to the long data stream. Configuring the cascading packet data stream with the short data stream, so as to transmit the cascading packet data stream according to the link transmission resource; as can be seen from the above, in the technical solution provided by the embodiment of the present invention, the link transmission resource of the long data stream can be utilized. Cascading sends long data streams and short data streams, thus effectively utilizing channel transmission resources and improving channel utilization.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种数据传输方法的流程图;FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种数据传输方法的流程图;2 is a flowchart of another data transmission method according to an embodiment of the present invention;
图3为相关技术中IP报头格式示意图;3 is a schematic diagram of a format of an IP header in the related art;
图4为相关技术中UDP报文格式示意图;4 is a schematic diagram of a UDP packet format in the related art;
图5为本发明实施例提供数据传输方法中一种压缩后的报头格式示意图;FIG. 5 is a schematic diagram of a compressed header format in a data transmission method according to an embodiment of the present invention;
图6为本发明实施例提供数据传输方法中另一种压缩后的报头格式示意图;FIG. 6 is a schematic diagram of another compressed header format in a data transmission method according to an embodiment of the present invention;
图7为本发明实施例提供的一种数据传输装置的结构示意图;FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present disclosure;
图8为本发明实施例提供的另一种数据传输装置的结构示意图;FIG. 8 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present disclosure;
图9为本发明实施例提供的数据传输装置中一种确定模块的结构示意图;FIG. 9 is a schematic structural diagram of a determining module in a data transmission apparatus according to an embodiment of the present disclosure;
图10为本发明实施例提供的数据传输装置中一种预约模块的结构示意图; FIG. 10 is a schematic structural diagram of a reservation module in a data transmission apparatus according to an embodiment of the present disclosure;
图11为本发明实施例提供的数据传输装置中一种级联模块的结构示意图;FIG. 11 is a schematic structural diagram of a cascading module in a data transmission apparatus according to an embodiment of the present disclosure;
图12为本发明实施例提供的数据传输装置中一种处理模块的结构示意图。FIG. 12 is a schematic structural diagram of a processing module in a data transmission apparatus according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
如图1所示,为本发明实施例提供的一种数据传输方法的流程图。本实施例提供的数据传输方法包括如下步骤,即步骤11~15:FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention. The data transmission method provided by this embodiment includes the following steps, that is, steps 11-15:
步骤11、在当前统计周期内接收分组数据流。Step 11. Receive a packet data stream in a current statistical period.
其中,本实施例中的当前统计周期可以任意设置其时间长度,例如设置为1分钟等。The current statistical period in this embodiment may be arbitrarily set to a length of time, for example, set to 1 minute or the like.
步骤12、确定分组数据流是否为长数据流。Step 12: Determine whether the packet data stream is a long data stream.
其中,本实施例中的长数据流和短数据流是个相对的概念。举例来说,当某个分组数据流的持续时间长度大于某个预设值时,可将其看作是长数据流;而持续时间长度小于该预设值的数据流则看作是短数据流。其中该预设值可根据实际经验设置。The long data stream and the short data stream in this embodiment are relative concepts. For example, when the duration of a packet data stream is greater than a preset value, it can be regarded as a long data stream; and the data stream whose duration is less than the preset value is regarded as short data. flow. The preset value can be set according to actual experience.
可选地,在本实施例的一个实现方式中,确定分组数据流是否为长数据流的实现方式可以为:获取在当前统计周期内分组数据流的流统计值;经确认,当分组数据流的流统计值小于上限阈值时,确定该分组数据流为短数据流;当分组数据流的流统计值大于下限阈值时,确定该分组数据流为长数据流;其中,上述上限阈值大于下限阈值。Optionally, in an implementation manner of this embodiment, determining whether the packet data flow is a long data flow may be: acquiring a flow statistics value of the packet data flow in the current statistical period; and confirming, when the packet data flow is confirmed When the flow statistics value is less than the upper threshold, the packet data stream is determined to be a short data stream; when the flow statistics value of the packet data stream is greater than the lower threshold, the packet data stream is determined to be a long data stream; wherein the upper threshold is greater than the lower threshold .
步骤13、当分组数据流是长数据流时,为该长数据流预约链路传输资源。Step 13. When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream.
可选地,本实施例中该步骤的实现方式可以为:向下游节点发送源于长 数据流的传输时隙要求,该传输时隙要求用于下游节点根据该传输时隙要求为该长数据流预约传输时隙;然后,接收下游节点的预约请求信息,并根据该预约请求信息确定可用传输时隙,其中,该预约请求信息中可以包括下游节点确定的本地可用传输时隙的信息。Optionally, the implementation of the step in this embodiment may be: sending the downstream node to the downstream node. The transmission time slot of the data stream is required to be used by the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement; then, receiving the reservation request information of the downstream node, and determining according to the reservation request information An available transmission time slot, wherein the reservation request information may include information of a locally available transmission time slot determined by the downstream node.
步骤14、确定与该长数据流级联发送的短数据流,并根据长数据流和短数据流构造级联分组数据流。Step 14. Determine a short data stream that is sent in cascade with the long data stream, and construct a cascaded packet data stream according to the long data stream and the short data stream.
可选地,本实施例中该步骤的实现方式可以为:获取长数据流的下一跳地址和可用传输时隙的剩余空间大小,以及获取短数据流的下一跳地址和该短数据流的分组大小;当该短数据流的下一跳地址与长数据流的下一跳地址相同,且该短数据流的分组大小小于长数据流的可用传输时隙的剩余空间大小时,将该短数据流确定为可与长数据流级联发送的短数据流。然后,根据长数据流和可与该长数据流级联发送的短数据流形成级联分组数据流。Optionally, the step of implementing the step in the embodiment may be: acquiring a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquiring a next hop address of the short data stream and the short data stream. Packet size; when the next hop address of the short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot of the long data stream, The short data stream is determined to be a short data stream that can be sent in cascade with a long data stream. A concatenated packet data stream is then formed from the long data stream and the short data stream that can be cascaded with the long data stream.
步骤15、根据链路传输资源传输级联分组数据流。Step 15. Transport the cascaded packet data stream according to the link transmission resource.
由上可以看出,在本发明实施例中可根据长数据流的链路传输资源级联发送长数据流和短数据流,因而有效的利用了信道传输资源,提高了信道的利用率。As can be seen from the above, in the embodiment of the present invention, the long data stream and the short data stream can be sent according to the link transmission resource of the long data stream, thereby effectively utilizing the channel transmission resource and improving the channel utilization rate.
如图2所示,为本发明实施例提供的另一种数据传输方法的流程图。本实施例提供的数据传输方法可以由网络中的任一节点执行,该方法可以包括如下步骤,即步骤21~步骤26:FIG. 2 is a flowchart of another data transmission method according to an embodiment of the present invention. The data transmission method provided in this embodiment may be performed by any node in the network, and the method may include the following steps, that is, steps 21 to 26:
步骤21、在当前统计周期内接收分组数据流。Step 21: Receive a packet data stream in a current statistical period.
步骤22、确定分组数据流是否为长数据流。Step 22: Determine whether the packet data stream is a long data stream.
节点在当前统计周期T内接收每个分组数据流,并对接收到的每个分组数据流的分组数目进行统计,获得在当前统计周期内的流计数值;其中,当前统计周期T的长短可以任意设置。The node receives each packet data stream in the current statistical period T, and performs statistics on the number of packets received in each packet data stream to obtain a stream count value in the current statistical period; wherein, the length of the current statistical period T can be Arbitrarily set.
可选地,本实施例中该步骤的实现方式可以为:每当节点收到一个分组数据流时,节点会默认其为短流,此时,节点首先通过该分组数据流的五元组读取该分组数据流的数据流标识,该五元组可以为:源地址、目的地址、源端口、目的端口,服务质量(Quality of Service,简称为:QoS);然后查 找自身存储的流统计表,可以根据数据流标识确定该流统计表中是否存在与分组数据流的数据流标识相对应的表项,当确定出数据流统计表中存在与该数据流标识相对应的表项时,在当前统计周期内将分组数据流对应的流计数值加1;当确定出数据流统计表中不存在与该数据流标识相对应的表项时,为该分组数据流在流统计表中创建对应的表项,并在当前统计周期内将分组数据流对应的流计数值记为1。然后,对于收到的每一个新的分组数据流,都按照上述方式进行留流计数值的统计,直到当前统计周期结束。Optionally, the implementation of the step in this embodiment may be: whenever a node receives a packet data stream, the node defaults to a short stream, and at this time, the node first reads through the quintuple of the packet data stream. The data stream identifier of the packet data stream is: the source address, the destination address, the source port, the destination port, and the quality of service (QoS: QoS); The flow statistics table stored in the data flow identifier may be determined according to the data flow identifier, and the entry corresponding to the data flow identifier of the packet data flow is determined in the flow statistics table, and the data flow statistics table is determined to be associated with the data flow identifier. When the corresponding entry is used, the flow count value corresponding to the packet data flow is incremented by one in the current statistical period; when it is determined that the data flow statistics table does not have an entry corresponding to the data flow identifier, the packet data flow is A corresponding entry is created in the flow statistics table, and the flow count value corresponding to the packet data flow is recorded as 1 in the current statistical period. Then, for each new packet data stream received, the statistics of the current stream count value are performed in the above manner until the current statistical period ends.
在当前统计周期结束时,获取在当前统计周期内分组数据流的流统计值。当分组数据流的流统计值小于上限阈值时,确定该分组数据流为短数据流;当分组数据流的流统计值大于下限阈值时,确定该分组数据流为长数据流;其中,该上限阈值大于上述下限阈值。在实际应用中,上述上限阈值和下限阈值可任意设置,并且为常数,本发明实施例中设置上述两个阈值的目的是为了消除流的抖动的影响。At the end of the current statistical period, the flow statistics of the packet data stream in the current statistical period are obtained. When the flow statistics of the packet data stream is less than the upper threshold, determining that the packet data stream is a short data stream; when the flow statistics value of the packet data stream is greater than a lower threshold, determining that the packet data stream is a long data stream; wherein the upper limit The threshold is greater than the lower threshold described above. In an actual application, the upper threshold and the lower threshold may be arbitrarily set and are constant. The purpose of setting the foregoing two thresholds in the embodiment of the present invention is to eliminate the influence of jitter of the stream.
可选地,本实施例中该步骤在实际应用中,在当前统计周期内,可以按照如下方式计算分组数据流的流统计值:Optionally, in this embodiment, in the actual application, in the current statistics period, the flow statistics of the packet data flow may be calculated as follows:
λ=αλcurrent+(1-α)λold,其中,λcurrent为当前统计周期内分组数据流的流计数值,λold为前一统计周期内所述分组数据流的流计数值,α为阻尼系数,α的取值为(0,1)。本实施例中使用阻尼函数的目的是为了消除流的抖动的影响。λ=αλ current +(1−α)λ old , where λ current is the stream count value of the packet data stream in the current statistical period, and λ old is the stream count value of the packet data stream in the previous statistical period, α is Damping coefficient, the value of α is (0, 1). The purpose of using the damping function in this embodiment is to eliminate the effects of jitter of the stream.
步骤23、当分组数据流是长数据流时,为该长数据流预约链路传输资源。Step 23: When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream.
可选地,本实施例中该步骤的实现方式可以为,节点会向下游节点发送源于长数据流的传输时隙要求,该传输时隙要求用于下游节点根据该传输时隙要求为长数据流预约传输时隙。在实际应用中,节点可以将该长数据流分组的格式改为预约令牌的分组格式,以此来通知下游节点将要传输待预约时隙的长数据流。下游节点在收到节点发送的传输时隙要求后,在本地时隙中选择本地可用传输时隙,并对本地可用传输时隙进行标识,将其标识为半预约状态。然后下游节点将这些时隙的时隙号包含在预约请求信息REQ中,向节点发送该REQ请求。同时,该下游节点启动REQ定时器,完成预约发起。节点接收下游节点的预约请求信息,并根据该下游节点确定的本地可用传输 时隙的信息和自身的时隙状态表确定可用传输时隙。如果下游节点在REQ定时器内收到下文的级联分组流后则认为预约成功,并取消REQ定时器;否则,下游节点采用3次重传机制来确保节点收到该REQ消息。Optionally, in this implementation, the step may be implemented by: the node sends a transmission time slot request originating from the long data stream to the downstream node, where the transmission time slot is required for the downstream node to be long according to the transmission time slot requirement. The data stream is reserved for transmission time slots. In an actual application, the node may change the format of the long data stream packet to the packet format of the reservation token, thereby notifying the downstream node that the long data stream to be reserved for the reserved time slot is to be transmitted. After receiving the transmission time slot request sent by the node, the downstream node selects the local available transmission time slot in the local time slot, and identifies the locally available transmission time slot, and identifies it as a semi-subscription state. The downstream node then includes the slot number of these slots in the reservation request information REQ, and sends the REQ request to the node. At the same time, the downstream node starts the REQ timer and completes the reservation initiation. The node receives the reservation request information of the downstream node, and according to the locally available transmission determined by the downstream node The information of the time slot and its own time slot status table determine the available transmission time slots. If the downstream node receives the following concatenated packet flow within the REQ timer, the reservation is considered successful and the REQ timer is cancelled; otherwise, the downstream node uses 3 retransmission mechanisms to ensure that the node receives the REQ message.
步骤24、确定与该长数据流级联发送的短数据流,并根据长数据流和短数据流构造级联分组数据流。Step 24: Determine a short data stream that is sent in cascade with the long data stream, and construct a cascaded packet data stream according to the long data stream and the short data stream.
节点为每一个长数据流建立一个级联信息表,用于记录其预约时隙的使用情况,从而为构造级联分组数据流提供必要的信息。该级联信息表所记录的字段及其含义如表1所示。The node establishes a cascading information table for each long data stream for recording the usage of its reserved time slots, thereby providing the necessary information for constructing the cascading packet data stream. The fields recorded in the cascading information table and their meanings are shown in Table 1.
表1Table 1
字段名Field name 字段含义Field meaning
PrevPrev 上一个级联信息表项Previous cascading information table entry
IndexIndex 该表项的索引号The index number of the entry
NextHopNextHop 下一跳地址Next hop address
LeftspaceLeftspace 该预约时隙剩余空间(byte)The reserved space of the reserved time slot (byte)
ConcatenatedInfoConcatenatedInfo 记录级联分组的信息Record cascading group information
NextNext 下一个级联信息表项Next cascading information table entry
对于每个待发送的短数据流,节点将判断每个待发送的短数据流是否可以被级联发送。可选地,对于待发送的短数据流,获取该短数据流的下一跳地址和该短数据流的分组大小,同时根据级联信息表中的信息发送上述待发送的短数据流。当某一短数据流的下一跳地址与长数据流的下一跳地址相同、且该短数据流的分组大小小于长数据流的可用传输时隙的剩余空间大小时,将该短数据流确定为可与上述长数据流级联发送的短数据流,并根据该长数据流和上述可与该长数据流级联发送的短数据流形成级联分组数据流。For each short data stream to be sent, the node will determine whether each short data stream to be transmitted can be sent in cascade. Optionally, for the short data stream to be sent, obtain a next hop address of the short data stream and a packet size of the short data stream, and send the short data stream to be sent according to the information in the cascading information table. When the next hop address of a short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot of the long data stream, the short data stream is used. Determining is a short data stream that can be sent in cascade with the long data stream, and forming a concatenated packet data stream according to the long data stream and the short data stream that can be sent in cascade with the long data stream.
本实施例为了保证信息的准确性,在确定了可级联发送的短数据流后,节点更新该级联信息表中所述长数据流的可用传输时隙的剩余空间大小。例如,节点用该级联信息表中Leftspace字段的当前值减去可级联发送的短数据流的大小再减去保护间隔的传输容量,然后根据该差值更新级联信息表中Leftspace字段的值。 In this embodiment, in order to ensure the accuracy of the information, after determining the short data stream that can be cascaded, the node updates the remaining space size of the available transmission time slots of the long data stream in the concatenation information table. For example, the node subtracts the size of the short data stream that can be cascaded and subtracts the transmission capacity of the guard interval by using the current value of the Leftspace field in the concatenation information table, and then updates the Leftspace field in the concatenation information table according to the difference value. value.
步骤25、对级联分组数据流进行报头压缩,并根据链路传输资源传输进行报头压缩后的级联分组数据流。Step 25: Perform header compression on the cascading packet data stream, and perform header-compressed cascading packet data stream according to the link transmission resource transmission.
在本发明实施例中,报头压缩的实现方式中,针对源路由协议和逐跳路由协议可使用不同的报头压缩方法,其区别在于压缩源路由协议的分组报头时,需要在压缩报头中携带路径信息。In the embodiment of the present invention, in the implementation of the header compression, different header compression methods may be used for the source routing protocol and the hop-by-hop routing protocol, and the difference is that when the packet header of the source routing protocol is compressed, the path needs to be carried in the compressed header. information.
按照关键字段、不变字段、无关字段的分类方法,可将因特网协议(Internet Protocol,简称为:IP)报头、用户数据报协议报头(User Datagram Protocol,简称为:UDP)进行分类,并设计压缩报头格式。According to the classification method of the key field, the invariant field, and the irrelevant field, the Internet Protocol (IP) header and the User Datagram Protocol (UDP) can be classified and designed. Compress the header format.
A)IP报头字段分类A) IP header field classification
IP的完整报头格式及字段分类如图3所示,为相关技术中IP报头格式示意图,图3中各字段含义如下:The complete header format and field classification of IP is shown in Figure 3. It is a schematic diagram of the IP header format in the related technology. The meanings of the fields in Figure 3 are as follows:
版本号:固定字段。目前大部分的IP协议采用的是IPv4报头。Version number: Fixed field. Most IP protocols currently use the IPv4 header.
首部长度:固定字段。由于IPv4分组可能包含一些可变数量的选项,故需要该字段。但目前大多数的IP分组都没有选项,所以一般的IP分组只有20个字节的首部。Head length: fixed field. This field is required because IPv4 packets may contain some variable number of options. However, most IP packets currently have no options, so a typical IP packet has only a 20-byte header.
服务类型:固定字段。对于一个数据流来说,服务等级是固定的。Service Type: Fixed field. For a data stream, the service level is fixed.
数据报长度:无关字段。解压缩端可根据MAC层帧长推算出该值。Datagram length: irrelevant field. The decompressing end can calculate the value according to the MAC layer frame length.
标识符、标志和段偏移量:无关字段。因为这三个字段与所谓的IP分片Identifier, Flag, and Segment Offset: Irrelevant fields. Because these three fields are related to the so-called IP fragmentation
有关。在因特网中考虑到各设备的多样性,增加了IP分片的功能。但在无线Ad Hoc网络中,由于丢包率高,基本不采用IP分片的策略。related. The function of IP fragmentation has been added in consideration of the diversity of devices in the Internet. However, in the wireless Ad Hoc network, due to the high packet loss rate, the strategy of IP fragmentation is basically not adopted.
TTL:关键字段。表示源节点和目的节点之间跳数。TTL: Keyword segment. Indicates the number of hops between the source node and the destination node.
上层协议类型、源IP地址、目的IP地址:固定字段。对于同一个分组数据流来说,这些字段是不变的。Upper layer protocol type, source IP address, destination IP address: fixed field. These fields are unchanged for the same packet data stream.
首部检验和:无关字段。因为网络中传输的是压缩报头,很多无关字段不能恢复其原始值,利用原有的首部校验和无法检测出压缩分组的错误。Header checksum: Unrelated fields. Because the compressed header is transmitted in the network, many irrelevant fields cannot recover their original values, and the original header checksum cannot detect the error of compressing the packet.
B)UDP报头字段分类B) UDP header field classification
UDP的完整报头格式及字段分类如图4所示,为相关技术中UDP报文格式 示意图,图4中各字段含义如下:The complete header format and field classification of UDP are shown in Figure 4, which is the UDP packet format in the related art. Schematic, the meaning of each field in Figure 4 is as follows:
源端口号、目的端口号:固定字段。对于同一个数据流来说,这些字段是不变的。Source port number, destination port number: fixed field. These fields are constant for the same data stream.
数据长度:无关字段。解压缩端可根据MAC层帧长、IP头部长度以及传输层头部长度推算出该值。Data length: irrelevant field. The decompressing end can derive the value according to the MAC layer frame length, the IP header length, and the transport layer header length.
检验和:关键字段。该字段必须携带在压缩报头中,用来对分组进行差错校验。Checksum: Keyword segment. This field must be carried in the compressed header to perform error checking on the packet.
C)IP/UDP压缩报头格式C) IP/UDP compressed header format
根据分类可知,在IP/UDP报头中,只有TTL、UDP校验和、源路由协议的路径信息三个字段是不可压缩的,其他固定字段都可以从节点的流信息表中读出或推算出,无关字段可被任意填充。此外,在压缩报头中,还需要携带全局唯一的流ID和路由协议字段,分别用于区分不同的流和不同的路由协议。其中,全局流ID可由本地节点号和本地流ID构成。According to the classification, in the IP/UDP header, only the TTL, the UDP checksum, and the path information of the source routing protocol are incompressible, and other fixed fields can be read or derived from the node's flow information table. , irrelevant fields can be arbitrarily filled. In addition, in the compressed header, a globally unique flow ID and routing protocol field are also required to distinguish different flows and different routing protocols. The global flow ID may be composed of a local node number and a local stream ID.
可选地,本实施例中对级联分组数据流进行包头压缩的实现方式可以为,节点获取级联分组数据流的数据流标识和路由协议类型(ip_p字段的信息)。Optionally, the method for performing header compression on the cascading packet data stream in this embodiment may be: the node obtains the data stream identifier of the cascading packet data stream and the routing protocol type (information of the ip_p field).
当路由协议类型为用户数据报UDP协议(ip_p=17)时,节点读取级联分组数据流的生存时间(Time To Live,简称为:TTL)关键字段、路由协议类型字段、UDP校验和字段中的信息;根据级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头,如图5所示,为本发明实施例提供数据传输方法中一种压缩后的报头格式示意图。When the routing protocol type is the user datagram UDP protocol (ip_p=17), the node reads the time-to-live (Time To Live, TTL for short) key segment of the cascading packet data stream, the routing protocol type field, and the UDP checksum. And the information in the field; the compressed header is formed according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the cascading packet data stream, as shown in FIG. 5, which provides data for the embodiment of the present invention. A schematic diagram of a compressed header format in a transmission method.
当路由协议类型为动态源路由DSR协议(ip_p=135)时,节点读取级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息;根据级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头,如图6所示,为本发明实施例提供数据传输方法中另一种压缩后的报头格式示意图。此时,节点根据路径信息个数,创建路径缓存区并将读取的路径信息放入其中。节点读取关键字段后,剥除所有的协议报头。根据后进先出的顺序,路径信息依次被添加在数据头部。路径信息添加完毕后,节点再添加压缩报头。 When the routing protocol type is the dynamic source routing DSR protocol (ip_p=135), the node reads the TTL field of the cascading packet data stream, the routing protocol type field, the information in the UDP checksum field, and the path information; according to the cascading grouping The data stream identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the data stream constitute a compressed header, as shown in FIG. 6, which is another compression in the data transmission method according to an embodiment of the present invention. A schematic diagram of the header format. At this time, the node creates a path buffer according to the number of path information and puts the read path information into it. After the node reads the key field, it strips all protocol headers. According to the order of last in, first out, the path information is sequentially added to the data header. After the path information is added, the node adds a compressed header.
经确认,使用逐跳路由协议时,压缩后的报头大小为6字节;使用源路由协议时的压缩报头包含路径信息。在战术级Ad Hoc网络中,最大跳数为3跳左右,此时压缩报头大小约为6-18个字节。报头压缩机制对单个报头的压缩量为22字节。It is confirmed that when using the hop-by-hop routing protocol, the compressed header size is 6 bytes; the compressed header when using the source routing protocol contains path information. In a tactical Ad Hoc network, the maximum hop count is about 3 hops, and the compressed header size is about 6-18 bytes. The header compression mechanism compresses a single header by 22 bytes.
可选地,完成报头压缩后,传输级联分组数据的方式可以为:在下游节点设定的发送定时时间内根据可用传输时隙传输该级联分组数据流。在可用传输时隙中,每当节点发送完毕一个级联分组数据流,节点会查看级联缓存区中存储下一个级联分组数据流的缓冲区是否为空,以此判断是否存在需要级联发送的级联分组数据流,直至级联缓冲区为空。Optionally, after the header compression is completed, the method for transmitting the concatenated packet data may be: transmitting the concatenated packet data stream according to an available transmission time slot within a transmission timing set by the downstream node. In the available transmission time slot, each time the node sends a cascading packet data stream, the node checks whether the buffer of the next cascading packet data stream in the cascading buffer area is empty, thereby determining whether there is a need for cascading. The cascaded packet data stream is sent until the cascade buffer is empty.
可选地,本发明实施例还可以对压缩报头进行标识,例如,对于添加有压缩报头的级联分组数据流,将其帧头部的预设字段标识为1,以此标识添加有压缩报头的级联分组数据流。Optionally, the embodiment of the present invention may further identify the compressed header. For example, for the cascading packet data stream to which the compressed header is added, the preset field of the frame header is identified as 1, thereby adding the compressed header. Cascading packet data stream.
步骤26、下游节点在收到级联分组数据流后,解压缩报头,获得解压缩后的级联分组数据流。Step 26: After receiving the cascading packet data stream, the downstream node decompresses the header to obtain the decompressed cascading packet data stream.
可选地,本实施例中下游节点解压缩报头的实现方式可以为,下游节点读取级联分组数据流的压缩报头,获取该级联分组数据流的数据流标识;然后,下游节点确定是否存在与该数据流标识对应的数据流信息;当确定出存在与数据流标识对应的数据流信息时,读取级联分组数据流的压缩报头,获取级联分组数据流的路由协议类型;而后根据获取的路由协议类型和数据流信息解压缩级联分组数据流的压缩报头。在另一中应用场景中,若确定出不存在与数据流标识对应的数据流信息,则说明压缩异常。Optionally, the method for decompressing the header of the downstream node in the embodiment may be: the downstream node reads the compressed header of the cascading packet data stream, and obtains the data flow identifier of the cascading packet data stream; and then, the downstream node determines whether There is data flow information corresponding to the data flow identifier; when it is determined that the data flow information corresponding to the data flow identifier exists, the compressed header of the cascaded packet data stream is read, and the routing protocol type of the cascaded packet data stream is obtained; Decompressing the compressed header of the concatenated packet data stream according to the obtained routing protocol type and data stream information. In another application scenario, if it is determined that there is no data flow information corresponding to the data flow identifier, the compression exception is indicated.
可选地,本实施例中的路由协议类型同样可以为UDP协议或DSR协议;其中,当路由协议类型为UDP协议时,读取压缩报头的TTL字段的信息,结合数据流信息获取解压缩报头;当路由协议类型为DSR协议,读取压缩报头的TTL字段的信息、路径信息,结合数据流信息获取解压缩报头。而后,将解压缩的级联分组数据流交付给上层。Optionally, the type of the routing protocol in this embodiment may also be a UDP protocol or a DSR protocol. When the routing protocol type is UDP, the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data flow information. When the routing protocol type is the DSR protocol, the information of the TTL field of the compressed header and the path information are read, and the decompressed header is obtained by combining the data flow information. The decompressed cascading packet data stream is then delivered to the upper layer.
由上可以看出,在本发明实施例中可以根据长数据流的链路传输资源级联发送长数据流和短数据流,因而有效的利用了信道传输资源,提高了信道的利用率。将本发明实施例应用于手机Ad Hoc网络组网中,可以在资源有限 的移动环境中提供高效的适用于手机Ad Hoc网络的信道接入控制方法。As can be seen from the above, in the embodiment of the present invention, the long data stream and the short data stream can be sent according to the link transmission resource of the long data stream, thereby effectively utilizing the channel transmission resource and improving the channel utilization rate. The embodiment of the present invention is applied to a mobile phone Ad Hoc network, and the resource may be limited. The mobile environment provides an efficient channel access control method for mobile Ad Hoc networks.
如图7所示,为本发明实施例提供的一种数据传输装置的结构示意图。本实施例提供的数据传输装置可以包括:FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention. The data transmission device provided in this embodiment may include:
接收模块71,设置为:在当前统计周期内接收分组数据流;The receiving module 71 is configured to: receive a packet data stream in a current statistical period;
确定模块72,设置为:确定接收模块71接收的分组数据流是否为长数据流;The determining module 72 is configured to: determine whether the packet data stream received by the receiving module 71 is a long data stream;
预约模块73,设置为:在确定模块72确定出分组数据流是长数据流时,为所述长数据流预约链路传输资源;The reservation module 73 is configured to: when the determining module 72 determines that the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
级联模块74,设置为:确定可以与所述长数据流级联发送的短数据流,并根据长数据流和短数据流构造级联分组数据流;The cascading module 74 is configured to: determine a short data stream that can be sent in cascade with the long data stream, and construct a cascading packet data stream according to the long data stream and the short data stream;
传输模块75,设置为:根据预约模块73预约的链路传输资源传输级联模块74构造的级联分组数据流。The transmission module 75 is configured to: concatenate the packet data stream constructed by the link transmission resource transmission concatenation module 74 reserved according to the reservation module 73.
为了提高数据传输效率,可选地,如图8所示,为本发明实施例提供的另一种数据传输装置的结构示意图。在上述图7所示装置的结构基础上,本实施例提供的装置还可以包括:In order to improve the data transmission efficiency, as shown in FIG. 8, FIG. 8 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present invention. The apparatus provided in this embodiment may further include:
处理模块76,设置为:对级联模块74构造的级联分组数据流进行报头压缩。相应地,本实施例中的传输模块75,是设置为:根据预约模块73预约的链路传输资源传输处理模块76进行报头压缩后的级联分组数据流。The processing module 76 is configured to perform header compression on the concatenated packet data stream constructed by the concatenation module 74. Correspondingly, the transmission module 75 in this embodiment is configured to perform header compression of the concatenated packet data stream according to the link transmission resource transmission processing module 76 reserved by the reservation module 73.
可选地,图9为本发明实施例提供的数据传输装置中一种确定模块的结构示意图。本实施例中的确定模块72可包括:Optionally, FIG. 9 is a schematic structural diagram of a determining module in a data transmission apparatus according to an embodiment of the present invention. The determining module 72 in this embodiment may include:
第一获取单元721,设置为:获取在当前统计周期内所述分组数据流的流统计值;The first obtaining unit 721 is configured to: acquire a flow statistics value of the packet data flow in a current statistical period;
第一确定单元722,设置为:在获取单元721获取的分组数据流的流统计值小于上限阈值时,确定所述分组数据流为短数据流;The first determining unit 722 is configured to: when the flow statistics value of the packet data stream acquired by the obtaining unit 721 is less than an upper threshold, determine that the packet data stream is a short data stream;
该第一确定单元722,还设置为:在获取单元721获取的分组数据流的流统计值大于下限阈值时,确定所述分组数据流为长数据流;其中,上述上限阈值大于下限阈值。可选地,本实施例中的第一获取单元721是设置为:获取分组数据流的数据流标识;根据该数据流标识确定是否存在与分组数据流的 数据流标识相对应的表项;当确定出存在与该数据流标识相对应的表项时,在当前统计周期内将分组数据流对应的流计数值进行累加;当确定出不存在与该数据流标识相对应的表项时,为分组数据流创建对应的表项,并在当前统计周期内将分组数据流对应的流计数值记为1;在实际应用中,在当前统计周期内,按照如下方式计算所述分组数据流的流统计值:λ=αλcurrent+(1-α)λold,其中,λcurrent为当前统计周期内所述分组数据流的流计数值,λold为前一统计周期内分组数据流的流计数值;α为阻尼系数,α的取值为(0,1)。The first determining unit 722 is further configured to: when the flow statistics value of the packet data stream acquired by the obtaining unit 721 is greater than a lower threshold, determine that the packet data stream is a long data stream; wherein the upper threshold is greater than a lower threshold. Optionally, the first obtaining unit 721 in this embodiment is configured to: obtain a data flow identifier of the packet data flow; and determine, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists; When it is determined that the entry corresponding to the data flow identifier exists, the flow count value corresponding to the packet data flow is accumulated in the current statistical period; when it is determined that there is no entry corresponding to the data flow identifier, The packet data stream creates a corresponding entry, and records the flow count value corresponding to the packet data flow as 1 in the current statistical period; in an actual application, the flow of the packet data flow is calculated in the current statistical period as follows. Statistic value: λ=αλ current +(1-α)λ old , where λ current is the stream count value of the packet data stream in the current statistical period, and λ old is the stream count value of the packet data stream in the previous statistical period ; α is the damping coefficient, and α is (0, 1).
可选地,图10为本发明实施例提供的数据传输装置中一种预约模块的结构示意图。本实施例中的预约模块73可包括:Optionally, FIG. 10 is a schematic structural diagram of a reservation module in a data transmission apparatus according to an embodiment of the present invention. The reservation module 73 in this embodiment may include:
发送单元731,设置为:向下游节点发送源于长数据流的传输时隙要求,该传输时隙要求用于下游节点根据该传输时隙要求为长数据流预约传输时隙;The sending unit 731 is configured to: send, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement;
预约单元732,设置为:接收所述下游节点的预约请求信息,并根据所述预约请求信息确定可用传输时隙,其中,该预约请求信息中包括所述下游节点确定的本地可用传输时隙的信息。可选地,本实施例中的预约单元732是设置为:根据下游节点确定的本地可用传输时隙的信息和自身的时隙状态表确定可用传输时隙。The reservation unit 732 is configured to: receive the reservation request information of the downstream node, and determine an available transmission time slot according to the reservation request information, where the reservation request information includes the locally available transmission time slot determined by the downstream node. information. Optionally, the reservation unit 732 in this embodiment is configured to: determine an available transmission time slot according to the information of the locally available transmission time slot determined by the downstream node and its own slot state table.
可选地,图11为本发明实施例提供的数据传输装置中一种级联模块的结构示意图。本实施例中的级联模块74可包括:Optionally, FIG. 11 is a schematic structural diagram of a cascading module in a data transmission apparatus according to an embodiment of the present invention. The cascading module 74 in this embodiment may include:
第二获取单元741,设置为:获取长数据流的下一跳地址和可用传输时隙的剩余空间大小,以及获取短数据流的下一跳地址和该短数据流的分组大小;The second obtaining unit 741 is configured to: acquire a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquire a next hop address of the short data stream and a packet size of the short data stream;
第二确定单元742,设置为:在第二获取单元741获取的短数据流的下一跳地址与长数据流的下一跳地址相同,且该短数据流的分组大小小于可用传输时隙的剩余空间大小时,将该短数据流确定为可与长数据流级联发送的短数据流;The second determining unit 742 is configured to: the next hop address of the short data stream acquired by the second obtaining unit 741 is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the available transmission time slot. When the remaining space is small, the short data stream is determined as a short data stream that can be sent in cascade with the long data stream;
级联单元743,设置为:根据长数据流和第二确定单元742确定出的可与该长数据流级联发送的短数据流形成级联分组数据流。The cascading unit 743 is configured to form a cascading packet data stream according to the short data stream that is determined by the long data stream and the second determining unit 742 and can be cascaded and transmitted with the long data stream.
可选地,为了保证数据传输的准确性,本实施例中的级联模块74还可以 包括:更新单元744,设置为:更新第二获取单元741获取到的长数据流的可用传输时隙的剩余空间大小。Optionally, in order to ensure the accuracy of data transmission, the cascading module 74 in this embodiment may also The method includes: an updating unit 744, configured to: update a remaining space size of an available transmission time slot of the long data stream acquired by the second obtaining unit 741.
可选地,图12为本发明实施例提供的数据传输装置中一种处理模块的结构示意图。本实施例中的处理模块76包括:Optionally, FIG. 12 is a schematic structural diagram of a processing module in a data transmission apparatus according to an embodiment of the present invention. The processing module 76 in this embodiment includes:
第三获取单元761,设置为:获取级联分组数据流的数据流标识和路由协议类型;The third obtaining unit 761 is configured to: obtain a data flow identifier and a routing protocol type of the cascading packet data stream;
处理单元762,设置为:在第三获取单元761获取的路由协议类型为用户数据报UDP协议时,读取所述级联分组数据流的TTL关键字段、路由协议类型字段、UDP校验和字段中的信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头;The processing unit 762 is configured to: when the routing protocol type acquired by the third obtaining unit 761 is the user datagram UDP protocol, read the TTL key field, the routing protocol type field, and the UDP checksum of the concatenated packet data stream. The information in the field, and the compressed header is formed according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the concatenated packet data stream;
该处理单元762,还设置为:在第三获取单元761获取的路由协议类型为动态源路由DSR协议时,读取所述级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头。可选地,本实施例中的传输模块75,是设置为:在下游节点设定的发送定时时间内根据可用传输时隙传输级联分组数据流。The processing unit 762 is further configured to: when the routing protocol type acquired by the third obtaining unit 761 is a dynamic source routing DSR protocol, read a TTL field, a routing protocol type field, and a UDP checksum of the concatenated packet data stream. The information in the field and the path information, and the compressed header is formed according to the data flow identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream. Optionally, the transmission module 75 in this embodiment is configured to: transmit the concatenated packet data stream according to the available transmission time slot in a transmission timing set by the downstream node.
为方便进行解压缩,本实施例中的处理单元762还可以设置为:对压缩报头进行标识。To facilitate decompression, the processing unit 762 in this embodiment may be further configured to: identify the compressed header.
在进行解压缩时,本实施例中的处理模块76还可以包括:The processing module 76 in this embodiment may further include:
读取单元763,设置为:读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的数据流标识;The reading unit 763 is configured to: read a compressed header of the concatenated packet data stream, and obtain a data flow identifier of the concatenated packet data stream;
第三确定单元764,设置为:确定是否存在与读取单元763读取的数据流标识对应的数据流信息;The third determining unit 764 is configured to: determine whether there is data flow information corresponding to the data flow identifier read by the reading unit 763;
解压缩单元765,设置为:当第三确定单元764确定出存在与数据流标识对应的数据流信息时,读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的路由协议类型;根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头。The decompressing unit 765 is configured to: when the third determining unit 764 determines that the data stream information corresponding to the data stream identifier exists, read a compressed header of the concatenated packet data stream, and acquire the concatenated packet data stream. a routing protocol type; decompressing a compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
可选地,本实施例中的解压缩单元765是设置为:在路由协议类型为UDP 协议时,读取压缩报头的TTL字段的信息,结合数据流信息获取解压缩报头;在路由协议类型为DSR协议时,读取压缩报头的TTL字段的信息、路径信息,结合数据流信息获取解压缩报头。Optionally, the decompression unit 765 in this embodiment is configured to: the routing protocol type is UDP. In the protocol, the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data stream information. When the routing protocol type is the DSR protocol, the information of the TTL field of the compressed header and the path information are read, and the solution is obtained by combining the data stream information. Compress the header.
本发明所述装置的工作原理可参照前述方法实施例的描述。The working principle of the device of the present invention can be referred to the description of the foregoing method embodiments.
由上可以看出,在本发明实施例中可利用长数据流的链路传输资源级联发送长数据流和短数据流,因而有效的利用了信道传输资源,提高了信道的利用率。As can be seen from the above, in the embodiment of the present invention, a long data stream and a short data stream can be transmitted by using a link transmission resource of a long data stream, thereby effectively utilizing channel transmission resources and improving channel utilization.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过为在预定周期内收到的长数据流预约链路传输资源,确定可与该长数据流级联发送的短数据流,并根据长数据流和短数据流构造级联分组数据流,从而根据链路传输资源传输级联分组数据流;由上可以看出,本发明实施例提供的技术方案中,可利用长数据流的链路传输资源级联发送长数据流和短数据流,因而有效的利用了信道传输资源,提高了信道的利用率。 Embodiments of the present invention determine a short data stream that can be sent in cascade with the long data stream by preserving a link transmission resource for a long data stream received within a predetermined period, and construct a concatenated packet according to the long data stream and the short data stream. The data stream is configured to transmit the cascading packet data stream according to the link transmission resource; as can be seen from the above, in the technical solution provided by the embodiment of the present invention, the link transmission resource of the long data stream can be used to cascade and transmit the long data stream and the short The data stream thus effectively utilizes channel transmission resources and improves channel utilization.

Claims (25)

  1. 一种数据传输方法,包括:A data transmission method includes:
    在当前统计周期内接收分组数据流;Receiving a packet data stream in a current statistical period;
    确定所述分组数据流是否为长数据流;Determining whether the packet data stream is a long data stream;
    当所述分组数据流是长数据流时,为所述长数据流预约链路传输资源;When the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
    确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流;Determining a short data stream sent in cascade with the long data stream, and constructing a concatenated packet data stream according to the long data stream and the short data stream;
    根据所述链路传输资源传输所述级联分组数据流。The concatenated packet data stream is transmitted according to the link transmission resource.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    对所述级联分组数据流进行报头压缩;Perform header compression on the concatenated packet data stream;
    所述根据所述链路传输资源传输所述级联分组数据流,包括:Transmitting the concatenated packet data stream according to the link transmission resource, including:
    根据所述链路传输资源传输进行报头压缩后的级联分组数据流。The header packet data stream after the header compression is performed according to the link transmission resource transmission.
  3. 根据权利要求1或2所述的方法,其中,所述确定所述分组数据流是否为长数据流,包括:The method according to claim 1 or 2, wherein the determining whether the packet data stream is a long data stream comprises:
    获取在所述当前统计周期内所述分组数据流的流统计值;Obtaining a flow statistics value of the packet data flow in the current statistical period;
    当所述分组数据流的流统计值小于上限阈值时,确定所述分组数据流为短数据流;当所述分组数据流的流统计值大于下限阈值时,确定所述分组数据流为长数据流;其中,所述上限阈值大于所述下限阈值。Determining, when the flow statistics of the packet data stream is less than an upper threshold, determining that the packet data stream is a short data stream; and determining, when the flow statistics of the packet data stream is greater than a lower threshold, determining the packet data stream as a long data. a flow; wherein the upper threshold is greater than the lower threshold.
  4. 根据权利要求3所述的方法,其中,所述获取在所述当前统计周期内所述分组数据流的流统计值,包括:The method of claim 3, wherein the obtaining a flow statistics value of the packet data stream in the current statistical period comprises:
    获取所述分组数据流的数据流标识;Obtaining a data flow identifier of the packet data stream;
    根据所述数据流标识确定是否存在与所述分组数据流的数据流标识相对应的表项;Determining, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists;
    当确定出存在与所述数据流标识相对应的表项时,在所述当前统计周期内将所述分组数据流对应的流计数值进行累加;When it is determined that there is an entry corresponding to the data flow identifier, the flow count value corresponding to the packet data flow is accumulated in the current statistical period;
    当确定出不存在与所述数据流标识相对应的表项时,为所述分组数据流 创建对应的表项,并在所述当前统计周期内将所述分组数据流对应的流计数值记为1;When it is determined that there is no entry corresponding to the data flow identifier, the packet data stream is Create a corresponding entry, and record the flow count value corresponding to the packet data flow as 1 in the current statistical period;
    在所述当前统计周期内,按照如下方式计算所述分组数据流的流统计值:λ=αλcurrent+(1-α)λold,其中,λcurrent为所述当前统计周期内所述分组数据流的流计数值,λold为前一统计周期内所述分组数据流的流计数值,α为阻尼系数,α的取值为(0,1)。During the current statistical period, the flow statistics of the packet data stream are calculated as follows: λ=αλ current +(1−α)λ old , where λ current is the packet data in the current statistical period The stream count value of the stream, λ old is the stream count value of the packet data stream in the previous statistical period, α is the damping coefficient, and the value of α is (0, 1).
  5. 根据权利要求1或2所述的方法,其中,所述当所述分组数据流是长数据流时,为所述长数据流预约链路传输资源,包括:The method according to claim 1 or 2, wherein when the packet data stream is a long data stream, the link transmission resource is reserved for the long data stream, including:
    向下游节点发送源于所述长数据流的传输时隙要求,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙;Transmitting, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement;
    接收所述下游节点的预约请求信息,并根据所述预约请求信息确定可用传输时隙,其中,所述预约请求信息中包括所述下游节点确定的本地可用传输时隙的信息。Receiving the reservation request information of the downstream node, and determining an available transmission time slot according to the reservation request information, wherein the reservation request information includes information of a locally available transmission time slot determined by the downstream node.
  6. 根据权利要求5所述的方法,其中,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙,包括:The method of claim 5, wherein the transmission time slot is required for the downstream node to reserve a transmission time slot for the long data stream according to the transmission time slot requirement, comprising:
    所述传输时隙要求用于所述下游节点在本地时隙中选择所述本地可用传输时隙,并对所述本地可用传输时隙进行标识。The transmission time slot is required for the downstream node to select the locally available transmission time slot in a local time slot and identify the locally available transmission time slot.
  7. 根据权利要求5所述的方法,其中,所述根据所述预约请求信息确定可用传输时隙,包括:The method of claim 5, wherein the determining the available transmission time slots based on the reservation request information comprises:
    根据所述下游节点确定的本地可用传输时隙的信息和自身的时隙状态表确定所述可用传输时隙。The available transmission time slot is determined based on information of a locally available transmission slot determined by the downstream node and its own slot status table.
  8. 根据权利要求1所述的方法,其中,所述确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流,包括:The method of claim 1, wherein the determining the short data stream sent in cascade with the long data stream and constructing the concatenated packet data stream according to the long data stream and the short data stream comprises:
    获取所述长数据流的下一跳地址和可用传输时隙的剩余空间大小;Obtaining a next hop address of the long data stream and a remaining space size of the available transmission time slot;
    获取所述短数据流的下一跳地址和所述短数据流的分组大小;Obtaining a next hop address of the short data stream and a packet size of the short data stream;
    当所述短数据流的下一跳地址与所述长数据流的下一跳地址相同,且所述短数据流的分组大小小于所述可用传输时隙的剩余空间大小时,将所述短 数据流确定为所述与所述长数据流级联发送的短数据流;When the next hop address of the short data stream is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than the remaining space size of the available transmission time slot, the short Determining, by the data stream, the short data stream sent in cascade with the long data stream;
    根据所述长数据流和所述与所述长数据流级联发送的短数据流形成所述级联分组数据流。And forming the concatenated packet data stream according to the long data stream and the short data stream sent in cascade with the long data stream.
  9. 根据权利要求8所述的方法,还包括:The method of claim 8 further comprising:
    更新所述长数据流的所述可用传输时隙的剩余空间大小。Updating the remaining space size of the available transmission time slots of the long data stream.
  10. 根据权利要求2所述的方法,其中,所述对所述级联分组数据流进行报头压缩,包括:The method of claim 2, wherein said performing header compression on said concatenated packet data stream comprises:
    获取所述级联分组数据流的数据流标识和路由协议类型;Obtaining a data flow identifier and a routing protocol type of the concatenated packet data stream;
    当所述路由协议类型为用户数据报UDP协议时,读取所述级联分组数据流的生存时间TTL关键字段、路由协议类型字段、UDP校验和字段中的信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头;And when the routing protocol type is a user datagram UDP protocol, reading information in a lifetime TTL key field, a routing protocol type field, a UDP checksum field of the concatenated packet data stream, and according to the level The information in the data stream identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the packet data stream constitutes a compressed header;
    当所述路由协议类型为动态源路由DSR协议时,读取所述级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头;When the routing protocol type is a dynamic source routing DSR protocol, reading the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream, and according to the cascading The data stream identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the packet data stream constitute a compressed header;
    所述根据所述链路传输资源传输进行报头压缩后的级联分组数据,包括:The cascading packet data after the header compression according to the link transmission resource transmission includes:
    在所述下游节点设定的发送定时时间内根据所述可用传输时隙传输所述级联分组数据流。The concatenated packet data stream is transmitted according to the available transmission time slot within a transmission timing set by the downstream node.
  11. 根据权利要求10所述的方法,还包括:The method of claim 10 further comprising:
    对所述压缩报头进行标识。The compressed header is identified.
  12. 根据权利要求10所述的方法,还包括:The method of claim 10 further comprising:
    读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的数据流标识;Reading a compressed header of the concatenated packet data stream, and acquiring a data flow identifier of the concatenated packet data stream;
    确定是否存在与所述数据流标识对应的数据流信息;Determining whether there is data flow information corresponding to the data flow identifier;
    当确定出存在与所述数据流标识对应的数据流信息时,读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的路由协议类型; When it is determined that there is data flow information corresponding to the data flow identifier, reading a compressed header of the concatenated packet data stream, and acquiring a routing protocol type of the concatenated packet data stream;
    根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头。Decompressing a compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
  13. 根据权利要求12所述的方法,其中,所述根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头,包括:The method of claim 12, wherein the decompressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information comprises:
    当所述路由协议类型为UDP时,读取所述压缩报头的TTL字段的信息,结合所述数据流信息获取解压缩报头;When the routing protocol type is UDP, the information of the TTL field of the compressed header is read, and the decompressed header is obtained by combining the data flow information;
    当所述路由协议类型为DSR协议时,读取所述压缩报头的TTL字段的信息、路径信息,结合所述数据流信息获取解压缩报头。When the routing protocol type is the DSR protocol, the information of the TTL field of the compressed header and the path information are read, and the decompressed header is obtained by combining the data flow information.
  14. 一种数据传输装置,包括:A data transmission device comprising:
    接收模块,设置为:在当前统计周期内接收分组数据流;a receiving module, configured to: receive a packet data stream in a current statistical period;
    确定模块,设置为:确定所述确定模块接收的所述分组数据流是否为长数据流;a determining module, configured to: determine whether the packet data stream received by the determining module is a long data stream;
    预约模块,设置为:在所述确定模块确定出所述分组数据流是长数据流时,为所述长数据流预约链路传输资源;a reservation module, configured to: when the determining module determines that the packet data stream is a long data stream, reserve a link transmission resource for the long data stream;
    级联模块,设置为:确定与所述长数据流级联发送的短数据流,并根据所述长数据流和所述短数据流构造级联分组数据流;a cascading module, configured to: determine a short data stream that is sent in cascade with the long data stream, and construct a cascading packet data stream according to the long data stream and the short data stream;
    传输模块,设置为:根据所述预约模块预约的所述链路传输资源传输所述级联模块构造的所述级联分组数据流。And a transmission module, configured to: transmit the concatenated packet data stream constructed by the concatenation module according to the link transmission resource reserved by the reservation module.
  15. 根据权利要求14所述的装置,还包括:The apparatus of claim 14 further comprising:
    处理模块,设置为:对所述级联模块构造的所述级联分组数据流进行报头压缩;a processing module, configured to: perform header compression on the cascading packet data stream constructed by the cascading module;
    所述传输模块,是设置为:根据所述预约模块预约的所述链路传输资源传输所述处理模块进行报头压缩后的级联分组数据流。The transmission module is configured to: transmit the cascading packet data stream after the header compression by the processing module according to the link transmission resource reserved by the reservation module.
  16. 根据权利要求14或15所述的装置,其中,所述确定模块包括:The apparatus of claim 14 or 15, wherein the determining module comprises:
    第一获取单元,设置为:获取在所述当前统计周期内所述分组数据流的流统计值;a first acquiring unit, configured to: obtain a flow statistics value of the packet data flow in the current statistical period;
    第一确定单元,设置为:在所述获取单元获取的所述分组数据流的流统 计值小于上限阈值时,确定所述分组数据流为短数据流;a first determining unit, configured to: a flow system of the packet data stream acquired by the acquiring unit When the value is less than the upper threshold, determining that the packet data stream is a short data stream;
    所述第一确定单元,还设置为:在所述获取单元获取的所述分组数据流的流统计值大于下限阈值时,确定所述分组数据流为长数据流;其中,所述上限阈值大于所述下限阈值。The first determining unit is further configured to: when the flow statistics value of the packet data stream acquired by the acquiring unit is greater than a lower threshold, determine that the packet data stream is a long data stream; wherein the upper threshold is greater than The lower threshold.
  17. 根据权利要求16所述的装置,其中,所述第一获取单元,是设置为:The apparatus according to claim 16, wherein said first obtaining unit is configured to:
    获取所述分组数据流的数据流标识;Obtaining a data flow identifier of the packet data stream;
    根据所述数据流标识确定是否存在与所述分组数据流的数据流标识相对应的表项;Determining, according to the data flow identifier, whether an entry corresponding to the data flow identifier of the packet data flow exists;
    当确定出存在与所述数据流标识相对应的表项时,在所述当前统计周期内将所述分组数据流对应的流计数值进行累加;When it is determined that there is an entry corresponding to the data flow identifier, the flow count value corresponding to the packet data flow is accumulated in the current statistical period;
    当确定出不存在与所述数据流标识相对应的表项时,为所述分组数据流创建对应的表项,并在所述当前统计周期内将所述分组数据流对应的流计数值记为1;When it is determined that there is no entry corresponding to the data flow identifier, a corresponding entry is created for the packet data flow, and the flow count value corresponding to the packet data flow is recorded in the current statistical period. Is 1;
    在所述当前统计周期内,按照如下方式计算所述分组数据流的流统计值:λ=αλcurrent+(1-α)λold,其中,λcurrent为所述当前统计周期内所述分组数据流的流计数值,λold为前一统计周期内所述分组数据流的流计数值,α为阻尼系数,α的取值为(0,1)。During the current statistical period, the flow statistics of the packet data stream are calculated as follows: λ=αλ current +(1−α)λ old , where λ current is the packet data in the current statistical period The stream count value of the stream, λ old is the stream count value of the packet data stream in the previous statistical period, α is the damping coefficient, and the value of α is (0, 1).
  18. 根据权利要求14或15所述的装置,其中,所述预约模块包括:The apparatus according to claim 14 or 15, wherein said reservation module comprises:
    发送单元,设置为:向下游节点发送源于所述长数据流的传输时隙要求,所述传输时隙要求用于所述下游节点根据所述传输时隙要求为所述长数据流预约传输时隙;The sending unit is configured to: send, to the downstream node, a transmission time slot request originating from the long data stream, where the transmission time slot is required for the downstream node to reserve transmission for the long data stream according to the transmission time slot requirement Time slot
    预约单元,设置为:接收所述下游节点的预约请求信息,并根据所述预约请求信息确定可用传输时隙,其中,所述预约请求信息中包括所述下游节点确定的本地可用传输时隙的信息。a reservation unit, configured to: receive reservation request information of the downstream node, and determine an available transmission time slot according to the reservation request information, where the reservation request information includes a locally available transmission time slot determined by the downstream node information.
  19. 根据权利要求18所述的装置,其中,所述预约单元,是设置为:根据所述下游节点确定的本地可用传输时隙的信息和自身的时隙状态表确定所述可用传输时隙。The apparatus according to claim 18, wherein said reservation unit is configured to determine said available transmission slot based on information of a locally available transmission slot determined by said downstream node and its own slot state table.
  20. 根据权利要求14所述的装置,其中,所述级联模块包括: The apparatus of claim 14, wherein the cascade module comprises:
    第二获取单元,设置为:获取所述长数据流的下一跳地址和可用传输时隙的剩余空间大小,以及获取所述短数据流的下一跳地址和所述短数据流的分组大小;a second acquiring unit, configured to: acquire a next hop address of the long data stream and a remaining space size of the available transmission time slot, and acquire a next hop address of the short data stream and a packet size of the short data stream ;
    第二确定单元,设置为:在所述第二获取单元获取的所述短数据流的下一跳地址与所述长数据流的下一跳地址相同,且所述短数据流的分组大小小于所述可用传输时隙的剩余空间大小时,将所述短数据流确定为所述与所述长数据流级联发送的短数据流;a second determining unit, configured to: the next hop address of the short data stream acquired by the second acquiring unit is the same as the next hop address of the long data stream, and the packet size of the short data stream is smaller than Determining, in the remaining space size of the available transmission time slot, the short data stream as the short data stream sent in cascade with the long data stream;
    级联单元,设置为:根据所述长数据流和所述第二确定单元确定出的所述与所述长数据流级联发送的短数据流形成所述级联分组数据流。The cascading unit is configured to form the cascading packet data stream according to the long data stream and the short data stream sent in cascade with the long data stream determined by the second determining unit.
  21. 根据权利要求20所述的装置,其中,所述级联模块还包括:The apparatus of claim 20, wherein the cascading module further comprises:
    更新单元,设置为:更新所述第二获取单元获取到的所述长数据流的可用传输时隙的剩余空间大小。And an updating unit, configured to: update a remaining space size of an available transmission time slot of the long data stream acquired by the second acquiring unit.
  22. 根据权利要求15所述的装置,其中,所述处理模块包括:The apparatus of claim 15 wherein said processing module comprises:
    第三获取单元,设置为:获取所述级联分组数据流的数据流标识和路由协议类型;a third acquiring unit, configured to: acquire a data flow identifier and a routing protocol type of the cascading packet data stream;
    处理单元,设置为:在所述第三获取单元获取的所述路由协议类型为用户数据报UDP协议时,读取所述级联分组数据流的TTL关键字段、路由协议类型字段、UDP校验和字段中的信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息组成压缩报头;a processing unit, configured to: when the routing protocol type acquired by the third acquiring unit is a user datagram UDP protocol, read a TTL key field, a routing protocol type field, and a UDP school of the concatenated packet data stream And verifying information in the field, and composing a compressed header according to the information in the data flow identifier, the TTL field, the routing protocol type field, and the UDP checksum field of the concatenated packet data stream;
    所述处理单元,还设置为:在所述第三获取单元获取的所述路由协议类型为动态源路由DSR协议时,读取所述级联分组数据流的TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息,并根据所述级联分组数据流的数据流标识、TTL字段、路由协议类型字段、UDP校验和字段中的信息以及路径信息组成压缩报头;The processing unit is further configured to: when the routing protocol type acquired by the third obtaining unit is a dynamic source routing DSR protocol, read a TTL field, a routing protocol type field, and a UDP of the concatenated packet data stream. And the information in the checksum field and the path information, and composing a compressed header according to the data flow identifier, the TTL field, the routing protocol type field, the information in the UDP checksum field, and the path information of the concatenated packet data stream;
    所述传输模块,是设置为:在所述下游节点设定的发送定时时间内根据所述可用传输时隙传输所述级联分组数据流。The transmission module is configured to: transmit the concatenated packet data stream according to the available transmission time slot within a transmission timing set by the downstream node.
  23. 根据权利要求22所述的装置,其中,所述处理单元还设置为:对所 述压缩报头进行标识。The apparatus according to claim 22, wherein said processing unit is further configured to: The compressed header is identified.
  24. 根据权利要求22所述的装置,其中,所述处理模块还包括:The apparatus of claim 22, wherein the processing module further comprises:
    读取单元,设置为:读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的数据流标识;a reading unit, configured to: read a compressed header of the concatenated packet data stream, and obtain a data flow identifier of the concatenated packet data stream;
    第三确定单元,设置为:确定是否存在与所述读取单元读取的所述数据流标识对应的数据流信息;a third determining unit, configured to: determine whether there is data flow information corresponding to the data flow identifier read by the reading unit;
    解压缩单元,设置为:当所述第三确定单元确定出存在与所述数据流标识对应的数据流信息时,读取所述级联分组数据流的压缩报头,获取所述级联分组数据流的路由协议类型;根据所述路由协议类型和所述数据流信息解压缩所述级联分组数据流的压缩报头。a decompression unit, configured to: when the third determining unit determines that there is data flow information corresponding to the data flow identifier, read a compressed header of the concatenated packet data stream, and acquire the concatenated packet data a routing protocol type of the stream; decompressing the compressed header of the concatenated packet data stream according to the routing protocol type and the data stream information.
  25. 根据权利要求24所述的装置,其中,所述解压缩单元,是设置为:在所述路由协议类型为UDP协议时,读取所述压缩报头的TTL字段的信息,结合所述数据流信息获取解压缩报头;在所述路由协议类型为DSR协议时,读取所述压缩报头的TTL字段的信息、路径信息,结合所述数据流信息获取解压缩报头。 The apparatus according to claim 24, wherein said decompressing unit is configured to: read information of a TTL field of said compressed header, in combination with said data stream information, when said routing protocol type is UDP protocol Obtaining a decompressed header; when the routing protocol type is the DSR protocol, reading information about the TTL field of the compressed header, path information, and acquiring the decompressed header according to the data flow information.
PCT/CN2016/086606 2016-02-16 2016-06-21 Data transmission method and device WO2017140076A1 (en)

Applications Claiming Priority (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
CN201610086823.X 2016-02-16

Publications (1)

Publication Number Publication Date
WO2017140076A1 true WO2017140076A1 (en) 2017-08-24

Family

ID=59614988

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086606 WO2017140076A1 (en) 2016-02-16 2016-06-21 Data transmission method and device

Country Status (2)

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

Families Citing this family (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543162A (en) * 2003-11-06 2004-11-03 西安电子科技大学 Method for hybrid transmission of variable-length data packet and fixed length cell, and adaptation device
CN1658586A (en) * 2004-02-18 2005-08-24 株式会社Ntt都科摩 Packet transfer system, radio base station, and packet transfer route optimization method
EP2640011A1 (en) * 2012-03-15 2013-09-18 Alcatel Lucent A method for transporting real time packets
CN104836750A (en) * 2015-05-04 2015-08-12 大连理工大学 Data center network flow scheduling method based on round-robin

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543162A (en) * 2003-11-06 2004-11-03 西安电子科技大学 Method for hybrid transmission of variable-length data packet and fixed length cell, and adaptation device
CN1658586A (en) * 2004-02-18 2005-08-24 株式会社Ntt都科摩 Packet transfer system, radio base station, and packet transfer route optimization method
EP2640011A1 (en) * 2012-03-15 2013-09-18 Alcatel Lucent A method for transporting real time packets
CN104836750A (en) * 2015-05-04 2015-08-12 大连理工大学 Data center network flow scheduling method based on round-robin

Also Published As

Publication number Publication date
CN107087280A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
KR100990340B1 (en) Packet routing in a wireless communications environment
CN103348726B (en) For the system and method communicating in a network
US6791949B1 (en) Network protocol for wireless ad hoc networks
US20180262432A1 (en) Vertical packet aggregation using a distributed network
WO2006033201A1 (en) Node device, packet control device, radio communication device, and transmission control method
US20120140686A1 (en) Method and apparatus for sending, receiving, and transmission of data packets (as amended)
KR20080063331A (en) Provision of a move indication to a resource requester
KR20080063334A (en) Provision of qos treatment based upon multiple requests
JP7488921B2 (en) In situ flow detection method and electronic device
CN110831061B (en) Method and device for acquiring scheduling throughput, base station and storage medium
WO2016145764A1 (en) Method and apparatus for packet loss control
US20220217089A1 (en) Path traffic allocation method, network device, and network system
US20100128727A1 (en) Transmitting apparatus, receiving apparatus, transmitting method, and receiving method
CN110445723B (en) Network data scheduling method and edge node
KR100526183B1 (en) Apparatus and Method for efficient data transmission/reception in Mobile Ad-hoc Network
WO2017140076A1 (en) Data transmission method and device
US8194669B1 (en) Method and system for identifying media type transmitted over an atm network
CN111262792B (en) Message forwarding method, device, network equipment and storage medium
CN113162855B (en) Multicast message detection method, network equipment and system
CN107800653B (en) Message compression method and device
KR102450152B1 (en) Method for determining traffic size
CN103428295B (en) A kind of monitoring method and system of peer-to-peer network application
JP2013034199A (en) Method and device for allocating time-frequency resources to data packet to transmit data packet through communication network, computer program for executing the same method and information storage means for storing the same computer program
KR101568881B1 (en) Method for improving header compression effeciency and packet transmitting apparatus for the same
CN115996195B (en) Data transmission method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16890308

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16890308

Country of ref document: EP

Kind code of ref document: A1