Skip to main content

Network consensus analysis and optimization of distributed FANETs based on multi-agent consensus theory

Abstract

Distributed flying ad hoc networks (FANETs) have been widely used in collaborative reconnaissance, situation construction, and other scenarios. In distributed FANETs with multi-hop and intermittent links, nodes only maintain neighbors’ information and cannot obtain the whole network messages. There may be contradicting information collected across nodes, resulting in inconsistency problems. However, existing research on collaborative consensus focuses mainly on the control domain using multi-agent consensus theory. The study on distributed network consensus does not consider the effect of the multi-hop forwarding order, hence limiting the optimization of distributed FANETs. Based on this, we establish a network consensus model utilizing the multi-agent consensus theory and analyze the impact of the outage probability of links and untimely forwarding on the distributed consensus probability, considering the node density, link outage probability, and network maintenance times. Besides, using the election mechanism as an example, we establish distributed network performance analysis models considering consensus error to enhance the service delay and resource efficiency performance analysis of distributed FANETs. Finally, we construct a protocol-level simulation platform based on Visual Studio and extensive experiments to determine the optimal mechanism parameters under different network and channel parameters. The simulation results show that the optimal network maintenance times increase with the increasing outage probability of links. Moreover, distributed FANETs can achieve optimal resource efficiency without achieving complete consensus, that is, there is a tradeoff between network maintenance cost and network performance.

1 Introduction

A flying ad hoc network (FANET) is a collection of vehicles equipped with communication and sensing capabilities [1,2,3], which can achieve cooperative division of labor and has been widely utilized in collaborative reconnaissance [1], situation construction [4], and other scenarios. In the circumstances above, vehicles use the advantage of high mobility and flexibility [5] to respond to changing collaboration tasks and boost network coverage by expanding network hops. The mobility of vehicles and the complexity of the electromagnetic environment cause the FANET to present the characteristics of multi-hop and intermittent links [6], in which the outage probability of links can reach 20–30% [7].

The network architectures and multiple access mechanisms based on them have a crucial role in determining the communication performance of FANETs and will also impact the cooperative method. There are mainly two types of existing networking architectures: centralized and distributed network architecture [8]. The central node maintains the whole network’s information under the centralized network architecture and builds a maintenance tree. Based on the tree structure, all resource application information must be collected at the central node, and the central node completes resource allocation. Increased network hops and intermittent links will significantly raise the overhead of all information converging on the central node, reducing resource efficiency. Moreover, when the central node is damaged, the centralized network must reselect a central node, which incurs extra network reconfiguration costs. In comparison, each node in the distributed network stores a subset of its neighbors’ information and makes decisions separately, whose resource efficiency and delay performance have apparent advantages over centralized networks with intermittent links [9, 10]. So, the distributed FANET becomes an inevitable choice in the complex battlefield environment.

However, in a distributed network, each node only maintains part of its neighbor messages and cannot obtain information about the whole network. There may be contradicting information collected across nodes, resulting in inconsistency problems. Suppose neighboring nodes store different network information (such as the number of neighbors, number of services and service requirements, etc.). In that case, their resource allocation results may conflict, leading to transmission collisions and resource waste. When the link outage probability increases, the failure possibility of data transmission and the probability of nodes receiving conflicting information increase. For example, suppose a distributed network consists of seven nodes from Node1 to Node7, and the nodes transmit network maintenance information in the order from Node1 to Node7, as shown in Fig. 1. During the first network maintenance, Node6 could not transmit data successfully owing to intermittent links. During the second period of maintenance, Node6 information was successfully sent. As shown in Table 1, after two times of network maintenance, the information maintained by Node1 and Node2 is inconsistent.

Fig. 1
figure 1

A network maintenance example. Link outage probability affects maintenance information transmission in different maintenance periods

Table 1 Network information maintained by Node1 and Node2

If resource allocation is based on the above information, the timeslot allocated by Node1 to Node7 will be slot 6, the same timeslot given by Node2 to Node6, as shown in Fig. 2. The resource allocation result is in conflict.

Fig. 2
figure 2

Resource allocation results by Node1 and Node2 are in conflict

It can be seen from the above example that, due to the intermittent link during the first network maintenance, Node1 is unable to acquire information about Node6. Even if there is no link interruption, Node1 and Node2 still have different maintenance information. This is because information on some multi-hop neighbors is not forwarded in time during the second maintenance process due to the sending order of nodes. Evidently, the link outage probability and forwarding order affect the consensus of a distributed FANET.

Most research on distributed consensus analysis focuses on the cooperative control domain using multi-agent consensus theory. In the multi-agent consensus control analysis theory, nodes engage with their neighbors and adjust the output to make the vehicles converge to the desired state (same as the pilot node or average of global) globally. Olfati-Saber et al. [11] introduced the multi-agent consensus theory and provided the state update equation to analyze the system consensus using algebraic graph theory based on the noise-free Vicsek model. Abdessameud and Tayebi [12, 13] studied the consensus of multi-agent systems under directed topology and analyzed the relationship between network topology and control consensus probability. Savino et al. [14, 15] studied the influence of delay on the consensus error of the control system and obtained the delay range to ensure consensus. The impact of changing topology and the delay required to receive data packets successfully on the multi-agent consensus error was analyzed in [16, 17], and the conditions for the system to reach an agreement were given through linear matrix inequalities. It can be seen that the factors affecting the consensus of the multi-agent control system include the number of hops between nodes, packet loss and delay caused by intermittent links, etc.

The network consensus in the distributed FANET is that each node obtains accurate and timely neighbor information and minimizes resource collision or waste by adjusting resource allocation results. As described in Fig. 2, in distributed FANETs, there may be conflicts in resource allocation caused by network consensus error, leading to failure data transmission. Currently, most distributed network performance analysis and optimization studies have yet to consider the impact of network consensus, but reduce the effect of link outage rate and untimely forwarding through retransmission to meet the constraints for the success probability of data transmission [18, 19]. Resource allocation must be successful in this case, eliminating the impact of inconsistency in practice. Li and Li [20] pointed out that the link outage probability would cause packet loss and the emergence of nodes with unknown election interval information in the distributed network under the election mechanism, hence influencing the selection of election sets and the resource allocation outcomes. The above research investigated the effect of various election interval lengths on the success probability of resource allocation. However, it only considered the impact of packet loss in multi-hop information forwarding. It did not consider the forwarding order influence, resulting in the limited optimization of distributed FANET parameters. There are similarities between multi-agent control consensus and network consensus; thus, we can use the state update equation from multi-agent consensus analysis theory as a reference to study the consensus performance of distributed FANETs.

Considering the issues above, we concentrate on distributed FANETs with multi-hop and intermittent links and research network consensus analysis and optimization based on multi-agent consensus theory. In this paper, we establish a network consensus model using multi-agent consensus analysis theory, and analyze the impact of network and channel parameters on network consensus probability through theoretical models and two simulation methods: construction matrix and iteration (CMIT), construction matrix and intercept (CMIN). Besides, we establish network performance analysis and optimization models considering consensus error using the election mechanism as an example to enhance the service delay and resource efficiency performance analysis of distributed FANETs. Finally, a protocol-level simulation platform based on Visual Studio (VS) is built to validate the accuracy of models, and the optimal mechanism parameters under different network and channel parameters are given to improve the applicability of FANETs.

The article’s contributions are as follows:

  • We establish the network consensus model of distributed FANETs using the multi-agent consensus theory and analyze the consensus error affected by link outage probability and untimely forwarding under different node densities, link outage probabilities, and network maintenance times.

  • We establish the service delay and resource efficiency model and optimization model of FANETs, taking the election mechanism as an example, considering the impact of network consistency, and analyze the effects of different network, channel, and mechanism parameters on FANETs performance.

  • We build a protocol-level simulation platform based on VS and extensive experiments to study the network consensus performance through theoretical models, the CMIT, and the CMIN methods. The optimal mechanism parameters under different network and channel parameters are given through simulation to improve further the distributed FANETs’ performance.

The article is organized as follows: The first part is the introduction, in which we introduce the background, research objectives, and review of the relevant literature. Section 2 describes the system model, which includes the network model, frame structure, and critical processes of the election mechanism. The network consensus model is described in Sect. 3, taking advantage of the multi-agent consensus theory. Section 4 describes the network performance analysis and optimization models of distributed FANETs with an election mechanism. We build a simulation platform based on VS and conduct simulation analysis in Sect. 5. Section 6 summarizes the whole paper.

2 Methods

2.1 Network Model and Frame Structure

The network architecture of distributed FANET is shown in Fig. 3. In this network, the node density is \(\lambda\), the number of network hops is H, and the coverage radius of a node is r. All nodes have services to transmit, and the number of data slots each node needs to occupy (that is, the traffic) is \({N_{{\mathrm{data}}}}\). In distributed FANETs, nodes only maintain the information of neighbors. Taking the network maintenance hop is 2 as an example, the node with blue color represents the neighbor of node A, and the gray node is not.

Fig. 3
figure 3

Network architecture of a distributed FANET, where nodes only maintain the information of neighbors

The frame structure of distributed FANETs is shown in Fig. 4. The slot is the minimum resource allocation unit, and the node transmits various messages in different slots based on the slot type given in the frame structure. We divide each frame into \(C+D\) slots, where C represents the number of control slots for transmitting network maintenance, resource request, and grant information, and D represents the number of data slots for data transfers. The duration of a slot is \({T_{{\mathrm{slot}}}}\).

Fig. 4
figure 4

Frame architecture of distributed FANETs which contains \(C+D\) slots

2.2 Process of election mechanism

As a typical multiple access mechanism in distributed networks, the election mechanism conducts periodic interaction between nodes to acquire service requirements of nodes, then determines the slot for nodes to send data messages based on the election algorithm. It is more appropriate than the competition and reservation method when all nodes have periodic services [21]. The process of the election mechanism is shown in Fig. 5.

Fig. 5
figure 5

The process of the election mechanism. The election mechanism conducts periodic interaction between nodes to acquire service requirements of nodes, then determines the slot for nodes to send data messages based on the election algorithm

The mechanism process is explained as follows:

  1. (1)

    After a successful election and data message transfer, the backoff procedure begins, and the node receives network maintenance information from its neighbors.

  2. (2)

    During the backoff, the node gets network maintenance information sent by its 1-hop neighbors. The election interval of neighbors is obtained by examining the election unit included inside the message. In addition, the node parses the election unit of the neighbors within the \({H_{{\mathrm{sch}}}}\)-hop forwarded by the 1-hop neighbors, where \({H_{{\mathrm{sch}}}}\) is the network maintenance hop. According to the above information, the node determines the legal election node [22], which competes with this node.

  3. (3)

    Then, the node starts the election process, determines the initial slot of this election interval, and starts the election. The node judges whether the current slot number reaches the maximum; if so, go to step (1). If not, the node inputs its ID, the ID of other legal election nodes, and the current slot number into the Hash Function [22] to calculate the election result. If the node is elected successfully, the slot number is recorded, and the resource scheduling is finished, the data message is sent when the slot arrives; then, go to step (1). Otherwise, the number of the election slot plus one and go to step (2).

The schematic diagram of the Hash Function is shown in Fig. 6, and its input parameters include the node ID, the ID of other legal election nodes in the election set, and the slot that can be used for the election. The Hash Function calculates the mixed value of the node ID and slot number, and the mixed value of other legal election node ID and slot numbers. If the mixed value of this node is the largest, this node is elected successfully.

Fig. 6
figure 6

The schematic diagram of the Hash Function, which is used to determine the election results

It can be seen that the election mechanism includes an effective election interval and a backoff interval. The maximum number of slots in the effective election interval is \({2^{\exp }}\)(i.e., the maximum number of election slots). The number of slots in the backoff interval is \(h = {2^{{\mathrm{exp + basic}}}}\), where \(\exp\) and \({\mathrm{basic}}\) is election index, and \(\exp = 1\), \({\mathrm{basic}} = 4\) [22].

3 Network consensus model based on multi-agent consensus theory

In this section, we use the multi-agent consensus theory to establish a network consensus error model of distributed FANETs considering the node density, outage probability of links, and network maintenance times, which sets the basis for the performance analysis models. The parameters involved in models are shown in Table 2.

Table 2 The parameters involved in the models

3.1 Overview of multi-agent consensus theory

The consensus control model of a multi-agent system includes a cooperative control model and a single control model. The neighboring states of a node and its current state are utilized as inputs for the cooperative control algorithm, which determines the predicted location and speed. Each node in the system continuously adjusts its own state according to the above process until it reaches the desired state. Generally, Eq. (1) is the state update equation to describe the state update process.

$$\begin{aligned} {p_i}[k + 1] &= {p_i}[k] + h{v_i}[k] + \frac{{{h^2}}}{2}{u_i}[k]\\ {v_i}[k + 1] &= {v_i}[k] + h{u_i}[k] \end{aligned}$$
(1)

where h indicates the sampling interval, k indicates the sampling time, \({p_i}\) is the position of node i, \({v_i}\) is the speed of node i, and \({u_i}\) represents the acceleration of the node. The value of \({u_i}\) is determined by its own position and velocity, its neighbor’s position and velocity, and the cooperative control algorithm.

Equation (1) can be further expressed as

$$\begin{aligned}\underbrace{\left[ \begin{array}{l} p[k + 1] - {p_L}[k + 1]\\ v[k + 1] - {v_L}[k + 1] \end{array} \right] }_{\delta [k + 1]} = \underbrace{\left[ {\begin{array}{*{20}{c}} {{I_N} - \frac{{{h^2}}}{2}{\varphi _1}\Gamma }&{}{h{I_N} - \frac{{{h^2}}}{2}{\varphi _1}{\varphi _2}\Gamma }\\ { - h{\varphi _1}\Gamma }&{}{ - h{\varphi _1}{\varphi _2}\Gamma } \end{array}} \right] }_F* \underbrace{\left[ \begin{array}{l} p[k + 1] - {p_L}[k + 1]\\ v[k + 1] - {v_L}[k + 1] \end{array} \right] }_{\delta [k]}\end{aligned}$$
(2)

where \(\Gamma = \Omega + \Xi\). \(\Xi\) is the Laplace matrix transformed from the node adjacency matrix. When pilot nodes exist, \(\Omega\) describes the network topology between nodes and the pilot node. \(p[k] = {[{p_1}[k],{p_2}[k], \ldots ,{p_N}[k]]^T}\) and \({p_L}[k] = {[{p_L}[k],{p_L}[k], \ldots ,{p_L}[k]]^T}\) represent the position column vector of the node and the pilot node. \(v[k] = {[{v_1}[k],{v_2}[k], \ldots ,{v_N}[k]]^T}\) and \({v_L}[k] = {[{v_L}[k],{v_L}[k], \ldots ,{v_L}[k]]^T}\) represent the speed column vector of the node and the pilot node. \({I_N}\) is N identity matrix. \(\delta [k]\) represents the deviation column vector.

The condition for control system consensus is

$$\begin{aligned} \mathop {\lim }\limits _{k \rightarrow \infty } E||\delta [k]|{|^2} = 0 \end{aligned}$$
(3)

3.2 Network consensus model

When the network maintenance hops count is \({H_{{\mathrm{sch}}}}\), the number of neighbors that a node needs to maintain is \(N = \pi {({H_{{\mathrm{sch}}}}r)^2}\lambda\). According to Eq. (1), the network information of distributed FANETs held by the node i after the k-times maintenance is expressed as

$$\begin{aligned} {\mathbf{x}}_{\mathbf{i}}{[k + 1]_{N \times N}} = {\mathbf{x}}_{\mathbf{i}}{[k]_{N \times N}} + {\mathbf{A}}_{\mathbf{ij}}{[k]_{N \times N}} \end{aligned}$$
(4)

where \({{{\mathbf{A}}}_{{{\mathbf{ij}}}}}{[k]_{N \times N}}\) represents the messages reception of node i and node j during the kth maintenance, where 0 in the matrix indicates that the network maintenance message is lost. In contrast, 1 in the matrix indicates that the network maintenance message has been successfully received.

The values of \({{\mathbf{A}}}_{{{\mathbf{ij}}}}{[k]_{N \times N}}\) are related to the outage probability of links and forwarding timeliness probability.

$$\begin{aligned} {{\mathbf{A}}}_{{{\mathbf{ij}}}}{[k]_{N \times N}} = \{ {a_{ij}}[k]|i,j = 1,2, \ldots ,N\} \end{aligned}$$
(5)

The probability of \({{\mathbf{A}}}_{{{\mathbf{ij}}}}{[k]_{N \times N}}\)’ value taking 1 is \(P({a_{ij}}[k] = 1) = {(1 - {p_{out}})^{{H_{ij}}}}{(1 - {p_{ofw}})^{{H_{ij}} - 1}}\), where \({H_{ij}}\) in the number of hops between node i and node j, the value range of \({H_{ij}}\) is \([1,{H_{sch}}]\).

\({p_{ofw}}\) is described in detail below. Take the distributed FANET with network maintenance hops \({H_{sch}}=2\) as an example to illustrate. The information of the node’s 2-hop neighbors needs to be forwarded by the 1-hop neighbors before it can be obtained. During each election period, the node and its 2-hop neighbors all have an opportunity to transmit, but the sending order is determined randomly. Consequently, it is possible that once a 2-hop neighbor sends a maintenance message, no 1-hop neighbor can transfer the message, and the node cannot acquire the information of the 2-hop neighbor, that is, the forwarding is not timely. As shown in Fig. 7, node B and node C are 2-hop neighbors to each other. If Node B successfully elects to send messages after node A, node C cannot know the relevant information of Node B during this maintenance process, so \({a_{i = B,j = C}}[k] = 0\).

Fig. 7
figure 7

Node maintenance diagram. If Node B successfully elects to send messages after Node A, Node C cannot know the information of Node B during this maintenance process

The intersection area formed by 2-hop nodes is

$$\begin{aligned} A(x) = 2{r^2}{\mathrm{arc}}\cos \left(\frac{x}{{2r}}\right) - \frac{1}{{2r}}\sqrt{4{r^2} - {x^2}} \end{aligned}$$
(6)

The number of common 1-hop neighbors of 2-hop nodes is \({N_{{\mathrm{com}}}} = A(x)\lambda\). The 2-hop neighbor can’t be maintained when there is no joint 1-hop neighbor election successfully after it sends the message. Therefore, the probability of delayed forwarding is

$${P_{ofw}} = 1 - \int _r^{2r} \left[\sum \limits _{s = 1}^{{N_{{\mathrm{com}}}}} {\sum \limits _{{t_0} = 1}^h {\sum \limits _{q = \max (s + 1 - {t_0},0)}^{\min (h - {t_0},s)}{C_s^q{{\left(\frac{{h - {t_0}}}{{h - 1}}\right)}^q}{{\left(\frac{{{t_0} - 1}}{{h - 1}}\right)}^{s - q}}} } } \right]dx$$
(7)

It can be seen that, for the 1-hop neighbor of node i, the mean value of \({{{\mathbf{A}}}_{{{\mathbf{ij}}}}}{[k]_{N \times N}}\) is \({\mu _1} = 1 - {p_{{\mathrm{out}}}}\), the variance is \(\sigma _1^2 = {p_{{\mathrm{out}}}}(1 - {p_{{\mathrm{out}}}})\). For the 2-hop neighbor of node i, the mean value of \({{{\mathbf{A}}}_{{{\mathbf{ij}}}}}{[k]_{N \times N}}\) is \({\mu _2} = {(1 - {p_{{\mathrm{out}}}})^2}(1 - {p_{{\mathrm{ofw}}}})\), and the variance is \(\sigma _2^2 = {\mu _2}(1 - {\mu _2})\).

Referring to Eq. (2), convert Eq. (4) into

$$\begin{aligned} \underbrace{\left[ {{{\mathbf{x}}}[k + 1] - {{{\mathbf{x}}}_{{\mathbf{L}}}}[k + 1]} \right] }_{\delta [k + 1]} = \underbrace{[{{\mathbf{A}}}][{{{\mathbf{x}}}_{{\mathbf{j}}}}[k]]}_{{\mathbf{F}}} + \underbrace{\left[ {{{\mathbf{x}}}[k] - {{{\mathbf{x}}}_{{\mathbf{L}}}}[k]} \right] }_{\delta [k]} \end{aligned}$$
(8)

where \({{{\mathbf{x}}}_{{\mathbf{L}}}}[k]\) is consensus threshold, \({{{\mathbf{x}}}_{{\mathbf{L}}}}[k] = \{ {r_{1,n}}|n = 1, \ldots ,N\}\), \({r_{1,n}} = \theta\).

The condition for network consensus is the same as those stated in Eq. (3). When \(\left[ {{{\mathbf{x}}}[k + 1] - {{{\mathbf{x}}}_{{\mathbf{L}}}}[k + 1]} \right] = \delta [k + 1] = 0\), i.e., the sum of matrix values of \({{\mathbf{A}}}\) after \(k+1\)-times maintenance is larger than or equal to \(\theta\), the network maintenance is consensus. That is, the number of the neighbor’s information correctly received in the K maintenance process is larger than or equal to \(\theta\), and the network maintenance is consensus.

Then, after maintaining \({K_{sch}}\) times, the network consensus error is

$$\begin{aligned}{\varepsilon _{{\mathrm{sch}}}} = \frac{{\sum \nolimits _{i,j \in N} {P(\theta - \sum \nolimits _{k = 1}^{{K_{{\mathrm{sch}}}}} {{A_{ij}}}< 0)} }}{N} = \frac{{\sum \nolimits _{i,j \in N} {P(\theta - \sum \nolimits _{k = 1}^{{K_{{\mathrm{sch}}}}} {{A_{ij}}} < 0)} }}{{\pi {{({H_{{\mathrm{sch}}}}r)}^2}\lambda }},{H_{ij}} = [1,{H_{sch}}] \end{aligned}$$
(9)

Furthermore, according to Lindbergh Levy central limit theorem [23], the value of \({{{\mathbf{A}}}_{{{\mathbf{ij}}}}}{[k]_{N \times N}}\) follows normal distribution after \({K_{sch}}\) times maintenance. So,

$$\begin{aligned} {\varepsilon _{{\mathrm{sch}}}} = P\left( \frac{{\sum X - {K_{{\mathrm{sch}}}}{\mu _i}}}{{\sqrt{{K_{{\mathrm{sch}}}}{\sigma ^2}_i} }} \le \frac{{\theta - {K_{{\mathrm{sch}}}}{\mu _i}}}{{\sqrt{{K_{{\mathrm{sch}}}}{\sigma ^2}_i} }}\right) = \Phi \left( \frac{{\theta - {K_{{\mathrm{sch}}}}{\mu _i}}}{{\sqrt{{K_{{\mathrm{sch}}}}{\sigma ^2}_i} }}\right) ,i = [1,{H_{sch}}]\end{aligned}$$
(10)

We have completed establishing the network consensus error model based on the multi-agent consensus theory. It can be seen from Eq. (10) that the network consensus error is related to the node density, outage probability of links, and network maintenance times and will further impact the resource allocation performance.

4 Performance models of distributed FANETs with election mechanism

In this section, we consider the impact of network consensus error and establish the service delay, resource efficiency, and resource efficiency optimization models to analyze the impact of different network, channel, and mechanism parameters on FANET performance.

4.1 One hop service delay model

The one-hop service delay is the sum of neighbor maintenance delay and data transmission delay in distributed FANETs with the election mechanism, which can be expressed as

$$\begin{aligned} T = {K_{{\mathrm{sch}}}}{T_{{\mathrm{sch}}}} + {K_{{\mathrm{data}}}}{T_{{\mathrm{data}}}} \end{aligned}$$
(11)

Specifically, the delay of one network maintenance is the time that a node and its \({H_{{\mathrm{sch}}}}\)-hop neighbors send control messages once.

$$\begin{aligned} {T_{{\mathrm{sch}}}} = \left( {2^{{\mathrm{exp + basic}}}} + \frac{1}{{{p_{{\mathrm{ele}}}}}}\right) {T_{{\mathrm{slot}}}} \end{aligned}$$
(12)

where \(\frac{1}{{{p_{{\mathrm{ele}}}}}} = (\pi {H_{sch}}^2{r^2}\lambda - 1)\frac{{{2^{\exp }} + 1/{p_{ele}}}}{{{h}+1/{p_{ele}}}} + 1\) [6].

The one-time data transmission delay is

$$\begin{aligned} {T_{{\mathrm{data}}}} = {N_{{\mathrm{data}}}}\left( {2^{{\mathrm{exp + basic}}}} + \frac{1}{{{p_{{\mathrm{ele2}}}}}}\right) {T_{{\mathrm{slot}}}} \end{aligned}$$
(13)

where \({p_{{\mathrm{ele2}}}}\) indicates the successful probability of node maintained in the election process, \(\frac{1}{{{p_{{\mathrm{ele2}}}}}} = [\pi {H_{{\mathrm{sch}}}}^2{r^2}\lambda (1 - {\varepsilon _{{\mathrm{sch}}}}) - 1]\frac{{{2^{\exp }} + 1/{p_{{\mathrm{ele2}}}}}}{{{h}+1/{p_{{\mathrm{ele2}}}}}} + 1\).

Then, we analyze the success probability of data transmission. After \({K_{{\mathrm{data}}}}\)-times of network maintenance, the node that has not been maintained will collide with the node that maintains consensus during the data transmission process. Therefore, the collision-free probability of a node is

$$\begin{aligned} {p_{{\mathrm{suc - ele}}}} = {(1 - {p_{{\mathrm{ele1}}}})^{\pi {{({H_{{\mathrm{sch}}}}l)}^2}\lambda {\varepsilon _{{\mathrm{sch}}}}}} \end{aligned}$$
(14)

where \({p_{{\mathrm{ele1}}}}\) indicates the successful probability of node didn’t be maintained in the election process, \(\frac{1}{{{p_{{\mathrm{ele1}}}}}} = [\pi {H_{{\mathrm{sch}}}}^2{r^2}\lambda (1 - {\varepsilon _{{\mathrm{sch}}}})]\frac{{{2^{\exp }} + 1/{p_{{\mathrm{ele1}}}}}}{{{h}+1/{p_{{\mathrm{ele1}}}}}} + 1\).

After \({K_{{\mathrm{data}}}}\) transmissions, the total success probability of data transmission \({p_{{\mathrm{suc}}}}\) is

$$\begin{aligned} {p_{{\mathrm{suc}}}} = 1 - {[1 - {p_{{\mathrm{suc - ele}}}}(1 - {p_{{\mathrm{out}}}})]^{{K_{{\mathrm{data}}}}}} \end{aligned}$$
(15)

4.2 Resource efficiency model

We express the resource efficiency \(\eta\) as the ratio of the effective duration of data transmission to the total delay:

$$\begin{aligned} \eta = \frac{{{p_{{\mathrm{suc}}}}{N_{{\mathrm{data}}}}({2^{{\mathrm{exp + basic}}}} + 1){T_{{\mathrm{slot}}}}}}{T} \end{aligned}$$
(16)

4.3 Resource efficiency optimization model

It can be seen that not only network characteristics such as node density and coverage radius of a node, channel parameters such as the outage probability of links, but also mechanism parameters impact the performance of distributed FANETs. Considering the quality of service (QoS) constraints, we establish the resource efficiency optimization model and define the optimal values of network maintenance times and data retransmission times to improve the mechanism’s performance.

The resource efficiency optimization model is

$$\begin{aligned}& {\max:}\eta = f(\lambda ,{p_{{\mathrm{out}}}},{K_{{\mathrm{sch}}}},{K_{{\mathrm{data}}}})\\ &{s.t:}\quad{p_{{\mathrm{suc}}}} \ge {p_{{\mathrm{suc-data}}}} \end{aligned}$$
(17)

An artificial intelligence method and successive convex approximation SCA method are used in [10, 24, 25] to solve optimization problems, and provide us with a good reference for solving our resource efficiency optimization problem.

Through the above research, we have completed the performance model establishment considering network consensus error, which is related to the node density, the outage probability of links, and network maintenance times.

5 The experiment

In this section, we perform simulation experiments to simulate the consensus of distributed FANETs and compare the simulation with the theoretical model calculation results.

5.1 Simulation experiments setup

To validate the correctness of models, we develop a protocol-level simulation platform based on VS. As seen in Fig. 8, the architecture of the platform consists of a network layer transceiver module, a MAC layer transceiver module, a physical transceiver module, a simulation operation module, and a time-controlling module, where the MAC layer transceiver module includes a network maintenance module and an election algorithm module. The network maintenance module performs network maintenance and submits the network maintenance results to the election algorithm module. The election algorithm module executes the election algorithm according to the network maintenance results and outputs the election results.

Fig. 8
figure 8

System architecture of simulation verification platform based on VS

We set different node densities, link outage probabilities, and network maintenance times, and use CMIT and CMIN methods to simulate the consensus of distributed FANETs. The simulation method is described in Table 3. We analyze the impact of service delay and resource efficiency performance with the election mechanism. The optimal maintenance times under different network and channel parameters are given in this section.

Table 3 Distributed network consensus performance simulation method

The simulation parameters are shown in Table 4.

Table 4 The parameter value of VS-based simulation verification platform

5.2 Simulation results and discussion

5.2.1 Network consensus error under different simulation methods

Taking 20 nodes organized in a network with a length of 5 km and a width of 8 km as an example, Fig. 9 depicts the distributed network consensus error under different simulation methods.

Fig. 9
figure 9

Distributed network consensus error simulation scenario with 20 nodes

The network consensus error \({\varepsilon _{{\mathrm{sch}}}}\) of distributed FANETs under different link outage probabilities \({p_{{\mathrm{out}}}}\) and network maintenance times \({K_{{\mathrm{sch}}}}\) is shown in Fig. 10.

Fig. 10
figure 10

Network consensus error with varying simulation methods. Lines represent the calculation results by theoretical models, while points represent CMIT and CMIN simulation results. Through the simulation, the accuracy of the network consensus model can be proved

Under the same \({p_{{\mathrm{out}}}}\), it can be seen that the \({\varepsilon _{{\mathrm{sch}}}}\) reduces as \({K_{{\mathrm{sch}}}}\) grows. This is because the distributed FANET has a greater chance of achieving the consensus threshold as \({K_{{\mathrm{sch}}}}\) increases. With the increased \({p_{{\mathrm{out}}}}\), the network consensus probability decreases under the same \({K_{{\mathrm{sch}}}}\). This is because when \({p_{{\mathrm{out}}}}\) increases, the probability of the network maintenance matrix value being one drops, as does the consensus probability. That is, increasing network maintenance times can improve the consensus performance of distributed FANETs.

The \({\varepsilon _{{\mathrm{sch}}}}\) calculated based on models is between the CMIT method and the CMIN method. When \({K_{{\mathrm{sch}}}} = \theta\), \({\varepsilon _{{\mathrm{sch}}}}\) calculated based on models is the largest. This is because, in CMIT and CMIN methods, the value of the network maintenance matrix is determined based on probability; however, when \({K_{{\mathrm{sch}}}}\) is small, the actual value may not be entirely consistent with the probability distribution, and the probability of the matrix value is one may be more significant, so \({\varepsilon _{{\mathrm{sch}}}}\) is more diminutive.

Besides, since the CMIN method generates K-dimension matrix randomly according to probability, and then extracted. The extracted possibility of the matrix value is one is greater than the actual, so \({\varepsilon _{{\mathrm{sch}}}}\) obtained by CMIN is the minimum. While in the CMIT method, to ensure the symmetry of the network topology matrix, the condition that the network maintenance matrix value is one is when the matrix value between two nodes is one simultaneously. This artificially reduces the probability that the network maintenance matrix is 1, which leads to a larger \({\varepsilon _{{\mathrm{sch}}}}\). The theoretical models can avoid deviation between the random simulation and the actual. Through the above simulation, the accuracy of the network consensus model can be proved.

5.2.2 Network consensus error under different parameters

The network consensus error of distributed FANETs under different node densities, outage rates of links, and network maintenance times is shown in Fig. 11.

Fig. 11
figure 11

Network consensus error under different node densities, outage rates of links, and network maintenance times. Under the same node density and outage probability of links, the network consensus error decreases with the increased network maintenance times

Similar to the conclusion in Fig. 10, as shown in Fig. 11, under the same node density \(\lambda\) and outage probability of links \({p_{{\mathrm{out}}}}\), the network consensus errors \({\varepsilon _{{\mathrm{sch}}}}\) decrease with the increased network maintenance times \({K_{{\mathrm{sch}}}}\). Under the same \({K_{{\mathrm{sch}}}}\), \({\varepsilon _{{\mathrm{sch}}}}\) increases with the increasing \({p_{{\mathrm{out}}}}\). Besides, with the increase in \(\lambda\), \({\varepsilon _{{\mathrm{sch}}}}\) drops modestly over the same \({K_{{\mathrm{sch}}}}\). This is because as \(\lambda\) grows, the number of common neighbors between 2-hop nodes increases, which raises the probability of timely forwarding and the probability that the network maintenance matrix value is 1, decreasing \({\varepsilon _{{\mathrm{sch}}}}\). It can be seen that given the node density, the outage probability of links, network maintenance times, and other parameters, the minimum network maintenance times that satisfy the network consensus error restrictions can be found.

5.2.3 Service delay and resource efficiency of distributed FANETs with election mechanism

The service delay and resource efficiency of distributed FANETs under different node densities, outage probabilities of links, and network maintenance times are shown in Figs. 12 and 13. Using \(\lambda = 0.35{\mathrm{nodes/k}}{{\mathrm{m}}^{\mathrm{2}}}\) as an example, the optimal network maintenance times are shown by the arrows in the figure. The dotted red line indicates the service delay and resource efficiency performance when the Qos is guaranteed entirely by data retransmission, ignoring the impact of consensus when \(\lambda = 0.35{\mathrm{nodes/k}}{{\mathrm{m}}^{\mathrm{2}}}\). When \({p_{{\mathrm{out}}}} >0.1\), the service delay is omitted in the figure for the extra large value.

Fig. 12
figure 12

1-hop service delay of distributed FANETs with election mechanism. The point in the picture indicates the average value after ten simulations based on the simulation platform, while the line in the figure reflects the average value based on theoretical models. It can be observed that the mathematical results and simulation results are congruent

Fig. 13
figure 13

Resource efficiency of distributed FANETs with election mechanism. The point in the picture indicates the average value after ten simulations based on the simulation platform, while the line in the figure reflects the average value based on theoretical models. It can be observed that the mathematical results and simulation results are congruent

It can be seen that when the outage probability of links \({p_{{\mathrm{out}}}} = 0\), the one-hop service delay T and resource efficiency \(\eta\) performance decrease as the number of network maintenance times \({K_{{\mathrm{sch}}}}\) increases, and the optimal \({K_{{\mathrm{sch}}}}\) is 4. When \({p_{{\mathrm{out}}}} > 0\), as \({K_{{\mathrm{sch}}}}\) increases, the service delay of distributed FANETs with election mechanism decreases first and then increases, and the resource efficiency rises first and then decreases. There is a trade-off between network maintenance cost and performance. This is because, with the increase in \({K_{{\mathrm{sch}}}}\), the network maintenance consensus probability improves, and the number of data retransmissions decreases, resulting in enhanced service delay and resource efficiency performance. However, with further increase of \({K_{{\mathrm{sch}}}}\), the network maintenance overhead increases, but the network consensus probability no longer increases, resulting in decreased service delay and resource efficiency performance.

Moreover, with the increase of \({p_{{\mathrm{out}}}}\), \({\varepsilon _{{\mathrm{sch}}}}\) increases under the same \({K_{{\mathrm{sch}}}}\), which requires larger \({K_{{\mathrm{sch}}}}\) to improve the network maintenance consensus performance. Therefore, the optimal \({K_{{\mathrm{sch}}}}\) increase, and the optimal service delay and resource efficiency decline. That’s why the simulation data in Fig. 12d has obvious multi-stage changes compared with it in Fig. 12a–c when \({K_{{\mathrm{sch}}}}\) is small. When \({p_{{\mathrm{out}}}} = 0.2\), the optimal \({K_{{\mathrm{sch}}}} = 8\), while when \({p_{{\mathrm{out}}}} = 0.3\), the optimal \({K_{{\mathrm{sch}}}} = 14\). When ignoring the impact of network maintenance consensus and relying entirely on data retransmission to meet the QoS constraints, the performance drops sharply when the \({p_{{\mathrm{out}}}}\) is high.

Comparing with Fig. 11, it can be seen that the optimal \({K_{{\mathrm{sch}}}}\) is different from the \({K_{{\mathrm{sch}}}}\) when \({\varepsilon _{{\mathrm{sch}}}} = 0\). For example, when \({p_{{\mathrm{out}}}} = 0.1\), the optimal \({K_{{\mathrm{sch}}}} = 6\) and \({\varepsilon _{{\mathrm{sch}}}} = 0\). However, when \({p_{{\mathrm{out}}}} = 0.2\), the optimal \({K_{{\mathrm{sch}}}} = 8\), while, \({K_{{\mathrm{sch}}}} = 10\) when \({\varepsilon _{{\mathrm{sch}}}}\) reaches 0 at this time. In other words, the network may have yet to have complete consensus under the optimal network maintenance times.

It can be seen that network maintenance is essential in distributed FANETs using the election mechanism. We can reduce the number of data retransmissions by increasing the network maintenance times. Especially when the control messages are small and data messages are large, the cost of increasing the number of network maintenance times is less than the cost of data retransmission. Currently, network maintenance dramatically increases network performance. In addition, vis a compromise between network maintenance, network consensus, and data retransmission, distributed FANETs can achieve better performance without complete consensus.

6 Conclusion

Facing the need to improve the performance of distributed FANETs with multi-hop and intermittent links, in this paper, we investigate the network consensus and optimization of distributed FANETs, addressing the issue that previous research did not consider the influence of the multi-hop forwarding order. We establish network consensus and performance analysis models based on multi-agent consensus theory considering network, channel, and mechanism factors. Finally, the VS-based protocol-level simulation platform is constructed, and the optimal mechanism parameters are given under different network and channel parameters. The simulation results indicate that the optimal network maintenance times grow as the link outage probability increases. If we disregard the influence of consensus and rely simply on retransmission to maintain service quality, the resource efficiency would fall significantly with intermittent links. Moreover, distributed FANETs can achieve optimal resource efficiency without achieving complete consensus, that is, there is a trade-off between network maintenance cost and network performance.

Availability of data and materials

The data used to support the findings of this study are available from the corresponding author upon request.

Abbreviations

FANET:

Distributed flying ad hoc network

CMIT:

Construction matrix and iteration

CMIN:

Construction matrix and intercept

VS:

Visual studio

MAC:

Medium access control

References

  1. M.Y. Arafat, S. Moh, Localization and clustering based on swarm intelligence in UAV networks for emergency communications. IEEE Internet Things J. 6(5), 8958–8976 (2019)

    Article  Google Scholar 

  2. J. Chen, Z. Wang, Coordination game theory-based adaptive topology control for hybrid VLC/RF VANET. IEEE Trans. Commun. 69(8), 5312–5324 (2021)

    Article  Google Scholar 

  3. B. Qian, H. Zhou, T. Ma, Y. Xu, K. Yu, X. Shen, F. Hou, Leveraging dynamic stackelberg pricing game for multi-mode spectrum sharing in 5G-VANET. IEEE Trans. Veh. Technol. 69(6), 6374–6387 (2020)

    Article  Google Scholar 

  4. S. Hu, Y. Jia, C. She, Performance analysis of VANET routing protocols and implementation of a VANET terminal, in 2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC) (2017), pp. 1248–1252

  5. W. Lu, Y. Mo, Y. Feng, Y. Gao, N. Zhao, Y. Wu, A. Nallanathan, Secure transmission for multi-UAV-assisted mobile edge computing based on reinforcement learning. IEEE Trans. Netw. Sci. Eng. (2022). https://doi.org/10.1109/TNSE.2022.3185130

    Article  Google Scholar 

  6. K. Scott, T. Refaei, N. Trivedi, J. Trinh, J.P. Macker, Robust communications for disconnected, intermittent, low-bandwidth (DIL) environments, in 2011—MILCOM 2011 Military Communications Conference (2011), pp. 1009–1014

  7. N. Suri, G. Benincasa, M. Tortonesi, C. Stefanelli, J. Kovach, R. Winkler, U.S.R. Kohler, J. Hanna, L. Pochet, S. Watson, Peer-to-peer communications for tactical environments: observations, requirements, and experiences. IEEE Commun. Mag. 48(10), 60–69 (2010)

    Article  Google Scholar 

  8. C. Liu, Z. Zhang, On connectivity of flying ad hoc networks in the presence of ground terminal. China Commun. 18(9), 1–10 (2021)

    Article  Google Scholar 

  9. S. Li, F. Wang, J. Gaber, Y. Zhou, An optimal relay number selection algorithm for balancing multiple performance in flying ad hoc networks. IEEE Access 8, 225884–225901 (2020)

    Article  Google Scholar 

  10. Y. Ding, Y. Feng, W. Lu, S. Zheng, N. Zhao, L. Meng, A. Nallanathan, X. Yang, Online edge learning offloading and resource management for UAV-assisted MEC secure communications. IEEE J. Sel. Top. Signal Process. 17(1), 54–65 (2023). https://doi.org/10.1109/JSTSP.2022.3222910

    Article  Google Scholar 

  11. R. Olfati-Saber, J.A. Fax, R.M. Murray, Consensus and cooperation in networked multi-agent systems. Proc. IEEE 95(1), 215–233 (2007)

    Article  MATH  Google Scholar 

  12. A. Abdessameud, A. Tayebi, Distributed consensus algorithms for a class of high-order multi-agent systems on directed graphs. IEEE Trans. Autom. Control 63(10), 3464–3470 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  13. H. Rezaee, F. Abdollahi, Adaptive consensus control of nonlinear multiagent systems with unknown control directions under stochastic topologies. IEEE Trans. Neural Netw. Learn. Syst. 29(8), 3538–3547 (2018)

    Article  MathSciNet  Google Scholar 

  14. H.J. Savino, C.R.P. dos Santos, F.O. Souza, L.C.A. Pimenta, M. de Oliveira, R.M. Palhares, Conditions for consensus of multi-agent systems with time-delays and uncertain switching topology. IEEE Trans. Ind. Electron. 63(2), 1258–1267 (2016)

    Article  Google Scholar 

  15. W. Yuan, G. Han, Consensus of multi-agent systems with piecewise continuous time-varying topology. IEEE Access 7, 92048–92058 (2019)

    Article  Google Scholar 

  16. Y. Yang, Y. Li, D. Yue, W. Yue, Adaptive event-triggered consensus control of a class of second-order nonlinear multiagent systems. IEEE Trans. Cybern. 50(12), 5010–5020 (2020)

    Article  Google Scholar 

  17. M. Xing, F. Deng, Z. Hu, Sampled-data consensus for multiagent systems with time delays and packet losses. IEEE Trans. Syst. Man Cybern. Syst. 50(1), 203–210 (2020)

    Article  Google Scholar 

  18. M. Lubis, F. Lubis, A.R. Lubis, Stream control transportation protocol (SCTP) towards manet routing: comparison of DSR and AODV, in 2019 International Conference on Sustainable Engineering and Creative Computing (ICSECC) (2019), pp. 432–437

  19. C. Ankita, G. Ranjani, Performance analysis of zone based route discovery mechanism for MANETs in software defined networking framework, in 2021 IEEE Mysore Sub Section International Conference (MysuruCon) (2021), pp. 643–648

  20. X. Li, X. Li, Research on the impact of interaction times in distributed wireless ad hoc networks. IEEE Access 8, 111742–111750 (2020)

    Article  Google Scholar 

  21. A.N. Masilamani, J.J. Garcia-Luna-Aceves, VCMA: efficient channel access in wireless mesh networks using virtual coordinates, in MILCOM 2012—2012 IEEE Military Communications Conference (2012), pp. 1–6

  22. M. Cao, W. Ma, Q. Zhang, X. Wang, Analysis of IEEE 802.16 mesh mode scheduler performance. IEEE Trans. Wirel. Commun. 6(4), 1455–1464 (2007)

    Article  Google Scholar 

  23. L. Ke, R. Xiang, J. Huanjun, Almost sure central limit theorem on maxima and minima, in 2011 International Conference on Mechatronic Science, Electric Engineering and Computer (MEC) (2011), pp. 1981–1984

  24. M. Yan, X. Lou, C.A. Chan, Y. Wang, W. Jiang, A semantic and emotion-based dual latent variable generation model for a dialogue system. CAAI Trans. Intell. Technol. 1-12 (2023). https://doi.org/10.1049/cit2.12153

  25. M. Yan, R. Xiong, Y. Shen, C. Jin, Y. Wang, Intelligent generation of Peking opera facial masks with deep learning frameworks. Herit. Sci. 11(1), 20 (2023)

    Article  Google Scholar 

Download references

Acknowledgements

The authors gratefully acknowledge the valuable comments and suggestions of the reviewers, which have improved the presentation of this article.

Funding

The work was supported in part by the Science and Technology Innovation Program of Xiongan New Area under Grant 2022XAGG0300, and in part by Joint Funds of the National Natural Science Foundation of China under Grant U2241215.

Author information

Authors and Affiliations

Authors

Contributions

The authors have contributed jointly to the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Xin Tong.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tong, X., Li, X., Ding, F. et al. Network consensus analysis and optimization of distributed FANETs based on multi-agent consensus theory. J Wireless Com Network 2023, 43 (2023). https://doi.org/10.1186/s13638-023-02241-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13638-023-02241-8

Keywords