CN115766558A - Wireless ad hoc network multi-subnet data forwarding method - Google Patents

Wireless ad hoc network multi-subnet data forwarding method Download PDF

Info

Publication number
CN115766558A
CN115766558A CN202211374839.2A CN202211374839A CN115766558A CN 115766558 A CN115766558 A CN 115766558A CN 202211374839 A CN202211374839 A CN 202211374839A CN 115766558 A CN115766558 A CN 115766558A
Authority
CN
China
Prior art keywords
node
subnet
data
forwards
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211374839.2A
Other languages
Chinese (zh)
Inventor
赵星影
程道辉
喻竹希
双炜
张玉龙
熊佳颜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Xingyun Technology Co ltd
Original Assignee
Aerospace Xingyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Xingyun Technology Co ltd filed Critical Aerospace Xingyun Technology Co ltd
Priority to CN202211374839.2A priority Critical patent/CN115766558A/en
Publication of CN115766558A publication Critical patent/CN115766558A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless ad hoc network multi-subnet data forwarding method, which comprises the steps that a source node forwards data, and whether a subnet IP address of a destination node exists in a routing table in a subnet where the source node is located is inquired; if the IP address of the subnet where the destination node is located exists in the routing table, directly forwarding according to the routing table; the IP address of the subnet where the target node is located does not exist in the routing table, the source node forwards the data to the gateway node of the subnet where the source node is located, the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the target node is located, and the subnet gateway node where the target node is located forwards the data to the target node; each subnet is internally provided with a plurality of radio station nodes and a gateway node, all node user IDs and corresponding subnet IP addresses in the subnet are known in the radio station nodes, and all node user IDs and all subnet IP addresses are stored in the gateway node; the invention solves the requirement that each subnet in the ad hoc network uses different frequency band communication scenes.

Description

Wireless ad hoc network multi-subnet data forwarding method
Technical Field
The invention relates to the technical field of wireless ad hoc networks, in particular to a multi-subnet data forwarding method of a wireless ad hoc network.
Background
In the wireless ad hoc network, according to the node service requirement and the network topology change, each sub-network uses different frequency bands, which not only facilitates the sub-network management, but also improves the flexibility of the sub-network use. The frequency bands of the sub-networks are different, the network topology is different, multi-hop data forwarding needs to be carried out among the nodes across the sub-networks, communication between two nodes in different sub-networks is achieved, but each node can only communicate with the nodes existing in the routing table of the node, and the nodes which are not in the routing table can not communicate.
At present, all subnets are generally managed by using a uniform frequency division mode for the whole network in an ad hoc network, and nodes in all the subnets can communicate before using the management mode, so that the network management is facilitated, but the use flexibility of the subnets is reduced. In some ad hoc networks, different frequency bands are adopted to divide sub-networks, and gateways are added in two adjacent sub-networks to enable nodes in each sub-network to communicate.
Disclosure of Invention
Aiming at the defects existing in the problems, the invention provides a wireless ad hoc network multi-subnet data forwarding method.
In order to achieve the above object, the present invention provides a method for forwarding data in multiple subnets of a wireless ad hoc network, including:
the source node forwards data, and firstly inquires whether a routing table in a subnet where the source node is located has a subnet IP address where the destination node is located;
if the IP address of the subnet where the destination node is located exists in the routing table, directly forwarding according to the routing table;
if the IP address of the subnet where the destination node is located does not exist in the routing table, the source node forwards the data to the subnet gateway node where the source node is located, the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the destination node is located, and the subnet gateway node where the destination node is located forwards the data to the destination node;
the radio station nodes know all node user IDs and corresponding subnet IP addresses in the subnet, and the node network management program stores all the node user IDs and all the subnet IP addresses.
Preferably, the forwarding, by the source node, the data to the subnet gateway node where the source node is located, and the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the destination node is located, includes:
the source node forwards the data to the corresponding station node in the subnet of the source node through the routing table;
the radio station node forwards the data to the node network management program according to an internal communication protocol of a gateway node;
the node network management program acquires the IP address of the subnet where the node network management program is located according to the destination node address;
the node network management program forwards the data to the radio station node connected with the IP address of the subnet where the destination node is located based on the IP address of the subnet where the destination node is located;
and the radio station node forwards the data to a subnet gateway node where the destination node is located.
Preferably, the node network management program stores all node user IDs and all subnet IP addresses including:
the radio station node forwards the data to the radio station node corresponding to the subnet where the destination node is located;
the radio station node in the subnet where the destination node is located is forwarded to the node network management program of the subnet where the destination node is located through the gateway node internal communication protocol;
the node management program of the subnet where the destination node is located forwards the data to the corresponding radio station node through the gateway node internal communication protocol according to the destination node user ID and the subnet IP address corresponding to the destination node user ID;
and the radio station node forwards the data to the destination node according to the routing table of the radio station node.
Preferably, the internal communication protocol of the gateway node is a communication protocol of UDP + PDXP.
Preferably, the source/sink address is filled out based on the gateway node internal communication protocol.
Preferably, the node management program further stores a forwarding table, where the forwarding table is a forwarding path table between the source node and the destination node that process different subnets.
Compared with the prior art, the invention has the beneficial effects that:
the invention solves the requirement that each subnet in the ad hoc network uses a communication scene without a frequency band, so that the node and the nodes in the same subnet and different subnets can communicate, and simultaneously, a plurality of subnets can be connected at one time, thereby adapting to the dynamic change of the subnets and improving the use flexibility and the universality.
Drawings
Fig. 1 is a flow chart of a wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 2 is a network layer message format diagram in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 3 is a format diagram of a PDXP packet in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 4 is a network topology forwarding diagram of the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 5 is a filling diagram of a corresponding address of a network layer of a source node in the method for forwarding data of multiple subnets of a wireless ad hoc network according to the present invention;
fig. 6 is a PDXP packet format diagram of a subnet 1 radio station of a subnet 1 gateway node in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 7 is a diagram of a format of a subnet 1 network management program software PDXP packet in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 8 is a diagram for filling out the corresponding address of the subnet 2 radio station network layer of the subnet 1 gateway node in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 9 is a PDXP packet format diagram of a subnet 2 radio station of a subnet 2 gateway node in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 10 is a diagram of a format of a subnet 2 network management program software PDXP packet in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
fig. 11 is a diagram for filling out the corresponding address of the subnet 4 radio station network layer of the subnet 2 gateway node in the wireless ad hoc network multi-subnet data forwarding method of the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Definitions of terms in relation to the following invention include:
the user ID: each node has a user attribute, each node has a user ID number, the IDs are used for information transfer among users, and each node ID is unique;
source/sink address: the method comprises the following steps that address identifiers of all devices in a gateway node are used for information transfer between the devices in the gateway node;
subnet IP: the IP address of a node in its wireless subnetwork is used for information transfer among multiple devices within a single subnetwork.
Referring to fig. 1, the present invention provides a method for forwarding data of multiple subnets of a wireless ad hoc network, including:
the source node forwards data, and firstly inquires whether a routing table in a subnet where the source node is located has a subnet IP address where the destination node is located;
in particular, when data flows in a subnet, the present invention does not relate to the MAC layer and the physical layer, and this part is not described herein. The network layer message format is shown in fig. 2;
when data is circulated inside the gateway node, the invention does not relate to a network layer, a MAC layer and a physical layer, relevant contents are not described in the text, and a PDXP packet format is shown in FIG. 3.
If the IP address of the subnet where the destination node is located exists in the routing table, directly forwarding according to the routing table;
if the IP address of the subnet where the destination node is located does not exist in the routing table, the source node forwards the data to the subnet gateway node where the source node is located, the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the destination node is located, and the subnet where the destination node is located forwards the data to the destination node;
the radio nodes know all node addresses in the subnet and corresponding subnet IP addresses, and the gateway node stores all node user IDs and all subnet IP addresses.
Further, the source node forwards the data to the subnet gateway node where the source node is located, and the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the destination node is located, including:
the source node forwards the data to a corresponding radio station node in a subnet of the source node through a routing table;
the radio station node forwards the data to a node network management program according to an internal communication protocol of the gateway node;
the node network management program acquires the IP address of the subnet where the node network management program is located according to the ID of the destination node user;
the node network management program forwards the data to the radio station node connected with the IP address of the subnet where the destination node is located based on the IP address of the subnet where the destination node is located;
and the radio node forwards the data to the subnet gateway node where the destination node is located.
Still further, the node network management program stores all node user IDs and all subnet IP addresses including:
the radio station node forwards the data to a radio station node corresponding to a subnet where the destination node is located;
a radio station node in a subnet where a destination node is located is forwarded to a node network management program of the subnet where the destination node is located through a gateway node internal communication protocol;
the node network management program of the subnet where the destination node is located forwards the data to the corresponding radio station node through the gateway node internal communication protocol according to the destination node user ID and the subnet IP address corresponding to the destination node user ID;
and the radio station node forwards the data to the destination node according to the routing table of the radio station node.
In this embodiment, different subnet radio equipment and network management programs are configured inside the gateway node, a commercial switch is adopted, and a communication protocol of UDP + PDXP is adopted inside the node; each radio station node knows the user ID of each node in the subnet where the radio station node is located and the corresponding subnet IP address, each radio station node maintains a routing table of the node in the respective subnet, reports the user ID of the node and network topology information to the gateway node, and network management program software of the gateway node maintains the user ID and network topology of the whole network and generates a corresponding forwarding table. The node management program also stores a forwarding table, and the forwarding table is a forwarding path table between a source node and a destination node which process different subnets.
Referring to fig. 4, assuming that the source node (subnet 1 radio node 4) is to communicate with the destination node (subnet 4 radio node 1), the specific flow is as follows:
the source node generates application data, a routing table is inquired according to the user ID of the destination node, the IP address of the destination node does not exist in the routing table is found, and the source node sends the data to a subnet 1 radio station of a subnet 1 gateway node according to the routing table; the corresponding address filling of the network layer of the sending node is shown in fig. 5;
after receiving the data, a subnet 1 radio station of a subnet 1 gateway node fills in an information source/information destination address according to an internal communication protocol of the gateway node and forwards the data to a network management program; the format of a subnet 1 radio station PDXP packet of a subnet 1 gateway node is shown in FIG. 6;
the network management program software inquires the subnet where the destination node is located and the subnet IP address of the destination node according to the user ID of the destination node, fills in a source/sink address, a subnet source IP address (the subnet 2 radio station of the gateway node of the subnet 1 at this time) and a subnet destination IP address (the subnet 2 radio station of the gateway node of the subnet 2 at this time) through an internal communication protocol of the gateway node, and sends data to the subnet 2 radio station of the gateway node of the subnet 1; the format of the subnet 1 network management program software PDXP packet is shown in FIG. 7;
after receiving the data, the subnet 2 radio station of the subnet 1 gateway node inquires a subnet source IP address and a subnet destination IP address, and forwards the data to the subnet 2 radio station of the subnet 2 gateway node according to a routing table; the corresponding address of the subnet 2 radio station network layer of the subnet 1 gateway node is filled in as shown in fig. 8;
after the subnet 2 gateway node subnet 2 radio station receives the data, filling in an information source/information sink address according to an internal communication protocol of the gateway node, and forwarding the data to network management program software; the format of the subnet 2 radio station PDXP packet of the subnet 2 gateway node is shown in fig. 9;
the network management program software inquires the subnet where the target node is located and the subnet IP address of the target node according to the user ID of the target node, fills in an information source/information destination address, a subnet source IP address (a subnet 4 radio station of a subnet 2 gateway node at this time) and a subnet target IP address (a subnet 4 radio station node 1 at this time) through the gateway node internal communication protocol, and sends data to the subnet 4 radio station of the subnet 2 gateway node; the format of the subnet 2 network management program software PDXP packet is shown in FIG. 10;
after receiving the data, a subnet 4 radio station of the subnet 2 gateway node inquires a subnet source IP address and a subnet destination IP address and forwards the data to a destination node according to a routing table; the subnet 4 station network layer corresponding address of the subnet 2 gateway node is filled in as shown in fig. 11.
The present invention has been described in terms of the preferred embodiment, and it is not intended to be limited to the embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A wireless ad hoc network multi-subnet data forwarding method is characterized by comprising the following steps:
the source node forwards data, and firstly inquires whether a routing table in a subnet where the source node is located has a subnet IP address where the destination node is located;
if the IP address of the subnet where the destination node is located exists in the routing table, directly forwarding according to the routing table;
if the IP address of the subnet where the destination node is located does not exist in the routing table, the source node forwards the data to the subnet gateway node where the source node is located, the subnet gateway node where the source node is located forwards the data to the subnet gateway node where the destination node is located, and the subnet gateway node where the destination node is located forwards the data to the destination node;
the radio node knows all node user IDs and corresponding subnet IP addresses in the subnet, and the gateway node stores all node user IDs and all subnet IP addresses.
2. The method for forwarding the data of the multiple subnets of the wireless ad hoc network according to claim 1, wherein the source node forwards the data to a subnet gateway node where the source node is located, and the subnet gateway node where the source node is located forwards the data to a subnet gateway node where the destination node is located, including:
the source node forwards the data to the corresponding station node in the subnet of the source node through the routing table;
the radio station node forwards the data to the node network management program according to an internal communication protocol of a gateway node;
the node network management program acquires the IP address of the subnet where the node network management program is located according to the ID of the destination node user;
the node network management program forwards the data to the radio station node connected with the IP address of the subnet where the destination node is located based on the IP address of the subnet where the destination node is located;
and the radio station node forwards the data to a subnet gateway node where the destination node is located.
3. The method as claimed in claim 2, wherein the node network management program stores all node user IDs and all subnet IP addresses including:
the radio station node forwards the data to the radio station node corresponding to the subnet where the destination node is located;
the radio station node in the subnet where the destination node is located is forwarded to the node network management program of the subnet where the destination node is located through the gateway node internal communication protocol;
the node network management program of the subnet where the destination node is located forwards the data to the corresponding radio station node through the gateway node internal communication protocol according to the destination node user ID and the subnet IP address corresponding to the destination node user ID;
and the radio station node forwards the data to the destination node according to the routing table of the radio station node.
4. The method according to claim 3, wherein the gateway node internal communication protocol is a communication protocol of UDP + PDXP.
5. The method of claim 4, wherein a source/sink address is filled based on the gateway node internal communication protocol.
6. The method as claimed in claim 5, wherein the node network manager further stores a forwarding table, and the forwarding table is a forwarding path table between the source node and the destination node in different subnets.
CN202211374839.2A 2022-11-04 2022-11-04 Wireless ad hoc network multi-subnet data forwarding method Pending CN115766558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211374839.2A CN115766558A (en) 2022-11-04 2022-11-04 Wireless ad hoc network multi-subnet data forwarding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211374839.2A CN115766558A (en) 2022-11-04 2022-11-04 Wireless ad hoc network multi-subnet data forwarding method

Publications (1)

Publication Number Publication Date
CN115766558A true CN115766558A (en) 2023-03-07

Family

ID=85356263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211374839.2A Pending CN115766558A (en) 2022-11-04 2022-11-04 Wireless ad hoc network multi-subnet data forwarding method

Country Status (1)

Country Link
CN (1) CN115766558A (en)

Similar Documents

Publication Publication Date Title
US10171260B2 (en) Managing router advertisement messages to support roaming of wireless mobile client devices
JP4199672B2 (en) System and method for automatic configuration of IP address to MAC address mapping and gateway presence discovery
US20020039357A1 (en) Addressing and routing in mobile ad hoc networks
CN101019450B (en) System and method to communicate internet packet data via packet radio networks
US7706301B2 (en) Routing in a data communication network
US8451839B2 (en) Method and apparatus for managing route information and forwarding data in access devices
EP1011241B1 (en) Wireless access to packet-based networks
US20190296999A1 (en) Hierarchical bit indexed replication of multicast packets
CN101572692A (en) Method, system and equipment for IP address assignment
CN112398959B (en) RLC channel determination method and device
CN112654049A (en) Method for configuring wireless communication coverage extension system and wireless communication coverage extension system for implementing same
US9893907B2 (en) Managing multiple virtual area network memberships
CN113472913A (en) Communication method and device
CN115766558A (en) Wireless ad hoc network multi-subnet data forwarding method
CN109922442B (en) Address resolution method for heterogeneous network of wireless multi-hop network and full-connection network
Wang et al. A distributed address configuration scheme for a MANET
JP2003309596A (en) Mobile communication network system, external agent router, address server and packet delivery method used for the same
CN101938526A (en) Obtaining method of routing policy, terminal and server
CN109951843B (en) Address configuration implementation method for next generation wireless sensor network
López et al. Subnet formation and address allocation approach for a routing with subnets scheme in MANETs
KR20240057379A (en) Apparatus and method for providing basic support for IPv6 networks operating over 5G vehicle-to-everything communications
WO2020187398A1 (en) Tunnel endpoint encoding for mobile network architecture
CN115499888A (en) Communication method and device
Bhatia et al. A distributed prefix allocation scheme for subordinate manet

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