This work proposes detection and prevention of attack in WSN network with improvement using Fuzzy Logic. It also
provides network lifetime improvement using Tabu optimization in network. Black hole attack can cause decrease in energy as
well as the network lifetime. Tabu Search is a meta-heuristic that guides a local heuristic search procedure to explore the
solution space beyond local optimality. In rechargeable Wireless Sensor Networks (WSNs), a key concern is the max flow or data
rate at one or more sinks. In this work, it helps to provide optimal cost in network using tabu algorithm. The main objective is to
maximize the flow with improvement in network lifetime and optimize the network cost. The results of max flow vs degree of
nodes and max flow vs no. of nodes are presented.