• 沒有找到結果。

Hybrid address configuration for tree-based wireless sensor networks

N/A
N/A
Protected

Academic year: 2021

Share "Hybrid address configuration for tree-based wireless sensor networks"

Copied!
3
0
0

加載中.... (立即查看全文)

全文

(1)

414 IEEE COMMUNICATIONS LETTERS, VOL. 12, NO. 6, JUNE 2008

Hybrid Address Configuration for Tree-based Wireless Sensor Networks

Yung-Chang Wong, Jui-Tang Wang, Nai-Hsin Chang, Ho-Han Liu, and Chien-Chao Tseng

Abstract— This letter proposes a new scheme to alleviate the

issue on address acquisition failure in wireless sensor networks (WSNs). The basic idea is to use a hierarchical address struc-ture to make the proposed scheme less susceptible to physical distribution of WSN devices. Simulation results show that the new scheme significantly reduces the failure probability.

Index Terms— address allocation, wireless sensor networks,

ZigBee networks.

I. INTRODUCTION

W

IRELESS sensor networks (WSNs) is a rapidly grow-ing technology that offers an unprecedented opportu-nity for a wide spectrum of various applications, including environment and habitat monitoring, healthcare applications, home automation, and traffic control [1], [2]. For each WSN, a coordinator is responsible for starting a new network, when appropriate, setting network parameters, and assigning network addresses to newly associated devices. This paper deals with the problem of address allocation in WSNs.

The ZigBee Alliance [3] specifies Distributed Address As-signment (DAA) mechanism for network address allocation. When a new device is willing to join a network, it performs the association process with an existing device in the network. If the existing device has available network addresses, it will assign a free one, in ascending order, to the new device and make it one of its children in the logical address tree. One major advantage of DAA is its tree forwarding capability. For tree forwarding, any device with address ai can determine

the next hop for a packet with destination address aj simply

by comparing the value of ai with that of aj, instead of

performing a routing table lookup. The weakness of DAA is that a device may fail to acquire an available address from its neighbors. This is called addressing failures. Addressing failures arise either from shortage of available addresses on neighboring devices or from mismatch between setting of topological parameters (described in the next section) and geographical distribution of devices.

Prime Numbering Address Allocation (PNAA) [4] serves as a means to avoid the mismatch issue mentioned above. Like DAA, PNAA possesses the tree forwarding capability. Unlike DAA, address trees generated by PNAA are left-skew. This restrains the new devices within the right side region from associating with an existing device in the network.

Manuscript received December 3, 2007. The associate editor coordinating the review of this letter and approving it for publication was A. Smiljanic.

Y.-C. Wong is with the Department of Computer Science and Information Engineering, Providence University, Taiwan (e-mail: [email protected]).

J.-T. Wang, N.-H. Chang, H.-H. Liu, and C.-C. Tseng are with the Department of Computer Science, National Chiao Tung University, Taiwan (e-mail:{rtwang, nhchang, hohanliu, cctseng}@cs.nctu.edu.tw).

Digital Object Identifier 10.1109/LCOMM.2008.072031.

This letter aims at designing efficient configuration solutions for moderating the addressing failures further. We propose a compound scheme, named hybrid address assignment (HAA), through combining the advantages of both DAA and PNAA. The basic idea is to use the hierarchical address structure to make the proposed scheme less susceptible to physical distribution of WSN devices, while retain the tree forwarding capability.

II. RELATEDWORK

This section presents the address allocation mechanisms for WSNs, including DAA and PNAA.

According to ZigBee specification [3], an address tree generated by DAA is hierarchical in the sense that any subtree possesses a block of consecutive addresses. Usually the coordinator itself has a depth d of 0, while its children have a depth of 1. At any depth d of the tree, the addresses are evenly separated by

Cskip(d) = 1 + Cm− Rm− Cm· Rm

Lm−d−1

1 − Rm

,

where topological parameters Cm, Lm, and Rm = 1 stand for the maximum number of children a parent may have, the maximum depth in the network, and the maximum number of routers a parent may have as children, respectively.

PNAA [4], another address allocation scheme for WSNs, is based on the fact that every positive integer can be written as a product of prime numbers in a unique way. Consider a device with an address a. Let n be the largest prime factor of a. With PNAA, the device can allocate prime numbers Sp(a) =

{b|b = a×p}, where p ≥ n is a prime number, as addresses to

new devices attached to it. For example, Sp(6) = {6 × 3, 6 ×

5, 6 × 7, . . .}, since prime number n = 3 is the largest factor of a= 6. Normally a root device has an address of 1.

III. HYBRIDADDRESSASSIGNMENT(HAA) SCHEME This section presents the HAA scheme and the accompany-ing tree forwardaccompany-ing strategy. With HAA, a device is configured with an address consisting of two fields, separated by a dot. The first field is the i-bit group ID, and the second field, containing the host ID, is j-bit in length. Normally the root device A is configured with the address (1.0), as shown in Figure 1.

When a type-1 device X (a device with address (a.0),

a = 0) receives an association request from a device Y ,

device X allocates a free address (b.0) to Y , where value b is assigned using PNAA. If this fails, device X then allocates the address (a.1), if free, to Y . Figure 1 shows an example address configuration with i = 4, j = 6, and parameters (Cm, Lm, Rm) = (4, 3, 4). Take device D with address (4.0)

(2)

WONG et al.: HYBRID ADDRESS CONFIGURATION FOR TREE-BASED WIRELESS SENSOR NETWORKS 415

Fig. 1. An example address tree generated by HAA. Arrowed lines represent the packet traveling path.

as an example. According to PNAA, device D has8 ∈ Sp(4)

and 12 ∈ Sp(4), and assigns addresses (8.0) and (12.0) to devices G and H, respectively. Notably, device D recognizes that 20 /∈ Sp(4) for integer 20 is out of the 4-bit group ID space. As an alternative, device D assigns address (4.1) to device I.

On the other hand, when a type-2 device Z (a device with address(c.d), c = 0 and d = 0) receives an association request from a device Y , device Z allocates a free address(c.e) to

Y , where value e is assigned by running DAA. Take device I in Figure 1 as an example. According to DAA, device I

calculates the value Cskip(d) = 21 with depth d = 0 and parameters(Cm, Lm, Rm) = (4, 3, 4), and assigns addresses

(4.2) and (4.23) to devices K and L, respectively. As one can see, every host in the sub-tree rooted at device I has a group ID of4.

Next, let us see how the tree-based forwarding can be achieved in HAA (cf., Figure 2 and Figure 3). For a given address tree, a type-1 device (D in Figure 1) and a type-2 device (L) are said to be tightly connected if one can reach another without crossing any type-1 devices. Accordingly, a type-1 device and a type-2 device are tightly connected if and only if they have the same group ID value. Similarly, two type-2 devices are said to be inner connected if one (K) can reach another (L) without crossing any type-1 devices. It is evident that two type-2 devices are inner connected if and only if they have the same group ID value.

Suppose that, as illustrated in Figure 1, device K wants to send a packet pkt to device J , and puts the address (15.1) in the routing header as the destination address of pkt. When device I receives pkt, it forwards pkt to its parent D since pkt is destined for a device not inner connected with it (cf., line 6 in Figure 3). When device D (with group ID4) receives pkt, it retrieves the group ID (15) and the host ID (1) contained in the destination address from the routing header of pkt. As

pkt is destined for a type-2 device (J ), device D intends to

relay pkt to device F (with group ID 15), which is tightly connected to the destination device J of pkt. Relay of pkt is achieved through PNAA tree-based forwarding, according to device group IDs (cf., line 6 in Figure 2): Device D computes the remainder of 4 dividing 15. Since the remainder is not

/* the main loop */

while not complete do

1 receive a packet pkt destined for address(g.h);

2 if(g.h) = address(X) then

3 relay pkt to upper layer;

4 else ifg= group id(X) then

/* destined for a tightly connected device */ 5 forward pkt to child device with address(g.1);

else

6 forward pkt according to g by using PNAA;

end if end while

Fig. 2. Algorithm 1: packet forwarding for HAA type-1 deviceX.

/* the main loop */

while not complete do

1 receive a packet pkt destined for address(g.h);

2 if(g.h) = address(Z) then

3 relay pkt to upper layer;

4 else ifg= group id(Z) and h = 0 then

/* destined for an inner connected device */ 5 forward pkt according to h by using DAA;

else

6 forward pkt to parent device;

end if end while

Fig. 3. Algorithm 2: packet forwarding for HAA type-2 deviceZ.

equal to zero, device D selects its parent B as the next hop for pkt.

Similarly, devices B, A, and C each independently forwards

pkt by using Algorithm 1 until pkt reaches device F . Upon

receipt of pkt, device F retrieves the destination group ID (15) from the routing header of pkt, and compares the extracted value with its own group ID value (15). Since F is tightly connected with the destination device J , F forwards pkt to its child, which happens to be the destination J (cf., lines 4-5 in Figure 2). The packet forwarding completes.

IV. SIMULATIONRESULTS

To verify the effectiveness of the proposed scheme, a100× 100 square units field with N random devices is simulated, where N ranges from 50 to 1000. The communication range of each device is set to20 units. Moreover, we have the ratio of group ID length to the host ID length be 1:1 and parameters (Cm, Lm, Rm) = (2, 9, 2) in our study.

Figure 4 (a)-(c) shows the failure probability on address acquisition versus the number of devices in the WSN, for address length La= 10, 12, and 16, respectively. These figures

show that the failure probability increases as N increases. For the address length and device numbers considered in Figure 4(a), the HAA scheme encounters fewer addressing failures in all cases. Figures 4(b) and 4(c) show similar results. This phenomenon is explained in two folds. Firstly, it is apparent that for the same number of WSN devices, the

(3)

416 IEEE COMMUNICATIONS LETTERS, VOL. 12, NO. 6, JUNE 2008

address tree generated by HAA is more balanced than that generated by PNAA. As a result, an HAA device is more likely to associate with an existing device in the network than a PNAA device does. Secondly, it is obvious that topological parameters sets a limit on the number of nodes a DAA device can associate with. On the other hand, topological parameters only limit the number of nodes a type-2 HAA device can associate with. Therefore, an HAA device is more likely to associate with an existing device in the network than a DAA device does.

One interesting observation is that when N is larger than 500, increasing La can significantly reduce the failure

prob-ability for the HAA scheme. This observation justifies the motivation to introduce the hierarchical address structure.

For any device, the average number of address-acquisition requests it received is proportional to the density of devices around it (i.e., the number of devices located within its communication range). The conclusion holds for other com-munication range values if the device density value remains unchanged.

Furthermore, for a given WSN deployment topology, the address trees of all the three schemes have the same depth. However, HAA requires less address bits than both DAA and PNAA.

V. SUMMARY

This letter addresses the problem of alleviating the address acquisition failures in wireless sensor networks. The basic idea is introducing the hierarchical address structure. This makes the proposed scheme less susceptible to physical distribution of WSN devices, while retains the tree forwarding capability. Simulation results show that the new scheme greatly reduces the failure probability and thus improves the degree of cover-age.

ACKNOWLEDGMENT

This work was sponsored in part by NSC under grant numbers NSC 95-2218-E-009-209, NSC 96-2219-E-009-009, and NSC 96-2745-E-126-003-URD.

REFERENCES

[1] I. F. Akyildiz et al., “A survey on sensor networks,” IEEE Commun.

Mag., vol. 40, no. 8, p. 102–114, 2002.

[2] D. Culler, D. Estrin, and M. Srivastava, “Overview of sensor networks,”

IEEE Computer, vol. 37, no. 8, p. 41–49, 2004.

[3] ZigBee Alliance, “ZigBee specification version r13.” Available: http://www.zigbee.org.

[4] Y. Y. Hsu and C. C. Tseng, “Prime DHCP: a prime numbering address allocation mechanism for MANETs,” IEEE Commun. Lett., vol. 9, no. 8, p. 712–714, 2005.

(a)

(b)

(c)

Fig. 4. Failure probability on address acquisition versus number of devices in the WSN. (a) address lengthLa= 10. (b) La= 12. (c) La= 16.

數據

Fig. 2. Algorithm 1: packet forwarding for HAA type-1 device X.
Fig. 4. Failure probability on address acquisition versus number of devices in the WSN

參考文獻

相關文件

Lagrangian method can resolve material or slip lines sharply if there is not too much grid tangling.. Generalized curvilinear grid is often

 A genre is more dynamic than a text type and is always changing and evolving; however, for our practical purposes here, we can take genre to mean text type. Materials developed

In summary, the main contribution of this paper is to propose a new family of smoothing functions and correct a flaw in an algorithm studied in [13], which is used to guarantee

Abstract In this paper, we consider the smoothing Newton method for solving a type of absolute value equations associated with second order cone (SOCAVE for short), which.. 1

™ 其功能是列出系統的 ARP Table,以及設定及 刪除 ARP

• A cell array is a data type with indexed data containers called cells, and each cell can contain any type of data. • Cell arrays commonly contain either lists of text

– For each k, the faster, smaller device at level k serves as a cache for the larger, slower device at level k+1. • Why do memory

For a deep NNet for written character recognition from raw pixels, which type of features are more likely extracted after the first hidden layer.