<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2013.14006</article-id><article-id pub-id-type="publisher-id">JCC-38653</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Performance Analysis of an Autoconfiguration Addressing Protocol for Ad Hoc Networks
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>assan</surname><given-names>Al-Mahdi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hamed</surname><given-names>Nassar</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>SafaAbd</surname><given-names>El-Aziz</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Computer Science, Faculty of Computers and Informatics, Suez Canal University, Ismailia, Egypt</addr-line></aff><aff id="aff1"><addr-line>Department of Computers &amp;amp; Information, Faculty of Sciences and Arts, Al Jouf University, Al Quryyat, Saudi Arabia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>hassanwesf@ju.edu.sa(AA)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>08</day><month>10</month><year>2013</year></pub-date><volume>01</volume><issue>04</issue><fpage>33</fpage><lpage>40</lpage><history><date date-type="received"><day>September</day>	<month>28th,</month>	<year>2013</year></date><date date-type="rev-recd"><day>October</day>	<month>18th,</month>	<year>2013</year>	</date><date date-type="accepted"><day>October</day>	<month>26th,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   Autoconfiguration protocols are important in maintaining mobile ad hoc networks (MANETs). In this paper, we present an autoconfiguration protocol called the one-step addressing (OSA) protocol characterized by its simplicity. Mathematical model is developed to evaluate the performance of the proposed protocol. The results of the model, which are validated by the simulation results, show that the OSA protocol outperforms the well-known token-based protocol in terms of both latency and communications overhead. 
 
</p></abstract><kwd-group><kwd>IP Address; Ad Hoc; Performance Evaluation; Simulation; Markov Chain</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>A mobile ad hoc network (MANET) is a group of mobile nodes which cooperatively and spontaneously form an IP-based network with no centralized administration [<xref ref-type="bibr" rid="scirp.38653-ref1">1</xref>]. A node communicates with other nodes either directly if they are within its transmission range or indirectly, using a multi-hop route through other nodes, if they are beyond that range. Various protocols have been developed to assign IPs to newly arriving nodes. The efficiency of such protocols is evaluated by two metrics: address allocation latency and communications overhead. Latency is defined as the time taken from instant when a node requests an address to that when it is assigned the address. Communications overhead is defined as the number of control packets transmitted during the address assignment process.</p><p>In this paper, we devise and analyze a new protocolthe one step address (OSA) protocol. We analyze the OSA protocol using a mathematical model whose results are validated by a discrete-event JAVA simulation program. We compare the efficiency of the proposed protocol with that of the token-based address allocation protocol and show that the OSA protocol is superior.</p><p>The rest of the paper is organized as follows. In Section 2 related research efforts are introduced. In Section 3, the description of the OSA protocol is provided. In Section 4, the mathematical model and measurements of the proposed protocol are presented. In Section 5, we validate the model by the simulation and compare its efficiency with the token-based protocol. In the last section, we draw conclusions.</p></sec><sec id="s2"><title>2. Related Work</title><p>IP address autoconfiguration protocols in MANETs could be classified as stateful or stateless according to the management of the address space. All stateful protocols such as MANETconf [<xref ref-type="bibr" rid="scirp.38653-ref2">2</xref>], LHA [<xref ref-type="bibr" rid="scirp.38653-ref3">3</xref>], Token-based [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>] and Prophet address allocation [<xref ref-type="bibr" rid="scirp.38653-ref5">5</xref>] maintain address allocation tables to monitor the assigned and free IPs, so existing nodes can easily assign unused IPs to requesting nodes. The challenge for stateful protocols is to synchronize the allocation tables. The advantage of stateful protocols is the duplication-free IP assignment. All stateless protocols such as IPAA [<xref ref-type="bibr" rid="scirp.38653-ref6">6</xref>], WDAD [<xref ref-type="bibr" rid="scirp.38653-ref7">7</xref>] and PDAD [<xref ref-type="bibr" rid="scirp.38653-ref8">8</xref>] are characterized by auto allocation of IPs, which means that each node randomly chooses its IP. Then the node should perform a mechanism for duplicate address detection to insure that its chosen IP is unique within the network. The challenge in stateless approaches is to detect in moderate latency and communications overhead, the potential address duplication. The advantage of stateless protocols is their relative simplicity compared to stateful protocols.</p><p>In the IP Address Autoconfiguration (IPAA) protocol [<xref ref-type="bibr" rid="scirp.38653-ref6">6</xref>], a trial and error policy to assign an IP to a new node is adopted. Basically, the new node selects a random IP and floods a request with the selected IP to check if a node is using the same IP. If no reply is received, the node considers the IP free, and takes it as its own. Otherwise, the new node tries another IP and repeats the process. This protocol incurs high latency and communications overhead due to the random selection of the IP. Additionally, there is a possibility that a reply indicating that the IP is in use gets lost, resulting in a duplication of that IP.</p><p>In the MANETconf protocol [<xref ref-type="bibr" rid="scirp.38653-ref2">2</xref>], each node maintains two sets, the set of IP addresses already assigned and the set of IP addresses pending assignment. When a new node wishes to join the network, it floods a message to its neighbors to choose an agent. The agent selects an arbitrary IP that is neither assigned nor pending assignment, adds it to the set of IP addresses pending assignment, floods the IP to all other nodes, and starts aTimer. If a recipient node finds this IP in one of its sets, it sends a negative reply. Otherwise it adds it to its set of IP addresses pending assignment and sends an affirmative reply. If all nodes reply, and all replies are affirmative, the agent assigns this IP to the new node, adds the IP to its assigned set, and floods this information in the MANET so all nodes add this IP to their sets of assigned IPs. If at least one reply is negative, the agent selects another IP and the procedure is repeated. If at least one node does not reply, the agent sends the message again to them. The efficiency of MANETconf is higher than that of the IPAA, but is more sensitive to loss rate since it insists on replies from all nodes [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>].</p><p>In the token-based protocol [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>], the address allocation procedure is similar to that of MANETconf except that it doesn’t require global agreement. Specifically, at any point in time there is a single node currently holding the token, called the allocator, which has the right to assign IPs. The efficiency of the token-based protocol is higher than that of the MANETconf protocol as shown in [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>], but there is the problem of a single point of failure if the allocator is disabled for any reason.</p><p>In the Logical Hierarchical Addressing (LHA) protocol [<xref ref-type="bibr" rid="scirp.38653-ref3">3</xref>], each node can act as an agent. The agent uses a function that generates IPs within a subspace of the total MANET address space. When a new node wishes to join the MANET, it selects one of its neighbors as an agent. The agent generates an IP and assigns it to the new node. If the agent has already generated all the IPs in its subspace, it selects one of its neighbors to do the job. Clearly this protocol has some drawbacks. First, the IP generation function moves forward every time it is invoked, depleting its subspace at some point. Second, if a node that has been assigned an IP leaves the MANET, its IP remains unused.</p><p>In the Prophet [<xref ref-type="bibr" rid="scirp.38653-ref5">5</xref>], the authors tried to design a function that produces a sequence of IPs. The initial state of the function is called the seed. Different seeds lead to different sequences. This protocol works as follows: The first node in the MANET chooses a random number as its IP and uses a random state value or a default state value as the seed for its function. When a new node joins the MANET, it chooses an agent to get a free IP. The agent uses the function to generate an IP which is sent to the new node with the agent state. The new node uses the agent state as the seed for its function. The agent then updates its state accordingly. Prophet address allocation has obvious advantages such as: low latency time and low communications overhead. But it has also drawbacks such as: the function used cannot avoid address conflicts as each node produces a sequence in the same domain and two or more of the same numbers can be generated from the multiple sequences. Uniqueness is guaranteed only in one sequence, not among multiple sequences.</p><p>In the Weak Duplicate Address Detection (WDAD) [<xref ref-type="bibr" rid="scirp.38653-ref7">7</xref>], each node generates a key at the initialization phase, and distributes it with its IP address in all routing messages. This key will be used to detect duplicate IP addresses. Each node maintains keys along with IP addresses in its routing table. When a node receives a routing message with an IP address that exists in its table, it checks whether the keys are different or not. If they are different, a duplicate address is detected and the entry is marked as invalid and additional steps are taken to inform other nodes about this duplication. The main drawback of WDAD is its dependency on the routing protocol. WDAD detects address duplication based on local routing information, thus it is totally adapted to proactive routing where each node maintains a complete routing table. For reactive routing, it is not the case; the nodes cache partial routing information for only ongoing and relayed connections which reduces the possibility of detecting in moderate delays address duplication. For the overhead, WDAD requires no additional traffic for the auto-configuration mechanism, but the price is traffic overhead caused by the integration of the key value in routing packets.</p><p>Passive Duplicate Address Detection (PDAD) [<xref ref-type="bibr" rid="scirp.38653-ref8">8</xref>] is a duplicate detection mechanism designed for link state routing protocols. The idea behind PDAD is that instead of explicitly trying to detect and solve address duplication by sending control information, each node can investigate routing information and deduce address duplication from events that occur if there are address duplicates. With proactive routing, the nodes periodically flood the network to inform other nodes about their neighborhood. These control packets contain sequence numbers to distinguish between fresh and old packets. Based on these information, PDAD analyzes incoming routing packets to detect address duplicate. Sequence numbers are increased with each packet, and reset occurs once in a long period of time. Normally, a node should not receive a message with its IP as the source address and a sequence number greater than its own counter value. Accordingly, if it receives such a packet an address conflict had been detected. The advantage of this protocol is that no additional overhead is generated; but it requires complex analysis of the routing information and is applicable only for proactive routing environment.</p></sec><sec id="s3"><title>3. Protocol Description</title><p>The OSA protocol is stateful. Each node stores two records and a table as shown in Figures 1-3. First, <xref ref-type="fig" rid="fig1"><xref ref-type="fig" rid="fig">Figure </xref>1</xref> shows the Parameters Record with three fields:</p><p>• IP_NODE: IP address of the node.</p><p>• ID1_NODE, ID2_NODE: two integers that together uniquely identify the node.</p><p>Second, <xref ref-type="fig" rid="fig2"><xref ref-type="fig" rid="fig">Figure </xref>2</xref> shows the Address Table, with m rows, with four fields:</p><p>• IP: IP address generated by the node.</p><p>• ID1; ID2: two integers generated by the node and unique for each IP.</p><p>• U: flag to indicate whether the corresponding IP is used.</p><p>Third, <xref ref-type="fig" rid="fig3"><xref ref-type="fig" rid="fig">Figure </xref>3</xref> shows the Borrowed Address Record with three fields:</p><p>• IP_BOR: Borrowed IP address.</p><p>• ID1_BOR; ID2_BOR: two integers borrowed by the node and unique for each IP.</p><p>In the OSA protocol, the MANET starts with a single node initiating the configuration process, where other nodes can subsequently join and leave the MANET. Each node can generate up to m IPs to be granted to nodes requesting to join the MANET. When a new node wishes to join the MANET, it senses the medium for beacon messages from other nodes. When the timer expires</p><p>without receiving any beacon, the node repeats the process up to T attempts and one of two scenarios can take place.</p><p>Scenario 1: If all the attempts fail, the node concludes that there is no MANET, and that it has to start one itself. First, it fills out the Parameters Record as follows. The IP_NODE is set to the first IP in the space, e.g. 192:168:0:1, and the two integers ID1_NODE; ID2_NODE are set to 0. Second, the node employs these values, using Equations (1)-(3), to fill out the Address Table. Third, the node fills out the Borrowed Address Record by setting all its fields to 0.</p><p>Scenario 2: If the node finds a MANET in place, by receiving a beacon message, it broadcasts an Address Request (Add_Req) message up to <img src="6-1730025\69bf2f6c-020d-43bc-82c1-7a85838cdf88.jpg" /> attempts in order to get a reply. Upon receiving this message, each neighbor node responds by sending an Address Reply (Add_Rep) message containing the number of available IPs in it. The node selects the responder with the largest number of available IPs as an agent and ignores all other responses. If all responders have the same number of available IPs, the node randomly selects one of the responders as an agent and ignores all other responses. The node then sends a unicast Address Selection (Add_Sel) message to the chosen agent. Upon receiving Add_Sel, the agent searches its Address <xref ref-type="table" rid="table">Table </xref>for an unused IP (i.e. U = 0). If it finds such an IP, it copies its record in the table (less the U field) into an Address Confirmation (Add_Conf) message which it sends to the node, then sets the U field to 1. Else, if it does not find such an IP, it copies instead into Add_Confits Borrowed Address Record.</p><p>Upon receiving the Add_Conf message, the new node copies the record it contains into its Parameters Record. Then it uses the latter to fill out its Address Table, using Equations (1)-(3). Finally, the new node sets all the fields of its Borrowed Address Record to 0.</p><p>Now, the agent checks the number of unused IPs in its Address Table. If this number is greater than 0, meaning that the agent still has unused IPs, no action is taken. Else, if this number is 0, meaning that the agent has run out of IPs that can be granted to new nodes, it sends a unicast Address Borrow (Add_Borr) message to the node it has just granted the IP, seeking to borrow an IP from the latter. Upon receiving this message, the new node replies with a unicast Address Confirmation (Add_Conf) message containing the first record in its Address <xref ref-type="table" rid="table">Table </xref>(less the U field) and then sets the U field to 1. Upon receiving the Add_Conf message, the agent copies the recordit contains into its Borrowed Address Record.</p><p>Suppose that a node has left the MANET. The IP of that node should be reclaimed by the agent that granted it. The OSA takes care of this by regularly updating the U field in the Address <xref ref-type="table" rid="table">Table </xref>of each node using proactive routing protocols such as [<xref ref-type="bibr" rid="scirp.38653-ref9">9</xref>] or reactive routing protocols such as [10,11]. Each node periodically checks the existence of the IPs in its Address <xref ref-type="table" rid="table">Table </xref>by checking routing table if proactive routing protocols are used or by establishing paths to them if reactive routing protocols are used. If an agent finds that a particular IP no longer exists, the agent reclaims it by marking it in its Address <xref ref-type="table" rid="table">Table </xref>as free.</p><p>Suppose that a reclaimed IP is of an agent that assigned a number of IPs to other nodes. Then if another node obtains this IP, after it has been reclaimed, that node will create the same IPs in its Address <xref ref-type="table" rid="table">Table </xref>and may later assign them to other nodes—resulting in duplication. To overcome this problem, a new node that has just obtained a reclaimed IP from an agent and created its Address <xref ref-type="table" rid="table">Table </xref>should check if the IPs of its Address <xref ref-type="table" rid="table">Table </xref>are in use in the MANET (using the routing protocol). If the new node finds a path to an IP in its Address Table, the new node detects the existence of that IP and marks it in its Address <xref ref-type="table" rid="table">Table </xref>as used. If the new node finds out that all IPs in the Address <xref ref-type="table" rid="table">Table </xref>are already in use, then it will not be able to act as an agent, temporarily, until it finds IPs that have been freed due to nodes leaving the MANET.</p><p>Address Table: The entries of the Address <xref ref-type="table" rid="table">Table </xref>of a node are generated from the Parameters Record of that node as follows.</p><disp-formula id="scirp.38653-formula120787"><label>(1)</label><graphic position="anchor" xlink:href="6-1730025\579603b0-ee2e-4139-9294-02a07ebab18f.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.38653-formula120788"><label>(2)</label><graphic position="anchor" xlink:href="6-1730025\946a9e6e-7e77-4dd6-9f49-2598c1d8f4c1.jpg"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.38653-formula120789"><label>(3)</label><graphic position="anchor" xlink:href="6-1730025\101d25c9-46d8-4106-b674-e05aa01b54aa.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="6-1730025\e52c96b2-e059-4f9c-99ad-093951662604.jpg" /> and <img src="6-1730025\31657de3-6415-4b56-9495-f6c12c438fc5.jpg" /> is Linear Congruential Generator (LCG). The integers v, Z<sub>0</sub> and <img src="6-1730025\5d844f84-6d19-43b9-9e08-d7e10a8feaef.jpg" /> are arbitrary integers but should each be less than m. The LCG is known [<xref ref-type="bibr" rid="scirp.38653-ref12">12</xref>] to generate a unique sequence<img src="6-1730025\db6db477-4eda-4704-9b52-38761f273704.jpg" />. As for the U field, its value is 1 if the corresponding IP is in use, and 0 otherwise.</p>OSA Example<p>To illustrate the OSA protocol, we give an example in <xref ref-type="fig" rid="fig4"><xref ref-type="fig" rid="fig">Figure </xref>4</xref>, where the number m of IPs generated by each node is 2. In the Figure, we show the stages of how nodes are assigned their IPs. Initially, there is a node with the configuration shown in part (a) of the Figure. Assume now that this node has been selected as an agent by a new node. Then the new node will obtain its Parameters Record from the agent, and uses it to fill out its Address Table, and finally fill out its Borrowed Address Record. This configuration is shown in Part (b). Now, the agent labels the U field of the IP it has granted the new node as used (set U = 1), as shown in Part (c). In part (d), we assume that a second new node has arrived and selected the same agent. Then the second new node will obtain its Parameters Record from the agent, and uses it to fill out its Address Table, and finally fill out its Borrowed Address Record. Again, the agent labels the U field of the IP it has granted the second new node as used (set U = 1), as shown in Part (e). Since now the agent has no available IPs, it borrows an IP from the last node it has granted an IP (second new node). The resulting configuration is shown in Part (f). Finally, the second new node labels the U field of the IP that has been borrowed by the agent as used (set U = 1) (not shown in the Figure).</p></sec><sec id="s4"><title>4. Performance Analysis of OSA</title><p>In this section we develop a mathematical model to estimate the efficiency of OSA protocol. The model, which characterizes this protocol as functions of the number of nodes, packet loss rate, and the number of available addresses, is based on these assumptions.</p><p>1) The topology of the MANET is square with side d, assumed to be much larger than the transmission range of a node (as assumed in [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>]).</p><p>2) The average proportion of the area that can be reached by a node to the total network area is β. Hence, the probability that a node is out of range of a given node is <img src="6-1730025\a716b81f-4669-4025-b7b5-63dade153a18.jpg" /> where β is derived as a function of a transmission range of a node r and d.</p><p>3) Number of addresses (hence, nodes) that the MANET can have is N.</p><p>4) The loss rates of broadcast and unicast messages between two nodes are <img src="6-1730025\43d167fd-7899-4894-8457-a69013ffca05.jpg" /> and<img src="6-1730025\818cc54d-134e-45d5-819d-c76e1a9b2071.jpg" />, respectively.</p><p>5) The average delays of one hop broadcast and unicast messages are <img src="6-1730025\038d4fe3-f0d9-46d8-aaf2-6785e9a118cd.jpg" /> and<img src="6-1730025\8635113a-f9bf-45fe-a5c0-c29adc8a9f4b.jpg" />, respectively.</p><p>6) The arrival process of new nodes at the MANET is assumed to be Poisson with rate <img src="6-1730025\3a1c1897-8332-4900-ae62-d56b35ab2de4.jpg" /> nodes per unit time.</p><p>7) The time a node stays in the MANET is exponentially distributed with expectation<img src="6-1730025\84366a05-de8b-4bdb-a786-0aa13fc89456.jpg" />.</p><p>It can be seen that the probability α that a new node does not successfully receive a reply message from a given neighbor in its transmission range is given by</p><disp-formula id="scirp.38653-formula120790"><label>(4)</label><graphic position="anchor" xlink:href="6-1730025\71a84766-d55a-4bbf-8f74-cca4db0a9689.jpg"  xlink:type="simple"/></disp-formula><p>Let <img src="6-1730025\33cf9a52-e90f-4500-907c-eb9de62b2685.jpg" /> be a RV denoting the number of nodes within the transmission range of a given node at instance t. The probability in steady state that i nodes are within the transmission range of a given node can be obtained as follows.</p><disp-formula id="scirp.38653-formula120791"><label>(5)</label><graphic position="anchor" xlink:href="6-1730025\33e88b80-1022-4c3e-80cb-37fa3da428ab.jpg"  xlink:type="simple"/></disp-formula><p>When a new node arrives at the MANET, it broadcast Add_Req message to select an agent. All nodes within its transmission range will reply with Add_Rep messages. Let <img src="6-1730025\b977dcdd-8e25-46d1-9b15-e7ee94295666.jpg" /> be a RV denoting the number of Add_Repmessages arriving at the new node at time t with distribution<img src="6-1730025\684fa2fe-3d1e-4230-8a35-1da9455d7b64.jpg" />. In steady state, the RV D depends on the value of the RV P with the following conditional distribution</p><disp-formula id="scirp.38653-formula120792"><label>(6)</label><graphic position="anchor" xlink:href="6-1730025\290f889d-ca4d-4cbf-b18f-25a744d8cd1f.jpg"  xlink:type="simple"/></disp-formula><sec id="s4_1"><title>4.1. Latency Time</title><p>As indicated above, upon the arrival of a new node, two possible scenarios are distinguished:</p><p>scenario 1: The node is the first in the MANET. Then the latency time is the period τ the node waits sensing beacon messages and failing to get one. In such a case, the latency time <img src="6-1730025\6a8372ef-da97-4732-a310-44fa9f264364.jpg" /> is given by</p><disp-formula id="scirp.38653-formula120793"><label>(7)</label><graphic position="anchor" xlink:href="6-1730025\d08e3f71-01f9-4978-8d0b-5083a5ae7fad.jpg"  xlink:type="simple"/></disp-formula><p>scenario 2: The node arrives at an existing MANET. Then, the latency time is made up of two parts: the time till it finds an agent and the time till it obtains an IP from that agent. For the first part, the node will make up to <img src="6-1730025\ea2e8102-ecf6-4272-9900-30879c807203.jpg" /> repeated attempts, as explained above, to get a reply. Let <img src="6-1730025\b542eac2-f059-49cd-80f3-a67271c0646a.jpg" /> be a RV denoting the number of successful attempts. Then, <img src="6-1730025\8cb71606-6bdf-4e33-b344-ae5933a5a5a6.jpg" />has the distribution</p><p><img src="6-1730025\5cfd0d4e-ac29-41d9-8cfc-bc481cff9bae.jpg" /></p><p>Then, the expected value of <img src="6-1730025\66926f7a-4f6e-441a-b968-fd22056e618a.jpg" /> is given as</p><disp-formula id="scirp.38653-formula120794"><label>(8)</label><graphic position="anchor" xlink:href="6-1730025\8eb7a52c-a4a7-4c40-a369-7defc6cc66f7.jpg"  xlink:type="simple"/></disp-formula><p>Multiplying this value by <img src="6-1730025\8c966d5c-e07a-48a0-893a-2ad44241835b.jpg" /> gives the probabilistic part of the latency time, where <img src="6-1730025\235ce2da-29c2-4a96-a416-bc13eec86c70.jpg" /> is time period of each attempt. To find the second part, recall that once a node finds an agent, it sends a unicast Add_Sel message to the agent and waits for a unicast Add_Conf message from it. Let <img src="6-1730025\48a3e5aa-91f7-4a7d-96e3-cd02fef50678.jpg" /> be a RV denoting the number of successful attempts to get Add_Conf message.</p><p>Then, <img src="6-1730025\0bb097bb-b06c-46c9-a4bf-48afebbd07c7.jpg" />has the distribution</p><p><img src="6-1730025\96471674-ece2-4d2a-9a1c-bc731f320e15.jpg" /></p><p>Then, the expected value of <img src="6-1730025\6aa531e4-3b32-4307-a420-15d9ee95eef5.jpg" /> is</p><disp-formula id="scirp.38653-formula120795"><label>(9)</label><graphic position="anchor" xlink:href="6-1730025\0bd35077-04fb-43e7-9478-caec515509e5.jpg"  xlink:type="simple"/></disp-formula><p>As a result, the expected latency time <img src="6-1730025\d2de20b6-cadd-461a-94b5-45bfbb0ccdbc.jpg" /> until the new node obtains its IP address is given as</p><disp-formula id="scirp.38653-formula120796"><label>(10)</label><graphic position="anchor" xlink:href="6-1730025\be841a67-961f-457a-a539-a17ab91b2677.jpg"  xlink:type="simple"/></disp-formula><p>The expected latency time W required for obtaining an IP address is give as follows</p><disp-formula id="scirp.38653-formula120797"><label>(11)</label><graphic position="anchor" xlink:href="6-1730025\81fd31c7-83f0-4fd4-8738-d1c4ac235308.jpg"  xlink:type="simple"/></disp-formula><p>Substituting for<img src="6-1730025\c661c866-93e4-43a8-8d85-aed583180dd7.jpg" />, <img src="6-1730025\32240b14-c05c-4215-af09-0ccbd71977e0.jpg" />and <img src="6-1730025\2bc2ed6f-c7cb-4c85-8aed-eccfd34dfc04.jpg" /> from (5), (7) and (10) respectively into (11), we get</p><disp-formula id="scirp.38653-formula120798"><label>(12)</label><graphic position="anchor" xlink:href="6-1730025\b157a28b-92e5-459a-838f-80609811eebb.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s4_2"><title>4.2. Equations Communications Overhead</title><p>In this section we turn attention to obtain an expression for the communications overhead. As mentioned before, upon the arrival of a new node at the MANET, it senses the existence of beacon messages for a period of time<img src="6-1730025\4f68a66c-e185-45ce-ad1f-1f8c35ec8ff5.jpg" />. If there is no beacon message for <img src="6-1730025\86fa3f73-83b8-4b8e-9bcd-16b131320c7b.jpg" /> trails, the new node will configure itself as the first node in the MANET and hence the number of messages sent in such a scenario is 0.</p><p>In the scenario that the new node finds a MANET the number of broadcast messages from the new node to its neighbors is upper bounded by the number of trials<img src="6-1730025\25b5fd23-4cc6-40dd-8db1-fa7ab1d94414.jpg" />. Let s be the probability that a new node selects a particular node, called the tagged node, from the ones where the new node received replies (their number is the RV D). In the following, we will find s, assuming that the new node has received j other replies, besides the reply of the tagged node. To this end, if the tagged node has available IPs, <img src="6-1730025\be21009b-2ffa-45ec-bf97-1948dd0ac206.jpg" />, then the following cases may occur:</p><p>1) If i is greater than the number of available IPs in any of the j replies, the tagged node will be selected, i.e.<img src="6-1730025\56521f32-a369-44c5-a478-dde360d404ca.jpg" />.</p><p>2) If i is less than the number of available IPs in any of the j replies, the tagged node will not be selected, i.e.,<img src="6-1730025\a239a59b-8c9c-4503-a95b-cb61b4606f75.jpg" />.</p><p>3) If i is equal to the number of available IPs in any of the j replies, the tagged node will be selected with probability, <img src="6-1730025\fb7e5e8d-f683-4fb7-b55a-d8b1e0efb4ae.jpg" /></p><p>In general, when there are i available IPs and j of D nodes have the maximum value<img src="6-1730025\301a899b-2f78-405f-82a5-e9a49290535c.jpg" />, then we can select j from the D nodes in <img src="6-1730025\414c5e0a-5ab5-4e7c-8a62-f38eb3bfd439.jpg" /> ways and the other nodes have <img src="6-1730025\7498ac7b-0b1f-449e-ad01-ac20c61b31da.jpg" /> combinations. Therefore the value of s can be written as</p><disp-formula id="scirp.38653-formula120799"><label>(13)</label><graphic position="anchor" xlink:href="6-1730025\7e26d438-0e11-47f6-a434-16ac349f1ca3.jpg"  xlink:type="simple"/></disp-formula><p>We note in passing that the factor <img src="6-1730025\2fed0953-4f7e-4e5e-bda2-7383bce4ed01.jpg" /> in the above equation reflects the probability that the replies received by the new node carry an equal amount of available IPs. Substituting for <img src="6-1730025\732f3724-cd96-4da3-9723-c7aed7a04f79.jpg" /> form (6) into (13), we get</p><disp-formula id="scirp.38653-formula120800"><label>(14)</label><graphic position="anchor" xlink:href="6-1730025\83f9ca75-7d82-48fa-a2a4-df4b11a74a63.jpg"  xlink:type="simple"/></disp-formula><p>Let <img src="6-1730025\77dbc899-527f-463e-963b-1c59c64032d2.jpg" /> be a RV denoting the number of busy IPs at a given node within the MANET. And let <img src="6-1730025\f7e3a45a-6331-4487-bc78-56d54dc3cbdd.jpg" /> be its distribution. It is clear from the assumptions that the <img src="6-1730025\3a6d528d-66c2-48af-8f0b-ef1a943c1738.jpg" /> form a Markov chain [13-15]. For system stability, we insist that <img src="6-1730025\87741130-14e0-469c-9732-6eff366c0ad1.jpg" />, in which case the system will reach steady state as<img src="6-1730025\58bff414-63dc-454a-a2b9-3f8788dc9bba.jpg" />, and <img src="6-1730025\66813004-bd57-460f-aa48-7a6c48a086f2.jpg" /> and <img src="6-1730025\4297442e-b3d0-47b4-b400-a74337a6f19d.jpg" /> will converge to X and <img src="6-1730025\f9659783-810e-4a9f-b5ac-7d124c5016c5.jpg" /> respectively. The steady-state balance equations can be written as follows.</p><p><img src="6-1730025\7892220e-7463-4d0b-acb0-8abaca85aa86.jpg" /></p><p>After straightforward algebra and applying a wellknown solution of Markov birth-death process [<xref ref-type="bibr" rid="scirp.38653-ref15">15</xref>], the steady-state probabilities <img src="6-1730025\9105b296-117d-4b60-b104-99dd1b159556.jpg" /> are given as follows.</p><disp-formula id="scirp.38653-formula120801"><label>(15)</label><graphic position="anchor" xlink:href="6-1730025\f5af403b-5b41-4eea-b7ec-885e1a85fc5e.jpg"  xlink:type="simple"/></disp-formula><p>where,<img src="6-1730025\782fc4e7-5f64-4523-b434-46fa03ca3cfe.jpg" />. Using the normalization condition</p><p><img src="6-1730025\b4d37505-03e2-4cbf-a4bc-2e345c986afa.jpg" />, the value of <img src="6-1730025\6db7342c-0b24-4ebd-8877-068bb5c33ac9.jpg" /> is given as</p><disp-formula id="scirp.38653-formula120802"><label>(16)</label><graphic position="anchor" xlink:href="6-1730025\7eee4b4c-2f2c-443a-aea1-d42ad0bc390e.jpg"  xlink:type="simple"/></disp-formula><p>The communications overhead per node until the tagged node obtains its IP within the maximum number of <img src="6-1730025\090b8b8b-3df0-442b-aaf2-2681a521197e.jpg" /> trials can be found in view of the following two phases:</p><p>Phase 1: The tagged node solicits an agent. The broadcast message sent by the tagged node results in k replies from the k neighbors, j of them are received by the tagged node while <img src="6-1730025\a0573c97-3614-4d78-880a-74d246f11e44.jpg" /> are lost on their way,<img src="6-1730025\fbdace34-a10b-4247-b573-26a8b572ddd9.jpg" />.</p><p>Therefore, this part of the communications overhead <img src="6-1730025\57a5154b-009a-4232-b89e-674a5d39a039.jpg" /> is given by</p><disp-formula id="scirp.38653-formula120803"><label>(17)</label><graphic position="anchor" xlink:href="6-1730025\c2edda3f-5060-4922-b778-6fa0a51d3f15.jpg"  xlink:type="simple"/></disp-formula><p>Phase 2: The tagged node obtains an IP from the agent. There are one of two cases. Case 1: the agent has more than one IP to donate, in which case one will be given to the tagged node. Case 2: the agent has only one IP to donate, which occurs with probability <img src="6-1730025\734c6738-d346-461c-b6ac-6a260d938225.jpg" /> in which case it will be given to the tagged node and will have to borrow a replacement IP from the tagged node. In either case, each successful communication between the tagged node and the agent takes on average <img src="6-1730025\4f872670-920a-4602-8ed9-2cc8b0d14c2e.jpg" /> attempts, with each attempt generating two messages. Therefore, this part of the communications overhead C is given by</p><disp-formula id="scirp.38653-formula120804"><label>(18)</label><graphic position="anchor" xlink:href="6-1730025\65f17f94-b7b7-45fb-b49e-8a441225e506.jpg"  xlink:type="simple"/></disp-formula><p>Accordingly, and using (17), and (18), the total communications overhead per node is given by</p><p><img src="6-1730025\fc7e29a2-dce2-4700-a57d-67802eda3a54.jpg" /></p></sec></sec><sec id="s5"><title>5. Simulation and Numerical Results</title><p>In this section, the efficiency of the OSA protocol is analyzed. We compared our mathematical results and simulation results with the token-based protocol. The reason for choosing the token-based protocol is that it generates small communications overhead and less latency to obtain a new address as shown in [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>]. Moreover, token-based protocol and OSA protocol belong to statefulau to configuration protocols. So, it will be the most effective way to measure the performance of OSA protocol.</p><p>We developed a discrete-event JAVA simulation program to implement the OSA protocol. We used a radio transmission range r for each node with about 55 meters. The transmission area is assumed to be 243 meter by 243 meter square region. The simulations are conducted with the same assumption as in the mathematical model.</p><p>At each simulation run, we pre-configure the network with a random number of nodes and also setup a Parameter Record and an Address <xref ref-type="table" rid="table">Table </xref>for each node. Each node joins the network at a random location uniformly distributed in the transmission area. Whenever a new node joins the network, we measure the latency and the communications overhead. The number of simulation runs per new node is 10<sup>6</sup> times. In Figures 5 and 6, we present comparisons of analytical and simulation results in terms of the latency and the communications overhead.</p><p>The operational parameter settings are set as follows: The average proportion of area where a node’s transmission reaches β can be calculated using the same derivation in [<xref ref-type="bibr" rid="scirp.38653-ref4">4</xref>], yielding<img src="6-1730025\a5c772cd-62ba-4413-afb7-e5c0faffb8f5.jpg" />.</p><p>The number of available addresses<img src="6-1730025\b53c6acc-bebe-46f4-b9c1-d80d8591c2d6.jpg" />. The number of trials <img src="6-1730025\b6ac495b-5131-468d-8590-e55676afd60a.jpg" /> to find the set of neighboring nodes is set to 3 trials. The number Ψ of attempts to get Add_Conf message is set to 1. Both the time-out interval <img src="6-1730025\c87718b4-5e32-4df3-b081-c196ca0a1a85.jpg" /> and the time for each trial T are set to 0.1 seconds. We set <img src="6-1730025\68f08d67-38e1-46fb-bb59-8ec6158180cc.jpg" /> and<img src="6-1730025\af962fa2-35e5-4ebf-909d-81b5eb66104d.jpg" />. The average loss rates of broadcast and unicast packets in link-level <img src="6-1730025\a96f64a2-3ce4-4313-af13-3a5a5c1f2153.jpg" /> and <img src="6-1730025\20f905ea-c621-40ae-983b-1932571f461b.jpg" /> are set to 0.015 and 0.0002 respectively. The arrival rate λ and service rate μ are set to 0.1 and 0.15 respectively.</p><p><xref ref-type="fig" rid="fig5"><xref ref-type="fig" rid="fig">Figure </xref>5</xref> shows the latency versus the number of nodes N for the token-based and OSA protocols. This <xref ref-type="fig" rid="fig">Figure </xref>indicates that the OSA protocol reduces the latency if it is compared with the token-based protocol.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.38653-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">C., Perkins, “Ad Hoc Networking,” Addison-Wesley, Upper Saddle River, 2001.</mixed-citation></ref><ref id="scirp.38653-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">S. Nesargi and R. Prakash, “MANET Conference: Configuration of Hosts in a Mobile Ad Hoc Network,” Proceedings of the 21st Annual Joint Conference of IEEE Conference on Computer Communication (INFOCOM’ 02), New York, June 2002, pp. 206-216.</mixed-citation></ref><ref id="scirp.38653-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">A. Yousef, H. Al-Mahdi, M. Kalil, and A. Mitschele-Thiel, “LHA: Logical Hierarchical Addressing Protocol for Mobile Ad-Hoc Networks,” 10th ACM/IEEE International Symposium on Modeling, Analysis and Simulation of Wireless and Mobile Systems (MSWiM 2007), Chania, 22-26 October 2007.</mixed-citation></ref><ref id="scirp.38653-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">S. Kim, J. Lee and I. Yeom, “Modeling and Performance Analysis of Address Allocation Schemes for Mobile Ad Hoc Networks,” IEEE Transactions on Vehicular Technology, Vol. 57, No. 11, 2007, pp. 490-501.</mixed-citation></ref><ref id="scirp.38653-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">H. Zhou, L. Ni and M. Mutka, “Prophet Address Allocation for Large Scale MANETs,” Infocom, 2003.</mixed-citation></ref><ref id="scirp.38653-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">C. Perkins, J. Malinen, R. Wakikawa, E. Royer and Y. Sun, “IP Address Auto-configuration for Ad Hoc Networks,” IETF Internet Draft, 2001.</mixed-citation></ref><ref id="scirp.38653-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">N. H. Vaidya, “Weak duplicate address detection in mobile ad hoc networks,” ACM International Symposium on Mobile Ad Hoc Networking and Computing, Boston-Massachusetts, 9-11 June 2002, pp. 206-216.  
http://dx.doi.org/10.1145/513800.513826</mixed-citation></ref><ref id="scirp.38653-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">K. Weniger, “Passive Duplicate Address Detection in Mobile Ad Hoc Networks,” Proceedings of IEEE WCNC 2003, New Orleans, March 2003.</mixed-citation></ref><ref id="scirp.38653-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">C. Perkins and P. Bhagwat, “Highly Dynamic Destination-Sequenced Distance-Vector Routing (DSDV) for mobile Computers,” Proceedings of the SIGCOM’94 Conference on Communications Architecture, Protocols and Applications, London, August 1994, pp. 234-244.</mixed-citation></ref><ref id="scirp.38653-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">C. Perkinsand and E. Royer, “Ad-hoc On-Demand Distance Vector Routing,” Proceedings of the 2nd IEEE Workshop on Mobile Computing Systems and Applications (WMCSA’99), New Orleans, February 1999, pp. 90-100.</mixed-citation></ref><ref id="scirp.38653-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">D. Johnson and D. Maltz, “Dynamic Source Routing in Ad Hoc Wireless Networks,” In: T. Imielinski and H. F. Korth, Eds., Mobile Computing, Chapter 5, Kluwer Academic Publishers, New York, 1996, pp. 153,181,</mixed-citation></ref><ref id="scirp.38653-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">A. M. Law and W. D. Kelton, “Simulation Modeling and Analysis,” Third Edition, Mc. Graw Hill, New York, 2002.</mixed-citation></ref><ref id="scirp.38653-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">H. Nassar and H. Al Mahdi, “Queueing Analysis of an ATM Multimedia Multiplexer with Nonpreemptive Priority,” IEEE Proceedings on Communications, Vol. 150, No. 3, 2003, pp. 189-196.  
http://dx.doi.org/10.1049/ip-com:20030218</mixed-citation></ref><ref id="scirp.38653-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">M. G. Giri, “Introduction to Probability and Statistics,” 2nd Edition, Marcel Dekker, New York, 1993.</mixed-citation></ref><ref id="scirp.38653-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">G. Gross and C. Harris, “Fundamentals of Queueing Theory,” John Wiley, New York, 1985.</mixed-citation></ref></ref-list></back></article>