Abstract
Due to the convergence defect of the existing SDN social network node topology location methods, there is a large node topology location error problem. In order to solve the above problems, this paper proposes a topology location method of SDN social network nodes based on ant colony algorithm. Firstly, the ant colony algorithm is introduced, and then the biological principle of ant colony algorithm is analyzed to determine the basic steps of ant colony algorithm. According to the number of mobile beacon launch positions and specific launch coordinates in ROI, ant colony algorithm is introduced into the mobile beacon path acquisition program to realize SDN node topology location based on ant colony algorithm. The experimental results show that under the background of node communication radius of 2.0 and 5.0, the node topology positioning errors of this method are small, and the minimum errors are 9.10% and 5.15% respectively. It is fully proved that this method has good node topology positioning effect.
Introduction
The main function of SDN (system on chip) social network is to transmit and process data, which has the characteristics of low cost, strong robustness and fast deployment. These characteristics make SDN social network more and more widely used in modern society [1]. For example, in the military field, SDN social network nodes can be put into the enemy’s field to monitor the enemy’s movements; In environmental science, SDN social network nodes can monitor forest fires; in environmental science, SDN social network nodes can monitor the enemy’s movements [2]; In the aspect of agricultural cultivation, the pests on crops are detected periodically to ensure the healthy growth of crops [3]; In terms of medical and health care, doctors can timely grasp the patient’s condition through the information transmitted by the SDN social network node on the patient, so as to ensure the patient’s safety [4].
Due to the huge application value of SDN social network, SDN social network has become the focus of the community. However, most of the nodes in SDN are randomly scattered, and their location information is uncertain before that. The information sensed by unknown nodes is meaningless for SDN social network applications. Only when people first determine the location of the node, can the information transmitted by the node to the observer be complete [5]. In addition, node location information plays an important role in improving routing efficiency, naming network space, reporting network coverage quality, balancing network load and self configuring network topology. Therefore, determining the location of SDN social network nodes is the basis of SDN social network applications. If the location of SDN social network nodes can not be determined, everything will be out of the question [6]. However, the number of nodes is relatively large, and they are randomly placed, so the nodes cannot know their exact location when they are placed, so we need to take certain strategies to locate the SDN social network nodes [7]. GPS has outstanding performance in real-time, positioning accuracy and anti-interference direction, but GPS positioning needs to install corresponding facilities on each node, and the energy consumption is large. Due to the need of application, the volume of each node can not be too large, its own energy is limited and can not be recharged again. According to the existing conditions of nodes, it is impossible to configure GPS positioning device for each node. Therefore, we have to study a certain positioning algorithm and system to calculate the location of the node with less energy consumption [8]. At present, some scholars have studied this. For example, Li et al. proposed a social network node location method based on network topology heuristic clustering, and carried out network topology clustering based on modularity optimization, so as to obtain the network community division result with the highest modularity and realize social network node location [9]; Yuan et al. proposed a social network information location algorithm based on topology expansion, mining hidden information according to the state of the current network node [10]. Combined with the state of the current network node, they proposed the concepts of relationship topology and information topology, and designed a candidate source point expansion algorithm based on information topology to realize location.
Although the above scholars have studied this, the existing location methods have convergence defects, resulting in large node topology location errors. Ant colony algorithm is a probabilistic algorithm, which can be used to find the optimal path. The algorithm has the characteristics of distributed computing, positive information feedback and heuristic search, and can provide convenience for positioning. In essence, it is a heuristic global optimization algorithm in evolutionary algorithm. Therefore, this paper introduces it into this field and proposes a node topology location method of SDN social network based on ant colony algorithm, hoping to improve the existing problems through the application of ant colony algorithm
Node topology location method of SDN social network
Introduction of ant colony algorithm
Ant colony algorithm is a global optimization algorithm proposed by Italian scholar Dorigo in ant colony algorithm, each ant acts as a candidate solution. In the iterative optimization process, the maximum probability converges to the optimal solution of the problem. The “asymmetric double bridge experiment” can be used to analyze the path discovery process of ants in ant colony algorithm, as shown in Fig. 1.
Ants from nest to food source.
As shown in Fig. 1, ants can reach the food source from the nest through A-B-D and A-C-D. The length of ABD and ACD are 2 and 4 respectively. If the speed of ants is 1, there are 20 ants in total [11]. At the beginning, the pheromone on all roads is 0.
When
When
When
When
When
At this time, the pheromone concentration of A-B path is 20, and the pheromone concentration of A-C path is 15. Therefore, ants will choose A-B path with greater probability when they choose the path, and continue to enhance the pheromone concentration of the path. With the passage of time, the difference of pheromone concentration between the two paths will be larger and larger, and most ants will choose the shortest path.
The basic steps of ant colony algorithm are as follows [13]:
Using GPS system in SDN node topology can quickly locate nodes, but considering the scale, energy and network cost of each node in SDN social network, it is difficult to install GPS system on each node, and GPS can not work in indoor environment [15]. Therefore, using the relative distance between nodes to locate the node topology is a better choice. According to the different positioning principles, the commonly used node positioning methods can be divided into two types: range-based and range-free. The former is more accurate, but the cost of computation and communication is large; The latter is less accurate, but the cost of all aspects is small, so it is suitable for low-power, low-cost applications. This research pays more attention to the application of SDN social network in the field of precise positioning, so this research is based on the high precision range based positioning mechanism.
In the range-based positioning mechanism, the nodes in SDN social network can be divided into two categories: One is the ordinary nodes that do not have the ability to measure their own coordinates, which are the main body of the network; The other is equipped with positioning tools such as GPS, which can measure their own coordinates, which are usually called beacon nodes or beacon nodes, which are scattered in the whole network deployment area. RSSI is used to measure the distance or angle between the common node and the beacon node, and then trilateration or triangulation is used to calculate the topological position of the node. In this positioning method, the layout and number of beacon nodes have a great impact on the final positioning accuracy. Using more beacon nodes will improve the positioning accuracy, but it will increase the overhead of setting up the network. Moreover, when the positioning work is completed, the beacon node has little effect [16]. Therefore, it is a great waste to try too many beacon nodes in SDN social network. In view of this, this study introduces ant colony algorithm to obtain mobile beacon path. The specific process is as follows:
Using trilateration to locate unknown nodes requires at least three different positions which are not collinear to measure the distance between beacon nodes and ordinary nodes, and these three different positions are the radio signal transmitting positions of mobile beacon nodes. The circle with the center of all transmitting positions and the radius of the longest extended distance of RSSI must cover the whole ROI. At the same time, the number of transmitting positions should be as small as possible on the premise of fully covering ROI.
Therefore, we can transform the selection of the transmitting location and the number of locations into the problem of finding the circle with the radius of the perceived distance
Vulnerability free minimum coverage ROI grid.
As shown in Fig. 2, the described coverage is called one fold coverage, and trilateration requires distance measurement from three non collinear positions. Therefore, only one coverage is not enough, at least three coverage is needed to ensure that each ordinary node can sense the ranging signal of three beacon nodes [17]. The triple coverage of ROI is composed of three groups of one coverage, in which each emission point forms an equilateral triangle with side length
Through the above process, the launch position coordinates are obtained as follows:
After getting the number of mobile beacon launch locations and specific launch coordinates in ROI, considering that ant colony algorithm is a new type of simulated evolutionary algorithm, which has strong search ability, good adaptability and robustness, this study introduces ant colony algorithm into mobile beacon path acquisition [19]. TSP (traveling salesman problem) is also one of the famous problems in the field of mathematics. That is, if a traveling businessman wants to visit n cities, he must choose the path to go. The restriction of the path is that each city can only visit once, and finally return to the original city. The goal of path selection is to obtain the minimum path distance among all paths. Considering the existence of TSP problem, each launch site is regarded as a city and ant colony algorithm is introduced. The implementation steps are as follows:
Let the number of initial iterations
The initial sensor node of ant
{calculate
According to tabuk, find out the shortest and longest ants in this cycle;
According to the formula, the optimal ant path is updated globally;
Else returns to the optimal solution;
After the end of the algorithm, we get an optimized beacon node moving path. The beacon node moves to each signal transmitting point according to this path. The distance between the ordinary node and the beacon node is measured by RSSI technology. Then the trilateration positioning method is used to locate the common nodes. This research calls this new positioning method as the node topology positioning method of wireless SDN social network based on ant colony algorithm [20, 21, 22, 23].
Experiment and result analysis
In order to verify whether the proposed method improves the existing problems, the simulation experiment is designed on the MATLAB platform. The specific experimental analysis process is as follows:
Simulation scene settings
The standard scheme of simulation scene setting is shown in Fig. 3.
The simulation tool is MATLAB, and the simulation is carried out on PC [24, 25]. the values of parameters in the simulation are as follows: number of ants
Experimental results
According to the above simulation scenario setting results, the SDN social network node topology positioning simulation experiment is carried out, and the node topology positioning error is used to reflect the performance of the method. The analysis process of the experimental results is as follows:
In order to ensure the accuracy of the experimental results, experiments are carried out under the background of node communication radius of 2.0 and 5.0 respectively, and the node topology positioning error data is obtained, as shown in Table 1.
Node topology positioning error data table
Node topology positioning error data table
Standard scheme of simulation scene setting.
As shown in Table 1, with the increase of node communication radius, the node topology positioning error shows a decreasing trend. Through numerical comparison, it is found that under the background of node communication radius of 2.0 and 5.0, the node topology positioning error of this method is less than that of the other two methods, which fully proves that the proposed method has better node topology positioning effect.
This paper mainly studies the node topology location of SDN social networks, and proposes a node topology location method of SDN social networks based on ant colony algorithm. The node location problem is transformed into an objective function optimization problem with unknown node coordinates as independent variables. The ant colony optimization algorithm is used to optimize the objective function to obtain the optimal solution of the objective function, that is, the coordinates of unknown nodes, so as to realize the node location. The experimental results show that compared with the existing methods, the node topology location method based on ant colony algorithm has smaller location error. Under the background of node communication radius of 2.0 and 5.0, the node topology location error of this method is smaller, and the minimum error is 9.10% and 5.15% respectively, which can provide a certain reference for the application and development of SDN social network. At the same time, because the design method does not conduct experimental analysis on the communication radius of more nodes, it may have an impact on the positioning results. Therefore, in the next research process, it is necessary to supplement the analysis and verification of the communication radius of more nodes, so as to make the design method have a better application prospect.
