1. Introduction
With the rapid development of communication hardware and software technology, smart grids can realize real-time monitoring, control, and management of the power system [
1]. Smart grids can collect a large amount of data and utilize smart infrastructure for advanced management, which do their best to achieve the goals of improving energy efficiency, balancing supply and demand, controlling emissions, reducing operating costs, and maximizing utility [
2,
3,
4]. High-speed power line carrier (HPLC) communication and High-speed radio frequency (HRF) are two common modes of communication in the power Internet of Things. The HPLC network is considered a convenient and economical solution for the smart grid because HPLC utilizes the wire and power outlet infrastructure that has already been constructed without rewiring [
5]. In addition, relevant reports indicate that the data rate of HPLC can be up to hundreds of megabits per second or even gigabits per second, which is sufficient to support most of the services in the smart grid [
6]. However, there are some challenges such as high volatility of electrical loads, strong time-varying characteristics of line impedance, severe noise interference on long-distance lines, and blockage of distribution transformers affecting power line carrier (PLC) signal transmission [
7]. In addition, HPLC communication makes it difficult to adjust the routing flexibly in the face of congestion due to the reliance on existing grid lines, which leads to a serious deterioration of system performance. On the other hand, HRF communication is self-organizing in the formation of routing networks by adjusting their roles in the network because they do not need to be wired in advance [
8]. However, the quality of HRF communication in different environments is susceptible to interference, especially when encountering obstacles with severe signal attenuation [
9]. In addition, nodes in HRF networks may be placed in hard-to-reach locations, making it impossible to charge their limited batteries on time. The problem of energy consumption becomes one of the key challenges in HRF networks [
10].
For complex scenarios such as high-density services, high urbanization, high-rise buildings, and underground floors [
11], smart grids require better transmission rates, wider connectivity, and higher robustness [
12]. To solve the problems that arise from the use of single-mode HPLC or HRF in smart grids, several studies have combined HPLC mode with HRF mode to improve the reliability of existing connections and the ability to transmit data in recent years [
13].
As dual-mode communication technology continues to be updated, more and more users are choosing to use dual-mode communication, which brings about some challenging research issues. Numerous studies have shown that since areas with dense users generate larger communication demand than areas with sparse users, this can result in a very uneven distribution of traffic throughout the network. Some nodes have taken up a large number of communication tasks, leading to a drop in the available bandwidth for transmitting and an increase in the occupancy of the buffer zone, and serious congestion has occurred. On the other hand, some nodes are not required to undertake a large number of communication tasks, leading to low utilization rate [
14]. If the traffic load in the network continuously passes through congested nodes, it will inevitably lead to deterioration of network delay, throughput, and packet loss.
In this paper, we study the load-balancing mechanism for dual-mode communication networks and design a routing algorithm to improve performance. As shown in
Figure 1, our contributions are summarized below.
We design a complete routing and networking process for dual-mode communication. Firstly, utilizing the improved mean shift algorithm, the station (STA) nodes are divided into different clusters centered around proxy coordinator (PCO) [
15] nodes. The meter information collected by the STAs is forwarded through PCOs to reach the central coordinator (CCO) [
15]. The proposed process adopts different transmission strategies based on congestion conditions. When only a few PCO nodes experience congestion, the alternate path is used to complete the transmission of meter information. When a significant number of PCO nodes encounter congestion, the PCO node election mechanism is employed to ensure the reliability of the link during the re-networking process. The proposed process gives a good solution for the traffic balancing problem of dual-mode communication.
We propose adding alternate paths between PCO nodes and STA nodes in the traditional tree network to enhance the network’s ability to adapt to congestion. When there are fewer PCO nodes in the congested state, the alternate path can transfer some of the traffic from the congested region to the uncongested region. Simulation results show that lower delay and packet loss rates are obtained and throughput is improved compared to the traditional scheme.
A load-balancing routing algorithm is proposed, based on the PCO node election mechanism and the shortest hop path algorithm. The PCO nodes with low buffer occupancy and high available transmit bandwidth are selected to replace the PCO nodes in a congested state during the re-networking process. Simulation results show that the proposed method not only effectively alleviates congestion when more PCO nodes are in a congested state, but also achieves lower delay, packet loss, and improved throughput compared to the traditional scheme.
The rest of the paper is organized as follows:
Section 2 describes previous research.
Section 3 describes our system model and the definition of network performance parameters.
Section 4 describes the network establishment process. In
Section 5, the sending rate and cache occupancy are taken into account and then a load-balancing routing algorithm based on the PCO node election mechanism is introduced. Simulation results are shown and discussed in
Section 6.
Section 7 summarizes and discusses the simulation results. Finally, the paper is concluded in
Section 8.
2. Related Work
Many studies have been conducted to solve the balancing problem by optimizing the cluster heads as follows. Several methods based on cluster head (CH) election have been proposed to distribute the load of CH among the nodes in the network. Low energy adaptive clustering hierarchy (LEACH) is a classical algorithm that randomly selects the CH in each round and subsequently the CH communicates with each member node in the cluster to collect the sensed data [
16]. The probability of a node becoming a cluster head is based on a pre-set ratio of cluster heads to all nodes and the number of times it has become a cluster head. The nodes within the cluster then access the cluster head with the lowest communication load. The LEACH algorithm exhibits considerable potential for refinement due to the inherent stochasticity associated with the selection of CHs, prompting a plethora of scholars to conduct extensive and meaningful research endeavors to explore and augment its efficacy. The optimization of cluster head selection in the network was further achieved by considering the initial energy, residual energy, optimal value of the number of CHs, the distance between nodes, etc. during the rotation of cluster nodes [
17,
18,
19,
20]. However, failing to account for the receiving capacity of the cluster head can lead to suboptimal network performance. Adil et al. proposed a Dynamic Cluster Based Static Routing Protocol (DCBSRP) combined with Ad hoc On-demand Distance Vector (AODV) routing protocol and LEACH protocol for network routing [
21]. After the initial determination of cluster heads based on LEACH protocol, the node that receives the most routing replies (RREPs) is selected as the next round of CH nodes. Once the CH node is confirmed, the DCBSRP routing protocol binds all common nodes to the specified CH node by applying a static routing configuration. Some nodes are distributed in more remote locations which causes single-hop communication to be not always a perfect solution. Further, considering the cluster head election problem in multi-hop communication can suggest a better solution for complex node distribution [
22,
23,
24,
25,
26,
27,
28,
29]. In real-world application scenarios, network nodes exhibit significant heterogeneity in their capabilities, configurations, and behaviors [
30]. To address this heterogeneity, the cluster head with both maximum residual energy and maximum initial energy is elected in each round [
31,
32,
33,
34,
35].
The above approach solves the energy balancing problem well by using cluster head rotation. However, energy balancing does not take into account the congestion that can occur in dual-mode communication networks. Extending the network lifetime through energy equalization does not necessarily improve the performance of the transmission, and the degradation of the communication capability of the PCO nodes in a congested state continues to affect the operation of other types of nodes. The initial research considered the classical Dijkstra algorithm to identify the path with the shortest distance from the source node to the destination node [
36]. The strategy using the greedy algorithm starts from the source node and gradually searches outwards until it extends to the destination node. Some studies have adopted the method of obtaining link congestion information through a status notification mechanism and directing traffic to less congested links based on this link congestion information [
37,
38,
39,
40]. In the method proposed by Taleb et al., the node that is about to experience congestion requires neighboring nodes to reduce the data forwarding rate [
37,
38]. The number of nodes in the congested state within the network tends to increase gradually with the rise in the volume of services, and considering only local re-planning of paths will not give a good solution. A set of traffic lights is used to indicate the congested state of the current node and the next node in the traffic-light-based intelligent routing strategy (TLR) proposed by Song et al. When a packet travels to its destination along a pre-calculated route, the route can be dynamically adjusted according to the real-time color of the traffic lights at each intermediate node. At the same time, neighboring nodes search for the path where traffic lights show less congestion and transmit part of the data from the congested node on that path [
39]. Although the above algorithms can balance the network congestion to a certain extent, they suffer from the problem of local optimality and may not be able to balance the congestion of the whole network. To achieve better global traffic balancing, the algorithm proposed by Dong et al. utilizes more global link congestion information, an effective congestion avoidance mechanism, and a state notification mechanism that combines active discovery and automatic detection [
40]. However, the state notification mechanism makes the network take a longer time to get information about the nodes that are in a congested state. A simplified energy-balanced alternative-aware routing algorithm (SEAR) was proposed by MU et al. [
41]. SEAR repairs links faster by adding a link field to the routing table that determines whether a link is broken due to congestion. Meanwhile, when the link is broken, the source node is able to repair the communication capability of the link between the transmitting nodes without the need for the source node to re-initiate the route request process, which reduces the data transmission delay and network overhead. As long as a certain size of non-congested area exists in the whole network, re-routing ensures the reliability of the network. However, the above mechanisms will not give a good solution for uncongested regions that do not reach a specific size within the network. In addition, to the best of our knowledge, previous studies on dual-mode communication networks have not considered the fact that traffic loads are accumulating on the proxy coordinator (PCO) nodes that act as cluster heads leading to the occurrence of congestion. During transmission, the situation where a large number of PCO nodes become congested still cannot be handled.
4. Network Establishment
The proposed algorithm consists of four phases: (1) the HPLC networking establishment phase; (2) the stabilization phase; (3) the HRF re-networking phase; (4) the HRF stabilization phase.
In phase (1), the CCO node broadcasts a networking request establishment frame to the STA node, and the STA node receives and replies to the STA node with a networking request confirmation frame, including the location of each STA node, the transmission bandwidth, and the size of the buffer.
The CCO node determines the location of the PCO nodes and the links between PCO nodes and STA nodes by using the mean shift algorithm based on the location information that is known for each STA node. The CCO node then detects the more remote nodes and connects them to the nearest PCO node. Moreover, to avoid affecting the quality of the STA nodes within the cluster due to the deterioration of the communication capability of the PCO nodes, it is considered to establish alternate paths between PCO nodes and STA nodes, which can divert the traffic as much as possible in case of congestion. Finally, we create ring links between the PCO nodes and connect the CCO nodes to each PCO node.
After establishing the HPLC networking, each STA node sends the power consumption information to the CCO node through the path determined by Dijkstra’s algorithm.
In phase (2), PCO nodes report their respective cache occupied rate and available transmit bandwidth occupied rate to CCO nodes at regular intervals.
In phase (3), when the CCO node senses that a large number of PCO nodes’ buffers are over-occupied or the available bandwidth for transmitting is too small, it broadcasts a re-networking frame to all the nodes. The PCO node sends the available transmit bandwidth and buffer occupancy of each node in the cluster to the CCO node in the form of a networking competition acknowledgment frame. If the waiting time is not exceeded, the CCO node will continue to wait for the campaign acknowledgment frame sent by the PCO node. If the wait time is exceeded, the CCO node identifies a new PCO node within each cluster based on the performance value calculated from the available transmit bandwidth and buffer occupancy. Since HPLC cannot change the established networking structure to optimize the network performance, we reorganize the network by using HRF communication to establish a new networking structure. The HRF network structure is similar to the HPLC network structure. It also requires detecting isolated nodes and connecting them to the nearest PCO node, establishing alternate paths, establishing ring links between PCO nodes, and connecting CCO nodes to each PCO node.
In phase (4), after the HRF networking establishment is completed, the STA node transmits the power consumption information to the CCO node using the path determined by the shortest hop path algorithm. The detailed procedures are shown in
Figure 3 and
Figure 4.
Some key technologies in the above phases are explained as follows:
4.1. Improved Mean Shift Algorithm
The basic idea of the mean shift algorithm is to continuously adjust the position of the STA nodes by shifting the mean value of the sample points in the feature space so that they shift toward the region of maximum local density. Specifically, the algorithm starts from the initial position, calculates the weights of the sample points under a given kernel function, and then allows the sample points to shift toward the weighted mean. This process is repeated until the sample points have drifted less than a certain threshold or a predetermined number of iterations have been reached.
Let the coordinates of the randomly selected initial center point, denoted as , be given as . The radius of convergence is represented by .
To transform low-dimensional and nonfactual data points into high-dimensional fractions, the introduction of kernel functions enables computations to be accomplished directly in low-dimensional space. After transforming, the coordinates of all STA nodes are transformed from low-dimensional non-differentiable data to high-dimensional differentiable data, which can be clustered and classified. The initial center point is moved in the direction of increasing node density. The direction and distance of the movement are represented by the drift vector
w, and the definition of
w is given as follows:
where
are the coordinates of the STA nodes contained within a circle centered at
and with
as the radius.
Using the kernel function allows STA nodes that are closer to the center point to have greater weight during the process of shifting, and the special points are prevented from affecting the shift on the center point.
Further, a new iterative formula for the position of the center of the circle is given as follows:
Traversing all STA nodes in the circle where the center point is the center and is the radius, the shift vector is computed according to Equation . Then, the center point coordinates are updated according to Equation .
This center point shift process will end when the distance between
and
is less than the threshold value. The distance between the center point and the other identified cluster head needs to be calculated after the drifting process is finished. If the distance is less than a threshold value, the two center points need to be merged. Assuming that the coordinates of the two center points are
and
, the coordinates of the merged center points are determined as follows:
If there are still unvisited STA nodes within the dual-mode communication network at this time, the initial center point is randomly selected among these STA nodes by repeating the previously described steps until all STA nodes have been visited.
The detailed process is described in Algorithm A1 of
Appendix A.1. The inputs of Algorithm A1 are the radius of convergence
and the coordinates of the STA nodes
. The initial number of PCO nodes under each cluster
, their coordinate positions
and the PCO nodes to which the individual STA nodes are connected
are output by running Algorithm A1.
Since some STA nodes are spatially distributed remotely in the process of running Algorithm A1, which has no other STA nodes within the radius of convergence, these STA nodes will become their own PCO nodes and are defined as isolated nodes. On the one hand, isolated nodes do not play the role of relay nodes but are allocated communication resources as the PCO and STA nodes requirement. On the other hand, the single hop distance between the isolated node and the CCO node is too long, which causes exponential energy consumption. Based on the coordinate information, CCO nodes calculate the distance between these detected isolated PCO nodes and other non-isolated PCO nodes. To improve the communication resource utilization efficiency and reduce the energy consumption of the dual-mode communication network as much as possible, the PCO node closest to the isolated node is selected from the set of PCO nodes, which is calculated by Algorithm A1, and it will be connected to the isolated node. The detailed procedure is described in Algorithm 1.
After connecting the isolated PCO node to the nearest non-isolated PCO node, the CCO node updates the number of PCO nodes
, PCO node coordinates
, and the PCO node accessed by each STA node
information for the whole dual-mode communication network.
Algorithm 1 Isolated PCO node access algorithm |
Input: ,,,, |
1:for
do |
2: for do |
3: if then |
4: |
5: for do |
6: if then |
7: |
8: end if |
9: end for |
10: end if |
11: end for |
12: end for |
13: |
14: for do |
15: if then |
16: |
17: |
18: |
19: for do |
20: |
21: if then |
22: |
23: |
24: |
25: end if |
26: end for |
27: end if |
28: end for |
Output: ,, |
4.2. Alternate Path Establishment
STA nodes connected to only one PCO node will be vulnerable to the effects of congestion. Therefore, we consider establishing alternate paths in the event of congestion that move traffic to areas that are not affected by congestion.
The CCO node connects each STA node to the nearest PCO node except the already connected PCO node based on the STA node and PCO node coordinate information. The detailed procedure is described in Algorithm 2. Algorithm 2 is executed by inputting the number of PCO nodes, PCO node coordinates, number of STA nodes, STA node coordinates, and PCO nodes accessed by each STA node, which selects alternate PCO nodes that are closer to being accessed.
After establishing the path between the PCO and STA nodes, we establish the ring path between the PCO nodes. Finally, all the PCO nodes are connected to the CCO nodes.
Algorithm 2 Access to alternate PCO node Algorithm |
Input: ,,,, |
1:for
do |
2: |
3: for do |
4: |
5: if then |
6: |
7: |
8: end if |
9: end for |
10:end for |
Output: |
6. Experimental Results and Analysis
6.1. Simulation Settings
In this section, we verify the performance of the proposed algorithms by some simulations on MATLAB 2022b. We refer to previous work on power Internet of Things routing [
44,
45,
46] and list the main simulation parameters in
Table 1. The scale of the network in
Section 6.5 is extended from 60 m × 60 m as in
Table 1 to 240 m × 240 m. Larger and larger network sizes require more and more network nodes for coverage, so correspondingly, we extend the number of STA nodes from 30 to 120, as shown in
Table 1. Similarly, the radius of convergence of the mean shift algorithm is gradually increased from 16.2 m to 64.8 m in our simulations. The bandwidth of the STA node and the number of bits contained in a packet are set to 8 Mbps and 128 Kbps, respectively. In order to represent the difference in the available transmit bandwidth of different nodes in the simulation, we set the available transmit bandwidth of the high transmit rate node and normal node to 0.9375 and 0.80, respectively. Similarly, we set the buffer occupancy to 0.10 and 0.30 for low-occupancy nodes and normal nodes, respectively.
Figure 5 and
Figure 6 show the structural diagrams of the simulated network before and after re-grouping by adopting the proposed scheme, respectively. In the simulation process, we randomly generate fifty STA nodes denoted by blue solid circles and CCO nodes denoted by black solid circles with coordinates (70,50) in a spatial area of 100 × 100 m as shown in
Figure 5 and
Figure 6. The yellow solid line indicates the link from the CCO node to the PCO node. The red solid line indicates the path between the PCO and STA nodes obtained by running Algorithm A1 and Algorithm 1. The blue solid line indicates the alternate path between the PCO and STA nodes that have obtained by running Algorithm 2. The purple solid line indicates the ring link between the PCO nodes by running Algorithm 3.
To evaluate the performance, the proposed algorithm is compared with the classical Dijkstra’s algorithm, SEAR algorithm, classical LEACH algorithm, and DCBSRP algorithm for the metrics that can evaluate the routing performance of the dual-mode communication network, including latency, throughput, and packet loss rate.
In the simulation, the Dijkstra algorithm will determine the path with the shortest number of hops before re-networking. The SEAR algorithm will improve the congested node’s available transmission bandwidth. The LEACH algorithm will determine the new PCO node before re-networking based on the probability generated by the ratio of PCO nodes to all nodes and the number of times they have become passed PCO nodes. The DCBSRP algorithm confirms the PCO nodes by the number of RREPs when re-networking.
The proposed scheme adds the PCO node election mechanism compared to the classical Dijkstra algorithm and SEAR algorithm. When Dijkstra’s algorithm is applied, information can be only sent from STA nodes to CCO nodes by using the existing very poor performance networking method. The SEAR algorithm can recover the transmit available bandwidth of a node affected by congestion. The proposed scheme optimizes the PCO election compared to the DCBSRP algorithm and LEACH algorithm. The LEACH algorithm randomly selects the STA node as the PCO node for the re-networking phase, which has a high probability that it will be selected to a PCO node with large buffer occupancy and small available bandwidth for sending. The DCBSRP algorithm does not focus on the transmitting capability of a PCO node, although it can select a PCO node with a smaller buffer occupancy. The scheme does not consider the impact of buffer occupancy and the available bandwidth for nodes to send on the system performance in an integrated manner. Because we can select the PCO nodes with smaller cache occupancy and larger sending available bandwidth, our proposed scheme has better performance compared to the previous schemes.
By varying the simulation parameters of the network, it is possible to evaluate the superiority of the proposed scheme over previous schemes under different scenarios of heterogeneous networks with dual-mode communication. We need to simulate and verify that in the presence of congestion at the PCO nodes, which means that there is a deterioration in the available bandwidth for sending and buffer occupancy compared to the normal case, the proposed scheme has a significant improvement in delay, throughput, and packet loss compared to the previous work.
To evaluate the overall performance of the network, the average values of delay, packet loss rate, and throughput from each STA node to the CCO node are calculated.
6.2. Case for Different Number of PCO Nodes in Congested State
This section shows and analyzes the performance of three networking approaches, which are alternative paths only, alternative paths combined with campaigning mechanism, and traditional tree-type structure, when the number of PCO nodes in congested state is different.
Figure 7 shows the average delay for different number of PCO nodes affected by congestion when the number of packets sent by the STA node is 150, the congested node buffer occupancy is 0.8, buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at different number of packets sent by the STA node. As more and more PCO nodes are in congested state, the average delay of the network is increasing. The traditional tree structure has the largest delay and the fastest deterioration of the delay. This is because the traditional tree structure is the least robust and the STA nodes are connected to only one PCO node. The PCO node in a congested state will directly affect all the STA nodes accessing it. The delay performance of the alternate-path-only approach is better than the traditional tree structure. This is because setting up alternate paths enables an STA node to communicate with a CCO node through two different PCO nodes. If one of the PCO nodes is in the congested state, it is able to maintain the communication to the CCO node through the other PCO node with better performance. However, when the number of PCO nodes in a congested state reaches five, the performance of the alternate-path-only approach will deteriorate to the same extent as the traditional tree structure approach. This is because when the number of PCO nodes in congested state is high, it is very likely that both PCO nodes accessed by the STA node will be in congested state. The alternate-path-only approach will not be able to establish a better performing link to the CCO node. The best performance was obtained by combining the alternate path with the PCO election mechanism. This is because no matter what the number of PCO nodes in congested state is, it can always get the PCO nodes that are not in congested state to re-network through election. Further, the STA nodes are able to communicate with the CCO nodes through the uncongested PCO nodes.
Figure 8 shows the throughput for different number of PCO nodes in congested state when the number of packets sent by the STA node is 150, the congested node buffer occupancy is 0.8, buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at different number of packets sent by the STA node. As the number of PCO nodes in a congested state increases, the throughput of the network becomes smaller. The traditional tree structure approach has the worst throughput and the fastest deterioration. Only the alternate path approach can optimize the throughput performance to some extent as more and more PCO nodes are in a congested state. But when the number of PCO nodes in a congested state exceeds a certain number, the throughput performance will be less different from the traditional tree structure approach. The approach combining alternate paths and campaigning mechanism achieves large throughput at different number of PCO nodes in a congested state.
Figure 9 shows the packet loss rate for different numbers of PCO nodes in a congested state when the number of packets sent by the STA node is 150, the congested node buffer occupancy is 0.8, buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at different number of packets sent by the STA node. As the number of PCO nodes in a congested state increases, the packet loss rate of the network becomes larger. The traditional tree structure approach has the worst packet loss rate and the fastest deterioration. Only the alternate path approach can optimize the packet loss rate performance to some extent as more and more PCO nodes are in congested state. But when the number of PCO nodes in congested state exceeds a certain number, the packet loss rate performance will be less different from the traditional tree structure approach. The approach combining alternate paths and campaigning mechanism achieves small packet loss rate at different numbers of PCO nodes in a congested state.
6.3. Case for Different Numbers of Packets to Be Sent by STA Nodes
This section shows and analyzes the performance of the network in terms of delay, throughput, and packet loss rate of different methods when STA nodes send different number of packets.
Figure 10 shows the average delay when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, the buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at the different number of packets sent by the STA node. This is because the transmission process takes more time for each node to transmit these packets to the next node, as the number of packets to be sent by the STA increases. Since the traditional Dijkstra’s algorithm can only transmit the excess packets generated by congestion to the CCO nodes by increasing the processing time, it is affected by congestion, resulting in a significantly larger delay than other schemes. The reason why the SEAR scheme is significantly better than the Dijkstra algorithm but worse than the other schemes is that it can only recover the available bandwidth for sending from the nodes to the nodes in a limited way and it does not solve the problem of excessive buffer occupancy. To ensure optimal buffer occupancy, the DCBSRP algorithm will elect some STA nodes with poor sending rates as PCO nodes, resulting in a delay that is only better than the Dijkstra and SEAR algorithms. The DCBSRP method makes only the nodes with lower buffer occupancy PCO nodes without considering the size of the available sending rate of the node. Some PCO nodes with very poor available sending rates can seriously worsen the communication delay. Therefore, the LEACH algorithm with randomly selected PCO nodes will perform better than the DCBSRP algorithm in terms of latency. The proposed scheme PCO node has a relatively strong ability to process and send data, which can be processed faster in the case of the same number of packets.
Figure 11 shows the average throughput when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, the buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at the different numbers of packets sent by the STA node. As the number of packets required to be sent increases, the number of packets received increases and the throughput increases significantly.
Figure 12 shows the average packet loss rate when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the congested node available bandwidth factor is 0.32 at different number of packets sent by the STA node. The increase in the number of packets that need to send leads to more queue length over the buffer at each node, so the number of packets received by the CCO decreases and the average packet loss rate of the network increases.
6.4. Case for Different Congested Node Available Bandwidths
This section shows and analyzes the performance of the network in terms of delay, throughput, and packet loss rate of different methods at different congested node available bandwidths.
Figure 13 shows the average delay when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 55 at different congested node available bandwidths. The more bandwidth available for the congested node causes the node to be more capable of sending information, and hence the information is transmitted faster, making the average delay of the network routing smaller. The LEACH algorithm, the DCBSRP algorithm, and the proposed scheme have significant advantages over Dijkstra’s algorithm and the SEAR algorithm. As the bandwidth available to the congested nodes increases, the delay, packet loss rate, and throughput of the former do not deteriorate as much as the latter because the former uses the PCO competition mechanism, which tries to avoid the congested nodes from affecting the entire network. As the available bandwidth factor of congested nodes decreases from 0.76 to 0.44, the average increased latency of the Dijkstra and SEAR algorithms is about 1.53 s, while the average increases in the DCBSRP algorithm, the LEACH algorithm, and the proposed scheme are about 0.15 s. It can be recognized that the use of the HRF re-networking approach over the traditional single-mode communication can be used to obtain a smaller network routing delay in the event of available bandwidth decrease at the nodes due to congestion.
Figure 14 shows the average throughput when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 55 at different congested node available bandwidths. As the available bandwidth factor of the congested node decreases from 0.76 to 0.44, the throughput of the Dijkstra algorithm and SEAR algorithm decreases by approximately 0.81 Mbps on average, and the DCBSRP algorithm, LEACH algorithm, and the proposed scheme decrease by approximately 0.24 Mbps on average. This is because the ability of the entire network to route the information is improved and the CCO receives more power consumption information per unit of time sent from the STA, as the available bandwidth of the congested nodes increases. Based on the above analysis, the throughput of the network also increases with the increase in the available bandwidth for the congested nodes.
Figure 15 shows the average packet loss rate when the congested node buffer occupancy is 0.8, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 55 at different congested node available bandwidths. As the available bandwidth factor for sending from congested nodes decreases from 0.76 to 0.44, the packet loss rates of Dijkstra’s algorithm and SEAR algorithm improve by about 24.17% on average, and the DCBSRP algorithm, LEACH algorithm, and the proposed scheme improve by about 5.65% on average. As the available bandwidth of the congested node increases, the congestion in the buffer of the node is reduced, and the ability of the entire network to process the information is increased.
6.5. Case for Different Congestion Buffer Occupancies
This section shows and analyzes the performance of the network in terms of delay, throughput, packet loss rate of different methods at different congested node buffer occupancies.
Figure 16 shows the average delay when the congested node available bandwidth factor is 0.4, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 50 at different congested node buffer occupancies. As the buffer occupancy of the congested node increases from 0.4 to 0.85, the delay of the Dijkstra algorithm increases by approximately 1.01s, the SEAR algorithm experimentally increases by approximately 0.45 s, and the DCBSRP algorithm, the LEACH algorithm, and the proposed scheme increase on average approximately 0.09 s. This is because increased buffer occupancy increases queue length, which in turn increases queuing delay.
Figure 17 shows the average throughput when the congested node available bandwidth factor is 0.4, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 50 at different congested node buffer occupancies. As the buffer occupancy of the congested node increases from 0.4 to 0.85, the throughput of the Dijkstra algorithm and SEAR algorithm decreases by approximately 0.33 Mbps on average, and the DCBSRP algorithm, the LEACH algorithm, and the proposed scheme decrease on average approximately 0.11 Mbps. This is because the increase in buffer occupancy results in fewer resources in the network that can be allocated to the transmission of power consumption information, and the CCO receives less information per unit of time, which means that the throughput decreases.
Figure 18 shows the average packet loss rate when the congested node available bandwidth factor is 0.4, the network scale is 100 m × 100 m, the number of STA nodes is 50, buffer capacity is 45, and the number of packets sent by the STA node is 50 at different congested node buffer occupancy. As the buffer occupancy of the congested node increases from 0.4 to 0.85, the packet loss rates of the Dijkstra algorithm and SEAR algorithm decrease by approximately 11.07%, and the DCBSRP algorithm, the LEACH algorithm, and the proposed scheme decrease on average by approximately 3.77%. This is because the increase in buffer occupancy leads to more buffer queue length exceeding the buffer size, and more packets are dropped, which means that the packet loss rate is greater.
The best performance is obtained for the proposed schemes in
Figure 16,
Figure 17 and
Figure 18. The reason is that the schemes try to elect PCO nodes with small buffer occupancy and large transmit available bandwidth, which prevents the nodes in the congested state from becoming PCO nodes. Even though the queue length of the congested node’s buffer increases the risk of queuing delay and packet loss of congested nodes, the proposed scheme tries to limit the impact in a limited area as much as possible through not allowing the congested node to become a key player in transmitting information within the dual-mode communication network.
Dijkstra algorithm and SEAR algorithm are mainly suitable to be used by single-mode HPLC communication. Due to the limitation of the fixed HPLC network, even if it is affected by severe congestion, the congested node still has to play a key role in the network routing. Compared with the Dijkstra algorithm, which is similar to a hands-off approach, the SEAR algorithm recovers the transmission rate of the congested node as much as possible, but it cannot solve the challenges of excessive queuing delay and increased risk of packet loss caused by the increasing buffer occupancy of the congested node. The LEACH algorithm and DCPSRP algorithm, although using a similar PCO node election mechanism similar to the proposed scheme, are unable to elect a PCO node that takes into account both the buffer size and the available bandwidth for sending. Unlike the above algorithms, the proposed scheme is able to elect a PCO node that considers both the buffer size and the available sending bandwidth.
6.6. Case for Different Buffer Capacities
This section shows and analyzes the performance of the network in terms of delay, throughput, packet loss rate of different methods at different buffer capacities.
Figure 19 shows the average delay when the congested node available bandwidth is 0.32, the network scale is 100 m × 100 m, the number of STA nodes is 50, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 10 at different buffer capacities. When the capacity of each cache is changed from the one that can accommodate 10 packets to the one that can accommodate 55 packets, the delay of the Dijkstra algorithm increases approximately 1.90s, the delay of the SEAR algorithm increases approximately 0.90 s, and the delay of the DCBSRP algorithm, LEACH algorithm, and the proposed scheme increases on average by approximately 0.37 s. This is because the increase in the capacity of the buffer leads to an increase in the number of packets, which requires more time for the node to process.
Figure 20 shows the average throughput when the congested node available bandwidth is 0.32, the network scale is 100 m × 100 m, the number of STA nodes is 50, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 10 at different buffer capacities. After the queue length increases in the buffer, the CCO receives fewer packets per unit of time. When the buffer capacity is increased from 10 packets to 55 packets, the throughput of the Dijkstra and SEAR algorithms decreases approximately 0.68 Mbps on average, and the throughput of the DCBSRP algorithm, LEACH algorithm, and the proposed scheme decreases approximately 0.45 Mbps on average.
Figure 21 shows the average packet loss rate when the congested node available bandwidth is 0.32, the network scale is 100 m × 100 m, the number of STA nodes is 50, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 10 at different buffer capacities. When the buffer capacity is increased from being able to accommodate 10 packets to being able to accommodate 55 packets, the packet loss rates of the Dijkstra algorithm and SEAR algorithm approximately increase by 20.25% on average, and the DCBSRP algorithm, the packet loss rates of the LEACH algorithm, and the proposed scheme approximately increase 15.53% on average. This is because of a significant increase in the possibility of packet loss where the data stored in the buffer exceeds the size of the buffer within the nodes, which leads to an increase in the average packet loss rate across the network. In addition, the proposed scheme has optimal performance in delay, throughput, and packet loss rate.
6.7. Case for Different Scales of Network
This section shows and analyzes the performance of the network in terms of delay, throughput, and packet loss rate of different methods at different scales of the network.
Figure 22 shows the average delay when the congested node available bandwidth is 0.32, buffer capacity is 45, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 55 at different scales of the network. When the scale of the network is increased from 60 m to 240 m, the delays of the LEACH algorithm, the DCBSRP algorithm, and the proposed algorithm decrease in general, while the delays of the Dijkstra algorithm and SEAR algorithm increase in general. The reason for the above phenomenon is that the LEACH algorithm, the DCBSRP algorithm, and the proposed algorithm are able to re-network the network so that PCO nodes in a congested state can be avoided to varying degrees, and the gain resulting from this avoidance is enhanced as more and more normally functioning STA nodes are added to the simulation. However, the SEAR algorithm and Dijkstra algorithm do not have the step of networking again, and the PCO nodes in a congested state will keep affecting a large number of STA nodes sending information to the CCO nodes on the link. As the network size continues to grow, there will be more and more STA nodes affected by the above, so the delay performance of the Dijkstra and SEAR algorithms will continue to deteriorate. Finally, the proposed scheme obtains the optimal delay performance compared to the comparison scheme. This is due to the fact that the proposed scheme not only incorporates an election mechanism but also a mechanism that balances the available transmit bandwidth and buffer occupancy.
Figure 23 shows the average throughput when the congested node available bandwidth is 0.32, buffer capacity is 45, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 55 at different scales of the network. When the scale of the network is increased from 60 m to 240 m, the throughput of the LEACH algorithm, the DCBSRP algorithm, and the proposed algorithm increases in general, while the throughput of the Dijkstra algorithm and SEAR algorithm decreases in general. On the other hand, the proposed scheme obtains the optimal throughput performance compared to the comparison scheme.
Figure 24 shows the average packet loss rate when the congested node available bandwidth is 0.32, buffer capacity is 45, congested node buffer occupancy is 0.8, and the number of packets sent by the STA node is 55 at different scales of the network. When the scale of the network is increased from 60 m to 240 m, the packet loss rates of the LEACH algorithm, the DCBSRP algorithm, and the proposed algorithm decrease in general, while the packet loss rates of the Dijkstra algorithm and SEAR algorithm increase in general. On the other hand, the proposed scheme obtains the optimal packet loss rate performance compared to the comparison scheme.
7. Discussion
The proposed scheme in this paper solves the problem of PCO nodes of different scales being in a congested state affecting the links between STA nodes and CCO nodes. The use of the mean shift algorithm does not require predetermination of the number of PCO nodes, thus allowing adaptive identification of the PCO nodes and access to the STA nodes corresponding to the PCO nodes. Alternate path creation can forward traffic from an uncongested PCO node to a CCO node when a small-scale PCO node is in a congested state. The PCO node election mechanism balances the available transmit bandwidth and buffer occupancy. It elects PCO nodes with larger available bandwidth and smaller buffer occupancy.
The simulation results from
Figure 7 to
Figure 9 show that the PCO node election mechanism achieves the best performance both in small-scale PCO nodes in a congested state and in large-scale PCO nodes in a congested state. The simulation results from
Figure 10 to
Figure 24 show that the proposed scheme has the best performance in terms of delay, packet loss rate, and throughput compared to the LEACH algorithm, the DCBSRP algorithm, Dijkstra’s algorithm, and the SEAR algorithm for different numbers of packets sent by the STA nodes, different congested node available bandwidths, different congestion buffer occupancies, different buffer capacities, and different network scales. The Dijkstra algorithm transmits electricity consumption information directly according to the shortest hop path that is affected by congestion, and therefore has the worst performance. Although the SEAR algorithm can restore the communication capability of the link affected by congestion to a certain extent, the degradation of link quality caused by congestion is still more serious. Therefore, the SEAR algorithm is better than the Dijkstra algorithm in terms of performance. The LEACH algorithm selects PCO nodes more randomly. although the DCBSRP algorithm selects PCO nodes with smaller buffer occupancy, it neglects to filter the available transmit bandwidth. As a result, the selected PCO nodes often have poor available transmit bandwidth, and the network performance is worse than the LEACH algorithm. The proposed algorithm balances the available sending bandwidth and the buffer occupancy, and therefore achieves the best performance.