In hierarchical sensor networks using relay nodes, sensor nodes are arranged in clusters and higher powered relay nodes can be used as cluster heads. The lifetime of such a network is determined primarily by the lifetime of the relay nodes. In this paper, we propose two new integer linear programs (ILPs) formulations for optimal data gathering, which maximize the lifetime of the upper tier relay node network. Unlike most previous approaches considered in the literature, our formulations can generate optimal solutions under the non-flow-splitting model. Experimental results demonstrate that our approach can significantly extend network lifetime, compared to traditional routing schemes, for the non-flow-splitting model. The lifetime can be further enhanced by periodic updates of the routing strategy based on the residual energy at each relay node. The proposed rescheduling scheme can be used to handle single or multiple relay node failures. We have also presented a very simple and straightforward algorithm for the placement of relay nodes. The placement algorithm guarantees that all the sensor nodes can communicate with at least one relay node and that the relay node network is at least 2-connected. This means that failure of a single relay node will not disconnect the network, and data may be routed around the failed node. The worst case performance of the placement algorithm is bounded by a constant with respect to any optimum placement algorithm.typically not feasible so that the lifetime of a sensor network is usually over as soon as the battery (batteries) in critical node(s) [3,4] is(are) depleted.In sensor networks, all data flow from the sensor nodes toward the base station (BS), whose location is usually fixed. The transmission power dissipated by a sender node to transmit each bit of data to a receiver node greatly increases with the increase of the distance between the sender and the receiver [1,3,[5][6][7]. Therefore, nodes located further away from the BS use some intermediate node(s) to forward the data to the BS. In such a data-gathering model, it is possible that some nodes are required to relay more data and/or over higher distances, compared to other nodes, and hence dissipate energy at higher rates. This uneven energy dissipation among the nodes leads to the faster 'death' of some nodes in the network, assuming that initial energy provisioning for all nodes are equal. This may cause the network to lose its usefulness, even though many other nodes in the network still retain power and a careful load distribution could have prolonged the useful lifetime of the network. Determining an optimal routing scheme that balances the load on different nodes and maximizes the network lifetime is a non-trivial task.Recently, some special nodes, called relay nodes, have been proposed in sensor networks to achieve various objectives, for example, balanced data gathering, reduction of transmission range, connectivity, and fault tolerance [4,[8][9][10]. These relay nodes may serve as cluster heads in a hierarchica...