Abstract
Wireless networks have been widely used in Cyber-Physical System (CPS) for data transmission. A CPS usually contains lots of sensors, and these sensors generate massive data. To make use of these data, we have to collect them through wireless communication. Sensors in a certain CPS do not always adopt same wireless technology, and these sensors formed heterogeneous wireless networks. Communication between different types of wireless networks can only be achieved by utilizing wireless gateways. In this paper, we address the problem of gateway placement for satisfying the bandwidth-requirement of each node by using minimum gateways. This problem can be formulated as a variant of Minimum Geometric Disk Cover problem which has been proved NP-complete. In order to solve our problem, one heuristic gateway placement algorithm and one grid-based heuristic algorithm are proposed. The result of simulation demonstrates that the heuristic algorithm can offer a good solution with big probability.
1. Introduction
Cyber-Physical System (CPS) has great influence on the way we observe and change the world. CPS obtains the information of the physical world through many sensors and impacts the environment by actuators. Data sensed and sampled by sensors usually contains valuable information about the physical world, and its volume is growing big. For better understanding and changing the physical environment, data collection and analysis is of the essence [1]. The knowledge extracted from the data also guides the behavior of actuators in CPS. All the work mentioned above depends on the effective data collection. And data transmission is a significant part of data collection. If we consider sensors as the eyes and actuators as the hands of human, then the data transmission is as important as the neural pathway.
In CPS, data transmission usually takes advantage of wireless communication. For instance, sensors and actuators generally adopt wireless technology to exchange data and cooperate with each other to monitor some area [2, 3] and react when certain event is detected [4, 5]. Different types sensors have been arranged to obtain comprehensive information about the area and send data to process center [6]. Also, actuators in this area need commands from the center or sensors to take proper actions. Due to the rapid development of wireless communication technology, today, CPS with multiwireless technology or heterogeneous sensors coexisting become familiar [7, 8]. Bluetooth, WiFi, Zigbee, and cellular wireless communication technologies have been widely employed by modern wireless devices. These technologies according to their technique features play different role in people's life and in the near future.
Different wireless communication technologies are complementary but also bring challenges. One of the biggest challenges is that these technologies cannot communicate mutually. But the requirement of intercommunication is increasing. Equipping each wireless device with all these technologies is costly and adding new wireless technology to existing terminal is almost impossible. Gateway is a device whose basic functions are data distribution and aggregation [9]. Gateway is designed to communicate with multitechnology wireless network [10]. Under this condition, gateways are indispensable when combining these devices with heterogeneous technologies together.
To achieve better performance in a hybrid wireless network, the locations of gateways must be carefully selected. In wireless mesh network (WMN) [11], gateway placement problem attracts considerable attentions. In WMN, gateway placement application scenario can be described as follows. The mesh nodes are deployed on the roof of houses in a neighborhood, which serve as access points for users inside the houses and along the roads. All these mesh nodes are fixed and form a mesh network. The mesh service provider needs to decide where to place the gateway devices to connect the mesh network to the internet. Since different gateway placement causes different mesh backbone topology and cost, it is important to find optimal gateway placement to minimize the total cost while ensuring the quality of service, for example, coverage.
This application is similar with gateway placement in hybrid wireless network.
Traditional multihop wireless network has several problems in modern wireless network. Take an example of people taking wireless devices, it is hard to believe a person would like to transfer other's packets and let his packets be transferred by others. Taking battery and privacy to one's concern, multihop is not that convenient and credible.
Gateway placement studies in WMN often consider multihop wireless network [12, 13]. And they mainly consider the hybrid network of wired-wireless network [14]; a hybrid network with two different types of wireless technologies is rarely addressed.
In this paper, we consider a scenario that two kinds of wireless nodes equipped with different wireless technologies randomly placed in an area. We focus our work on communication between different kinds of devices. The data transmission among some types of devices can be achieved by many techniques, such as multicast or ad hoc [15, 16]. These two kinds of nodes have the requirement of communication with different types of nodes and the internet. Gateways are used to fulfill their communication needs. For quality of service demands, each node must keep in touch with gateways and obtain a regular bandwidth. A gateway has limited capacity of providing bandwidth to the nodes connected to it. All the nodes in this area must be covered by a gateway. We investigate where to place the gateways can minimize the number of gateways placed.
The contributions of our work are as follows.
We consider the minimizing gateway placement problem in a hybrid wireless network with two different kinds of wireless communication technologies.
We propose two heuristic algorithms to address the problem.
Finally, we make simulations to evaluate our method. And the results of simulations demonstrate that our method is effective.
The paper is organized as follows. We discuss the related work in Section 2. The network models and some assumptions are given in Section 3. Our problem definition is in Section 4. In Section 5, we propose our two algorithms. Simulation is in Section 6. Conclusions and future work are given in Section 7.
2. Related Work
Bejerano [17] studied gateway placement in multihop wireless networks where network nodes were partitioned into minimal number of disjoint clusters that satisfied throughput and delay constraints. Various gateway or backbone nodes placement algorithms were proposed for WMNs [18, 19]. Some work has been done for relay device placement [20] and problems in sensors forming backbone situation [21]. However, all the above investigation focused on network connectivity of WMNs or WSNs by selecting a minimum number of fixed positions.
The capacity of hybrid ad hoc networks was investigated in [22–24]. All the above throughput results have been obtained as asymptotic value by assuming that the size of the network goes to infinity. In practice the above assumption cannot be satisfied.
Le and Nguyen [25] studied the problem of optimizing gateway placement for throughput in WMNs. In [25], a step by step updated scheme was proposed. Router node placement in a dynamic network scenario has been studied in [26]. They have proposed a particle swarm optimization approach to determine the dynamic placement of routers to maximize network connectivity and client coverage. Reference [27] investigated a router node placement problem considering service priority of client node and proposed a simulated annealing approach to solve it. Population size of client node affects the performance of gateway placement method. Reference [28] investigated the effect of population size for WMN genetic algorithm. This research is outstanding. However, the problem of gateway placement which aims to cover all client nodes in hybrid wireless network remains unstudied.
Coverage problem has been well studied in [29], which uses unit disks to cover points in an area. Their method is efficient under simple network model. However, in hybrid wireless network, many client nodes are uncovered when adopting this method.
3. Model and Assumption
There are three kinds of nodes in our network model. One of them is gateway nodes represented by
Gateway Node Model. The network bandwidth of each single gateway
Client Node Model. Every node of A and B requires bandwidth of
Interference Model. Signals from different types of nodes will not interfere mutually. And signal from the same kind of nodes will generate interference only when they are in the same channel. Every node has an interference range. For convenience, let interference range be equal to its transmission range. So when
4. Problem Definition
Consider an L meters by W meters area in which nodes
Our problem can be formulated as follows.
Given two sets in the Euclidean plane, set
There is an additional restriction of node density on the plane. Because the number of orthogonal channel is limited, when the density of nodes is more than a threshold, the signal of each other node will interfere mutually. The threshold does not have to be the number of physical channels. There are many techniques to enhance the ability of concurrence wireless communication, such as TDMA or CDMA. These technologies increase the number of actual available channels. We call these channels orthogonal channels. So the threshold can be demonstrated as follows. The number of nodes is less than
This problem can be seen as a variant of Minimum Geometric Disk Cover problem which is NP-complete [30]. The Minimum Geometric Disk Cover problem is to find a set of unit disks of minimum cardinality whose union covers a given set of points in the plane, and the disk centers are located at any position in the plane [29].
Obviously our problem is not easier than the Minimum Geometric Disk Cover problem. So at least, our problem is NP-complete.
5. Algorithms
In this section, we propose two methods to determine the locations of gateways.
5.1. Algorithm 1: Farthest Node First Cover (FNFC)
To deal with the asymmetry of nodes distribution, we consider finding an origin of our gateway placement strategy and a direction to move on. The origin in this strategy is one of the farthest two nodes on the plane. And we conduct the gateway placement from the origin to the other one which we call it destination point (DP). In the process of gateway placement, DP is fixed. The strategy will iteratively find the node whose distance to the DP is the longest. We denote the farthest node as start point (SP).
and Bandwidth requirement (1) Calculate the distances between any two nodes (2) Find the farthest two nodes (3) Let (4) For all (5) Calculate the intersections of circle with If the intersections do not exist, go to (6); If there is only one intersection If there are two intersections (6) If (7) For all nodes in P, calculate (8) Add (9) Sort (10) Mark nodes in (11) Check each (12) Choose the farthest node to DP as new SP from the unmarked nodes; Go to (3).
After SP has been found, we calculate the intersection of two circles. One takes SP as its center, and the other one will take each of the nodes adjacent to SP as its center. Their radiuses are the transmission radiuses of the central nodes. If the two circles have two intersections, the one closer to DP will be reserved. And if there is only one intersection, it will be reserved. In a few cases that the distance between two centers is shorter than the discrepancy of their radiuses, there will be no intersection. In this case, we replace the longer radius with shorter one and calculate their intersection again. In all the intersections we reserved, the one whose distance to the segment (DP, SP) is the longest will be selected to arrange a gateway. In accordance with the order of distance to SP, we mark the nodes which can be covered by the gateway. The algorithm repeats the above process until all nodes are marked.
Take Figure 1 as example. There are two kinds of nodes in this area, and they are indicated as blue points or red points. Their transmission radius is

Demonstration of FNFC: D is DP; S is SP; and O is the position to place gateway.
5.2. Algorithm 2: Grid-Based Heuristic Cover (GBHC)
Here we propose a more intuitional method to arrange gateways. Also, in some instances, it is unacceptable to place gateway at arbitrary location; for example, the wiring system of a build is usually prefixed, and the FNFC algorithm is inappropriate. And we proposed the second method to choose some locations based on a grid to arrange gateways. Since the grid is predefined, these locations can be reserved for gateways. We divide the area into grids with diagonal length
and gateway bandwidth (1) Calculate the side length of the grid, (2) Divide the area into grids (3) Count the number of nodes in each grid (4) For every grid intersection, calculate the number of uncovered nodes in its nearby four grids. The intersection with max number is marked as (5) Add (6) For all nodes in this area, calculate its distance to (7) Sort the nodes in (8) Mark nodes in (9) Check each

Demonstration of GBHC: O is the intersection to place gateway.
5.3. Discussion
The consideration of FNFC is similar to the greedy solution of line cover problem. The problem in this paper is 2-dimentional, so the start of FNFC is to determine a direction. This is the reason why we need to find two farthest nodes in the area. The procedure of FNFC algorithm is operable. The idea is that we rotate gateway O around node SP on a circle whose center is SP and radius is transmission radius. In this process, nodes may enter O's coverage. When one of these nodes is going to leave O's coverage, we stop rotating and place O at that position. This method has been proved effective by our simulation. GBHC is easy to understand and implement. Though its solution contains more gateways, it is stable. In some cases, when the density of nodes is high, two or more gateways will be arranged at some point. In that situation, the whole proportion covered by gateways using GBHC will be smaller than it could be. This may lead to a higher possibility that we have to add a new gateway if a new node have been added to this area.
Figure 3 is an example of the gateway placement given by FNFC.

Gateway placement given by FNFC.
6. Simulation
In this section, we conduct several simulations to study the performance of FNFC and GBHC. We compare the solutions of FNFC and GBHC under different conditions, and the results show that FNFC will give better solutions in most cases.
6.1. Simulation Setup
We consider an area of 200 meters by 200 meters. Nodes A and nodes B have been placed in this region in two distributions. The first situation is that all the nodes are randomly arranged in the whole area, and the second is that eighty percent of nodes are randomly placed in two small parts of the area, and the rest are randomly placed in the whole area.
6.2. Results Discussion
In the first kind of simulation, we increase the number of nodes A and nodes B from 100 to 1000, and the quantity of nodes A equals that of nodes B. As shown by Figure 4(a), gateways generated by FNFC are much fewer than GBHC. And the difference becomes smaller when nodes number increased. Also, the numbers of gateways generated by FNFC and GBHC both increase along with the growth number of nodes. The velocity of increase slows down when the number of nodes becomes large. This is because as the number of nodes increases, the gateways generated by both algorithms have almost covered nearly the whole area, and in this case nodes added to the region have great probability to fall in the scopes of gateways already there. It is also the reason why the numbers of gateways generated by two algorithms become closer. Figure 4(b) has a similar tendency with Figure 4(a), but the number of gateways used is much smaller. This phenomenon is quite reasonable, for nodes concentrated in small regions are easy to be covered by few gateways.

Number of gateways generated by FNFC and GBHC.
Figure 5(a) shows the nodes covered rate when we adopting random gateway placement method. We randomly place the same number of gateways generated by GBHC into the area. For each number of nodes, we conduct one hundred times random gateway placement and calculate the average value of cover rate. When the number of nodes is small, random placement misses a large number of nodes. Such situation becomes better when the number of nodes increased, since we have placed more gateways and larger area will be covered. But random placement rarely covers more than ninety percent of nodes. Same situation has been observed in Figure 5(b), but in that distribution, when the number of gateways is relatively smaller, randomly placed gateways miss much more nodes. This is because when nodes are concentrated, randomly placed gateways will miss more nodes by missing the nodes-intensive area.

Nodes covered and uncovered rate in random gateway placement.
In the second kind of simulation, we fix the number of nodes, 150 nodes A and 150 nodes B, and increase the transmission radiuses,

Number of gateways generated by FNFC and GBHC.
When the radius is very small, the difference between results of two algorithms is significant. Gateways generated by FNFC are as few as sixty percent of GBHC in Figure 6(a). With radius rising, the numbers of gateways generated by two algorithms become similar. The reason is similar with the first kind simulation. As radius grows, the arranged gateways will cover most area of the region. Thus the position of each gateway will make less difference. These results of randomly placement can also be interpreted, as shown in Figure 7(a).

Nodes covered and uncovered rate in random gateway placement.
In the situation of nodes placed in two small parts of the area, fewer gateways have been used to cover all the nodes, as shown by Figure 6(b). The reason is similar with the first kind simulation. And random gateways placement also follow the same condition of the first kind simulation, which is shown in Figure 7(b).
In the third simulation, the total number of nodes A and nodes B is set to 240, and we change the ratio between nodes A and nodes B from : B = 0 : 10 to A : B = 10 : 0. We conduct such simulation to see the influence of the quantity of different nodes on the performance of the algorithms. The results are shown in Figure 8.

Gateways generated by two algorithms with different ratio between A and B.
The number of gateways is downtrend, because
In the fourth kind of simulation, we set the number of nodes A as 150 and so does the number of nodes B. We conduct twenty times of each algorithm with different random distributions of nodes in the area. Figure 9 shows the results. From Figure 9, we find that distribution has obvious influence on the results of two algorithms. With one of these nodes distribution, GBHC can achieve nearly the same performance of FNFC. But in most of the cases, FNFC is much better than GBHC.

Results of two algorithms with different nodes distribution.
We compare FNFC with the method proposed by [29], named discrete unit disk cover (DUDC). This method chooses minimum disk to cover all the nodes which is similar to our problem. We use the same setting of the first simulation with random distribution. The radius is set to 25 meters. We run DUDC based on our results. From Figure 10 we can see although DUDC can reduce the number of gateways, about 5 to 10 percent, it leads to many nodes becoming uncovered, about 10 to 20 percent. This is because DUDC only consider how to cover the nodes without taking communication requirement into its account.

Number of gateways reduced by DUDC and percentage of uncovered nodes.
7. Conclusion and Future Work
In this paper, we investigated the optimizing gateway placement problem in CPS. We proposed two algorithms to address the problem. The effectiveness of the algorithms has been evaluated by our simulations. Our method can offer a good solution containing a small number of gateways. Actually, the situation will be more complicated, and much more work is needed to be done. According to the discussion in the paper, we only consider two types of client nodes in this paper, and the distribution of nodes is constant and known. There are two questions needed to be solved in the future. The first question is how to determine gateway locations if there are multiple types of client nodes. The second is how solve the problem of gateway placement, when the nodes' positions are unknown or changing overtime.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This work was partially supported by the National Natural Science Foundation of China (NSFC) under Grants nos. 61190115 and 61033015 and the National Science Foundation Distinguished Young Scholars of China under Grant no. 61300225.
