scieee AI-readable full text Open interactive document viewer

Sensor networks powered by solar energy using multiple radio channels

Xavier da Silva Araújo

Full text

SENSOR NETWORKS POWERED BY SOLAR ENERGY USING MULTIPLE RADIO CHANNELS XAVIER DA SILVA ARAÚJO DISSERTAÇÃO DE MESTRADO APRESENTADA À FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO EM ÁREA CIENTÍFICA M 2015 FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO Sensor networks powered by solar energy using multiple radio channels Xavier da Silva Araújo FOR JURY EVALUATION MESTRADO INTEGRADO EM ENGENHARIA ELECTROTÉCNICA E DE COMPUTADORES Supervisor: Doutora Tânia Cláudia dos Santos Pinto Calçada Co-Supervisor: Professor Doutor Manuel Alberto Pereira Ricardo July 30, 2015 c Xavier da Silva Araújo, 2015 Abstract This dissertation addresses the problems of capacity and lifetime of Wireless Multimedia Sensor Networks (WMSNs). More specifically, it focuses on low-cost WMSNs, powered by solar energy and based on Wi-Fi, for video-surveillance purposes. To solve the problems related with the capacity and the lifetime of these networks, this dissertation adopts a multi-channel approach. After the analysis of the state of the art solutions, it was concluded that this multi-channel approach allows to increase the capacity of the network, by reducing its levels of interference, and also allows to extend its lifetime, by using a proper channel assignment algorithm, capable of avoiding traffic forwarding through nodes with low energy level. Thus, this dissertation proposes eTILIA, a dynamic, centralized and energy-aware channel assignment algorithm for WMSNs, capable of extending their lifetime. This algorithm selects the best channel to every node in the network, using solely the information regarding the network topology and regarding the energy level of the nodes. Experimental evaluation through NS-3 simulations shows that eTILIA can provide a more efficient management of the energy resources of random topologies of 16 nodes, when compared to TILIA channel assignment algorithm and to a random channel assignment procedure. This experimental evaluation also shows that eTILIA can slightly increase the network lifetime of random topologies of 36 nodes, when compared to TILIA channel assignment algorithm, and can provide a more efficient management of the energy resources of random topologies of 36 nodes, when compared to a random channel assignment procedure. This dissertation also proposes an architecture for a low-cost video-surveillance system, powered by solar energy and based on Wi-Fi. This proposal is based on the WMSN concept, and covers the physical components to be used, the protocol stack to be adopted, and the mode of operation of the network. i ii Resumo Esta tese aborda os problemas relacionados com a capacidade e o tempo de vida das Redes de Sensores Multimédia Sem Fios (WMSNs - Wireless Multimedia Sensor Networks). Mais especificamente, foca-se em WMSN de baixo custo, alimentadas a energia solar e baseadas em Wi-Fi, para fins de video-vigilância. Para resolver os problemas relacionados com a capacidade e o tempo de vida destas redes, esta tese adopta uma abordagem multi-canal. Após a análise das soluções do estado da arte, concluiu-se que esta abordagem multi-canal permite aumentar a capacidade da rede, ao reduzir os seus níveis de interferência, e pode também prolongar o seu tempo de vida, ao usar um algoritmo de atribuição de canais apropriado, capaz de evitar o encaminhamento de tráfego através de nós com nível de energia reduzido. Assim, esta tese propõe eTILIA, um algoritmo de atribuição de canais dinâmico, centralizado e energeticamente eficiente para WMSNs, capaz de prolongar os seus tempos de vida. Este algoritmo selecciona o melhor canal para cada nó da rede, utilizando apenas a informação sobre a topologia da rede e sobre o nível de energia dos nós. Avaliação experimental através de simulações em NS-3 mostram que o eTILIA consegue providenciar uma gestão mais eficiente dos recursos energéticos de topologias aleatórias com 16 nós, quando comparado com o algoritmo de atribuição de canais TILIA e com um procedimento de atribuição de canais aleatório. Esta avaliação experimental também mostra que o eTILIA consegue aumentar superficialmente o tempo de vida da rede de topologias aleatórias com 36 nós, quando comparado com o algoritmo de atribuição de canais TILIA, e consegue providenciar uma gestão mais eficiente dos recursos energéticos de topologias aleatórias com 36 nós, quando comparado com um procedimento de atribuição de canais aleatório. Esta tese também propõe uma arquitectura para um sistema de video-vigilância de baixo custo, alimentado a energia solar e baseado em Wi-Fi. Esta proposta é baseada no conceito de WMSN, e cobre os componentes físicos a serem usados, a pilha protocolar a ser adoptada, e o modo de operação da rede. iii iv Acknowledgments First of all I would like to thank Dra. Tânia Calçada for all her support and guidance. Throughout this dissertation, she was capable of aiding me during the most difficult times. Her availability and willingness to hear me and support me, were essential for the success of this dissertation. I could not have chosen a better supervisor. Secondly, I want to thank Prof. Manuel Ricardo who was always available to clarify my doubts about this dissertation. I also want to thank Sérgio Tafula for all his support regarding the Roundabout virtual machine, and to Agostinho Ferraz for his support regarding the components of the proposed system. I want to thank my father, Manuel Araújo, and my mother, Ana Araújo. Throughout my whole life they had been there whenever I needed, and for that I thank them. They provided all the required tools for me to succeed. Their love, support, encouragement and inspiration were crucial. I also want to thank to my family which was always by my side, and contributed to keep me motivated. I want to thank to Álvaro Ferreira, Catarina Santos, Cátia Silva, Elisabete Gonçalves, Fábio Silva, Luciano Duarte, Luís Úngaro, Patrícia Oliveira, Sónia Coelho and Tiago Teixeira. They were with me in the good times, and more important, they were with me in the bad ones. I can proudly say that they are truly my friends. All the moments that we had together, during all these years, were essential to my success. To them, I leave this: "Never forget the days I spent with you. Continue to be my friend, as you will always find me yours", Ludwig van Beethoven Last but not least, I thank to Beatriz Andrade for all her support. She stayed always by my side during this dissertation, and gave me the strength and motivation to finish it. Thank you all! This dissertation is dedicated to you! Xavier da Silva Araújo v xii LIST OF FIGURES C.7 25 Nodes, 2 Gateway: Original Topology vs First eTilia Topology . . . . . . . . 60 C.8 25 Nodes, 3 Gateway: Original Topology vs First eTilia Topology . . . . . . . . 60 C.9 25 Nodes, 4 Gateway: Original Topology vs First eTilia Topology . . . . . . . . 61 D.1 16 Nodes, 2 Gateways, Topology 1: Original Topology vs First eTilia Topology . 63 D.2 16 Nodes, 2 Gateways, Topology 2: Original Topology vs First eTilia Topology . 63 D.3 16 Nodes, 2 Gateways, Topology 3: Original Topology vs First eTilia Topology . 64 D.4 16 Nodes, 2 Gateways, Topology 4: Original Topology vs First eTilia Topology . 64 D.5 16 Nodes, 2 Gateways, Topology 5: Original Topology vs First eTilia Topology . 64 D.6 16 Nodes, 2 Gateways, Topology 6: Original Topology vs First eTilia Topology . 65 D.7 16 Nodes, 2 Gateways, Topology 7: Original Topology vs First eTilia Topology . 65 D.8 16 Nodes, 2 Gateways, Topology 8: Original Topology vs First eTilia Topology . 66 D.9 16 Nodes, 2 Gateways, Topology 9: Original Topology vs First eTilia Topology . 66 D.10 16 Nodes, 2 Gateways, Topology 10: Original Topology vs First eTilia Topology 66 D.11 16 Nodes, 2 Gateways, Topology 11: Original Topology vs First eTilia Topology 67 D.12 16 Nodes, 2 Gateways, Topology 12: Original Topology vs First eTilia Topology 67 D.13 16 Nodes, 2 Gateways, Topology 13: Original Topology vs First eTilia Topology 67 D.14 16 Nodes, 2 Gateways, Topology 14: Original Topology vs First eTilia Topology 68 D.15 16 Nodes, 2 Gateways, Topology 15: Original Topology vs First eTilia Topology 68 D.16 16 Nodes, 2 Gateways, Topology 16: Original Topology vs First eTilia Topology 68 D.17 16 Nodes, 2 Gateways, Topology 17: Original Topology vs First eTilia Topology 68 D.18 16 Nodes, 2 Gateways, Topology 18: Original Topology vs First eTilia Topology 69 D.19 16 Nodes, 2 Gateways, Topology 19: Original Topology vs First eTilia Topology 69 D.20 16 Nodes, 2 Gateways, Topology 20: Original Topology vs First eTilia Topology 69 D.21 36 Nodes, 2 Gateways, Topology 1: Original Topology vs First eTilia Topology . 70 D.22 36 Nodes, 2 Gateways, Topology 2: Original Topology vs First eTilia Topology . 70 D.23 36 Nodes, 2 Gateways, Topology 3: Original Topology vs First eTilia Topology . 71 D.24 36 Nodes, 2 Gateways, Topology 4: Original Topology vs First eTilia Topology . 71 D.25 36 Nodes, 2 Gateways, Topology 5: Original Topology vs First eTilia Topology . 71 D.26 36 Nodes, 2 Gateways, Topology 6: Original Topology vs First eTilia Topology . 71 D.27 36 Nodes, 2 Gateways, Topology 7: Original Topology vs First eTilia Topology . 72 D.28 36 Nodes, 2 Gateways, Topology 8: Original Topology vs First eTilia Topology . 72 D.29 36 Nodes, 2 Gateways, Topology 9: Original Topology vs First eTilia Topology . 72 D.30 36 Nodes, 2 Gateways, Topology 10: Original Topology vs First eTilia Topology 72 D.31 36 Nodes, 2 Gateways, Topology 11: Original Topology vs First eTilia Topology 73 D.32 36 Nodes, 2 Gateways, Topology 12: Original Topology vs First eTilia Topology 73 D.33 36 Nodes, 2 Gateways, Topology 13: Original Topology vs First eTilia Topology 74 D.34 36 Nodes, 2 Gateways, Topology 14: Original Topology vs First eTilia Topology 74 D.35 36 Nodes, 2 Gateways, Topology 15: Original Topology vs First eTilia Topology 74 D.36 36 Nodes, 2 Gateways, Topology 16: Original Topology vs First eTilia Topology 75 D.37 36 Nodes, 2 Gateways, Topology 17: Original Topology vs First eTilia Topology 75 D.38 36 Nodes, 2 Gateways, Topology 18: Original Topology vs First eTilia Topology 75 D.39 36 Nodes, 2 Gateways, Topology 19: Original Topology vs First eTilia Topology 76 D.40 36 Nodes, 2 Gateways, Topology 20: Original Topology vs First eTilia Topology 76 List of Tables 2.1 TILIAterms..................................... 8 4.1 Simulationparameters ............................... 37 E.1 Simulation results: eTILIA algorithm, 16 nodes, 2 gateways . . . . . . . . . . . 78 E.2 Simulation results: TILIA algorithm, 16 nodes, 2 gateways . . . . . . . . . . . . 79 E.3 Simulation results: Random channel assignment procedure, 16 nodes, 2 gateways 80 E.4 Simulation results: eTILIA algorithm, 36 nodes, 2 gateways . . . . . . . . . . . 81 E.5 Simulation results: TILIA algorithm, 36 nodes, 2 gateways . . . . . . . . . . . . 82 E.6 Simulation results: Random channel assignment procedure, 36 nodes, 2 gateways 83 xiii xiv LIST OF TABLES Abbreviations CSMA Carrier Sense Multiple Access CSMA/CA Carrier Sense Multiple Access Collision Avoidance CSI Camera Serial Interface EMRP Energy-Aware Mesh Routing Protocol ETE Expected Transmission Energy HDMI High-Definition Multimedia Interface HWMP Hybrid Wireless Mesh Protocol IEEE Institute of Electrical and Electronics Engineers IP Internet Protocol kbps Kilobits per Second LB-MCP Load Balancing Multi Channel Protocol Mbps Megabits per Second MIMO Multiple Input Multiple Output NS-3 Network Simulator 3 OFDM Orthogonal Frequency Division Multiplexing QoS Quality of Service SSCH Slotted Seeded Channel Hopping TCP Transmission Control Protocol TDCC Topology Discovery and Channel Change TDMA Time Division Multiple Access TH-UWB Time-Hopping Ultra-Wide Band UDP User Datagram Protocol USB Universal Serial Bus WMN Wireless Mesh Network WMNs Wireless Mesh Networks WMSN Wireless Multimedia Sensor Network WMSNs Wireless Multimedia Sensor Networks WSN Wireless Sensor Network WSNs Wireless Sensor Networks µExpected Value σ2Variance xv Chapter 1 Introduction 1.1 Context Future Cities is a project that is currently being implemented in the city of Porto, in Portugal. The main idea of this project is to transform the city of Porto in an urban-scale living lab, where new technologies, services and products, can be developed, tested and evaluated. These technologies, services and products can explore several subjects, such as sustainable mobility, urban-scale sensing or even the quality of life of the citizens. One of the challenges of this project is the creation of low-cost, solar powered video-surveillance systems, based in Wi-Fi, to cover large unconnected areas such as parks or beaches. These systems fit in the definition of Wireless Multimedia Sensor Network (WMSN). WMSNs are networks of interconnected wireless devices, that allow to retrieve multimedia content, like video streams, audio streams or static images. WMSNs are a recent technology that emerged from Wireless Sensor Networks (WSN), which in its turn emerged from Wireless Mesh Networks (WMN). As stated in [1], these networks can be useful in numerous applications such as person locater systems, traffic avoidance systems, control systems, environmental monitoring systems and surveillance systems. 1.2 Problem Characterization The goal of this thesis is the designing of a networking solution to improve the performance of Carrier Sense Multiple Access (CSMA) based WMSNs, regarding two major factors: the network capacity and the network lifetime. The network capacity is a major limitation because the WMSN has to be capable of transmitting large amounts of data, extracted from the video-surveillance system, to the appropriate destination, within a maximum pre-defined delay time. Thus, the network capacity can clearly limit the network performance, if not taken into account. The network lifetime is also a major limitation, since the deployment of a WMSN powered by solar energy, can greatly reduce the network lifetime, restraining the network operation. It is essential to come up with solutions to overcome these limitations, in order to deploy functional, reliable and effective WMSNs. This is important since this emerging type of network 1 2Introduction can bring great advantages, as stated in [1]. This work focuses on the designing of a single solution that, at the same time, increases the network capacity and extends the network lifetime. By doing this, it is possible to improve the performance of WMSNs, allowing them to transmit a higher amount of multimedia data, within a maximum pre-defined delay time, and increasing the period in which they can collect information. This allows the deployment of WMSNs with better characteristics in terms of performance and reliability. There are several strategies to increase the capacity of the network, and to extend its lifetime. This thesis adopts a multi-channel approach. With this approach, it is possible to increase the capacity of the network, by reducing its interference levels, and it is also possible to extend the network lifetime, by using a proper dynamic channel assignment procedure, capable of avoiding traffic forwarding through nodes with low energy level. Thus, this thesis proposes a centralized and energy-aware channel assignment algorithm, which takes into account the energy level of the nodes of the WMSNs. The reason behind the centralized approach has to do with the low processing and memory resources, owned by the WMSN nodes. The energy-aware channel assignment algorithm developed is an improvement of the channel assignment algorithm named TILIA, described in [2]. The proposed algorithm, eTILIA, adds an energy parameter to the TILIA algorithm, in order to adapt it to situations where energy availability is a strong limitation. 1.3 Contributions The main contribution of this thesis is eTILIA, a dynamic, centralized and energy-aware channel assignment algorithm for WMSNs, capable of extending their lifetime. This algorithm take as input the network graph, with all the gateways and all the connections between the nodes of the network, and the energy level of each node. The output of the algorithm is the channel assigned to each node. The evaluation of eTILIA was based on computer simulations, using the Network Simulator 3 (NS-3) tool. These simulations relied mainly on the mesh network model and energy model of NS-3. A secondary contribution is the proposal of a video surveillance system, based on the WMSN concept. This proposal encompasses the components of the system, the protocol stack adopted and its mode of operation. 1.4 Structure This document is organized in four more chapters. Chapter 2presents the state-of-the-art solutions to increase the network capacity, and to achieve energy efficiency in wireless multi-hop networks. Chapter 3presents the proposed video surveillance system, based on the WMSN concept, and the proposed eTILIA algorithm. This chapter starts by giving an overview of the system and a description of its components, protocol stack and mode of operation, and then presents the specification and implementation of eTILIA. Chapter 4describes the simulation tools which were used, 1.4 Structure 3 the topologies simulated, the simulation methodology adopted and the results obtained. Chapter 5 presents the final conclusion of this dissertation. 4Introduction Chapter 2 State-of-the-Art The first section of this chapter, presents a set of procedures that can be used to increase the capacity of wireless multi-hop networks. The second section of this chapter exposes a set of approaches proposed to save the energy resources of wireless multi-hop networks. This chapter concludes with an analysis relating the solutions capable of increasing the network capacity, with the energy saving solutions. 2.1 Capacity of Wireless Multi-Hop Networks The retrieving of multimedia data normally generates large volumes of data. This requires a high capacity network, capable of transmitting all the retrieved information to its destination, within a certain time interval. The network capacity depends on many factors, such as the network architecture, network topology, traffic patterns, network node density, number of communication channels used for each node, transmission power level and node mobility, as stated in [3]. Since there are many factors that influence the network capacity, there are also several approaches designed to increase it. This section presents the relevant approaches and solutions, regarding this topic. A special attention is given to TILIA algorithm due to its importance on this dissertation. 2.1.1 Capacity Improvement Approaches There are numerous ways to improve the capacity of wireless multi-hop networks, being the following the most adopted approaches: Reduce Interference: In order to increase the network capacity is possible to design solutions to reduce, or to completely avoid, the interference between simultaneous communications. By doing this, the number of possible simultaneous communications increases, allowing to achieve a higher network capacity. For instance, in [4] is proposed a routing metric, designated iAWARE, which aims to reduce the interference in the network, increasing its 5 12 State-of-the-Art assign_parent_to_node():Establishes the connection between a node and the node which was elected its parent. reorderNodeList():Reorders the nodes of the network. It starts by putting the nodes with the lowest hop count to the gateway first. Then it organizes the nodes with the same hop count by the lowest number of gateways choices. After this, it organizes the nodes with the same number of gateway choices by the lowest number of parent choices. Finally it organizes the nodes with the same number of parents choices by the lowest number of hidden links. min_up_hidden_nodes():Returns the candidate parents which present less problems with hidden nodes. This is useful to select the best candidate parents. remove_edges_between_channels():After the channel assignment procedure, this function removes the graph links between nodes with different communication channels. nodes_ring():Returns the nodes which are in a given ring. check_children_alternatives():Returns the number of neighbours with a lower hop count to the gateways. Depending on the parameter samechan it counts only the nodes in the same channel or it counts all the nodes with a lower hop count to the gateway independently of their channel. node_comitted_load():Returns the load of a certain node due to its descendants. min_load_gw():Returns the gateway which will have a lower load after attaching a certain node. fairness():Calculates the Jain fairness index, referred in [24], of a certain sequence. tilia_fix_paths():This method is executed after the channel assignment procedure. It analyses the trees that were built and checks if there is any possibility of improving the load balance between them. nodes_on_channel():Returns the number of nodes which were assigned to a given channel. hidden_nodes_of_a_link():Returns the number of hidden nodes of a given graph link. hidden_nodes_ratioR1():Returns the miss ratio on the gateways neighbourhood which is a measure of the hidden node problem. 2.2 Lifetime of Wireless Multi-Hop Networks In order to deploy wireless multi-hop networks it is necessary to have an energy source to power the nodes, since the capacity of the existing batteries has strong limitations. If the network is deployed in an outdoor environment, the best option to obtain the necessary power for the network operation is to take advantage from solar energy. However, the uncertainty related to the solar energy availability can be a major problem, and so it is necessary to assure that the network does not breakdown during scenarios of low availability of solar energy. In this section are presented some of the existent solutions to extend the lifetime of wireless multi-hop networks. 2.2 Lifetime of Wireless Multi-Hop Networks 13 2.2.1 Lifetime Extension Approaches To decrease the energy consumption of wireless multi-hop networks is possible to modify several aspects of their functioning. As stated in [25] the main energy-efficient mechanisms are: Radio Optimisation: The radio is the component which mostly affects the battery depletion of the nodes in wireless multi-hop networks. So by optimising the radio parameters, a great improvement can be obtained, in terms of energy efficiency. It is feasible to do this by optimising the radio modulation, transmission power, the type of antennas or by adopting an cooperative communication scheme. In [26] is showed that is possible to minimize the energy consumption, satisfying some given throughput and delay requirements, by optimizing the transmission time. In [27] is presented a study about the energy efficiency of three distinct modulations schemes. In [28] is described an algorithm for transmission power control, which improves the energy efficiency. In [29] is presented a study about the use of directional antennas for energy efficiency. In [30] is stated that is possible to achieve better energy performance, in sensor networks, by using cooperative MIMO techniques. Data Reduction: Energy-efficiency can be achieved by reducing the amount of traffic that is transferred on the network. In order to do this, it is conceivable to use information aggregation techniques such as adaptive sampling, network coding algorithms or compression methods. A survey about data aggregation techniques is available in [31]. In [32] is presented a study that adjusts the sampling frequency, in a human activity recognition application, according to the level of movement. In [33] is described a network coding algorithm that improves the energy efficiency of the network, and a survey about data compression techniques can be consulted in [34]. Sleep/Wakeup Schemes: To minimize the amount of energy wasted by the nodes, it is viable to use schemes that temporarily put the nodes in sleep mode, when they are not in an active mode. A device that is capable of implementing a passive wake-up radio sensor network, is presented in [35]. In [36] is presented a solution capable of minimizing the energy consumption of a WSN by activating only a subset of the existent nodes. Energy-Efficient Routing: The energy drained from the nodes can increase significantly, if they are systematically chosen to forward packets that are destined to other nodes. Thus the routing algorithm could really affect the network lifetime, if not done carefully. In [37] are described two energy aware cost based routing algorithms, and in [38] is presented a multipath routing protocol. Energy Harvesting: The use of rechargeable batteries in the nodes can really improve the network energy efficiency. By using solar energy, wind energy or even wireless charging to recharge these batteries, it is possible to increase the network lifetime. A survey about various aspects of energy harvesting sensor systems is available in [39]. In [40] is presented a study about wireless charging in WSNs. 14 State-of-the-Art 2.2.2 Lifetime Extension Solutions Based on the mechanisms above referred, several researchers come up with energy-efficient solutions that can be applied in wireless multi-hop networks, in order to increase their lifetime. In [41] the authors present a study about the behaviour of batteries, which declares that the discharged power of the batteries is higher than the power actually needed. The study also states that this over-discharged power can be recovered, if the battery has a sufficiently long recovery time. Based on this battery behaviour, the authors developed two algorithms to extend wired network infrastructures: the coverage algorithm and the back-haul routing algorithm. The main idea of the coverage algorithm, is to adjust the transceivers radius of the nodes, in a collaboratively way, allowing them to recover the over-discharged power, while providing the necessary network coverage for the network clients. As for the back-haul routing algorithm, the objective is to forward the packets of the nodes, to their neighbours with the lower over-discharged power. With these two algorithms it is viable to improve the energy efficiency of the network, by providing the necessary recovering time to the nodes with higher over-discharged power. In [42] was created an algorithm which aim to turn off the largest possible number of radio interfaces, while maintaining a certain level of performance. So when the network load decreases the algorithm turn off some radio interfaces, and when the network load increases the algorithm turn on more radio interfaces. When a radio interface is turned on, its channel is carefully selected to better use the network resources. By doing this the algorithm can save power since the unnecessary radio interfaces are turned off. This algorithm assumes that the channel assignment and routing decisions were already made, and only tries to optimize the energy efficiency of the network. In [43] was created a new routing metric for WSNs which takes in account the energy factor. To do this the authors take the HWMP airtime metric, defined in IEEE 802.11 standard, which reflects the amount of channel resources consumed by transmitting the frame over a certain wireless link, and add an energy factor to this metric. The authors assume that every node is considered equally important in the WMN and the objective is to ensure that each one of them consumes a similar quantity of energy. Thus they come up with a metric, named ETE, that takes into account the remaining energy (after transmission) and the initial energy of the nodes along the route. In [44] is defined a new routing algorithm destined to WMNs which use solar energy and wind energy as a power supply. In order to save the power of the nodes, this routing algorithm specifies a new routing metric based on the traditional minimum hop metric. The idea is to add a hop penalty factor to the minimum hop metric, based on the remaining energy of the nodes. For every possible route between two nodes, a routing cost value is calculated. Each node in the route adds a penalty, based on its remaining energy, and the route with the lowest routing cost value is selected as the best route. In [45] is proposed a new routing algorithm, for WSNs, named EMRP. This algorithm divides the network in several clusters and in each cluster, a cluster head is selected. This cluster head is responsible for aggregate the information of every other element of the cluster, and send it to 2.2 Lifetime of Wireless Multi-Hop Networks 15 a base station. The base station is the destination node of the information of all the nodes in the network. The EMRP is an event-driven cluster based algorithm, which means that clustering and data transmission to the base station, only happens when a certain event occurs. To save the power of the network the cluster head is chosen based on the energy available in the nodes. Thus the nodes with higher energy are the ones which are selected. That way the algorithm avoids using the nodes with low energy level to forward information, of other nodes, to the base station. In what concerns the routing problem there are two different situations: when the cluster head is in the transmission range of the base station and when the cluster head is out of the transmission range of the base station. In the first case the cluster head aggregates the information of the cluster nodes, and sends it directly to the base station. In the second case the cluster head tries to discover two relay nodes to the base station: a relay node and a backup relay node. This relay node discovering is repeated by the nodes elected by the cluster head, until a relay node in the transmission range of the base station is found. Then, by monitoring the energy of each of the relay nodes, this algorithm can switch between the two paths in order to achieve energetic efficiency. By adopting this switching strategy this algorithm provides reliability of routing paths, even load balance and energy efficiency. 2.2.3 Network Failure Point To analyse the proposed solutions is necessary to precisely define the circumstances in which is considered that the network has failed. This is equivalent to define the meaning of the term network lifetime. This definition is crucial in order to compare two distinct algorithms, since the comparison is only valid if both algorithms are evaluated by the same criteria. In [41] the lifetime of the network is defined as the duration between the network set up and the moment when the routers can no longer cover the entire area. In [43] the network is considered active while there is, at least, one active node. However the author keeps track of the moment when each node becomes inactive, which allows to have a detailed record of the network behaviour regarding its lifetime. In [45] the simulation is executed until all the nodes which have the base station in their transmission range, become inactive. In [37] the lifetime of network is considered to be the amount of time between the network set up and the moment when the first node depletes its energy. There are also approaches that define the lifetime as the period between the network set up and the moment when a percentage of the nodes depletes its energy, as is referred in [46]. From the examples above referred it is noticeable that the definition of lifetime is not universal, and is very dependent of the type of application of the network. Thus it is necessary to precisely define the meaning of the term lifetime before evaluate a certain energy efficient solution. In this dissertation is adopted the definition proposed by [45]. We consider that the network is active until all the nodes which have the gateway in their transmission range become inactive. This approach makes sense in the context of this dissertation, because when all the nodes that can reach the gateways become inactive the video-surveillance system fails, since not even a single node is capable of transmitting the video information to the appropriate destination. 16 State-of-the-Art 2.3 Summary The first section of this chapter described a set of approaches to improve the capacity of wireless multi-hop networks, such as reducing the interference, designing new routing protocols and metrics, using multiple communications channels and using multiple network interfaces. Given these approaches, it were exposed several solutions, proposed by different authors, to surpass this problem. A special attention is given to the TILIA algorithm, due to its importance in this dissertation. In the second section of this chapter it were presented the most important parameters that affect the lifetime of wireless multi-hop networks. Given these parameters, it were exposed some solutions capable of reducing the energy waste in these networks. By analysing all the possible approaches and solutions capable of increasing the capacity of wireless multi-hop networks we concluded that the best option is to use multiple communication channels. Using multiple communication channels allows us to have several simultaneous communications without having interference between them, and the complexity associated to this type of approach is reasonably acceptable. This type of approach is very dynamic since it is possible to add a new communication channel, if there is an increment in the number of nodes of the network, or to remove some of the existing communication channels, if there is a decrement in the number of nodes of the network. In what concerns energy efficiency, we can use a channel assignment algorithm, capable of modifying the network topology according to the energy of the nodes, to extend the lifetime of the network. If this channel assignment procedure is done regularly it is possible to adapt to changes in the energy levels of the network, avoiding, for example, to forward traffic through nodes with low remaining energy. To conclude we can point out that the research regarding the state of the art, in what concerns capacity and energy efficiency of wireless multi-hop networks, allowed us to determine the best approach to solve the proposed problem. Chapter 3 Proposed System This chapter presents the proposed video surveillance system, which is based on the Wireless Multimedia Sensor Network (WMSN) concept, and the proposed eTILIA algorithm. The first section describes the addressed scenario and the proposed WMSN. The second section details the components of the system and presents off-the shelf alternatives. The third section exposes the protocol stack of the network, with a detailed description of the protocols used at each layer. The fourth section describes the mode of operation of the network. Finally, the fifth section presents the specification and implementation of the proposed channel assignment algorithm, eTILIA. 3.1 System Overview In this section is proposed a low-cost, solar powered video-surveillance system, based in Wi- Fi, to cover large unconnected areas such as parks or beaches, similar to the one depicted in Figure 3.1. The idea of this system is to allow the surveillance of these isolated areas, from a remote surveillance centre. The system is composed by several video-surveillance cameras spread around a certain region. Only a few of these cameras can access the Internet, since most of them are placed in zones without network coverage. This way, in order to deploy a functional system, it is necessary to create a wireless multi-hop network, allowing the video transmission of the cameras located in places without network coverage. More specifically, it is necessary to deploy a WMSN, due to the multimedia nature of the network traffic. Thus, this system can be represented through a network graph, such as the one exposed in Figure 3.2, in which a G letter represents a gateway and a N letter represents a common node. The nodes are responsible for gathering the desired data and for sending it to one of the gateways. The gateways are responsible for delivering the received information to the surveillance centre. To build a proper WMSN, the deployment of the network should be made in order to allow each node to reach every other node of the network. This means that it must be possible to represent the network through a connected graph. The main goal of the system is to create a WMSN capable of guaranteeing that every camera can successfully deliver its own information to these gateways. After that, the reliability of the wired connection between the gateways and the surveillance centre, 17 18 Proposed System allows to ensure the correct delivery of the information. The system is expected to have around 40 nodes. INTERNET SURVEILLANCE CENTRE Figure 3.1: Video-surveillance system in a park Surveillance Centre G G G N N LAN Network N N N N N N N N N N N N Figure 3.2: Network Graph 3.2 System Components 19 3.2 System Components Wi-fi Card / Antenna Pi Camera Solar Charge Controller Raspberry Pi Solar Panel USB RJ45 CSI Battery + ++ - - - Figure 3.3: Connections schematic This section details the components of the system and presents off-the shelf alternatives. In Figure 3.3 is presented a schematic of the connections between all the components. The components required to fulfil the specifications of the system are now presented: Processing Unit: One of the fundamental components of the nodes is a processing unit capable of doing the required processing for the system to work properly. One possible alternative for this component is the Raspberry Pi processing unit, which is illustrated in Figure 3.4. Some of the advantages of the Raspberry Pi are the low price, the good energy efficiency and the good processing power. The compatibility with common standards such as USB, Ethernet or HDMI is also a great advantage. It is possible to obtain more information about the Raspberry Pi in [47]. Figure 3.4: Raspberry Pi Wi-fi Card/Antenna: Each node must be equipped with a Wi-Fi card and an antenna, in order to be able to communicate with the other nodes. The Wi-Fi card must be compatible with the IEEE 802.11 standard. One alternative would be to use a wireless USB adapter such as 20 Proposed System the TP-LINK TL-WN722N, depicted in Figure 3.5. This wireless USB adapter can achieve traffic rates up to 150Mbps, and is compatible with the wireless standards IEEE 802.11n, IEEE 802.11g and IEEE 802.11b. The possibility of adding an external antenna to improve the radio coverage is also an advantage. It is possible to obtain more information about the TP-LINK TL-WN722N in [48]. Figure 3.5: Wireless USB Adapter TP-LINK TL-WN722N Multimedia Sensor: Each node must be equipped with a multimedia sensor, which is responsible for retrieving video footage from the surrounding environment and deliver it to the processing unit. One possible alternative for this component is the Raspberry Pi camera, which is illustrated in Figure 3.6. The full compatibility of this camera with the Raspberry Pi is an advantage. It is possible to obtain more information about the Raspberry Pi camera in [49]. Figure 3.6: Raspberry Pi Camera Battery: Each node must be equipped with a battery capable of supplying the necessary power for the node operation. The battery must be adequate to the power needed by the node. This require an analysis of the current drawn by each component of the nodes, in order to acquire an adequate battery. One possible alternative for this component is the battery DGY12-7.5EV, which is illustrated in Figure 3.8. It is possible to obtain more information about the battery DGY12-7.5EV in [50]. 3.2 System Components 21 Figure 3.7: Battery DGY12-7.5EV Solar Panel: Each node must have a dedicated solar panel to allow the energy harvesting. This avoids the necessity of an electrical infrastructure to provide power to the nodes. The size of the solar panel must be carefully calculated, to guarantee that the node has always the required power to operate. One possible alternative for this component is the solar panel GSAP6, which is illustrated in Figure 3.8. It is possible to obtain more information about the solar panel GSAP6 in [51]. Figure 3.8: Solar Panel GSAP6 Solar Charge Controller: Each node must also be equipped with a charge controller, which will be responsible for the connection between the battery and the solar panel. This charge controller prevents the overcharging of the battery and it may protect it against over-voltage. This is very important since these events can reduce the performance and the lifespan of the battery. Besides this, the charge controller can also allow to obtain information regarding the status of the battery, such as its energy level. One possible alternative for this component is the solar charge controller Tracer-1210RN, illustrated in Figure 3.9, which provides a RJ45 connection to obtain information about the status of the battery. It is possible to obtain more information about the solar charge controller Tracer-1210RN in [52]. 28 Proposed System By combining this alternative with a flexible decision mode of operation, we can try to avoid the traffic forwarding through nodes with low energy level. The goal is to do this without ever affecting the connectivity of the network. This is very important since WMSNs requires each node to be able to deliver its own traffic to the appropriate destination. 3.5.2 eTILIA Implementation In order to implement the eTILIA algorithm we took advantage from the TILIA algorithm, described in Section 2.1.3. After a detailed study of the TILIA algorithm, it was necessary to understand which modifications should be done in order to adapt it to the specifications defined in Section 3.5.1. After a thorough analysis it was concluded that the modifications should be done in the parent choice procedure of the TILIA algorithm. By carefully choosing the most appropriate parent it is possible to change the network topology to achieve a better energy efficiency. The idea is making this decision based on the energy levels of the candidate parents. This way it is possible to avoid choosing the nodes with low energy level as parent nodes. By doing the modification at this stage of the TILIA algorithm it is also possible to guarantee the network connectivity, because if the node has only one candidate parent, then that parent is selected independently of its energy level. The energy of the nodes is only taken into consideration if there are multiple candidate parents. To implement this modification it was necessary to understand the python script which implements the TILIA algorithm. After a meticulous analysis of the script it was concluded that the modification should be done in the function recursive_tilia. As referred in Section 2.1.3.2, this function discovers all the nodes which do not have a channel assigned, and selects a parent and a channel to them. To fulfil the specifications of the eTILIA algorithm it was necessary to adapt this function in order to take in consideration the energy of the nodes during the parent choice procedure. In the left column of the Figure 3.13 is exposed a high level description of the original recursive_tilia function of the TILIA algorithm. In the right column of the Figure 3.13 is exposed a high level description of the recursive_tilia function of the eTILIA algorithm, after the modification. The python code of this specific part of the script can be seen in Appendix A. As can be seen in Figure 3.13, the modification was introduced after the eTILIA algorithm select the neighbours with the lowest hop count which operate in one of the best channels. If the modification was introduced before this stage we could overload a certain tree, or originate longer traffic flows paths. If the modification was done after this stage, we would restrict too much the set of possible parents. Thus, we concluded that this was the most appropriate stage to place this modification. With this modification, the recursion procedure of TILIA was removed from eTILIA. Instead of using recursion, the eTILIA algorithm simply chooses the candidate parent with the highest remaining energy. By doing this, the eTILIA algorithm possibly sacrifices an improvement of the network throughput for an improvement in the network lifetime. This decision is acceptable since this algorithm was specified to be used in networks with reduced energy resources, in which the concern about the lifetime of the network is far more important than the concern about the network 3.5 eTILIA 29 Selects all the neighbours of the node in analysis which already have a channel assigned - neighs Selects the neighbours with an inferior hop count to the gateway - neighs Selects the channels of the nodes which belong to neighs - channels Selects the channels which have the inferior load - best_chans From neighs selects the neighbours which are operating in one of the channels from best_chans - ch_neighs From up_neighs selects the neighbours which have the minimum load - up_neihs1 From up_neihs1 selects the neighbours which have less hidden nodes - up_neihs2 Randomly selects one node from up_neihs2 as the parent Multiple nodes in the 1st ring? No Applies recursion Yes TILIA From ch_neighs selects the neighbours which have the minimum hop count - up_neighs Selects all the neighbours of the node in analysis which already have a channel assigned - neighs Selects the neighbours with an inferior hop count to the gateway - neighs Selects the channels of the nodes which belong to neighs - channels Selects the channels which have the inferior load - best_chans From neighs selects the neighbours which are operating in one of the channels from best_chans - ch_neighs From up_neighs selects the neighbour which has higher energy level, as the parent eTILIA From ch_neighs selects the neighbours which have the minimum hop count - up_neighs Figure 3.13: High level description of the function recursive_tilia in both TILIA and eTILIA script throughput. Another positive consequence of removing the recursion procedure is the decrease of the computer complexity required by the algorithm. 30 Proposed System 3.6 Summary In this chapter was exposed the architecture of the system explored in this dissertation. In the first section it was described the addressed scenario and the proposed WMSN. The addressed scenario is related with a a low-cost, solar powered video-surveillance system, based in Wi-Fi, to cover large unconnected areas such as parks or beaches. The idea is to allow the surveillance of these isolated areas, from a remote surveillance centre. Regarding the network topology it was seen that there are regular nodes, responsible for collecting the information, gateways, responsible for forwarding the information to the final destination, and a surveillance centre, which is the final destination of the information. In the second section were detailed the components of the system and presented off-the shelf alternatives. In what concerns the node components it was seen that each node is composed by a processing unit, a Wi-Fi card/antenna, a multimedia sensor, a battery, a solar panel and a solar charge controller. It was also presented a schematic of the connections between the components. In the third section was exposed the protocol stack of the system, based on the TCP/IP model. At the application layer was chosen the H.264 protocol due to its efficient video coding. At the transport layer there are two alternatives: TCP and UDP. If the goal of the system is to save the video information on the surveillance centre, then TCP should be used due to its reliability. If the goal of the system is to provide a live stream to the surveillance centre then UDP should be used. At the internet layer the protocol chosen was IP since it is the most common protocol used at this layer. At the network interface layer it was adopted the IEEE 802.11s protocol to be able to deploy a mesh network. In the fourth section it was described the network operation which consists in six steps: topology discovering, channel assignment decision, decision propagation, channel modification, routing procedure and data transmission. In the fifth section was presented the proposed channel assignment algorithm, eTILIA. First it was exposed the specification of eTILIA, together with the main decisions that were made regarding the algorithm operation. After this, it was presented a high level description of the eTILIA implementation. In this section it was seen that eTILIA avoids to forward traffic through nodes with low energy level, in order to extend the lifetime of the network. Chapter 4 Evaluation and Results In order to evaluate the channel assignment algorithm proposed in this dissertation, eTILIA, a set of simulations were carried out, using the Network Simulator NS-3. This chapter starts by describing, in the first section, the tools and models that were used in the simulations. The second section describes the regular and random network topologies used in the simulations. Then, the third section presents a description of the methodology adopted. Finally, the fourth section exposes the results obtained. 4.1 Network Simulator 3 To test the algorithm proposed in this dissertation we took advantage from computer simulations. This is a very common procedure in the network research area, since it allows to verify and validate new network algorithms without having to deploy a complete test-bed, which could be very costly and time-consuming. By using computer simulation we were able to create networks with the required dimension to evaluate the ETILIA algorithm, without having to worry about the monetary costs of setting up a real network. So, the computer simulations were an important resource to the validation of the algorithm developed. The simulation tool used in this dissertation was the Network Simulator 3 (NS-3), publicly available in [58]. NS-3 is a discrete-event network simulator, implemented in C++, built as a library which can be linked to a C++ main program that defines the topology and the mode of operation of the network to be simulated. NS-3 is an open-source tool which means that everyone can easily access its source code and modify it. This way everyone can add new simulation models to the existent ones. In the simulations performed in this dissertation it was used the version 3.22 of NS-3. To be able to do the desired simulations it was necessary to make some modifications in the source code of NS-3. These modifications are exposed in Appendix B 4.1.1 Simulation Models To simulate the required network it was necessary to use some NS-3 models. In this section are presented and described the required models: Mesh Network Model, Energy Model and Flow 31 32 Evaluation and Results Monitor Model. 4.1.1.1 Mesh Network Model To simulate the desired networks it was used the wireless mesh network model, already existent in NS-3 source code, referred in [59]. This model implements an IEEE 802.11s wireless mesh network and focuses on three important aspects of this standard: Addressing and Forwarding: The addressing of the mesh stations is done using a 48-bit MAC address. The forwarding of the frames is made based on a 6-address scheme. Peering Management: The peering management protocol is used to open, maintain and close links with neighbours mesh stations. In order to do this, each station regularly transmit a small one-hop management frame, known as a beacon. This is very important since a mesh station is not allowed to exchange data frames with other mesh stations before a link is established between them being. Routing Protocol: The routing protocol is necessary to discover multi-hop paths in the network. One of the supported routing protocols is the HWMP protocol. This protocol allows two distinct modes of operation: on demand routing or proactive routing. With on demand routing the path is built by exchanging messages (PREQ: Path Request, PREP: Path Reply) between the source node and the destination node. With proactive routing the path is established using an intermediate node, which knows the path to every node in the network. These two modes of operation can be executed simultaneously 4.1.1.2 Energy Model To simulate the energetic behaviour of the network it was used the tool exposed in [60]. This energy tool is an energy framework which is mainly composed by two parts: the energy source model and the energy consumption model. The energy source model represents the power supply of the nodes, and the energy consumption model captures how the the energy is consumed by the nodes. The energy source model allows to simulate both linear and non-linear battery models. The linear battery model is easier to configure and set up, but gives less accurate results comparing to the non-linear battery model, since it does not takes into account some non-linear effects that greatly affect the battery lifetime, such as Rate Capacity Effect and Recovery Effect defined in [61]. The non-linear model allows to take this factors into consideration, and it also enables to model the discharge curves of specific batteries. The energy consumption model focuses on modelling the energy consumption of the radio, since this it is the component which contributes the most to the energy depletion of the nodes. This model allows to specify the energy wasted by the radio in the different operating states, being the energy consumption calculated by multiplying the power wasted in each state by the time 4.2 Topologies 33 spent in that same state. However, this is not a very accurate solution, since it does not take into consideration the energy wasted by other node components, such as sensors or processors. This energy framework is based on the assumptions that a node can be powered by a single energy source or by multiple energy sources, that the energy sources supply power at a constant voltage and that the operation of all devices of the node is state-based and that each one of this state has a specific load current value associated with it. In this dissertation we chose to use the linear energy source model, because this model represents a compromise between the required computational power for the simulation, and the accuracy of the simulation results. This energy framework allowed us to test the energy efficiency of the E-TILIA algorithm. 4.1.1.3 Flow Monitor Model To keep track of all the packets of the simulation it was used the flow monitor tool provided by NS- 3, and described in [62]. With this model, a flow is characterized by its source/destination address, source/destination port and protocol, and each flow is independently monitored. Using this tool it is possible to determine the time of the first and last transmitted or received packet, the delay sum of all received packets or even the amount of transmitted, received, lost and dropped packets for a certain flow. In these simulations we focused on analysing the number of transmitted/lost packets and the delay characteristics of each topology. This was really important to guarantee that the WMSNs simulated were capable of deliver most of the traffic to the appropriate gateways. 4.2 Topologies The algorithm that was developed in this dissertation was tested with both regular and random topologies. These topologies are described in the next two sub-sections. 4.2.1 Regular Topologies The first tests of the eTILIA algorithm were done in a grid topology. The simulations were performed in a 3x3, 4x4 and 5x5 grid topology, and each topology was tested with 2, 3 and 4 gateways/communication channels. The gateways were always positioned in the corners of the grid, and the horizontal and vertical distance between consecutive nodes was of 100 meters. In Appendix Cis exposed the graphical representation of all the regular topologies simulated, before and after the first eTILIA channel assignment procedure. In the images on the left, the red circles represent the gateways and the black squares represent the ordinary nodes. The numbers identify the node, and the lines between the nodes represent link layer connectivity. In the images on the right, the nodes with the same colour have the same communication channel, and the lines with an arrow allow to visualize the trees constructed by the eTILIA algorithm. The nodes with the same colour connected by a line without an arrow can also establish communication. 34 Evaluation and Results These regular topologies allowed to test intermediate versions of the eTILIA algorithm. However, the simulation results obtained with these topologies are not exposed in this dissertation, since regular topologies do not correspond to real world scenarios. 4.2.2 Random Topologies To test the eTILIA algorithm with random topologies, it was necessary to develop a random topology generator. Thus, it was created a C++ algorithm capable of generating random topologies with appropriate characteristics. The procedure adopted is now described: 1: At the beginning of the procedure it is necessary to specify the number of nodes to generate and the number of gateways of the network. 2: After this it is defined a maximum value for the random coordinates of the nodes, taking into consideration the number of the nodes of the network. This is necessary in order to generate connected graphs. The maximum value is defined according to the formula pNumberO f Nodes ∗π∗(Range/3)2, where the term Range is the approximate transmission range of the nodes. The logic of this formula is the following: if all the nodes were placed in a regular topology the coverage area was given by NumberO f Nodes∗π∗(Range)2. This would mean that in a square are the measure of each axis would have to be equal to pNumberO f Nodes ∗π∗(Range)2, to result in a total area of NumberO f Nodes ∗π∗ (Range)2. Finally the Range it is divided by a factor of three to guarantee a connected graph. 3: Taking into consideration the maximum value defined are randomly generated the coordinates of each node. The position of each node it is only valid if there is no neighbours at a distance lower than a certain imposed limit. If this requisite is not fulfilled a new random position is generated. The first nodes are elected as the gateways of the network. 4: Then it is created a short NS-3 simulation with the goal of discovering the neighbours of each node. In this simulation each node sends a traffic flow to all the other nodes. The packets of this flow are configured to have a Time-To-Live equal to 1 which means that they only can reach the nodes which are one hop away from the source. The nodes that receive more than 75% of the packets of a certain traffic flow are considered neighbours of the node which originated that flow. 5: After getting the information about the neighbours of each node, the topology is evaluated to see if there is no isolated nodes. If there are no isolated nodes, the topology is accepted. Otherwise, the topology is discarded and a new one is created. The flowchart of the algorithm above explained is exposed in Figure 4.1. With this random topology generator it was possible to create appropriate topologies to test eTILIA. In Figure 4.2 it is exposed an example of a random topology, composed by 16 nodes and 2 gateways, generated 4.2 Topologies 35 by this algorithm. The gateways are represented as red circles and the lines between the nodes mean that they are close enough to communicate directly. In Appendix Dis exposed the graphical representation of all the random topologies simulated, before and after the first eTILIA channel assignment procedure. In the images on the left, the red circles represent the gateways and the black squares represent the ordinary nodes. The numbers identify the node, and the lines between the nodes represent link layer connectivity. In the images on the right, the nodes with the same colour have the same communication channel, and the lines with an arrow allow to visualize the trees constructed by the eTILIA algorithm. The nodes with the same colour connected by a line without an arrow can also establish communication. Definition of the maximum value for the random coordinates Generation of the random positions Topology Generated Yes NS-3 Simulation Input: Number of Nodes Number of Gateways Isolated Nodes? No Figure 4.1: Flowchart of the algorithm for the random topology generation 36 Evaluation and Results 0 2 3 4 5 6 13 1 7 8 14 10 11 12 15 9 Figure 4.2: Random topology with 16 nodes and 2 gateways 4.3 Simulation Methodology To evaluate the eTILIA algorithm were carried out a set of simulations, using NS-3. As referred above, these simulations were only performed with random topologies, since these random topologies have a higher correspondence with real world scenarios. It were used two types of topologies: topologies of 16 nodes and 2 gateways, and topologies of 36 nodes and 2 gateways. The algorithm was tested with 20 topologies of 16 nodes and with 20 topologies of 36 nodes. The graphical representations of the random topologies simulated are exposed in Appendix D. Each topology was simulated 5 times in order to obtain statistically relevant results. To guarantee that the results obtained from each simulation were independent we used the sub-stream capability provided by NS-3, instead of using a different seed for each simulation. We used this strategy because by using a different seed for each simulation it is not possible to guarantee that the streams produced by each seed will not overlap. By using the sub-stream feature, the seed is the same for each simulation, but the sub-stream of the random number generator is distinct, guaranteeing statistically independent simulations. This strategy allows for a maximum of 2.3x105independent replications, which is more than enough taking into account the number of simulations that were performed. The procedure adopted in the simulations was the following: 1: The topology to be simulated is created and configured. Each node starts with an energy level of 1000 Joules. 2: Before any node starts sending its traffic, the eTILIA channel assignment algorithm is executed in order to assign an appropriate channel to each node. 4.4 Simulation Results 37 3: After the first channel assignment procedure each node was configured to send a traffic flow, with a constant bit-rate of 100kbps, to a certain gateway. This traffic flow runs for 100 seconds. 4: Then, after these 100 seconds, the eTILIA channel assignment algorithm is executed again, and the channels of the nodes are modified accordingly. This allows the adaptation of the eTILIA algorithm to changes in the energy levels of the network. This step is repeated every 100 seconds, until the network fails. This occurs when all the nodes one hop away from the gateways, lose their energy, as stated in Section 2.2.3. In Table 4.1 are presented some of the parameters used on the simulations. The parameters that are not referred were configured with the default value assigned by NS-3. Parameter Value Wi-Fi physical standard 802.11a Data mode OFDM 6Mbps Control mode OFDM 6Mbps Packet size 1200 bytes RTS/CTS mechanism Yes Minimum packet size required to use RTS/CTS mechanism 1200 bytes Traffic rate 100kbps Transport protocol UDP Routing protocol Static routing based on eTILIA information Maximum number of packets retained while waiting for ARP reply 1000 packets Maximum number of packets retained in wifi output queue 10000 packets Initial energy of the nodes 1000 Joules Mobility Mode Constant Position Mobility Model Table 4.1: Simulation parameters 4.4 Simulation Results In this section are presented the results obtained with the simulations described in Section 4.3. 4.4.1 Simulation Metrics The metrics used to evaluate eTILIA were the following: Network Lifetime: Time interval between the start of the network operation and the moment of its failure. As described in Section 2.2.3, it is considered that the network fails when all the nodes which have the gateway in their transmission range, become inactive. 44 Evaluation and Results 0 200 400 600 800 1000 1200 1400 1600 1800 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Network Failure Time (s) Topology Index eTILIA TILIA Random Network lifetime 0 200 400 600 800 1000 1200 1400 1600 1800 2000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Mean Node Lifetime (s) Topology Index eTILIA TILIA Random Mean node lifetime 0,00% 10,00% 20,00% 30,00% 40,00% 50,00% 60,00% 0,00 5,00 10,00 15,00 20,00 25,00 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Number of alive nodes Topology ID eTILIA TILIA Random Number of alive nodes Figure 4.7: Simulation results with random topologies of 36 nodes (network lifetime, mean node lifetime, number of alive nodes). Absolute values. 4.4 Simulation Results 45 0 10 20 30 40 50 60 70 80 90 100 12345678910 11 12 13 14 15 16 17 18 19 20 Received Packets (%) Topology Index eTILIA TILIA Random -20% -15% -10% -5% 0% 5% 10% 15% 20% 25% 30% 12345678910 11 12 13 14 15 16 17 18 19 20 Gain of eTILIA (Received Packets) Gain of eTILIA over TILIA Gain of eTILIA over Random (a1) (a2) 0 10 20 30 40 50 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Packet Loss (%) Topology Index eTILIA TILIA Random -80% -60% -40% -20% 0% 20% 40% 60% 80% 12345678910 11 12 13 14 15 16 17 18 19 20 Gain of eTILIA (Packet Loss) Gain of eTILIA over TILIA Gain of eTILIA over Random (b1) (b2) 0,00 0,10 0,20 0,30 0,40 0,50 0,60 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Delay (s) Topology Index eTILIA TILIA Random -250% -200% -150% -100% -50% 0% 50% 100% 150% 12345678910 11 12 13 14 15 16 17 18 19 20 Gain of eTILIA (Delay) Gain of eTILIA over TILIA Gain of eTILIA over Random (c1) (c2) Figure 4.8: Simulation results with random topologies of 36 nodes (received packets, lost packets, delay, gain average) 46 Evaluation and Results -0,06% 0,30% 104,12% -2,03% -113,34% -7,50% -1,18% 1,47% 95,77% 2,31% -6,17% 1,88% -150% -100% -50% 0% 50% 100% 150% Network Failure Time Mean Node Lifetime Alive Nodes Received Packets Packet Loss Delay Gain of eTILIA over TILIA Gain of eTILIA over Random Random Topologies of 16 nodes 0,64% 1,20% -5,65% -3,93% -16,44% -20,85% -1,99% 0,71% 111,45% 6,59% 16,89% 48,24% -40% -20% 0% 20% 40% 60% 80% 100% 120% Network Failure Time Mean Node Lifetime Alive Nodes Received Packets Packet Loss Delay Gain of eTILIA over TILIA Gain of eTILIA over Random Random Topologies of 36 nodes Figure 4.9: Average Gains 4.5 Summary 47 4.5 Summary In this chapter were presented the tools and methodology adopted to evaluate eTILIA algorithm, and were exposed the results obtained. In the first section was described the NS-3 simulation tool. Besides this description, it were also presented and described the main models that were used, namely the mesh network model, the energy model and flow monitor model. The mesh network model implements an IEEE 802.11s wireless mesh network and focuses on three important aspects of this standard: adressing and forwarding, peering management and routing protocol. The energy model allows to simulate the energetic behaviour of the network and is composed by two parts: the energy source model and the energy consumption model. The energy source models represent the power supply of the network nodes, and the energy consumption model captures how the the energy is consumed by the nodes. The flow monitor model allow to keep track of all the packets of the simulation. With this mechanism a flow is characterized by its source/destination address, source/destination port and protocol, and each flow is independently monitored. In the second section were described the regular and random topologies used in the simulations, and was exposed the algorithm created to generate the random topologies. In the third section was described the methodology adopted in the simulations. The algorithm was tested with 20 random topologies of 16 nodes and with 20 random topologies of 36 nodes. Each simulation started by the creation and configuration of the topology. After this the eTILIA channel assignment algorithm was executed in order to assign an appropriate channel to each node. Then each node of the simulation was configured to send a traffic flow, with a constant bit-rate of 100kbps, to a certain gateway, during a time interval of 100 seconds. After these 100 seconds, the eTILIA channel assignment algorithm was executed again, and the channels of the nodes were modified accordingly. This step was repeated every 100 seconds, until the network fail. In the fourth section were exposed and explained the results obtained. The main metrics evaluated were the network lifetime, the mean node lifetime, the number of alive nodes at the moment of the network failure, the percentage of packets received, the percentage of packets lost and the mean packet delay. The results of the topologies of 16 nodes and of the topologies of 36 nodes were separately aggregated. The main conclusion taken from these results is that eTILIA can improve the management of the energy resources of random topologies of 16 nodes, and can slightly improve the management of the energy resources of random topologies of 36 nodes. 48 Evaluation and Results Chapter 5 Conclusion and Future Work This dissertation presents a networking solution to increase the capacity and the lifetime of CSMA based WMSNs. From the analysis of the state of the art solutions, regarding these topics, it was possible to see the different existent approaches to achieve these goals. The strategy followed in this dissertation to surpass these problems, was the adoption of a multiple communication channel scheme. This strategy allowed to increase the capacity of the network, by reducing its interference levels, and it also allowed to extend the network lifetime, by using the channel assignment algorithm proposed in this dissertation, eTILIA. eTILIA is a dynamic, centralized and energy-aware channel assignment algorithm, based in the TILIA algorithm described in [2], which makes the channel assignment decision based on the energy levels of the nodes, trying to avoid the traffic forwarding through nodes with low energy level. Besides eTILIA, this dissertation also proposed an architecture for a low-cost, solar powered video-surveillance systems, based in Wi-Fi, to cover large unconnected areas such as parks or beaches. This proposal was based on the WMSN concept, and covered the physical components, the protocol stack and the mode of operation of the network. The evaluation of the algorithm was made through computer simulation, using the NS-3 tool. This approach allowed to verify and validate the eTILIA algorithm, without the deployment of a complete test-bed, which would be very costly and time-consuming. The evaluation showed that eTILIA can provide a more efficient management of the energy resources of the network, in random topologies of 16 nodes, when compared to TILIA channel assignment algorithm and to a random channel assignment procedure. The evaluation also showed that eTILIA can slightly increase the network lifetime of random topologies of 36 nodes, when compared to TILIA channel assignment algorithm, and can provide a more efficient management of the energy resources of the network in random topologies of 36 nodes, when compared to a random channel assignment procedure. 49 50 Conclusion and Future Work 5.1 Future Work The first thing to do to improve this work would be to test eTILIA with a more significant number of topologies and traffic rates. This would allow to identify the characteristics of the topologies in which eTILIA could bring advantages. This would also allow to compare the topologies which present the best and the worst results, and understand what they have in common. The number of topologies simulated in this work was reduced. It were only simulated 40 topologies using a single traffic rate. The reason for this was the large time that each simulation required. Due to this the results obtained in this work are limited. Test eTILIA in a real world test-bed would also improve this work. As it is common knowledge, computer simulation can provide accurate results, but cannot be compared to real world testing. Computer simulation is based on mathematical models of the real world, and since these models are not perfect, the simulation results obtained can often be different from the results obtained in real world conditions. Thus, the testing of eTILIA in a real world situation would really improve this work. This would require the deployment and configuration of a WMSN. To do this it is possible to take advantage from the architecture described in Chapter 3, to deploy a low-cost, solar powered video-surveillance system. With this system it would be possible to obtain the required data to evaluate the eTILIA algorithm. Then, it could be done a statistical analysis of the data, in order to precisely characterize the behaviour of the eTILIA algorithm. Another improvement to this work would be to upgrade eTILIA. One modification that could be made in the eTILIA algorithm would be to take into consideration, not only the energy level of the nodes, but also the ratio between the energy spent and the energy being harvested at a certain moment. This could bring advantages in terms of energy efficiency. Appendix A eTILIA Python Script This appendix exposes the main modification made in the TILIA python script in order to adapt it to eTILIA. Additional changes were also required to integrate the energy parameter in the eTILIA script, and to adapt the script to the NS-3 simulations. These changes are not here exposed. A.1 TILIA script # S e l e c t s a l l t he nei ghb ou rs of th e node i n a n a l y s i s which a l r ea d y have a chan ne l as si gn ed a = [ n fo r nin G. nodes ( ) i f G. node [ n ] [ " channel " ]!= −1] nei ghs = [ b f or bin G. neighbors ( nid ) i f bin a ] # From the s e t ’ neighs ’ s e l e ct s t he nei ghbours with an i n f e r i o r hop count to the gateway ( upstream neighbours ) hc = G. node [ nid ] [ " hop_count " ] i f hc != −1: nei ghs = [ b f or bin neighs i f G. node [ b ] [ " hop_count " ] <= hc ] # S e l e c t s a l l t he ch ann els of a l l t he u pstream n eig hbo ur s cha nne ls = l i s t (set ( [G. node [ n ] [ " cha nn el " ] fo r nin n eigh s ] ) ) # From th e s et ’ c hann els ’ pr ev io us ly c re at ed s e l e c t s th e chan ne ls which have the minimum load best_chans = min_load_gw (G, channels , nid ) # From th e s et ’ n ei gh s ’ s e l e c t s t he nodes which oper ate in one of the chan nels of the s et ’ b est_ chan s ’ ch_neighs =[ n f or nin neighs i f G. node [ n ] [ " cha nn el " ] in bes t_c han s ] # From th e s et ’ ch_neighs ’ s e l e c t s the ones which have the a minimum hop count hc = min ( [G. node [ n ] [ " hop_count " ] f or nin ch _n ei gh s ] ) up_neighs = [n fo r nin ch_neighs i f G. node [ n ] [ " hop_count " ]== hc ] # From th e s et ’ up_neighs ’ s e l e c t s the ones which have the a minimum load up_neihs1 = min_load_gw (G, up_neighs , nid , [ ] , pa r en t_ ty pe ) # I f at t h i s p oin t t he re i s more than one p ar ent a l t e r n a t i v e i f le n ( up_neihs1 ) > 1: up_neihs2 = min_up_hidden_nodes (G, up_neihs1 , nid , d i r e c t i o n ) else: up_neihs2 = up_neihs1 i f (len ( up_neihs2 ) >1) & ( hc <=1) : list_of_new_graphs = [] for id xparent , par en t in enumerate (up_neihs2) : l is t_o f_ ne w_ gr ap hs . append (G. copy ( ) ) list_of_new_graphs[−1]. name = str( nid )+ a r r + str( pa re nt ) for n , p in zip ( rec_node , r ec_ par ent ) : list_of_new_graphs[−1]. name+= ’ ’+ str( n )+ a r r + str( p ) 51 52 eTILIA Python Script fo r id xparent , p i n enumerate (up_neihs2) : J = l is t_ of _n ew _g ra ph s [ id xpa ren t ] rn = [ n f or nin rec_node] rp = [ n fo r nin rec_parent] i f nid not in rec_node : rn . append ( nid ) rp . append ( p ) nG = newG + i dxp are nt a = [ n fo r nin assigned_no des ] nl = r e c u r s i v e _ t i l i a ( J , nG, d i re ct io n , rn , rp , a ) PossibleG . extend ( nl ) return PossibleG else: as si gn _p ar en t_ to _n od e (G, up_neihs2 [0] , nid , p ar ent _t yp e ) A.2 eTILIA script # S e l e c t s a l l t he nei ghb ou rs of th e node i n a n a l y s i s which a l r ea d y have a chan ne l as si gn ed a = [ n fo r nin G. nodes ( ) i f G. node [ n ] [ " cha nn el " ]!= −1] nei ghs = [ b f or bi n G. neighbors ( nid ) i f bin a ] # From th e s et ’ neighs ’ s e l e c t s the neighbou rs with an i n f e r i o r hop count to th e gateway ( upstream neighbours ) hc = G. node [ nid ] [ " hop_count " ] i f hc != −1: nei ghs = [ b f or bi n neighs i f G. node [ b ] [ " hop_count " ] <= hc ] # S e l e c t s a l l t he ch ann els of a l l t he u pstream n eig hbo ur s cha nne ls = l i s t (set ( [G. node [ n ] [ " cha nn el " ] fo r nin n eigh s ] ) ) # From th e s et ’ c hann els ’ pr ev io us ly c re at ed s e l e c t s th e chan ne ls which have the minimum load best_chans = min_load_gw (G, channels , nid ) # From th e s et ’ n ei gh s ’ s e l e c t s t he nodes which oper ate in one of the chan nels of the s et ’ b est_ chan s ’ ch_neighs =[n fo r nin neighs i f G. node [ n ] [ " channel " ] in bes t_c hans ] # From th e s et ’ ch_neighs ’ s e l e c t s the ones which have the a minimum hop count hc = min ( [G. node [ n ] [ " hop_count " ] f or nin ch _n ei gh s ] ) up_neighs = [n fo r nin ch_neighs i f G. node [ n ] [ " ho p_count " ]== hc ] energyLowHopNeigh=[] k=0 fo r nin up_neighs : energyLowHopNeigh . append ( [ f l o a t (G. node [ n ] [ " energy " ] ) , int( n ) , k ] ) k=k+1 energyLowHopNeigh=sorted(energyLowHopNeigh) i nd ic e Hi gh es t En er gy Pa r en t =energyLowHopNeigh [ len (energyLowHopNeigh) −1][2] # S e l e c t s t he h i g h e st energy c a n di d at e p a re n t a s t he p a re n t node as si gn _p ar en t_ to _n od e (G, up_neighs [ i ndic eH ig he st En er gy Pa re nt ] , nid , par en t_ typ e ) Appendix B NS-3 Source Code Modifications In order to simulate the desired networks it was necessary to modify the source code of NS-3. The modifications focused mainly on the NS-3 Mesh Model, referred in section 4.1.1.1, and on the NS-3 Energy Model, referred in section 4.1.1.2. These modifications are now exposed: Modification 1: In the beginning of the simulation process it was not possible to deploy a functional multi-hop network. After searching the reason for this problem in the appropriate discussion forums it was possible to conclude that the problem was related with the zero processing time of the node’s packets, which led to constant collision. The discussion about this bug can be seen in [63]. To solve this problem we introduce the following modifications in the src/mesh/model/mesh-wifi-interface-mac.cc file: Original Version Modified Version m_edca [ ac]−>Queue ( packet , hdr ) ; double uniformVar = rand ( ) / (RAND_MAX + 1 . 0) ∗(100 −0) + 0; Time delay = MicroSeconds ( uniformVar ) ; Simulator : : Schedule ( delay , &EdcaTxopN : : Queue , m_edca [ ac ] , packet , hdr ) ; Original Version Modified Version i f ( hdr . GetAddr1 ( ) != Mac48Address : : Ge tB ro ad cast ( ) ) { m_edca [AC_VO]−>Queue ( packet , header ) ; } else { m_edca [AC_BK]−>Queue ( packet , header ) ; } i f ( hdr . GetAddr1 ( ) != Mac48Address : : Ge tB ro ad cast ( ) ) { double uniformVar= rand ( ) / (RAND_MAX + 1 . 0) ∗(100 − 0) + 0; Time delay = MicroSeconds ( uniformVar ) ; Simulator : : Schedule ( delay , &EdcaTxopN : : Queue , m_edca [ AC_VO] , packet , header ) ; } else { double uniformVar= rand ( ) / (RAND\_MAX + 1 . 0 ) ∗(100 − 0) + 0; Time delay = MicroSeconds ( uniformVar ) ; Simulator : : Schedule ( delay , &EdcaTxopN : : Queue , m_edca [ AC_BK] , packet , header ) ; } 53 60 Regular Topologies Figure C.7: 25 Nodes, 2 Gateway: Original Topology vs First eTilia Topology Figure C.8: 25 Nodes, 3 Gateway: Original Topology vs First eTilia Topology Regular Topologies 61 Figure C.9: 25 Nodes, 4 Gateway: Original Topology vs First eTilia Topology 62 Regular Topologies Appendix D Random Topologies D.1 16 Nodes Topologies 0 2 3 4 5 6 13 1 7 8 14 10 11 12 15 9 11 10 12 3 5 13 0 2 15 4 7 6 9 14 1 8 Figure D.1: 16 Nodes, 2 Gateways, Topology 1: Original Topology vs First eTilia Topology 0 2 3 4 9 10 11 1 5 8 13 6 15 7 12 14 11 13 1 4 8 5 10 15 0 3 7 2 9 6 12 14 Figure D.2: 16 Nodes, 2 Gateways, Topology 2: Original Topology vs First eTilia Topology 63 64 Random Topologies 0 8 9 11 13 1 4 7 2 3 5 6 10 15 12 14 11 12 14 0 3 8 10 2 5 4 7 6 9 13 15 1 Figure D.3: 16 Nodes, 2 Gateways, Topology 3: Original Topology vs First eTilia Topology 0 2 3 4 1 9 10 5 8 12 15 6 7 13 14 11 11 6 8 10 12 1 3 7 9 5 13 14 4 15 0 2 Figure D.4: 16 Nodes, 2 Gateways, Topology 4: Original Topology vs First eTilia Topology 0 2 4 5 1 3 6 11 13 8 15 7 10 14 9 12 11 13 1 6 3 10 12 14 15 2 5 4 7 9 8 0 Figure D.5: 16 Nodes, 2 Gateways, Topology 5: Original Topology vs First eTilia Topology D.1 16 Nodes Topologies 65 0 1 5 7 9 2 11 13 4 6 3 12 8 10 15 14 11 13 1 2 10 15 14 5 7 9 8 46 12 3 0 Figure D.6: 16 Nodes, 2 Gateways, Topology 6: Original Topology vs First eTilia Topology 0 2 3 5 7 10 1 6 9 11 14 8 12 13 4 15 11 12 14 6 9 15 8 10 13 03 5 4 2 7 1 Figure D.7: 16 Nodes, 2 Gateways, Topology 7: Original Topology vs First eTilia Topology 66 Random Topologies 0 2 3 8 1 4 6 7 15 11 5 9 13 14 12 10 11 14 3 2 9 8 5 10 13 7 6 12 15 4 1 0 Figure D.8: 16 Nodes, 2 Gateways, Topology 8: Original Topology vs First eTilia Topology 0 25 9 1 6 7 14 3 11 12 4 8 10 15 13 11 2 5 8 9 10 4 6 13 12 7 15 14 1 0 3 Figure D.9: 16 Nodes, 2 Gateways, Topology 9: Original Topology vs First eTilia Topology 0 2 4 5 8 10 13 1 3 7 12 9 11 14 6 15 11 12 32 9 1 7 10 15 0 5 4 6 8 13 14 Figure D.10: 16 Nodes, 2 Gateways, Topology 10: Original Topology vs First eTilia Topology D.1 16 Nodes Topologies 67 0 2 3 4 5 7 8 9 10 11 13 1 15 6 12 14 11 13 0 6 9 8 3 4 7 10 12 5 15 2 14 1 Figure D.11: 16 Nodes, 2 Gateways, Topology 11: Original Topology vs First eTilia Topology 0 2 4 9 10 13 1 56 7 11 14 8 12 3 15 11 12 14 1 5 6 8 7 10 13 0 2 9 4 153 Figure D.12: 16 Nodes, 2 Gateways, Topology 12: Original Topology vs First eTilia Topology 0 12 13 4 6 10 11 14 2 5 8 15 7 9 13 11 14 1 6 4 2 5 3 10 8 13 12 7 9 0 15 Figure D.13: 16 Nodes, 2 Gateways, Topology 13: Original Topology vs First eTilia Topology 68 Random Topologies 0 2 4 5 6 7 9 14 1 10 11 13 3 8 12 15 11 10 1 6 13 12 5 3 15 4 7 8 14 0 2 9 Figure D.14: 16 Nodes, 2 Gateways, Topology 14: Original Topology vs First eTilia Topology 0 2 4 7 8 10 11 14 15 1 3 5 12 6 9 13 11 10 0 12 15 2 8 14 13 6 9 1 3 5 4 7 Figure D.15: 16 Nodes, 2 Gateways, Topology 15: Original Topology vs First eTilia Topology 0 9 1 2 7 11 4 5 13 3 6 10 12 14 15 8 11 10 13 1 2 7 12 15 5 14 4 96 8 0 3 Figure D.16: 16 Nodes, 2 Gateways, Topology 16: Original Topology vs First eTilia Topology 0 1 2 3 12 15 6 7 9 5 8 10 11 4 13 14 11 3 8 10 12 15 0 2 13 14 5 4 6 7 9 1 Figure D.17: 16 Nodes, 2 Gateways, Topology 17: Original Topology vs First eTilia Topology D.1 16 Nodes Topologies 69 0 2 12 1 4 7 8 9 10 15 35 6 11 13 14 11 13 14 12 10 1 3 4 9 7 8 5 6 0 2 15 Figure D.18: 16 Nodes, 2 Gateways, Topology 18: Original Topology vs First eTilia Topology 0 7 13 15 1 3 2 6 9 4 8 10 11 12 14 5 11 10 3 5 4 13 15 0 2 7 6 9 8 12 14 1 Figure D.19: 16 Nodes, 2 Gateways, Topology 19: Original Topology vs First eTilia Topology 0 1 2 3 4 7 10 12 14 6 8 9 13 15 5 11 11 7 8 10 12 14 0 2 43 5 13 15 1 9 6 Figure D.20: 16 Nodes, 2 Gateways, Topology 20: Original Topology vs First eTilia Topology 76 Random Topologies 0 1 8 20 24 26 27 10 15 31 33 218 19 3 4 12 23 28 35 17 29 5 9 6 7 14 25 16 13 22 32 11 21 34 30 24 23 28 0 3 5 8 12 35 16 11 4 9 34 25 713 14 30 32 26 27 22 1 10 15 33 19 31 18 20 21 17 29 2 6 Figure D.39: 36 Nodes, 2 Gateways, Topology 19: Original Topology vs First eTilia Topology 0 3 13 14 20 23 24 33 1 2 5 18 32 10 19 6 7 4 8 9 11 15 29 35 26 27 17 21 22 28 34 25 12 16 31 30 24 27 20 23 0 14 6 31 30 33 3 13 16 25 11 10 15 26 5 32 19 21 28 8 35 34 17 22 29 4 9 1 2 18 7 12 Figure D.40: 36 Nodes, 2 Gateways, Topology 20: Original Topology vs First eTilia Topology Appendix E Simulation Results 77 78 Simulation Results Table E.1: Simulation results: eTILIA algorithm, 16 nodes, 2 gateways eTILIA Algorithm Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11567.19 / 0.10 1511.16 / 5.28 0.00 / 0.00 95.83 / 1.24 4.17 / 1.24 0.01 / 0.00 21534.85 / 0.27 1493.22 / 3.50 1.20 / 0.16 95.89 / 0.15 4.11 / 0.15 0.01 / 0.00 31509.18 / 0.40 1468.11 / 1.53 0.20 / 0.16 98.51 / 0.23 1.48 / 0.24 0.02 / 0.00 41489.39 / 1.50 1458.58 / 4.73 5.80 / 0.16 94.98 / 0.34 5.00 / 0.34 0.02 / 0.00 51529.78 / 0.14 1468.43 / 3.36 3.00 / 0.00 98.12 / 0.65 1.87 / 0.66 0.01 / 0.00 61493.79 / 82.07 1455.01 / 17.74 0.60 / 0.64 96.09 / 10.16 3.90 / 10.15 0.02 / 0.00 71500.21 / 4.02 1476.90 / 5.56 2.20 / 0.16 94.40 / 3.09 5.58 / 3.09 0.02 / 0.00 81523.43 / 23.43 1478.60 / 46.08 3.80 / 0.16 93.45 / 10.61 6.53 / 10.50 0.01 / 0.00 91564.83 / 0.03 1469.26 / 0.52 0.00 / 0.00 97.24 / 0.07 2.76 / 0.07 0.02 / 0.00 10 1514.35 / 26.31 1490.93 / 30.70 2.60 / 0.24 92.01 / 4.06 7.97 / 4.00 0.01 / 0.00 11 1511.66 / 0.06 1476.42 / 0.32 2.00 / 0.00 92.66 / 0.01 7.34 / 0.01 0.02 / 0.00 12 1541.50 / 76.07 1515.95 / 23.62 2.20 / 0.56 94.69 / 2.24 5.30 / 2.24 0.01 / 0.00 13 1482.17 / 0.83 1442.16 / 0.78 3.00 / 0.00 97.52 / 0.23 2.48 / 0.23 0.02 / 0.00 14 1541.56 / 7.09 1510.20 / 26.12 2.60 / 0.24 90.07 / 3.22 9.89 / 3.21 0.01 / 0.00 15 1529.22 / 0.01 1493.69 / 1.11 0.00 / 0.00 98.84 / 0.03 1.16 / 0.03 0.01 / 0.00 16 1427.31 / 17.19 1415.19 / 7.01 10.00 / 0.00 95.71 / 0.60 4.26 / 0.57 0.02 / 0.00 17 1532.64 / 38.02 1496.83 / 52.10 0.60 / 0.24 93.62 / 10.57 6.37 / 10.51 0.01 / 0.00 18 1509.40 / 4.48 1475.21 / 15.99 2.20 / 0.16 91.23 / 4.21 8.74 / 4.11 0.02 / 0.00 19 1503.30 / 7.38 1419.61 / 7.14 0.00 / 0.00 90.94 / 1.47 9.06 / 1.47 0.02 / 0.00 20 1544.44 / 35.43 1525.13 / 11.51 1.60 / 0.24 94.20 / 2.59 5.78 / 2.47 0.01 / 0.00 Simulation Results 79 Table E.2: Simulation results: TILIA algorithm, 16 nodes, 2 gateways TILIA Algorithm Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11566.45 / 0.22 1504.34 / 1.49 0.00 / 0.00 96.08 / 0.46 3.92 / 0.46 0.01 / 0.00 21535.13 / 0.16 1491.79 / 1.39 1.20 / 0.16 96.32 / 0.41 3.68 / 0.41 0.01 / 0.00 31509.08 / 0.06 1468.16 / 0.19 0.00 / 0.00 98.74 / 0.04 1.26 / 0.03 0.01 / 0.00 41506.53 / 0.04 1459.20 / 0.17 2.00 / 0.00 94.91 / 0.03 5.08 / 0.03 0.02 / 0.00 51543.12 / 0.02 1484.19 / 0.06 0.00 / 0.00 98.89 / 0.02 1.11 / 0.02 0.01 / 0.00 61510.00 / 0.00 1458.23 / 3.59 0.00 / 0.00 96.91 / 0.57 3.09 / 0.57 0.02 / 0.00 71529.39 / 0.03 1474.06 / 0.29 0.00 / 0.00 98.62 / 0.01 1.38 / 0.01 0.02 / 0.00 81499.20 / 0.08 1456.76 / 1.24 1.00 / 0.00 93.89 / 0.09 6.11 / 0.09 0.02 / 0.00 91564.85 / 0.07 1470.07 / 1.67 0.00 / 0.00 96.83 / 0.26 3.17 / 0.26 0.01 / 0.00 10 1537.44 / 0.00 1481.99 / 0.55 0.00 / 0.00 98.05 / 0.05 1.95 / 0.05 0.01 / 0.00 11 1511.68 / 0.25 1478.83 / 0.13 2.00 / 0.00 92.54 / 0.02 7.46 / 0.02 0.02 / 0.00 12 1549.74 / 0.59 1507.79 / 0.64 2.00 / 0.00 98.74 / 0.22 1.26 / 0.22 0.01 / 0.00 13 1482.57 / 2.47 1445.23 / 2.85 3.40 / 0.24 97.58 / 0.77 2.42 / 0.77 0.02 / 0.00 14 1526.67 / 0.11 1506.18 / 0.26 2.00 / 0.00 98.30 / 0.06 1.70 / 0.06 0.01 / 0.00 15 1533.58 / 0.00 1493.13 / 2.00 0.00 / 0.00 98.69 / 0.15 1.31 / 0.15 0.01 / 0.00 16 1433.70 / 0.85 1416.26 / 0.10 6.80 / 0.56 95.23 / 0.41 4.73 / 0.39 0.02 / 0.00 17 1523.28 / 0.16 1490.05 / 0.24 0.00 / 0.00 98.99 / 0.05 1.01 / 0.05 0.01 / 0.00 18 1492.80 / 4.28 1460.79 / 0.18 2.20 / 0.16 94.66 / 0.07 5.34 / 0.07 0.02 / 0.00 19 1455.57 / 15.47 1394.46 / 5.19 3.80 / 0.16 95.74 / 0.42 4.24 / 0.41 0.02 / 0.00 20 1561.93 / 0.00 1512.90 / 0.81 0.20 / 0.16 95.90 / 0.14 4.09 / 0.12 0.01 / 0.00 80 Simulation Results Table E.3: Simulation results: Random channel assignment procedure, 16 nodes, 2 gateways Random channel assignment procedure Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11527.06 / 53.78 1462.96 / 180.21 0.67 / 0.89 97.76 / 0.12 2.24 / 0.12 0.02 / 0.00 21549.26 / 164.26 1504.19 / 23.46 0.67 / 0.22 96.39 / 11.91 3.61 / 11.91 0.01 / 0.00 31476.73 / 169.00 1440.67 / 48.70 0.67 / 0.22 86.91 / 27.73 13.07 / 27.94 0.02 / 0.00 41528.62 / 72.13 1404.85 / 35.68 2.00 / 2.00 89.92 / 3.65 10.06 / 3.55 0.02 / 0.00 51556.39 / 57.53 1478.64 / 15.06 0.00 / 0.00 88.79 / 8.35 11.20 / 8.30 0.01 / 0.00 61539.36 / 537.78 1460.58 / 102.10 0.00 / 0.00 89.19 / 32.19 10.81 / 32.19 0.01 / 0.00 71545.39 / 43.84 1450.86 / 33.59 1.00 / 0.00 95.88 / 0.69 4.12 / 0.69 0.02 / 0.00 81560.68 / 1.68 1469.28 / 151.23 0.00 / 0.00 98.19 / 0.03 1.81 / 0.03 0.02 / 0.00 91540.06 / 3.30 1422.56 / 76.40 2.00 / 0.00 94.76 / 0.34 5.22 / 0.35 0.02 / 0.00 10 1564.81 / 0.00 1467.50 / 49.42 0.00 / 0.00 93.50 / 1.33 6.50 / 1.33 0.01 / 0.00 11 1563.69 / 0.00 1456.29 / 133.23 1.00 / 0.00 94.60 / 6.29 5.40 / 6.29 0.02 / 0.00 12 1544.09 / 3.33 1502.53 / 56.27 0.00 / 0.00 93.91 / 5.35 6.09 / 5.35 0.01 / 0.00 13 1531.74 / 105.46 1473.31 / 216.85 1.33 / 0.22 94.54 / 8.10 5.46 / 8.10 0.01 / 0.00 14 1544.04 / 170.41 1484.34 / 137.58 0.67 / 0.22 96.78 / 0.14 3.21 / 0.14 0.01 / 0.00 15 1534.30 / 16.06 1461.50 / 362.68 0.00 / 0.00 94.59 / 1.29 5.41 / 1.29 0.01 / 0.00 16 1500.16 / 121.40 1419.96 / 204.54 2.00 / 0.67 91.19 / 8.32 8.81 / 8.32 0.02 / 0.00 17 1531.65 / 53.43 1448.60 / 287.04 0.33 / 0.22 91.84 / 1.80 8.16 / 1.80 0.02 / 0.00 18 1521.16 / 78.76 1458.76 / 22.90 0.67 / 0.22 95.81 / 3.45 4.19 / 3.45 0.02 / 0.00 19 1473.42 / 2.97 1362.25 / 136.05 2.00 / 0.00 84.45 / 19.70 15.55 / 19.70 0.02 / 0.00 20 1584.43 / 29.43 1488.71 / 24.40 0.00 / 0.00 87.63 / 20.58 12.37 / 20.58 0.01 / 0.00 Simulation Results 81 Table E.4: Simulation results: eTILIA algorithm, 36 nodes, 2 gateways eTILIA Algorithm Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11280.64 / 4.98 1241.94 / 1.72 23.25 / 0.19 81.06 / 0.04 18.81 / 0.03 0.09 / 0.00 21441.64 / 5.67 1337.26 / 4.05 4.00 / 0.67 86.51 / 0.13 13.49 / 0.13 0.03 / 0.00 31430.94 / 129.84 1321.89 / 7.15 1.25 / 0.69 81.12 / 0.89 18.87 / 0.88 0.04 / 0.00 41412.85 / 48.42 1312.42 / 16.18 7.50 / 0.25 74.56 / 3.43 25.37 / 3.39 0.05 / 0.00 51448.94 / 0.62 1302.30 / 0.14 2.25 / 0.19 81.98 / 0.07 18.01 / 0.07 0.05 / 0.00 61489.64 / 0.28 1332.46 / 30.37 2.00 / 0.00 74.03 / 0.60 25.97 / 0.60 0.33 / 0.00 71386.84 / 0.36 1271.15 / 14.57 10.33 / 0.89 79.41 / 0.01 20.53 / 0.01 0.04 / 0.00 81460.96 / 27.38 1348.32 / 4.42 0.67 / 0.22 86.13 / 0.07 13.87 / 0.07 0.03 / 0.00 91467.54 / 23.35 1324.59 / 17.70 5.33 / 0.22 67.77 / 1.69 32.15 / 1.62 0.04 / 0.00 10 1370.28 / 36.85 1335.31 / 14.76 14.33 / 1.56 87.97 / 0.55 11.95 / 0.51 0.03 / 0.00 11 1437.58 / 0.52 1337.77 / 1.40 7.00 / 0.00 82.31 / 0.05 17.67 / 0.05 0.04 / 0.00 12 1321.12 / 37.47 1267.20 / 37.15 13.50 / 3.25 81.57 / 0.84 18.33 / 0.85 0.04 / 0.00 13 1390.61 / 4.04 1334.45 / 6.41 11.25 / 2.19 82.80 / 0.61 17.14 / 0.58 0.04 / 0.00 14 1382.43 / 1.69 1313.13 / 3.94 7.25 / 0.19 83.98 / 0.30 15.97 / 0.30 0.04 / 0.00 15 1520.79 / 43.43 1341.03 / 19.35 0.00 / 0.00 65.55 / 1.39 34.45 / 1.39 0.20 / 0.00 16 1495.91 / 2.10 1347.86 / 14.20 2.00 / 0.50 63.05 / 0.20 36.94 / 0.20 0.24 / 0.00 17 1310.81 / 1.33 1269.01 / 1.20 20.00 / 0.00 84.49 / 0.04 15.45 / 0.03 0.05 / 0.00 18 1469.36 / 24.54 1329.85 / 5.20 3.00 / 0.00 65.82 / 0.36 34.17 / 0.35 0.26 / 0.00 19 1446.43 / 73.30 1354.26 / 32.14 7.50 / 0.75 76.50 / 0.56 23.46 / 0.55 0.03 / 0.00 20 1386.21 / 0.56 1316.14 / 19.09 8.00 / 0.00 86.13 / 0.59 13.80 / 0.61 0.03 / 0.00 82 Simulation Results Table E.5: Simulation results: TILIA algorithm, 36 nodes, 2 gateways TILIA Algorithm Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11306.55 / 1.15 1251.53 / 0.67 23.00 / 0.00 82.75 / 0.08 17.15 / 0.07 0.04 / 0.00 21435.92 / 1.27 1334.79 / 4.70 3.00 / 0.00 86.45 / 0.42 13.54 / 0.43 0.03 / 0.00 31448.49 / 1.39 1324.42 / 38.02 2.00 / 0.00 84.57 / 1.00 15.43 / 1.00 0.04 / 0.00 41375.18 / 6.20 1283.53 / 11.54 8.00 / 0.00 84.83 / 0.53 15.15 / 0.54 0.04 / 0.00 51448.93 / 5.49 1296.05 / 4.01 2.75 / 0.69 82.22 / 0.34 17.78 / 0.34 0.05 / 0.00 61489.94 / 0.67 1325.39 / 2.12 2.33 / 0.22 75.79 / 0.33 24.19 / 0.32 0.15 / 0.00 71334.70 / 6.57 1239.19 / 19.89 9.33 / 0.22 83.52 / 0.67 16.42 / 0.65 0.05 / 0.00 81416.03 / 1.31 1321.55 / 2.59 6.00 / 0.00 87.72 / 0.33 12.27 / 0.33 0.04 / 0.00 91460.15 / 2.12 1276.98 / 56.41 5.33 / 0.22 78.35 / 2.05 21.64 / 2.05 0.05 / 0.00 10 1383.26 / 4.24 1324.49 / 0.08 12.00 / 0.00 83.51 / 0.06 16.43 / 0.07 0.03 / 0.00 11 1427.02 / 24.78 1324.25 / 8.21 5.33 / 0.22 82.86 / 0.29 17.13 / 0.28 0.04 / 0.00 12 1302.51 / 0.84 1244.52 / 1.60 14.00 / 0.00 85.51 / 0.07 14.45 / 0.07 0.05 / 0.00 13 1400.76 / 20.73 1343.75 / 0.05 9.00 / 0.00 84.42 / 0.25 15.53 / 0.25 0.04 / 0.00 14 1394.09 / 14.54 1311.94 / 2.99 4.00 / 0.00 85.00 / 0.17 14.98 / 0.16 0.04 / 0.00 15 1469.13 / 2.98 1284.05 / 10.84 2.25 / 0.19 78.43 / 0.03 21.56 / 0.03 0.06 / 0.00 16 1480.69 / 45.74 1313.23 / 21.81 3.50 / 0.25 69.02 / 0.51 30.97 / 0.50 0.28 / 0.00 17 1323.49 / 1.45 1278.54 / 7.64 19.75 / 0.19 82.19 / 0.04 17.73 / 0.04 0.05 / 0.00 18 1471.38 / 19.10 1317.94 / 50.91 4.25 / 1.19 68.79 / 0.23 31.20 / 0.23 0.34 / 0.00 19 1426.32 / 7.52 1322.84 / 3.45 5.75 / 0.19 83.27 / 0.33 16.71 / 0.32 0.03 / 0.00 20 1376.27 / 15.98 1310.57 / 9.00 8.50 / 0.25 85.99 / 0.42 13.97 / 0.40 0.03 / 0.00 Simulation Results 83 Table E.6: Simulation results: Random channel assignment procedure, 36 nodes, 2 gateways Random channel assignment procedure Topology ID Network Failure Time (s) (u/v) Mean Node Lifetime (s) (u/v) Alive Nodes (u/v) Packets Received (%) (u/v) Packets Lost (%) (u/v) Mean Packet Delay (s) (u/v) 11483.17 / 17.31 1333.81 / 28.69 3.00 / 0.67 73.56 / 9.67 26.53 / 10.41 0.31 / 0.02 21531.87 / 407.07 1345.92 / 34.58 3.00 / 2.00 75.59 / 2.50 24.39 / 2.50 0.08 / 0.00 31523.23 / 261.21 1349.03 / 102.37 0.00 / 0.00 71.41 / 36.52 28.59 / 36.51 0.10 / 0.00 41426.82 / 71.25 1300.21 / 52.77 4.33 / 0.22 78.75 / 26.47 21.21 / 26.57 0.22 / 0.02 51551.44 / 12.83 1341.02 / 60.96 0.00 / 0.00 69.20 / 1.32 30.80 / 1.32 0.38 / 0.02 61532.23 / 34.05 1326.09 / 66.77 2.33 / 0.89 67.40 / 8.15 32.59 / 8.10 0.42 / 0.01 71424.99 / 9.86 1298.27 / 15.54 6.00 / 0.67 77.41 / 0.65 22.53 / 0.66 0.23 / 0.02 81434.56 / 324.37 1299.65 / 72.92 3.67 / 0.89 68.79 / 46.95 31.18 / 47.17 0.18 / 0.00 91522.60 / 30.82 1302.93 / 79.64 0.67 / 0.22 60.69 / 8.67 39.30 / 8.73 0.41 / 0.07 10 1417.28 / 129.73 1327.09 / 81.05 5.33 / 0.22 81.07 / 5.41 18.90 / 5.44 0.08 / 0.00 11 1425.45 / 227.73 1280.62 / 282.60 3.67 / 1.56 71.59 / 23.87 28.37 / 23.64 0.33 / 0.06 12 1373.76 / 2749.97 1267.04 / 834.93 8.67 / 20.22 74.63 / 20.75 25.27 / 20.84 0.11 / 0.00 13 1398.56 / 44.25 1333.70 / 212.37 9.33 / 0.89 85.82 / 2.81 14.14 / 2.77 0.04 / 0.00 14 1398.88 / 570.92 1294.89 / 68.33 5.33 / 1.56 76.11 / 1.04 23.86 / 1.08 0.06 / 0.00 15 1425.29 / 204.01 1269.69 / 8.96 6.00 / 4.67 71.30 / 1.79 28.64 / 1.74 0.25 / 0.01 16 1435.63 / 184.89 1288.18 / 22.32 5.67 / 0.89 72.69 / 0.47 27.28 / 0.50 0.44 / 0.06 17 1333.21 / 93.15 1270.59 / 41.78 14.00 / 12.67 78.94 / 6.06 20.98 / 6.31 0.20 / 0.02 18 1440.62 / 238.55 1322.12 / 190.46 5.33 / 6.89 74.50 / 23.04 25.48 / 23.10 0.08 / 0.00 19 1474.92 / 203.75 1319.07 / 48.00 1.67 / 0.22 71.60 / 1.15 28.38 / 1.13 0.52 / 0.01 20 1393.85 / 67.40 1290.96 / 52.39 8.67 / 0.22 77.87 / 2.55 22.09 / 2.55 0.29 / 0.02 84 Simulation Results References [1] Ian F Akyildiz, Tommaso Melodia, and Kaushik R Chowdhury. A survey on wireless multimedia sensor networks. Computer networks, 51(4):921–960, 2007. [2] Tânia Cláudia dos Santos Pinto Calçada. Topology Aware Channel Assignment in Singleradio Stub Wireless Mesh Networks. PhD thesis, Universidade do Porto, 2012. [3] Ian F Akyildiz, Xudong Wang, and Weilin Wang. Wireless mesh networks: a survey. Computer networks, 47(4):445–487, 2005. [4] Anand Prabhu Subramanian, Milind M Buddhikot, and Scott Miller. Interference aware routing in multi-radio wireless mesh networks. In Wireless Mesh Networks, 2006. WiMesh 2006. 2nd IEEE Workshop on, pages 55–63. IEEE, 2006. [5] Jian Tang, Guoliang Xue, and Weiyi Zhang. Interference-aware topology control and qos routing in multi-channel wireless mesh networks. In Proceedings of the 6th ACM international symposium on Mobile ad hoc networking and computing, pages 68–77. ACM, 2005. [6] Bin Ni, Naveen Santhapuri, Zifei Zhong, and Srihari Nelakuditi. Routing with opportunistically coded exchanges in wireless mesh networks. In Wireless Mesh Networks, 2006. WiMesh 2006. 2nd IEEE Workshop on, pages 157–159. IEEE, 2006. [7] Luigi Iannone, Ramin Khalili, Kave Salamatian, and Serge Fdida. Cross-layer routing in wireless mesh networks. In Wireless Communication Systems, 2004, 1st International Symposium on, pages 319–323. IEEE, 2004. [8] Devu Manikantan Shila, Yu Cheng, and Tricha Anjali. Capacity of cooperative wireless networks using multiple channels. In Communications (ICC), 2010 IEEE International Conference on, pages 1–5. IEEE, 2010. [9] Hong-Ning Dai, Kam-Wing Ng, RC-W Wong, and Min-You Wu+. On the capacity of multichannel wireless networks using directional antennas. In INFOCOM 2008. The 27th Conference on Computer Communications. IEEE. IEEE, 2008. [10] Krishna N Ramachandran, Elizabeth M Belding-Royer, Kevin C Almeroth, and Milind M Buddhikot. Interference-aware channel assignment in multi-radio wireless mesh networks. In INFOCOM, volume 6, pages 1–12, 2006. [11] Murali Kodialam and Thyaga Nandagopal. Characterizing the capacity region in multi-radio multi-channel wireless mesh networks. In Proceedings of the 11th annual international conference on Mobile computing and networking, pages 73–87. ACM, 2005. 85