Power Line Communications Networking Method Based on Hybrid Ant Colony and Genetic Algorithm

When solving the routing problem with traditional ant colony algorithm, there is scarce in initialize pheromone and a slow convergence and stagnation for the complex network topology and the time-varying characteristics of channel in power line carrier communication of low voltage distribution grid. The algorithm is easy to fall into premature and local optimization. Proposed an automatic network algorithm based on improved transmission delay and the load factor as the evaluation factors. With the requirements of QoS, a logical topology of power line communication network is established. By the experiment of MATLAB simulation, verify that the improved Dynamic hybrid ant colony genetic algorithm (DH_ACGA) algorithm has improved the communication performance, which solved the QoS routing problems of power communication to some extent.


Introduction
LV-PLC (Low-voltage power line carrier communication) technology has become the key and difficult technology for smart grid development [1]. Owing to the LV-PLC network interference, multipath time-varying channel characteristics, high attenuation, and reliability of the communications is not ideal [2]. The previous studies have mainly made improvements from the physical layer and data link layer, and these methods have proved incapable of solving reliability of low-voltage power line communication network. So, we must adopt a higher level of network layer routing protocols [3] [4] [5].
The traditional Ant Colony System (ACS) adopts positive feedback and adaptive mechanism to accelerate the convergence speed of the algorithm, but the algorithm is easy to fall into local optimal [6]. The clustering routing algorithm obtains more shortest paths at the cost of expanding the search scope, which increases the search time of the algorithm and reduces the search efficiency of the optimal path [7]. The flooding algorithm participates in communication by taking all nodes in the network, which will increase the network load and greatly reduce the network communication efficiency [8]. But for low voltage power line carrier communication networks with complex physical topology and strong interference, these algorithms have some limitations in solving the optimal problem of network path. Therefore, this paper proposes a dynamic hybrid ant colony genetic algorithm (DH_ACGA) under QoS routing constraints. The proposed algorithm uses channel delay and node load as the evaluation factors of the algorithm's objective optimization function and genetic algorithm's (GA) individual fitness function. And improve the crossover operator, according to the GA algorithm's global searchability and fast convergence characteristics, improve the network path optimization ability.
Starting from the reality of the power communication network topology, this paper simulates the establishment of a logical communication network. Because the algorithm was affected by the density of nodes in the network, communication efficiency, communication distance and other conditions, and taking into account the number of hops, bandwidth, delay, error rate, packet loss rate, interference and other indicators [9] [10]. The DH_ACGA under multi-objective constraints is simulated and compared with the ACS algorithm in networking performance.

The Logical Topology of Network
The logic topology of power line communication network was designed based on a tree and star network, as shown in Figure 1 and Figure 2.  Select a power line communication network covering an area of 240 × 240 m 2 in a certain smart grid, and randomly arrange 50 nodes on its secondary side, as shown in Figure 1. Setting node number 1 is the central node, effective communication distance between nodes is 30 m, and 50 nodes available for point-to-point communication, generate a logical topology of Figure 2 as shown. Low power line communication network is a mixed topology, unknown nature of the entire network, and degeneration characteristics of topology. As can be seen from the Figure 2, center node faces maximum number of information transmission, that is, the degree of the node is relatively large [11] [12] [13].
In the real test case, the link connectivity of power line communication network data is very limited in scope. It is not only related to the equipment used in network communication, network load, channel status and other factors, but also related to the degree of the node and the effective communication distance. And when the nodes change, the effects on the logical topology of the entire network is also great.

Hybrid Ant Colony Genetic Algorithm
Set m for the numbers of ant, and n for the number of network communication.
The distance between node i and j is ( ) is the pheromone concentrations on the connection path between node i and j at the time of t. Initially, the pheromone concentrates on connectivity path is same, so set the

The Design of Fitness Function
In the genetic algorithm, the design of fitness function is usually a combination of constraints and the cost function based on the need to meet to construct. But for multi-constrained Quality of Service (QoS) routing, its fitness function can generally be described as [14], ( where, In Equations (9) and (10) where, λ i is the number of nodes in the network during the transmission of information to be forwarded.

The Design of Objective Optimization Function
Most existing algorithms based on the number of paths to optimize the factors used to evaluate the objective function. But this complex network of distribution network is needed to consider the transmission delay, load balancing, QoS routing algorithm running time, and other factors [15]. To make the system information transfer delay and path load minimum, according to the fitness function, the objective function is expressed as, where, i and j represent two adjacent nodes. Z represents the set of carrier nodes of the entire network. N is the number of nodes.
is the distance between two adjacent nodes. The minimum communication distance in the network must be not less than two to ensure communication reliability.
In the case of range of low voltage power line communications network nodes and the complex topology of network, it will undoubtedly lead to information transfer delay, resulting in reduced efficiency of the algorithm processing. The genetic operators are joined in the late of ant colony algorithm, using an improved crossover operator and the mutation operator. after each of iteration, the paths are crossed and mutated, using individual fitness function to select [16]. In order to improve the operating efficiency of the algorithm, proposing the fusion conditions of ant colony algorithm and genetic algorithm, and control the switching of iterations and the end of the algorithm through the transmission delay and algorithms. The number of iterations of ant colony algorithm is N a . Ant colony algorithm will switch to genetic algorithm at the time of Na ≥ Na max , Na max is maximum number of iterations. Conditions for the end of the whole algorithm system are as follows,  (6) where, N g , Ng max , d delay (Z(s, d)), and delay max is the iterations of genetic algorithm, the maximum number of iterations of genetic algorithm, system information transmission delay, and the maximum propagation delay, respectively. When the above conditions are satisfied, output optimal path and end the algorithm. The flow of DH_ACGA shows in Figure 3.

Algorithm Simulation and Feasibility Analysis
Combined with the logical topology of power line carrier communication network in low voltage distribution network, consider from a fast algorithm, robustness, convergence angles, DH_ACGA algorithm is simulated by MATLAB programming. Test and compare the DH_ACGA algorithm and the ACS algorithm on a simulation model close to the real environment. According to the results of the simulation results, the feasibility of DH_ACGA algorithm is verified.

Simulation Parameter Setting
Using the logical topology of communication networks in Figure 2, the network will be laid 50 communication nodes. Using the ants to find the optimal path of the destination node from the central node is a simulation process. Issue 10 ants from the central node 1, node 30 represents the ultimate ant destination node and receives the data. The algorithm does not change the value of each node during each iteration. The whole algorithm simulation parameters are showed in Table 1.

The Balance of Network Load
The balance of network load is an important indicator of the reliability of a network. It can be seen from the simulation results in Figure 4, the balance of network load of ACS is poor, the balance of between nodes is inconsistent. Comparing with the ACS algorithm, the network communication load of the DH_ACGA algorithm is significantly reduced. Because the load of nodes in the original ACS algorithm network is not reflected, the difference of the load of network node is relatively large. Some nodes showing high load, overload is likely to cause failure of node communication. The individual fitness value of DH_ACGA algorithm has a great advantage to select the optimum path to balance the load of nodes, so that load balancing is better.      Figure 5 shows the nodes' hops in process of iterative optimization, where, the horizontal axis is the number of iterations of the algorithm, and the vertical axis is each iterative optimization process hops. As can be seen from Figure 5, the DH_ACGA algorithm can converge to the current optimal path (1-16-44-30) after about 16 iterations, while the ACS algorithm demand 20 iterations (1-10-16-38-30). According to the degree of nodes, it can be seen that there are several nodes with relatively high degrees in the optimal path generated by the ACS algorithm.

Robustness Analysis of Algorithm
According to the time complexity and space complexity of the algorithm performance evaluation, the experiment was repeated 50 times respectively. And the statistics of the average convergence value, average convergence iteration number, convergence value, average success rate and calculation time of each algorithm are calculated respectively. The experimental results shown in Table 2 are obtained.
As can be seen from Table 2, ACS algorithm after 19 iterations converges to the optimal path, and DH_ACGA algorithm only need 14 iterations. After several experiments, the average convergence value of the mixture obtained increases, reaching the optimal convergence value indicators required by the system. From the view of the average running time of algorithm, DH_ACGA algorithm compared to the ACS algorithm significantly shortened. It is mainly due to the interaction of crossover and mutation operator, so in the algorithm optimization process, some redundant nodes are avoided, the path optimization time is shorted, and the convergence speed is accelerated. Engineering

Conclusions
In this paper, a DH_ACGA algorithm based on delay and load as evaluation factors is proposed on the basis of considering factors such as delay, objective function value, node load, running time, hop count, etc. And compared with the ACS algorithm for simulation and analysis, the following conclusions can be drawn: 1) In the same topology of communications network, analyzing the load balancing of two algorithms, DH_ACGA algorithm can well balance the load of nodes.
2) According to the logical topology of communication nodes in network, sending several "Ant" and setting a target node, DH_ACGA algorithm with a small number of iterations to find the destination node. In the situation of network node failure, information can still reach the target node and has a good self-healing capability of network.
From the simulation analysis of the experiment can prove DH_ACGA algorithm is applicable to LV-PLC network, and be able to provide satisfactory QoS routing services. However, the algorithm also has shortcomings, there is a high complexity degree of time and space. Meanwhile, LV-PLC technology is also faced with the harsh environment, network complexity, noise pollution, electromagnetic interference, and other issues. These issues may lead to lower communication quality and reliability, thus posing a huge challenge to LV-PLC technology.