Professional Documents
Culture Documents
DEVELOPED BY
Ankur Ghosh Ankur Paul Pradip Kumar Mahato Somarka Chakravarti Soumyojit Chakraborty
PROJECT GUIDE
December, 2009
Asansol Engineering College Kanyapur, Asansol, Burdwan -713304
ACKNOWLEDGEMENT
It is a matter of great pleasure for us to acknowledge our feelings of extreme gratitude and sincere regards to Mr. Biplab Mondal Lecturer, Department Mondal, of Computer Science & Engineering, Asansol Engineering College, for the regular & dedicated guidance provided by him. It was because of his steady guidance that we could bring this project to its present form. We also take this opportunity to thank Mr. Swapan Bhattacharya, Head . Swapan Bhattacharya, of the Department, Department of Computer Science & Engineering, Asansol Engineering College, who was always there to provide us with all sort of support, be it technical or moral. We would also like to acknowledge the help and support of Mr. Amar Kr. Ganguly, Ganguly, Principal, Asansol Engineering College. The acknowledgment will remain incomplete if we do not specially give thanks to our Project Laboratory in-charge, Mr. Suman Mallick for providing us the optimum facilities in the laboratory which was of immense help in developing the project.
Project Team Ankur Ghosh Ankur Paul Pradip Kumar Mahato Somarka Chakravarti Soumyojit Chakraborty
CERTIFICATE
This is to certify that the following project entitled Efficient Route Discovery in Mobile Ad Hoc Network
submitted by Ankur Ghosh Ankur Paul Pradip Kumar Mahato Somarka Chakravarti Soumyojit Chakraborty has been carried out in the Department of Computer Science & Engineering at Asansol Engineering College under West Bengal University Of Technology for the degree of B-TECH. It is a complete fulfilment of their 7th semester project. So, the performance of the group deserves my approval and acknowledgement.
Approved by
........................................ Project Guide Biplab Mondal Lecturer, Dept. of CSE, Asansol Engineering College
CREDITS
Project Guide
Mr. Biplab Mondal Lecturer, Department of Computer Science & Engineering, Asansol Engineering College
Project Team
1. Ankur Ghosh Roll No. : 10801061076 Registration No : 108010111062 Stream : Computer Science & Engineering Batch : 2006 - 2010 ( 4th year ) 2. Ankur Paul Roll No. : 10801061035 Registration No : 108010141002 Stream : Computer Science & Engineering Batch : 2006 - 2010 ( 4th year ) 3. Pradip Kumar Mahato Roll No. : 10801061071 Registration No : 108010141006 Stream : Computer Science & Engineering Batch : 2006 - 2010 ( 4th year ) 4. Somarka Chakravarti Roll No. : 10801061065 Registration No : 108010111055 Stream : Computer Science & Engineering Batch : 2006 - 2010 ( 4th year ) 5. Soumyojit Chakraborty Roll No. : 10801061044 Registration No : 108010111038 Stream : Computer Science & Engineering Batch : 2006 - 2010 ( 4th year )
INDEX
PARTICULARS PAGE NO.
1. Introduction 1.1 Introduction to Mobile Ad Hoc Network 1.2 Background & Motivation 2. FResher Encounter SearcH 2.1 FRESH Idea 2.2 FRESH Algorithm 3. Implementation 3.1 Data Flow Diagram 3.2 Output 3.3 System Requirements 4. Performance Analysis 4.1 Performance Criterion 4.2 Simulation Environment 4.3 Age Gradients 5. Conclusion & Future Scope 6. References
1 1 2 3 3 5 7 7 10 13 14 14 15 17 18 19
TABLE OF ILLUSTRATIONS
PARTICULARS PAGE NO.
Figure 2.1 : An example FRESH route for N = 32000 nodes, with a random walk mobility process. Figure 3.1 : Level 0 DFD Figure 3.2 : Level 1 DFD Figure 3.3 : Level 2 DFD (I) Figure 3.4 : Level 2 DFD (II) Screenshot 3.1 : Initial Look Screenshot 3.2 : Initial Random Network with source & destination selected Screenshot 3.3 : Network after random motion for 1 minute Screenshot 3.4 : Route given by FRESH Screenshot 3.5 : Selecting destination without selecting source Screenshot 3.6 : Selecting a source as a destination Screenshot 4.1 : Route after warm-up for 10 seconds Screenshot 4.2 : Route after warm-up for 15 minutes Figure 4.1 : Age gradient, random walk. (Empirical conditional mean of distance, conditional on the encounter age).
4 7 7 8 9 10 10 11 11 12 12 16 16
17
1. INTRODUCTION
1.1 INTRODUCTION TO MOBILE AD HOC NETWORK
A "Mobile Ad Hoc Network" (MANET) is an autonomous system of mobile routers (and associated nodes) connected by wireless links, the union of which forms an arbitrary graph. Wireless mobile hosts of Mobile Ad Hoc Network communicate with each other, in the absence of a fixed infrastructure. The routers are free to move randomly and organize themselves arbitrarily. Thus, the networks wireless topology may change rapidly and unpredictably. Routes between two hosts in a Mobile Ad Hoc Network (MANET) may consist of hops through other hosts in the network. Therefore, the task of finding and maintaining routes in MANET is nontrivial. Such a network may operate in a standalone fashion, or may be connected to the larger Internet. Routing protocols for Mobile Ad Hoc Networks generate a large amount of control traffic when node mobility causes link states and the network topology to change frequently. On the other hand, resources such as bandwidth and battery power are usually severely constrained in such networks. Therefore, minimizing the control traffic to set up and maintain routing state is one of the main challenges in the design of scalable routing protocols for Mobile Ad Hoc Networks. Mobility can be of two types. In the waypoint mobility model, each node chooses a random target which is uniformly distributed in the surface and advances towards it at a constant velocity. When it reaches the target, a new target is generated and the node moves again. In the random walk model, nodes move at each step in one of the four cardinal directions, and reflect at the boundary.
[1]
[2]
[3]
Figure 2.1 : An example FRESH route for N = 32000 nodes, with a random walk mobility process.
What enables FResher Encounter SearcH to compute good routes at a lower cost is a single-step route discovery. The basic principle is simple: For most mobility processes, the distance travelled during a time interval of duration t is positively correlated with t. We refer to this as time-distance correlation. Now consider three nodes i, j, and d. At the present time t = 0, node i is separated from node d by a distance Di, similarly node j is separated from node d by a distance Dj. The intuition behind FRESH is that if TLE (i,d) < TLE(j,d), then with high probability Di < Dj. Simply put, a node that was my neighbour 5 minutes ago is probably closer to me than a node that was my neighbour 5 hours ago. If time-distance correlation holds then successive FResh Encounter SearcHes will advance towards the destination. This will result in a directional route discovery. In common mobility processes time-distance correlation holds well enough for the algorithm to work very effectively. Though successive iterations of the FResher Encounter SearcH on average bring us closer to the destination, they may not always advance along a straight line, and so we may not obtain the shortest-path route. Since FRESH establishes routes at lower cost than single-step methods, one may consider that we trade off some route quality for a reduction in search cost and so we must be sure that routes remain good enough so that this is worthwhile.
[4]
2: The search proceeds in concentric rings of expanding radius until a node is found which satisfies a given condition.
PROPERTY
FRESH Algorithm : In this algorithm the nodes keep a table of their most recent encounters times with all the other nodes they have encountered. This table is called the TLE table. The pseudo-code given ahead invokes the search primitive through an abstract interface which allows a querying node N to find the nearest anchor node A having seen the destination node D more recently than a time T. This search is invoked by calling nextAnchor(D,T), which triggers a network search and returns A. The search process creates routing state in the network which will allow N to subsequently send packets to A. This state will be used by the notifyNextAnchor call to instruct A to pursue the route discovery. More precisely, notifyNextAnchor(A,D) will send a packet to A, which triggers invocation of the call FRESH(D) on node A. We note that the packet sent by the notifyNextAnchor(A, D) call does not need to carry the time T representing the current node's encounter age with D since node A only needs its own encounter age with D in order to iterate the search.
[5]
The algorithm, which is run at every node in the network, is as follows: procedure FRESH (D) begin if (thisnode.ID = D) then replyToSource() else begin T := prevEncounterAge(D); A := findNextAnchor (D, T); if (A != D) then notifyNextAnchor(A, D); end end replyToSource() is a invoked when the route is found, i.e., the last node encountered in the search is the destination itself, and notifies the source. prevEncounterAge(D) returns the time since the last encounter of the particular node with the destination. procedure findNextAnchor(D, T) begin repeat currentDist:=0; repeat currentDist:=currentDist + unitDist; presentNode:=ID of the node at currentDist; if(T>prevEncounterAge(D) of presentNode; return presentNode; for all nodes at currentDist forever end currentDist : Distance at which Anchor nodes are checked unitDist : Lowest distance for incrementing search area for anchor nodes presentNode : Node under concern to be checked for next Anchor Node
notifyNextAnchor(A, D) transfers control to the Anchor Node A & executes the procedure FRESH(D) at A.
[6]
3. IMPLEMENTATION
3.1 DATA FLOW DIAGRAM
No. of Nodes, Source id, Destination id Simulation Environment & Route Discovery 0 Efficient Route
0.1
[7]
0.1.1
0.1.2
Node Locations
Start/Stop Motion
Node Records
Node Location
Draw the Nodes
0.1.3
[8]
0.2.1
Next Anchor id
0.2.2
Efficient Route
DATA DICTIONARY
No. of Nodes : integer Source id : Node id Destination id : Node id Start/Stop Motion : User Command Node Location : {integer} 2 Nodes New Location : {integer} 2 Next Anchor : Node id Efficient Route : Source id + { Node id }* + Destination id
[9]
3.2 OUTPUT
1. An Initial Screenshot of the system asking the user for the no. of nodes in the network.
Screenshot 3.1 : Initial Look 2. The initial random network. The user can select a source by clicking on Select Source & then clicking on the desired node. Destination can be selected or deselected in a similar manner. The following screenshot shows the initial network with source & destination selected.
Screenshot 3.2 : Initial Random Network with source & destination selected
[10]
3. The user can start/stop random motion of the nodes by using the Start/Stop Random Motion button. The following screenshot shows the same network after random motion for 1 minute.
Screenshot 3.3 : Network after random motion for 1 minute 4. The FRESH algorithm is invoked on pressing the Show/Hide route button. The route discovered is shown in the following screenshot.
[11]
HANDLING ERRORS
1.The following message box is displayed if the user tries to select a destination before selecting the source.
Screenshot 3.5 : Selecting destination without selecting source 2.The following message box is displayed if the user tries to select the source node as a destination.
Hardware Requirements
A PC (or Laptop) with mouse 65MB RAM 256 MB of Hard Disk Space
Software Requirements
Operating System : Windows (XP, NT, Vista) or Linux (Red Hat, ubuntu, etc) Development tool : jdk1.2.4 (or later)
N.B : The system can support a maximum input of 3500 nodes. An input of more than 3500 nodes can result in unexpected results.
[13]
4. PERFORMANCE ANALYSIS
4.1 PERFORMANCE CRITERION
The first performance criterion will be the cost of the n searches (n is the no. of anchors) in a route discovery. The baseline to which we will compare FRESH search cost is the search cost of a single-step route discovery as employed by existing protocols. Our simulation shows that FRESH allows for a substantial reduction in this cost. The second performance criterion is the quality of routes. Though successive iterations of the FResher Encounter SearcH on average bring us closer to the destination, they may not always advance along a straight line, and so we may not obtain the shortest-path route. Since FRESH establishes routes at lower cost than single-step methods, one may consider that we trade off some route quality for a reduction in search cost and so we must be sure that routes remain good enough so that this is worthwhile. We have performed simulations to verify the scaling performance of FRESH at large network sizes with a random walk. The simulations used two metrics to evaluate the performance of the protocol: search cost and route quality. In this section we report the results and further discuss two other important aspects of routing performance: proactive overhead and latency. The search cost of a route discovery is the overhead necessary to build the route from a source to a destination. In the case of the on-demand protocols we are considering here, this will be the cost of the search(es) associated with the route discovery. Route quality measures the difference between the route obtained by the algorithm and the shortest-hop path. Our purpose is to evaluate the performance of FRESH in relation only to the mobility process and the size of the network. Nodes are one-hop neighbours when they come within unit distance of each other, and interferences and collisions are not modelled. We note that this simplification is neutral to the evaluation since we have no cross-traffic.
[14]
[15]
[16]
Figure 4.1 : Age gradient, random walk. (Empirical conditional mean of distance, conditional on the encounter age).
We observe that as the encounter age increases, the expected distance converges to a constant which is on the order of a half side of the square surface. Therefore, once a node moves toward its second target, its position is already independent of its starting point. We see that once the stationary regime is reached, the empirical mean of the distance between two nodes is constant, and therefore does not vary with the encounter age. After the first two hops we reach a node whose encounter age lies within the descending area of the age gradient, and we see that the route makes good progress from there onward.
[17]
[18]
6. REFERENCES
1. Age Matters : Efficient Route Discovery in Mobile Ad Hoc Networks
By Henri Dubois Ferriere, Matthias Grossglauser, Martin Vetterli School of Computer & Communication Sciences EPFL 1015 Lausanne, Switzerland
[19]