CN115022924A - Data packet header compression and data transmission method and system of wireless ad hoc network - Google Patents

Data packet header compression and data transmission method and system of wireless ad hoc network Download PDF

Info

Publication number
CN115022924A
CN115022924A CN202210582899.7A CN202210582899A CN115022924A CN 115022924 A CN115022924 A CN 115022924A CN 202210582899 A CN202210582899 A CN 202210582899A CN 115022924 A CN115022924 A CN 115022924A
Authority
CN
China
Prior art keywords
data packet
compressed data
node
wireless
hoc network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210582899.7A
Other languages
Chinese (zh)
Other versions
CN115022924B (en
Inventor
彭伟
李浩杰
韩彪
郦苏丹
唐竹
荀鹏
贾旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202210582899.7A priority Critical patent/CN115022924B/en
Publication of CN115022924A publication Critical patent/CN115022924A/en
Application granted granted Critical
Publication of CN115022924B publication Critical patent/CN115022924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/748Address table lookup; Address filtering using longest matching prefix
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a method and a system for compressing a data packet header and transmitting data of a wireless ad hoc network, wherein a source end generates a context identifier for a new session, an IP data packet is compressed into a compressed data packet by adopting an ROHC protocol, specifically an IR data packet, an FO data packet or an SO data packet, host identifiers of the source end and a destination end are added, and a routing table is searched and sent to a next hop node; if the next hop node is the destination end, decompressing the compressed data packet into an IP data packet and sending the IP data packet to an IP protocol module for processing, otherwise, after updating the control field TTL, discarding the compressed data packet if the control field TTL is equal to a set value, otherwise, continuously searching the routing table and sending the routing table to the next hop node. The invention can realize the transmission of compressed data packets between the source end and the destination end in a wireless ad hoc network on the premise that the intermediate node does not perform compression and decompression, can adapt to the link interruption and topology change caused by the movement of the node, and realizes the high-efficiency communication between the source end and the destination end.

Description

Data packet header compression and data transmission method and system of wireless ad hoc network
Technical Field
The invention relates to a data communication technology of a wireless ad hoc network, in particular to a method and a system for compressing a data packet header and transmitting data of the wireless ad hoc network.
Background
The wireless ad hoc network is a network independent of fixed infrastructure, comprises a mobile ad hoc network with nodes capable of moving randomly, a wireless mesh network with nodes fixed, a flight ad hoc network formed by unmanned aerial vehicles and the like, and has important application value in the aspects of emergency rescue, field communication and the like. Such networks present significant challenges in achieving efficient network communications due to the frequent movement of nodes, low wireless link bandwidth, and susceptibility of wireless communications to environmental influences.
In order to fully utilize limited wireless communication resources, some research efforts have been made in the past for header compression over wireless links, mainly for TCP/IP protocol headers. For example, the internet protocol standardization organization has set up a series of protocol standards for TCP/IP packet header compression, including RFC standards with numbers 1144, 2507, 3095, 4995, 4996, 5225, 5795, and 6846, respectively, wherein the standard after 3095 is referred to as ROHC standard. The ROHC protocol standard solves the problem well with IP packet header compression on a single wireless link, e.g. 40 bytes of IP/UDP/RTP packet headers can be compressed to 1-3 bytes for transmission. Although the ROHC standards achieve good header compression, they are only applicable to a single wireless link. If the ROHC standard is applied to a wireless ad hoc network, each hop of routing node on a transmission path of the network is required to compress and decompress a data packet header, which will greatly increase the processing overhead of the routing node and the transmission delay of the data packet.
The research on the data packet header compression transmission method of the wireless ad hoc network is not many. In 2008, a mobile ad hoc network header compression method (HC-AODV for short) based on AODV is proposed, and by expanding an AODV routing protocol, configuration of ROHC header compression parameters is completed while routing discovery is performed, so that transmission of a compressed data packet between a mobile ad hoc network communication source end and a mobile ad hoc network communication destination end can be realized without compression and decompression performed by an intermediate node, and a purpose of improving a channel bandwidth utilization rate is achieved. However, the HC-AODV method has the following problems: (1) since the HC-AODV method is bound to the AODV routing protocol, it is not suitable for mobile ad hoc networks using other routing protocols. (2) When an intermediate node in the HC-AODV method forwards a compressed packet, it lacks operation on a Time-to-live (TTL) field of the packet, so that once a routing loop exists in a network, the packet may "turn around" continuously in the network, which increases network congestion and wastes network bandwidth resources. (3) Even in the case that the source has already a route to the destination, the HC-AODV method still requires negotiation of header compression parameters between the source and the destination, and cannot immediately send a packet, thereby increasing the transmission delay of the first packet of the session.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: in view of the above problems in the prior art, a method and system for compressing a data packet header and transmitting data in a wireless ad hoc network are provided. The invention can realize the transmission of compressed data packets between the source end and the destination end in a wireless self-organizing network on the premise that the intermediate node does not carry out compression and decompression, can adapt to the link interruption and topology change caused by the movement of the node, and realizes the high-efficiency communication between the source end and the destination end.
In order to solve the technical problems, the invention adopts the technical scheme that:
a data packet header compression and data transmission method of a wireless ad hoc network comprises the following steps:
1) the source end generates a corresponding context identification CID for the new session;
2) the source end compresses an IP data packet of a new session into a compressed data packet by adopting an ROHC protocol, adds host identifiers and control field TTL of the source end and a destination end aiming at each compressed data packet, searches a routing table to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sends the compressed data packet to the next hop node through the outgoing interface;
3) after the next hop node receives the compressed data packet, if the next hop node is a destination end, decompressing the compressed data packet into an IP data packet and sending the IP data packet to an IP protocol module for processing; if the next hop node is not the destination end, increasing or decreasing the TTL of the control field of the compressed data packet, if the TTL of the control field is equal to a set value, discarding the compressed data packet, otherwise, continuously searching the routing table according to the destination end host identification of the compressed data packet, determining the next hop node and the outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
Optionally, in step 1), the source end generates a corresponding context identifier CID for the new session, which is a source end unique identifier expressed by an unsigned integer.
Optionally, when adding the host identifiers of the source end and the destination end and the control field TTL in step 2), if the IP destination address of the IP packet is an IP address outside the wireless ad hoc network, the added host identifier of the destination end is a host identifier of a gateway node of the wireless ad hoc network; and if the IP destination address of the IP data packet is the IP address of the internal node of the wireless ad hoc network, the added host identifier of the destination end is the host identifier corresponding to the IP destination address.
Optionally, the control field TTL is an unsigned integer of one byte.
Optionally, the increasing or decreasing of the TTL in the control field is specifically decreasing of the TTL in the control field, where the TTL in the control field being equal to the set value means that the TTL in the control field is equal to 0.
Optionally, the processing step of the next hop node in step 3) after receiving the compressed data packet includes:
3.1) judging whether the host identifier of the destination end of the compressed data packet and the host identifier of the node are consistent, if so, judging the node as the destination end, and skipping to the step 3.2), otherwise, skipping to the step 3.3);
3.2) decompressing the compressed data packet into an original IP data packet according to an ROHC protocol, and sending the original IP data packet to an IP protocol module for processing; the IP protocol module judges whether the destination address of the IP data packet is the IP address of the node, and if the destination address of the IP data packet is the IP address of the node, the subsequent IP data packet processing operation is continuously completed; if the destination address of the IP data packet is an IP address outside the wireless ad hoc network, the node is judged to be a gateway node of the wireless ad hoc network, and the IP protocol module forwards the IP data packet from a network interface connected with an external network according to a specified IP routing processing mode; ending and exiting;
3.3) increasing or decreasing the value of the TTL in the control field in the compressed data packet, then judging whether the increased or decreased TTL is equal to a preset value or not, if so, discarding the compressed data packet to avoid forming a routing loop, ending and exiting; otherwise, skipping to the next step;
and 3.4) searching a routing table according to the host identification of the destination end of the compressed data packet to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
Optionally, the host identifier is a host identifier portion of an IP address of each node in the wireless ad hoc network, and the IP addresses of the nodes have the same network prefix, so that the lengths of the host identifier portions are the same.
In addition, the invention also provides a data packet header compression and data transmission device of the wireless ad hoc network, which comprises a microprocessor, a memory and a network interface, wherein the microprocessor is connected with the network interface and the memory, and is programmed or configured to execute the steps of the data packet header compression and data transmission method of the wireless ad hoc network.
In addition, the present invention also provides a device for applying the data packet header compression and data transmission method of the wireless ad hoc network, which includes a data packet header compression component located between a network interface and an IP protocol processing module, wherein the data packet header compression component includes:
the ROHC packet header compression module is used for receiving the IP data packet from the IP protocol module and compressing the packet header according to an ROHC protocol to obtain a compressed data packet, wherein the compressed data packet is an IR data packet, an FO data packet or an SO data packet;
the ROHC packet header decompression module is used for decompressing the received compressed data packet into an IP data packet and submitting the IP data packet to the IP protocol processing module for continuous processing;
the compressed packet sending module is used for adding host identifiers of a source end and a destination end and a control field TTL to a compressed data packet;
the forwarding module is used for determining a next hop node and an outgoing interface which are required to be sent by the compressed data packet by searching the routing table, and then sending the compressed data packet to the next hop node through the outgoing interface; sending the compressed data packet sent by the previous hop node to an ROHC packet header decompression module;
the forwarding module is connected with the network interface, and two data transmission channels are arranged between the forwarding module and the IP protocol processing module, one data channel passes through the ROHC packet header decompression module, and the other data channel is formed by connecting the ROHC packet header compression module and the compression packet sending module in series.
Furthermore, the present invention also provides a computer-readable storage medium having stored therein a computer program for being programmed or configured by a microprocessor to implement the steps of the packet header compression and data transmission method of the wireless ad hoc network.
The invention provides an end-to-end data packet header compression transmission mechanism aiming at the requirement of improving the wireless link bandwidth utilization rate in a wireless ad hoc network, and by adding information such as host identification of a target IP address and the like in a data packet header, a network intermediate node can forward a compressed data packet without decompressing the compressed data packet, thereby solving the problem of multi-hop transmission of the compressed data packet. Compared with the prior art including HC-AODV, the invention mainly has the following advantages:
(1) the invention is independent with the routing protocol, can work with any mobile ad hoc network routing protocol, and can be used for ad hoc networks which need multi-hop routing, such as mobile ad hoc networks, wireless mesh networks and the like.
(2) The context identifier is distributed by the source node, so that the context identifier can be sent immediately once a data packet is generated, and the destination end does not need to wait for returning the available context identifier.
(3) The invention adds control field TTL in the compressed data packet head, and avoids the influence of the routing ring.
(4) The invention limits the IP address of the node in a range with the same network prefix, thereby only needing the host identification part of the IP address of the attached source node and the destination node before compressing the data packet, and reducing the communication overhead.
Drawings
Fig. 1 is a schematic diagram of the basic principle of an embodiment of the present invention.
Fig. 2 is an example of a wireless ad hoc network employed in an embodiment of the present invention.
Fig. 3 is a schematic diagram of the routing table of the node a shown in fig. 2.
Fig. 4 is a flowchart illustrating a process of a next hop node receiving a compressed packet according to an embodiment of the present invention.
Fig. 5 is a format example of a packet to which information such as a source host identifier is added in the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a data packet header compression component according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, the method for packet header compression and data transmission in a wireless ad hoc network of this embodiment includes:
1) the source end generates a corresponding context identification CID for the new session;
2) the source end compresses an IP data packet of a new session into a compressed data packet by adopting an ROHC protocol, adds host identifiers and control field TTL of the source end and a destination end aiming at each compressed data packet, searches a routing table to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sends the compressed data packet to the next hop node through the outgoing interface;
3) after the next hop node receives the compressed data packet, if the next hop node is the destination, the compressed data packet is decompressed into an IP data packet and then sent to an IP protocol module for processing; if the next hop node is not the destination end, increasing or decreasing the TTL of the control field of the compressed data packet, if the TTL of the control field is equal to a set value, discarding the compressed data packet, otherwise, continuously searching the routing table according to the destination end host identification of the compressed data packet, determining the next hop node and the outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
It should be noted that, when the source end compresses the IP data packet of the new session into a compressed data packet by using the ROHC protocol in step 2), under the control of the ROHC protocol, the compressed data packet corresponding to the first IP data packet of the session is usually an IR data packet, and the compressed data packet corresponding to the subsequent IP data packet may be an IR data packet, and may also be an FO data packet or an SO data packet, but the main component is an FO data packet or an SO data packet.
The wireless ad hoc network refers to a wireless network system formed by a plurality of communication nodes (nodes for short) connected by a wireless network, wherein each communication node has one or more wireless communication interfaces, which may be a communication source end or a communication destination end, and also a routing node, and can forward data packets. Each communication node has a routing table generated by a routing protocol of the wireless ad hoc network, such as AODV, OLSR, TBRPF, etc. Each entry of the routing table contains at least a destination address, a next hop node address, and egress interface information. The present invention will be described in further detail below with reference to the wireless ad hoc network shown in fig. 2 as an example. Referring to fig. 2, the wireless ad hoc network of this example has 7 nodes, and each node can serve as both a source end and a destination end of communication and a function of route forwarding. Each node has a wireless network interface. The connections between nodes in the network topology represent communication reachability between the nodes. When the system is established, a system administrator allocates an IP address for each network interface of the wireless ad hoc network node, the IP address is divided into a network prefix and a host identifier, and the network prefixes of the IP addresses of the nodes in the same wireless ad hoc network are the same. In the example, all nodes have a common network prefix 101.1.1.0/24, which is 24 bits in length. The host identities of different nodes are different, for example, the host identity of node a is 1, and the host identity of node B is 2.
In this embodiment, in step 1), the source generates a corresponding context identifier CID for the new session, which is a source unique identifier expressed by an unsigned integer and is used to distinguish different sessions.
Before communication, a source end needs to obtain routing information to a destination end, wherein when a routing table is searched to determine a next hop node and an outgoing interface which are required to be sent by a compressed data packet, the routing table is generated by a specified routing protocol of a wireless ad hoc network. Fig. 3 is a schematic diagram of the routing table of the node a shown in fig. 2 in this embodiment, for example, the destination address of the first record is 101.1.1.2, the next hop address is 101.1.1.2, and the outgoing interface is interface 1. Each node in the wireless ad hoc network is provided with a routing table, and each table entry in the routing table comprises information such as a destination address or destination node identification, a next hop node address, an outgoing interface and the like. The routing table is generated by a certain routing protocol of the wireless ad hoc network, such as AODV, OLSR, TBRPF routing protocol, etc., which does not constitute a limitation to the method of the present embodiment.
In this embodiment, when adding the host identifiers of the source end and the destination end and the control field TTL in step 2), if the IP destination address of the IP packet is an IP address outside the wireless ad hoc network, the added host identifier of the destination end is a host identifier of a gateway node of the wireless ad hoc network; and if the IP destination address of the IP data packet is the IP address of the internal node of the wireless ad hoc network, the added host identifier of the destination end is the host identifier corresponding to the IP destination address. The communication between the internal nodes of the wireless ad hoc network and an external network is completed through gateway nodes, wherein the gateway nodes are wireless routers and at least comprise a wireless network interface (an intranet interface) of the ad hoc network and a network interface (an extranet interface) connected with the external network, and the configured IP addresses of the gateway nodes and the IP addresses of other nodes of the wireless ad hoc network are in the same network segment, namely the IP addresses and the IP addresses have the same IP address prefix. And the source end uses the host identification in the IP address of the intranet interface as the destination end host identification added to the compressed data packet.
In this embodiment, the control field TTL is an unsigned integer of one byte.
In this embodiment, increasing or decreasing the TTL in the control field is specifically decreasing the TTL in the control field, where the TTL in the control field is equal to a set value means that the TTL in the control field is equal to 0. In addition, the initial value of the control field TTL may be set to 0, and then the control field TTL is increased by one modulation, so that the compressed data packet is discarded when the control field TTL is equal to a larger setting value.
As shown in fig. 4, the processing step of the next hop node in step 3) after receiving the compressed data packet includes:
3.1) judging whether the host identifier of the destination end of the compressed data packet and the host identifier of the node are consistent, if so, judging the node as the destination end, and skipping to the step 3.2), otherwise, skipping to the step 3.3);
3.2) decompressing the compressed data packet into an original IP data packet according to an ROHC protocol, and sending the original IP data packet to an IP protocol module for processing; the IP protocol module judges whether the destination address of the IP data packet is the IP address of the node, and if the destination address of the IP data packet is the IP address of the node, the subsequent IP data packet processing operation is continuously completed; if the destination address of the IP data packet is an IP address outside the wireless ad hoc network, the node is judged to be a gateway node of the wireless ad hoc network, and the IP protocol module forwards the IP data packet from a network interface connected with an external network according to a specified IP routing processing mode; ending and exiting;
3.3) judging the type of the compressed data packet, if the type of the compressed data packet is an FO or SO data packet, increasing or decreasing the value of a control field TTL in the compressed data packet, and then increasing or decreasing whether the control field TTL is equal to a preset value or not, if SO, discarding the compressed data packet to avoid forming a routing loop, ending and exiting; otherwise, skipping to the next step;
and 3.4) searching a routing table according to the host identification of the destination end of the compressed data packet to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
In this embodiment, the host identifier is a host identifier portion of an IP address of each node in the wireless ad hoc network, and the IP addresses of the nodes have the same network prefix, so that the lengths of the host identifier portions are the same. The host identifiers are different parts of the IP addresses of all nodes in the wireless ad hoc network, and the lengths of the different parts serving as the host identifiers in the IP addresses of all the nodes are the same.
Referring to fig. 2 and 4, in the packet header compression and data transmission method of the wireless ad hoc network of the present embodiment, when a source end sends a first IP packet of a session, an IR packet is compressed and sent according to the ROHC protocol standard. The IR packets contain information related to decompression, including context identification of the session, original IP packet information, etc. The original IP packet information includes a source IP address, a destination IP address, and the like. The IR packet is handed over to the forwarding module 4 for processing. When the forwarding module 4 of the source end or the intermediate node on the transmission path receives an IR data packet, the routing table is searched according to the destination IP address in the IR packet, and the next hop and the outgoing interface information on the path are obtained. The forwarding module 4 sends the IR packet to the next hop node. For example, for source node a, it obtains the next hop node address of 101.1.1.2 for the route to destination node G by looking up the routing table, and a sends the IR packet to the next hop node with address 101.1.1.2, node B. When node B receives the IR packet from a, it will similarly query its routing table to obtain the next hop address of the route to destination node G, and then send the IR packet to the next hop node. The same process will be repeated for other intermediate nodes along the path until the IR packet is delivered to the destination node G.
The subsequent IP data packet of the session is compressed into an FO or SO data packet, when the source end sends the FO or SO data packet, the host identification in the source IP address, the host identification in the destination IP address and the control field TTL field are added in front of the packet head, and then the data packet is delivered to the forwarding module for processing. And the TTL value of the control field set by the source end is the maximum TTL value of the data packet. When a forwarding module of a source end or an intermediate node on a transmission path receives an FO or SO data packet, the following processing is performed: if the node is an intermediate node on a transmission path, subtracting 1 from the value of the TTL of the control field, and if the value of the TTL of the control field is subtracted to 0, discarding the data packet and ending the processing; and searching a routing table according to a host identifier in a destination IP address added in front of the packet header to obtain a next hop node address on the current path, and sending the compressed data packet to the next hop node by the forwarding module. Fig. 5 is an example of the format of a packet to which information such as a source host identifier is added, and the fields include: control field TTL, destination node identification, source node identification and FS or SO data packet. In the example of fig. 2, the source node a is identified as 1 and the destination node G is identified as 7, which all require only one byte. The control field TTL field is an unsigned integer of one byte and is initially set to the maximum TTL value of the packet, e.g., 32 or 64. Fig. 5 is an example of the format of a packet to which information such as a source host identifier is added. In the example of fig. 2, the source node a is identified as 1 and the destination node G is identified as 7, which all require only one byte. In the example of fig. 2, the host id of the destination IP address is 7, and since the network nodes have the same network prefix, the destination IP address is 101.1.1.7, and the corresponding routing table entry can be obtained by querying using the destination IP address. The next hop address to 101.1.1.7 is 101.1.1.2 for source end node a, so a sends the compressed packet to the next hop node with address 101.1.1.2, node B, with the control field TTL becoming 31. Similarly, after receiving the compressed data packet, the node B obtains the destination IP address from the destination node identifier carried in the data packet, and then looks up the routing table according to the destination IP address to obtain the next hop node address, which is 101.1.1.4, so that the node B sends the compressed data packet to the next hop node with address 101.1.1.4, i.e., node D, and the TTL of the control field is changed to 30. Similarly, node D will send the compressed packet to node G, while the value of the control field TTL becomes 29.
When the destination receives the IR, FO and SO packets, normal processing is performed according to the ROHC protocol specification. In the example of fig. 2, when the destination node G receives the compressed packet, G passes the compressed packet to the forwarding module 4 for processing. The forwarding module 4 finds that the destination node of the data packet is itself, and then sends the compressed data packet to the ROHC header decompression module 2 for processing. The original IP data packet recovered after the header decompression is processed by the IP protocol module.
In summary, the method of this embodiment includes that a source end generates a context identifier CID for a new session, an IP packet is compressed into a compressed packet by using an ROHC protocol, specifically, an IR packet, an FO packet, or an SO packet, host identifiers of the source end and a destination end are added, a routing table is searched for and sent to a next hop node; if the next hop node is the destination end, decompressing the compressed data packet into an IP data packet and sending the IP data packet to an IP protocol module for processing, otherwise, after updating the control field TTL, discarding the compressed data packet if the control field TTL is equal to a set value, otherwise, continuously searching the routing table and sending the routing table to the next hop node. The method can realize the transmission of the compressed data packet between the source end and the target end in the wireless ad hoc network on the premise that the intermediate node does not perform compression and decompression, can adapt to the link interruption and topology change caused by the movement of the node, realizes the high-efficiency communication between the source end and the target end, and has the advantages of avoiding the influence of a routing ring, low cost and strong universality.
In addition, the present embodiment further provides a data packet header compression and data transmission device of a wireless ad hoc network, including a microprocessor, a memory and a network interface, where the microprocessor is connected to the network interface and the memory, and is programmed or configured to execute the steps of the data packet header compression and data transmission method of the wireless ad hoc network.
In addition, this embodiment further provides an apparatus for applying the foregoing method for compressing a packet header and transmitting data in a wireless ad hoc network, including a packet header compression component located between a network interface and an IP protocol processing module, as shown in fig. 6, where the packet header compression component includes:
the ROHC packet header compression module is used for receiving the IP data packet from the IP protocol module and compressing the packet header according to an ROHC protocol to obtain a compressed data packet, wherein the compressed data packet is an IR data packet, an FO data packet or an SO data packet;
the ROHC packet header decompression module is used for decompressing the received compressed data packet into an IP data packet and submitting the IP data packet to the IP protocol processing module for continuous processing;
the compressed packet sending module is used for adding host identifiers of a source end and a destination end and control field TTL (transistor-transistor logic) to a compressed data packet so as to facilitate forwarding by an intermediate node;
the forwarding module is used for determining a next hop node and an outgoing interface which are required to be sent by the compressed data packet by searching the routing table, and then sending the compressed data packet to the next hop node through the outgoing interface; sending the compressed data packet sent by the previous hop node to an ROHC packet header decompression module;
the forwarding module is connected with the network interface, and two data transmission channels are arranged between the forwarding module and the IP protocol processing module, one data channel passes through the ROHC packet header decompression module, and the other data channel is formed by connecting the ROHC packet header compression module and the compression packet sending module in series.
In addition, the present embodiment also provides a computer-readable storage medium, in which a computer program is stored, where the computer program is programmed or configured by a microprocessor to implement the steps of the foregoing method for compressing the data packet header and transmitting the data in the wireless ad hoc network.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (10)

1. A data packet header compression and data transmission method of a wireless ad hoc network is characterized by comprising the following steps:
1) the source end generates a corresponding context identification CID for the new session;
2) the source end compresses an IP data packet of a new session into a compressed data packet by adopting an ROHC protocol, adds host identifiers and control field TTL of the source end and a destination end aiming at each compressed data packet, searches a routing table to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sends the compressed data packet to the next hop node through the outgoing interface;
3) after the next hop node receives the compressed data packet, if the next hop node is a destination end, decompressing the compressed data packet into an IP data packet and sending the IP data packet to an IP protocol module for processing; if the next hop node is not the destination end, increasing or decreasing the control field TTL of the compressed data packet, if the control field TTL is equal to a set value, discarding the compressed data packet, otherwise, continuously searching a routing table according to the destination end host identification of the compressed data packet, determining the next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
2. The method according to claim 1, wherein in step 1), the source generates a context identifier CID corresponding to the new session as a source unique identifier represented by an unsigned integer.
3. The method according to claim 1, wherein when adding the host identifiers of the source end and the destination end and the TTL in step 2), if the IP destination address of the IP packet is an IP address outside the wireless ad hoc network, the added host identifier of the destination end is a host identifier of a gateway node of the wireless ad hoc network; and if the IP destination address of the IP data packet is the IP address of the internal node of the wireless ad hoc network, the added host identifier of the destination end is the host identifier corresponding to the IP destination address.
4. The method of claim 1, wherein the control field TTL is an unsigned integer of one byte.
5. The method of claim 4, wherein the step of increasing or decreasing the TTL is to decrease the TTL, and the TTL equal to the predetermined value means the TTL is equal to 0.
6. The method for packet header compression and data transmission in a wireless ad hoc network according to claim 1, wherein the step of processing after the next hop node receives the compressed data packet in step 3) comprises:
3.1) judging whether the host identity of the destination end of the compressed data packet and the host identity of the node are consistent, if so, judging the node as the destination end, and skipping to the step 3.2), otherwise, skipping to the step 3.3);
3.2) decompressing the compressed data packet into an original IP data packet according to an ROHC protocol, and sending the original IP data packet to an IP protocol module for processing; the IP protocol module judges whether the destination address of the IP data packet is the IP address of the node, and if the destination address of the IP data packet is the IP address of the node, the subsequent IP data packet processing operation is continuously completed; if the destination address of the IP data packet is an IP address outside the wireless ad hoc network, the node is judged to be a gateway node of the wireless ad hoc network, and the IP protocol module forwards the IP data packet from a network interface connected with an external network according to a specified IP routing processing mode; ending and exiting;
3.3) judging the type of the compressed data packet, if the type of the compressed data packet is an FO or SO data packet, increasing or decreasing the value of a control field TTL in the compressed data packet, and then increasing or decreasing whether the control field TTL is equal to a preset value or not, if SO, discarding the compressed data packet to avoid forming a routing loop, ending and exiting; otherwise, skipping to the next step;
and 3.4) searching a routing table according to the host identification of the destination end of the compressed data packet to determine a next hop node and an outgoing interface which are required to be sent by the compressed data packet, and then sending the compressed data packet to the next hop node through the outgoing interface.
7. The method according to claim 1, wherein the host identifier is a host identifier portion of an IP address of each node in the wireless ad hoc network, and the IP addresses of the nodes have the same network prefix, so that the lengths of the host identifier portions are the same.
8. A data packet header compression and data transmission device of a wireless ad hoc network, comprising a microprocessor, a memory and a network interface, wherein the microprocessor is connected with the network interface and the memory, characterized in that the microprocessor is programmed or configured to execute the steps of the data packet header compression and data transmission method of the wireless ad hoc network according to any one of claims 1 to 7.
9. An apparatus for applying the method for compressing the data packet header and transmitting the data in the wireless ad hoc network according to any one of claims 1 to 7, comprising a data packet header compression component located between a network interface and an IP protocol processing module, wherein the data packet header compression component comprises:
the ROHC packet header compression module is used for receiving the IP data packet from the IP protocol module and compressing the packet header according to an ROHC protocol to obtain a compressed data packet, wherein the compressed data packet is an IR data packet, an FO data packet or an SO data packet;
the ROHC packet header decompression module is used for decompressing the received compressed data packet into an IP data packet and submitting the IP data packet to the IP protocol processing module for continuous processing;
a compressed packet sending module, configured to add host identifiers of a source end and a destination end and a control field TTL to a compressed data packet;
the forwarding module is used for determining a next hop node and an outgoing interface which are required to be sent by the compressed data packet by searching the routing table, and then sending the compressed data packet to the next hop node through the outgoing interface; sending the compressed data packet sent from the previous hop node to an ROHC packet header decompression module;
the forwarding module is connected with the network interface, and two data transmission channels are arranged between the forwarding module and the IP protocol processing module, one data channel passes through the ROHC packet header decompression module, and the other data channel is formed by connecting the ROHC packet header compression module and the compression packet sending module in series.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is used for being programmed or configured by a microprocessor to implement the steps of the data packet header compression and data transmission method of the wireless ad hoc network according to any one of claims 1 to 7.
CN202210582899.7A 2022-05-26 2022-05-26 Data packet header compression and data transmission method and system for wireless ad hoc network Active CN115022924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210582899.7A CN115022924B (en) 2022-05-26 2022-05-26 Data packet header compression and data transmission method and system for wireless ad hoc network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210582899.7A CN115022924B (en) 2022-05-26 2022-05-26 Data packet header compression and data transmission method and system for wireless ad hoc network

Publications (2)

Publication Number Publication Date
CN115022924A true CN115022924A (en) 2022-09-06
CN115022924B CN115022924B (en) 2024-05-28

Family

ID=83071767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210582899.7A Active CN115022924B (en) 2022-05-26 2022-05-26 Data packet header compression and data transmission method and system for wireless ad hoc network

Country Status (1)

Country Link
CN (1) CN115022924B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017083A (en) * 2003-08-14 2005-02-21 삼성전자주식회사 A Network system for transmitting packet with header compression and control method thereof
US20070002850A1 (en) * 2005-06-29 2007-01-04 Guichard James N System and methods for compressing message headers
CN101568144A (en) * 2009-03-18 2009-10-28 中国人民解放军理工大学 Header compression method applicable to wireless ad hoc network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017083A (en) * 2003-08-14 2005-02-21 삼성전자주식회사 A Network system for transmitting packet with header compression and control method thereof
US20070002850A1 (en) * 2005-06-29 2007-01-04 Guichard James N System and methods for compressing message headers
CN101568144A (en) * 2009-03-18 2009-10-28 中国人民解放军理工大学 Header compression method applicable to wireless ad hoc network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何晓霜;胡捍英;: "基于AODV的移动自组网中的报头压缩机制", 通信技术, no. 01, 10 January 2008 (2008-01-10) *
吴超标;张驰;: "基于OpenFlow的SDN中包头压缩机制研究", 通信技术, no. 04, 10 April 2017 (2017-04-10) *

Also Published As

Publication number Publication date
CN115022924B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US7058728B1 (en) Method and apparatus for initiating compression of headers of packets and refreshing the context related to the packets
EP2168321B1 (en) Header size reductions of data packets
KR101694082B1 (en) Software-defined network overlay
US8619592B2 (en) Method and apparatus for increased internet protocol (IP) headers compression performance by reporting cause of missing packets
US7966018B2 (en) Transport efficiency optimization for mobile IPV6
US7492762B2 (en) Method for dynamic flow mapping in a wireless network
JP4590144B2 (en) Manipulating header fields to improve packet communication performance
US8149816B2 (en) Header compression and packet transmission method in sensor network and apparatus therefor
KR20100014507A (en) Method for configuring the link maximum trasmission unit(mtu) in a user equipment(ue)
US10432755B2 (en) SDN, SDN configuration method, SDN-based data transmission method, and network controller
US20060268820A1 (en) IP header compression with IPv6 mobile node
CN109120540B (en) Method for transmitting message, proxy server and computer readable storage medium
US20080239988A1 (en) Method and System For Network Infrastructure Offload Traffic Filtering
JP6480452B2 (en) Packet processing method and apparatus
CN111355704B (en) IPV6 network system based on bluetooth low-power consumption
US8767704B2 (en) Compressing header data
CN115022924B (en) Data packet header compression and data transmission method and system for wireless ad hoc network
US20020174203A1 (en) Method of forwarding data packets in communications-network routers
Rawat et al. Designing a header compression mechanism for efficient use of IP tunneling in wireless networks
JP7008714B2 (en) Communication device
Arango et al. Header compression for ad-hoc networks
Kaddoura et al. SEEHOC: scalable and robust end-to-end header compression techniques for wireless ad hoc networks
JP2019024266A (en) Packet processing method and device
Koulamas et al. IST-2001-37385 6HOP D2. 2
Ertekin et al. IPv6 header compression

Legal Events

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