Multipath routing method and device suitable for wireless ad hoc network

文档序号:1802780 发布日期:2021-11-05 浏览:25次 中文

阅读说明:本技术 一种适用无线自组网的多径路由方法及装置 (Multipath routing method and device suitable for wireless ad hoc network ) 是由 邓昭彰 李卫军 于 2021-09-09 设计创作,主要内容包括:本申请涉及一种适用于无线自组网多径路由方法、装置、计算机设备和存储介质。所述方法包括:构建路由协议帧;通过路由层接收邻居节点以分集和复用方式发送的路由协议帧,通过物理层解析路由协议帧,得到邻居节点的邻居类型、邻居节点ID、邻居节点ID对应的链路传输质量以及路由目的节点;根据邻居类型、邻居节点ID以及邻居节点ID对应的链路传输质量,建立分集型链路和复用型链路对应的局部邻居表;根据无线自组网中每个自组网节点对应的局部邻居表,建立无线自组网的本地路由表;根据识别输出传输业务的业务需求信息,从本地路由表选择分集路由路径或复用路由路径进行数据传输。采用本方法能够提高业务传输效果。(The application relates to a multipath routing method, a multipath routing device, computer equipment and a storage medium suitable for a wireless ad hoc network. The method comprises the following steps: constructing a routing protocol frame; receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node; establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID; establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; and selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service. The method can improve the service transmission effect.)

1. A multipath routing method applicable to a wireless ad hoc network, the method comprising:

constructing a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID;

establishing a local routing table of the wireless ad hoc network according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

2. The method of claim 1, wherein establishing a local routing table of the wireless ad hoc network according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network comprises:

extracting neighbor types, neighbor node IDs and link transmission quality corresponding to the neighbor node IDs from the local neighbor table according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network;

determining the type of a routing table in a local routing table according to the neighbor type, obtaining all neighbor nodes according to neighbor node IDs, and determining a next hop node reaching the routing destination node from all neighbor nodes according to link transmission quality corresponding to the neighbor node IDs;

and establishing a local routing table of the wireless ad hoc network according to the type of the routing table, the routing destination node and a next hop node of the routing destination node.

3. The method of claim 2, further comprising:

and selecting the neighbor node with the highest link transmission quality as a next hop node reaching the routing destination node according to the link transmission quality corresponding to the neighbor node ID.

4. The method of claim 1, further comprising:

after receiving the routing protocol frame, if the routing protocol frame is sent in a diversity mode, the routing layer creates or updates a local neighbor table corresponding to a diversity type link and a local routing table corresponding to the diversity type link, and informs a physical layer to forward the routing protocol frame in the diversity mode; if the routing protocol frame is sent in a multiplexing mode, a local neighbor table corresponding to the multiplexing link and a local routing table corresponding to the multiplexing link are created or updated, and a physical layer is informed to forward the routing protocol frame in the multiplexing mode.

5. The method of claim 3, wherein the routing protocol frames sent by the neighboring node in a diversity and multiplexing manner are sent by a physical layer in the neighboring node in a diversity and multiplexing manner using multiple antennas.

6. The method of claim 2, wherein the local routing table further comprises a time for a routing destination node to reach a most recent routing protocol frame, a potential next hop node to reach the routing destination node, and a path link transmission quality for the potential next hop node to reach the routing destination node.

7. The method of claim 2, wherein the local neighbor table further comprises: and receiving the time of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID and receiving the ttl value of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID.

8. A multipath routing apparatus adapted for use in a wireless ad hoc network, the apparatus comprising:

the route protocol frame construction module is used for constructing a route protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

the routing protocol frame receiving module is used for receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

a module for establishing local neighbor table, which is used for establishing local neighbor table corresponding to diversity type link and multiplexing type link according to neighbor type, neighbor node ID and link transmission quality corresponding to neighbor node ID

The local routing table establishing module is used for establishing a local routing table of the wireless ad hoc network according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and the data transmission module is used for selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of wireless ad hoc networks, and in particular, to a multipath routing method, apparatus, computer device, and storage medium suitable for wireless ad hoc networks.

Background

With the development of wireless ad hoc network technology, the wireless ad hoc network has flexible mode, high overall robustness and low system cost, and has attracted extensive attention in recent years, and routing protocols occupy an important position in the wireless ad hoc network.

However, most of the existing wireless ad hoc network routing protocols are single-path routing protocols, and for different service types, the service types are transmitted through the currently acquired single routing path without considering the characteristics of the different service types and the requirements of the service on the time delay, the throughput and the like of network transmission, and all the service types are transmitted through the same routing path without considering the characteristics of the different service types and the requirements of the different service types on the network transmission, which may affect the transmission effect of the service.

Disclosure of Invention

In view of the foregoing, it is desirable to provide a multipath routing method, apparatus, computer device and storage medium suitable for wireless ad hoc networks, which can improve the transmission effect of services.

A multipath routing method applicable to a wireless ad hoc network, the method comprising:

constructing a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID;

establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

In one embodiment, establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network includes:

extracting neighbor types, neighbor node IDs and link transmission quality corresponding to the neighbor node IDs from a local neighbor table according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; determining the type of a routing table in a local routing table according to the neighbor type, obtaining all neighbor nodes according to the neighbor node ID, and determining a next hop node reaching a routing destination node from all neighbor nodes according to the link transmission quality corresponding to the neighbor node ID; and establishing a local routing table of the wireless ad hoc network according to the type of the routing table, the routing destination node and the next hop node of the routing destination node.

In one embodiment, according to the link transmission quality corresponding to the neighbor node ID, the neighbor node with the highest link transmission quality is selected as the next-hop node reaching the destination node of the route.

In one embodiment, after receiving a routing protocol frame, if the routing protocol frame is sent in a diversity mode, a routing layer creates or updates a local neighbor table corresponding to a diversity type link and a local routing table corresponding to the diversity type link, and notifies a physical layer to continue forwarding the routing protocol frame in the diversity mode; if the routing protocol frame is sent in a multiplexing mode, a local neighbor table corresponding to the multiplexing link and a local routing table corresponding to the multiplexing link are created or updated, and the physical layer is informed to continue forwarding the routing protocol frame in the multiplexing mode.

In one embodiment, the routing protocol frame transmitted by the neighbor node in a diversity and multiplexing manner is transmitted by a physical layer in the neighbor node in a diversity and multiplexing manner by using multiple antennas.

In one embodiment, the local routing table further includes a time when the routing destination node reaches the last routing protocol frame, a potential next hop node reaching the routing destination node, and a path link transmission quality of the potential next hop node reaching the routing destination node.

In one embodiment, the local neighbor table further comprises: and receiving the time of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID and receiving the ttl value of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID.

A multi-path routing apparatus adapted for use in a wireless ad hoc network, the apparatus comprising:

the route protocol frame construction module is used for constructing a route protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

the routing protocol frame receiving module is used for receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

the local neighbor table establishing module is used for establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID;

the local routing table establishing module is used for establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and the data transmission module is used for selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:

constructing a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID;

establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:

constructing a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

receiving a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, and analyzing the routing protocol frame through a physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and a routing destination node;

establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID;

establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

The multipath routing method, the device, the computer equipment and the storage medium suitable for the wireless ad hoc network redesign a routing protocol frame, receive the routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, analyze the related content of the neighbor node through a physical layer, construct local neighbor tables of different link types based on the characteristics of the diversity mode and the multiplexing mode of the physical layer, construct the local routing table of the wireless ad hoc network according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network, select a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information of identifying and outputting transmission services, jointly design the routing layer and the physical layer of the wireless ad hoc network, construct a multipath routing mechanism based on different link types based on the characteristics of the diversity mode and the multiplexing mode of the physical layer, and according to the requirements of different service types on network transmission, different transmission paths are selected according to requirements, and the service experience of the user is effectively enhanced.

Drawings

Fig. 1 is a flow chart illustrating a multipath routing method for a wireless ad hoc network according to an embodiment;

FIG. 2 is a diagram of a format of a routing protocol frame in one embodiment;

FIG. 3 is a diagram of a local routing table entry in one embodiment;

FIG. 4 is a diagram of a local neighbor table entry in another embodiment;

fig. 5 is a block diagram of a multipath routing apparatus adapted to a wireless ad hoc network according to an embodiment;

FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

In one embodiment, as shown in fig. 1, there is provided a multipath routing method for wireless ad hoc networks, comprising the steps of:

102, constructing a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission.

The routing protocol frame refers to a frame of a routing protocol, and the routing protocol frame in the present application includes: a frame type field, a lifetime, a routing protocol frame number, a routing destination node ID for sending the routing protocol frame, and a link transmission quality of the routing protocol frame, as shown in fig. 2, where the type field is a frame type, and for the routing protocol frame, the value is 0x 00; bit is byte; TTL is the survival time, and the maximum hop count of the routing protocol frame which can be transmitted is defined; seq is a routing protocol frame sequence number, and the seq is increased by 1 when one routing protocol frame is sent; orig ID represents the ID number of the destination node of the route sending the routing protocol frame; the TQ value is the link transmission quality and is a basis for route selection, and is used for determining the next hop route of the current node.

And 104, receiving the routing protocol frame sent by the neighbor node in a diversity and multiplexing mode through the routing layer, and analyzing the routing protocol frame through the physical layer to obtain the neighbor type of the neighbor node, the ID of the neighbor node, the link transmission quality corresponding to the ID of the neighbor node and the destination node of the route.

The neighbor node is a node adjacent to a certain node in the wireless ad hoc network, diversity and multiplexing are two transmission modes based on a diversity mode and a multiplexing mode of physical layer MIMO, the diversity mode and the multiplexing mode correspond to different link types, a diversity link is obtained in the diversity mode, and a multiplexing link is obtained in the multiplexing mode.

And 106, establishing a local neighbor table corresponding to the diversity type link and the multiplexing type link according to the neighbor type, the neighbor node ID and the link transmission quality corresponding to the neighbor node ID.

The neighbor type comprises a local neighbor corresponding to the diversity type link and a local neighbor corresponding to the multiplexing type link, and a corresponding local neighbor table is established according to the type of the neighbor node, the diversity type link is a multi-antenna system based on a physical layer MIMO (multiple input multiple output), an antenna is used in a diversity mode to obtain diversity gain, and a link with a communication radius is improved. In addition, the number of hops on the routing path is reduced due to the increase in the communication radius. But its throughput is low compared to the multiplexing approach. The multiplexing link is a multi-antenna system based on physical layer mimo (multiple input multiple output), and the antenna is used in the link for improving throughput in the multiplexing mode, which has the advantages of increasing link channel rate and large network throughput. However, the number of hops on the routing path is large, and the transmission delay is large.

108, establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table includes a diversity routing path and a multiplexing routing path.

And obtaining related information of the local routing table according to the content in the local neighbor table, and obtaining diversity and multiplexing two routing paths by determining the type of the routing table and the next-hop routing of the node from the local routing table.

And step 110, selecting a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

The service requirement information includes but is not limited to the requirement of network delay and the requirement of throughput, when a routing path is selected according to the service requirement information, a diversity path with less hop count can be adopted for transmission for services with higher requirement on network delay and lower requirement on throughput; for the service with higher requirement on the network throughput rate, the multiplexing path with higher throughput can be adopted for transmission.

The multipath routing method, the device, the computer equipment and the storage medium suitable for the wireless ad hoc network redesign a frame of a routing protocol, receive a routing protocol frame sent by a neighbor node in a diversity and multiplexing mode through a routing layer, analyze the related content of the neighbor node through a physical layer, construct local neighbor tables of different link types based on the characteristics of the diversity mode and the multiplexing mode of the physical layer, construct the local routing table of the wireless ad hoc network according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network, select a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information of identifying and outputting transmission services, jointly design the wireless ad hoc routing layer and the physical layer, construct a multipath routing mechanism based on different link types based on the characteristics of the diversity mode and the multiplexing mode of the physical layer, and according to the requirements of different service types on network transmission, different transmission paths are selected according to requirements, and the service experience of the user is effectively enhanced.

In one embodiment, establishing a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network includes:

extracting neighbor types, neighbor node IDs and link transmission quality corresponding to the neighbor node IDs from a local neighbor table according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; determining the type of a routing table in a local routing table according to the neighbor type, obtaining all neighbor nodes according to the neighbor node ID, and determining a next hop node reaching a routing destination node from all neighbor nodes according to the link transmission quality corresponding to the neighbor node ID; and establishing a local routing table of the wireless ad hoc network according to the type of the routing table, the routing destination node and the next hop node of the routing destination node.

Determining the type of the routing table in the local routing table according to the type of the neighbor, if the type of the neighbor is the local neighbor corresponding to the diversity type link, correspondingly establishing a local routing table corresponding to the diversity type link, if the neighbor type is a local neighbor corresponding to the multiplexing type link, a local routing table corresponding to the multiplexing link is correspondingly established, and the current local routing table needs to store the routing information of each node reaching all other nodes in the network, as shown in fig. 3, the local routing table in the present application does not need to maintain all information of the routing path, but only the optimal next hop to reach the destination node of the route, all the neighbor nodes are obtained according to the neighbor node IDs, and can also be used as routing destination nodes for sending routing protocol frames in the ad hoc network, and determining a next hop node reaching the route destination node from the plurality of neighbor nodes according to the link transmission quality corresponding to the neighbor node reaching the route destination node.

In one embodiment, according to the link transmission quality corresponding to the neighbor node ID, the neighbor node with the highest link transmission quality is selected as the next-hop node reaching the destination node of the route.

In one embodiment, after receiving a routing protocol frame, if the routing protocol frame is sent in a diversity mode, a routing layer creates or updates a local neighbor table corresponding to a diversity type link and a local routing table corresponding to the diversity type link, and notifies a physical layer to continue forwarding the routing protocol frame in the diversity mode; if the routing protocol frame is sent in a multiplexing mode, a local neighbor table corresponding to the multiplexing link and a local routing table corresponding to the multiplexing link are created or updated, and the physical layer is informed to continue forwarding the routing protocol frame in the multiplexing mode.

In the data transmission process, the local neighbor table and the local routing table are continuously updated, and the local neighbor table and the local routing table are also continuously optimized.

In one embodiment, the routing protocol frame transmitted by the neighbor node in a diversity and multiplexing manner is transmitted by a physical layer in the neighbor node in a diversity and multiplexing manner by using multiple antennas.

Each node in the wireless ad hoc network periodically sends a routing protocol frame, after a physical layer of the node receives the routing protocol frame from a routing layer of the node, the physical layer of the node respectively uses multiple antennas to send the routing protocol frame in a diversity or multiplexing mode to inform the existence of a neighbor node, and after the neighbor node receiving the routing protocol frame correctly demodulates the corresponding routing protocol frame, the routing protocol frame is reported to the routing layer.

In one embodiment, the local routing table further includes a time when the routing destination node reaches the last routing protocol frame, a potential next hop node reaching the routing destination node, and a path link transmission quality of the potential next hop node reaching the routing destination node.

A routing table entry as shown in fig. 3, wherein a type field indicates a routing table type, 0 indicates a local routing table corresponding to a diversity type link, and 1 indicates a local routing table corresponding to a multiplexing type link; orig ID represents the route destination node; last seen represents the time of receiving the latest routing protocol frame of the orig ID of the destination node of the route; last seq indicates the sequence number of the latest routing protocol frame of the orig ID of the destination node of the received route; best nexthop ID represents the optimal next hop node ID of orig ID of the destination node of the arrival route; potential next hop ID1 represents a potential next hop node ID1 that reaches the route destination node orig ID in addition to the best next hop ID; TQ1 represents the path link transmission quality through the potential next hop node ID1 to the corresponding route destination node orig ID.

In one embodiment, the local neighbor table further comprises: and receiving the time of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID and receiving the ttl value of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID.

The local neighbor table is shown in fig. 4, where type represents a neighbor type, 0 represents a local neighbor corresponding to the diversity type link, and 1 represents a local neighbor corresponding to the multiplexing type link; neighbor ID represents neighbor node ID; last seen represents the time of the nearest routing protocol frame of the orig ID of the destination node of the route received by the neighbor node corresponding to the neighbor ID; and last ttl represents the ttl value of the routing protocol frame closest to the orig ID of the destination node received via the neighbor node corresponding to the neighbor ID.

It should be understood that, although the various steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 5, there is provided a multipath routing apparatus adapted to a wireless ad hoc network, including: a routing protocol frame building module 501, a routing protocol frame receiving module 502, a local neighbor table building module 503, a local routing table building module 504 and a data transmission module 505, wherein:

a routing protocol frame constructing module 501, configured to construct a routing protocol frame; the routing protocol frame includes: a frame type field and a link transmission quality field; the frame type field is used for determining the frame type of the routing protocol frame, and the link transmission quality field is used for determining the link transmission quality of the routing protocol frame transmission;

a routing protocol frame receiving module 502, configured to receive, by a routing layer, a routing protocol frame sent by a neighbor node in a diversity and multiplexing manner, and analyze, by a physical layer, the routing protocol frame to obtain a neighbor type of the neighbor node, a neighbor node ID, link transmission quality corresponding to the neighbor node ID, and a routing destination node;

a local neighbor table establishing module 503, configured to establish a local neighbor table corresponding to the diversity link and the multiplexing link according to the neighbor type, the neighbor node ID, and the link transmission quality corresponding to the neighbor node ID;

a local routing table establishing module 504, configured to establish a local routing table of the wireless ad hoc network according to a local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; the local routing table comprises a diversity routing path and a multiplexing routing path;

and a data transmission module 505, configured to select a diversity routing path or a multiplexing routing path from the local routing table for data transmission according to the service requirement information for identifying the output transmission service.

In one embodiment, the module 504 for establishing a local routing table is further configured to extract a neighbor type, a neighbor node ID, and link transmission quality corresponding to the neighbor node ID from the local neighbor table according to the local neighbor table corresponding to each ad hoc network node in the wireless ad hoc network; determining the type of a routing table in a local routing table according to the neighbor type, obtaining all neighbor nodes according to the neighbor node ID, and determining a next hop node reaching a routing destination node from all neighbor nodes according to the link transmission quality corresponding to the neighbor node ID; and establishing a local routing table of the wireless ad hoc network according to the type of the routing table, the routing destination node and the next hop node of the routing destination node.

In one embodiment, the module 504 for establishing a local routing table is further configured to select, according to the link transmission quality corresponding to the neighboring node ID, the neighboring node with the highest link transmission quality as the next hop node reaching the destination node of the route.

In one embodiment, the routing protocol frame receiving module 502 is further configured to, after the routing layer receives the routing protocol frame, create or update a local neighbor table corresponding to the diversity type link and a local routing table corresponding to the diversity type link if the routing protocol frame is sent in a diversity manner, and notify a physical layer in the neighbor node to forward the routing protocol frame in a diversity manner; if the routing protocol frame is sent in a multiplexing mode, a local neighbor table corresponding to the multiplexing link and a local routing table corresponding to the multiplexing link are created or updated, and a physical layer in a neighbor node is informed to forward the routing protocol frame in the multiplexing mode.

In one embodiment, the routing protocol frame receiving module 502 is further configured to transmit the routing protocol frame in a diversity and multiplexing manner for the physical layer in the neighboring node using multiple antennas.

In one embodiment, the local routing table in the local routing table module 504 is established further including the time of arrival of the routing destination node at the last routing protocol frame, the potential next-hop node of arrival at the routing destination node, and the path link transmission quality of arrival at the routing destination node at the potential next-hop node.

In one embodiment, the building the local neighbor table in the local neighbor table module 503 further includes: and receiving the time of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID and receiving the ttl value of the nearest routing protocol frame of the routing destination node through the neighbor node corresponding to the neighbor node ID.

For specific limitations of a multipath routing apparatus suitable for a wireless ad hoc network, refer to the above limitations on a multipath routing method suitable for a wireless ad hoc network, which are not described herein again. The modules in the multipath routing device suitable for the wireless ad hoc network can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a multipath routing method suitable for wireless ad hoc networks. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In an embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the method in the above embodiments when the processor executes the computer program.

In an embodiment, a computer storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method in the above-mentioned embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于局部主动路由辅助的按需路由方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!