scieee AI-readable full text Open interactive document viewer

Opportunistic routing in wireless mesh networks

Darehshoorzadeh, Amir

Abstract

Advances in communication and networking technologies are rapidly making ubiquitous network connectivity a reality. In recent years, Wireless Mesh Networks (WMNs) have already become very popular and been receiving an increasing amount of attention by the research community. Basically, a WMN consists of simple mesh routers and mesh clients, where mesh routers form the backbone of WMN. Due to the limited transmission range of the radio, many pairs of nodes in WMN may not be able to communicate directly, hence they need other intermediate nodes to forward packets for them. Routing in such networks is an important issue and it poses great challenges. Opportunistic Routing (OR) has been investigated in recent years as a way to increase the performance of WMNs by exploiting its broadcast nature. In OR, in contrast to traditional routing, instead of pre-selecting a single specic node to be the next-hop as a forwarder for a packet, an ordered set of nodes (referred to as candidates) is selected as the potential next-hop forwarders. Thus, the source can use multiple potential paths to deliver the packets to the destination. More specically, when the current node transmits a packet, all the candidates that successfully receive it will coordinate with each other to determine which one will actually forward it, while the others will simply discard the packet. This dissertation studies the properties, performance, maximum gain, candidate selection algorithms and multicast delivery issues about Opportunistic Routing in WMNs. Firstly, we focus on the performance analysis of OR by proposing a Discrete Time Markov Chain (DTMC). This model can be used to evaluate OR in terms of expected number of transmissions from the source to the destination. Secondly, we apply our Markov model to compare relevant candidate selection algorithms that have been proposed in the literature. They range from non-optimum, but simple, to optimum, but with a high computational cost. Thirdly, the set of candidates which a node uses and priority order of them have a signicant impact on the performance of OR. Therefore, using a good metric and algorithm to select and order the candidates are key factors in designing an OR protocol. As the next contribution we propose a new metric that measures the expected distance progress of sending a packet using a set of candidates. Based on this metric we propose a candidate selection algorithm which its performance is very close to the optimum algorithm although our algorithm runs much faster. Fourthly, we have investigated the maximum gain that can be obtained using OR. We have obtained some equations that yield the distances of the candidates in OR such that the per transmission progress towards the destination is maximized. Based on these equations we have proposed a novel candidate selection algorithm. Our new algorithm only needs the geographical location of nodes. The performance of our proposal is very close to the optimum candidate selection algorithm although our algorithm runs much faster. Finally, using OR to support multicast is an other issue that we have investigated in this thesis. We do so by proposing a new multicast protocol which uses OR. Unlike traditional multicast protocols, there is no designated next-hop forwarder for each destination in our protocol, thus the delivery ratio is maximized by taking advantage of spatial diversity.

Full text

Opportunistic Routing in Wireless Mesh Networks U P C Amir Darehshoorzadeh Department of Computer Architecture Universitat Polit`ecnica de Catalunya Advisor: Dr. Lloren¸c Cerd`a i Alabern A thesis submitted for the degree of Doctor of Philosophy Abstract Advances in communication and networking technologies are rapidly making ubiquitous network connectivity a reality. In recent years, Wireless Mesh Networks (WMNs) have already become very popular and been receiving an increasing amount of attention by the research community. Due to the limited transmission range of the radio, many pairs of nodes in WMN may not be able to communicate directly, hence they need other intermediate nodes to forward packets for them. Routing in such networks is an important issue and it poses great challenges. Opportunistic Routing (OR) has been investigated in recent years as a way to increase the performance of WMNs by exploiting its broadcast nature. In OR, in contrast to traditional routing, instead of pre-selecting a single specific node to be the next-hop as a forwarder for a packet, an ordered set of nodes (referred to as candidates) is selected as the potential next-hop forwarders. Thus, the source can use multiple potential paths to deliver the packets to the destination. More specifically, when the current node transmits a packet, all the candidates that successfully receive it will coordinate with each other to determine which one will actually forward it, while the others will simply discard the packet. This dissertation studies the properties, performance, maximum gain, candidate selection algorithms and multicast delivery issues about Opportunistic Routing in WMNs. Firstly, we focus on the performance analysis of OR by proposing a Discrete Time Markov Chain (DTMC). It can be used to evaluate OR mechanisms in wireless networks in terms of expected number of transmissions from the source to the destination. The only ingredients needed to build the transition probability matrix are the candidates of each node, and the delivery probabilities to reach them. We compare different scenarios in terms of the expected value and variance of the number of transmissions needed to send a packet from the source to the destination. Secondly, we apply our Markov model to compare four relevant candidate selection algorithms that have been proposed in the literature. They ii range from non-optimum, but simple, to optimum, but with a high computational cost. However, increasing the number of candidates increases also the coordination overhead. Therefore, in practice, the maximum number of candidates that can be used is limited. This fact has been often neglected in candidate selection algorithms that have been proposed in the literature. Since we believe that this will be a practical constraint, we do consider it in our analysis. To do so, we propose some modifications to the candidate selection algorithms under study that allow limiting the maximum number of candidates. Thirdly, the set of candidates which a node uses and priority order of them have a significant impact on the performance of OR. Therefore, using a good metric and algorithm to select and order the candidates are key factors in designing an OR protocol. As the next contribution we propose a new metric that measures the expected distance progress of sending a packet using a set of candidates. Based on this metric we propose a candidate selection algorithm which its performance is very close to the optimum algorithm although our algorithm runs much faster. Fourthly, in an other contribution we investigate the maximum gain that can be obtained using OR. We obtain some equations that yield the distances of the candidates in OR such that the per transmission progress towards the destination is maximized. Based on these equations we propose a novel candidate selection algorithm. Our new algorithm only needs the geographical location of nodes. The performance of our proposal is very close to the optimum candidate selection algorithm although our algorithm runs much faster. Finally, using OR to support multicast is an other topic that we investigate in this thesis. We do so by proposing a new multicast protocol which uses OR. Unlike traditional multicast protocols, there is no designated nexthop forwarder for each destination in our protocol, thus the delivery ratio is maximized by taking advantage of spatial diversity. We compare our protocol with two well known protocols: ODMRP multicast mesh protocol and ADMR multicast tree protocol. The simulations results show that our protocol outperforms traditional ODMRP and ADMR multicast protocols, reducing the number of data transmissions and increasing the data delivery ratio. Contents List of Figures v List of Tables x Acknowledgments xiii 1. Introduction 1 1.1. Dissertation Overview . . . . . . . . . . . . . . . . . . . . . . 4 1.2. Thesis Contributions . . . . . . . . . . . . . . . . . . . . . . . 5 2. Background and Related Work 9 2.1. Introduction............................ 9 2.2. Issues in Opportunistic Routing . . . . . . . . . . . . . . . . . 9 2.2.1. Research Directions in Opportunistic Routing . . . . . 10 2.3. RoutingMetrics ......................... 12 2.4. Candidate Coordination Methods . . . . . . . . . . . . . . . . 13 2.4.1. Acknowledgment-Based Coordination . . . . . . . . . 13 2.4.2. Timer-Based Coordination . . . . . . . . . . . . . . . 15 2.4.3. Network Coding Coordination . . . . . . . . . . . . . 15 2.4.4. RTS-CTS Coordination . . . . . . . . . . . . . . . . . 16 2.5. Candidate Selection Algorithms . . . . . . . . . . . . . . . . . 17 2.6. Network Coding Opportunistic Routing . . . . . . . . . . . . 18 2.7. Geographic Opportunistic Routing . . . . . . . . . . . . . . . 19 2.8. Multicast Routing Protocols . . . . . . . . . . . . . . . . . . . 20 2.8.1. Traditional Multicast Routing Protocols . . . . . . . . 20 2.8.2. Multicast Opportunistic Routing Protocol . . . . . . . 22 2.9. Opportunistic Routing Analytical Models . . . . . . . . . . . 23 3. Performance Modeling of Opportunistic Routing 25 3.1. Introduction............................ 25 3.2. MarkovModel .......................... 25 3.2.1. Expected Number of Transmissions . . . . . . . . . . . 28 3.3. Selection of Candidates . . . . . . . . . . . . . . . . . . . . . 29 3.4. Numerical Results . . . . . . . . . . . . . . . . . . . . . . . . 30 3.4.1. Linear Topology . . . . . . . . . . . . . . . . . . . . . 31 3.4.2. Linear, Random and Grid Topologies . . . . . . . . . . 36 3.5. Conclusions............................ 38 iv CONTENTS 4. Candidate Selection Algorithms in Opportunistic Routing 39 4.1. Introduction............................ 39 4.2. Candidate Selection Algorithms . . . . . . . . . . . . . . . . . 39 4.2.1. Extremely Opportunistic Routing (ExOR) . . . . . . . 40 4.2.2. Opportunistic Any-Path Forwarding (OAPF) . . . . . 42 4.2.3. Least-Cost Opportunistic Routing (LCOR) . . . . . . 44 4.2.4. Minimum Transmission Selection (MTS) . . . . . . . . 45 4.3. Numerical Results . . . . . . . . . . . . . . . . . . . . . . . . 47 4.3.1. Expected number of transmission . . . . . . . . . . . . 48 4.3.2. Variance of Expected Number of Transmissions . . . . 52 4.3.3. Probability Distribution of the Number of Transmissions 53 4.3.4. Execution Time . . . . . . . . . . . . . . . . . . . . . . 55 4.4. Conclusions............................ 56 5. Distance Progress Based Opportunistic Routing 59 5.1. Introduction............................ 59 5.2. Distance Progress based Opportunistic Routing . . . . . . . . 60 5.2.1. Expected Distance Progress . . . . . . . . . . . . . . . 60 5.2.2. DPOR........................... 61 5.3. Methodology ........................... 62 5.4. Performance Evaluation . . . . . . . . . . . . . . . . . . . . . 63 5.4.1. Expected Number of Transmissions . . . . . . . . . . . 63 5.4.2. Execution Time . . . . . . . . . . . . . . . . . . . . . . 66 5.5. Conclusions............................ 67 6. Maximum Performance of Opportunistic Routing 69 6.1. Introduction............................ 69 6.2. Optimal Positions of Candidates . . . . . . . . . . . . . . . . 69 6.3. Maximum Performance of OR . . . . . . . . . . . . . . . . . . 71 6.3.1. A Lower Bound with Infinite Candidates . . . . . . . 71 6.3.2. A Lower Bound for the Expected Number of Transmissions.......................... 71 6.3.3. An Upper Bound for the Gain . . . . . . . . . . . . . 73 6.4. Numerical Results . . . . . . . . . . . . . . . . . . . . . . . . 73 6.5. Quasi Optimal Opportunistic Routing Network . . . . . . . . 76 6.6. Validation............................. 78 6.7. Sensitivity to Node Positions . . . . . . . . . . . . . . . . . . 81 6.8. Candidate Selection Algorithm Based on MPD . . . . . . . . 83 6.8.1. Performance Evaluation of CMPD . . . . . . . . . . . 83 6.8.2. Methodology ....................... 84 6.8.3. Expected Number of Transmissions . . . . . . . . . . . 85 6.8.4. Execution Time . . . . . . . . . . . . . . . . . . . . . . 86 6.9. Node Position in Grid OR Networks . . . . . . . . . . . . . . 86 6.10.Conclusions............................ 90 CONTENTS v 7. Multicast Delivery using Opportunistic Routing 93 7.1. Introduction............................ 93 7.2. Multicast Opportunistic Routing Protocol (MORP) . . . . . 94 7.2.1. Network Model . . . . . . . . . . . . . . . . . . . . . . 94 7.2.2. Description of MORP . . . . . . . . . . . . . . . . . . 95 7.2.3. Forwarding Set . . . . . . . . . . . . . . . . . . . . . . 95 7.2.4. Candidate Coordination and Data forwarding . . . . . 98 7.2.5. Data Structures . . . . . . . . . . . . . . . . . . . . . . 98 7.2.6. An Example of MORP . . . . . . . . . . . . . . . . . . 99 7.3. Implementation of MORP . . . . . . . . . . . . . . . . . . . . 101 7.4. Summary of the ODMRP Protocol . . . . . . . . . . . . . . . 101 7.5. Summary of the ADMR Protocol . . . . . . . . . . . . . . . . 102 7.6. Evaluation Methodology . . . . . . . . . . . . . . . . . . . . . 103 7.6.1. Protocols Parameters . . . . . . . . . . . . . . . . . . 104 7.6.2. Performance Metrics . . . . . . . . . . . . . . . . . . . 105 7.7. Numerical Results . . . . . . . . . . . . . . . . . . . . . . . . 106 7.7.1. Packet Delivery Ratio . . . . . . . . . . . . . . . . . . 106 7.7.2. Multicast Group Reachability . . . . . . . . . . . . . . 109 7.7.3. Forwarding Cost . . . . . . . . . . . . . . . . . . . . . 111 7.7.4. Packet Overhead . . . . . . . . . . . . . . . . . . . . . 114 7.7.5. End-To-End Delay . . . . . . . . . . . . . . . . . . . . 115 7.8. Conclusion ............................115 8. Conclusions and Future Research Directions 119 8.1. AchievedResults.........................119 8.2. Outlook and Future Research Directions . . . . . . . . . . . . 122 Acronyms 125 Appendices 127 A. ListofPublications........................129 A.1. Journals..........................129 A.2. Conferences........................129 A.3. BookChapter.......................130 B. PropagationModel........................131 C. Expected Number of Transmissions Recursive Formula . . . . 134 Index 135 Bibliography 137 vi CONTENTS List of Figures 1.1. An example of Opportunistic Routing. . . . . . . . . . . . . . 2 1.2. An illustration of virtual link in Opportunistic Routing. . . . 3 1.3. An example of simple network topology. . . . . . . . . . . . . 4 2.1. Acknowledgment-based coordination using a modified 802.11 MAC. ............................... 14 2.2. Network Coding coordination approach. . . . . . . . . . . . . 16 2.3. RTS-CTS coordination approach. . . . . . . . . . . . . . . . . 17 3.1. Linear network topology . . . . . . . . . . . . . . . . . . . . . 26 3.2. Opportunistic Routing with 2 candidates. . . . . . . . . . . . 26 3.3. (a) Random network topology with 16 vertices. (b) The same graph with 3 candidates per vertex. The vertices that are no candidates have been pruned. (c), (d) idem for the grid topology............................... 31 3.4. Expected number of transmissions for the linear network topology............................... 32 3.5. Gain for the linear network topology. . . . . . . . . . . . . . . 33 3.6. Mean number of candidates for the linear network topology. . 33 3.7. Variance of the number of transmissions for the linear network topology............................... 34 3.8. Probability of the number of transmissions for the linear network topology with N=9nodes................. 35 3.9. Probability of the number of transmissions for the linear network topology with N=49nodes. ............... 36 4.1. An example of Candidate selection. . . . . . . . . . . . . . . . 41 4.2. Expected number of transmissions in the case ncand = 3. . . 49 4.3. Mean number of candidates in the case ncand =∞. ..... 50 4.4. Expected number of transmissions for the random topology with N=10nodes......................... 51 4.5. Expected number of transmissions for the random topology with N=50nodes......................... 51 4.6. Variance of the expected number of transmissions for the random topology with N=10.................... 52 4.7. Variance of the expected number of transmissions for the random topology with N=50nodes. ............... 52 xiv Acknowledgments these years being apart. I thank Leila who is always smiling with Reza through the Skype and remind me good memories with them. I’m grateful for Hojjat who treated and supported me like his brother and putting a big smile on my face every afternoon at 16:00 whenever I phone him and hear his voice. I also thank him and his wife, Mahzad, for sharing their time on the weekends with me and Maryam. I thank Safa, H´elio and their cute girl Lunna for their many home-cooked meals and for inviting me over for the holidays. There are many, many, many other nice people whom I have left out but were a big part of enriching my life and keeping me sane and in good shape at UPC. I am most grateful to my parents and my sister, Sareh, without whom I could not possibly have gone this far. Although we are thousands kilometers apart, my heart has never left you. Finally, I would like to thank my dear wife Maryam who was beside me from the first to the end. She has been my colleague sitting next to my table and the first one listening my ideas and questions patiently. She has given me relentless support, warmth, comfort, and love all along. I am grateful for the financial support of AGAUR-Generalitat de Catalunya through the grant FI-DGR (2009FI B1-00257). I want to also thank the Spanish government through projects CICYT TIN2010-21378-C01-02 (Cooperative and Opportunistic Wireless Heterogeneous Access Networks (COWHAN)), CICYT 2007-66869-C02-01 (Ad Hoc, Mesh and Cellular Networks Integration (IRAMCEL)) and the Generalitat de Catalunya through project 2009-SGR-1167 (Regional Project). CHAPTER 1 Introduction In recent years, Wireless Mesh Networks (WMNs) have already become very popular and been receiving an increasing amount of attention by the research community. In WMNs, nodes are comprised of mesh routers and mesh clients. Each node operates not only as a host but also as a router, forwarding packets on behalf of other nodes that may not be within direct wireless transmission range of their destinations [5,6]. A WMN is dynamically self-organized and self-configured, with the nodes in the network automatically establishing and maintaining mesh connectivity among themselves. This feature brings many advantages to WMNs such as easy network maintenance, robustness and reliable service coverage [4]. Compared to wired networks, routing in WMNs is specially challenging because of two fundamental differences. The first one is the heterogeneous characteristics of the wireless links: due to the strong dependency of radio transmission impediments between the nodes with their distance and the environmental elements influencing the radio waves propagation. As a consequence, packet delivery probabilities may be significantly different for every link of a WMN. The second one is the broadcast nature of wireless transmissions: unlike wired networks, where links are typically point to point, when a node transmits a packet in a wireless network, the packet can be received by several neighboring nodes simultaneously. Traditional routing protocols proposed for wireless networks perform best path routing, i.e., they pre-select one fixed route before transmissions starts. Each node in a route uses a fixed neighbor to forward toward the destination. Doing this way, in the routing table of every node participating in the routing between a source and a destination, there is a forwarding entry which points to a neighbor (referred to as next-hop), over which packets addressed to the destination will be sent. Note that, once all next-hops have been chosen, all packets between a source and destination follow the same path. This motivates the name of uni-path routing for such type of protocols. These approaches borrowed from the routing protocols for wire-line networks, and 2Chapter 1. Introduction 90% S A B D 90% 90% 30% 10% Figure 1.1: An example of Opportunistic Routing. do not adapt well to the dynamic wireless environment where transmission failures occur frequently. Opportunistic Routing (OR), also referred to as diversity forwarding [47] or any-path routing [30,32], is being investigated to increase the performance of WMNs by taking the advantage of its broadcast nature. In OR, in contrast to traditional routing, instead of pre-selecting a single specific node to be the next-hop as a forwarder for a packet, an ordered set of nodes (referred to as candidates) is selected as the potential next-hop forwarders. We shall refer to the ordered set of candidates of a node as its Candidates Set (CS). Thus, the source can use multiple potential paths to deliver the packets to the destination. More specifically, when the current node transmits a packet, all the candidates that successfully receive it will coordinate with each other to determine which one will actually forward it, while the others will simply discard the packet. For a better understanding of the inherent benefits associated to OR, consider the example shown in figure 1.1 (the example has been taken from [11]). It presents the possibility that one transmission may reach a node which is closer to the destination than the particular next-hop in traditional routing. Assume that Sis the source, Dis the destination and the packet transmissions in each link are Bernoulli with the delivery probabilities specified over the links. The best path from the source to the destination using traditional routing is S-A-B-Dwhich has 0.9×0.9×0.9≈0.72 end-to-end delivery probability. It minimizes the expected number of transmissions from node Sto the destination D, 3 ×1/0.9≈3.33. If a packet sent by Sis correctly received by Bbut not node A, it has to be retransmitted by Suntil it reaches the designated next-hop A. Another situation that might happen is that a packet sent by Sis correctly received by both node Aand B. Although node Bis closer to the destination than node A, it is not allowed to forward the packet. In contrast to the traditional routing protocols, OR takes the advantage of these situations to maximize the packet progress to the destination. An OR protocol can use {D,B,A}as the candidates (Dis the highest priority candidate, and Athe least one) to forward the packet. If both nodes Aand Breceive the packet but not D, since node Bhas 3 C1 C2 C3 C4 C5 S D 20% 20% 20% 20% 20% 100% 100% 100% 100% 100% Figure 1.2: An illustration of virtual link in Opportunistic Routing. more priority than A(it is closer to the destination), then it will forward the packet while node Awill simply discard it. Another benefit of OR is that it increases the reliability of transmissions by combining weak physical links into one strong virtual link. In other words, it acts like OR has additional backup links and the possibility of transmission failure is reduced [35]. As shown in figure 1.2 the sender has a low delivery probability to all its neighbors, while they have a perfect link to the destination. Under a traditional routing protocol, we have to pick one of the five intermediate nodes as the relay node. Thus, altogether we need 5 transmissions on average to send a packet from the source to the relay node and 1 transmission from the relay node to the destination. In comparison, under OR, we can select the five intermediate nodes as the candidates. The combined link has a success rate of (1 −(1 −20%)5)≈67%. Therefore, on average only 1/0.67 = 1.48 transmissions are required to deliver a packet to at least one of the five candidates, and another transmission is required for a candidate to forward the packet to the destination, so on average it takes only 2.48 transmissions to deliver a packet to the destination. The following simple example illustrates how OR works, and its potential to improve the network performance. Consider the network topology and the Candidates Set (CS) of each node in figure 1.3. Node 1 is the source and node 3 is the destination. Assume that packet transmissions in each link are Bernoulli with the delivery probabilities from node ito node j,qij, indicated in the figure. Note that, in the Candidates Set (CS) of node 1, node 3 has higher priority than node 2. Note also that node 2 has only one candidate (the destination). Therefore, upon being the next forwarder, node 2 would behave as in traditional routing. We now compute the expected number of transmissions from node 1 to the destination using OR (EOR 1). We can write: EOR 1= 1 + P3 i=1 piEi, where piis the probability of node ibeing the next forwarder (or the destination), and Eiis the expected 4Chapter 1. Introduction 13 2 q13 = 0.3 source destination q12 = 0.7q23 = 0.7 Network topology. node candidates to 3 1 3, 2 2 3 Candidates Set of each node. Figure 1.3: An example of simple network topology. number of transmissions from node ito the destination (note that E3= 0 and E1=EOR 1). Grouping terms we have E1= (1 + p2×E2)/(p2+p3) = (1+(1−q13)q12×1/q23)/((1−q13)q12+q13). Substituting we get EOR 1≈2.15. By comparing with Euni 1, we obtain that using OR in this simple example could reduce the expected number of transmissions about 25 %. 1.1 Dissertation Overview In the following we outline the contents of each of the remaining chapters. Chapter 2“Background and Related Work” reviews the material and the related work. This includes work related to main issues in OR like metrics which are used in OR, candidate selection algorithms, related works on using OR in multicast protocols and analytical works that have been done in OR. Chapter 3“Performance Modeling of Opportunistic Routing” proposes a Markov chain model that can be used to evaluate OR mechanisms in wireless networks in terms of the number of transmissions needed to reach the destination node. For each node, the ordered list of candidates and the delivery probability to each of them are inputs to our model. Hence, our model does not require any specific assumptions about the network topology nor the mechanism for selection and prioritization of candidates. This work was published in [17]. Chapter 4“Candidate Selection Algorithms in Opportunistic Routing” compares four candidate selection algorithms that have been proposed in the literature. They range from non-optimum, but simple, to optimum, but with a high computational cost. We address the questions: Is there a big difference in performance between the simple and optimal algorithms? What is the computational cost as a function of maximum number of candidates? So, under which conditions it is worth using an optimal algorithm? We have published the results of this chapter in [22,26]. Chapter 5“Distance Progress Based Opportunistic Routing” proposes a new metric that we call Expected Distance Progress (EDP). It 1.2 Thesis Contributions 5 measures the expected distance progress of sending a packet using a set of candidates. Based on EDP, we propose a hop-by-hop candidate selection and prioritization algorithm. This contribution is accepted in [24]. Chapter 6“Maximum Performance of Opportunistic Routing” studies the maximum gain that can be obtained using OR. We address the question: What is the maximum gain that can be obtained using OR? More specifically, we are interested to answer that question in the case that, the maximum number of candidates per node is limited. We derive equations that yield the distances of the candidates in OR such that the per transmission progress towards the destination is maximized. Based on the equations that we have obtained in this chapter we have proposed a new candidate selection algorithm. We have published some of the results of this chapter in [16]. Chapter 7“Multicast Delivery using Opportunistic Routing” investigates how OR can be used to improve multicast delivery. There are few works that have been made to adapt Opportunistic Routing (OR) in multicast. In this chapter we propose a new multicast routing protocol based on Opportunistic Routing for Wireless Mesh Networks (WMNs), named Multicast Opportunistic Routing Protocol (MORP). We compare our proposal with two well known On-Demand Multicast Routing Protocol (ODMRP) and Adaptive Demand-Driven Multicast Routing (ADMR) multicast protocols. Our results demonstrate that MORP outperforms ODMRP and ADMR, reducing the number of data transmissions and increasing the delivery ratio. A part of this work is published in [23]. Chapter 8“Conclusions and Future Research Directions” closes this dissertation with an enumeration of some of our important results, some avenues of future work, and a discussion of the outlook for Opportunistic Routing. 1.2 Thesis Contributions The main contributions of this dissertation are listed as follows: •Chapter 3”Performance Modeling of Opportunistic Routing” –We propose a Discrete Time Markov Chain to analyze the performance of OR in terms of total number of transmissions needed to reach the destination. –We use our model to investigate the performance of different scenarios in terms of the expected value and variance of the number 6Chapter 1. Introduction of transmissions needed to send a packet from the source to the destination. –We show that using a small number of candidates may be a sensible choice to have small expected number of transmissions. •Chapter 4”Candidate Selection Algorithms in Opportunistic Routing” –We compare a selected group of candidate selection algorithms that have been proposed in the literature. –We introduce some changes in the algorithm to adapt them with the constraint maximum number of candidates. –We investigate the performance of each candidate selection algorithm in terms of the expected value, variance and the probability of the number of transmissions needed to send a packet from a source to the destination. We also computed the execution time to construct the Candidates Sets. –We show that optimal algorithms have a high computational cost, even for a small maximum number of candidates. –We find that a fast and simple OR candidate selection algorithm is preferable in dynamic networks, where the Candidates Sets (CSs) are likely to be updated frequently. •Chapter 5”Distance Progress Based Opportunistic Routing” –We propose a new metric for candidate selection based on the Expected Distance Progress (EDP) of sending a packet under OR. –We propose a hop-by-hop candidate selection and prioritization algorithm based on the distance progress metric. –We show that, the performance of our algorithm is almost the same as the optimum candidate selection algorithm, while our algorithm requires less information and runs much faster. •Chapter 6”Maximum Performance of Opportunistic Routing” –We derived the equations that yield the distances of the candidates in OR such that the per transmission progress towards the destination is maximized. –We show that the Maximum Progress Distances (MPDs) for the already existing candidates do not change if we decide to add a new candidate to the Candidates Set. 1.2 Thesis Contributions 7 –We propose a lower bound to the expected number of transmissions needed to send a packet using OR. –We investigate the sensitivity of OR performance to the position of the candidates and we conclude that in order to minimize the expected number of transmissions, choosing the distance of the first two candidates near to their optimal positions, is the most critical. –We propose a rule of thumb in the design of the node positions in a static network using OR. –We also investigate the maximum performance using OR in the grid scenarios and conclude that using our rule of thumb in the design of a grid topology causes a good performance close to the optimum. –Based on the MPDs, we propose a new candidate selection algorithm which its performance is very close to the optimum algorithms while runs much faster than the others. •Chapter 7”Multicast Delivery using Opportunistic Routing” –We investigate the advantages of using OR to support multicast delivery. –We propose a new multicast routing protocol based on OR. –We compare our proposal with two well known multicast routing protocols. –We show that using OR can be a useful technique to implement reliable multicast protocols in WMNs. CHAPTER 2 Background and Related Work 2.1 Introduction This chapter gives an overview of related work with the emphasis of the contributions of this dissertation. We survey the main issues in OR which are candidate selection algorithms, routing metrics and candidate coordination methods. Then, we survey most important research contributions in each issue. 2.2 Issues in Opportunistic Routing Three main issues arise in the design of OR protocols: •Candidate selection All nodes in the network must run an algorithm for selecting and sorting the set of neighboring nodes (candidates) that can better help in the forwarding process to a given destination. We shall refer to this algorithm as candidate selection. The aim of candidate selection algorithms is to minimize the expected number of transmissions from the source to the destination. In section 2.5 we briefly describe some noteworthy candidate selection algorithms that have been proposed in the literature. •OR metric In order to accurately select and prioritize the Candidates Sets (CSs), OR algorithms require a metric. First OR algorithms were based on simple metrics inherited from traditional unicast routing, as those used by Shortests Path First (SPF) algorithms. However, some researchers realized that more accurate metrics were required in OR. Different metrics in OR will be discussed in detail in section 2.3. •Candidate coordination is the mechanism used by the candidates to discover which one has the highest priority that has received, and thus, must forward the packet. Coordination requires signaling among the 16 Chapter 2. Background and Related Work a a b b a a a⊕b b a C2 C1 SD Figure 2.2: Network Coding coordination approach. node C2can forward a coded packet a⊕b. When Dreceives transmitted packets from C1and C2, it can decode and restore the original packets. It performs an XOR operation on the two received packets: a⊕b⊕a=b. Thus, no duplicate transmission occurs at D. However, using NC with OR may lead to a high number of potential forwarders sending coded packets, and thus, resulting in redundant transmissions. There exists a trade-off between transmitting a sufficient number of coded packets to guarantee that the destination has enough coded packets to reconstruct the native packets, and avoiding to inject in the network unnecessary packets [13]. 2.4.4 RTS-CTS Coordination Some other mechanisms like in [36,97] use explicit control packet(s) exchanged immediately before sending a data packet. In this approach the sender multicasts the RTS to the its CS (it is actually a broadcast control packet). The RTS contains all the candidates addresses which are ordered according to a metric. When an intended candidate receives the RTS packet, it responds by a CTS. These CTS transmissions are sent in decreasing order of candidate priority: the first candidate in priority transmits the CTS after aSIFS, the second one after 2×SIFS, and so on. When the sender receives a CTS, it transmits the DATA packet to the sender of this CTS (which would be the highest priority candidate that responded) after a SIFS interval. This ensures that other lower priority candidates hear the DATA before they send CTS and suppress any further CTS transmission. All such receivers then set their Network Allocation Vector (NAV) until the end of ACK period. This mechanism is guaranteed to have a single winner and it can avoid duplicate transmissions. Figure 2.3 shows an example of RTS-CTS coordination. Assume that there are three candidates A,Band Cto reach the destination (Athe highest priority candidate and Cthe least one). After receiving RTS by candidates 2.5 Candidate Selection Algorithms 17 NAV Data NAV Data A C B A SRTS CB t SIFS SIFS Data ACKCTS B 2*SIFS CTS A SIFS Figure 2.3: RTS-CTS coordination approach. they send the CTS packet in order of their priorities. Here we assume that the first CTS which belong to Awas not received, but the second one was received. When the sender Sreceives the first CTS from B, it sends the data packet to it, therefore the highest priority candidate whose its CTS is received by the source will forward the data packet. 2.5 Candidate Selection Algorithms Another important component of OR is candidate selection, which is similar to building routing tables in traditional routing. Selection of good candidates can affect the performance of the network. According to the amount of information is needed to select and prioritize the candidates, candidate selection algorithms can be divided into two categories; Location-based and Topology-based selection. In location-based selection [97], each node maintains a limited state information and independently determines its own CS along the path to the intended destination. Topology-based selections [12,11] find the CSs according to the global topology information of the network. Therefore, a node requires to maintain global network state information, for example, the network topology, state information on each link, and flow-related information (e.g., path and data rate), what can run into a scalability problem. In general, topology-based strategy outperforms location-based strategy, since the former can optimize the selection of a CSs with more network state information gathered. However, the location-based strategy might be easier to implement, requires less signaling and scales better than topology-based [61]. Biswas and Morris proposed ExOR [12,11], one of the firsts and most referenced OR protocols. In the first version of ExOR [12], all candidates must be one hop neighbors of each other, such that they are able to hear the acks sent by the others. The candidates are ordered by a priority according to their best position to forward the packets. When a packet is sent, the ordered list of candidates is included in the MAC header. All candidates that receive the packet correctly send in turn an ACK. Then, based on the ACKs received from the other candidates, decide locally whether to retransmit the packet. 18 Chapter 2. Background and Related Work Simple Opportunistic Adaptive Routing (SOAR) [70] has been proposed after ExOR. In order to leverage path diversity while avoiding duplicate transmissions, SOAR relaxes the actual route that data traverses to be along or near the default path but constrains the nodes involved in routing a packet to be near the default path. Moreover, this forwarding node selection also simplifies coordination since all the nodes involved are close to nodes on the default path and can hear each other with a reasonably high probability. It selects the shortest path between source and destination using ETX, and the nodes near to the shortest path can act as the Candidates Set. SOAR uses timer-based approach for candidate coordination. In [96,95] Zhong et al. proposed a new candidate selection and prioritization rule based on EAX. They analyzed the efficacy of OR by using this metric and did a comparison using the link-level measurement trace of MIT Roofnet [1]. Moreover, they claimed that the number of candidates should be kept moderate in order to reduce the number of transmissions. Consequently, only those nodes that would reduce significantly the forwarding cost are included in the candidate set. In [57] Li et al. introduced a new metric —Successful Transmission Rate (STR)– for choosing the forwarder list. They considered multi-links contribution, instead of one best link information used in [96,95]. They proposed a fair OR (FORLC) protocol that used STR as a metric to select the Candidates Set. In [30] a distributed algorithm for computing minimum cost opportunistic routes, which is a generalization of the well-known Bellman-Ford algorithm, is presented. The authors also alert about the risk of using too many relay candidates. An optimization based approach to OR when multiple transmission rates are possible has been considered in [89,30,49]. In [58] the key problem of how to optimally select the forwarder list is addressed, and an optimal algorithm (MTS) that minimizes the expected total number of transmissions is developed. 2.6 Network Coding Opportunistic Routing MAC-independent Opportunistic Routing & Encoding (MORE) [18] is an OR protocol that uses both the idea of OR and Network Coding (NC). It deploys the advantages of NC to improve performance of OR in wireless multicast networks. Duplicate transmissions are avoided by randomly mixing packets before forwarding. The sender creates a linear combinations of packets and broadcasts the resulting packet after adding a MORE header containing the CS. Each receiving node discards the packet if it is not linearly independent from the other packets received before, or if its ID does not appear in the candidates list. Otherwise, it linearly combines the received coded packets and rebroadcasts the new packet. 2.7 Geographic Opportunistic Routing 19 COPE [43,44] is a practical NC mechanism for supporting efficient unicast communication in a Wireless Mesh Network. It employs opportunistic listening to enable each node to learn local state information and encoded packet broadcasting to improve the network throughput. It exploits the shared nature of the wireless medium which broadcasts each packet in a small neighborhood around its path. Each node stores the overheard packets for a short time [43]. It also tells its neighbors which packets it has heard by annotating the packets it sends. When a node transmits a packet, it uses its knowledge of what its neighbors have heard to perform opportunistic coding; the node XORs multiple packets and transmits them as a single packet if each intended next-hop has enough information to decode the encoded packet. Motivated by COPE, several other coding-aware routing mechanisms have been proposed [81,50], which are aimed at improving the network throughput by combining routing with inter-flow NC. Coding-aware Opportunistic Routing mechanism & Encoding (CORE) [84, 83] is a coding-aware OR mechanism that combines OR and localized interflow NC for improving the throughput performance of a WMN. Through OR,CORE allows the next-hop node with the most coding gain to continue the packet forwarding. Through localized NC,CORE attempts to maximize the number of packets that can be carried in a single transmission. When a node has a packet to send, it simply broadcasts the packet, possibly encoded with other packet(s), which may be received by some of the candidates in its CS. The candidates receiving the packet collaborate to select the best candidate among them in a localized manner, which is the one with the most coding opportunities. This forwarding process is repeated until the packet reaches its intended destination. In CORE, geo-distance metric and timerbased coordination have been used to select and coordinate the candidates, respectively. 2.7 Geographic Opportunistic Routing Geographic Random Forwarding (GeRaF) [97] is a forwarding protocol which selects set of candidates and prioritizes them using geographical location information. Only those neighboring nodes closer to the destination than the sender can be candidates. The priority of selected candidates is based on their geo-distances to the destination. The candidate coordination can easily be implemented via an RTS-CTS dialog at the MAC layer, which also ensures that a single forwarder can be chosen. Geographic Opportunistic Routing (GOR) [88] is used in geographic routing scenarios and adopts timer-based coordination with local candidates order. Authors showed that giving the nodes closer to the destination higher priority is not always the optimal way to achieve the best throughput. They 20 Chapter 2. Background and Related Work proposed a local metric named Expected One-hop Throughput (EOT) to characterize the local behavior of GOR in terms of bit-meter advancement per second. Based on EOT, which considers the coordination overhead, they proposed a candidate selection scheme. S.Yang et. al. [85] proposed a protocol called Position based Opportunistic Routing (POR). In POR, when a source wants to send data packet to the destination, it finds its CS according to the distance between its neighbors and the destination. The neighbor which is the nearest to the destination will have the highest priority. They fixed the maximum number of candidates in each node to 5. When a candidate receives a packet, it checks its position in the CS and waits for some time slots to forward the packet. If it hears the same packet being sent by the other nodes, it will simply discard the packet. 2.8 Multicast Routing Protocols Multicast is an important communications paradigm in wireless networks. It comes into play when a host needs to send the same message or data stream to multiple destinations. Due to the unique characteristics of the wireless networks such as limited resources and unreliable channels, traditional multicast protocols in the wired networks do not perform well in wireless, and new protocols have been proposed. 2.8.1 Traditional Multicast Routing Protocols One of the most popular methods to classify multicast routing protocols is based on how distribution paths among group members are constructed. According to this method, existing multicast routing approaches can be classified into tree-based, mesh-based and hybrid protocols [39,40]. In the tree-based protocols only a single shortest path must be established between source-receiver pair, therefore the multicast tree is composed of a unique path from the multicast source to each of the multicast receivers. Tree-based proposals are also divided into two sub-categories: source-based tree and shared-based tree approaches. A source-based tree maintains an individual route towards all the multicast receivers for each multicast group. Some source-based multicast protocols are Differential Destination Multicast (DDM) [38], Preferred Link Based Multicast (PLBM) [74], Adaptive Demand-driven Multicast Routing [37] and probabilistically reliable ondemand (PROD) [94]. Since the construction of a separate tree for each source is costly, some treebased multicast protocols use a shared-based (core-based) tree to distribute 2.8 Multicast Routing Protocols 21 the multicast messages. In shared-based tree a single tree is constructed to support the whole groups. Since the shared-based multicast tree only permits the multicast traffic to be sent out from the root to the multicast receivers, each multicast source must forward its multicast traffic to the root initially. Multicast traffic of each source is then forwarded along the shared tree. Ad-hoc Multicast Routing utilizing Increasing ID numbers (AMRIS) [79], Multicast Ad-hoc On-demand Distance Vector routing (MAODV) [69], Multicast Zone Routing (MZRP) [92] and Adaptive Core based Multicast routing (ACMP) [41] are some popular shared-based tree multicast routing protocols. The main advantage of a tree as the underlying forwarding structure is that the number of forwarding nodes tends to be reduced. However, they generally suffer from fragile tree structure [40]. Besides the previous problem, source-based tree proposals also suffer from large memory space requirements and wasteful usage of limited bandwidth because each source constructs its own tree. But, it performs better than shared-based tree proposals at heavy loads due to efficient distribution of trees. Although shared-based tree proposals are more scalable, they have the vulnerability of the single core problem [8]. In a mesh-based multicast routing protocol, multiple routes may exist between any pair of source and destination, which is intended to enrich the connectivity among group members. The major difference between the treebased and mesh-based protocols lies in the manner in which a multicast message is relayed. In tree-based protocols, each intermediate node on the tree has a well-defined list of the next-hop nodes for a specific multicast session. It will send a copy of the received multicast message to only the neighboring nodes on its next-hop list. In mesh-based protocols, each node on the mesh will broadcast the message upon its first reception of the message. Meshbased multicast routing protocols generally are robust due to the penalty of multiple paths between different nodes. But many of these proposals suffer from excessive control overhead which will affect on scalability and utilization of limited bandwidth. Examples of mesh based multicast routing protocols include On-Demand Multicast Routing (ODMRP) [55,56] and its variations (PatchODMRP [53], PoolODMRP [15], PDAODMRP [71], EnhancedODMRP [65] and Resilient ODMRP [66]), Forwarding Group Multicast (FGMP) [19], Core-Assisted Mesh (CAMP) [34], Clustered Group Multicast (CGM) [60], Neighbor-Supporting Multicast (NSMP) [54], Dynamic Core based Multicast routing (DCMP) [28] and link stability based multicast routing in MANETs (LSMRM) [9]. Hybrid multicast routing protocols combine the advantages of both treebased and mesh-based multicast approaches, i.e., the robustness of the meshbased multicast routing protocols and low overhead of tree-based protocols. 22 Chapter 2. Background and Related Work Therefore, the hybrid multicast routing protocols are able to address both efficiency and robustness issues. Multicast Core-Extraction Distributed Ad Hoc Routing (MCEDAR) [73], Ad-hoc Multicast Routing (AMRoute) [82] and Efficient Hybrid Multicast Routing (EHMRP) [10] are some well-known hybrid multicast routing protocols. 2.8.2 Multicast Opportunistic Routing Protocol There are few works that have been made to adapt OR in multicast. The availability of multiple destinations can make the selection of CSs and the coordination between candidates complicated. There are few works that have tried made to adapt OR for multicast scenarios. MORE [18] which is explained in section 2.6 is a MAC independent protocol that uses both the idea of OR and NC. It can be used in both unicast and multicast scenarios. In [45] the source first creates the shortest path tree to reach all destinations based on the ETX of each link. Then the nodes not only receive packets from their father in the tree, but also can overhear packets from its sibling nodes. It uses random linear NC to improve multicast efficiency and simplify node coordination. The authors in [77] used a Steiner tree based on ETX and data packets were forwarded through the links using OR. Their protocol constrains the nodes involved in routing a packet to be near the default multicast tree. The average EAX of each candidate to reach a sub-group of destinations is used as the cost of reaching to multiple destinations. The authors in [51] proposed a Multicast Opportunistic Routing (MOR) algorithm. It opportunistically employs a set of forwarders to push a packet closer to all receivers round-by-round. They proposed a new metric – Expected Transmission Advancement (ETA)– which is the expected number of OR transmissions achieved after one transmission from a source node toward the destination using the Candidates Set of source. Based on packet receptions at the end of each round, a new forwarder set is constructed to maximize the ETA towards all destinations. They developed an event-driven simulator to measure the performance of their proposal. For the propagation model they used a simple packet loss which is only related to the geographic distance between two nodes. They believe that implementing of MOR using packet-level simulators is not straightforward. In a recent work, Le and Liu [52] propose Minimum Steiner Tree with Opportunistic Routing (MSTOR) which is an overlay multicast to adapt OR in wireless network. They construct a minimum overlay Steiner tree, and map it into unicast Opportunistic Routing relay path connecting the source with 2.9 Opportunistic Routing Analytical Models 23 all destinations. They employed unicast OR on each link of the tree. Their protocol does not exploit opportunistic receptions across different links in that tree. 2.9 Opportunistic Routing Analytical Models There are some papers which propose analytical models to study the performance of OR. Baccelli et al. [7] used simulations to show that OR protocols significantly improve the performance of multihop wireless networks compared to the shortest path routing algorithms, and elaborated a mathematical framework to prove some of the observations obtained by the simulations. In [63] an analytical approach for studying OR in wireless multi-hop networks have been proposed. They used lognormal shadowing and Rayleigh fading models for packet reception. In their model they assume that the nodes are uniformly distributed over the plane. The authors did not consider any specific candidate selection algorithm, but simply compute the expected progress of the packet transmissions based on the probability of any node in the progressing region successfully receives the packet. In [20] they extend their work by using directional antennas and different radio propagation models and spatial node distributions. Zubow et al. in [46] claimed that shadow fading losses for spatially close candidates are not independent from each other, unlike commonly assumed. They presented measurements obtained from an indoor testbed and concluded that correlations can not be neglected if nodes are separated by less than 2 m. The authors of [80] proposed an utility-based model for OR and claimed that for the optimal solution it is necessary to search all loop-free routes from the source to the destination. They proposed both optimal and heuristic solutions for selecting the candidates according to their utility function. In [86,62] an algebraic approach is applied to study the interaction of OR routing algorithms and routing metrics. They showed that OR in combination with ETX could degrade the performance of network. In [14], the issue of optimal CS selection in the OR has been addressed. They provide an analytical framework to model the problem of selecting the optimal CS for both the constrained and unconstrained CS selection. They proposed two algorithms for optimal CS selection, one for the constrained and one for the unconstrained case. CHAPTER 3 Performance Modeling of Opportunistic Routing 3.1 Introduction This chapter presents a Discrete Time Markov Chain (DTMC) that can be used to evaluate OR mechanisms in terms of the number of transmissions needed to reach the destination. Using this model we have obtained a formula, which is straightforward from the DTMC, to calculate the expected number of transmissions from source to the destination under Opportunistic Routing approach. Unlike previous studies, from the proposed model closed-form expressions not only for the mean but also for higher moments and the full probability distribution are easily derived. For each node, the ordered list of candidates and the delivery probability to each of them are inputs to our model. Hence, our model does not require any specific assumptions about the network topology nor the mechanism for selection and prioritization of candidates. 3.2 Markov Model We have considered one tagged connection. Each node has a set of candidates that can opportunistically route the packets towards the destination. In order to simplify the explanation of our model, we will first describe a simple scenario, and then we will generalize it. Consider a linear network topology of Nnodes equally spaced a distance x=D N−1, being Dthe distance between the source sand the destination d of the tagged connection (see figure 3.1). Let p(x) be the probability of successfully delivering a packet to node located at a distance x. The nodes retransmit the packets until successful delivery. With the assumption of independent delivery probabilities, and the nodes always routing the packets to their closest neighbor, the average number of 32 Chapter 3. Performance Modeling of Opportunistic Routing Number of nodes 2 3 4 5 6 7 8 3 5 10 15 20 25 30 35 40 45 50 log hops c1 c5 c∞ D=300 m, σdB=6, β=2.7, min.dp=0.25 Expedted number of transmissions c3 c2 Figure 3.4: Expected number of transmissions for the linear network topology. ing the density of the network. Unless otherwise specified, the shadowing propagation model parameters used throughout this section are σdB = 6 and β= 2.7, and the threshold for considering a link is min.dp = 0.25 (see appendix B). Initially (for a number of nodes equal to 3 and 5) all curves are coincident, since there is only one possible route to reach the destination. Since p(D/2) > min.dp > p(D), in the hops case a path with 2 hops will be selected to reach the destination. Among all paths with 2 hops it can be easily shown that minimum number of transmissions is achieved when the relay node is placed exactly at D/2, and then the average number of transmissions would be 2/p(150) ≈5. However, when Nis even there will not be a node placed at D/2. Additionally, in the hops case the same weight for all reachable nodes is used (equal to 1), therefore, the algorithm will select any of the nodes that allows reaching the destination in two hops with equal probability. Thus, in the hops case the number of transmissions is equal or higher than 5 as it is shown in figure 3.4. Regarding the log case, since it always chooses the closest neighbor, the expected number of transmissions asymptotically tends to be equal to the number of hops between the source and the destination (N−1). Clearly, the hops and log cases will yield in most cases a routing path far from optimal. Therefore, we will focus only in the c1case, where SPF minimizes the expected number of transmissions, and also the OR strategies with a varying number of candidates. For the scenario depicted in figure 3.4, it can be easily derived that the optimal number of hops is 3 (N= 4). Since p(100) ≈0.70, with 3 hops we have an expected number of transmissions of 3/0.70 ≈4.28, as shown in figure 3.4 for the c1case. 3.4 Numerical Results 33 Number of nodes 0 5 10 15 20 25 30 35 40 3 5 10 15 20 25 30 35 40 45 50 c∞ c5 c3 c2 Expedted number of transmissions gain (%) D=300 m, σdB=6, β=2.7, min.dp=0.25 Figure 3.5: Gain for the linear network topology. Number of nodes 1 5 10 15 20 3 5 10 15 20 25 30 35 40 45 50 c∞ c5 c3 c2 Mean number of candidates D=300 m, σdB=6, β=2.7, min.dp=0.25 Figure 3.6: Mean number of candidates for the linear network topology. In order to measure the improvement that can be reached using OR we define the gain (Gi) as the relative difference of the expected number of transmissions required with the OR with icandidates (E[Ti]), with respect to the c1case (E[T1]) i.e.: Gi=E[T1]−E[Ti] E[T1](3.11) Figure 3.5 shows the gain obtained for the corresponding values depicted in figure 3.4. Additionally, the average number of candidates measured over all nodes except the destination, and the variance of number of transmissions, are shown in figures 3.6 and 3.7, respectively. Figures 3.4,3.5 and 3.6 show some interesting results: From figure 3.5 we see that the OR may achieve a significant reduction in the expected number 34 Chapter 3. Performance Modeling of Opportunistic Routing Number of nodes 0 1 2 3 4 5 6 7 3 5 10 15 20 25 30 35 40 45 50 c1 c2 c3 c5 c∞ D=300 m, σdB=6, β=2.7, min.dp=0.25 Number of transmissions variance Figure 3.7: Variance of the number of transmissions for the linear network topology. of transmissions. Furthermore, the gain increases fast with the number of candidates. For instance, the gain is close to 30% with only 5 nodes. In the c∞case, the gain is more than 40% with 30 nodes, but, from figure 3.6 we see that this gain is obtained at the cost of using a large number of candidates (the mean number of candidates is higher than 10). If the maximum number of candidates is fixed to only 2, the maximum gain is 28%. However, figure 3.5 shows that after the maximum point, the gain slightly decreases to an asymptotic value (approximately 18% for the c2case). In fact, figure 3.4 shows that the expected number of transmissions using OR slightly increases to an asymptotic value with increasing the number of nodes, for all cases except for c∞. This counterintuitive result could be explained by the fact that the candidates selection algorithm we use is not optimum. Figure 3.7 shows that using OR, the variance of the number of transmissions is significantly reduced. Additionally, the reduction is approximately the same regardless of the maximum number of candidates. This reduction has two important benefits. Firstly, the variability of the transmission delays may be significantly reduced using OR. Secondly, this fact indicates that the number of retransmissions of a packet by the same node may be also reduced using OR. This may also contribute on the reduction of the transmission delay variability, due to the back-off algorithm used at the MAC layer. Finally, for a more detailed comparison we have included the probability of the number of transmissions for the scenario previously discussed, for a small number of nodes (N= 9) and a large one (N= 49), in figures 3.8 and 3.9 respectively. These values of Nrepresent a network with a low density and high density of nodes, and will also be used in the comparison carried out in section 3.4.2. 3.4 Numerical Results 35 Number of transmissions 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 1 2 3 4 5 6 7 8 9 10 cand c1 c2 c3 c5 c∞ Probability D=300, σdB=6, β=2.7, min.dp=0.25 Figure 3.8: Probability of the number of transmissions for the linear network topology with N= 9 nodes. Comparing the c1case in figures 3.8 and 3.9 we observe that the probability curves are almost the same. This comes from the fact, as explained above, that in the c1case, SPF chooses 2 intermediate nodes to reach the destination (3 hops), and the position of these nodes chosen as relays, is similar with N= 9 and N= 49. These figures show that in the c1case only 35% of packets reach the destination in 3 transmissions, while 10% of packets need 6 or more transmissions. Regarding the OR cases, figure 3.8 shows that the probabilities are similar for all of them. This is logical since with N= 9 there are few choices for the selection of candidates. However, we can see that the number of transmissions needed to reach the destination is significantly reduced with respect to the c1case: With OR more than 60% of packets reach the destination with only 3 transmissions, and more than 10% with only 2 transmissions. Comparing the figures 3.8 and 3.9 we can see that the probabilities are very similar for the c2case. This is consequence of the fact that increasing the density will not change very much the position of the candidates chosen by the c2case. On the other hand, the probabilities change significantly for the c∞case. For instance, in figure 3.9 we see that 50% of the packets reach the destination with only 2 transmissions. Looking at figure 3.6 we can see that with N= 49 nodes, the c∞case uses more than 20 candidates. With this large number of candidates it is likely that some candidate close to the destination will receive the packet, thus, allowing the delivery to the destination with only two transmissions. However, implementing an OR protocol with a high number of candidates is difficult, and possibly will introduce large signaling overhead and duplicated transmissions. Therefore, a maximum number of candidates between 2 and 5 will possibly be more 36 Chapter 3. Performance Modeling of Opportunistic Routing Number of transmissions Probability 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 1 2 3 4 5 6 7 8 9 10 cand c1 c2 c3 c5 c∞ D=300 m, σdB=6, β=2.7, min.dp=0.25 Figure 3.9: Probability of the number of transmissions for the linear network topology with N= 49 nodes. convenient. Figure 3.9 shows that, even on a dense network, there are not significant differences on the number of transmissions required for such values of the maximum number of candidates. 3.4.2 Linear, Random and Grid Topologies For the other network topologies considered in this chapter we have obtained similar conclusions as those previously described for the linear topology. We have summarized our results for the linear, random and grid topologies in tables 3.1 (a), (b) and (c), respectively. In the random topology we have taken averages after solving the model for 10 different random position of the nodes. These tables show the expected value and variance of the number of transmissions (indicated as E[T] and Var[T] in the tables) for two number of nodes: N= 9 and N= 49. As a measure of the density of the nodes, we have added the mean number of candidates obtained in the c∞case (column M∞). Additionally, we have solved the model for two values of the loss exponent of the propagation model: β= 2.7 and β= 3. For instance, the results obtained in figures 3.4-3.9 are summarized with the rows corresponding to β= 2.7 in table 3.1 (a). These tables give an idea about how much the expected number of transmissions and variance can be reduced using OR under different conditions, as we explain in the following. Comparing the three topologies, we observe that when the network density is the highest (N= 49, β= 2.7), the values of E[T] and Var[T] obtained in each topology are approximately the same for all the corresponding cases. For instance, E[T1]=4.3 and E[T2]=3.5 for all topologies (18% of gain), 3.4 Numerical Results 37 Table 3.1: Expected and variance number of transmissions (E[T] and Var[T]) obtained for the Linear, Random and Grid network topologies. (a) Linear topology E[T] Var[T] N β M∞c1c2c3c5c∞c1c2c3c5c∞ 92.7 3.2 4.4 3.4 3.1 3.0 3.0 2.2 0.4 0.4 0.3 0.3 3.0 1.9 7.1 5.4 5.4 5.4 5.4 5.5 0.7 0.7 0.7 0.7 49 2.7 20.5 4.3 3.5 3.3 3.2 2.5 1.8 0.4 0.3 0.2 0.3 3.0 14.2 6.8 5.5 5.2 5.1 3.8 2.4 0.5 0.2 0.1 0.2 (b) Random topology E[T] Var[T] N β M∞c1c2c3c5c∞c1c2c3c5c∞ 92.7 3.7 4.8 3.7 3.4 3.2 3.2 3.3 1.2 1.1 1.1 1.1 3.0 1.9 9.2 8.0 7.8 7.8 7.8 12.6 9.5 9.4 9.4 9.4 49 2.7 21.7 4.3 3.5 3.3 3.2 2.6 2.0 0.5 0.3 0.2 0.3 3.0 11.8 7.2 5.7 5.2 4.8 4.3 3.4 0.9 0.6 0.5 0.4 (c) Grid topology E[T] Var[T] N β M∞c1c2c3c5c∞c1c2c3c5c∞ 92.7 2.2 5.0 3.8 3.6 3.6 3.6 7.6 1.9 1.5 1.5 1.5 3.0 1.5 14.4 10.5 10.5 10.5 10.5 37.7 19.9 19.9 19.9 19.9 49 2.7 19.6 4.3 3.5 3.4 3.1 2.6 1.8 0.4 0.3 0.1 0.3 3.0 9.3 7.1 5.5 5.1 4.9 4.4 1.2 0.7 0.5 0.3 0.4 Legend: Nis the number of nodes, βis the path loss exponent of the propagation model, and M∞is the average number of candidates obtained in the c∞case. The other parameters are D= 300 m, σdB = 6, min.dp = 0.25 which goes down approximately to E[T∞]=2.6 (41% of gain) for the c∞ case. Additionally, we can observe that E[T] only decreases from 3.5 to 3.2 when we move from a maximum number of candidates of 2 to 5 (c2to c5). In practice, implementing an OR protocol with a high number of candidates is difficult. This is because the coordination between them increases the signaling overhead and also the possibility of having duplicated transmissions, which reduces the efficiency of the protocol. Therefore, these results suggest that using a small number of candidates (even 2) may be a sensible choice. For β= 3, the delivery probabilities between the nodes is significantly reduced (see figure B.1). This has two effects: First, the SPF algorithm will choose a larger number of hops to reach the destination, thus, increasing E[T] and Var[T]. Second, the number of available links between the nodes will decrease, and thus the average number of available candidates (M∞) 38 Chapter 3. Performance Modeling of Opportunistic Routing will reduce. For instance, in the linear topology with N= 49 nodes, when β increases from 2.7 to 3, E[T1] increases from 4.3 to 6.8, and M∞is reduced from 20.5 to 14.2. However, in this case (N= 49), the density of the network is still sufficiently high such that we obtain approximately the same gains and conclusions as those for β= 2.7 described previously. If we consider the scenarios with low density of nodes (N= 9), the average number of available candidates (M∞) is very small (around 2). Therefore, using OR with a maximum number of candidates larger than 2 has a small effect. E.g. in the Linear topology with β= 2.7 we obtain E[T2] to E[T∞] ranging respectively from 3.4 to 3. The scenarios with the lowest density (N= 9, β= 3) exhibit a higher sensitivity to the topology. For instance, E[T2] = 5.4 (linear), 8.0 (random), 10.5 (grid) when N= 9, β= 3, whereas E[T2] = 3.4, 3.7, 3.8 when N= 9, β= 2.7 or E[T2] = 5.5, 5.7, 5.5 when N= 49, β= 3. This is because the short transmission range and the reduced number of nodes, offer few choices for the selection of good candidates to OR, thus, resulting a performance more sensitive to their position. 3.5 Conclusions In this chapter we have proposed a Discrete Time Markov Chain (DTMC) to analyze the performance that may be achieved using Opportunistic Routing. In our model the nodes are the states of the chain, and the state transitions model how the packet progresses through the network. This model leads to a discrete phase-type distribution for which there exist simple expressions for their distribution and moments. We have shown how our model can be used to analyze OR in a diversity of scenarios that take into account the radio propagation model, the network topology and the maximum number of candidates. We have used our model to obtain numerical results for a shadowing propagation model and three different network topologies: Linear, random and grid. We have compared different scenarios in terms of the expected value and variance of the number of transmissions needed to send a packet from the source to the destination. Our results show that using Opportunistic Routing the expected number of transmissions can be reduced by 20% or more in a typical scenario. Furthermore, this gain can be reached with moderate to low density of nodes. We have also observed that the variance of the number of transmissions may be reduced very much using Opportunistic Routing. This result is specially important in networks requiring QoS. Finally, our results suggest that using a small number of candidates (even 2) may be a sensible choice. CHAPTER 4 Candidate Selection Algorithms in Opportunistic Routing 4.1 Introduction The works in the literature usually compare Opportunistic Routing (OR) using the proposed candidate selection algorithm against a traditional unipath routing algorithm. Furthermore, most of the algorithms have been designed to select all possible candidates to reduce the expected number of transmissions. However, increasing the number of candidates increases also the coordination overhead. Therefore, as we mentioned before, in practice the maximum number of candidates that can be used is limited. In this chapter we compare four candidate selection algorithms that have been proposed in the literature. They range from non-optimum, but simple, to optimum, but with a high computational cost. We have modified the algorithms under study to adopt them with the constraint number of candidates. In this chapter we address the questions: Is there a big difference in performance between the simple and optimal algorithms? What is the computational cost as a function of maximum number of candidates? So, under which conditions it is worth using an optimal algorithm? 4.2 Candidate Selection Algorithms In this section, we describe the candidate selection algorithms under study. These algorithms are: Extremely Opportunistic Routing (ExOR) [12]; Opportunistic Any-Path Forwarding (OAPF) [96]; Least-Cost Opportunistic Routing (LCOR) [31]; and Minimum Transmission Selection (MTS) [58]. ExOR is one of the first and most referenced OR protocols, it is based on ETX and is simple to implement. OAPF has an intermediate complexity: It uses the EAX metric but it does not guarantee to yield the optimum set of candidates. Finally, we have chosen LCOR and MTS because, to the best 40 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing of our knowledge, they are the only two algorithms in the literature that select the optimum set of candidates (i.e. the Candidates Sets (CSs) that minimize the expected number of transmissions). Here we introduce some notations that we use throughout this chapter: •ncand is the maximum number of candidates in each node. Like in chapter 3we shall refer as ncand =∞to the case when the maximum number of candidates is not limited. We shall also use the notation ExOR(n) to refer to ExOR with ncand =n, and similarly for the other algorithms under study (see the legends of figures 4.2-4.5). •Cv,d is the Candidates Set (CS) of node vto reach node d. •ETX(v, d) is the uni-path ETX between two nodes vand d. •EAX(Cv,d, v, d) is the Expected Any-path Transmission (EAX) between two nodes vand dby using Cv,d as the CS. •N(v) is the set of all neighbors of node v. • |S|is the cardinality of the set S. In the following subsections we describe the implementation that we have done for each of the candidate selection algorithms under study. For the sake of being precise, we shall give a pseudocode summarizing our implementations. 4.2.1 Extremely Opportunistic Routing (ExOR) Extremely Opportunistic Routing (ExOR) [12] uses ETX as the metric for selecting the candidates. Algorithm 4.1 shows our implementation of ExOR. Node sruns this algorithm to find its Candidates Set (Cs,d) to reach the destination d. The basic idea of ExOR is running the Shortests Path First (SPF) with weight =1 pij where pij is the delivery probability between two nodes iand j(see section 2.3). The first node after the source in this path is selected as candidate (cand). Then the link between sand cand is removed, and the loop is repeated until no more paths to dare available, or the maximum number of candidates is reached. ETX(cand, d) (or 0 if the cand is the destination) is used to sort the Candidates Set (CS). Assume that node Sin figure 4.1 want to find its CS using ExOR. According to ExOR’s algorithm (see algorithm 4.1), node Sfinds the Shortests Path First (SPF) to Dwhich is S-A-Dwith ETX=3.99 (see table 4.1). Therefore, node Ais selected as the candidate for node S. Then, edge S-Ais removed from the topology and SPF is run again. The new shortest path from Sto D 4.2 Candidate Selection Algorithms 41 Algorithm 4.1: Candidate selection ExOR(s,d,ncand). 1Gtmp ←temporal copy of the network topology 2cost(s)←ET X(s, d) in Gtmp 3Cs,d ← ∅ 4while |Cs,d|< ncand & (s,d) connected in Gtmp do 5cand ←first node after sin the SPF (s, d) in Gtmp 6if cand == dthen 7Cs,d ←Cs,d ∪d 8cost(cand)←0 9else 10 cost(cand)←ET X(cand, d) in Gtmp 11 if cost(cand)< cost(s)then 12 Cs,d ←Cs,d ∪cand 13 end 14 end 15 Gtmp ←delete edge(s, cand) in Gtmp 16 end 17 Cs,d ←Cs,d ordered by cost S0.67 D B A 0.85 0.64 0.4 0.31 0.15 Figure 4.1: An example of Candidate selection. is S-B-Dwith ETX=4.40 and Bis selected as the next candidate. Finally, the ETX of each candidate to the destination dis used to sort the CS (see table 4.1). The final CS of node Sis CS,D ={A, B}.ExOR uses ETX to estimate the closeness to the destination but, this metric does not account the fact that packets are delivered by the candidates under opportunistic forwarding. There is a second version of ExOR [11] proposed in 2005. To cope with the acknowledgment and the coordination issue, ExOR adopts batch transmission; 10-100 packets are collected in a batch to transfer and the next batch starts only when the current batch has completed. For each packet of the same batch, the source node selects a CS, which are prioritized by closeness to the destination. The closeness property of a node is evaluated employing the ETX metric. 48 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing used by the network simulator (Ns-2) [2] (see table B.2). We have assumed that a link between any two nodes exists only if the delivery probability between them is greater (or equal) than min.dp = 0.1. •We assume that the topology and delivery probabilities are known by all nodes, and for each of them it is used one of the algorithms described in sections 4.2.1–4.2.4 to compute the Candidates Set (CS) for the given destination. •Finally, we use the DTMC model described in chapter 3to compute the following performance measures: expected number of transmissions, variance of the expected number transmissions and probability of the number of transmissions. In order to compare the algorithms under study, and since we want to focus on the effect of candidate selection, we have considered the following scenario: (i) in the network there is only one active connection; (ii) perfect coordination between the candidates, i.e. the most priority candidate successfully receiving the packet will be the next forwarder; (iii) the nodes retransmit the packets until successful delivery. We have done this evaluation using the R numerical tool [67]. Each point in the plots is an average over 100 runs with different random node positions. We have used this methodology for each of the algorithms described in sections 4.2.1–4.2.4, and for a different maximum number of candidates: ncand = 2,3,4,5,∞. Recall that we refer as ncand =∞to the case when there is no limit on the maximum number of candidates and all possible nodes can be selected as the candidates. As an estimation of the computational cost of the algorithms, we have measured the execution time it takes to compute the CSs in each scenario. These times have been obtained running the algorithms on a computer with an Intel Xeon Dual-Core-2 2.33 GHz, FSB 1333 MHz, with 4 MB cache and 12 GB of memory. 4.3.1 Expected number of transmission First, we examine in details the case with at most 3 candidates for each node (ncand = 3), as shown in figure 4.2. For the sake of comparison, we have included the scenarios using uni-path routing and also the optimal candidate selection algorithm in the case ncand =∞(we shall refer to it as Opt(∞)). Note that, uni-path routing is equivalent to use ncand = 1 in any of the OR algorithms under study. The curves have been obtained varying the number of nodes, but maintaining the distance D= 300 m between the source and the destination, thus, increasing the density of the network. 4.3 Numerical Results 49 10 15 20 25 30 35 40 45 50 2.4 2.8 3.2 3.6 4 4.4 4.8 5.2 5.6 Uni-path ExOR(3) OAPF(3) LCOR(3) MTS(3) Opt(∞) D=300m, β=2.7, σdB=6, min.dp=0.1 Number of nodes Expected number of transmissions Figure 4.2: Expected number of transmissions in the case ncand = 3. As a first observation in figure 4.2, we can see that using any OR algorithm outperforms the traditional uni-path routing. Regarding the optimal algorithms, LCOR and MTS, we have validated that they choose exactly the same CSs, and thus, the curves are the same. Additionally, for ncand =∞ the expected number of transmissions for LCOR and MTS are the same, so we show only one of the curves obtained with LCOR(∞) and MTS(∞) (indicated as Opt(∞)). We can see that the expected number of transmissions obtained with OAPF is only slightly larger than those obtained with the optimal algorithms. Finally, we observe that the expected number of transmissions required by ExOR is significantly larger than any other OR algorithms. The reasons that motivate this inferior performance of ExOR are the following: recall that ExOR is a simple algorithm that uses ETX as the metric for selecting candidates. It looks for the candidates running SPF after removing the links to the nodes that have already been selected as candidates. By doing this, the candidates tend to be chosen close to each other. In chapter 6we have investigated the optimal position of the candidates and we have shown that they are not clustered, but distributed over distances that approximate to the destination. Therefore, we conclude that ExOR does a coarse selection of the CS. On the other hand, recall that OAPF incrementally adds the nodes to the CS that are most effective at reducing the Expected Any-path Transmission (EAX). Although this does not guarantee choosing the optimal CSs, we can see from the figure 4.2 that the results are very close to the optimal algorithm. Regarding the scenario with ncand =∞, figure 4.2 shows that it achieves a noticeable reduction of the expected number of transmissions compared to 50 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing 10 15 20 25 30 35 40 45 50 4 7 10 13 16 19 22 25 ExOR(∞) OAPF(∞) Opt(∞) D=300m, β=2.7, σdB=6, min.dp=0.1 Number of nodes Mean number of candidates Figure 4.3: Mean number of candidates in the case ncand =∞. the scenario with ncand = 3. However, as shown in figure 4.3, this is at cost of using a large number of candidates. As we mentioned in chapter 3, implementing an OR protocol with a high number of candidates is difficult and possibly will introduce large signaling overhead and duplicate transmissions. Therefore, the differences obtained with ncand = 3 and ncand =∞in a real scenario, are likely to be much smaller than those shown in figure 4.2. For other scenarios we have obtained similar results. For instance, figures 4.4 and 4.5 have been obtained, respectively, maintaining the total number of nodes equal to N= 10 and N= 50 (thus, representing a low and high density network), and varying the maximum number of candidates to: ncand = 1,2,··· ,5 and ∞. Note that ncand = 1 is equivalent to uni-path routing, thus, the expected number of transmissions obtained for ncand = 1 is the same for all algorithms. In the case of ncand =∞all algorithms have almost the same expected number of transmissions. This comes from the fact that in this case there is not any limitation on the maximum number of candidates. Therefore, all nodes which are closer to the destination than the source can be selected as candidates, and all of the algorithms have almost the same CSs. Note that since ExOR uses ETX as the metric to select candidates, the order of candidates may be different compared with the CSs in the other algorithms. Because of that the expected number of transmissions in the case of ExOR with ncand =∞has a very small difference compared with the other algorithms (not noticeable in the graphs). By comparing figures 4.4 and 4.5 we can see that the difference between ExOR and the other algorithms is higher in a dense network (N= 50). 4.3 Numerical Results 51 12345∞ 2.4 3.2 4 4.8 5.6 ExOR OAPF LCOR MTS D=300m, beta=2.7, sigmadB=6, min.sp=0.1 ncand Expected number of transmissions Figure 4.4: Expected number of transmissions for the random topology with N= 10 nodes varying the maximum number of candidates. 12345∞ 2.4 3.2 4 4.8 5.6 ExOR OAPF LCOR MTS D=300m, beta=2.7, sigmadB=6, min.sp=0.1 ncand Expected number of transmissions Figure 4.5: Expected number of transmissions for the random topology with N= 50 nodes varying maximum the number of candidates. This comes from the fact that in a dense network there is a larger number of possible choices of the CSs. Thus, limiting the maximum number of candidates makes the selection of the candidates sets more critical. However, we can see that the difference between OAPF and the optimal algorithms is kept small even in a dense network. We can see that increasing the maximum number of candidates (ncand) from 1 to 2 results in an important gain in all cases and increasing ncand from 5 to ∞is more important in the dense topology. 52 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing 12345∞ 0 0.8 1.6 2.4 3.2 4 4.8 5.6 ExOR OAPF LCOR MTS D=300m, beta=2.7, sigmadB=6, min.sp=0.1 ncand Variance of the expected number of transmissions Figure 4.6: Variance of the expected number of transmissions for the random topology with N= 10 nodes varying the maximum number of candidates. 12345∞ 0 0.8 1.6 2.4 3.2 4 4.8 5.6 ExOR OAPF LCOR MTS D=300m, beta=2.7, sigmadB=6, min.sp=0.1 ncand Variance of the expected number of transmissions Figure 4.7: Variance of the expected number of transmissions for the random topology with N= 50 nodes varying the maximum number of candidates. 4.3.2 Variance of Expected Number of Transmissions One of the metrics which can also be calculated with the markov model proposed in chapter 3is the variance of expected number of transmissions from source to the destination. Figures 4.6 and 4.7 show the variance of expected number of transmissions for a low (N= 10) and high (N= 50) density network, respectively. Since with one candidate all algorithms have the same result as uni-path routing the variances of the expected number of transmissions for ncand = 1 are the same. 4.3 Numerical Results 53 Figures 4.6 and 4.7 show that using OR the variance of the expected number of transmissions is significantly reduced compared with uni-path routing. It is also observed that while the variance decreases with the value of ncand, just a small number of candidates (typically 2 or 3 candidates per node) is enough to attain a significant part of the potential reduction. This effect is even more noticeable when the candidate selection algorithm employed is ExOR. Furthermore, while ExOR is the algorithm that yields the highest mean number of transmissions, as it was shown above, it achieves the lowest variance. The reduction of variance of the expected number of transmissions, compared with uni-path routing, has two important benefits. Firstly, the variability of the transmission delays may be significantly reduced using OR. Secondly, this fact indicates that the number of retransmissions of a packet by the same node may be also reduced using OR. This may also contribute on the reduction of the transmission delay variability, due to the back-off algorithm used at the MAC layer. 4.3.3 Probability Distribution of the Number of Transmissions For having a more detailed comparison, we have included the probability distribution of the number of transmissions for ncand = 1,3 and ∞for a small number of nodes N= 10 and a large one N= 50, in figures 4.8 and 4.9, respectively. The probability curves for the ncand = 1 case (uni-path routing) in both figures 4.8 and 4.9 are almost the same. These figures show that for N= 10 in the uni-path routing, about 14% of packets reach the destination with 3 transmissions, while about 40% of packets need 6 or more transmissions. In figures 4.8 and 4.9 we can see that, by using OR algorithms, the number of transmissions needed to reach the destination is significantly reduced with respect to the uni-path routing approach. The curves for all algorithms except ExOR are almost the same. In a low density network (N= 10), using the optimal candidate selection algorithms ( LCOR or MTS) in the ncand = 3 case, 18% and 37% of packets reach the destination with 2 and 3 transmissions, respectively, while using ExOR only about 5% of packets reach the destination with 2 transmissions. In the network with more nodes (N= 50), LCOR,MTS and even OAPF can select the candidates which are close to the destination. Therefore, as we can see in figure 4.9 by using these algorithms with ncand = 3 about 20% and 50% of packets reach the destination with 2 and 3 transmissions, respectively. By comparing the figures 4.8 and 4.9 we can see that the probabilities change significantly for the ncand =∞case. For instance, in figure 4.9 about 50% 54 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing of packets reach the destination only with 2 transmissions, while in the low dense network (N= 10) only 25% of packets reach the destination with 2 transmissions. Looking at figure 4.3 we can see that, the ncand =∞case uses 25 candidates in a dense network (N= 50). With such a large number of candidates it is likely that some candidate close to the destination will receive the packet, thus, allowing the delivery to the destination with only two transmissions. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0.1 0.2 0.3 0.4 0.5 0.6 Uni-path ExOR(3) OAPF(3) LCOR(3) MTS(3) Opt(∞) D= 300 m, β= 2.7 , σdB= 6 , min.dp= 0.1 Number of transmissions Probability Figure 4.8: Probability of the number of transmissions for the random topology with N= 10 nodes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0.1 0.2 0.3 0.4 0.5 0.6 Uni-path ExOR(3) OAPF(3) LCOR(3) MTS(3) Opt(∞) D= 300 m, β= 2.7 , σdB= 6 , min.dp= 0.1 Number of transmissions Probability Figure 4.9: Probability of the number of transmissions for the random topology with N= 50 nodes 4.3 Numerical Results 55 4.3.4 Execution Time In this section we estimate the computational cost of the algorithms under study by measuring the execution time it takes to compute the CSs towards the destination. Recall that these CSs are: the candidates of the source s towards the destination d, the candidates of these candidates towards d, and so on until d(whose candidates is the empty set). Notice that for ExOR this requires calling Algorithm 4.1 for the source s, for its candidates, the candidates of these candidates, and so on until d. For the other algorithms, computing the CSs of the source requires the computation of all the necessary CSs. This comes from the fact that the other algorithms are based on the EAX metric, which requires the CSs. Therefore, for the algorithms OAPF,LCOR and MTS, the execution time is the time it takes calling only once the algorithms 4.2,4.3 and 4.4, respectively. Figure 4.10 shows the expected number of transmissions versus the execution time in logarithmic scale. We have selected ncand = 3 as a sample case for our study. So, the points in figure 4.10 have been obtained by averaging over the 100 runs of the corresponding points in figure 4.2. The values next to the points represent the number of nodes in the network (N). We can see that for all the algorithms, the larger is the number of nodes the lower is the expected number of transmissions and the higher is the execution time. As expected, the fastest algorithm is ExOR whereas LCOR is the slowest. For instance, when the number of nodes in the network is 50, LCOR needs about 3.3 hours to finish. Obviously, with a maximum number of candidates larger than 3 the execution time will be much longer. OAPF lies between the exhaustive search of the optimal algorithms and the simplicity of ExOR, and thus, has an execution time that falls in between these algorithms, e.g. 0.6 to 47 seconds for the low and high density networks, respectively. MTS and LCOR have the same expected number of transmissions while the execution time of MTS is much lower than LCOR. For instance in the high density network (N= 50), MTS needs about 40 minutes to finish while LCOR needs about 3.3 hours. Recall that MTS(3) first looks for the optimal CSs without limiting the maximum number of candidates, and then the CSs are pruned to at most 3 elements. Therefore, the searching space for finding the optimal sets in MTS(3) is less than LCOR(3), which examines all the subsets of the neighbors of the nodes. By comparing the two optimal algorithms that have been proposed in the literature, we can conclude that MTS outperforms LCOR in terms of the execution time. Additionally, it is possible to obtain candidate selection algorithms, as OAPF, that have a performance close to the optimal algorithms 56 Chapter 4. Candidate Selection Algorithms in Opportunistic Routing 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4 0.05 0.1 1 10 100 500 5000 12000 ExOR(3) OAPF(3) MTS(3) LCOR(3) D=300m, β=2.7, σdB=6, min.dp=0.1 Expected number of transmissions Execution time in log scale (second) N=10 N=10 15 20 25 30 35 40 45 50 50 50 50 N=10 N=10 Figure 4.10: Expected number of transmissions and execution time of all algorithms. with a much lower execution time. With simple algorithms as ExOR, the performance may be significantly less than the optimal. 4.4 Conclusions In this chapter we have compared four relevant algorithms that have been proposed in the literature for the candidate selection in Opportunistic Routing: Extremely Opportunistic Routing (ExOR); Opportunistic Any-Path Forwarding (OAPF); Least-Cost Opportunistic Routing (LCOR); and Minimum Transmission Selection (MTS). They range from the simplicity of ExOR, the intermediate computational complexity of OAPF, to the optimal but high computational cost of LCOR and MTS. We have modified the algorithms such that the maximum number of candidates can be limited. We have used the model proposed in chapter 3to obtain numerical results for a shadowing propagation model and different candidate selection algorithms. We have compared different scenarios in terms of the expected number of transmissions needed to send a packet from source to the destination, variance of expected number of transmissions and the probability of the number of transmissions needed to reach the destination. We also computed the execution time to construct the Candidates Sets (CSs). Our results show that using any OR algorithm outperforms the traditional uni-path routing. Furthermore, if the maximum number of candidates is not limited, all of the algorithms have almost the same expected number of transmissions. Such assumption is not realistic since the algorithms may choose 4.4 Conclusions 57 a large number of candidates, which will introduce large signaling overhead and duplicate transmissions. When the maximum number of candidates is limited, our results show that the expected number of transmissions required by ExOR is larger than the other OR algorithms. This is because of the coarse selection of the CSsofExOR. However, the performance obtained with OAPF has always been very close to the optimal algorithms. We have also observed that the variance of the number of transmissions may be reduced very much using Opportunistic Routing. This result is specially important in networks requiring QoS. Regarding the execution times, that fact that ExOR is based on ETX makes this algorithm much faster than the others. For the optimum algorithms, we have obtained that MTS outperforms LCOR. However, both algorithms require extremely large times to compute the CSs in a dense network (on the order of hours in a modern PC). On the other hand, OAPF is able to run the candidate selection with execution time orders of magnitude lower than the optimum algorithms (on the order of minutes). Therefore, we conclude that a fast and simple Opportunistic Routing candidate selection algorithm (like as OAPF) may be preferable in dynamic networks, where the Candidates Sets are likely to be updated frequently. 64 Chapter 5. Distance Progress Based Opportunistic Routing 20 25 30 35 40 45 50 55 60 65 70 75 80 5.3 5.9 6.5 7.1 7.7 8.3 8.9 9.5 Unipath DPOR(2) POR(2) OAPF(2) ExOR(2) Opt(2) D= 500, β= 2.7, min.dp = 0.1, σdB = 6 Number of nodes Expected number of transmissions Figure 5.2: Expected number of transmissions for the case ncand = 2 20 25 30 35 40 45 50 55 60 65 70 75 80 3.8 4.4 5 5.6 6.2 6.8 7.4 8 8.6 Unipath DPOR(5) POR(5) OAPF(5) ExOR(5) D= 500, β= 2.7, min.dp = 0.1, σdB = 6 Number of nodes Expected number of transmissions Figure 5.3: Expected number of transmissions for the case ncand = 5. nodes that have already been selected as candidates. Although it is simple, this candidate selection algorithm is far from the optimum one. In fact, figure 5.2 shows that ExOR has larger expected number of transmissions than DPOR,OAPF and the Opt. In figure 5.2 we can see that the results for DPOR are very close to the optimum algorithm and OAPF. Recall that DPOR chooses the most effective candidates at increasing the Expected Distance Progress (EDP). By doing this, DPOR does not only consider the closeness of candidates to the destination (like POR), but it also considers the links delivery probability between the forwarder and the candidates as well. 5.4 Performance Evaluation 65 2345 4.8 5.2 5.6 6 6.4 6.8 7.2 7.6 8 ExOR DPOR OAPF Opt POR D= 500 , β= 2.7 , min.dp= 0.1 , σdB= 6 , Nodes= 20 Candidate Expected number of transmissions Figure 5.4: Expected number of transmissions for the case N= 20 varying the number of candidates. 2345 4 4.4 4.8 5.2 5.6 6 6.4 6.8 7.2 7.6 8 8.4 8.8 9.2 ExOR DPOR OAPF POR D= 500 , β= 2.7 , min.dp= 0.1 , σdB= 6 , Nodes= 80 Candidate Expected number of transmissions Figure 5.5: Expected number of transmissions for the case N= 80 varying the number of candidates. Obviously, increasing the number of candidates in each node decreases the expected number of transmissions. Figure 5.3 shows the expected number of transmissions of each algorithm with the maximum number of candidate set to 5 (ncand = 5). Note that, since the computational cost of the optimum algorithm with 5 candidates is extremely high, we could not obtain the results for the optimum algorithm in the case of ncand = 5, in a reasonable amount of time. However it was shown in chapter 4that the results of OAPF is almost close to the optimum algorithm. Figure 5.3 shows that, with 5 candidates the expected number of transmis- 66 Chapter 5. Distance Progress Based Opportunistic Routing 20 25 30 35 40 45 50 55 60 65 70 75 80 0.03 0.2 0.4 2.5 8.5 200 500 2000 7800 ExOR(3) DPOR(3) OAPF(3) Opt(3) POR(3) D= 500 ,β= 2.7 ,min.dp= 0.1 ,σdB = 6 Number of nodes Execution Time in log scale (second) Figure 5.6: Execution time for the case ncand = 5. sions of POR is improved about 50%, compared to the case of 2 candidates (see figure 5.2), and outperforms ExOR. However, implementing an OR protocol with a high number of candidates is difficult, and possibly will introduce large signaling overhead and duplicate transmissions. Regarding DPOR, figure 5.3 depicts that, it achieves almost the same performance as OAPF. For other scenarios we have obtained similar results. For instance, figures 5.4 and 5.5 have been obtained, respectively, maintaining the total number of nodes equal to N= 20 and N= 80 (thus, representing a low and high density network), and varying the maximum number of candidates to: ncand = 2,3,··· ,5. The expected number of transmissions of POR in both scenarios is only better than ExOR when the maximum number of candidates is set to 5. On the other hand, DPOR,OAPF and Opt give always almost the same results. 5.4.2 Execution Time In this section we estimate the computational cost of the algorithms under study by measuring the execution time that it takes to compute the Candidates Sets (CSs) of all nodes in the network towards the destination. The algorithms were run on a PC with 2 processors Intel Xeon Quad-Core 2.13 GHz and 24 GB of memory. The execution time is shown in figure 5.6, in logarithmic scale. We have selected ncand = 3 as a sample case for our study. As we expected, the two fastest algorithms are POR and ExOR, and the optimum algorithm has the longest execution time. For instance, when the number of nodes in the 5.5 Conclusions 67 network is 80, the optimum algorithm needs about 2 hours and 10 minutes to finish. Obviously, with a maximum number of candidates larger than 3 the execution time will be much longer. Although the execution time of POR or ExOR is lower than the other algorithms, recall from section 5.4.1 that POR or ExOR perform worse in terms of expected number of transmissions. On the other hand, even if DPOR achieves almost the same expected number of transmissions than OAPF and Opt, figure 5.6 shows that DPOR has an execution time significantly lower than these algorithms. E.g. only 37 seconds were needed to compute all Candidates Sets with DPOR in a network with 80 nodes, while more than 100 seconds and 2 hours were needed, respectively, to compute the candidates sets using OAPF and Opt. We conclude that DPOR achieves a performance close to the optimum, but with a low computational cost. 5.5 Conclusions In this chapter we have proposed a new metric that we call Expected Distance Progress (EDP). EDP measures the expected distance progress towards the destination when a packet is sent using Opportunistic Routing. We propose a hop-by-hop candidate selection and prioritization algorithm based on EDP called Distance Progress based Opportunistic Routing (DPOR). DPOR tries to maximize EDP, and thus, minimize the expected number of transmissions using OR. In DPOR, each node selects its Candidates Set (CS) independently without considering the other nodes’ Candidates Sets. Our proposal does not need the whole topology information of the network to find the CSs. Only the neighbors’ position and the links delivery probability to reach them are required. We have compared DPOR with four other relevant candidate selection algorithms proposed in the literature: ExOR,OAPF,MTS and POR. Numerical results show that the expected number of transmissions of ExOR and POR are far from the optimum algorithm. On the other hand, DPOR and OAPF have almost the same expected number of transmissions as the optimum algorithm. We also have evaluated the computational cost of the algorithms. Our results show that obtaining the Candidates Sets with DPOR is much faster than OAPF and MTS. We conclude that DPOR is a fast and efficient OR candidate selection algorithm. Additionally, each node requires only neighbors’ and destination geographic positions and the delivery probability to the neighbors nodes. Indeed DPOR needs much less information compared to the most of candidate selection algorithms proposed in the literature, which require the whole topology information. CHAPTER 6 Maximum Performance of Opportunistic Routing 6.1 Introduction In this chapter we study the maximum gain that can be obtained using Opportunistic Routing (OR). Previous works have studied OR selecting the OR candidates on a given network topology, and comparing the efficiency with the traditional uni-path routing. The efficiency is measured in terms of the expected number of transmissions from the source to the destination. Therefore, we shall refer to gain as the relative difference of the expected number of transmissions required with OR with respect to the traditional uni-path routing. 6.2 Optimal Positions of Candidates We study the position of the candidates in order to maximize the progress towards the destination. The ingredients of our model are: The maximum number of candidates per node n, and the formula for the delivery probability at a distance d,p(d), which we suppose to be the same for all the nodes. Assume that the destination is far from a generic test node for which we are looking the candidates. Clearly, the optimum candidates will be located over the segment between the test node and the destination (see figure 6.1). Let {c1, c2,···cn}be the ordered set of candidates of the generic test node (cnthe highest priority, and c1the least one), and dithe distance from the test node to the candidate ci(see figure 6.1). We assume that a coordination protocol exist among the candidates, such that the highest priority candidate receiving the packet will forward the packet (if it is not the destination), while the other nodes will simply discard it. Assume that p(di) is the delivery probability from the test node to the candidate ci, and let ∆nbe the random 70 Chapter 6. Maximum Performance of Opportunistic Routing c1c2cn test node destinationsource ··· ··· d1 d2 dn ··· Figure 6.1: Test node and its candidates. variable equal to the distance reached after one transmission shot. Clearly, E[∆n] = dnp(dn)+ dn−1p(dn−1) (1 −p(dn))+ ···+d1p(d1) n Y i=2 (1 −p(di)) =dnp(dn) + (1 −p(dn)) E[∆n−1]. (6.1) We are interested in looking for the value dn∈(dn−1,∞) that maximizes equation (6.1). Note that, this value maximizes also the function f(x) = (x−a)p(x) (6.2) where a= E[∆n−1]. Notice that f(a) = 0 and f(x) is increasing in the neighborhood of a. We shall assume that the delivery probability p(x) is differentiable and limx→∞ x p(x) = 0, which make plausible to further assume that the function f(x) is quasi-concave in x∈(a, ∞), having a unique critical point equal to its global maximum in this interval. This condition holds e.g. for the shadowing model we use to assess p(d). Additionally, since E[∆n−1]< dn−1< dn, we can reduce the optimization domain to dn∈(dn−1,∞). Under these conditions we can compute the distances di, i= 1,··· , n that maximize (6.1) by solving: ∂E[∆i] ∂di = 0, di∈(di−1,∞), i = 1,··· , n which gives the set of equations: p(di)+(di−E[∆i−1]) p0(di)=0, di∈(di−1,∞), i = 1,··· , n (6.3) where E[∆0] = 0 and d0= 0. Note that using equation (6.3) we can compute d1by solving p(d1) + p0(d1)d1= 0, after which we can compute d2and so on until dn. We shall refer to these distances as the MPD. In the sequel we shall refer to them as d1,··· , dn, and denote the expected number of 6.3 Maximum Performance of OR 71 transmissions given by equation (6.1) using these distances as E[∆∗ n]. Note also that a consequence of equation (6.3) is that the Maximum Progress Distances (MPDs) for the already existing candidates do not change if we decide to add a new candidate to the candidate set. 6.3 Maximum Performance of OR In this section we investigate the performance of OR in terms of the expected number of transmissions to send a packet from the source to the destination. To do so, we define τnto be the random variable equal to the number of transmissions required to send a packet from the source to the destination using ncandidates per node. We are thus interested in obtaining bounds to E[τn]. 6.3.1 A Lower Bound with Infinite Candidates We first derive a result that will be useful in the bounds derived afterwards. Assume an infinitely dense network where the nodes can choose an infinite number of candidates. Assume further that there is not limitation on the minimum delivery probability that live links can have. Let τ∞be the random variable equal to the number of transmissions required to send a packet from the source to the destination in such network. With these assumptions, some node as close to the destination as we want can receive the packet with probability 1 (we can choose a region arbitrarily close to the destination that contains an infinite number of candidates). Therefore, if the destination does not receive the packet after it is firstly transmitted by the source, some candidate arbitrarily close to it will receive it an relay it to the destination with just one more transmission, and thus, τ∞= 2. Let Dbe the distance between the source and the destination. From the previous discussion we conclude that: E[τ∞] = p(D) + 2(1 −p(D)) = 2 −p(D).(6.4) 6.3.2 A Lower Bound for the Expected Number of Transmissions Assume a network with ncandidates per node. Since E[∆∗ n] computed in section 6.2 using the MPDs given by equations (6.3) is the maximum progress towards the destination after every transmission shot, we have that the expected number of transmissions to send a packet from the source to the destination (E[τn]) is lower bounded as follows E[τn]≥D E[∆∗ n](6.5) 72 Chapter 6. Maximum Performance of Opportunistic Routing where Dis the distance between the source and the destination. The bound given by equation (6.5) will be tight as long as the distance Dis large compared with dn, and the nodes are located at the Maximum Progress Distances (MPDs). Clearly, when the nodes become closer than dnto the destination, the optimal positions cannot be given by the MPDs. In this case the highest priority candidate will be the destination. Thus, the distance of the most priority candidate will be the distance to the destination, and the optimal position of the other candidates should be computed taking the distances that minimize the EAX formula. In fact, this “boundary effect” will propagate to the position of the other nodes between the source and the destination, and their optimal positions may be slightly different than those obtained using the Maximum Progress Distances (MPDs) (we shall investigate this in section 6.6). Nevertheless, the expected distance progress after each transmission could not be as high as the one obtained using the MPDs, which guarantees that (6.5) is a lower bound. We can use the result obtained for an infinite number of candidates to improve the bound given by (6.5). First, the expected number of transmissions cannot be less that the value given by equation (6.4). Therefore, we have that: E[τn]≥max 2−p(D),D E[∆∗ n].(6.6) The bound given by (6.6) can still be improved when n > 1 as we explain next. As we said before, when the nodes are closer than dnto the destination, the position of the nodes cannot be the MPDs. Therefore, using E[∆∗ n] as the progress in this region may be a coarse approximation. To estimate the progress in this region we note that before the packet reaches the destination, at least one node in the interval [D−dn, D) will receive it, because the furthest candidate of any node is at a distance dn. We shall refer to the first node in this interval that receives the packet as v(x), where xis the distance from this node to the destination (we assume that the source is located at 0, and the destination at D). Now, the number of transmissions from the source to v(x) can be lower bounded by (D−x)/E[∆∗ n] (i.e. assuming the maximum progress), and the number of transmissions from v(x) to the destination can be lower bounded assuming an infinite number of candidates between v(x) and the destination (equation (6.4)). Adding both terms we have E[τn|v(x)] ≥(D−x)/E[∆∗ n]+2−p(x) = D/E[∆∗ n]+2−p(x)−x/E[∆∗ n]. Thus, if we want a lower bound we must take xthat minimizes E[τn|v(x)] in the interval x∈(0, dn]. 6.4 Numerical Results 73 Summing up, we have that: E[τn]≥                 max 2−p(D),D E[∆∗ 1], n = 1 max 2−p(D),D E[∆∗ n]+ inf x∈(0, dn]2−p(x)−x E[∆∗ n], n > 1 (6.7) 6.3.3 An Upper Bound for the Gain Let us denote by τnthe number of transmissions when the candidates are optimally placed. In order to measure the improvement that can be reached using OR we define the gain (Gn) as the relative difference of the expected number of transmissions required with the OR with ncandidates (E[τn]), with respect to the uni-path routing case. Note that OR with only 1 candidate per node is equivalent to uni-path routing. Therefore, we shall refer to the expected number of transmissions with uni-path routing as E[τ1], and thus: Gn=E[τ1]−E[τn] E[τ1]= 1 −E[τn] E[τ1].(6.8) Using the same intuition as in (6.5) we can write D E[∆∗ 1]≤E[τ1]≤dD/d1ed1 E[∆∗ 1](6.9) and using the lower bound for E[τn] and the upper bound for E[τ1] it follows from (6.8) that Gn≤1−D/d1 dD/d1e E[∆∗ 1] E[∆∗ n].(6.10) 6.4 Numerical Results We now give some numerical examples of the formulas derived in the previous sections. We shall assume that the delivery probability p(d) is given by equation (B.5). Substituting p(d) in the equations (6.3) and solving them numerically we obtain the maximum progress distances for the candidates shown in figure 6.2. 80 Chapter 6. Maximum Performance of Opportunistic Routing σdB=6 Candidate Distance of the candidate [m] 50 100 150 200 250 300 1 2 3 4 5 6 7 8 9 10 β 2.7 3 3.3 Figure 6.11: Maximum Progress Distances of the candidates (thin lines) and its d1/4 (dashed line) and d1/2 (dot-dashed line) approximations. been increased until the minimum obtained does not vary significantly. Obviously, the exhaustive search becomes un feasible as the maximum number of candidates, n, or the network size, D, grow. For this reason, we have limited this method to a maximum number of candidates equal to n= 1 and n= 2. Nevertheless, as we will see in the following, these two scenarios are enough for validation purposes. Figure 6.9 compares the optimal distances (d∗ i) and the Maximum Progress Distances (di) as functions of D. The optimum mean number of transmission obtained for the optimal distances are shown in Figure 6.10 along with their corresponding lower and upper bounds. We observe that the optimal distances converge to the Maximum Progress Distances (d1≈102 mand d2≈150 m) when Dgrows. It is also observed that while the MPDs of the first candidate (d1) are the same for different values of the maximum number of candidates, the optimum distances d∗ 1are different for n= 1 and for n= 2, although they converge to the same value (that of the Maximum Progress Distance, d1, as we said before). Notice that, as expected, when n= 1 and Dis a multiple of d1, the optimal distance equals the Maximum Progress Distance (d∗ 1=d1) and the lower bound of V1(D) turns out to yield an exact value. Also, as it has been predicted, the lower bound for V1(D) is tighter than that for V2(D). On the other hand, in both cases (n= 1,2) when Dgrows the shape of Vn(D) tends to be a straight line whose slope is matched by that of the lower bound, i.e., by 1/E[∆∗ n]. Moreover, the shape of V2(D) gets smooth more rapidly than V1(D) does. A similar observation can be made about the rate of convergence of the optimal distances to the MPDs. 6.7 Sensitivity to Node Positions 81 6.7 Sensitivity to Node Positions The Maximum Progress Distances computed in section 6.2 can be of practical interest in the design of a static network using OR. E.g the back-haul of a mesh network, or the position of the nodes in a sensor network. A first approach could be the Quasi Optimal OR Network described in the previous section. However, for such network the number of nodes increases nearly exponentially with the distance between the source and the destination, D, as shown in figure 6.8. In this section we look for positions of the nodes that, being close to their optimal values, allow reducing the number of nodes of the network. Looking at the MPDs obtained for different parameters of the propagation model (figure 6.2), we can observe that d2≈d1+d1/2 and d3≈d1+d1/2+ d1/4. This suggest that a good compromise is positioning the nodes equally spaced at a distance d1/4, choosing d1for the first candidate, ˆ d2=d1+d1/2 for the second, and ˆ di=d1+d1/2+(i−2) ×d1/4 for the candidates i > 2. Doing this way, a distance Dwould require a number of nodes N≤ 4·dD/d1e. If only 2 candidates are going to be used, or if we wish to reduce further the number of nodes, a coarser approach would be positioning the nodes equally spaced at a distance d1/2, choosing d1for the first candidate and ˆ di=d1+ (i−1) ×d1/2 for the candidates i > 2. Doing this way, the required number of nodes would be N≤2· dD/d1e. We shall refer to these approximations as d1/4 and d1/2 respectively. Figure 6.11 shows the Maximum Progress Distances computed as in section 6.2 and its d1/4 and d1/2 approximations. Figures 6.12 and 6.13 show the sensitivity of the expected number of transmissions to the d1/4 and d1/2 approximations. As in section 6.4, we have used a distance between the source and the destination D= 300 m, and three values of the loss exponent of the propagation model: β= 2.7, β= 3 and β= 3.3. For each value of βfigure 6.12 shows four curves of the expected number of transmissions: (i) the lower bound computed as in section 6.3 (note that these curves are the same than those shown in figure 6.4); (ii) using the QOO network of section 6.5 (solid lines); and (iii, iv) using its d1/4 (dashed line) and d1/2 (dot-dashed line) approximations. Figure 6.13 shows the number of nodes of the networks that where used to compute the expected number of transmissions for the corresponding cases (ii, iii, iv) of figure 6.12. Figure 6.12 shows that the expected number of transmissions obtained for the QOO network is very close to the lower bound. Nevertheless, figure 6.13 shows that building the QOO network requires a high number of nodes. The maximum value is 665 nodes, obtained for β= 3.3 (where the nodes’ coverage is the shortest) and 10 candidates per node. Figure 6.12 shows too 82 Chapter 6. Maximum Performance of Opportunistic Routing D=300 m, σdB=6 Number of candidates per node Expected number of transmissions 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 β 2.7 3 3.3 Figure 6.12: Expected number of transmissions: (i) Lower bound (thin lines), (ii) using the QOO network of section 6.5 (solid lines), (iii, iv) using, respectively, its d1/4 (dashed line) and d1/2 (dot-dashed line) approximations. D=300 m, σdB=6 Number of candidates per node Number of nodes (log scale) 5 7 1010 20 30 50 70 100100 200 300 500 700 1 2 3 4 5 6 7 8 9 10 β 2.7 3 3.3 Figure 6.13: Number of nodes of the networks used in figure 6.11 (i) using the QOO network of section 6.5 (solid lines), (ii, iii) using its d1/4 (dashed line) and d1/2 (dot-dashed line) approximations. that the expected number of transmissions obtained for the d1/4 and d1/2 approximations it is also very close to the lower bound. Only for β= 3.3 and more than 5 candidates per node the difference is noticeable. However, in figure 6.13 we can see that the number of nodes using the d1/4 and d1/2 approximations is enormously reduced (e.g. it is 27 and 15 nodes respectively for the d1/4 and d1/2 approximations in the same scenario for which 665 nodes are used with the QOO network). 6.8 Candidate Selection Algorithm Based on MPD 83 We conclude that choosing the position of the 2 candidates closest to the sender near to their optimal positions, is the most critical in order to minimize the expected number of transmissions. Consequently, what we have called d1/2 approximation may be a sensible rule of thumb in the design of the node positions in a static network using OR. 6.8 Candidate Selection Algorithm Based on MPD In this section we proposed a new candidate selection algorithm based on MPDs that we call Candidate selection based on Maximum Progress Distance (CMPD). It tries to select the candidates that are located at the Maximum Progress Distance. Assume that there are Nnodes in the network with a source sand destination d. We assumed that: all nodes v∈Nknow the position coordinates of their neighbors, N(v) and the destination d. We have used Dx,y to refer the geographic distance between two nodes xand y. Algorithm 7shows the pseudo-code of CMPD for a node vto select its Candidates Set to reach the destination d. The parameter ncand in algorithm 7is the maximum number of candidates in each node. Let ˆcibe a virtual candidate of vthat lies on the straight line between vand the destination dat distance di. The value of diis given by the previous results obtained in section 6.2 (see figure 6.2). Note that, the obtained value for di, i∈ {1,2, . . . , ncand}, in section 6.2 is valid when the destination is far away from the forwarder i.e., Dv,d > dncand. Therefore, when the distance between source and the destination is shorter than dncand we shrink the MDP distances (di,i∈ {1,2, . . . , ncand}) such that dncand =Dv,d (see lines 1–5). The corresponding candidate ciis chosen from the nodes in N(v) which is the one closest to ˆci, i.e, ci= arg minc∈N(v)Dc,ˆci. Note that cishould be closer than vto the destination (Dci,d < Dv,d). Finally, the candidates set is order according to the closeness of each candidate to the destination. The candidates which is nearer to the destination will have higher priority. 6.8.1 Performance Evaluation of CMPD In this section we study the performance of CMPD, compared to the other candidate selection algorithms. We have compared our proposal (CMPD) with four candidate selection algorithms that have been studies in chapters 5. The algorithms for our comparisons are: ExOR [12], OAPF [96], MTS [58] and DPOR [25]. 84 Chapter 6. Maximum Performance of Opportunistic Routing Algorithm 6.1: Candidate.selection.MPD(v,d,ncand). Data: Dx,y: Geographic distance between nodes xand y ˆci:ith candidate which is located at the optimum position. di: Geographic distance between vand ˆci. 1if Dv,d < dncand then 2for i=1 to ncand do 3di←di*Dv,d/dncand; 4end 5end 6N(v) = {n=neighbor(v)|Dn,d < Dv,d} 7i←1 8Cv,d ←ø 9while |Cv,d|< ncand &N(v)6= ø do 10 cand ←arg minc∈N(v)Dc,ˆci 11 Cv,d ←Cv,d ∪cand 12 N(v)←N(v)\cand 13 i←i+ 1 14 end 15 Order Cv,d according to Dci,d, ci∈Cv,d 6.8.2 Methodology In order to compare different algorithms, and since we want to focus on the effect of candidate selection, we have assumed that there is a perfect coordination between the candidates, i.e. the most priority candidate successfully receiving the packet will be the next forwarder. The nodes retransmit the packets until successful delivery. Furthermore, we have assumed that there is only one active connection in the network. We compare the performance of each algorithm in terms of the expected number of transmissions needed to send a packet from the source to the destination and the execution time of each algorithm. We consider scenarios with different number of nodes (20 ≤N≤80) randomly placed in a square field with diagonal D= 500 m, except the source and the destination which are placed at the diagonal end points. Each point in the plots is an average of 100 runs with different random node positions. The delivery probabilities have been assigned with the shadowing model with β= 2.7 and σdb = 6.0. In the candidate selection algorithm, we have assumed that a link between any two nodes exists only if the delivery probability between them is greater (or equal) than min.dp = 0.1. We have compared the algorithms for different maximum number of candidates: ncand = 2 and 3. We shall use the 6.8 Candidate Selection Algorithm Based on MPD 85 20 25 30 35 40 45 50 55 60 65 70 75 80 5.3 5.5 5.7 5.9 6.1 6.3 6.5 D= 500 , β= 2.7 , min.dp= 0.1 , σdB= 6 Number of nodes Expected number of transmissions ExOR(2) OAPF(2) Opt(2) CMPD(2) DPOR(2) Figure 6.14: Expected number of transmissions for the case ncand = 2 20 25 30 35 40 45 50 55 60 65 70 75 80 4.5 4.7 4.9 5.1 5.3 5.5 5.7 5.9 6.1 6.3 D= 500 , β= 2.7 , min.dp= 0.1 , σdB= 6 Number of nodes Expected number of transmissions ExOR(3) OAPF(3) Opt(3) CMPD(3) DPOR(3) Figure 6.15: Expected number of transmissions for the case ncand = 3. notation ExOR(n) to refer to ExOR with ncand =n, and similarly for the other algorithms under study. 6.8.3 Expected Number of Transmissions Figures 6.14 and 6.15 show the expected number of transmissions of different algorithm in the case of ncand = 2 and 3 candidates, respectively. The curves have been obtained varying the number of nodes, but maintaining the distance D= 500 m between the source and the destination, thus, increasing the density of the network. In all figures we use the notation Opt(n) to refer to the optimum candidate selection algorithm. Note that, 86 Chapter 6. Maximum Performance of Opportunistic Routing we have used MTS [58] for the optimum candidate selection algorithm. As a first observation in figure 6.14, we can see that increasing the number of nodes causes decreasing the expected number of transmissions in all algorithms. The results for CMPD in figure 6.14 are very close to OAPF, DPOR and the optimum algorithm. Recall that CMPD chooses the most closest node to the virtual node which is located at the optimum position. Obviously, increasing the number of candidates in each node decreases the expected number of transmissions. Figure 6.15 shows the expected number of transmissions of each algorithm with the maximum number of candidate set to 3 (ncand = 3). The expected number of transmissions for CMPD is very close to DPOR,OAPF and the optimum algorithm while ExOR has much more expected number of transmissions than the others. 6.8.4 Execution Time In this section we evaluate the computational cost of the algorithms under study by measuring the execution time that it takes to compute the candidates sets of all nodes in the network towards the destination. Like in chapter 5, the algorithms were run on a PC with 2 processors Intel Xeon Quad-Core 2.13 GHz and 24 GB of memory. The execution time is shown in figure 6.16, in logarithmic scale. We have selected ncand = 3 as a sample case for our study. As expected, the fastest algorithms are CMPD and ExOR, and the optimum one has the longest execution time. For instance, when the number of nodes in the network is 80, the optimum algorithm needs about 2 hours to finish. Obviously, with a maximum number of candidates larger than 3 the execution time will be much larger. OAPF and DPOR are in the middle of the exhaustive search of the optimal algorithms and the simplicity of CMPD and ExOR, and thus, has an execution time that falls in between these algorithms. E.g. for OAPF the execution time is 2.6 to 117 seconds for N= 20 and N= 80 nodes, respectively. Although the execution time of ExOR is close to CMPD, its expected number of transmissions is much higher than CMPD (see figure 6.15). Furthermore, ExOR needs to know the whole network topology while CMPD just need the position of the destination and the neighbors. 6.9 Node Position in Grid OR Networks In this section we investigate whether the d1/2 approximation proposed in previous section can be also used in an OR network with a grid topology. We consider a square grid with Nnodes, and denote by dthe distance 6.9 Node Position in Grid OR Networks 87 20 25 30 35 40 45 50 55 60 65 70 75 80 0.1 0.2 0.9 2.5 8.5 200 500 2000 7800 D= 500 ,β= 2.7 ,min.dp= 0.1 ,σdB= 6 Number of nodes Execution time in log scale (second) ExOR(3) OAPF(3) Opt(3) CMPD(3) DPOR(3) Figure 6.16: Execution time in the case ncand = 3. between two adjacent nodes (see figure 6.17). Clearly, the best positions for those candidates to reach destinations located in verticals or horizontals lines with respect the source will be the MPD. Thus, setting d=d1/2 would be a good rule of thumb for these destinations. However, most destinations are not located in these lines, thus, it is not clear whether a shorter value for dmay be a better choice. In order to investigate an appropriate value for dwe have varied its value, while maintaining the number of nodes of the grid, N. We have assumed that the source Vsand the destination Vdare located at positions (1,1) and (i,n) where i∈ {1, ..., n}, respectively (see figure 6.17). Furthermore, we refer to Das the distance between Vsand Vd. We have used CMPD which is proposed in section 6.8, to select the candidates of the node towards each destination. We shall use the notation CMPD(n) to refer to CMPD with ncand =n. The link delivery probabilities between two nodes have been assigned with the shadowing model with β= 2.7 and σdb = 6.0. We have assumed that a link between any two nodes exists only if the delivery probability between them is greater (or equal) than min.dp = 0.1. Note that varying d, the value of D, and possibly the nodes chosen by the candidate selection algorithm also change. Thus, in order to compare the goodness of the different values of d, we have defined the metric that we shall call Average Distance Progress (ADP)as: ADP(d, Vs, Vd) = D(d, Vs, Vd) EAX(d, Vs, Vd)(6.12) where D(d, Vs, Vd) is the distance between the source Vsand the destination Vd, and EAX(d, Vs, Vd) is expected number of transmissions (EAX) from the 88 Chapter 6. Maximum Performance of Opportunistic Routing (1,1) (1,2) (1,n) (n,1) (n,2) (n,n) (2,n)(2,2) (2,1) d d d d d Figure 6.17: Grid topology. source Vsto the destination Vdusing the candidates chosen for a given value of d. Note that ADP(d, Vs, Vd) represents the average number of meters that a packet progresses towards Vdat each transmission shot. Therefore, the optimum value of dwould maximize equation (6.12). Figures 6.18 shows the value of ADP (d, Vs, Vd) for N= 400 nodes varying the distance between adjacent nodes on the square side (d) in the range 1≤d≤200. The curves have been obtained for different maximum number of candidates: ncand ={2,3,5}. In figure 6.18, we have fixed the position of the source and the destination at the diagonal end points, i.e. Vs= (1,1) and Vd= (20,20). For the sake of comparison, we have included the value of d1/2 (see legend Op−Position in figure 6.18). For a shadowing propagation model with parameters β= 2.7 and σdb = 6.0, it is d1/2≈51 m (see figure 6.2). Figure 6.18 shows that the larger is the maximum number of candidates (ncand), the higher is the ADP. For each ncand, the vertical lines in figure 6.18 show the values of dthat maximize ADP. Figure 6.18 shows that the curves of ADP are rather flat around their maximum point. For instance, with ncand = 2 ADP reaches its maximum (102 m) at d= 36 m. However, using d=d1/2 = 51 m it is obtained ADP= 97 m, only 5% smaller that the maximum. Figure 6.18 shows that the optimum dis smaller than d=d1/2 = 51 m for ncand = 2, while it is higher for ncand = 3,5. The reason is the following. Recall that the optimum position of the first candidate is d1, and the second is very close to d1/2. Therefore, choosing d= (d1/2)/√2≈36 m we obtain the best position for the candidates in the diagonal. If more than 2 candidates are used, the best position of the other candidates is not well fitted by nodes in the diagonal. Thus, the candidate selection algorithm 6.9 Node Position in Grid OR Networks 89 1 20 40 65 80 100 120 140 160 180 200 20 35 50 65 80 95 110 125 140 155 N=400, Vs=(0,0), Vd=(20,20), β=2.7, min.dp=0.1, σdB=6 Distance between two adjacent nodes on the square side ADP CMPD(2) CMPD(3) CMPD(5) Op-Position Figure 6.18: ADP for Vs= (1,1) and Vd= (20,20), varying the distance between two adjacent nodes on the square side. 1 20 40 65 80 100 120 140 160 180 200 10 30 50 70 90 110 130 150 Mean value of Distance/EAX, N=400, src=(0,0) Distance between nodes on the square side mean value of ADP CMPD(2) CMPD(3) CMPD(5) Op-Position Figure 6.19: Mean value of ADP for Vs= (1,1) varying the distance between nodes on the square side. chooses also nodes out of the diagonal, and closer to the sending node. This motivates that a slightly higher performance can be achieved using a higher value for d, as shown in figure 6.18. Figure 6.19 shows the average value of ADP over all destinations in one side of the square opposite to the source, i.e. Vd= (i, 20), i ∈ {1,2, ..., 20}. As before, the vertical lines are located at d=d1/2 = 51 m and the values of dthat maximize ADP. Figure 6.19 shows that all vertical lines almost overlap. 96 Chapter 7. Multicast Delivery using Opportunistic Routing sets: Definition 1 Non-Redundant-Destinations-Set (NRDestSet): is the set of destinations reachable by only one candidate. I.e. for each destination dj∈NRDestSet there is only one candidate ciin the Ack-Table which is able to reach dj. Additionally, we shall refer to the set of such candidates as the Non-Redundant-Candidates-Set (NRCandSet). Definition 2 Redundant-Destinations-Set (RDestSet): is the set of destinations dkreachable by at least two candidates, e.g., ciand cj. We shall refer to the set of such candidates as the Redundant-Candidates-Set (RCandSet). So, if a candidate, e.g., ci, is removed from the RCandSet, then there is, at least, another candidate in RCandSet which is able to reach any destination dk∈RDestSet. Note that, the destination sets NRDestSet and RDestSet are disjoint. However, this might not be true for the Candidates Sets NRCandSet and RCandSet. To create the non-redundant and redundant sets of candidates and destinations, node suses its large candidate set, Cs,dj 10 , dj∈ D, defined in section 7.2.1. Here, the large CS is used instead of the small one in order to increase the chance of reaching all destinations with the minimum number of candidates. For example, it may happen that a candidate cidoes not appear in the small candidates set to reach destination dj,ci/∈Cs,dj 2, but it is in the small candidate set of another destination dk,ci∈Cs,dk 2. If cireceives the packet and appears in the large Candidates Set (CS) of dj(ci∈ Cs,dj 10 ), then node scan also use cito reach destination dj. Algorithm 7.1 shows the pseudocode used by a node to compute the Forwarding-Set and its Bind-Destinations. The general aim of algorithm 7.1 is to select few and good candidates to reach all destinations such that the expected number of transmissions is minimized. The algorithm works as follows: First node screates the Non-Redundant-Set and Redundant-Set for both candidates and destinations (NRCandSet,NRDestSet,RCandSet and RDestSet). For each destination dj∈NRDestSet the algorithm assigns the only possible candidate ci∈NRCandSet (lines 2-6). Recall that NRDest- Set is the set of destinations djreachable by only one candidate. Therefore, for each destination in the Non-Redundant-Destinations-Set there is only one possible choice from Non-Redundant-Candidates-Set to add to the Forwarding-Set. Then the algorithm chooses the candidates from RCandSet to reach the destinations in the RDestSet. For these destinations there are multiple choices 7.2 Multicast Opportunistic Routing Protocol (MORP) 97 Algorithm 7.1: Computation of the Forwarding-Set and its Bind- Destinations by node s. Data:Ds,Bind-Destinations of node s. 1Find RCandSet, RDestSet, NRCandSet and NRDestSet 2forall the dj∈NRDestSet do 3c←ci∈NRCandSet and ci∈ Cs,dj 10 4Add cto the Forwarding-Set 5Add djas the Bind-Destinations of c 6end 7S ← RCandSet 8while TRUE do 9C←CostFunc(S) 10 R ← arg min T=S\ci CostFunc(T) 11 C0←CostFunc(R) 12 if (C0−C)/C > Threshold then 13 break 14 else 15 S ← R 16 end 17 end 18 forall the dj∈RDestSet do 19 c←arg min ci∈S &ci∈Cs,dj 10 ET X(ci, dj) 20 Add cto the Forwarding-Set 21 Add djas the Bind-Destinations of c 22 end of candidates. The optimum choice would minimize the expected number of transmissions to reach all destinations. However, even for a single destination, computing the expected number of transmissions is an equation with a high computational cost (see e.g. [32]). For multiple destinations there has not been proposed any exact equation to compute the expected number of transmissions, and in any case, the computational cost would be extremely high. Additionally, in [16] we have observed that the performance results are not very sensitive to the selection of best candidates. Therefore, MORP builds the Forwarding-Set using the following simple cost function as an estimation of the expected number of transmissions to reach all destinations in RDestSet, using the candidates in the set S: CostF unc(S) = X dj∈RDestSet min ci∈S ETX(ci, dj)(7.2) 98 Chapter 7. Multicast Delivery using Opportunistic Routing where ETX(ci, dj) is the expected transmissions count [29] from candidate cito the destination dj. Note that, equation 7.2 gives the expected number of transmissions that would be obtained using unicast delivery to each destination, choosing the candidate in Sthat is closest to each destination in RDestSet. Therefore, this will be an upper-bound to the expected number of transmissions obtained using OR. Lines 8-22 of algorithm 7.1 show the selection of the candidates for the destinations in RDestSet. In each iteration of the while-loop, the algorithm runs an exhaustive search over all possible subsets of the set Sby removing one candidate. The algorithm uses equation (7.2) to choose the subset having the minimum cost (line 10). If the difference between the cost of new set (C0) and the previous one (C) to reach the Redundant-Destinations-Set is not very large (e.g., Threshold=1), the algorithm will continue with the new set to eliminate more candidates. The output of the while-loop of lines 8-17 is a reduced set of candidates able to reach all destinations in RDestSet. In order to assign the Bind- Destinations to these candidates, it is used the minimum ETX (lines 18-22). 7.2.4 Candidate Coordination and Data forwarding After running algorithm 7.1, the source puts the Forwarding-Set and its Bind-Destinations in the Forwarding-Packet and broadcasts it. Each node ireceiving the Forwarding-Packet having its ID in the Forwarding-Set will forward the data packet stored in its buffer to its Bind-Destinations. The candidates with IDs not included in the Forwarding-Packet will simply discard the packet. This process will be continued until the forwarding nodes directly deliver the data packet to their Bind-Destinations. 7.2.5 Data Structures This section summarizes the data structures that nodes running MORP are required to maintain: •Candidate-Table: It is created before the transmission starts and stores the CSs to reach each destination. Each entry in the Candidate-Table is the destination ID, the multicast group address and the list of candidates to reach the destination. Recall that we have used two different maximum number of candidates to form the small and large candidates sets. Therefore, in each node there are two Candidate-Tables. •Ack-Table: It stores the ID of the candidates from which ACK packets have been received. Each entry of this table consists of the ID of the 7.2 Multicast Opportunistic Routing Protocol (MORP) 99 candidate, the sequence number of the packet which has been received and acknowledged and the multicast group address of the packet. •Bind-Destinations-Table: When a node forwards the data packet, it stores its Bind-Destinations. This information will be used when the ACKs are received and the node wants to decide to which destination each candidate should forward the packet. Indeed, Bind-Destinations- Table of node istores its Bind-Destinations,Di, for each packet, until the corresponding Forwarding-Packet is sent. •Message-Cache: The Message-Cache is maintained by each node to prevent duplicated packets. It is also used to retransmit a packet which is not acknowledged by enough candidates. When a node forwards a data packet, it stores the source ID, the multicast group address and the sequence number of the packet. An age timer is used to remove old entries. 7.2.6 An Example of MORP We finish the description of MORP by means of a simple example. Consider the network topology shown in figure 7.1. Assume that the delivery probability is a function of the distance between the nodes shown in the figure. The source node is sand the destinations set is D={d1, d2, d3, d4}. An unicast OR candidates selection algorithm (e.g. ExOR) is used by all nodes to compute the small and large Candidates Sets. Table 7.1 shows these sets for node s. In each row, candidates are ordered in descending priority from left to right. When swants to send a packet, it puts its multicast candidates set (see equation (7.1)), which is Cs,D={a, b, c, d3, d4, f}in the data packet and sends it. The source sets the timer TACK and waits for the ACKs from the candidates that have received the packet successfully. Assume that only the candidates a,band d3receive the data and send back an ACK to the source. When sreceives ACK from a,band d3, it stores their ID in its Ack-Table. After TACK expires in node s, it runs the algorithm 7.1 to find the candidates which should forward the packet. Since one destination, d3, has received the packet, node slooks for the candidates to reach destinations d1,d2and d4. First, it finds the non-redundant and redundant sets of candidates and destinations. As we mentioned in section 7.2.3, the algorithm 7.1 uses the large candidates set to create the non-redundant and redundant sets. The only candidate which has received the packet and can reach the destination d4is d3(see large Candidates Set in table 7.1). Therefore the Non-Redundant- Destinations-Set (NRDestSet) is {d4}, and the candidate d3will be added to the Forwarding-Set with destination d4as its Bind-Destination. 100 Chapter 7. Multicast Delivery using Opportunistic Routing d3 f s d4 a e c d2 b d1 Figure 7.1: Example of MORP. Table 7.1: Small and large candidates sets of s (a) Small and large candidates sets dest. small large d1b c a b c e f d2b a b a c e f d3d3f d3c e f d4d4f d4f d3e (b) ETX Table node d1d2 a4.3 4.1 b4.8 3.8 The benefit of considering the large Candidates Set instead of small candidates set becomes apparent for destination d4. If the algorithm would have just considered the small Candidates Sets, since none of the candidates d4and freceived the packet, the destination d4would be considered unreachable, and swould retransmit the data packet. To reach destinations d1and d2there are two candidates aand bwhich received the data packet. Therefore, the Redundant-Destinations-Set (RDest- Set) and Redundant-Candidates-Set (RCandSet) are {d1, d2}and {a, b}, respectively. In the first iteration of the while-loop of algorithm 7.1, the cost of reaching RDestSet ={d1, d2}using S={a, b}is estimated as: C=ETX(a, d1) + ETX(b, d2) = 8.1 (see equation 7.2). Then it reduces the number of candidates in the RCandSet and uses formula 7.2 again to find the set with the minimum cost (line 10 in algorithm 7.1). This is given by the set R={a} with cost C0= 8.4. Since the relative difference between new cost and the previous one (C= 8.1) is small, the algorithm takes the new set S={a}. Then the while-loop finishes. Thus, the final Forwarding-Set is F={a, d3}with Bind-Destinations Da= {d1, d2}and Dd3={d4}. Node swill put these sets in the Forwarding- Packet and send it. Upon receiving the Forwarding-Packet,aand d3will know that they must forward the packet to {d1, d2}and {d4}, respectively, and will repeat the forwarding process for these destinations. 7.3 Implementation of MORP 101 Note that, as the data packets approach the destinations, the size of the Bind-Destinations sets will be decreased or remain unchanged. Thus, it is like MORP builds a tree on the fly, depending on the candidates that successfully receive the data packet in each transmission. 7.3 Implementation of MORP As explained in section 7.2.1,MORP computes the Candidates Sets using one of the candidates selection algorithms that have been proposed in the literature for unicast OR. To do so, the nodes need to be aware of the network topology and the delivery probability of the wireless links. This information can be gathered in different ways. One possible implementation could be the method described in ExOR [11], where nodes collects measurements and send them to a central server which distributes the required information to all nodes. Distributed algorithms similar to the topology discovery mechanism used by OLSR [21] would also be possible. MORP could be implemented at link or network layer. A link layer implementation would permit the design of an efficient signaling protocol. For instance, the three-way-handshaking used by MORP (see section 7.2.2) could be implemented using a modified 802.11 MAC as shown in figure 7.2. In this figure the Multicast Candidates Set consists of the nodes {a, b, c}. The candidates send back an ACK which is immediately followed by the Forwarding- Packet. A similar proposal to send the ACKs was proposed in [12]. A network layer implementation would allow using current off-the-shelf 802.11 network cards. In this case ACKs and Forwarding-Packets would be sent using unicast 802.11 data frames, thus, increasing the overhead and delays of the three-way-handshaking used by MORP. Nevertheless, for the sake of investigating the feasibility to implement MORP with current hardware, in the numerical results presented in section 7.7 we have assumed a network layer implementation using standard 802.11 cards. 7.4 Summary of the ODMRP Protocol The On-Demand Multicast Routing Protocol is a mesh based multicast protocol where group membership and multicast routes are established and updated by the source on demand [56,8,64]. It introduces the concept of forwarding groups. A multicast source will transmit packets to the destinations via the forwarding group. The forwarding group is a set of nodes in charge of forwarding multicast packets. When a multicast source has data packets to send, but there is no route to the multicast group, it broadcasts a Join-Query control packet to the entire network. This control packet is periodically sent every REFRESH INTERVAL, e.g., every 3 seconds to refresh 102 Chapter 7. Multicast Delivery using Opportunistic Routing ack b a SIFS c b a s SIFS Data Frame SIFS cb SIFS ack a ack c Forwarding-Packett Figure 7.2: Three-way-handshaking of MORP using a modified 802.11 MAC. the membership information and update routes. When a node receives a non-duplicate Join-Query, it stores the upstream node ID and rebroadcasts the packet. When the Join-Query packet reaches a multicast destination, it creates and broadcasts a Join-Table to its neighbors. This packet is forwarded along the shortest path back to the multicast source that originated the Join-Query. When a node receives a Join-Table, it checks if its ID matches with the ID of the next node of one of the entries in the Join-Table. If it matches, the node realizes that it is on the path to the source, and thus, is part of forwarding group. Then it sets the forwarding flag FG-Flag and broadcasts its own Join-Table. The Join-Table is propagated by each forwarding group member until it reaches the multicast source. The FG-Flag of forwarding nodes expires after a multiple of the interval between successive Join-Query floods. When a node receives a data packet, it forwards the packet only when it is non-duplicated, and the FG-Flag for the multicast group of this node has not expired. Note that a multicast destination can also be a forwarding group node if it is on the path between a multicast source and another destination. These procedures allow for redundant forwarding to each receiver, increasing the packet delivery ratio of the protocol: if a packet is dropped on one path as a result of collision or a link break, the receiver can receive it along another path. The benefit of this redundancy comes at the cost of additional overhead and additional load on the network. 7.5 Summary of the ADMR Protocol Adaptive Demand-Driven Multicast Routing (ADMR) [37,75] protocol is an on demand protocol like ODMRP. It creates a source-based forwarding tree connecting the source with the destinations of the multicast group. Each multicast packet is dynamically forwarded from the source along the shortest delay path through the tree to the destinations of the multicast group. In ADMR, packet forwarding is based on two types of flooding: tree flood and network flood. In the tree flooding the packets are constrained to the nodes in the multicast tree, while network flooding is the flooding among 7.6 Evaluation Methodology 103 all nodes in the network. Note that the tree flooding in ADMR is similar to the forwarding group concept in ODMRP. When a source has packet to send, but no routing state yet exists for this sender and group, it floods a packet called Source Information to all nodes in the network using network flood. Each node in the network that receives this packet, forwards it unless it has already forwarded a copy of it. In addition, the node records in its Node-Table the ID of the node from which it received the packet. When this packet reaches a multicast destination, it creates a reply packet called Receiver Join packet back toward the source. The Receiver Join packet is sent automatically along the shortest path traversed by the flood back towards the source. Each node that forwards the Receiver Join creates a forwarding entry in its Membership-Table, indicating that it is a forwarder for this sender and group. When a destination wants to join a group, the node checks its Membership- Table to determine if it is already connected to the group. If it is not, it sends a Multicast Solicitation packet as a network flood. Each node in the network forwards the Multicast Solicitation. In this case, if a node receiving the Multicast Solicitation already belongs to the group, it will unicast the Multicast Solicitation only to the previous hop address. Therefore, the packet follows the multicast tree towards the source, speeding up and decreasing the overhead of the receiver join. When the source receives the Multicast Solicitation packet, the source replies to the Multicast Solicitation to advertise to the destination its existence as a sender for the group. ADMR sends Keep-Alive messages to maintain the existing forwarding state for the multicast tree. The absence of data packets and Keep-Alive messages within a certain period of time is an indication of forwarding tree disconnection. Firstly, a local repair procedure is performed to reconnect the tree; if it fails a global reconnect procedure is used. 7.6 Evaluation Methodology To evaluate the performance of MORP we compare it with ODMRP and ADMR, which have been shown to perform well in previous studies. The simulation code has been implemented within the Global Mobile Simulation (GloMoSim) library [91]. The number of multicast groups and sources is set to one in all scenarios. Members join the multicast group at the start of the simulation and remain throughout the simulation. The simulation field consists of a square with diagonal equal to 500 m. We have run simulations varying the number of nodes in the range 20 ≤N≤100. One node is the source, and it is located in a square corner, the others are placed randomly inside the square. The destinations of the multicast group are chosen randomly among the nodes inside the square. Each simulation runs 104 Chapter 7. Multicast Delivery using Opportunistic Routing for 300 seconds of simulation time. Each point in our performance graphs represents the average of 20 simulation runs. For this number of runs we obtained reasonably small confidence intervals. The IEEE 802.11 Distributed Coordination Function was used as the medium access control protocol. The multicast application-layer source in our simulations generates Constant Bit Rate (CBR) traffic with 4 packet per second and 64 bytes of payload. This sending rate was chosen to challenge the routing protocols’ abilities to successfully deliver data packets in a wireless network. It was not chosen to represent any particular or class of applications, although it could be considered to abstractly model a very simple broadcast audio distribution application [37]. For a more realistic simulation of an 802.11 network, we have considered that packets can be transmitted at two different transmission rates: a data rate of 11 Mbps, and a basic rate of 2 Mbps. Packets transmitted at the data rate are subject to a shadowing propagation model, which introduces random transmission losses. Packets transmitted at the basic rate does not suffer transmission losses. We have assumed that data packets are always transmitted at data rate. However, the protocols can transmit signaling packets using the basic rate to prevent losses due to impairments of the radio channel. More specifically, we have assumed that in MORP, all signaling packets (i.e. ACKs and Forwarding-Packets) are transmitted at the basic rate. In ODMRP, Join-Query packets are sent at the data rate. This is because these packets are used to build the routing tables, and thus, they need to have the same transmission properties over the wireless links as those of data packets. For the same reason, Source Information and Multicast Solicitation packets are sent at the data rate in ADMR, although Receiver Join packets are sent at the basic rate. We have assumed that in MORP nodes are aware of the network topology and the delivery probability of the wireless links, due to the shadowing propagation model of the radio channel. MORP uses this information and applies ExOR [12] to compute the Candidates Sets. We have set the shadowing parameters to the default values used by the GloMoSim, given in table B.3. The value of path loss exponent and deviation value are set to β= 2.7 and σdB = 6 dBs, respectively. We have assumed that a link between any two nodes exists only if the delivery probability between them is greater (or equal) than min.dp = 0.1 7.6.1 Protocols Parameters We have evaluated two different variations of the ODMRP parameters. The ”ODMRP-3-9” variation represents ODMRP using the parameter values 7.6 Evaluation Methodology 105 chosen by ODMRP’s designers: 3 seconds for the Join-Query flooding interval (REFRESH INTERVAL=3 seconds) and a forwarding state lifetime of 3 times of this interval (a total of 9 seconds). The ”ODMRP-3-3.3” variation reduces the forwarding state lifetime to 1.1 times of the Join-Query flooding interval; it shows the effect of reducing the forwarding redundancy of ODMRP (see section 7.4). For ADMR parameters we have used the default values which are used in [37]: 30 seconds for the periodic data flood interval and 2 missing packets to trigger disconnection detection procedure. In MORP we have used ExOR [12] as the candidate selection algorithm, fixing the maximum number of candidates for the small and large candidates sets to ncand = 2 and 10, respectively. In our protocol, we have used 12 milliseconds to receive ACKs from the Candidates Set (TACK = 12 ms). The legend MORP-ExOR(n) in the following sections refers to MORP with MAXReTx =n. 7.6.2 Performance Metrics We have evaluated all protocols as a function of number of nodes in the network, and number of destinations of the multicast group. The measures of interest are: •Packet delivery ratio: The ratio of the number of data packets delivered to the destinations versus the number of data packets supposed to be received. •Multicast group reachability: Let Xbe a random variable equal to the number of destinations of the multicast group receiving a given data packet. We have computed the empirical complementary cumulative distribution function (EC-CDF) of X. This gives a measure of the number of destinations of the multicast group receiving data packets. •Forwarding cost: Total number of data packets transmitted by all nodes in the network over the total number of data packets sent by the source. This metric represents the delivery cost in terms of transmissions of each multicast packet. Note that, to make the comparisons more clear, in this metric we take as the reference originated instead of delivered packets. •Normalized packet overhead: The total number of all data and control packets transmitted by any node in the network (either originated or forwarded), divided by the total number of all data packets received across all multicast receivers. •End-to-End delay: Average end-to-end delay of all data packets received by the destinations. 112 Chapter 7. Multicast Delivery using Opportunistic Routing 2 3 4 5 6 7 8 9 10 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=20 Number of Destinations Forwarding cost Figure 7.11: Forwarding cost in a sparse network as a function of number of destinations. 2 3 4 5 6 7 8 9 10 3 5 7 9 11 13 15 17 19 21 23 25 27 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=100 Number of Destinations Forwarding Cost Figure 7.12: Forwarding cost in a dense network as a function of number of destinations. As described in section 7.4,ODMRP periodically floods a data packet together with a Join-Query packet. I.e., it piggybacks the Join-Query information on the data packet periodically to update the routes. Because of this, new nodes may become forwarders, while forwarders created during a previous periodic flood still have a set forwarding flag. Consequently, redundant routes are created, and the number of data transmissions increases with increasing the network density. In fact, the forwarding cost of both variations of ODMRP is dominated by the flooding packets and forward- 7.7 Numerical Results 113 ing state timeout. Since in ODMRP-3-9 the forwarding state timeout (9 seconds) is longer than in ODMRP-3-3.3, there are more nodes with the forwarding flag set in ODMRP-3-9 than in ODMRP-3-3.3. Therefore, the forwarding cost of ODMRP-3-9 is much higher than in ODMRP-3-3.3. The construction of the routes in ADMR is subject to the random losses that may have the Source Information and Multicast Solicitation packets. Recall that the absence of some data packets in ADMR is an indication of forwarding tree disconnection and the local or global repair procedure is triggered to repair the path. As we mentioned in section 7.6.1, we used 2 missing data packets to trigger disconnection detection. When a node on the tree does not receive 2 consecutive data packets, it starts repairing algorithm, which may add new nodes to the tree. This is exacerbated with increasing the density of the network, thus, increasing the forwarding cost. Figure 7.10 shows that for N= 20 ODMRP-3-3.3 is slightly better than MORP. However, recall from figure 7.5 that in this scenario the delivery ratio of ODMRP-3-3.3 is much lower than in MORP. In section 7.7.1 we have shown that MORP outperforms ODMRP and ADMR in terms of packet delivery ratio for different number of destinations. Figures 7.11 and 7.12 give the forwarding cost for the same scenarios. Figure 7.11 shows that the forwarding cost of MORP in the sparse network, and with any MAXReTx, is much lower than ADMR and ODMRP-3-9. The figure shows that only ODMRP-3-3.3 is slightly better than MORP. However, as we showed in figure 7.6, the delivery ratio of ODMRP-3-3.3 is much lower than MORP. Regarding ADMR, figure 7.6 in section 7.7.1 showed that the delivery ratio in a sparse network is slightly better than MORP-ExOR(1). However, we observe in figure 7.11 that, this is at cost of ADMR having a forwarding cost of about 3 times higher than MORP-ExOR(1). Figures 7.11 and 7.12 confirm, as in figure 7.10, that the forwarding cost of ODMRP and ADMR is much higher in a dense than in a sparse network, while MORP is rather insensitive to network density. Nevertheless, it can be observed that the forwarding cost increment in MORP is slightly higher in a dense than in a sparse network. This may be counterintuitive, since MORP can choose better candidates in a dense network. However, since MORP looks for candidates to reach all destinations, in a dense network MORP chooses more candidates, thus, increasing the forwarding cost. However, recall from figures 7.6 and 7.7, this slightly higher forwarding cost in a dense network is rewarded with a significantly higher packet delivery ratio. 114 Chapter 7. Multicast Delivery using Opportunistic Routing 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=20 Number of destinations Normalized packet overhead Figure 7.13: Packet overhead in a sparse network as a function of number of destinations. 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=100 Number of destinations Normalized packet overhead Figure 7.14: Packet overhead in a dense network as a function of number of destinations. 7.7.4 Packet Overhead In this section we compare the packet overhead of the protocols under study. Recall that we compute the packet overhead as the ratio of data and control packets transmitted by any node to deliver data packets. We count as the control packets for ODMRP the Join-Query and Join-Table, for ADMR the Source Information,Receiver Join,Multicast Solicitation and packets related to the repair process. The ForwardingPacket and ACK packets in 7.8 Conclusion 115 MORP are counted as the control packets. Figures 7.13 and 7.14 show the packet overhead of all protocols varying the number of destinations for a sparse and dense network, respectively. Figure 7.13 shows that in a sparse network MORP has a higher packet overhead than ADMR and ODMRP. This is due to the ACKs sent by the candidates in MORP. Note that, in this comparison we are giving the same weight to data and control packets. Recall from figures 7.11 and 7.12 that MORP performs better than the other protocols in terms of forwarding cost, where only data packets are considered. Thus, in case of sending data packets with large payload, the overhead considered in this section would be a pessimistic comparison with respect to MORP. Furthermore, as explained in section 7.3, the overhead of control packets in MORP could be reduced implementing the three-way handshaking used by MORP at MAC layer. 7.7.5 End-To-End Delay Figures 7.15 and 7.16 show the average end-to-end delay for different number of destinations for a sparse and dense network, respectively. These figures show that the end-to-end delay in MORP is higher than in ODMRP and ADMR. This is because each time a node transmits a data packet in MORP, it waits for the ACKs sent by the candidates during TACK =12 ms. However, recall from section 7.3 that implementing the three-way handshaking used by MORP at MAC layer could reduce this delay, significantly. Comparing figures 7.15 and 7.16 we can see that the decrease of the end- to-end delay in a dense network for MORP is much more noticeable than in the other protocols. This is because using OR in a dense network, the probability of reaching a candidate close to the destination increases, thus, reducing the average number of end-to-end hops. It can also be observed that the difference between the average delay using MORP with MAXReTx = 1 and MAXReTx >1 is higher in a sparse network than in a dense network. This is because in the dense network the probability that the sending node receives enough ACKs to reach all destinations is higher than in the sparse network. Therefore, MORP requires less retransmissions of data packets in a dense network. 7.8 Conclusion In this chapter we have investigated how Opportunistic Routing (OR) can be exploited to implement a multicast protocol for wireless mesh networks. This has been done by proposing a new protocol called Multicast Opportunistic Routing Protocol, MORP. MORP uses a three-way-handshaking approach 116 Chapter 7. Multicast Delivery using Opportunistic Routing 2 3 4 5 6 7 8 9 10 0 5 10 15 20 25 30 35 40 45 50 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=20 Number of destinations End-to-End Delay Figure 7.15: End-to-end delay in a sparse network as a function of number of destinations. 2 3 4 5 6 7 8 9 10 0 5 10 15 20 25 30 35 40 MORP-ExOR(1) MORP-ExOR(2) MORP-ExOR(3) ODMRP-3-9 ODMRP-3-3.3 ADMR D=500m, min.dp=0.1, β=2.7, σdB=6, N=100 Number of destinations End-to-End Delay Figure 7.16: End-to-end delay in a dense network as a function of number of destinations. where candidates send ACKs to the sender node upon successfully receiving data packets. Then, the sender node partitions the set of destinations and assigns each subset to the most appropriate candidate. This information is sent to the candidates which repeat the same approach for each subset of destinations. Compared with traditional multicast protocols, MORP does not build a complete tree or mesh before the transmission starts. Instead, MORP builds a tree on the fly, depending on the candidates that successfully receive the packet in each transmission. 7.8 Conclusion 117 We have compared MORP with other relevant multicast protocols that have been proposed in the literature: On Demand Multicast Routing Protocol (ODMRP) and Adaptive Demand-Driven Multicast Routing (ADMR). The comparison is done taking into consideration realistic simulations using 802.11 standard MAC layer. A lossy shadowing propagation model has been used for the radio channel. Simulation results show that in most cases ODMRP and ADMR have a number of data transmissions much higher than in MORP, while the achieved delivery ratio is not as good as in MORP. Although, the signaling overhead and end-to-end delay in MORP is a bit higher than in ODMRP and ADMR, the overhead of control packets could be reduced significantly by implementing the three-way-handshaking used by MORP at MAC layer. We conclude that MORP outperforms traditional ODMRP and ADMR multicast protocols, reducing the number of data transmissions and increasing the data delivery ratio. Hence, using OR can be a useful technique to implement reliable multicast protocols in wireless mesh networks. CHAPTER 8 Conclusions and Future Research Directions We close this dissertation with an enumeration of some of our important results, some avenues of future work, and a discussion of the outlook for Opportunistic Routing. 8.1 Achieved Results The essential idea of Opportunistic Routing is to exploit the broadcast nature and space diversity provided by the wireless medium. The source can use multiple potential paths to deliver the packets to the destination. By having multiple forwarding candidates, the successful rate of each transmission can be much improved. In this dissertation we described the meaning of Opportunistic Routing (OR) in Chapter 1. Then, we surveyed the main research contributions of this topic in Chapter 2by classifying different research areas: routing metrics, candidate selection, candidate coordination, geographic OR and multicast OR. We summarize the results of other chapters below. •Chapter 3. In this chapter, we proposed a Discrete Time Markov Chain (DTMC) model that can be used to evaluate OR mechanisms in wireless networks in terms of expected, variance and probability of number of transmissions from the source to the destination. The only ingredients needs to build the transition probability matrix are the candidates of each node, and the delivery probabilities to reach them. As a consequence, the proposed model can be applied independently of the candidate selection algorithm that is employed. The model leads to a discrete phase-type representation for the distribution of the number of transmissions that are needed to reach the destination node. An important advantage of the phase-type representation is 120 Chapter 8. Conclusions and Future Research Directions that, there exist simple and closed-form expressions for its distribution and moments. We used our model to investigate the performance of different scenarios in terms of the expected number of transmissions needed to send a packet from the source to the destination. Our results show that using Opportunistic Routing (OR) the expected number of transmissions can be reduced by 20% or more in a typical scenario. We showed that using a small number of candidates (like 2) may be a sensible choice to have small expected number of transmissions. •Chapter 4. We applied our model proposed in Chapter 3to compare four relevant algorithms that have been proposed in the literature. They range from non-optimum, but simple, to optimum, but with a high computational cost. The algorithms under study were: Extremely Opportunistic Routing (ExOR); Opportunistic Any-Path Forwarding (OAPF); Least-Cost Opportunistic Routing (LCOR); and Minimum Transmission Selection (MTS). We modified the algorithms under study in order to limit the maximum number of candidates per node. We compared different scenarios in terms of the expected, the variance and the probability of the number transmissions needed to send a packet from the source to the destination. The algorithms had also been compared from the perspective of the execution time which is needed to construct the Candidates Sets (CSs). Our numerical results show that if the maximum number of candidates is not limited, all of the algorithms obtain almost the same expected number of transmissions. When the maximum number of candidates is limited, our results show that the expected number of transmissions required by ExOR is larger than that of the other OR algorithms. On the other hand, the performance obtained with OAPF has shown to be very close to the optimal algorithm. We also observed that the variance of the number of transmissions can be substantially reduced by using OR. Regarding the execution times of each algorithm under study, the fact that ExOR is based on ETX makes this algorithm much faster than the others. For the optimum algorithms, we observed that MTS outperforms LCOR. However, both algorithms require extremely large execution times to compute the CSs in a network with 50 nodes (on the order of hours in a modern PC). On the other hand, OAPF is able to run the candidate selection with execution times orders of magnitude lower than the optimum algorithms (on the order of minutes) while its performance in terms of the expected number of transmissions is very close to the optimum algorithms. •Chapter 5. We proposed a new metric that we call Expected Distance Progress (EDP). It measures the expected distance progress of sending a packet using a set of candidates. Then, we proposed a hop-by-hop 8.1 Achieved Results 121 candidate selection and prioritization algorithm based on EDP called Distance Progress based Opportunistic Routing (DPOR). Our algorithm does not need the whole topology information of the network to find the CSs. Only the neighbors’ position and the links delivery probability to reach them are required. We compared DPOR with four other relevant candidate selection algorithms studied in Chapter 4:ExOR,OAPF,MTS and Position based Opportunistic Routing (POR). Simulation results show that the expected number of transmissions of ExOR and POR are far from the optimum algorithm. On the other hand, DPOR has almost the same expected number of transmissions as the optimum algorithm MTS. We also evaluated the computational cost of the algorithms. Our results show that finding the CSs with DPOR is much faster than OAPF and MTS. We concluded that DPOR is a fast and efficient OR candidate selection algorithm. Additionally, each node requires only neighbors’ and destination geographic positions and the delivery probability to neighbors nodes. Indeed DPOR needs much less information compared to the most of OR proposals in the literature, which require the whole network topology. •Chapter 6. We investigated the maximum gain that can be obtained using OR. We derived the equations that yield the distances of the candidates in Opportunistic Routing (OR) such that the per transmission progress towards the destination is maximized. We called them as the Maximum Progress Distances (MPDs). The only ingredient to obtain these distances is the law for the delivery probability between nodes as a function of distance. An important consequence of our derivation is that the MPDs for the already existing candidates do not change if we decide to add a new candidate to the CS. Based on MPDs, we proposed a lower bound to the expected number of transmissions needed to send a packet using OR. We investigated the sensitivity of our results to the position of the candidates and concluded that choosing the distance of the first two candidates near to their optimal positions, is the most critical in order to minimize the expected number of transmissions. We provided a rule of thumb for placing the nodes in a static network using OR. We also proposed a new candidate selection algorithm based on Maximum Progress Distances (MPDs) that we call Candidate selection based on Maximum Progress Distance (CMPD). It tries to select the candidates that are located at the MPDs. The results show that, the performance of CMPD is almost the same as the optimum candidate selection algorithm, while our algorithm requires less information and runs much faster. Finally, we investigated the maximum performance using OR in the grid scenarios.We concluded that using our rule of thumb for placing the nodes in a grid network us- A List of Publications 129 Appendix A List of Publications A.1 Journals 1. Amir Darehshoorzadeh and Lloren¸c Cerd`a-Alabern. Multicast Delivery Using Opportunistic Routing in Wireless Mesh Networks. Submitted to Wireless Networks, 2012. 2. Amir Darehshoorzadeh, Lloren¸c Cerd`a-Alabern and Vicent Pla. Modeling and Comparison of Candidate Selection Algorithms in Opportunistic Routing. Computer Networks, 2011. 3. Lloren¸c Cerd`a-Alabern, Amir Darehshoorzadeh and Vicent Pla. Optimum Node Placement in Wireless Opportunistic Routing Networks. (Under preparation) 4. Lloren¸c Cerd`a-Alabern, Amir Darehshoorzadeh and Vicent Pla. Candidate Selection in Opportunistic Routing Using Maximum Progress Distances. (Under preparation) A.2 Conferences 1. Amir Darehshoorzadeh and Lloren¸c Cerd`a-Alabern. Distance Progress Based Opportunistic Routing for Wireless Mesh Networks. In The 8th International Wireless Communications & Mobile Computing Conference, (IWCMC’12). Limassol, CYPRUS, 2012. 2. Amir Darehshoorzadeh and Lloren¸c Cerd`a-Alabern. A New Multicast Opportunistic Routing Protocol for Wireless Mesh Networks. In Performance Evaluation of Cognitive Radio Networks Workshop (PE-CRN co-located with Networking), 2011, Valencia, Spain, 2011. 3. Amir Darehshoorzadeh and Lloren¸c Cerd`a-Alabern. Candidate Selection Algorithms in Opportunistic Routing. In Proceedings of the 5th ACM workshop on Performance monitoring and measurement of heterogeneous wireless and wired networks (PM2HW2N co-located with MSWIM), Bodrum, Turkey, 2010. 4. Lloren¸c Cerd`a-Alabern, Amir Darehshoorzadeh and Vicent Pla. On the Maximum Performance in Opportunistic Routing. In IEEE International Symposium on a World of Wireless, Mobile and Multimedia Networks (IEEE WoWMoM 2010), Montreal, Canada, 2010. 130 5. Lloren¸c Cerd`a-Alabern, Vicent Pla and Amir Darehshoorzadeh. On the Performance Modeling of Opportunistic Routing. In MobiOpp ’10: Proceedings of the Second International Workshop on Mobile Opportunistic Networking, Pisa, Italy, 2010. A.3 Book Chapter •Amir Darehshoorzadeh, Lloren¸c Cerd`a-Alabern and Vicent Pla. Opportunistic Routing in Wireless Mesh Networks, in Routing in Opportunistic Networks. Dr. Isaac Woungang (Editor), to be published by Springer Verlag, USA, in early 2013. (Under Review) B Propagation Model 131 Appendix B Propagation Model The free-space and the two-ray model predict the received power as a deterministic function of distance. They both represent the communication range as an ideal circle. In reality, the received power at certain distance is a random variable due to multi-path propagation effects, which is also known as fading effects. In fact, free-space and two-ray models predict the mean received power at distance d. A more general model is called the shadowing model [68]. In this appendix we describe the shadowing propagation model that have been used in the numerical results of this dissertation. The shadowing model consists of two parts. The first one is known as path loss model, which predicts the mean received power at distance d, denoted by Pr(d). It uses a close-in distance d0as a reference. Pr(d) is computed relative to Pr(d0) as follows. Pr(d0) Pr(d)= ( d d0 )β(B.1) Where βis called the path loss exponent, and is usually empirically determined by field measurement. Larger values correspond to more obstructions and hence faster decrease in average received power as distance become larger. Pr(d0) can be computed using the free-space equation which is: Pr(d) = PtGtGrλ2 L(4 π)2d2(B.2) . In equation B.2,Gtand Grare the transmission and reception antenna gains respectively, Lis a system loss, λis the signal wavelength (c/f, with c= 3 ×108m/s). The path loss is usually measured in dB. So from equation B.1 we have: "Pr(d) Pr(d0)#dB =−10βlog(d d0 ) (B.3) The second part of the shadowing model reflect the variation of the received power at certain distance. It is a log-normal random variable, I.e., it is of Gaussian distribution in dB. The overall shadowing model is represented by 132 equation B.4. Pr(d)|dB = 10 log10 PtGtGrλ2 L(4 π)2dβ+XdB (B.4) Where XdBis a Gaussian random variable with zero mean and standard deviation σdB.σdB is called the shadowing deviation, and like βis also obtained by measurement. Table B.1 shows some typical values for βand σdB. The shadowing model extended the ideal circle to a richer statistic model: nodes can only probabilistically communicate when neat the edge of the communication range. Packets are correctly delivered if the received power is greater than or equal to RXThresh. Note that, this model shall no consider collisions. Thus, the delivery probability at a distance d(p(d)) is given by: p(d) = Prob(Pr(d)|dB ≥10 log10(RXThresh)) = Q1 σdB 10 log10 RXThresh L(4 π)2dβ PtGtGrλ2 (B.5) Where Q(z) = 1 √2πR∞ ze−y2/2dy. The default default values of shadowing propagation model in the network simulator (Ns-2) [2] and GloMoSim [91] are given in tables B.2 and B.3. Figure B.1 depicts the delivery probability at a varying the distance, for two values of the path loss exponent (β) and a standard deviation σdB = 6 dBs with Ns-2 default values. With these parameters and β= 2.7 the link delivery probability is approximately 40% at the distance of 150 m. Table B.1: Typical values for βand σdB. Environment β σdB Outdoor Free space 2 4∼12 urban 2.7 ∼5 Office Line-of-sight 1.6 ∼1.8 7∼9.6 Obstructed 4 ∼6 B Propagation Model 133 Table B.2: Default Ns-2 values for the shadowing propagation model. Parameter Value Pt0.28183815 Watt RXThresh 3.652 ×10−10 Watt Gt,Gr,L1 f914 MHz Table B.3: Default GloMoSim values for the shadowing propagation model. Parameter Value Pt0.03162278 Watt RXThresh 7.943282 ×10−12 Watt Gt,Gr,L1 f2400 MHz Distance [m] Delivery probability 0.0 0.2 0.4 0.6 0.8 1.0 0 50 100 150 200 σdB = 6 β 2.7 3.0 Figure B.1: Delivery probability versus distance for a standard deviation σdB = 6 dBs. 134 Appendix C Expected Number of Transmissions Recursive Formula Expected Any-path Transmission (EAX): This metric was defined by Zhong et al. in [96] to capture the expected number of transmissions taking into account the multiple paths that can be used under OR. Let sbe a source node, with cithe candidate with priority i(with i= 1 being the highest priority) and pithe delivery probability between sand ci. Using the same assumptions as in equation (2.1), the expected number of transmissions to reach a destination node dis given by the recursive formula: EAX(Cs,d, s, d) = S(Cs,d, s, d) + Z(Cs,d, s, d) (C.1) S(Cs,d, s, d) = 1 1−Q|Cs,d| i=1 (1 −pi) (C.2) Z(Cs,d, s, d) = |Cs,d| X i=1 EAX(Cci,d, ci, d)pi i−1 Y j=1 (1 −pj) 1−Q|Cs,d| i=1 (1 −pi) (C.3) where Cs,d is the candidate set of node sto reach the destination d, and |Cs,d| its cardinality; S(Cs,d, s, d) is the expected number of transmissions from s until at least one of the nodes in Cs,d receives the packet; and Z(Cs,d, s, d) is the expected number of transmissions to reach the destination dfrom one of the nodes in Cs,d which is responsible to forward the packet. Note that in equation (C.3) we take the product Qi−1 j=1 equal to 1 for i= 1. Index A Adaptive Demand Driven Multicast Routing, 5,122 Average Distance Progress, 87–92 C Candidate selection based on Maximum Progress Distance, 83, 86,87,90,91,121 Candidates Set, 2,3,9,14–20,22, 23,26,40–51,55–57,60–62, 93,94,96,98,120,121 Candidate Selection Algorithm, 4,6, 9,10,12,17,23,27,39,40, 47,48,53,56,57,59,61–63, 67,94,99,119,121 D Distance Progress based Opportunistic Routing, 60–64,66, 67,121 Delivery Probability, 1–4,25–27,29, 40,45,47,48,59–63,67,69– 71,99,101,119,121 E Expected Number of Transmission, 2–4,6,7,25,28,29,31–34, 36,38–40,42,43,45–50,52, 53,55–57,59,62–65,67,69– 73,76,78,81–86,90,91,93, 96–98,119–122 Expected Distance Progress, 4–6, 60,61,64,67,120,121 Expected Transmission Count, 12, 13,18,22,23,29,39–42,47, 49,50,57,98,120 Expected Any-path Transmission, 12,13,18,22,29,39,40, 42–47,49,55 Extremely Opportunistic Routing, 14,17,18,39–42,47,49,50, 53,55–57,63,66,101,120 G Grid Topology, 31,86,90 L Least-Cost Opportunistic Routing, 39,44,45,49,53,55–57,120 Linear Network Topology, 25,30,31 M Markov Chain Model, 4,5,25–28, 48,119 Multicast Opportunistic Routing Protocol, 5,93–95, 97–99,101,103–108,111, 113,115–117,122 Maximum Progress Distance, 6,121 Multicast Protocol, 4,5,7,93 Minimum Transmission Selection, 39,45–47,49,53,55–57,120 N Network Coding, 12,13,15,16,18, 19,22 Next Hop, 1,2,26,93 O Opportunistic Any-Path Forwarding, 39,42,43,49,51,53, 55–57,64,66,120 On Demand Multicast Routing Protocol, 5,101,103–108,111– 114,117,122 Opportunistic Routing, 2–7,9,10, 12,13,15–19,22,23,25,26, 29,31–39,42,48–50,53,56, 57,59,66,67,93,94,98,99, 101,115,117,119,120,122 P Position based Opportunistic Routing, 62,63,66 136 INDEX R Random Network Topology, 30 S Shortests Path First, 29–32,35,37, 40,49,63,64 Shadowing Propagation Model, 29, 32,38,47,56,63 T Transition Matrix, 26,27,119 Traditional Routing, 1–3,39,49,63, 69 W Wireless Mesh Network, 1,2,5,7, 122,123 Bibliography [1] MIT roofnet. http://pdos.csail.mit.edu/roofnet. 18,42 [2] The Network Simulator ns-2. 29,48,63,74,132 [3] R. Ahlswede, Ning Cai, S.-Y.R. Li, and R.W. Yeung. Network information flow. Information Theory, IEEE Transactions on, 46(4):1204–1216, July 2000. 15 [4] Ian F. Akyildiz and Xudong Wang. Wireless Mesh Networks. John Wiley & Sons Ltd, 2009. 1 [5] Ian F. Akyildiz, Xudong Wang, and Weilin Wang. Wireless mesh networks: a survey. Comput. Netw. ISDN Syst., 47(4):445–487, March 2005. 1 [6] I.F. Akyildiz and Xudong Wang. A survey on wireless mesh networks. Communications Magazine, IEEE, 43(9):S23 – S30, sept. 2005. 1 [7] F. Baccelli, B. Blaszczyszyn, and P. Muhlethaler. On the performance of time-space opportunistic routing in multihop mobile ad hoc networks. In Modeling and Optimization in Mobile, Ad Hoc, and Wireless Networks and Workshops, 2008. WiOPT 2008. 6th International Symposium on, pages 307–316, April 2008. 11,23 [8] Osamah S. Badarneh and Michel Kadoch. Multicast routing protocols in mobile ad hoc networks: a comparative survey and taxonomy. EURASIP J. Wirel. Commun. Netw., pages 26:1–26:42, 2009. 21,101 [9] Rajashekhar Biradar, Sunilkumar Manvi, and Mylara Reddy. Link stability based multicast routing scheme in manet. Comput. Netw., 54:1183–1196, May 2010. 21 [10] J. Biswas, M. Barai, and S.K. Nandy. Efficient hybrid multicast routing protocol for ad-hoc wireless networks. In Local Computer Networks, 2004. 29th Annual IEEE International Conference on, pages 180 – 187, nov. 2004. 22 [11] S. Biswas and R. Morris. ExOR: opportunistic multi-hop routing for wireless networks. ACM SIGCOMM Computer Communication Review, 35(4):133–144, 2005. 2,11,17,41,101