Abstract
Cyber-Physical Systems (CPSs) obtain the information of the physical world and impact the environment through many different kinds of devices. Usually, devices with different wireless technologies communicate with each other and the external networks through gateways placed in the working area. Different kinds of devices in a CPS may not operate with each other for their own benefit, and the competition will be more intense between different kinds of devices. They will contend for bandwidth of gateways to increase their throughput and avoid transmission delay. In this paper, we formulate this gateway selection situation as a noncooperative game. We investigate the actions of devices when they change their gateway and the result of devices' competition. We first give a bandwidth allocation model of gateways and propose a distributed algorithm for clients of gateway selection in order to increase the total bandwidth of their own kind. Then we investigate the migration trends of clients, and three theorems about the condition when clients stop migrating are given. We propose examples of gateway selection game with and without Nash Equilibrium. At last section, we give simulation results of gateway selection game.
1. Introduction
Cyber-Physical Systems (CPSs) obtain the information of physical world and impact the environment through many different kinds of devices. They use different sensors to observe the targets and make influences on the targets through different actuator. For better understanding and changing the physical environment, data collection and analysis are of the essence [1]. Knowledge extracted from the data also guides the behaviors of actuators in CPSs. To work efficiently, all these mentioned above cannot be done without data exchanging between different devices within a certain CPS and between the devices in a CPS and the external networks.
In CPSs, data transmission usually takes advantage of wireless communication. For instance, sensors and actuators generally use wireless technology to transmit data to each other [2] and keep connection with external network in order to have quick reaction when certain event is detected [3, 4]. Different types of sensors have been arranged to obtain comprehensive information of the area, and they send data to external network for analyzing. Actuators in the area also need commands from the external network or sensors in other systems to take proper actions. Meanwhile, data exchanging between these devices is also important. When some devices need to transmit information to others, they usually send them in multicast way. In order to make multicast possible, routing tree is needed. And much effort has been spent on reducing the cost of the multicast routing [5–8]. However, when these devices are equipped with different wireless communication technologies, they cannot transmit data directly. Due to the rapid development of wireless communication technology, today, CPSs with multiwireless technology coexisting become familiar. Usually, devices with different wireless technologies communicate with each other and the external networks through gateways placed in the working area. This is because different wireless technologies may not be compatible, and considering the cost, privacy, and safety, we cannot connect each device directly to external networks. And for the expansibility of a CPS working in a certain area, gateways usually arranged to cover the whole area. In order to guarantee that no subarea is missed, gateways usually have been placed reasonably intensively, and the coverage areas of different gateways will overlap. Thus, some devices in the CPS can choose more than one gateway to connect with. It is quite rational for these devices to choose among different gateways and find the best one for them to keep connection. And how to select the most suitable gateway is a problem that has been extensively studied.
Some work focus on increasing the benefit of single user in the system. The authors in [9] consider a gateway selection problem in Unmanned Aerial Vehicles (UAVs) networks and give a distributed algorithm to guarantee the stability of an UAV. In [10] the gateway selection mechanism among all candidate gateways as essential component to interconnect MANET and Internet is considered. The authors use QoS-based metrics to select an optimum gateway. They aim is to balance traffic load among gateways in order to improve throughput performance and packet delivery ratio of integrated MANET and the Internet. In [11] a Dynamic DAP Selection Algorithm is proposed for a meter in a smart grid to randomly select Data Aggregation Points (DAPs) from its DAP list and route the packet. This algorithm aims at increasing networking's robustness and resiliency. In [12], authors propose a cooperative traffic transmission algorithm based on fuzzy logic in a joint LTE Advanced-VANET hybrid network architecture where an elected gateway will connect a source vehicle to the LTE advanced infrastructure. They design this algorithm to improve the performance of data transmission of the network. These works do not consider the mutual effect between different users and they focus on the problem of how to designate a gateway node among all the users.
Devices in CPSs may not cooperate with each other for their own benefit, and the competition will be more intense between different kinds of devices. They will contend for bandwidth of gateways to increase their throughput and avoid transmission delay. Existing works mentioned above assume that devices in CPSs are willing to cooperate with each other controlled by a central controller. This assumption is not suitable under noncooperative situation. In this paper, we focus on such a situation where devices choose their gateways only depending on their own benefit and they compete with each other for bandwidth of the gateway. Such condition inspires us to formulate this gateway selection problem as a noncooperative game. There are also some works that utilize game theory to study gateway selection problem. In [13] the authors investigate the interoperability issue in coalition networks where multiple groups of nodes are connected via wireless links. Authors of [13] use game theory to obtain the optimal selection of gateway aiming to minimize the total cost of links associated with each pair of nodes in the network. In [13] the authors also focus on how to pick a node to be the gateway. Our work focuses on which gateway should be choosed by a device in order to increase its benefit. Although a device in CPS tends to directly select a gateway which can maximize its own benefit, the cooperation among same kind of devices is necessary and advantageous. This is because same kind of devices may transmit data for others, and usually they have similar responsibility. Cooperation will increase the total profit of the same kind of devices; for instance, through cooperation, device will obtain more bandwidth of gateways compared to working alone. But the situation will change if there are different kinds of devices coexisting in the same work area. In order to increase the total benefit of their own kind, devices from different kinds will compete for limited resource of the system, such as bandwidth of gateways. There are few works investigating the behaviors of different kinds of devices of gateway selection problem in CPS; in this kind of situation, devices may change their gateways to increase total benefit of their kind. We use game theory to investigate the actions of devices when they change their gateway and the result of devices' competition.
The contributions of our work are as follows.
We model the gateway selection problem as a noncooperative game competing for bandwidth of gateway. And a practical bandwidth arrangement method is also given in this paper.
Migration trend has been investigated in this paper. We point out at which situation the clients will change their current gateway to increase total benefit of their kind and when they will keep their gateway.
We investigate the convergence of this gateway selection game. And we prove that the game will reach a Nash Equilibrium if one kind of client is fixed.
Finally, we make simulations to evaluate our method.
The paper is organized as follows. We discuss the related work in Section 2. The system models and some assumptions are given in Section 3. In Section 4 we investigate the migration of client and discuss when these client devices will keep their choice. In Section 5, we discuss the convergence. Simulation is in Section 6. And conclusions are given in Section 7.
2. Related Work
In any wireless networks, communication cost is an essential factor to consider. To transmit little and/or transmit fast can greatly improve the performance of wireless networks [14, 15]. These works solve the problem of how to extract significant information from a huge amount of sensory data. In our system model, different devices will contend for communication resource to reduce their cost, and the competition among them will greatly influence their communication cost, since each gateway has limit bandwidth. So it is of great importance to study the gateway selecting behavior of devices and the result of their competition.
Game theory has been widely used in investigating networking problems, such as [16–18]. In [16], authors introduce and analyze the properties of a class of games and the atomic congestion games on graphs and use this game theory to study the wireless network performance. In [17] the authors model the competition of SUs in a cognitive radio network with singleton congestion games with different preference constants. In [18] the authors model the scenario as a game which is equivalent to a network congestion game in the literature after proper and nontrivial transformations. And to our best knowledge, our work is the first one to analyze the gateway selection problem in CPSs using game theory.
Some studies on network selection have some similarity with our work, but we are focused on different situations. Network selection has been studied using game theory via several models including noncooperative game [19–21] and evolutionary game [22–26]. In [19] the authors propose a study to capture the dynamics among end users and network operators in the processes of network selection and resource allocation. The authors resort to noncooperative game theory to model the competition among multiple end users in accessing shared wireless networks. In [20] the authors study the dynamics of network selection in heterogeneous wireless networks. In [21] the authors analyze the convergence properties of dynamics of network selection in heterogeneous wireless networks. All the work mentioned above contribute a lot in investigating the network selection problem using game theory. However, these studies do not consider the cooperation within the same group and the competition between different groups.
Evolutionary game theory has been adopted to solve wireless communications and networking problems. Application of evolutionary coalitional game theory to solve various problems in wireless networking can be found in [22]. The paper also explains the open issues and trends in the field. In [23] a reinforcement learning-based distributed mechanism for strategy and payoff learning in wireless networks is proposed. The stability of the learning algorithm is discussed based on evolutionary game dynamics. An evolutionary game theory-based method is used in [24] to solve the problem of network selection in an environment where multiple networks are available. In [25], the service selection in small cell networks is modeled and analyzed by using evolutionary game theory. In [26], the authors present an evolutionary game theory-based distributed subcarrier and power allocation scheme for downlink transmission in orthogonal frequency division multiple access-based small cell networks under laying a macrocellular network. Evolutionary games assume a very large number of clients where a single client has minimal impact on other clients. This is not the case in our problem in which a single client can have major impacts on other users' decisions.
3. System Model
3.1. Network Model
We consider a system with three different kinds of nodes coexisting in the working area, and there is no central controller. One of them is gateway nodes represented by
3.2. Bandwidth Allocation Model
Though clients A and B use different kinds of wireless communication technologies, they share the same kind of gateway bandwidth. This can be considered as the ability of gateways of data transmission with external networks. We denote the total bandwidth of gateway
3.3. Gateway Selection Game
As mentioned above, clients will change their gateways in order to increase their benefit. And different kinds of clients will compete for gateway's bandwidth. Clients can benefit from increasing bandwidth obtained by their whole kind of clients, since data can be forwarded by same kind of clients. Thus, one client will change its current gateway to another if this migration will increase the total bandwidth of its kind of clients. We model this gateway selection problem as a noncooperative game, in which clients select gateways in distributed manner to increaser their total bandwidth of their kind.
Player. Client A and client B who can connect to more than one gateway in this working area are the players in this game. And if a client can only connect to a certain gateway, it will not be considered as a player in this game.
Strategy. The strategy set in this game is the set of gateways in this area which is
Payoff. The bandwidth obtained by a client is the payoff of this player. What is different from common games is that player chooses its strategy not to increase its own payoff, but to increase the total payoff of its population.
Population. Players from same kind of clients form a population. In this game, there are two populations, one is players from clients A and the other is players from clients B. We denote these two populations by
Nash Equilibrium. We call a strategy profile at Nash Equilibrium if none of the players can increase its population's payoff by changing to another strategy when other players keep their choice.
3.4. Gateway Selection Algorithm
Because there is no central controller, each client has to find the best gateway to connect all by their own. Thus, we propose a distribute gateway selection algorithm for clients to choose their strategies among all candidate gateways. As we can see from Algorithm 1, a client will compare all its accessible gateways to find the one which makes the total payoff of its population maximum. Though the algorithm is quite simple as we expected, the result that follows the behaviors of the clients is hard to predict. Since both kinds of clients will try to maximize their population's payoff, it is meaningful to investigate the competition result.
of each gateway (1) (2) Calculate the increment (3) (4) Client change its gateway to (5) (6) Client keeps its current gateway End Algorithm
4. Migration of Client
In this section, we investigate at what condition that a client will decide to change its gateway and the tendency of clients' migration. The main notations used in this paper have been shown in Table 1.
Main notation.
First, we show under what condition that a client will change its current gateway to another. As mentioned above, a client migrates when its movement will increase the total payoff of its population. We will take client
We next further simplify (4) to
We can see that whether (8) is greater than 0 depends on the equation below:
Theorem 1.
If the number of clients A and clients B of the original gateway equals the number of clients A and clients B of candidate gateway, respectively, none of these clients will change its strategy.
Proof.
We set the number of clients A in the original gateway and candidate gateway where both are n and we set the number of clients B in the original gateway and candidate gateway where both are m; for clients A and clients B (9) will be
Inference 1.
When all the gateways connect same number of each kind of clients, all clients in this system will keep their strategy.
Proof.
Inference 1 is easily obtained by Theorem 1. Suppose client a wants to change its gateway from
Theorem 2.
If the number of one kind of clients in the original gateway is equal to that in the candidate gateway, the other kind of clients in original gateway will change its strategy iff there are at least two clients more in original gateway than in candidate gateway.
Proof.
Without loss of generality, we assume that the number of clients A in the original gateway is
Theorem 3.
Denote the number of clients A in If If
Proof.
Firstly, we prove the first conclusion. For clients A in
Then, we prove the second conclusion. For clients A in
5. Migration Convergence
In this section, we investigate the convergence of gateway selection game. We first give a simple example to show how a gateway selection game converges to Nash Equilibrium.
In the example of Figure 1, there are two gateways

An example which has Nash Equilibrium.

Migration of clients in example one.
But the gateway selection game will not always reach Nash Equilibrium. And we propose another example where the migration of clients will never stop.
In the example of Figure 3, there are four players:

An example which has no Nash Equilibrium.

Migration of clients in example two.
And if there are three or more gateways in the system, the situation will be more complicated. For there is no guarantee that the gateway selection game can reach a Nash Equilibrium, we add a condition for this game to make sure that the migration will stop.
Theorem 4.
If only one kind of clients can change their strategies, this gateway selection game will always come to a Nash Equilibrium.
Proof.
This proof is based on contradiction. Define the system state as the set of gateways and their connected clients. Assume there is a loop in the system, as shown in Figure 5. At the beginning, the system was in state

System state evolution.
6. Simulation
In this section, we conduct several simulations to study the number of switchings of clients and the total payoff of
6.1. Simulation Setup
We consider an area of 100 meters by 100 meters. Clients A and clients B have been randomly placed in this region. Communication radius of clients A and B has been set to 25 meters. For most of the simulations, we place 49 gateways in the area, and set the bandwidth of gateway to 10 MBits. These gateways have been placed in grid and the interval between two gateways is about 16 meters, which makes the whole place covered by gateways. Figure 6 shows the distribution of gateways. We conduct 5 simulations with different number of clients and gateways and average the number of switchings of clients and the total payoff. We run the simulations on Windows 7 platform on DELL PC OPTILEX 790 with 3.10 GHz Intel Core i5 CPU, 8 GB memory, and hard disk of 5400 rpm and all codes were written in C/C++.

Gateway distribution.
6.2. Results Discussion
Figures 7, 8, and 9 show the number of clients' switchings and the total payoff of clients A and B with different numbers of clients. In Figure 7, the number of clients A equals that of clients B, and we increase the number of both clients A and B from

Average number of switchings and payoff with number of A and B from

Average number of switchings and payoff with number of A and B from

Average number of switchings and payoff with number of A and B from
Figure 8 shows the results when the number of clients A is fixed to 30 and the number of clients B increased from 10 to 60. We can see that the number of clients B does not have much influence on the number of switchings of clients A with fixed clients B in Figure 8(a). This indicates that though the clients B may make the allocations of bandwidth of gateways different from each other, the fixed clients B cause little troubles to clients A. Figure 8(b) shows that the payoffs of one kind of clients depend much on the number of this kind of clients. And when only clients A can change their gateways, the payoffs of
Figure 9 shows the results when the number of clients B is fixed to 30 and the number of clients A increased from 10 to 60. We can see from Figure 9(a) that the number of switchings increases a lot when the number of clients increases. The payoff changing tendency shown by Figure 9(b) has much similarity with Figure 8(b). With the increasing number of clients A, the payoff of
Figure 10 shows the results when the numbers of clients A and B are fixed to 25 and the number of gateways increased from 25 to 81. We can see from Figure 10(a) that the number of switchings of clients increases very little compared to the great increase of the number of gateways. And the total payoffs of both kinds of clients increase a lot along with the increase of gateways.

Average number of switchings and payoff with number of gateways from 25 to 81.
Figure 11 shows the results of ten competitions with different initial connection gateways of clients A and B, and each number of them is 25. From Figure 9 we can see that the initial situation of clients has much influence on the competition results when only clients A can change their gateways. The number of switchings of clients A with fixed clients B changes from 7 to 17, and

Number of switchings and payoff with 25 clients of A and 25 clients of B.
7. Conclusion and Future Work
In this paper, we investigated the gateway selection game with two kinds of clients competing for more bandwidth of their own kind. We study the migration trends of the clients and the convergence of this game. Finally, we conduct large amounts of simulation to study the results of this gateway selection game under different conditions. Through the simulation, we show the effectivity of gateway selection game in increasing the total bandwidth of clients.
Footnotes
Competing Interests
The authors declare that they have no competing interests.
Acknowledgments
This work is supported in part by the National Basic Research Program of China (973 Program) under Grant no. 2012CB316200, the National Natural Science Foundation of China (NSFC) under Grants nos. 61190115 and 61370217, the Fundamental Research Funds for the Central Universities under Grant no. HIT.KISTP201415, the National Science Foundation (NSF) under Grants nos. CNS-1152001 and CNS-1252292, the Research Fund for the Doctoral Program of Higher Education of China under Grant no. 20132302120045, and the Natural Scientific Research Innovation Foundation in Harbin Institute of Technology under Grant no. HIT.NSRIF.2014070.
