Microsoft Word - cet-01.docx CHEMICAL ENGINEERING TRANSACTIONS VOL. 46, 2015 A publication of The Italian Association of Chemical Engineering Online at www.aidic.it/cet Guest Editors: Peiyu Ren, Yancang Li, Huiping Song Copyright © 2015, AIDIC Servizi S.r.l., ISBN 978-88-95608-37-2; ISSN 2283-9216 Research on Differentiated-Area Routing in Wireless Sensor Networks Based on the Vector Field Ming Li*a, b, Huanyan Qiana a School of Computer Science and Engineering, Nanjing University of Science and Technology, Nanjing, Jiangsu, 210094, China, b School of Business, Hohai University, Nanjing, Jiangsu, 211100, China. 80783202@qq.com The paper proposes a new scheme to analyze the differentiated-area routing in wireless sensor networks. In a single area of wireless sensor network, node message packets are generally in the same type, and are sent to one sink node (or multiple nodes) in an anycast way. However, in the differentiated area, message packets are divided into many types and the packets of the same type must be sent to a particular type of sink node. The paper firstly researches the single-area network routing, then proposes a set of partial differential equations similar to the Maxwell’s equation of the static electric field, and finally extends the single network analysis method to the differentiated network and gets the dynamic routing relying on the rational changes of optimal cost function. Research results show that under certain conditions, the differentiated network routing problem can be decomposed into several single network problems, in which case the differentiated network problem can be analyzed through a series of independent single networks. 1. Introduction At present, there have been many studies on the routing of wireless sensor networks (WSNs). Mo (2010) mentioned the SAS routing protocol which considers the energy consumption to construct a routing tree. HR (2012) introduced the minimum-cost forwarding algorithm of large-scale sensor networks. Shah (2011) and Midha (2014) describe similar routing scenes. Zhang (2010) describes the routing algorithm under the assumption that related information of node position is known. Kiani (2015) introduces how to analyze the routing using a mathematical method inspired by the electrostatic field. Tanwar (2015) further proposed to maximize network load processing using the minimum number of sensor node. Kong (2014) and Gao (2012) introduce the multipath routing algorithm based on the vector field. Jiang (2011) and Nguyen (2004) introduce the optimization problem based on the vector field and the method looking for the routing through the vector field. The paper introduces the sensor network model of differentiated area. In the differentiated -area network model, the message packets generated on the source node are divided into various types. A significant difference between the differentiated-area vector filed model and the single-area vector field model is that for the former, the load vector in a point of WSN is not unique but divided into many load intensities according to its attributive classification. 2. Single-area WSN Routing 2.1 Vector field routing Imagine a WSN containing area A and assume the source node is in the position of (x,y)∈A and is generating messages at the rate of r (x, y) (bits/sec/m 2). The messages of source node get to the central node (sink node) (x0, y0) ∈A through the multi-hop routing. According to the assumption above, define the characteristic function ( , )x y in area A as follows to represent the density of source message: 0 0 0 ( , ) ( , ) ( ) ( )x y r x y w x x y y      (1) DOI: 10.3303/CET1546042 Please cite this article as: Li M., Qian H.Y., 2015, Research on differentiated-area routing in wireless sensor networks based on the vector field, Chemical Engineering Transactions, 46, 247-252 DOI:10.3303/CET1546042 247 In the equation, ( )x is the Dirac function; 0w is the sum of message sending rate and 0 ( , ) A w r x y dxdy  . It’s clear that ( , ) ( , )x y r x y  and ( , ) 0 A x y dxdy  , except the sink node. Under certain conditions, the vector field represents the communication load in network area. Use vector field ( , )D x y to describe the density of messages flowing in network and to represent the number of messages to be transmitted on point (x, y) per second, including messages sent by other nodes to the node. The direction of ( , )D x y represents the routing direction of the node. According to Jiang (2011), get the following equations: ( , ) ˆ ˆ D x y i j x y           (2) x and y represent the coordinates in horizontal and vertical axes in Descartes rectangular coordinate system, respectively. î and ĵ represent the unit normal vectors along x and y axes respectively. Formula (2) means the sum of messages passing through a closed curve in area A is the sum of messages sending from the source node in the closed curve. Formula (2)’s boundaries meet: ( , ) 0 , ( , ) n D x y x y A   (3) where A is A’s boundary. ( )nD  is the scalar of D along area A. The boundary condition comes from the fact that no message flows from the boundaries of network area. From the above, get the following formula: ( , ) ( , ) 0, ( , ) n D x y D x y x y A        (4) Find vector field ( , )D x y satisfying formula (4). The vector field’s streamline decides the set of paths from point (x, y) to the destination node. Whereas, if the paths staring from point (x, y) and ending at the destination node are given, ( , )D x y satisfying formula (5) can be found, and its streamline matches with these paths. Formula (4) doesn’t give a uniform ( , )D x y , so the paper needs to add additional conditions to get the useful routing through the vector field. A direct method is to make ( , )D x y distribute as uniformly as possible, and the routing obtained in this way can realize the high decentralization of network traffic. Besides, the method can reduce the congestion and conflicts of nodes and allow the network to have higher throughput. The spread of network load can be simulated with the following minimum cost function: 2 ( ) av A J D D D dxdy  (5) where avD is the mean of vector field D in set A and is defined as 1 av A D Ddxdy A   (6) The quadratic in formula (5) allows the load to distribute as uniformly as possible which can prevent the excessive load in local areas and the insufficient utilization of resources in other areas. It’s interesting that the form of the cost function is very similar to the energy definition formula of the electrostatic field. The optimization problem above can be summarized as 2 min ( ) | | : ( ) 0, av A n imize J D D D ds where D D the edge of A                (7) The following Lemma 1 provides the key idea to solve the optimization problem: Lemma 1: If D  represents the optimal solution of equation (7), it must satisfy D 0    (8) where  is a 2D-direction vector operator. For the vector field x yF F F    , define the operation with the following equation: yx FF F y x            (9) where  is the unit complex vector composed by i and j ,i.e., i j   . 248 Base on the lemma above, one of the optimal solution D  ’s spatial difference equation set can be written as D     , D 0    (10) The set of equations above is similar to the Maxwell’s equations in the electrostatic field theory. In the spatial differential equation theory, it has been proved that the boundary condition of the equation set above can be given particularly through D . 2.2 The analysis on WSN routing Equation (7) is based on the assumption of the unified distribution of initial energy of node, but the assumption is obviously not realistic in practice. In WSNs, since all nodes try to send messages to the sink node, the neighbor nodes of sink node have a higher energy utilization rate compared with other nodes. Another problem should be taken into consideration is the randomness of the occurrence of trigger event. It may happen in sensor networks that some sensor nodes have a faster energy decrement than other nodes. Researchers should take this point into consideration and update the routing in order to reduce the utilization of residual energy nodes and thus prolong the life cycle of sensor networks. Therefore, the more general form is shown in equation (11) in which a scalar weight function ( , )K x y in added as the coefficient of the scalar product defined by equation (7). The equation shows the positions owning high loads and expecting to reduce communication traffic to save node energies. The higher the value of ( , )K x y is, the less message flows point ( , )x y expects to have. The lower the value of ( , )K x y is, the more message flows point ( , )x y with enough energy can bear. Therefore, area routing can be changed by changing related value of ( , )K x y . 2 min ( ) ( , ) | | : ( , ) 0, ( , ) av A n imize J D K x y D D ds where D D x y x y the edge of A              (11) The following Lemma 2 gives the key to get the optimal solution. Lemma 2: If * D is the optimal solution of formula (11), then it satisfies the following formula: ( , ) 0 ( , ) ( , ) ( , ) E x y E x y K x y D x y     (12) Basing on Lemma 2, a series of partial differential equations can be derived ( , ) ( , ) ( , ) 0 D x y x y E x y      (13) In the partial differential equation theory, ( , )D x y and ( , )E x y obtained from the equation above combined with boundary condition are uniform. 3. Differentiated WSN 3.1 The analysis on differentiated area routing The paper extends the single network in the previous section to the differentiated -area W SN. In the differentiated area, message packets generated on the source node are divided into various types and the message packets of given types are sent to the sink node receiving given types of data. In this way, source nodes in different areas may send message packets to the same sink node or different sink nodes. Assume the sensor network area is divided into N types of set attributes. ri (x, y) is the density of the ith type of source node and (xi0, yi0) is the position of the ith type of sink node. The significant difference of differentiated-area vector field model and the single-area vector field model is that in former, the load vector in a point in WSN is not unique but divided into several intensities of load according to its attributive classification. In the case similar to the single area, define the load vector field containing attribute set i in the differentiated area of sensor network as ( ) i D  , then equation (1) can be modified as 0 0 0 ( , ) ( , ) ( ) ( ) i i i i i x y r x y w x x y y      (14) where 0 ( , ) i i A w r x y dxdy  . It must be pointed out that for certain set attributes of network, all nodes satisfy ( , ) ( , ) i i x y r x y  and ( , ) 0 i A x y dxdy  , except the sink node of this type. Similar to the case of single network, define that ( , ) i D x y shows the size and direction of type i on point (x,y), then get the following equation visually: 249 ( , ) ( , ) ( , ) 0, ( , ) ,1 i i i n D x y x y D x y x y A i N            (15) 3.2 Solve the differentiated-area WSN routing Define the following quadratic cost function. First, modify the minimum cost differential equation of (15) as follows: 1 1 min ( ) ( ) | ( ) | : ( ) 0, i jN N aviji jA i n imize J D K h D D ds where D D the edge of A                     (16) In equation (16), coefficient i jh is a real-valued constant ( 0i jh  ). Its definition is the extension of single- area optimization problem and assumes the single-area 0 ii h  . The optimal solution problem of the cost function above takes the transmission of different attributes of differentiated-area message packets into consideration and contain the intersection of attributes. If introduce a N N matrix H to show the significance of i jh in the vector field, the optimal solution problem above can be described in the following way: 1 1 min ( ) ( ) ( ) H ( ) : ( ) 0, TN N t t i jA i n imize J D K D D ds where D D the edge of A                     (17) In formula (17), 1 2 3 ( ) [ ( ), ( ), ( ), ( )] N T D D D D D            is a column vector with the length of N and ( ) ( ) (1 ) i i i avD D D i N       . The expansion of T ( )H ( )D D     includes both the scalar product of two vectors and the scalar-multiplication result of real number and vector, so the following equation can be obtained without considering the order of iterated multiplication: T ( )H ( ) ( ) ( ) 1 1 i j i j N N D D h D D i j             (18) Lemma 3: If H is a positive definite matrix, then for the nonzero vector D , T ( )H ( )D D  is also positive definite. The lemma above shows that the optimal solution problem of equation (18) is, actually, the positive definite matrix determination problem of T ( )H ( )D D  . It provides a key idea for the optimal solution problem of equation (17). Proof: Matrix H can be written as TH = R R , where  is a diagonal matrix containing positive eigenvalues and R is an orthogonal matrix. Let 1 2 3 , , , N     represent the opposite diagonal eigenvalues in  , then get T T T ( )H ( ) ( )R R ( )D D D D     (19) Introduce a new variable symbol  to represent vector RD , i.e. RD  , and let 1 2 3, , , N    represent  ’s eigenvalues, then get: 2T ( )H ( ) 1 i i N D D i       (20) Through vector operations, equation (15) can be directly rewritten as: 1 = ( ) 0, i N j iji i n the edge of A            (21) where i j represents matrix R’s eigenvalue in line i and row j, and ( ) i n  is vector field i  ’s scalar component. Then, equation (18)’s optimal solution problem can be written as the following equ ation: 2 1 min ( ) ( ) | | : ( ) 0, N avi iiA i j i n imize J D K ds where the edge of A                     (22) 250 Solving the differential equation can help to find the ideal routing in the differentiated area model. The analysis results of single-area model show that the area optimal solution of each type is unique. Equation (16) can be expressed with several equations of (22), which means equation (16) also has the unique optimal solution. From the analysis above, it can be found that differentiated-area WSN vector field theoretical model can be decomposed into several single-area load vector fields, which provides an effective theoretical basis to find the optimal solution of differentiated-area load vector field. 4. Simulation and Analysis Considering the distribution of load vector field in differentiated-area sensor networks, the paper assumes that the messages generated in the source nodes are divided into five types and all messages are finally received by five sink nodes respectively according to message types. Let the coordinates of five sink nodes be (1.5, 2.5), (2, 4), (3, 3), (4, 1) and (4, 4), respectively. Moreover, the load is distributed evenly in the sensor network area; nodes in the network are in the same conditions; the initial energy is distributed uniformly. Decompose the differentiated-area load vector field into several single area problems and then solve the problems to get the load vector filed of the five sink nodes. Set the Neumann boundary conditions in the boundaries of sensor network. Each sink node corresponds to a load vector field in the single area. Calculate the gradient value of each point in the sensor network area with the superposition principle, and draw up the points with equal load potentials in the area. With MATLAB, it’s easy to show the changes of differentiated-area load gradient and the equipotential line in plane area visually. As shown in figure 2, the search of routing always proceeds in the fastest changing direction, low to high, of equipotential line value. Figure 2: Gradient Expression and Equipotential Line of Multiple Sink Nodes 5. Conclusions The paper introduces a routing method of WSN differentiated area based on the vector field. The paper defines a differentiated-area sensor network in which different types of messages have different routing modes. Different messages have different characteristics like the rate and the position of destination node. To solve the routing problem of differentiated-area WSNs, the paper defines a vector field to describe the routing and the load of each type of area, and builds a quadratic cost function to explore the load in each type of area and the interactions of areas. The research result shows that if the quadratic cost function has certain specific attributes, the differentiated-area network problem can be decomposed into several single-area network problems. References Fagundes F.N., Francisco R.O., Dilem B.B., Nogueira J.A., 2010, Neumann Boundary Conditions Inhibiting SSB in Coleman-Weinberg Mechanism, Communications in Theoretical Physics, 54(6), 1071-1074 251 Gao Q., Li S.P., Yang Z.H., 2012, Virtual Force-Field Based Energy-Efficient Geo-Routing in Wireless Sensor Network. Journal of Zhejiang University (Engineering Science), 46(1), 98-104, DOI: 10.3785/j.issn.1008- 973X.2012.01.16 Jiang H.F., Qian J.S., Sun Y.J., 2011, Virtual Electrostatic Field Based Multi-sink Routing Algorithm in WSN, Journal of China University of Mining & Technology, 40(2), 321-326 Kiani F., Amiri E., Zamani M., 2015, Efficient Intelligent Energy Routing Protocol in Wireless Sensor Networks, International journal of distributed sensor networks, 11(2), 1-13, DOI: 10.1155/2015/618072 Kong D.J. Yao X.L., 2014, An Ad Hoc Network Load Balancing Energy-Efficient Multipath Routing Protocol, Journal of Software, 9(1), 246-250. DOI: 10.4304/jsw.9.1.246-250 Lufeng Mo; Zhenge Guo; Wei Hui, 2010, SAR2: An Adaptive Repair and Adjustment Strategy Directing at WSN Packet Loss, Computer Engineering and Science, 32(11), 52-54, DOI: 10.3969/j.issn.1007- 130X.2010.11.013. Midha S., Nayyar A., 2014, A Survey of W ireless Sensor Network Routing Protocols based on SPIN, International Journal of Computer & Technology, 13(6), 4583-4592 Oh, HR; Song, H, 2012, Energy Efficient MAC Protocol for Delay-sensitive Data Transmission Over W ireless Sensor Network, Wireless Communications & Mobile Computing, 12(9), 755-766, DOI: 10.1002/wcm.1009 Pandey S., Mahapatra R.P., 2015, A centralized comparison of energy efficient routing protocol for mobile and static wireless sensor network, Procedia Computer Science, v 48, p 467-471, DOI: 10.1016/j.procs.2015.04.121 Sara G.S., Sridharan D., 2014, Routing in mobile wireless sensor network: A survey, Telecommunication Systems, 57(1), p 51-79, DOI: 10.1007/s11235-013-9766-2 Shah G.A., Bozyigit M., Hussain F.B., 2011, Cluster-based Coordination and Routing Framework for Wireless Sensor and Actor Networks, Wireless Communications and Mobile Computing, 11(8), 1140–1154, DOI: 10.1002/wcm.885 Tanwar S., Kumar N., Rodrigues J.J.P.C., 2015, A systematic review on heterogeneous routing protocols for wireless sensor network, Journal of Network and Computer Applications, v 53, p 39-56, DOI: 10.1016/j.jnca.2015.03.004 Yan Y.Q., 2015, A Practice Guide of Predicting Resource Consumption in a W eb Server, Review of Computer Engineering Studies, 2(3), 1-8, DOI: 10.18280/rces.020301 Zhang H.B., Hong S., 2010, Energy-Efficient Beaconless Geographic Routing in Wireless Sensor Networks, Parallel and Distributed Systems, 21(6), 881-896, DOI: 10.1109/TPDS.2009.98 Zhi G.C., Zeng F., Liu H., Kuang F.H., 2014, Realization of the Communication Between Devices of Bacnet/IP and Real-Time Database, Review of Computer Engineering Studies, 1(1), 17-22, DOI: 10.18280/rces.010104 252